rockchip: rk3568: add dwc3 board init
Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com> Change-Id: Ie1c642019fa5eb19c9698aaee01d0a27d50c3478
This commit is contained in:
parent
424749024a
commit
19111912c0
|
|
@ -5,6 +5,29 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
|
#include <dwc3-uboot.h>
|
||||||
|
#include <usb.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
|
#ifdef CONFIG_USB_DWC3
|
||||||
|
static struct dwc3_device dwc3_device_data = {
|
||||||
|
.maximum_speed = USB_SPEED_HIGH,
|
||||||
|
.base = 0xfcc00000,
|
||||||
|
.dr_mode = USB_DR_MODE_PERIPHERAL,
|
||||||
|
.index = 0,
|
||||||
|
.dis_u2_susphy_quirk = 1,
|
||||||
|
.usb2_phyif_utmi_width = 16,
|
||||||
|
};
|
||||||
|
|
||||||
|
int usb_gadget_handle_interrupts(void)
|
||||||
|
{
|
||||||
|
dwc3_uboot_handle_interrupt(0);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int board_usb_init(int index, enum usb_init_type init)
|
||||||
|
{
|
||||||
|
return dwc3_uboot_init(&dwc3_device_data);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue