forked from xuos/xiuos
Add DWC3 codes
This commit is contained in:
parent
43cf354e3d
commit
0cd2ad6080
|
@ -9,6 +9,11 @@
|
||||||
#include "gadget.h"
|
#include "gadget.h"
|
||||||
#include "usb_phy.h"
|
#include "usb_phy.h"
|
||||||
|
|
||||||
|
#define CONFIG_SYS_CACHELINE_SIZE 64
|
||||||
|
#define CACHELINE_SIZE CONFIG_SYS_CACHELINE_SIZE
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define DWC3_MSG_MAX 500
|
#define DWC3_MSG_MAX 500
|
||||||
|
|
||||||
/* Global constants */
|
/* Global constants */
|
||||||
|
@ -632,7 +637,7 @@ struct dwc3 {
|
||||||
struct usb_gadget_driver *gadget_driver;
|
struct usb_gadget_driver *gadget_driver;
|
||||||
uintptr_t regs;
|
uintptr_t regs;
|
||||||
uint32_t regs_size;
|
uint32_t regs_size;
|
||||||
enum dwc3_phy dr_mode;
|
enum usb_dr_mode dr_mode;
|
||||||
enum usb_phy_interface hsphy_mode;
|
enum usb_phy_interface hsphy_mode;
|
||||||
/* used for suspend/resume */
|
/* used for suspend/resume */
|
||||||
uint32_t dcfg;
|
uint32_t dcfg;
|
||||||
|
@ -881,4 +886,7 @@ int dwc3_core_init_mode(struct dwc3 *dwc);
|
||||||
void dwc3_set_mode(struct dwc3 *dwc, uint32_t mode);
|
void dwc3_set_mode(struct dwc3 *dwc, uint32_t mode);
|
||||||
|
|
||||||
int dwc3_host_init(struct dwc3 *dwc);
|
int dwc3_host_init(struct dwc3 *dwc);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue