diff options
author | Vic Yang <victoryang@chromium.org> | 2013-09-02 21:09:24 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-09-05 07:20:13 +0000 |
commit | 0492ff9204a527b7cc9bbe84766d9507f52260a6 (patch) | |
tree | 82987862b21405960e4f421e64f1f46ca480bcd7 /include/charger.h | |
parent | 4f09144839587a983aad85fa4c74fdda4eed1498 (diff) | |
download | chrome-ec-0492ff9204a527b7cc9bbe84766d9507f52260a6.tar.gz |
Temporary OTG and external power support
This is only for initial bringup that requires OTG to boot kernel. Note
that we are expecting firmware for USB ID detection and hardware change
to charger chip, so this is likely going to be thrown away.
BUG=chrome-os-partner:21964
TEST=Plug in OTG dongle and check VBUS voltage is ~5V
TEST=Unplug and check it's ~0V.
BRANCH=None
Change-Id: Iee66bef117188fea14a76459945be3bf5afef0dd
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/167832
Diffstat (limited to 'include/charger.h')
-rw-r--r-- | include/charger.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/charger.h b/include/charger.h index 9b75bb95b2..c3c2b06cd4 100644 --- a/include/charger.h +++ b/include/charger.h @@ -45,6 +45,12 @@ int charger_get_status(int *status); int charger_set_mode(int mode); /** + * For chargers that are able to supply 5V output power for OTG dongle, this + * function enables or disables 5V power output. + */ +int charger_enable_otg_power(int enabled); + +/** * Return the closest match the charger can supply to the requested current. * * @param current Requested current in mA. |