usb: dwc2_udc_otg: Add tx_fifo_sz array support
[oweals/u-boot.git] / include / usb / dwc2_udc.h
index 8a426b631ef9aec3b4930fc03c71cea911b776ec..369f6fbd4add7ac3ebcb5e1f568fb377b72e059a 100644 (file)
@@ -9,6 +9,7 @@
 #define __DWC2_USB_GADGET
 
 #define PHY0_SLEEP              (1 << 5)
+#define DWC2_MAX_HW_ENDPOINTS  16
 
 struct dwc2_plat_otg_data {
        void            *priv;
@@ -22,6 +23,8 @@ struct dwc2_plat_otg_data {
        unsigned int    rx_fifo_sz;
        unsigned int    np_tx_fifo_sz;
        unsigned int    tx_fifo_sz;
+       unsigned int    tx_fifo_sz_array[DWC2_MAX_HW_ENDPOINTS];
+       unsigned char   tx_fifo_sz_nb;
        bool            force_b_session_valid;
 };