diff options
author | Tim Wawrzynczak <twawrzynczak@chromium.org> | 2019-04-18 11:10:40 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-04-19 14:45:15 -0700 |
commit | dfe65d9d63179c9260dc89d485df039f517c93af (patch) | |
tree | 5c07da2501fed22222414316ab8131d022be6c3e /board/hatch | |
parent | d4a7fc4bc166255f6608f47fcaf9cabd931c22dc (diff) | |
download | chrome-ec-dfe65d9d63179c9260dc89d485df039f517c93af.tar.gz |
hatch/kohaku: Remove Type A USB support for Kohaku.
Move USB Type A support from Hatch baseboard to Hatch board because not
all Hatch variants support Type A.
BUG=b:130577280
BRANCH=none
TEST=Kled device still recognizes Type-A USB flash drive.
Change-Id: I23b21b069727d57b8fea29de5bbf4e255cf3a3a9
Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1573019
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'board/hatch')
-rw-r--r-- | board/hatch/board.c | 5 | ||||
-rw-r--r-- | board/hatch/board.h | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/board/hatch/board.c b/board/hatch/board.c index 4b1f8fa883..cf3459d220 100644 --- a/board/hatch/board.c +++ b/board/hatch/board.c @@ -45,6 +45,11 @@ #define CPRINTS(format, args...) cprints(CC_USBCHARGE, format, ## args) #define CPRINTF(format, args...) cprintf(CC_USBCHARGE, format, ## args) +/* GPIO to enable/disable the USB Type-A port. */ +const int usb_port_enable[CONFIG_USB_PORT_POWER_SMART_PORT_COUNT] = { + GPIO_EN_USB_A_5V, +}; + static void ppc_interrupt(enum gpio_signal signal) { switch (signal) { diff --git a/board/hatch/board.h b/board/hatch/board.h index 3370b46cd4..ae8ceec43a 100644 --- a/board/hatch/board.h +++ b/board/hatch/board.h @@ -57,6 +57,13 @@ #define BOARD_TCPC_C1_RESET_HOLD_DELAY PS8XXX_RESET_DELAY_MS #define BOARD_TCPC_C1_RESET_POST_DELAY 0 +/* USB Type A Features */ +#define CONFIG_USB_PORT_POWER_SMART +#undef CONFIG_USB_PORT_POWER_SMART_PORT_COUNT +#define CONFIG_USB_PORT_POWER_SMART_PORT_COUNT 1 +#define CONFIG_USB_PORT_POWER_SMART_CDP_SDP_ONLY +#define GPIO_USB1_ILIM_SEL GPIO_EN_USB_A_LOW_PWR_OD + /* Volume Button feature */ #define CONFIG_VOLUME_BUTTONS #define GPIO_VOLUME_UP_L GPIO_EC_VOLUP_BTN_ODL |