[u-boot] rk3368: add UMS boot configurations
This commit is contained in:
18
u-boot/arch/arm/include/asm/arch-rk33xx/usbhost.h
Normal file
18
u-boot/arch/arm/include/asm/arch-rk33xx/usbhost.h
Normal 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_ */
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user