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>
This commit is contained in:
committed by
Martin Roth
parent
8c7e416309
commit
76655cb82c
@@ -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)
|
||||
|
Reference in New Issue
Block a user