diff options
author | Barry Song <Baohua.Song@csr.com> | 2012-08-23 01:41:59 -0400 |
---|---|---|
committer | Barry Song <Barry.Song@csr.com> | 2012-08-28 05:06:10 -0400 |
commit | c1e3c1196be37acaea95803043bc1055ea5131ac (patch) | |
tree | 51312f4cb63ced129b9050a1039d24b072e7d5c0 /arch/arm/mach-prima2 | |
parent | 156a09979710f260f4482961869d6260148341e9 (diff) |
ARM: SIRF: make sirf irqchip driver optional since new SoCs will have GIC
New MARCO and POLO SoC use GIC, so make irq.c optional and enable it
only if we enable ARCH_PRIMA2 in Kconfig
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Diffstat (limited to 'arch/arm/mach-prima2')
-rw-r--r-- | arch/arm/mach-prima2/Kconfig | 4 | ||||
-rw-r--r-- | arch/arm/mach-prima2/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/mach-prima2/irq.c | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mach-prima2/Kconfig b/arch/arm/mach-prima2/Kconfig index 65438e139037..41fc85327673 100644 --- a/arch/arm/mach-prima2/Kconfig +++ b/arch/arm/mach-prima2/Kconfig | |||
@@ -7,9 +7,13 @@ config ARCH_PRIMA2 | |||
7 | default y | 7 | default y |
8 | select CPU_V7 | 8 | select CPU_V7 |
9 | select ZONE_DMA | 9 | select ZONE_DMA |
10 | select SIRF_IRQ | ||
10 | help | 11 | help |
11 | Support for CSR SiRFSoC ARM Cortex A9 Platform | 12 | Support for CSR SiRFSoC ARM Cortex A9 Platform |
12 | 13 | ||
13 | endmenu | 14 | endmenu |
14 | 15 | ||
16 | config SIRF_IRQ | ||
17 | bool | ||
18 | |||
15 | endif | 19 | endif |
diff --git a/arch/arm/mach-prima2/Makefile b/arch/arm/mach-prima2/Makefile index f2cde60812a6..fc9ce22e2b5a 100644 --- a/arch/arm/mach-prima2/Makefile +++ b/arch/arm/mach-prima2/Makefile | |||
@@ -1,8 +1,8 @@ | |||
1 | obj-y := timer.o | 1 | obj-y := timer.o |
2 | obj-y += irq.o | ||
3 | obj-y += rstc.o | 2 | obj-y += rstc.o |
4 | obj-y += common.o | 3 | obj-y += common.o |
5 | obj-y += rtciobrg.o | 4 | obj-y += rtciobrg.o |
6 | obj-$(CONFIG_DEBUG_LL) += lluart.o | 5 | obj-$(CONFIG_DEBUG_LL) += lluart.o |
7 | obj-$(CONFIG_CACHE_L2X0) += l2x0.o | 6 | obj-$(CONFIG_CACHE_L2X0) += l2x0.o |
8 | obj-$(CONFIG_SUSPEND) += pm.o sleep.o | 7 | obj-$(CONFIG_SUSPEND) += pm.o sleep.o |
8 | obj-$(CONFIG_SIRF_IRQ) += irq.o | ||
diff --git a/arch/arm/mach-prima2/irq.c b/arch/arm/mach-prima2/irq.c index a7b9415d30f8..7dee9176e77a 100644 --- a/arch/arm/mach-prima2/irq.c +++ b/arch/arm/mach-prima2/irq.c | |||
@@ -63,7 +63,7 @@ void __init sirfsoc_of_irq_init(void) | |||
63 | 63 | ||
64 | np = of_find_matching_node(NULL, intc_ids); | 64 | np = of_find_matching_node(NULL, intc_ids); |
65 | if (!np) | 65 | if (!np) |
66 | panic("unable to find compatible intc node in dtb\n"); | 66 | return; |
67 | 67 | ||
68 | sirfsoc_intc_base = of_iomap(np, 0); | 68 | sirfsoc_intc_base = of_iomap(np, 0); |
69 | if (!sirfsoc_intc_base) | 69 | if (!sirfsoc_intc_base) |