[U-Boot] [PATCH 2/4] usb: dwc2-otg: redefine fifo-size for rk3288

Ziyuan Xu xzy.xu at rock-chips.com
Thu Jun 30 09:21:59 CEST 2016


Redefine RX FIFO size & TX FIFO size for rk3288.

Signed-off-by: Ziyuan Xu <xzy.xu at rock-chips.com>
---

 drivers/usb/gadget/dwc2_udc_otg_regs.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/usb/gadget/dwc2_udc_otg_regs.h b/drivers/usb/gadget/dwc2_udc_otg_regs.h
index 78ec90e..a0617c8 100644
--- a/drivers/usb/gadget/dwc2_udc_otg_regs.h
+++ b/drivers/usb/gadget/dwc2_udc_otg_regs.h
@@ -130,8 +130,14 @@ struct dwc2_usbotg_reg {
 #define HIGH_SPEED_CONTROL_PKT_SIZE	64
 #define HIGH_SPEED_BULK_PKT_SIZE	512
 
+#ifdef CONFIG_ROCKCHIP_RK3288
+#define RX_FIFO_SIZE			(275*4)
+#define NPTX_FIFO_SIZE			(16*4)
+#else
 #define RX_FIFO_SIZE			(1024*4)
 #define NPTX_FIFO_SIZE			(1024*4)
+#endif
+
 #define PTX_FIFO_SIZE			(1536*1)
 
 #define DEPCTL_TXFNUM_0		(0x0<<22)
-- 
1.9.1




More information about the U-Boot mailing list