ARM: shmobile: r8a73a4: Use shmobile_init_delay()
authorMagnus Damm <damm+renesas@opensource.se>
Wed, 20 Aug 2014 13:03:03 +0000 (22:03 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 22 Aug 2014 02:31:56 +0000 (11:31 +0900)
Adjust the r8a73a4 SoC support code to use shmobile_init_delay()
together with CPU Frequency settings from the DTS. Get rid of the
C code version and r8a73a4_init_early() that now are unused.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/r8a73a4.h
arch/arm/mach-shmobile/setup-r8a73a4.c

index ce8bdd1d8a8a029616bb4b5929c55ba1f8726f8f..5fafd6fcedf790c45564b0c731f4b317a5dba659 100644 (file)
@@ -14,6 +14,5 @@ void r8a73a4_add_standard_devices(void);
 void r8a73a4_add_dt_devices(void);
 void r8a73a4_clock_init(void);
 void r8a73a4_pinmux_init(void);
-void r8a73a4_init_early(void);
 
 #endif /* __ASM_R8A73A4_H__ */
index 6fbcdcc39d530dbb59a7c715794c3038a23e31e5..53f40b70680de9087fa90c0e61ae2711ac8a0fc7 100644 (file)
@@ -295,13 +295,6 @@ void __init r8a73a4_add_standard_devices(void)
        r8a73a4_register_dmac();
 }
 
-void __init r8a73a4_init_early(void)
-{
-#ifndef CONFIG_ARM_ARCH_TIMER
-       shmobile_setup_delay(1500, 2, 4); /* Cortex-A15 @ 1500MHz */
-#endif
-}
-
 #ifdef CONFIG_USE_OF
 
 static const char *r8a73a4_boards_compat_dt[] __initdata = {
@@ -310,7 +303,7 @@ static const char *r8a73a4_boards_compat_dt[] __initdata = {
 };
 
 DT_MACHINE_START(R8A73A4_DT, "Generic R8A73A4 (Flattened Device Tree)")
-       .init_early     = r8a73a4_init_early,
+       .init_early     = shmobile_init_delay,
        .init_late      = shmobile_init_late,
        .dt_compat      = r8a73a4_boards_compat_dt,
 MACHINE_END