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 | |
parent | fab3357916096d4c61a5e2fe5d28f5aeb78c6957 (diff) | |
download | u-boot-47117882671fbfb5ffa20cd25ec29da5b7143009.tar.gz u-boot-47117882671fbfb5ffa20cd25ec29da5b7143009.tar.bz2 u-boot-47117882671fbfb5ffa20cd25ec29da5b7143009.zip |
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')
-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 3ce43f8c01..7324d8a62d 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); |