Lines Matching defs:hcd
87 static void xhci_rcar_start_gen2(struct usb_hcd *hcd)
90 writel(RCAR_USB3_LCLK_ENA_VAL, hcd->regs + RCAR_USB3_LCLK);
92 writel(RCAR_USB3_CONF1_VAL, hcd->regs + RCAR_USB3_CONF1);
93 writel(RCAR_USB3_CONF2_VAL, hcd->regs + RCAR_USB3_CONF2);
94 writel(RCAR_USB3_CONF3_VAL, hcd->regs + RCAR_USB3_CONF3);
96 writel(RCAR_USB3_RX_POL_VAL, hcd->regs + RCAR_USB3_RX_POL);
97 writel(RCAR_USB3_TX_POL_VAL, hcd->regs + RCAR_USB3_TX_POL);
110 void xhci_rcar_start(struct usb_hcd *hcd)
114 if (hcd->regs != NULL) {
116 temp = readl(hcd->regs + RCAR_USB3_INT_ENA);
118 writel(temp, hcd->regs + RCAR_USB3_INT_ENA);
119 if (xhci_rcar_is_gen2(hcd->self.controller))
120 xhci_rcar_start_gen2(hcd);
124 static int xhci_rcar_download_firmware(struct usb_hcd *hcd)
126 struct device *dev = hcd->self.controller;
127 void __iomem *regs = hcd->regs;
128 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd);
192 static bool xhci_rcar_wait_for_pll_active(struct usb_hcd *hcd)
197 retval = readl_poll_timeout_atomic(hcd->regs + RCAR_USB3_AXH_STA,
203 int xhci_rcar_init_quirk(struct usb_hcd *hcd)
205 /* If hcd->regs is NULL, we don't just call the following function */
206 if (!hcd->regs)
209 if (!xhci_rcar_wait_for_pll_active(hcd))
212 return xhci_rcar_download_firmware(hcd);
215 int xhci_rcar_resume_quirk(struct usb_hcd *hcd)
219 ret = xhci_rcar_download_firmware(hcd);
221 xhci_rcar_start(hcd);