diff options
author | Kevin K Wong <kevin.k.wong@intel.com> | 2015-10-15 21:27:20 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-10-21 12:53:05 -0700 |
commit | 47ff569b68a0219c0eb8b0fd5e9796863abc97c3 (patch) | |
tree | 33917ec7490a8a342f0805cd6346c1d9a738c8a6 /board | |
parent | 7340e804a1e3ffba2f1ffb9bf826a33b8b5fb19c (diff) | |
download | chrome-ec-47ff569b68a0219c0eb8b0fd5e9796863abc97c3.tar.gz |
kunimitsu: enable USB-A port power control
dumb mode is used since kunimitsu ec only have control over
the two usb-a ports' power enable/disable functionality.
BUG=none
BRANCH=none
TEST=verified with "ectool usbchargemode <port 0-based> <0=dis, 4=en>"
and check with DMM to see if +5V is toggled when enabled/disabled.
Change-Id: I122c99b4067a873313b892715078188e800b979a
Signed-off-by: Kevin K Wong <kevin.k.wong@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/307476
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/kunimitsu/board.c | 4 | ||||
-rw-r--r-- | board/kunimitsu/board.h | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/board/kunimitsu/board.c b/board/kunimitsu/board.c index 03007fefbe..a5e5b20d56 100644 --- a/board/kunimitsu/board.c +++ b/board/kunimitsu/board.c @@ -528,8 +528,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, @@ -538,8 +536,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/kunimitsu/board.h b/board/kunimitsu/board.h index ee9f5b1bd0..5980f0cf17 100644 --- a/board/kunimitsu/board.h +++ b/board/kunimitsu/board.h @@ -95,6 +95,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 |