Lines Matching +full:keep +full:- +full:pll +full:- +full:enabled
1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (c) 2000-2004 by David Brownell
15 #include "pci-quirks.h"
19 static const char hcd_name[] = "ehci-pci";
24 /*-------------------------------------------------------------------------*/
28 return pdev->vendor == PCI_VENDOR_ID_INTEL && in is_intel_quark_x1000()
29 pdev->device == PCI_DEVICE_ID_INTEL_QUARK_X1000_SOC; in is_intel_quark_x1000()
59 /* called after powerup, by probe or system-pm "wakeup" */
68 /* PCI Memory-Write-Invalidate cycle support is optional (uncommon) */ in ehci_pci_reinit()
80 ehci->regs->intel_quark_x1000_insnreg01); in ehci_pci_reinit()
90 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in ehci_pci_setup()
94 ehci->caps = hcd->regs; in ehci_pci_setup()
98 * allocated. Thus, any vendor-specific workarounds based on in ehci_pci_setup()
105 switch (pdev->vendor) { in ehci_pci_setup()
108 if (pdev->device == 0x01b5) { in ehci_pci_setup()
110 ehci->big_endian_mmio = 1; in ehci_pci_setup()
122 switch (pdev->device) { in ehci_pci_setup()
127 if (dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(31)) < 0) in ehci_pci_setup()
136 if (pdev->revision < 0xa4) in ehci_pci_setup()
137 ehci->no_selective_suspend = 1; in ehci_pci_setup()
142 if (pdev->device == PCI_DEVICE_ID_INTEL_CE4100_USB) in ehci_pci_setup()
143 hcd->has_tt = 1; in ehci_pci_setup()
146 if (pdev->device == PCI_DEVICE_ID_TDI_EHCI) in ehci_pci_setup()
147 hcd->has_tt = 1; in ehci_pci_setup()
150 /* AMD PLL quirk */ in ehci_pci_setup()
152 ehci->amd_pll_fix = 1; in ehci_pci_setup()
154 if (pdev->device == 0x7463) { in ehci_pci_setup()
156 retval = -EIO; in ehci_pci_setup()
161 * EHCI controller on AMD SB700/SB800/Hudson-2/3 platforms may in ehci_pci_setup()
163 * there is NULL pointer with T-bit set to 1 in the frame list in ehci_pci_setup()
167 if (pdev->device == 0x7808) { 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()
173 if (pdev->device == 0x3104 && (pdev->revision & 0xf0) == 0x60) { in ehci_pci_setup()
187 /* AMD PLL quirk */ 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()
194 * there is NULL pointer with T-bit set to 1 in the frame list in ehci_pci_setup()
198 if (pdev->device == 0x4396) { 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()
205 if ((pdev->device == 0x4386 || pdev->device == 0x4396) && in ehci_pci_setup()
214 /* MosChip frame-index-register bug */ 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()
220 if (pdev->device == 0xa239) { in ehci_pci_setup()
222 ehci->has_synopsys_hc_bug = 1; 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()
243 ehci->debug = NULL; in ehci_pci_setup()
252 switch (pdev->vendor) { in ehci_pci_setup()
256 ehci->need_io_watchdog = 0; in ehci_pci_setup()
259 switch (pdev->device) { in ehci_pci_setup()
263 * devices with PPCD enabled. 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()
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()
284 switch (pdev->vendor) { in ehci_pci_setup()
287 temp |= (ehci->hcs_params & ~0xf); in ehci_pci_setup()
288 ehci->hcs_params = temp; in ehci_pci_setup()
297 if (pdev->vendor == PCI_VENDOR_ID_STMICRO in ehci_pci_setup()
298 && pdev->device == PCI_DEVICE_ID_STMICRO_USB_HOST) 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()
308 if (!device_can_wakeup(&pdev->dev)) { in ehci_pci_setup()
313 dev_warn(&pdev->dev, "Enabling legacy PCI PM\n"); in ehci_pci_setup()
314 device_set_wakeup_capable(&pdev->dev, 1); in ehci_pci_setup()
319 if (ehci->no_selective_suspend && device_can_wakeup(&pdev->dev)) in ehci_pci_setup()
328 /*-------------------------------------------------------------------------*/
344 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in ehci_pci_resume()
363 /*-------------------------------------------------------------------------*/
368 return -ENODEV; in ehci_pci_probe()
408 return -ENODEV; in ehci_pci_init()