usb: make the MTK XHCI driver compile for older MIPS SoCs
authorJohn Crispin <john@phrozen.org>
Tue, 20 Dec 2016 18:08:58 +0000 (19:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Oct 2017 08:26:04 +0000 (10:26 +0200)
[ Upstream commit 808cf33d4817c730008de9b2736b357708a3d7f6 ]

The MIPS based MT7621 shares the same XHCI core as the newer generation of
ARM based SoCs. The driver works out of the box and we only need to make it
buildable in Kconfig.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/Kconfig

index 0b80cee..eb121b2 100644 (file)
@@ -45,9 +45,9 @@ config USB_XHCI_PLATFORM
          If unsure, say N.
 
 config USB_XHCI_MTK
-       tristate "xHCI support for Mediatek MT65xx"
+       tristate "xHCI support for Mediatek MT65xx/MT7621"
        select MFD_SYSCON
-       depends on ARCH_MEDIATEK || COMPILE_TEST
+       depends on (MIPS && SOC_MT7621) || ARCH_MEDIATEK || COMPILE_TEST
        ---help---
          Say 'Y' to enable the support for the xHCI host controller
          found in Mediatek MT65xx SoCs.