diff options
author | Xu Ziyuan <xzy.xu@rock-chips.com> | 2016-07-14 14:52:33 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-07-25 20:44:19 -0600 |
commit | 47117882671fbfb5ffa20cd25ec29da5b7143009 (patch) | |
tree | af154f368604db8b587b20722e356e80d9d5b2ad /include/usb/dwc2_udc.h | |
parent | fab3357916096d4c61a5e2fe5d28f5aeb78c6957 (diff) |
usb: dwc2-otg: adjust fifo size via platform data
The total FIFO size of some SoCs may be different from the existen, this
patch supports fifo size setting from platform data.
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/usb/dwc2_udc.h')
-rw-r--r-- | include/usb/dwc2_udc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/usb/dwc2_udc.h b/include/usb/dwc2_udc.h index 3ce43f8c011..7324d8a62db 100644 --- a/include/usb/dwc2_udc.h +++ b/include/usb/dwc2_udc.h @@ -20,6 +20,9 @@ struct dwc2_plat_otg_data { unsigned int usb_phy_ctrl; unsigned int usb_flags; unsigned int usb_gusbcfg; + unsigned int rx_fifo_sz; + unsigned int np_tx_fifo_sz; + unsigned int tx_fifo_sz; }; int dwc2_udc_probe(struct dwc2_plat_otg_data *pdata); |