diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2019-01-07 12:51:34 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-01-26 06:51:13 -0800 |
commit | 7a1d8d0f39d70040de35bc27cc5b43b69fe64d58 (patch) | |
tree | e2cdb22e1fc9ace187f5362aeb08a9bb9b20ae42 /include | |
parent | 9cb1b936e76809cb68419c3ff3612e17fec81e9c (diff) | |
download | chrome-ec-7a1d8d0f39d70040de35bc27cc5b43b69fe64d58.tar.gz |
BC1.2: Add usb_charger_reset_charge API
This patch adds the sub_charger_reset_charge API, which resets the
voltage and the current for all BC 1.2 supplies.
This reduces code duplication. There is no functionality changes.
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
BUG=none
BRANCH=none
TEST=buildall
Change-Id: I21afaff9a3c66b1a81ab5c907e6cdd1f1b3896a0
Reviewed-on: https://chromium-review.googlesource.com/1399204
Commit-Ready: Daisuke Nojiri <dnojiri@chromium.org>
Tested-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb_charge.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/usb_charge.h b/include/usb_charge.h index 1de3372434..e7de9a0b3f 100644 --- a/include/usb_charge.h +++ b/include/usb_charge.h @@ -106,4 +106,12 @@ int usb_charger_ramp_allowed(int supplier); * @return Maximum current in mA */ int usb_charger_ramp_max(int supplier, int sup_curr); + + +/** + * Reset available BC 1.2 chargers on all ports + * @param port + */ +void usb_charger_reset_charge(int port); + #endif /* __CROS_EC_USB_CHARGE_H */ |