diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/dwc3/dwc3.h b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/dwc3/dwc3.h index 23be126ca..5702a0f6d 100644 --- a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/dwc3/dwc3.h +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/dwc3/dwc3.h @@ -9,6 +9,11 @@ #include "gadget.h" #include "usb_phy.h" +#define CONFIG_SYS_CACHELINE_SIZE 64 +#define CACHELINE_SIZE CONFIG_SYS_CACHELINE_SIZE + + + #define DWC3_MSG_MAX 500 /* Global constants */ @@ -632,7 +637,7 @@ struct dwc3 { struct usb_gadget_driver *gadget_driver; uintptr_t regs; uint32_t regs_size; - enum dwc3_phy dr_mode; + enum usb_dr_mode dr_mode; enum usb_phy_interface hsphy_mode; /* used for suspend/resume */ 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); int dwc3_host_init(struct dwc3 *dwc); + + + #endif