summaryrefslogtreecommitdiff
path: root/include/usb
diff options
context:
space:
mode:
authorXu Ziyuan <xzy.xu@rock-chips.com>2016-07-14 06:52:33 (GMT)
committerSimon Glass <sjg@chromium.org>2016-07-26 02:44:19 (GMT)
commit47117882671fbfb5ffa20cd25ec29da5b7143009 (patch)
treeaf154f368604db8b587b20722e356e80d9d5b2ad /include/usb
parentfab3357916096d4c61a5e2fe5d28f5aeb78c6957 (diff)
downloadu-boot-47117882671fbfb5ffa20cd25ec29da5b7143009.tar.xz
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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/usb/dwc2_udc.h b/include/usb/dwc2_udc.h
index 3ce43f8..7324d8a 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);