summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorRex-BC Chen <rex-bc.chen@mediatek.corp-partner.google.com>2021-10-13 20:08:26 +0800
committerHung-Te Lin <hungte@chromium.org>2021-11-15 03:07:15 +0000
commit2f9e5b9e34d5812047725b4aebf612848e8f507e (patch)
tree046b81680234a9152f10315cb4bcd69be0694030 /src/mainboard
parentea0b13205af6194d28babcd8e0c30f91c1550012 (diff)
soc/mediatek/mt8186: add USB support
1. Enable and setup USB drivers. 2. Pull up to a weak resistor for USB3_HUB_RST_L and we reset the hub via GPIO149. TEST=boot kernel from USB ok BUG=b:202871018 Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com> Change-Id: Ifcc11d51b0c1e495477957111e6021ef8275f629 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59251 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/corsola/mainboard.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainboard/google/corsola/mainboard.c b/src/mainboard/google/corsola/mainboard.c
index e6040fa7aa..195ce67e5a 100644
--- a/src/mainboard/google/corsola/mainboard.c
+++ b/src/mainboard/google/corsola/mainboard.c
@@ -1,9 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <device/device.h>
+#include <soc/usb.h>
static void mainboard_init(struct device *dev)
{
+ setup_usb_host();
}
static void mainboard_enable(struct device *dev)