CHROMIUM: cros_usbpd-charger - Use new Apple Brick ID type

Use the new Apple Brick power supply type when "USB_CHG_TYPE_PROPRIETARY"
is provided by the ec.

On most of our Chromebooks (Samus, and Glados generation), that type
will correspond directly to Apple 1.0A, 2.0A, or 2.4A methods being
detected.

This will allow us to gather better metrics in the power manager
when Apple Brick ID method is used on our Type-C Chromebooks.

Signed-off-by: Benson Leung <bleung@chromium.org>

BUG=chromium:698133
TEST=With an Apple 12W (2.4A), 10W (2.1A), or 5W (1A) power adapter
attached, cat /sys/class/power_supply/CROS_USB_PD_CHARGER1/type
Check that "BrickID" is returned.

Change-Id: Ic6722194adde42d505feb890fa62661a6a27c4fa
Reviewed-on: https://chromium-review.googlesource.com/498059
Commit-Ready: Benson Leung <bleung@chromium.org>
Tested-by: Benson Leung <bleung@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
1 file changed