]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM i.MX irq: Compile avic irq code only on SoCs that need it
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 5 Nov 2010 08:37:22 +0000 (09:37 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Wed, 24 Nov 2010 09:08:58 +0000 (10:08 +0100)
This patch adds a Kconfig option for the avic irq controller
and lets the SoCs that need it select this option.
Also, as we have two irq controllers for i.MX, irq.c is not
appropriate anymore, so rename it to avic.c

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-imx/Kconfig
arch/arm/mach-mx3/Kconfig
arch/arm/plat-mxc/Kconfig
arch/arm/plat-mxc/Makefile
arch/arm/plat-mxc/avic.c [moved from arch/arm/plat-mxc/irq.c with 100% similarity]

index 41b6450df810f85a482d9ca90578bdfb40575c8b..8a9de1751b7910cf2ee0b09ba4aca3e89a15adf6 100644 (file)
@@ -6,6 +6,7 @@ config SOC_IMX1
        select CPU_ARM920T
        select IMX_HAVE_DMA_V1
        select IMX_HAVE_IOMUX_V1
+       select MXC_AVIC
 
 config SOC_IMX21
        bool
@@ -13,12 +14,14 @@ config SOC_IMX21
        select ARCH_MXC_AUDMUX_V1
        select IMX_HAVE_DMA_V1
        select IMX_HAVE_IOMUX_V1
+       select MXC_AVIC
 
 config SOC_IMX25
        bool
        select CPU_ARM926T
        select ARCH_MXC_AUDMUX_V2
        select ARCH_MXC_IOMUX_V3
+       select MXC_AVIC
 
 config SOC_IMX27
        bool
@@ -26,6 +29,7 @@ config SOC_IMX27
        select ARCH_MXC_AUDMUX_V1
        select IMX_HAVE_DMA_V1
        select IMX_HAVE_IOMUX_V1
+       select MXC_AVIC
 
 if ARCH_MX1
 
index a682c03a1f94876754debb50a9541136c70e879a..165e7221c500f8d4c2f682620e3ccbe15ec17732 100644 (file)
@@ -15,6 +15,7 @@ config SOC_IMX31
        select IMX_HAVE_PLATFORM_MXC_RNGA
        select ARCH_MXC_AUDMUX_V2
        select ARCH_MX31
+       select MXC_AVIC
 
 config SOC_IMX35
        bool
@@ -22,6 +23,7 @@ config SOC_IMX35
        select ARCH_MXC_AUDMUX_V2
        select HAVE_EPIT
        select ARCH_MX35
+       select MXC_AVIC
 
 comment "MX3 platforms:"
 
index a31fa161bb6d5fa6df0a3bf94683e7745f3f4355..6c66bc0521d81d02f62ce29298b8ced713c665d8 100644 (file)
@@ -70,6 +70,9 @@ config MXC_TZIC
          containing this interrupt controller.
          Say N here only if you are really sure.
 
+config MXC_AVIC
+       bool
+
 config MXC_PWM
        tristate "Enable PWM driver"
        select HAVE_PWM
index 372670952789a0e6d583ec1186721d62ba1c9085..989cb59e67ac648ac8530f702c3481722d8b8b43 100644 (file)
@@ -3,10 +3,11 @@
 #
 
 # Common support
-obj-y := irq.o clock.o gpio.o time.o devices.o cpu.o system.o
+obj-y := clock.o gpio.o time.o devices.o cpu.o system.o
 
-# MX51 uses the TZIC interrupt controller, older platforms use AVIC (irq.o)
+# MX51 uses the TZIC interrupt controller, older platforms use AVIC
 obj-$(CONFIG_MXC_TZIC) += tzic.o
+obj-$(CONFIG_MXC_AVIC) += avic.o
 
 obj-$(CONFIG_IMX_HAVE_IOMUX_V1) += iomux-v1.o
 obj-$(CONFIG_ARCH_MXC_IOMUX_V3) += iomux-v3.o