Lines Matching refs:ehci
14 #include "ehci.h"
19 static const char hcd_name[] = "ehci-pci";
63 static int ehci_pci_reinit(struct ehci_hcd *ehci, struct pci_dev *pdev)
74 ehci_dbg(ehci, "MWI active\n");
82 ehci_writel(ehci, INTEL_QUARK_X1000_EHCI_MAX_THRESHOLD,
83 ehci->regs->intel_quark_x1000_insnreg01);
92 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
97 ehci->caps = hcd->regs;
113 ehci->big_endian_mmio = 1;
115 ehci_warn(ehci,
131 ehci_warn(ehci, "can't enable NVidia "
140 ehci->no_selective_suspend = 1;
155 ehci->amd_pll_fix = 1;
158 ehci_info(ehci, "ignoring AMD8111 (errata)\n");
171 ehci->use_dummy_qh = 1;
172 ehci_info(ehci, "applying AMD SB700/SB800/Hudson-2/3 EHCI dummy qh workaround\n");
192 ehci->amd_pll_fix = 1;
202 ehci->use_dummy_qh = 1;
203 ehci_info(ehci, "applying AMD SB700/SB800/Hudson-2/3 EHCI dummy qh workaround\n");
211 ehci_info(ehci, "applying AMD SB600/SB700 USB freeze workaround\n");
218 ehci_info(ehci, "applying MosChip frame-index workaround\n");
219 ehci->frame_index_bug = 1;
224 ehci_info(ehci, "applying Synopsys HC workaround\n");
225 ehci->has_synopsys_hc_bug = 1;
230 ehci_info(ehci, "applying Aspeed HC workaround\n");
231 ehci->is_aspeed = 1;
242 u32 hcs_params = ehci_readl(ehci,
243 &ehci->caps->hcs_params);
246 ehci->debug = hcd->regs + temp;
247 temp = ehci_readl(ehci, &ehci->debug->control);
248 ehci_info(ehci, "debug port %d%s\n",
252 ehci->debug = NULL;
265 ehci->need_io_watchdog = 0;
275 ehci_info(ehci, "disable ppcd for nvidia mcp89\n");
276 ehci->has_ppcd = 0;
277 ehci->command &= ~CMD_PPCEE;
284 temp = HCS_N_CC(ehci->hcs_params) * HCS_N_PCC(ehci->hcs_params);
286 if (temp && HCS_N_PORTS(ehci->hcs_params) > temp) {
287 ehci_dbg(ehci, "bogus port configuration: "
289 HCS_N_CC(ehci->hcs_params),
290 HCS_N_PCC(ehci->hcs_params),
291 HCS_N_PORTS(ehci->hcs_params));
296 temp |= (ehci->hcs_params & ~0xf);
297 ehci->hcs_params = temp;
313 pci_read_config_byte(pdev, 0x60, &ehci->sbrn);
331 if (ehci->no_selective_suspend && device_can_wakeup(&pdev->dev))
332 ehci_warn(ehci, "selective suspend/wakeup unavailable\n");
335 retval = ehci_pci_reinit(ehci, pdev);
355 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
359 (void) ehci_pci_reinit(ehci, pdev);