From 32912997bc0324383f82958358b360ac1df3e243 Mon Sep 17 00:00:00 2001 From: Julius Werner Date: Wed, 1 Aug 2018 16:30:42 -0700 Subject: google/cheza: Deassert USB hub reset pin This patch makes sure we deassert the USB hub reset pin so the hub will work with the next board revision that drops the external pull-up. (Actual USB support comes in a later patch.) Change-Id: I1efdc3594cfa3229891d42d445a21c1739170b79 Signed-off-by: Julius Werner Reviewed-on: https://review.coreboot.org/27790 Reviewed-by: Arthur Heymans Tested-by: build bot (Jenkins) --- src/mainboard/google/cheza/mainboard.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mainboard/google/cheza/mainboard.c b/src/mainboard/google/cheza/mainboard.c index 568d4864a5..fdec3fb50e 100644 --- a/src/mainboard/google/cheza/mainboard.c +++ b/src/mainboard/google/cheza/mainboard.c @@ -15,11 +15,17 @@ #include #include +#include #include -static void mainboard_init(struct device *dev) +static void setup_usb(void) { + gpio_output(GPIO(120), 1); /* Deassert HUB_RST_L to enable hub. */ +} +static void mainboard_init(struct device *dev) +{ + setup_usb(); } static void mainboard_enable(struct device *dev) -- cgit v1.2.3