google/oak: Config USB Hub for rev5

Reset pin of USB Hub is connected to GPIO118, it is low active.
Config GPIO118 as GPO and output high.

BRANCH=none
BUG=none
TEST=emerge-oak coreboot

Change-Id: I630cfd1c1019447736e7e5b286790fead4bdcfb6
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: b4b5cd98d0b3c5d2bab408ecebebc924d1f2b7df
Original-Change-Id: I1ea0e1baac3da4d13301307f01bbe51e108298dd
Original-Signed-off-by: Ben Lok <ben.lok@mediatek.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/321054
Original-Commit-Ready: Yidi Lin <yidi.lin@mediatek.com>
Original-Tested-by: Yidi Lin <yidi.lin@mediatek.com>
Original-Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/13976
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Ben Lok 2016-01-08 13:10:34 +08:00 committed by Patrick Georgi
parent a9f6529924
commit 7d7dc20e9e
1 changed files with 8 additions and 0 deletions

View File

@ -139,6 +139,13 @@ static void configure_usb(void)
gpio_output(PAD_CM2MCLK, 1);
}
static void configure_usb_hub(void)
{
/* set usb hub reset pin (low active) to high */
if (board_id() > 4)
gpio_output(PAD_UTXD3, 1);
}
/* Setup backlight control pins as output pin and power-off by default */
static void configure_backlight(void)
{
@ -176,6 +183,7 @@ static void mainboard_init(device_t dev)
configure_audio();
configure_backlight();
configure_usb();
configure_usb_hub();
configure_bl31();
elog_init();