From 65fbdd5c1ed87aa7f88fe0fbc0317d6c178db5d1 Mon Sep 17 00:00:00 2001 From: xj Date: Mon, 9 Sep 2024 23:53:03 -0700 Subject: [PATCH] add DWC3 codes --- .../drivers/usb/components/port/dwc3/dwc3.c | 22 ++++++++++++++++++- .../drivers/usb/components/port/dwc3/dwc3.h | 7 ++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/dwc3/dwc3.c b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/dwc3/dwc3.c index be9300194..d835f94e8 100644 --- a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/dwc3/dwc3.c +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/dwc3/dwc3.c @@ -1,2 +1,22 @@ #include "dwc3.h" -#include "usb_config.h" \ No newline at end of file +#include "usb_config.h" + + +void dwc3_of_parse(struct dwc3 *dwc){ + +} + + + +int dwc3_host_init(struct dwc3 *dwc){ + return 0; +} + + + +enum usb_phy_interface usb_get_phy_mode(uint32_t id){ + return USBPHY_INTERFACE_MODE_UTMIW; +} + + + 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 2323e2363..faf4cf6bb 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 @@ -861,6 +861,13 @@ struct dwc3_gadget_ep_cmd_params { #define DWC3_HAS_XHCI BIT(1) #define DWC3_HAS_OTG BIT(3) +void dwc3_of_parse(struct dwc3 *dwc); + + +int dwc3_host_init(struct dwc3 *dwc); + +enum usb_phy_interface usb_get_phy_mode(uint32_t id); + #endif