Lines Matching full:ehci
3 * EHCI HCD (Host Controller Driver) PCI Bus Glue.
14 #include "ehci.h"
17 #define DRIVER_DESC "EHCI PCI platform driver"
19 static const char hcd_name[] = "ehci-pci";
33 * This is the list of PCI IDs for the devices that have EHCI USB class and
60 static int ehci_pci_reinit(struct ehci_hcd *ehci, struct pci_dev *pdev) in ehci_pci_reinit() argument
65 * (currently just BIOS handoff) allowed starting with EHCI 0.96 in ehci_pci_reinit()
71 ehci_dbg(ehci, "MWI active\n"); in ehci_pci_reinit()
79 ehci_writel(ehci, INTEL_QUARK_X1000_EHCI_MAX_THRESHOLD, in ehci_pci_reinit()
80 ehci->regs->intel_quark_x1000_insnreg01); in ehci_pci_reinit()
89 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_pci_setup() local
94 ehci->caps = hcd->regs; in ehci_pci_setup()
110 ehci->big_endian_mmio = 1; in ehci_pci_setup()
112 ehci_warn(ehci, in ehci_pci_setup()
128 ehci_warn(ehci, "can't enable NVidia " in ehci_pci_setup()
137 ehci->no_selective_suspend = 1; in ehci_pci_setup()
152 ehci->amd_pll_fix = 1; in ehci_pci_setup()
153 /* AMD8111 EHCI doesn't work, according to AMD errata */ in ehci_pci_setup()
155 ehci_info(ehci, "ignoring AMD8111 (errata)\n"); in ehci_pci_setup()
161 * EHCI controller on AMD SB700/SB800/Hudson-2/3 platforms may in ehci_pci_setup()
168 ehci->use_dummy_qh = 1; in ehci_pci_setup()
169 ehci_info(ehci, "applying AMD SB700/SB800/Hudson-2/3 EHCI dummy qh workaround\n"); in ehci_pci_setup()
176 /* The VT6212 defaults to a 1 usec EHCI sleep time which in ehci_pci_setup()
189 ehci->amd_pll_fix = 1; in ehci_pci_setup()
192 * EHCI controller on AMD SB700/SB800/Hudson-2/3 platforms may in ehci_pci_setup()
199 ehci->use_dummy_qh = 1; in ehci_pci_setup()
200 ehci_info(ehci, "applying AMD SB700/SB800/Hudson-2/3 EHCI dummy qh workaround\n"); in ehci_pci_setup()
202 /* SB600 and old version of SB700 have a bug in EHCI controller, in ehci_pci_setup()
208 ehci_info(ehci, "applying AMD SB600/SB700 USB freeze workaround\n"); in ehci_pci_setup()
215 ehci_info(ehci, "applying MosChip frame-index workaround\n"); in ehci_pci_setup()
216 ehci->frame_index_bug = 1; in ehci_pci_setup()
221 ehci_info(ehci, "applying Synopsys HC workaround\n"); in ehci_pci_setup()
222 ehci->has_synopsys_hc_bug = 1; in ehci_pci_setup()
233 u32 hcs_params = ehci_readl(ehci, in ehci_pci_setup()
234 &ehci->caps->hcs_params); in ehci_pci_setup()
237 ehci->debug = hcd->regs + temp; in ehci_pci_setup()
238 temp = ehci_readl(ehci, &ehci->debug->control); in ehci_pci_setup()
239 ehci_info(ehci, "debug port %d%s\n", in ehci_pci_setup()
243 ehci->debug = NULL; in ehci_pci_setup()
256 ehci->need_io_watchdog = 0; in ehci_pci_setup()
266 ehci_info(ehci, "disable ppcd for nvidia mcp89\n"); in ehci_pci_setup()
267 ehci->has_ppcd = 0; in ehci_pci_setup()
268 ehci->command &= ~CMD_PPCEE; in ehci_pci_setup()
275 temp = HCS_N_CC(ehci->hcs_params) * HCS_N_PCC(ehci->hcs_params); in ehci_pci_setup()
277 if (temp && HCS_N_PORTS(ehci->hcs_params) > temp) { in ehci_pci_setup()
278 ehci_dbg(ehci, "bogus port configuration: " in ehci_pci_setup()
280 HCS_N_CC(ehci->hcs_params), in ehci_pci_setup()
281 HCS_N_PCC(ehci->hcs_params), in ehci_pci_setup()
282 HCS_N_PORTS(ehci->hcs_params)); in ehci_pci_setup()
287 temp |= (ehci->hcs_params & ~0xf); in ehci_pci_setup()
288 ehci->hcs_params = temp; in ehci_pci_setup()
301 pci_read_config_byte(pdev, 0x60, &ehci->sbrn); in ehci_pci_setup()
303 /* Keep this around for a while just in case some EHCI in ehci_pci_setup()
319 if (ehci->no_selective_suspend && device_can_wakeup(&pdev->dev)) in ehci_pci_setup()
320 ehci_warn(ehci, "selective suspend/wakeup unavailable\n"); in ehci_pci_setup()
323 retval = ehci_pci_reinit(ehci, pdev); in ehci_pci_setup()
343 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_pci_resume() local
347 (void) ehci_pci_reinit(ehci, pdev); in ehci_pci_resume()
380 /* handle any USB 2.0 EHCI controller */