diff options
author | Julius Werner <jwerner@chromium.org> | 2020-08-24 16:06:41 -0700 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2020-09-03 01:12:16 +0000 |
commit | df33ef23553fb41e0660bb75fc439af18eac2a1c (patch) | |
tree | 6c512c505b6ca0f8bfc2bcd72392831426e89b3c /src | |
parent | 75cf4566742f24b92c7bd9d5bb41c70aed66826b (diff) | |
download | coreboot-df33ef23553fb41e0660bb75fc439af18eac2a1c.tar.xz |
trogdor: Assert EN_PP3300_HUB
Some Trogdor variants power their USB hub from a PMIC LDO that is
already enabled by QcLib, and some have a discrete LDO that is
controlled by GPIO_84. For the latter, let's make sure we assert that
GPIO on boot.
Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: I9d206cd7154ded3bf179e68c2b1421d0a8ee89f2
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44744
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: mturney mturney <mturney@codeaurora.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Philip Chen <philipchen@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/trogdor/mainboard.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainboard/google/trogdor/mainboard.c b/src/mainboard/google/trogdor/mainboard.c index c82eaa0e02..4d6e352a85 100644 --- a/src/mainboard/google/trogdor/mainboard.c +++ b/src/mainboard/google/trogdor/mainboard.c @@ -12,6 +12,9 @@ static struct usb_board_data usb0_board_data = { static void setup_usb(void) { + /* Assert EN_PP3300_HUB for those board variants that use it. */ + gpio_output(GPIO(84), 1); + setup_usb_host0(&usb0_board_data); } |