diff options
Diffstat (limited to 'arch/arm/mach-shmobile/board-ape6evm.c')
| -rw-r--r-- | arch/arm/mach-shmobile/board-ape6evm.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-ape6evm.c b/arch/arm/mach-shmobile/board-ape6evm.c index 66f67816a844..444f22d370f0 100644 --- a/arch/arm/mach-shmobile/board-ape6evm.c +++ b/arch/arm/mach-shmobile/board-ape6evm.c | |||
| @@ -18,6 +18,8 @@ | |||
| 18 | #include <linux/gpio_keys.h> | 18 | #include <linux/gpio_keys.h> |
| 19 | #include <linux/input.h> | 19 | #include <linux/input.h> |
| 20 | #include <linux/interrupt.h> | 20 | #include <linux/interrupt.h> |
| 21 | #include <linux/irqchip.h> | ||
| 22 | #include <linux/irqchip/arm-gic.h> | ||
| 21 | #include <linux/kernel.h> | 23 | #include <linux/kernel.h> |
| 22 | #include <linux/mfd/tmio.h> | 24 | #include <linux/mfd/tmio.h> |
| 23 | #include <linux/mmc/host.h> | 25 | #include <linux/mmc/host.h> |
| @@ -273,6 +275,22 @@ static void __init ape6evm_add_standard_devices(void) | |||
| 273 | sizeof(ape6evm_leds_pdata)); | 275 | sizeof(ape6evm_leds_pdata)); |
| 274 | } | 276 | } |
| 275 | 277 | ||
| 278 | static void __init ape6evm_legacy_init_time(void) | ||
| 279 | { | ||
| 280 | /* Do not invoke DT-based timers via clocksource_of_init() */ | ||
| 281 | } | ||
| 282 | |||
| 283 | static void __init ape6evm_legacy_init_irq(void) | ||
| 284 | { | ||
| 285 | void __iomem *gic_dist_base = ioremap_nocache(0xf1001000, 0x1000); | ||
| 286 | void __iomem *gic_cpu_base = ioremap_nocache(0xf1002000, 0x1000); | ||
| 287 | |||
| 288 | gic_init(0, 29, gic_dist_base, gic_cpu_base); | ||
| 289 | |||
| 290 | /* Do not invoke DT-based interrupt code via irqchip_init() */ | ||
| 291 | } | ||
| 292 | |||
| 293 | |||
| 276 | static const char *ape6evm_boards_compat_dt[] __initdata = { | 294 | static const char *ape6evm_boards_compat_dt[] __initdata = { |
| 277 | "renesas,ape6evm", | 295 | "renesas,ape6evm", |
| 278 | NULL, | 296 | NULL, |
| @@ -280,7 +298,9 @@ static const char *ape6evm_boards_compat_dt[] __initdata = { | |||
| 280 | 298 | ||
| 281 | DT_MACHINE_START(APE6EVM_DT, "ape6evm") | 299 | DT_MACHINE_START(APE6EVM_DT, "ape6evm") |
| 282 | .init_early = shmobile_init_delay, | 300 | .init_early = shmobile_init_delay, |
| 301 | .init_irq = ape6evm_legacy_init_irq, | ||
| 283 | .init_machine = ape6evm_add_standard_devices, | 302 | .init_machine = ape6evm_add_standard_devices, |
| 284 | .init_late = shmobile_init_late, | 303 | .init_late = shmobile_init_late, |
| 285 | .dt_compat = ape6evm_boards_compat_dt, | 304 | .dt_compat = ape6evm_boards_compat_dt, |
| 305 | .init_time = ape6evm_legacy_init_time, | ||
| 286 | MACHINE_END | 306 | MACHINE_END |
