diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2010-11-05 04:37:22 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-11-24 04:08:58 -0500 |
commit | c7259df3af03aee00985e9bb64fb2afa593f703f (patch) | |
tree | 1cfa894081ad2704e4047ee64a9d534d0dfc2f84 /arch/arm | |
parent | 7608d7d2b4a146f560436f5b99b1b93d30049e4e (diff) |
ARM i.MX irq: Compile avic irq code only on SoCs that need it
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>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-imx/Kconfig | 4 | ||||
-rw-r--r-- | arch/arm/mach-mx3/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/plat-mxc/Kconfig | 3 | ||||
-rw-r--r-- | arch/arm/plat-mxc/Makefile | 5 | ||||
-rw-r--r-- | arch/arm/plat-mxc/avic.c (renamed from arch/arm/plat-mxc/irq.c) | 0 |
5 files changed, 12 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 41b6450df810..8a9de1751b79 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig | |||
@@ -6,6 +6,7 @@ config SOC_IMX1 | |||
6 | select CPU_ARM920T | 6 | select CPU_ARM920T |
7 | select IMX_HAVE_DMA_V1 | 7 | select IMX_HAVE_DMA_V1 |
8 | select IMX_HAVE_IOMUX_V1 | 8 | select IMX_HAVE_IOMUX_V1 |
9 | select MXC_AVIC | ||
9 | 10 | ||
10 | config SOC_IMX21 | 11 | config SOC_IMX21 |
11 | bool | 12 | bool |
@@ -13,12 +14,14 @@ config SOC_IMX21 | |||
13 | select ARCH_MXC_AUDMUX_V1 | 14 | select ARCH_MXC_AUDMUX_V1 |
14 | select IMX_HAVE_DMA_V1 | 15 | select IMX_HAVE_DMA_V1 |
15 | select IMX_HAVE_IOMUX_V1 | 16 | select IMX_HAVE_IOMUX_V1 |
17 | select MXC_AVIC | ||
16 | 18 | ||
17 | config SOC_IMX25 | 19 | config SOC_IMX25 |
18 | bool | 20 | bool |
19 | select CPU_ARM926T | 21 | select CPU_ARM926T |
20 | select ARCH_MXC_AUDMUX_V2 | 22 | select ARCH_MXC_AUDMUX_V2 |
21 | select ARCH_MXC_IOMUX_V3 | 23 | select ARCH_MXC_IOMUX_V3 |
24 | select MXC_AVIC | ||
22 | 25 | ||
23 | config SOC_IMX27 | 26 | config SOC_IMX27 |
24 | bool | 27 | bool |
@@ -26,6 +29,7 @@ config SOC_IMX27 | |||
26 | select ARCH_MXC_AUDMUX_V1 | 29 | select ARCH_MXC_AUDMUX_V1 |
27 | select IMX_HAVE_DMA_V1 | 30 | select IMX_HAVE_DMA_V1 |
28 | select IMX_HAVE_IOMUX_V1 | 31 | select IMX_HAVE_IOMUX_V1 |
32 | select MXC_AVIC | ||
29 | 33 | ||
30 | if ARCH_MX1 | 34 | if ARCH_MX1 |
31 | 35 | ||
diff --git a/arch/arm/mach-mx3/Kconfig b/arch/arm/mach-mx3/Kconfig index a682c03a1f94..165e7221c500 100644 --- a/arch/arm/mach-mx3/Kconfig +++ b/arch/arm/mach-mx3/Kconfig | |||
@@ -15,6 +15,7 @@ config SOC_IMX31 | |||
15 | select IMX_HAVE_PLATFORM_MXC_RNGA | 15 | select IMX_HAVE_PLATFORM_MXC_RNGA |
16 | select ARCH_MXC_AUDMUX_V2 | 16 | select ARCH_MXC_AUDMUX_V2 |
17 | select ARCH_MX31 | 17 | select ARCH_MX31 |
18 | select MXC_AVIC | ||
18 | 19 | ||
19 | config SOC_IMX35 | 20 | config SOC_IMX35 |
20 | bool | 21 | bool |
@@ -22,6 +23,7 @@ config SOC_IMX35 | |||
22 | select ARCH_MXC_AUDMUX_V2 | 23 | select ARCH_MXC_AUDMUX_V2 |
23 | select HAVE_EPIT | 24 | select HAVE_EPIT |
24 | select ARCH_MX35 | 25 | select ARCH_MX35 |
26 | select MXC_AVIC | ||
25 | 27 | ||
26 | comment "MX3 platforms:" | 28 | comment "MX3 platforms:" |
27 | 29 | ||
diff --git a/arch/arm/plat-mxc/Kconfig b/arch/arm/plat-mxc/Kconfig index a31fa161bb6d..6c66bc0521d8 100644 --- a/arch/arm/plat-mxc/Kconfig +++ b/arch/arm/plat-mxc/Kconfig | |||
@@ -70,6 +70,9 @@ config MXC_TZIC | |||
70 | containing this interrupt controller. | 70 | containing this interrupt controller. |
71 | Say N here only if you are really sure. | 71 | Say N here only if you are really sure. |
72 | 72 | ||
73 | config MXC_AVIC | ||
74 | bool | ||
75 | |||
73 | config MXC_PWM | 76 | config MXC_PWM |
74 | tristate "Enable PWM driver" | 77 | tristate "Enable PWM driver" |
75 | select HAVE_PWM | 78 | select HAVE_PWM |
diff --git a/arch/arm/plat-mxc/Makefile b/arch/arm/plat-mxc/Makefile index 372670952789..989cb59e67ac 100644 --- a/arch/arm/plat-mxc/Makefile +++ b/arch/arm/plat-mxc/Makefile | |||
@@ -3,10 +3,11 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | # Common support | 5 | # Common support |
6 | obj-y := irq.o clock.o gpio.o time.o devices.o cpu.o system.o | 6 | obj-y := clock.o gpio.o time.o devices.o cpu.o system.o |
7 | 7 | ||
8 | # MX51 uses the TZIC interrupt controller, older platforms use AVIC (irq.o) | 8 | # MX51 uses the TZIC interrupt controller, older platforms use AVIC |
9 | obj-$(CONFIG_MXC_TZIC) += tzic.o | 9 | obj-$(CONFIG_MXC_TZIC) += tzic.o |
10 | obj-$(CONFIG_MXC_AVIC) += avic.o | ||
10 | 11 | ||
11 | obj-$(CONFIG_IMX_HAVE_IOMUX_V1) += iomux-v1.o | 12 | obj-$(CONFIG_IMX_HAVE_IOMUX_V1) += iomux-v1.o |
12 | obj-$(CONFIG_ARCH_MXC_IOMUX_V3) += iomux-v3.o | 13 | obj-$(CONFIG_ARCH_MXC_IOMUX_V3) += iomux-v3.o |
diff --git a/arch/arm/plat-mxc/irq.c b/arch/arm/plat-mxc/avic.c index 7331f2ace5fe..7331f2ace5fe 100644 --- a/arch/arm/plat-mxc/irq.c +++ b/arch/arm/plat-mxc/avic.c | |||