diff options
author | Diana Z <dzigterman@chromium.org> | 2020-07-06 14:38:44 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-07 21:49:23 +0000 |
commit | afd3bddc2b91717042c3e7b8bf3d1169c3fcd1c9 (patch) | |
tree | f2a9a52d54507df388b06eb966744d5b880f7817 /board/waddledee/board.c | |
parent | 24949db1ebccf8babf60885ab1ba1eac866add41 (diff) | |
download | chrome-ec-afd3bddc2b91717042c3e7b8bf3d1169c3fcd1c9.tar.gz |
Waddledee: Enable MB USB-A Vbus
As of board revision 1, there is a GPIO to enable Vbus for the type-A
port. Turn this GPIO on when we're booted, and off when the system is
shut down. This pin is NC on revision 0, so it should be fine to set
regardless of hardware version.
BRANCH=None
BUG=b:160336151
TEST=on waddledee rev 1, able to use flash drive plugged into MB
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Idc1ae5fd05b904b01bc56bd8dd2a69d34caee9ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2283943
Tested-by: Karthikeyan Ramasubramanian <kramasub@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/waddledee/board.c')
-rw-r--r-- | board/waddledee/board.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/waddledee/board.c b/board/waddledee/board.c index 5730749735..05b0217a7b 100644 --- a/board/waddledee/board.c +++ b/board/waddledee/board.c @@ -240,6 +240,7 @@ __override void board_power_5v_enable(int enable) * sets it through the charger GPIO. */ gpio_set_level(GPIO_EN_PP5000, !!enable); + gpio_set_level(GPIO_EN_USB_A0_VBUS, !!enable); if (sm5803_set_gpio0_level(1, !!enable)) CPRINTUSB("Failed to %sable sub rails!", enable ? "en" : "dis"); } |