diff options
author | Ryan Zhang <Ryan.Zhang@quantatw.com> | 2015-10-27 11:21:55 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-10-28 00:23:51 -0700 |
commit | b86e256fb7c73a51662038253de2deb7b4799f42 (patch) | |
tree | d48b8c87499d04c131642a7476efbfe6ec8af873 /board | |
parent | 21c46e7b1300022fcee1e5997b3e9293c47c27ea (diff) | |
download | chrome-ec-b86e256fb7c73a51662038253de2deb7b4799f42.tar.gz |
Lars: enable USB-A port power control
Lars: enable USB-A port power control
dumb mode is used since lars ec only have control over
the two usb-a ports' power enable/disable functionality.
BUG=none
BRANCH=lars
TEST=Run "make -j BOARD=lars", "make -j BOARD=lars_pd" and
"make buildall -j" to build code and ec.bin can be generated.
Change-Id: I0231b36e3875b56bc822dbae1de37da2182e5736
Signed-off-by: Ryan Zhang <Ryan.Zhang@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/309005
Commit-Ready: 志偉 黃 <David.Huang@quantatw.com>
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/lars/board.c | 4 | ||||
-rw-r--r-- | board/lars/board.h | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/board/lars/board.c b/board/lars/board.c index 91b9bd46da..0a9b5ea0ed 100644 --- a/board/lars/board.c +++ b/board/lars/board.c @@ -499,8 +499,6 @@ void board_set_charge_limit(int charge_ma) /* Enable touchpad on chipset startup so that it can wake the system */ static void board_chipset_startup(void) { - gpio_set_level(GPIO_USB1_ENABLE, 1); - gpio_set_level(GPIO_USB2_ENABLE, 1); gpio_set_level(GPIO_ENABLE_TOUCHPAD, 1); } DECLARE_HOOK(HOOK_CHIPSET_STARTUP, board_chipset_startup, @@ -509,8 +507,6 @@ DECLARE_HOOK(HOOK_CHIPSET_STARTUP, board_chipset_startup, /* Disable touchpad on chipset shutdown as it is no longer useful */ static void board_chipset_shutdown(void) { - gpio_set_level(GPIO_USB1_ENABLE, 0); - gpio_set_level(GPIO_USB2_ENABLE, 0); gpio_set_level(GPIO_ENABLE_TOUCHPAD, 0); } DECLARE_HOOK(HOOK_CHIPSET_SHUTDOWN, board_chipset_shutdown, diff --git a/board/lars/board.h b/board/lars/board.h index e2bd796c24..95f72d5901 100644 --- a/board/lars/board.h +++ b/board/lars/board.h @@ -80,6 +80,11 @@ #define CONFIG_USBC_SS_MUX #define CONFIG_USBC_SS_MUX_DFP_ONLY #define CONFIG_USBC_VCONN + +/* USB-A ports */ +#define USB_PORT_COUNT 2 +#define CONFIG_USB_PORT_POWER_DUMB + #define CONFIG_VBOOT_HASH #define CONFIG_SPI_FLASH_PORT 1 |