From 47117882671fbfb5ffa20cd25ec29da5b7143009 Mon Sep 17 00:00:00 2001 From: Xu Ziyuan Date: Thu, 14 Jul 2016 14:52:33 +0800 Subject: 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 Acked-by: Simon Glass --- include/usb/dwc2_udc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/usb') 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); -- cgit v1.2.3