瀏覽代碼

usb: dwc2: gadget: Set GDFIFOCFG

Add programming of GDFIFOCFG register in device mode.
It must contain start address for EP Info block and
total FIFO depth.

Signed-off-by: Sevak Arakelyan <sevaka@synopsys.com>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Sevak Arakelyan 8 年之前
父節點
當前提交
f87c842f72
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/usb/dwc2/gadget.c

+ 3 - 0
drivers/usb/dwc2/gadget.c

@@ -241,6 +241,9 @@ static void dwc2_hsotg_init_fifo(struct dwc2_hsotg *hsotg)
 		val = dwc2_readl(hsotg->regs + DPTXFSIZN(ep));
 		val = dwc2_readl(hsotg->regs + DPTXFSIZN(ep));
 	}
 	}
 
 
+	dwc2_writel(hsotg->hw_params.total_fifo_size |
+		    addr << GDFIFOCFG_EPINFOBASE_SHIFT,
+		    hsotg->regs + GDFIFOCFG);
 	/*
 	/*
 	 * according to p428 of the design guide, we need to ensure that
 	 * according to p428 of the design guide, we need to ensure that
 	 * all fifos are flushed before continuing
 	 * all fifos are flushed before continuing