diff options
author | Magnus Damm <damm@opensource.se> | 2013-07-02 05:28:06 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-07-16 21:06:45 -0400 |
commit | 23260e1b417843ea875bd7b21f17c5c80031c4cd (patch) | |
tree | 219e4123baf0c7bf0ca64783536fa77983ab5a9d /arch/arm/mach-shmobile | |
parent | 12d035b13b224ee69886b64fd33d1c1224e79187 (diff) |
ARM: shmobile: Use DT for GIC on EMEV2 and KZM9D
Remove the C version of the EMEV2 GIC setup code,
instead rely on GIC information provided by DT.
Signed-off-by: Magnus Damm <damm@opensource.se>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r-- | arch/arm/mach-shmobile/board-kzm9d.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/emev2.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/setup-emev2.c | 15 |
3 files changed, 0 insertions, 18 deletions
diff --git a/arch/arm/mach-shmobile/board-kzm9d.c b/arch/arm/mach-shmobile/board-kzm9d.c index 15900f1f8af7..30c2cc695b12 100644 --- a/arch/arm/mach-shmobile/board-kzm9d.c +++ b/arch/arm/mach-shmobile/board-kzm9d.c | |||
@@ -86,8 +86,6 @@ DT_MACHINE_START(KZM9D_DT, "kzm9d") | |||
86 | .smp = smp_ops(emev2_smp_ops), | 86 | .smp = smp_ops(emev2_smp_ops), |
87 | .map_io = emev2_map_io, | 87 | .map_io = emev2_map_io, |
88 | .init_early = emev2_init_delay, | 88 | .init_early = emev2_init_delay, |
89 | .nr_irqs = NR_IRQS_LEGACY, | ||
90 | .init_irq = emev2_init_irq, | ||
91 | .init_machine = kzm9d_add_standard_devices, | 89 | .init_machine = kzm9d_add_standard_devices, |
92 | .init_late = shmobile_init_late, | 90 | .init_late = shmobile_init_late, |
93 | .dt_compat = kzm9d_boards_compat_dt, | 91 | .dt_compat = kzm9d_boards_compat_dt, |
diff --git a/arch/arm/mach-shmobile/include/mach/emev2.h b/arch/arm/mach-shmobile/include/mach/emev2.h index 3e0c0441c782..b0ab4b72770a 100644 --- a/arch/arm/mach-shmobile/include/mach/emev2.h +++ b/arch/arm/mach-shmobile/include/mach/emev2.h | |||
@@ -2,7 +2,6 @@ | |||
2 | #define __ASM_EMEV2_H__ | 2 | #define __ASM_EMEV2_H__ |
3 | 3 | ||
4 | extern void emev2_map_io(void); | 4 | extern void emev2_map_io(void); |
5 | extern void emev2_init_irq(void); | ||
6 | extern void emev2_init_delay(void); | 5 | extern void emev2_init_delay(void); |
7 | extern void emev2_add_standard_devices(void); | 6 | extern void emev2_add_standard_devices(void); |
8 | extern void emev2_clock_init(void); | 7 | extern void emev2_clock_init(void); |
diff --git a/arch/arm/mach-shmobile/setup-emev2.c b/arch/arm/mach-shmobile/setup-emev2.c index e4b46930db52..6fa485dacc9c 100644 --- a/arch/arm/mach-shmobile/setup-emev2.c +++ b/arch/arm/mach-shmobile/setup-emev2.c | |||
@@ -202,20 +202,6 @@ void __init emev2_init_delay(void) | |||
202 | shmobile_setup_delay(533, 1, 3); /* Cortex-A9 @ 533MHz */ | 202 | shmobile_setup_delay(533, 1, 3); /* Cortex-A9 @ 533MHz */ |
203 | } | 203 | } |
204 | 204 | ||
205 | void __init emev2_init_irq(void) | ||
206 | { | ||
207 | void __iomem *gic_dist_base; | ||
208 | void __iomem *gic_cpu_base; | ||
209 | |||
210 | /* Static mappings, never released */ | ||
211 | gic_dist_base = ioremap(0xe0028000, PAGE_SIZE); | ||
212 | gic_cpu_base = ioremap(0xe0020000, PAGE_SIZE); | ||
213 | BUG_ON(!gic_dist_base || !gic_cpu_base); | ||
214 | |||
215 | /* Use GIC to handle interrupts */ | ||
216 | gic_init(0, 29, gic_dist_base, gic_cpu_base); | ||
217 | } | ||
218 | |||
219 | #ifdef CONFIG_USE_OF | 205 | #ifdef CONFIG_USE_OF |
220 | 206 | ||
221 | static const char *emev2_boards_compat_dt[] __initdata = { | 207 | static const char *emev2_boards_compat_dt[] __initdata = { |
@@ -226,7 +212,6 @@ static const char *emev2_boards_compat_dt[] __initdata = { | |||
226 | DT_MACHINE_START(EMEV2_DT, "Generic Emma Mobile EV2 (Flattened Device Tree)") | 212 | DT_MACHINE_START(EMEV2_DT, "Generic Emma Mobile EV2 (Flattened Device Tree)") |
227 | .smp = smp_ops(emev2_smp_ops), | 213 | .smp = smp_ops(emev2_smp_ops), |
228 | .init_early = emev2_init_delay, | 214 | .init_early = emev2_init_delay, |
229 | .nr_irqs = NR_IRQS_LEGACY, | ||
230 | .dt_compat = emev2_boards_compat_dt, | 215 | .dt_compat = emev2_boards_compat_dt, |
231 | MACHINE_END | 216 | MACHINE_END |
232 | 217 | ||