diff options
| author | Alessandro Rubini <rubini@gnudd.com> | 2012-01-06 07:33:28 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-24 17:15:37 -0500 |
| commit | 3a0bac0676d7f433c12389fc0bc574f048f921c3 (patch) | |
| tree | 2acd1e9f1ad9249e76757ae737b8929695585e4a | |
| parent | 0dd2b62ada6f911fbd13e98e98f57f4edc42c604 (diff) | |
usb: add support for STA2X11 host driver
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Acked-by: Giancarlo Asnaghi <giancarlo.asnaghi@st.com>
Cc: Alan Cox <alan@linux.intel.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| -rw-r--r-- | drivers/usb/host/ehci-pci.c | 6 | ||||
| -rw-r--r-- | drivers/usb/host/ohci-pci.c | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index f4b627d343ac..01bb7241d6ef 100644 --- a/drivers/usb/host/ehci-pci.c +++ b/drivers/usb/host/ehci-pci.c | |||
| @@ -276,6 +276,9 @@ static int ehci_pci_setup(struct usb_hcd *hcd) | |||
| 276 | 276 | ||
| 277 | /* Serial Bus Release Number is at PCI 0x60 offset */ | 277 | /* Serial Bus Release Number is at PCI 0x60 offset */ |
| 278 | pci_read_config_byte(pdev, 0x60, &ehci->sbrn); | 278 | pci_read_config_byte(pdev, 0x60, &ehci->sbrn); |
| 279 | if (pdev->vendor == PCI_VENDOR_ID_STMICRO | ||
| 280 | && pdev->device == PCI_DEVICE_ID_STMICRO_USB_HOST) | ||
| 281 | ehci->sbrn = 0x20; /* ConneXT has no sbrn register */ | ||
| 279 | 282 | ||
| 280 | /* Keep this around for a while just in case some EHCI | 283 | /* Keep this around for a while just in case some EHCI |
| 281 | * implementation uses legacy PCI PM support. This test | 284 | * implementation uses legacy PCI PM support. This test |
| @@ -526,6 +529,9 @@ static const struct pci_device_id pci_ids [] = { { | |||
| 526 | /* handle any USB 2.0 EHCI controller */ | 529 | /* handle any USB 2.0 EHCI controller */ |
| 527 | PCI_DEVICE_CLASS(PCI_CLASS_SERIAL_USB_EHCI, ~0), | 530 | PCI_DEVICE_CLASS(PCI_CLASS_SERIAL_USB_EHCI, ~0), |
| 528 | .driver_data = (unsigned long) &ehci_pci_hc_driver, | 531 | .driver_data = (unsigned long) &ehci_pci_hc_driver, |
| 532 | }, { | ||
| 533 | PCI_VDEVICE(STMICRO, PCI_DEVICE_ID_STMICRO_USB_HOST), | ||
| 534 | .driver_data = (unsigned long) &ehci_pci_hc_driver, | ||
| 529 | }, | 535 | }, |
| 530 | { /* end: all zeroes */ } | 536 | { /* end: all zeroes */ } |
| 531 | }; | 537 | }; |
diff --git a/drivers/usb/host/ohci-pci.c b/drivers/usb/host/ohci-pci.c index 6109810cc2d3..1843bb68ac7c 100644 --- a/drivers/usb/host/ohci-pci.c +++ b/drivers/usb/host/ohci-pci.c | |||
| @@ -397,6 +397,10 @@ static const struct pci_device_id pci_ids [] = { { | |||
| 397 | /* handle any USB OHCI controller */ | 397 | /* handle any USB OHCI controller */ |
| 398 | PCI_DEVICE_CLASS(PCI_CLASS_SERIAL_USB_OHCI, ~0), | 398 | PCI_DEVICE_CLASS(PCI_CLASS_SERIAL_USB_OHCI, ~0), |
| 399 | .driver_data = (unsigned long) &ohci_pci_hc_driver, | 399 | .driver_data = (unsigned long) &ohci_pci_hc_driver, |
| 400 | }, { | ||
| 401 | /* The device in the ConneXT I/O hub has no class reg */ | ||
| 402 | PCI_VDEVICE(STMICRO, PCI_DEVICE_ID_STMICRO_USB_OHCI), | ||
| 403 | .driver_data = (unsigned long) &ohci_pci_hc_driver, | ||
| 400 | }, { /* end: all zeroes */ } | 404 | }, { /* end: all zeroes */ } |
| 401 | }; | 405 | }; |
| 402 | MODULE_DEVICE_TABLE (pci, pci_ids); | 406 | MODULE_DEVICE_TABLE (pci, pci_ids); |
