From 7d7dc20e9e44f678b661b2a2a683fc632090f6f0 Mon Sep 17 00:00:00 2001 From: Ben Lok Date: Fri, 8 Jan 2016 13:10:34 +0800 Subject: 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 Original-Commit-Id: b4b5cd98d0b3c5d2bab408ecebebc924d1f2b7df Original-Change-Id: I1ea0e1baac3da4d13301307f01bbe51e108298dd Original-Signed-off-by: Ben Lok Original-Reviewed-on: https://chromium-review.googlesource.com/321054 Original-Commit-Ready: Yidi Lin Original-Tested-by: Yidi Lin Original-Reviewed-by: Julius Werner Reviewed-on: https://review.coreboot.org/13976 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/mainboard/google/oak/mainboard.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mainboard/google/oak/mainboard.c b/src/mainboard/google/oak/mainboard.c index 289aa32cfb..df0945b894 100644 --- a/src/mainboard/google/oak/mainboard.c +++ b/src/mainboard/google/oak/mainboard.c @@ -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(); -- cgit v1.2.3