diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2017-04-17 11:37:18 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-05-11 20:01:33 -0700 |
commit | 44b9f9df83b3c54b46eb09f593cce32fe822f30a (patch) | |
tree | dc145a93d264ed9d4c31b943b1dd177e73bb7172 /board/fizz/board.c | |
parent | bb1b65a17754e7e38d52720db3ad68e95e5d905e (diff) | |
download | chrome-ec-44b9f9df83b3c54b46eb09f593cce32fe822f30a.tar.gz |
Fizz: Enable/disable USB Type-A ports
This change makes Fizz enable USB type-A ports on resume and disable
them on shutdown.
BUG=b:38226666
BRANCH=none
TEST=Boot Fizz off of USB flash drive on a USB-A port.
Change-Id: I7f22438271ffc080e950f5f300937d89706e08a4
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/481078
Diffstat (limited to 'board/fizz/board.c')
-rw-r--r-- | board/fizz/board.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/fizz/board.c b/board/fizz/board.c index d60e5c41e9..87221606ca 100644 --- a/board/fizz/board.c +++ b/board/fizz/board.c @@ -128,6 +128,14 @@ struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_COUNT] = { } }; +const int usb_port_enable[USB_PORT_COUNT] = { + GPIO_USB1_ENABLE, + GPIO_USB2_ENABLE, + GPIO_USB3_ENABLE, + GPIO_USB4_ENABLE, + GPIO_USB5_ENABLE, +}; + void board_reset_pd_mcu(void) { gpio_set_level(GPIO_USB_C0_PD_RST_ODL, 0); |