aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91
diff options
context:
space:
mode:
authorBoris BREZILLON <boris.brezillon@free-electrons.com>2014-07-10 13:14:19 -0400
committerNicolas Ferre <nicolas.ferre@atmel.com>2014-08-19 14:32:47 -0400
commit91a55d4f690066a249d5cdeca86f0c3164301861 (patch)
tree725d28719fa3dd999294532ff1f0610d4ec09718 /arch/arm/mach-at91
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9 (diff)
ARM: at91: introduce OLD_IRQ_AT91 Kconfig option
Introduce the OLD_IRQ_AT91 Kconfig option to prepare migration to the new AIC driver. Select this option for all at91 SoCs and all available boards so that we can later move DT enabled boards to the new irq driver and keep the old implementation when legacy boards are selected. Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r--arch/arm/mach-at91/Kconfig17
-rw-r--r--arch/arm/mach-at91/Kconfig.non_dt6
-rw-r--r--arch/arm/mach-at91/Makefile3
3 files changed, 17 insertions, 9 deletions
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index 6cc6f7aebdae..3dc3a69b8430 100644
--- a/arch/arm/mach-at91/Kconfig
+++ b/arch/arm/mach-at91/Kconfig
@@ -28,6 +28,11 @@ config OLD_CLK_AT91
28 bool 28 bool
29 default AT91_PMC_UNIT && AT91_USE_OLD_CLK 29 default AT91_PMC_UNIT && AT91_USE_OLD_CLK
30 30
31config OLD_IRQ_AT91
32 bool
33 select MULTI_IRQ_HANDLER
34 select SPARSE_IRQ
35
31config AT91_SAM9_ALT_RESET 36config AT91_SAM9_ALT_RESET
32 bool 37 bool
33 default !ARCH_AT91X40 38 default !ARCH_AT91X40
@@ -47,16 +52,12 @@ config SOC_AT91SAM9
47 select AT91_SAM9_TIME 52 select AT91_SAM9_TIME
48 select CPU_ARM926T 53 select CPU_ARM926T
49 select GENERIC_CLOCKEVENTS 54 select GENERIC_CLOCKEVENTS
50 select MULTI_IRQ_HANDLER
51 select SPARSE_IRQ
52 55
53config SOC_SAMA5 56config SOC_SAMA5
54 bool 57 bool
55 select AT91_SAM9_TIME 58 select AT91_SAM9_TIME
56 select CPU_V7 59 select CPU_V7
57 select GENERIC_CLOCKEVENTS 60 select GENERIC_CLOCKEVENTS
58 select MULTI_IRQ_HANDLER
59 select SPARSE_IRQ
60 select USE_OF 61 select USE_OF
61 62
62menu "Atmel AT91 System-on-Chip" 63menu "Atmel AT91 System-on-Chip"
@@ -70,8 +71,7 @@ config ARCH_AT91X40
70 depends on !MMU 71 depends on !MMU
71 select CPU_ARM7TDMI 72 select CPU_ARM7TDMI
72 select ARCH_USES_GETTIMEOFFSET 73 select ARCH_USES_GETTIMEOFFSET
73 select MULTI_IRQ_HANDLER 74 select OLD_IRQ_AT91
74 select SPARSE_IRQ
75 75
76 help 76 help
77 Select this if you are using one of Atmel's AT91X40 SoC. 77 Select this if you are using one of Atmel's AT91X40 SoC.
@@ -111,8 +111,6 @@ config SOC_AT91RM9200
111 select CPU_ARM920T 111 select CPU_ARM920T
112 select GENERIC_CLOCKEVENTS 112 select GENERIC_CLOCKEVENTS
113 select HAVE_AT91_DBGU0 113 select HAVE_AT91_DBGU0
114 select MULTI_IRQ_HANDLER
115 select SPARSE_IRQ
116 select HAVE_AT91_USB_CLK 114 select HAVE_AT91_USB_CLK
117 115
118config SOC_AT91SAM9260 116config SOC_AT91SAM9260
@@ -195,6 +193,7 @@ comment "Generic Board Type"
195config MACH_AT91RM9200_DT 193config MACH_AT91RM9200_DT
196 bool "Atmel AT91RM9200 Evaluation Kits with device-tree support" 194 bool "Atmel AT91RM9200 Evaluation Kits with device-tree support"
197 depends on SOC_AT91RM9200 195 depends on SOC_AT91RM9200
196 select OLD_IRQ_AT91
198 select USE_OF 197 select USE_OF
199 help 198 help
200 Select this if you want to experiment device-tree with 199 Select this if you want to experiment device-tree with
@@ -203,6 +202,7 @@ config MACH_AT91RM9200_DT
203config MACH_AT91SAM9_DT 202config MACH_AT91SAM9_DT
204 bool "Atmel AT91SAM Evaluation Kits with device-tree support" 203 bool "Atmel AT91SAM Evaluation Kits with device-tree support"
205 depends on SOC_AT91SAM9 204 depends on SOC_AT91SAM9
205 select OLD_IRQ_AT91
206 select USE_OF 206 select USE_OF
207 help 207 help
208 Select this if you want to experiment device-tree with 208 Select this if you want to experiment device-tree with
@@ -211,6 +211,7 @@ config MACH_AT91SAM9_DT
211config MACH_SAMA5_DT 211config MACH_SAMA5_DT
212 bool "Atmel SAMA5 Evaluation Kits with device-tree support" 212 bool "Atmel SAMA5 Evaluation Kits with device-tree support"
213 depends on SOC_SAMA5 213 depends on SOC_SAMA5
214 select OLD_IRQ_AT91
214 select USE_OF 215 select USE_OF
215 select PHYLIB if NETDEVICES 216 select PHYLIB if NETDEVICES
216 help 217 help
diff --git a/arch/arm/mach-at91/Kconfig.non_dt b/arch/arm/mach-at91/Kconfig.non_dt
index 44ace320d2e1..b774c3d3c632 100644
--- a/arch/arm/mach-at91/Kconfig.non_dt
+++ b/arch/arm/mach-at91/Kconfig.non_dt
@@ -14,31 +14,37 @@ config ARCH_AT91RM9200
14 bool "AT91RM9200" 14 bool "AT91RM9200"
15 select SOC_AT91RM9200 15 select SOC_AT91RM9200
16 select AT91_USE_OLD_CLK 16 select AT91_USE_OLD_CLK
17 select OLD_IRQ_AT91
17 18
18config ARCH_AT91SAM9260 19config ARCH_AT91SAM9260
19 bool "AT91SAM9260 or AT91SAM9XE or AT91SAM9G20" 20 bool "AT91SAM9260 or AT91SAM9XE or AT91SAM9G20"
20 select SOC_AT91SAM9260 21 select SOC_AT91SAM9260
21 select AT91_USE_OLD_CLK 22 select AT91_USE_OLD_CLK
23 select OLD_IRQ_AT91
22 24
23config ARCH_AT91SAM9261 25config ARCH_AT91SAM9261
24 bool "AT91SAM9261 or AT91SAM9G10" 26 bool "AT91SAM9261 or AT91SAM9G10"
25 select SOC_AT91SAM9261 27 select SOC_AT91SAM9261
26 select AT91_USE_OLD_CLK 28 select AT91_USE_OLD_CLK
29 select OLD_IRQ_AT91
27 30
28config ARCH_AT91SAM9263 31config ARCH_AT91SAM9263
29 bool "AT91SAM9263" 32 bool "AT91SAM9263"
30 select SOC_AT91SAM9263 33 select SOC_AT91SAM9263
31 select AT91_USE_OLD_CLK 34 select AT91_USE_OLD_CLK
35 select OLD_IRQ_AT91
32 36
33config ARCH_AT91SAM9RL 37config ARCH_AT91SAM9RL
34 bool "AT91SAM9RL" 38 bool "AT91SAM9RL"
35 select SOC_AT91SAM9RL 39 select SOC_AT91SAM9RL
36 select AT91_USE_OLD_CLK 40 select AT91_USE_OLD_CLK
41 select OLD_IRQ_AT91
37 42
38config ARCH_AT91SAM9G45 43config ARCH_AT91SAM9G45
39 bool "AT91SAM9G45" 44 bool "AT91SAM9G45"
40 select SOC_AT91SAM9G45 45 select SOC_AT91SAM9G45
41 select AT91_USE_OLD_CLK 46 select AT91_USE_OLD_CLK
47 select OLD_IRQ_AT91
42 48
43endchoice 49endchoice
44 50
diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile
index 78e9cec282f4..d972fd67de83 100644
--- a/arch/arm/mach-at91/Makefile
+++ b/arch/arm/mach-at91/Makefile
@@ -2,11 +2,12 @@
2# Makefile for the linux kernel. 2# Makefile for the linux kernel.
3# 3#
4 4
5obj-y := irq.o gpio.o setup.o sysirq_mask.o 5obj-y := gpio.o setup.o sysirq_mask.o
6obj-m := 6obj-m :=
7obj-n := 7obj-n :=
8obj- := 8obj- :=
9 9
10obj-$(CONFIG_OLD_IRQ_AT91) += irq.o
10obj-$(CONFIG_OLD_CLK_AT91) += clock.o 11obj-$(CONFIG_OLD_CLK_AT91) += clock.o
11obj-$(CONFIG_AT91_SAM9_ALT_RESET) += at91sam9_alt_reset.o 12obj-$(CONFIG_AT91_SAM9_ALT_RESET) += at91sam9_alt_reset.o
12obj-$(CONFIG_AT91_SAM9G45_RESET) += at91sam9g45_reset.o 13obj-$(CONFIG_AT91_SAM9G45_RESET) += at91sam9g45_reset.o