drivers: bus: Move the OMAP interconnect driver to drivers/bus/
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Fri, 14 Sep 2012 09:20:34 +0000 (14:50 +0530)
committerArnd Bergmann <arnd@arndb.de>
Wed, 19 Sep 2012 14:53:26 +0000 (16:53 +0200)
OMAP interconnect drivers are used for the interconnect error handling.
Since they are bus driver, lets move it to newly created drivers/bus.

Tested-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-omap2/Kconfig
arch/arm/mach-omap2/Makefile
drivers/bus/Kconfig
drivers/bus/Makefile
drivers/bus/omap_l3_noc.c [moved from arch/arm/mach-omap2/omap_l3_noc.c with 100% similarity]
drivers/bus/omap_l3_noc.h [moved from arch/arm/mach-omap2/omap_l3_noc.h with 100% similarity]
drivers/bus/omap_l3_smx.c [moved from arch/arm/mach-omap2/omap_l3_smx.c with 100% similarity]
drivers/bus/omap_l3_smx.h [moved from arch/arm/mach-omap2/omap_l3_smx.h with 100% similarity]

index dd2db02..7d3c8ab 100644 (file)
@@ -44,6 +44,7 @@ config ARCH_OMAP3
        select ARM_CPU_SUSPEND if PM
        select MULTI_IRQ_HANDLER
        select SOC_HAS_OMAP2_SDRC
+       select OMAP_INTERCONNECT
 
 config ARCH_OMAP4
        bool "TI OMAP4"
@@ -63,6 +64,7 @@ config ARCH_OMAP4
        select USB_ARCH_HAS_EHCI if USB_SUPPORT
        select ARM_CPU_SUSPEND if PM
        select ARCH_NEEDS_CPU_IDLE_COUPLED
+       select OMAP_INTERCONNECT
 
 config SOC_OMAP5
        bool "TI OMAP5"
index f6a24b3..7fed980 100644 (file)
@@ -199,11 +199,6 @@ obj-$(CONFIG_ARCH_OMAP4)           += omap_hwmod_44xx_data.o
 # EMU peripherals
 obj-$(CONFIG_OMAP3_EMU)                        += emu.o
 
-# L3 interconnect
-obj-$(CONFIG_ARCH_OMAP3)               += omap_l3_smx.o
-obj-$(CONFIG_ARCH_OMAP4)               += omap_l3_noc.o
-obj-$(CONFIG_SOC_OMAP5)                        += omap_l3_noc.o
-
 obj-$(CONFIG_OMAP_MBOX_FWK)            += mailbox_mach.o
 mailbox_mach-objs                      := mailbox.o
 
index 6270415..bbec35d 100644 (file)
@@ -12,4 +12,10 @@ config OMAP_OCP2SCP
          OCP2SCP and in OMAP5, both USB PHY and SATA PHY is connected via
          OCP2SCP.
 
+config OMAP_INTERCONNECT
+       tristate "OMAP INTERCONNECT DRIVER"
+       depends on ARCH_OMAP2PLUS
+
+       help
+         Driver to enable OMAP interconnect error handling driver.
 endmenu
index 0ec50bc..45d997c 100644 (file)
@@ -3,3 +3,6 @@
 #
 
 obj-$(CONFIG_OMAP_OCP2SCP)     += omap-ocp2scp.o
+
+# Interconnect bus driver for OMAP SoCs.
+obj-$(CONFIG_OMAP_INTERCONNECT)        += omap_l3_smx.o omap_l3_noc.o