Attention is currently required from: Sandeep Maheswaram.

Ravi kumar would like Sandeep Maheswaram to review this change.

View Change

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)

To view, visit change 56093. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic378352a97e4f3ed89089f1f7545f8ebb172b1f2
Gerrit-Change-Number: 56093
Gerrit-PatchSet: 1
Gerrit-Owner: Ravi kumar <rbokka@codeaurora.org>
Gerrit-Reviewer: Sandeep Maheswaram <sanm@codeaurora.org>
Gerrit-Attention: Sandeep Maheswaram <sanm@codeaurora.org>
Gerrit-MessageType: newchange