soc/mediatek/mt8186: add USB support
commit2f9e5b9e34d5812047725b4aebf612848e8f507e
authorRex-BC Chen <rex-bc.chen@mediatek.corp-partner.google.com>
Wed, 13 Oct 2021 12:08:26 +0000 (13 20:08 +0800)
committerHung-Te Lin <hungte@chromium.org>
Mon, 15 Nov 2021 03:07:15 +0000 (15 03:07 +0000)
tree046b81680234a9152f10315cb4bcd69be0694030
parentea0b13205af6194d28babcd8e0c30f91c1550012
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>
src/mainboard/google/corsola/mainboard.c
src/soc/mediatek/mt8186/Makefile.inc
src/soc/mediatek/mt8186/include/soc/addressmap.h
src/soc/mediatek/mt8186/include/soc/usb.h [new file with mode: 0644]
src/soc/mediatek/mt8186/usb.c [new file with mode: 0644]