From 35852c97a31895836cb1bd2cc0be609f00c67a7e Mon Sep 17 00:00:00 2001 From: Yidi Lin Date: Mon, 8 Apr 2024 15:30:23 +0800 Subject: [PATCH] mb/google/rauru: Reset USB hub in bootblock We have to reset the USB hub as early as possible. Otherwise the USB3 hub may not be usable in the payload. This design has been introduced since Cherry. TEST=build pass. BUG=b:317009620 Change-Id: Iea793b4b04bd009d0354e2331604bccf30466a23 Signed-off-by: Jarried Lin Reviewed-on: https://review.coreboot.org/c/coreboot/+/84024 Reviewed-by: Yu-Ping Wu Tested-by: build bot (Jenkins) --- src/mainboard/google/rauru/bootblock.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mainboard/google/rauru/bootblock.c b/src/mainboard/google/rauru/bootblock.c index a896b72feb..578ec7558a 100644 --- a/src/mainboard/google/rauru/bootblock.c +++ b/src/mainboard/google/rauru/bootblock.c @@ -3,7 +3,15 @@ #include #include +#include "gpio.h" + +static void usb3_hub_reset(void) +{ + gpio_output(GPIO(USB_RST), 1); +} + void bootblock_mainboard_init(void) { mtk_snfc_init(); + usb3_hub_reset(); }