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>
This commit is contained in:
Rex-BC Chen
2021-10-13 20:08:26 +08:00
committed by Hung-Te Lin
parent ea0b13205a
commit 2f9e5b9e34
5 changed files with 58 additions and 2 deletions

View File

@@ -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)