summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorBen Lok <ben.lok@mediatek.com>2016-01-08 13:10:34 +0800
committerPatrick Georgi <pgeorgi@google.com>2016-03-12 09:11:10 +0100
commit7d7dc20e9e44f678b661b2a2a683fc632090f6f0 (patch)
tree2a85e714b57970cd4a87109f49f48fb2da59d5d9 /src/mainboard
parenta9f6529924af0013a655518c2bd868e898162535 (diff)
downloadcoreboot-7d7dc20e9e44f678b661b2a2a683fc632090f6f0.tar.xz
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>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/oak/mainboard.c8
1 files changed, 8 insertions, 0 deletions
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();