ARM: shmobile: Use shmobile_init_delay() on r7s72100
authorMagnus Damm <damm+renesas@opensource.se>
Fri, 6 Jun 2014 05:29:04 +0000 (14:29 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 17 Jun 2014 10:50:34 +0000 (19:50 +0900)
Adjust the r7s72100 SoC support code to use shmobile_init_delay()
together with CPU Frequency settings from the DTS. Get rid of the
C code version.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/include/mach/r7s72100.h
arch/arm/mach-shmobile/setup-r7s72100.c

index 5f34b20ecd4a623c5f7006c125a1cbf3e181919b..efb723c88dd0a848f166a2e89bc5a930b9533a8e 100644 (file)
@@ -3,6 +3,5 @@
 
 void r7s72100_add_dt_devices(void);
 void r7s72100_clock_init(void);
-void r7s72100_init_early(void);
 
 #endif /* __ASM_R7S72100_H__ */
index 17a74d355c5d07355d1fd9f26efc115f0893f4fc..a55d68d89e6eae094e26f60db208d03d05713181 100644 (file)
@@ -43,11 +43,6 @@ void __init r7s72100_add_dt_devices(void)
        r7s72100_register_mtu2();
 }
 
-void __init r7s72100_init_early(void)
-{
-       shmobile_setup_delay(400, 1, 3); /* Cortex-A9 @ 400MHz */
-}
-
 #ifdef CONFIG_USE_OF
 static const char *r7s72100_boards_compat_dt[] __initdata = {
        "renesas,r7s72100",
@@ -55,7 +50,7 @@ static const char *r7s72100_boards_compat_dt[] __initdata = {
 };
 
 DT_MACHINE_START(R7S72100_DT, "Generic R7S72100 (Flattened Device Tree)")
-       .init_early     = r7s72100_init_early,
+       .init_early     = shmobile_init_delay,
        .dt_compat      = r7s72100_boards_compat_dt,
 MACHINE_END
 #endif /* CONFIG_USE_OF */
This page took 0.026957 seconds and 5 git commands to generate.