summaryrefslogtreecommitdiff
path: root/include/usb_charge.h
diff options
context:
space:
mode:
authorVic Yang <victoryang@google.com>2012-04-24 10:08:14 +0800
committerVic Yang <victoryang@chromium.org>2012-05-09 10:15:03 +0800
commit527eddedaaf4bed18766d016c7442a1e71655a2b (patch)
tree17c41099c845b53eb6d95e4ccd1799833b2a3408 /include/usb_charge.h
parent468e34d51df1ab4cc934267c80d7a1e18406c845 (diff)
downloadchrome-ec-527eddedaaf4bed18766d016c7442a1e71655a2b.tar.gz
Automatically switch USB charging mode
Disable USB ports when system is down and set USB ports to standard downstream mode when system is up or sleeping. Signed-off-by: Vic Yang <victoryang@google.com> BUG=chrome-os-partner:9249 TEST=Plug in a phone and see it charge when system is on. Turn off the system and see it stop charging. Change-Id: I02850dee7051ed6589e0f176a933069203f0efdf
Diffstat (limited to 'include/usb_charge.h')
-rw-r--r--include/usb_charge.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/usb_charge.h b/include/usb_charge.h
index b73f57a684..714deb5235 100644
--- a/include/usb_charge.h
+++ b/include/usb_charge.h
@@ -27,6 +27,10 @@ enum usb_charge_mode {
USB_CHARGE_MODE_COUNT
};
+int usb_charge_all_ports_on(void);
+
+int usb_charge_all_ports_off(void);
+
int usb_charge_set_mode(int usb_port_id, enum usb_charge_mode);
#endif /* __CROS_EC_USB_CHARGE_H */