[PATCH 6/21] usb: ehci-pci: Support Intel Medfield Platform USB OTG Host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Hao Wu <hao.wu@xxxxxxxxx>

This patch enables EHCI USB host function for Intel Medfield
Platform USB OTG host function.

Signed-off-by: Hao Wu <hao.wu@xxxxxxxxx>
---
 drivers/usb/host/ehci-hcd.c |    2 +-
 drivers/usb/host/ehci-pci.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index d399eaf..f1f12da 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -1155,7 +1155,7 @@ MODULE_LICENSE ("GPL");
 #ifdef CONFIG_PCI
 #include "ehci-pci.c"
 #define	PCI_DRIVER		ehci_pci_driver
-#ifdef CONFIG_USB_LANGWELL_OTG
+#if defined(CONFIG_USB_LANGWELL_OTG) || defined(CONFIG_USB_PENWELL_OTG)
 #include "ehci-langwell-pci.c"
 #define INTEL_MID_OTG_HOST_DRIVER	ehci_otg_driver
 #endif
diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
index bdf41a2..a3bd950 100644
--- a/drivers/usb/host/ehci-pci.c
+++ b/drivers/usb/host/ehci-pci.c
@@ -98,8 +98,8 @@ static int ehci_pci_setup(struct usb_hcd *hcd)
 		}
 		break;
 	case PCI_VENDOR_ID_INTEL:
-		if (pdev->device == 0x0811) {
-			ehci_info(ehci, "Detected Langwell OTG HC\n");
+		if (pdev->device == 0x0811 || pdev->device == 0x0829) {
+			ehci_info(ehci, "Detected Intel MID OTG HC\n");
 			hcd->has_tt = 1;
 			ehci->has_hostpc = 1;
 			ehci->has_otg = 1;
-- 
1.6.0.6

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux