[u-boot] rk3368: add UMS boot configurations

This commit is contained in:
Firefly
2015-08-07 14:45:06 +08:00
committed by djw
parent 9ea7145d44
commit c138999bb1
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,18 @@
/*
* (C) Copyright 2008-2015 Rockchip Electronics
*/
#ifndef _USBHOST_H_
#define _USBHOST_H_
extern struct rkusb_hcd_cfg *rkusb_active_hcd;
struct rkusb_hcd_cfg {
bool enable;
void* regbase;
int gpio_vbus;
char *name;
void (*hw_init)(void);
void (*hw_deinit)(void);
};
#endif /* _USBHOST_H_ */

View File

@ -84,6 +84,22 @@ static struct rkusb_hcd_cfg rkusb_hcd[] = {
.hw_init = inno_usb_phy_reset,
},
#endif
#elif defined(CONFIG_RKCHIP_RK3368)
#if defined(RKUSB_UMS_BOOT_FROM_HOST1)
{
.name = "ehci",
.enable = true,
.regbase = (void *)RKIO_USBHOST_PHYS,
.gpio_vbus = GPIO_BANK0 | GPIO_A4,
},
#elif defined(RKUSB_UMS_BOOT_FROM_OTG)
{
.name = "dwc2-otg",
.enable = true,
.regbase = (void *)RKIO_USBOTG_PHYS,
.gpio_vbus = GPIO_BANK0 | GPIO_D1,
},
#endif
#else
#error: "PLS config chip for UMS!"
#endif