diff options
author | Shelley Chen <shchen@chromium.org> | 2017-09-29 14:15:11 -0700 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2017-10-20 22:49:31 +0000 |
commit | ebd533065f0dd7f00d6452e5019f685b769d5b0e (patch) | |
tree | 8f466db905b0748dc8aec71297f9269aa8d057c0 /src/drivers/intel/i210/i210.c | |
parent | bd885c5bac425c589582a610bd2dc92dd3809e06 (diff) |
chromeec: Add function to retrieve usb c charger info
Add google_chromeec_get_usb_pd_power_info(), which will
call the EC_CMD_USB_PD_POWER_INFO host command to retrieve
the current and voltage info of the usb c charger.
Returns power info in watts.
BUG=b:37473486
BRANCH=None
TEST=output debug info to make sure that correct power
is returned.
Change-Id: Ie14a0a6163e1c2699cb20b4422c8062164d92076
Signed-off-by: Shelley Chen <shchen@chromium.org>
Reviewed-on: https://review.coreboot.org/21771
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/drivers/intel/i210/i210.c')
0 files changed, 0 insertions, 0 deletions