diff options
author | Olof Johansson <olof@lixom.net> | 2014-07-06 20:21:19 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2014-07-06 20:21:19 -0400 |
commit | a7ed497e3f88c6598e0f90b129f2beb6ae61d370 (patch) | |
tree | 65c98498433c94093d12088d797de9802733fd6f | |
parent | 64460c7ef222e9cf62259a892c14428359795d9c (diff) | |
parent | d83fa4c9c27c4d8612e39e99506b5420fa05b58b (diff) |
Merge tag 'renesas-soc-cleanup-for-v3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas into next/cleanup
Merge "Renesas ARM Based SoC Cleanup for v3.17" from Simon Horman:
- Use shmobile_init_delay on r8a7790, r7s72100 and EMEV2 SoCs
- Remove unused redundant callbacks on EMEV2 SoC
* tag 'renesas-soc-cleanup-for-v3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas:
ARM: shmobile: Remove unused r8a7790_init_early()
ARM: shmobile: Use r8a7790 DT CPU Frequency for Lager
ARM: shmobile: Use r8a7790 DT CPU Frequency in common case
ARM: shmobile: Use shmobile_init_delay() on r7s72100
ARM: shmobile: Use shmobile_init_delay() on Genmai boards
ARM: shmobile: Update r7s72100 DTS to include CPU frequency
ARM: shmobile: Get rid of redundant EMEV2 mach callbacks
ARM: shmobile: Use shmobile_init_delay() on EMEV2
ARM: shmobile: Update EMEV2 DTS to include CPU frequency
Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r-- | arch/arm/boot/dts/emev2.dtsi | 2 | ||||
-rw-r--r-- | arch/arm/boot/dts/r7s72100.dtsi | 1 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-genmai-reference.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-genmai.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-lager-reference.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-lager.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/r7s72100.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/r8a7790.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/setup-emev2.c | 17 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/setup-r7s72100.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/setup-r8a7790.c | 9 |
11 files changed, 11 insertions, 35 deletions
diff --git a/arch/arm/boot/dts/emev2.dtsi b/arch/arm/boot/dts/emev2.dtsi index e37985fa10e2..00eeed3721b6 100644 --- a/arch/arm/boot/dts/emev2.dtsi +++ b/arch/arm/boot/dts/emev2.dtsi | |||
@@ -31,11 +31,13 @@ | |||
31 | device_type = "cpu"; | 31 | device_type = "cpu"; |
32 | compatible = "arm,cortex-a9"; | 32 | compatible = "arm,cortex-a9"; |
33 | reg = <0>; | 33 | reg = <0>; |
34 | clock-frequency = <533000000>; | ||
34 | }; | 35 | }; |
35 | cpu@1 { | 36 | cpu@1 { |
36 | device_type = "cpu"; | 37 | device_type = "cpu"; |
37 | compatible = "arm,cortex-a9"; | 38 | compatible = "arm,cortex-a9"; |
38 | reg = <1>; | 39 | reg = <1>; |
40 | clock-frequency = <533000000>; | ||
39 | }; | 41 | }; |
40 | }; | 42 | }; |
41 | 43 | ||
diff --git a/arch/arm/boot/dts/r7s72100.dtsi b/arch/arm/boot/dts/r7s72100.dtsi index f50fbc8f3bd9..bdee22541189 100644 --- a/arch/arm/boot/dts/r7s72100.dtsi +++ b/arch/arm/boot/dts/r7s72100.dtsi | |||
@@ -144,6 +144,7 @@ | |||
144 | device_type = "cpu"; | 144 | device_type = "cpu"; |
145 | compatible = "arm,cortex-a9"; | 145 | compatible = "arm,cortex-a9"; |
146 | reg = <0>; | 146 | reg = <0>; |
147 | clock-frequency = <400000000>; | ||
147 | }; | 148 | }; |
148 | }; | 149 | }; |
149 | 150 | ||
diff --git a/arch/arm/mach-shmobile/board-genmai-reference.c b/arch/arm/mach-shmobile/board-genmai-reference.c index d341ef09ec37..c06dc5c12d1e 100644 --- a/arch/arm/mach-shmobile/board-genmai-reference.c +++ b/arch/arm/mach-shmobile/board-genmai-reference.c | |||
@@ -47,7 +47,7 @@ static const char * const genmai_boards_compat_dt[] __initconst = { | |||
47 | }; | 47 | }; |
48 | 48 | ||
49 | DT_MACHINE_START(GENMAI_DT, "genmai") | 49 | DT_MACHINE_START(GENMAI_DT, "genmai") |
50 | .init_early = r7s72100_init_early, | 50 | .init_early = shmobile_init_delay, |
51 | .init_machine = genmai_add_standard_devices, | 51 | .init_machine = genmai_add_standard_devices, |
52 | .dt_compat = genmai_boards_compat_dt, | 52 | .dt_compat = genmai_boards_compat_dt, |
53 | MACHINE_END | 53 | MACHINE_END |
diff --git a/arch/arm/mach-shmobile/board-genmai.c b/arch/arm/mach-shmobile/board-genmai.c index f0a8eca7d10d..a0994f36b348 100644 --- a/arch/arm/mach-shmobile/board-genmai.c +++ b/arch/arm/mach-shmobile/board-genmai.c | |||
@@ -154,7 +154,7 @@ static const char * const genmai_boards_compat_dt[] __initconst = { | |||
154 | }; | 154 | }; |
155 | 155 | ||
156 | DT_MACHINE_START(GENMAI_DT, "genmai") | 156 | DT_MACHINE_START(GENMAI_DT, "genmai") |
157 | .init_early = r7s72100_init_early, | 157 | .init_early = shmobile_init_delay, |
158 | .init_machine = genmai_add_standard_devices, | 158 | .init_machine = genmai_add_standard_devices, |
159 | .dt_compat = genmai_boards_compat_dt, | 159 | .dt_compat = genmai_boards_compat_dt, |
160 | MACHINE_END | 160 | MACHINE_END |
diff --git a/arch/arm/mach-shmobile/board-lager-reference.c b/arch/arm/mach-shmobile/board-lager-reference.c index 4f0af91ebc81..e30017b910b9 100644 --- a/arch/arm/mach-shmobile/board-lager-reference.c +++ b/arch/arm/mach-shmobile/board-lager-reference.c | |||
@@ -129,7 +129,7 @@ static const char *lager_boards_compat_dt[] __initdata = { | |||
129 | 129 | ||
130 | DT_MACHINE_START(LAGER_DT, "lager") | 130 | DT_MACHINE_START(LAGER_DT, "lager") |
131 | .smp = smp_ops(r8a7790_smp_ops), | 131 | .smp = smp_ops(r8a7790_smp_ops), |
132 | .init_early = r8a7790_init_early, | 132 | .init_early = shmobile_init_delay, |
133 | .init_time = rcar_gen2_timer_init, | 133 | .init_time = rcar_gen2_timer_init, |
134 | .init_machine = lager_add_standard_devices, | 134 | .init_machine = lager_add_standard_devices, |
135 | .init_late = shmobile_init_late, | 135 | .init_late = shmobile_init_late, |
diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach-shmobile/board-lager.c index 83bbb5c48863..72785cc7405b 100644 --- a/arch/arm/mach-shmobile/board-lager.c +++ b/arch/arm/mach-shmobile/board-lager.c | |||
@@ -887,7 +887,7 @@ static const char * const lager_boards_compat_dt[] __initconst = { | |||
887 | 887 | ||
888 | DT_MACHINE_START(LAGER_DT, "lager") | 888 | DT_MACHINE_START(LAGER_DT, "lager") |
889 | .smp = smp_ops(r8a7790_smp_ops), | 889 | .smp = smp_ops(r8a7790_smp_ops), |
890 | .init_early = r8a7790_init_early, | 890 | .init_early = shmobile_init_delay, |
891 | .init_time = rcar_gen2_timer_init, | 891 | .init_time = rcar_gen2_timer_init, |
892 | .init_machine = lager_init, | 892 | .init_machine = lager_init, |
893 | .init_late = shmobile_init_late, | 893 | .init_late = shmobile_init_late, |
diff --git a/arch/arm/mach-shmobile/include/mach/r7s72100.h b/arch/arm/mach-shmobile/include/mach/r7s72100.h index 5f34b20ecd4a..efb723c88dd0 100644 --- a/arch/arm/mach-shmobile/include/mach/r7s72100.h +++ b/arch/arm/mach-shmobile/include/mach/r7s72100.h | |||
@@ -3,6 +3,5 @@ | |||
3 | 3 | ||
4 | void r7s72100_add_dt_devices(void); | 4 | void r7s72100_add_dt_devices(void); |
5 | void r7s72100_clock_init(void); | 5 | void r7s72100_clock_init(void); |
6 | void r7s72100_init_early(void); | ||
7 | 6 | ||
8 | #endif /* __ASM_R7S72100_H__ */ | 7 | #endif /* __ASM_R7S72100_H__ */ |
diff --git a/arch/arm/mach-shmobile/include/mach/r8a7790.h b/arch/arm/mach-shmobile/include/mach/r8a7790.h index d7555440fc7b..459827f1369b 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7790.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7790.h | |||
@@ -31,7 +31,6 @@ void r8a7790_add_dt_devices(void); | |||
31 | void r8a7790_clock_init(void); | 31 | void r8a7790_clock_init(void); |
32 | void r8a7790_pinmux_init(void); | 32 | void r8a7790_pinmux_init(void); |
33 | void r8a7790_pm_init(void); | 33 | void r8a7790_pm_init(void); |
34 | void r8a7790_init_early(void); | ||
35 | extern struct smp_operations r8a7790_smp_ops; | 34 | extern struct smp_operations r8a7790_smp_ops; |
36 | 35 | ||
37 | #endif /* __ASM_R8A7790_H__ */ | 36 | #endif /* __ASM_R8A7790_H__ */ |
diff --git a/arch/arm/mach-shmobile/setup-emev2.c b/arch/arm/mach-shmobile/setup-emev2.c index 6e4ffa74dad4..b06a9e8f59a5 100644 --- a/arch/arm/mach-shmobile/setup-emev2.c +++ b/arch/arm/mach-shmobile/setup-emev2.c | |||
@@ -16,10 +16,9 @@ | |||
16 | * along with this program; if not, write to the Free Software | 16 | * along with this program; if not, write to the Free Software |
17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
18 | */ | 18 | */ |
19 | #include <linux/clk-provider.h> | ||
20 | #include <linux/kernel.h> | 19 | #include <linux/kernel.h> |
21 | #include <linux/init.h> | 20 | #include <linux/init.h> |
22 | #include <linux/of_platform.h> | 21 | #include <linux/mm.h> |
23 | #include <asm/mach-types.h> | 22 | #include <asm/mach-types.h> |
24 | #include <asm/mach/arch.h> | 23 | #include <asm/mach/arch.h> |
25 | #include <asm/mach/map.h> | 24 | #include <asm/mach/map.h> |
@@ -42,17 +41,6 @@ static void __init emev2_map_io(void) | |||
42 | iotable_init(emev2_io_desc, ARRAY_SIZE(emev2_io_desc)); | 41 | iotable_init(emev2_io_desc, ARRAY_SIZE(emev2_io_desc)); |
43 | } | 42 | } |
44 | 43 | ||
45 | static void __init emev2_init_delay(void) | ||
46 | { | ||
47 | shmobile_setup_delay(533, 1, 3); /* Cortex-A9 @ 533MHz */ | ||
48 | } | ||
49 | |||
50 | static void __init emev2_add_standard_devices_dt(void) | ||
51 | { | ||
52 | of_clk_init(NULL); | ||
53 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
54 | } | ||
55 | |||
56 | static const char *emev2_boards_compat_dt[] __initconst = { | 44 | static const char *emev2_boards_compat_dt[] __initconst = { |
57 | "renesas,emev2", | 45 | "renesas,emev2", |
58 | NULL, | 46 | NULL, |
@@ -63,8 +51,7 @@ extern struct smp_operations emev2_smp_ops; | |||
63 | DT_MACHINE_START(EMEV2_DT, "Generic Emma Mobile EV2 (Flattened Device Tree)") | 51 | DT_MACHINE_START(EMEV2_DT, "Generic Emma Mobile EV2 (Flattened Device Tree)") |
64 | .smp = smp_ops(emev2_smp_ops), | 52 | .smp = smp_ops(emev2_smp_ops), |
65 | .map_io = emev2_map_io, | 53 | .map_io = emev2_map_io, |
66 | .init_early = emev2_init_delay, | 54 | .init_early = shmobile_init_delay, |
67 | .init_machine = emev2_add_standard_devices_dt, | ||
68 | .init_late = shmobile_init_late, | 55 | .init_late = shmobile_init_late, |
69 | .dt_compat = emev2_boards_compat_dt, | 56 | .dt_compat = emev2_boards_compat_dt, |
70 | MACHINE_END | 57 | MACHINE_END |
diff --git a/arch/arm/mach-shmobile/setup-r7s72100.c b/arch/arm/mach-shmobile/setup-r7s72100.c index 17a74d355c5d..a55d68d89e6e 100644 --- a/arch/arm/mach-shmobile/setup-r7s72100.c +++ b/arch/arm/mach-shmobile/setup-r7s72100.c | |||
@@ -43,11 +43,6 @@ void __init r7s72100_add_dt_devices(void) | |||
43 | r7s72100_register_mtu2(); | 43 | r7s72100_register_mtu2(); |
44 | } | 44 | } |
45 | 45 | ||
46 | void __init r7s72100_init_early(void) | ||
47 | { | ||
48 | shmobile_setup_delay(400, 1, 3); /* Cortex-A9 @ 400MHz */ | ||
49 | } | ||
50 | |||
51 | #ifdef CONFIG_USE_OF | 46 | #ifdef CONFIG_USE_OF |
52 | static const char *r7s72100_boards_compat_dt[] __initdata = { | 47 | static const char *r7s72100_boards_compat_dt[] __initdata = { |
53 | "renesas,r7s72100", | 48 | "renesas,r7s72100", |
@@ -55,7 +50,7 @@ static const char *r7s72100_boards_compat_dt[] __initdata = { | |||
55 | }; | 50 | }; |
56 | 51 | ||
57 | DT_MACHINE_START(R7S72100_DT, "Generic R7S72100 (Flattened Device Tree)") | 52 | DT_MACHINE_START(R7S72100_DT, "Generic R7S72100 (Flattened Device Tree)") |
58 | .init_early = r7s72100_init_early, | 53 | .init_early = shmobile_init_delay, |
59 | .dt_compat = r7s72100_boards_compat_dt, | 54 | .dt_compat = r7s72100_boards_compat_dt, |
60 | MACHINE_END | 55 | MACHINE_END |
61 | #endif /* CONFIG_USE_OF */ | 56 | #endif /* CONFIG_USE_OF */ |
diff --git a/arch/arm/mach-shmobile/setup-r8a7790.c b/arch/arm/mach-shmobile/setup-r8a7790.c index 4212c8de987a..ee5daccf35ee 100644 --- a/arch/arm/mach-shmobile/setup-r8a7790.c +++ b/arch/arm/mach-shmobile/setup-r8a7790.c | |||
@@ -308,13 +308,6 @@ void __init r8a7790_add_standard_devices(void) | |||
308 | r8a7790_register_audio_dmac(1); | 308 | r8a7790_register_audio_dmac(1); |
309 | } | 309 | } |
310 | 310 | ||
311 | void __init r8a7790_init_early(void) | ||
312 | { | ||
313 | #ifndef CONFIG_ARM_ARCH_TIMER | ||
314 | shmobile_setup_delay(1300, 2, 4); /* Cortex-A15 @ 1300MHz */ | ||
315 | #endif | ||
316 | } | ||
317 | |||
318 | #ifdef CONFIG_USE_OF | 311 | #ifdef CONFIG_USE_OF |
319 | 312 | ||
320 | static const char * const r8a7790_boards_compat_dt[] __initconst = { | 313 | static const char * const r8a7790_boards_compat_dt[] __initconst = { |
@@ -324,7 +317,7 @@ static const char * const r8a7790_boards_compat_dt[] __initconst = { | |||
324 | 317 | ||
325 | DT_MACHINE_START(R8A7790_DT, "Generic R8A7790 (Flattened Device Tree)") | 318 | DT_MACHINE_START(R8A7790_DT, "Generic R8A7790 (Flattened Device Tree)") |
326 | .smp = smp_ops(r8a7790_smp_ops), | 319 | .smp = smp_ops(r8a7790_smp_ops), |
327 | .init_early = r8a7790_init_early, | 320 | .init_early = shmobile_init_delay, |
328 | .init_time = rcar_gen2_timer_init, | 321 | .init_time = rcar_gen2_timer_init, |
329 | .dt_compat = r8a7790_boards_compat_dt, | 322 | .dt_compat = r8a7790_boards_compat_dt, |
330 | MACHINE_END | 323 | MACHINE_END |