aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2013-07-02 05:27:33 -0400
committerSimon Horman <horms+renesas@verge.net.au>2013-07-16 21:02:28 -0400
commit4146fa8861419ac0d2c3607168339621586f6c03 (patch)
treed72477cc99e221d321f030dc032cb7d1e7793061 /arch/arm
parentfdbc45dbbe5a69a2c665630ab577726e01eadf23 (diff)
ARM: shmobile: Remove unused EMEV2/KZM9D early console
Remove EMEV2 early console code from KZM9D and instead rely on console setup during regular platform device probe time. This makes the DT code and the KZM9D board support behave the same. 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')
-rw-r--r--arch/arm/mach-shmobile/board-kzm9d.c2
-rw-r--r--arch/arm/mach-shmobile/include/mach/emev2.h2
-rw-r--r--arch/arm/mach-shmobile/setup-emev2.c24
3 files changed, 5 insertions, 23 deletions
diff --git a/arch/arm/mach-shmobile/board-kzm9d.c b/arch/arm/mach-shmobile/board-kzm9d.c
index 4368000e1127..15900f1f8af7 100644
--- a/arch/arm/mach-shmobile/board-kzm9d.c
+++ b/arch/arm/mach-shmobile/board-kzm9d.c
@@ -85,7 +85,7 @@ static const char *kzm9d_boards_compat_dt[] __initdata = {
85DT_MACHINE_START(KZM9D_DT, "kzm9d") 85DT_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_add_early_devices, 88 .init_early = emev2_init_delay,
89 .nr_irqs = NR_IRQS_LEGACY, 89 .nr_irqs = NR_IRQS_LEGACY,
90 .init_irq = emev2_init_irq, 90 .init_irq = emev2_init_irq,
91 .init_machine = kzm9d_add_standard_devices, 91 .init_machine = kzm9d_add_standard_devices,
diff --git a/arch/arm/mach-shmobile/include/mach/emev2.h b/arch/arm/mach-shmobile/include/mach/emev2.h
index ac3751705cab..3e0c0441c782 100644
--- a/arch/arm/mach-shmobile/include/mach/emev2.h
+++ b/arch/arm/mach-shmobile/include/mach/emev2.h
@@ -3,7 +3,7 @@
3 3
4extern void emev2_map_io(void); 4extern void emev2_map_io(void);
5extern void emev2_init_irq(void); 5extern void emev2_init_irq(void);
6extern void emev2_add_early_devices(void); 6extern void emev2_init_delay(void);
7extern void emev2_add_standard_devices(void); 7extern void emev2_add_standard_devices(void);
8extern void emev2_clock_init(void); 8extern void emev2_clock_init(void);
9extern void emev2_set_boot_vector(unsigned long value); 9extern void emev2_set_boot_vector(unsigned long value);
diff --git a/arch/arm/mach-shmobile/setup-emev2.c b/arch/arm/mach-shmobile/setup-emev2.c
index b0564ce116e5..f6edd190a6b4 100644
--- a/arch/arm/mach-shmobile/setup-emev2.c
+++ b/arch/arm/mach-shmobile/setup-emev2.c
@@ -375,14 +375,11 @@ static struct platform_device pmu_device = {
375 .resource = pmu_resources, 375 .resource = pmu_resources,
376}; 376};
377 377
378static struct platform_device *emev2_early_devices[] __initdata = { 378static struct platform_device *emev2_devices[] __initdata = {
379 &uart0_device, 379 &uart0_device,
380 &uart1_device, 380 &uart1_device,
381 &uart2_device, 381 &uart2_device,
382 &uart3_device, 382 &uart3_device,
383};
384
385static struct platform_device *emev2_late_devices[] __initdata = {
386 &sti_device, 383 &sti_device,
387 &gio0_device, 384 &gio0_device,
388 &gio1_device, 385 &gio1_device,
@@ -396,29 +393,14 @@ void __init emev2_add_standard_devices(void)
396{ 393{
397 emev2_clock_init(); 394 emev2_clock_init();
398 395
399 platform_add_devices(emev2_early_devices, 396 platform_add_devices(emev2_devices, ARRAY_SIZE(emev2_devices));
400 ARRAY_SIZE(emev2_early_devices));
401
402 platform_add_devices(emev2_late_devices,
403 ARRAY_SIZE(emev2_late_devices));
404} 397}
405 398
406static void __init emev2_init_delay(void) 399void __init emev2_init_delay(void)
407{ 400{
408 shmobile_setup_delay(533, 1, 3); /* Cortex-A9 @ 533MHz */ 401 shmobile_setup_delay(533, 1, 3); /* Cortex-A9 @ 533MHz */
409} 402}
410 403
411void __init emev2_add_early_devices(void)
412{
413 emev2_init_delay();
414
415 early_platform_add_devices(emev2_early_devices,
416 ARRAY_SIZE(emev2_early_devices));
417
418 /* setup early console here as well */
419 shmobile_setup_console();
420}
421
422void __init emev2_init_irq(void) 404void __init emev2_init_irq(void)
423{ 405{
424 void __iomem *gic_dist_base; 406 void __iomem *gic_dist_base;