usb: omap: avoid mach/*.h headers
authorArnd Bergmann <arnd@arndb.de>
Tue, 6 Aug 2019 14:10:57 +0000 (16:10 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 21 Apr 2022 13:01:32 +0000 (15:01 +0200)
The omap usb drivers still rely on mach/*.h headers that
are explicitly or implicitly included, but all the required
definitions are now in include/linux/soc/ti/, so use those
instead and allow compile-testing on other architectures.

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/usb/gadget/udc/Kconfig
drivers/usb/gadget/udc/omap_udc.c
drivers/usb/host/Kconfig
drivers/usb/host/ohci-omap.c
drivers/usb/phy/Kconfig
drivers/usb/phy/phy-isp1301-omap.c

index 69394dc..cee934d 100644 (file)
@@ -128,7 +128,7 @@ config USB_GR_UDC
 
 config USB_OMAP
        tristate "OMAP USB Device Controller"
-       depends on ARCH_OMAP1
+       depends on ARCH_OMAP1 || (ARCH_OMAP && COMPILE_TEST)
        depends on ISP1301_OMAP || !(MACH_OMAP_H2 || MACH_OMAP_H3)
        help
           Many Texas Instruments OMAP processors have flexible full
index b1da584..5096d24 100644 (file)
@@ -43,6 +43,8 @@
 #include <linux/platform_data/usb-omap1.h>
 
 #include <linux/soc/ti/omap1-usb.h>
+#include <linux/soc/ti/omap1-soc.h>
+#include <linux/soc/ti/omap1-io.h>
 
 #include "omap_udc.h"
 
index 57ca5f9..682b3d2 100644 (file)
@@ -214,7 +214,7 @@ config USB_EHCI_HCD_NPCM7XX
 
 config USB_EHCI_HCD_OMAP
        tristate "EHCI support for OMAP3 and later chips"
-       depends on ARCH_OMAP
+       depends on ARCH_OMAP || COMPILE_TEST
        depends on NOP_USB_XCEIV
        default y
        help
index 7be1ffe..750a90c 100644 (file)
@@ -27,6 +27,9 @@
 #include <linux/platform_device.h>
 #include <linux/platform_data/usb-omap1.h>
 #include <linux/soc/ti/omap1-usb.h>
+#include <linux/soc/ti/omap1-mux.h>
+#include <linux/soc/ti/omap1-soc.h>
+#include <linux/soc/ti/omap1-io.h>
 #include <linux/signal.h>
 #include <linux/usb.h>
 #include <linux/usb/hcd.h>
 #include <asm/io.h>
 #include <asm/mach-types.h>
 
-#include <mach/mux.h>
-
-#include <mach/hardware.h>
-
 #define DRIVER_DESC "OHCI OMAP driver"
 
 struct ohci_omap_priv {
index 52eebcb..2acbe41 100644 (file)
@@ -30,7 +30,8 @@ config FSL_USB2_OTG
 
 config ISP1301_OMAP
        tristate "Philips ISP1301 with OMAP OTG"
-       depends on I2C && ARCH_OMAP_OTG
+       depends on I2C
+       depends on ARCH_OMAP_OTG || (ARM && COMPILE_TEST)
        depends on USB
        depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't be 'y'
        select USB_PHY
index 88aade8..f8bd93f 100644 (file)
@@ -23,9 +23,9 @@
 #include <asm/irq.h>
 #include <asm/mach-types.h>
 
-#include <mach/mux.h>
-
+#include <linux/soc/ti/omap1-mux.h>
 #include <linux/soc/ti/omap1-usb.h>
+#include <linux/soc/ti/omap1-io.h>
 
 #undef VERBOSE