From: yangkai Date: Tue, 13 Nov 2012 09:25:01 +0000 (+0800) Subject: modify usb otg FIFO config for host perio tx X-Git-Tag: firefly_0821_release~8230 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2eb9bf1916cd16e5f536ec075bfca7139e34b55f;p=firefly-linux-kernel-4.4.55.git modify usb otg FIFO config for host perio tx --- diff --git a/drivers/usb/dwc_otg/dwc_otg_cil.c b/drivers/usb/dwc_otg/dwc_otg_cil.c index 1dea667cd477..3eefe676d364 100755 --- a/drivers/usb/dwc_otg/dwc_otg_cil.c +++ b/drivers/usb/dwc_otg/dwc_otg_cil.c @@ -959,7 +959,8 @@ void dwc_otg_core_host_init(dwc_otg_core_if_t *_core_if) /* Periodic Tx FIFO */ DWC_DEBUGPL(DBG_CIL,"initial hptxfsiz=%08x\n", dwc_read_reg32(&global_regs->hptxfsiz)); - ptxfifosize.b.depth = 0x0200;//params->host_perio_tx_fifo_size; + /* rk3066 and later platform has 0x3cc dword FIFO total */ + ptxfifosize.b.depth = 0x0100;//params->host_perio_tx_fifo_size; ptxfifosize.b.startaddr = 0x0280;//nptxfifosize.b.startaddr + nptxfifosize.b.depth; dwc_write_reg32(&global_regs->hptxfsiz, ptxfifosize.d32); DWC_DEBUGPL(DBG_CIL,"new hptxfsiz=%08x\n", dwc_read_reg32(&global_regs->hptxfsiz));