Attention is currently required from: Sandeep Maheswaram. Hello Sandeep Maheswaram,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/56093
to review the following change.
Change subject: herobrine: Add support for USB initialization ......................................................................
herobrine: Add support for USB initialization
Initializing USB controller driver.
BUG=b:182963902 TEST=Validated USB enumeration on qcom sc7280 development board
Signed-off-by: Sandeep Maheswaram sanm@codeaurora.org Change-Id: Ic378352a97e4f3ed89089f1f7545f8ebb172b1f2 --- M src/mainboard/google/herobrine/mainboard.c 1 file changed, 10 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/93/56093/1
diff --git a/src/mainboard/google/herobrine/mainboard.c b/src/mainboard/google/herobrine/mainboard.c index 82bf28e..d6109d9 100644 --- a/src/mainboard/google/herobrine/mainboard.c +++ b/src/mainboard/google/herobrine/mainboard.c @@ -10,6 +10,8 @@ #include <soc/qup_se_handlers_common.h> #include <soc/qcom_qup_se.h> #include <soc/pcie.h> +#include <soc/usb/usb_common.h> +#include <delay.h>
static void setup_pcie(void) { @@ -35,6 +37,13 @@ setup_pcie_host(); }
+static void setup_usb(void) +{ + reset_usb0(); + mdelay(2); + setup_usb_host0(); +} + static void mainboard_init(struct device *dev) { /* Configure clock for eMMC */ @@ -60,6 +69,7 @@
/* Set up PCIe in RC mode */ setup_pcie(); + setup_usb(); }
static void mainboard_enable(struct device *dev)