diff options
author | Liangfeng Wu <wulf@rock-chips.com> | 2016-05-26 16:06:58 +0800 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-06-12 12:10:22 +0200 |
commit | 76655cb82c207b0c9904c094f7790de2f0835b67 (patch) | |
tree | dbf44aaa67755c8a20b66f3c8234d1f1e53a89aa /src/mainboard/google/gru/mainboard.c | |
parent | 8c7e416309a253e1ee2d46de254583e5f09c1329 (diff) |
rockchip: gru: Add USB DRD DWC3 controller support
This patch adds code to initialize the two DWC3 USB
host controllers, and uses them to initialize USB3.0
on the gru rk3399 board.
BRANCH=none
BUG=chrome-os-partner:52684
TEST=boot from USB3.0 on gru/kevin rk3399 platform
Change-Id: If6a6e56f3a7c7ce8e8b098634cfc2f250a91810d
Signed-off-by: Martin Roth <martinroth@chromium.org>
Original-Commit-Id: 0306a9e
Original-Change-Id: I796fa1133510876f75873d134ea752e1b52e40a8
Original-Signed-off-by: Liangfeng Wu <wulf@rock-chips.com>
Original-Signed-off-by: Douglas Anderson <dianders@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/347524
Original-Commit-Ready: Brian Norris <briannorris@chromium.org>
Original-Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Original-Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/15112
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/google/gru/mainboard.c')
-rw-r--r-- | src/mainboard/google/gru/mainboard.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mainboard/google/gru/mainboard.c b/src/mainboard/google/gru/mainboard.c index bbe0224693..e6baebe13b 100644 --- a/src/mainboard/google/gru/mainboard.c +++ b/src/mainboard/google/gru/mainboard.c @@ -24,6 +24,7 @@ #include <soc/emmc.h> #include <soc/grf.h> #include <soc/i2c.h> +#include <soc/usb.h> #include "board.h" @@ -118,12 +119,19 @@ static void configure_display(void) gpio_output(GPIO(4, D, 3), 1); /* CPU3_EDP_VDDEN for P3.3V_DISP */ } +static void setup_usb(void) +{ + setup_usb_drd0_dwc3(); + setup_usb_drd1_dwc3(); +} + static void mainboard_init(device_t dev) { configure_sdmmc(); configure_emmc(); configure_codec(); configure_display(); + setup_usb(); } static void enable_backlight_booster(void) |