Lines Matching refs:hcd
88 static void xhci_rcar_start_gen2(struct usb_hcd *hcd) in xhci_rcar_start_gen2() argument
91 writel(RCAR_USB3_LCLK_ENA_VAL, hcd->regs + RCAR_USB3_LCLK); in xhci_rcar_start_gen2()
93 writel(RCAR_USB3_CONF1_VAL, hcd->regs + RCAR_USB3_CONF1); in xhci_rcar_start_gen2()
94 writel(RCAR_USB3_CONF2_VAL, hcd->regs + RCAR_USB3_CONF2); in xhci_rcar_start_gen2()
95 writel(RCAR_USB3_CONF3_VAL, hcd->regs + RCAR_USB3_CONF3); in xhci_rcar_start_gen2()
97 writel(RCAR_USB3_RX_POL_VAL, hcd->regs + RCAR_USB3_RX_POL); in xhci_rcar_start_gen2()
98 writel(RCAR_USB3_TX_POL_VAL, hcd->regs + RCAR_USB3_TX_POL); in xhci_rcar_start_gen2()
111 void xhci_rcar_start(struct usb_hcd *hcd) in xhci_rcar_start() argument
115 if (hcd->regs != NULL) { in xhci_rcar_start()
117 temp = readl(hcd->regs + RCAR_USB3_INT_ENA); in xhci_rcar_start()
119 writel(temp, hcd->regs + RCAR_USB3_INT_ENA); in xhci_rcar_start()
120 if (xhci_rcar_is_gen2(hcd->self.controller)) in xhci_rcar_start()
121 xhci_rcar_start_gen2(hcd); in xhci_rcar_start()
125 static int xhci_rcar_download_firmware(struct usb_hcd *hcd) in xhci_rcar_download_firmware() argument
127 struct device *dev = hcd->self.controller; in xhci_rcar_download_firmware()
128 void __iomem *regs = hcd->regs; in xhci_rcar_download_firmware()
129 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_rcar_download_firmware()
195 static bool xhci_rcar_wait_for_pll_active(struct usb_hcd *hcd) in xhci_rcar_wait_for_pll_active() argument
200 retval = readl_poll_timeout_atomic(hcd->regs + RCAR_USB3_AXH_STA, in xhci_rcar_wait_for_pll_active()
206 int xhci_rcar_init_quirk(struct usb_hcd *hcd) in xhci_rcar_init_quirk() argument
209 if (!hcd->regs) in xhci_rcar_init_quirk()
212 if (!xhci_rcar_wait_for_pll_active(hcd)) in xhci_rcar_init_quirk()
215 return xhci_rcar_download_firmware(hcd); in xhci_rcar_init_quirk()
218 int xhci_rcar_resume_quirk(struct usb_hcd *hcd) in xhci_rcar_resume_quirk() argument
222 ret = xhci_rcar_download_firmware(hcd); in xhci_rcar_resume_quirk()
224 xhci_rcar_start(hcd); in xhci_rcar_resume_quirk()