Add DWC3 codes

This commit is contained in:
xj 2024-09-10 20:26:24 -07:00
parent 43cf354e3d
commit 0cd2ad6080
1 changed files with 9 additions and 1 deletions

View File

@ -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