mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 01:21:49 +00:00
servo_v4: allow gpio modification of DUT_HUB_USB_RESET_L
DUT_HUB_USB_RESET_L was set to input as part of power sequencing but servod would like to write to it. We'll allow this. BUG=chromium:571476 TEST=dut-control dut_hub_usb_reset:on BRANCH=None Change-Id: I39997e7f7875b833a64f95a1e2ea9434f3523762 Signed-off-by: Nick Sanders <nsanders@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/378395 Reviewed-by: Kevin Cheng <kevcheng@chromium.org>
This commit is contained in:
@@ -242,7 +242,7 @@ static void board_init(void)
|
||||
|
||||
/* Delay DUT hub to avoid brownout. */
|
||||
usleep(1000);
|
||||
gpio_set_flags(GPIO_DUT_HUB_USB_RESET_L, GPIO_INPUT);
|
||||
gpio_set_flags(GPIO_DUT_HUB_USB_RESET_L, GPIO_OUT_HIGH);
|
||||
|
||||
/* Write USB3 Mode Enable to PS8742 USB/DP Mux. */
|
||||
i2c_write8(1, 0x20, 0x0, 0x20);
|
||||
|
||||
@@ -13,6 +13,9 @@ GPIO(HOST_USB_HUB_RESET_L, PIN(D, 2), GPIO_OUT_HIGH)
|
||||
GPIO(FASTBOOT_DUTHUB_MUX_SEL, PIN(B, 5), GPIO_OUT_HIGH)
|
||||
GPIO(SBU_MUX_EN, PIN(B, 6), GPIO_OUT_LOW)
|
||||
GPIO(FASTBOOT_DUTHUB_MUX_EN_L, PIN(B, 7), GPIO_OUT_LOW)
|
||||
/* Power on init has reset asserted, we will pull the hub out of reset
|
||||
* in the board init to help avoid brownout.
|
||||
*/
|
||||
GPIO(DUT_HUB_USB_RESET_L, PIN(B, 9), GPIO_OUT_LOW)
|
||||
GPIO(ATMEL_HWB_L, PIN(B, 12), GPIO_OUT_HIGH)
|
||||
GPIO(CMUX_EN, PIN(C, 14), GPIO_OUT_HIGH)
|
||||
|
||||
Reference in New Issue
Block a user