diff options
author | Rex-BC Chen <rex-bc.chen@mediatek.corp-partner.google.com> | 2021-12-13 19:43:17 +0800 |
---|---|---|
committer | Hung-Te Lin <hungte@chromium.org> | 2021-12-15 07:52:34 +0000 |
commit | add2e930505be3470092774f595cdb8b3ff61ef2 (patch) | |
tree | 65e725d6581117181127d32f109fd19f8f6b5f9a /src/soc/mediatek | |
parent | 0fd072d3f2a3360d73ec7b5b11a06b52025b17ea (diff) |
mb/google/corsola: move USB3 HUB reset funtion to bootblock
To save the S3 power, USB3_HUB_RST_L is externally pulled up to a weak
resistor, so we have to reset the hub as early as possible.
Otherwise the USB3 hub may be not usable. Therefore, move USB3 HUB
reset function to bootblock.
BUG=b:210065282
TEST=build pass
Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Change-Id: I92feb2316302fda32478b24c014bcd380d0ac55d
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60088
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/mediatek')
-rw-r--r-- | src/soc/mediatek/mt8186/usb.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/soc/mediatek/mt8186/usb.c b/src/soc/mediatek/mt8186/usb.c index 328dc54e8d..6d83abbde1 100644 --- a/src/soc/mediatek/mt8186/usb.c +++ b/src/soc/mediatek/mt8186/usb.c @@ -10,13 +10,7 @@ #include <soc/gpio.h> #include <soc/usb.h> -static void usb3_hub_reset(void) -{ - gpio_output(GPIO(PERIPHERAL_EN2), 1); -} - void mtk_usb_prepare(void) { - usb3_hub_reset(); gpio_output(GPIO(USB_DRVVBUS_P1), 1); } |