diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-04-28 10:49:48 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-05-29 19:50:08 -0400 |
commit | 4d6229f6e5ac9364637cb1a162284c35e4369f80 (patch) | |
tree | 3d8d1f250bca35fc50bd59477112c6ae6a4c916f /arch/arm/mach-sti | |
parent | adf4b00ebf4e183f36d88d5a5a591c532fb0abe9 (diff) |
ARM: l2c: sti: convert to generic l2c OF initialisation
Remove the explicit call to l2x0_of_init(), converting to the generic
infrastructure instead. We can remove the .init_machine as it becomes
the same as the generic version.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-sti')
-rw-r--r-- | arch/arm/mach-sti/board-dt.c | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/arch/arm/mach-sti/board-dt.c b/arch/arm/mach-sti/board-dt.c index dc8669efc12d..910e978dfbc0 100644 --- a/arch/arm/mach-sti/board-dt.c +++ b/arch/arm/mach-sti/board-dt.c | |||
@@ -14,25 +14,6 @@ | |||
14 | 14 | ||
15 | #include "smp.h" | 15 | #include "smp.h" |
16 | 16 | ||
17 | void __init stih41x_l2x0_init(void) | ||
18 | { | ||
19 | u32 way_size = 0x4; | ||
20 | u32 aux_ctrl; | ||
21 | /* may be this can be encoded in macros like BIT*() */ | ||
22 | aux_ctrl = L2C_AUX_CTRL_SHARED_OVERRIDE | | ||
23 | L310_AUX_CTRL_DATA_PREFETCH | | ||
24 | L310_AUX_CTRL_INSTR_PREFETCH | | ||
25 | L2C_AUX_CTRL_WAY_SIZE(way_size); | ||
26 | |||
27 | l2x0_of_init(aux_ctrl, L2X0_AUX_CTRL_MASK); | ||
28 | } | ||
29 | |||
30 | static void __init stih41x_machine_init(void) | ||
31 | { | ||
32 | stih41x_l2x0_init(); | ||
33 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
34 | } | ||
35 | |||
36 | static const char *stih41x_dt_match[] __initdata = { | 17 | static const char *stih41x_dt_match[] __initdata = { |
37 | "st,stih415", | 18 | "st,stih415", |
38 | "st,stih416", | 19 | "st,stih416", |
@@ -40,7 +21,11 @@ static const char *stih41x_dt_match[] __initdata = { | |||
40 | }; | 21 | }; |
41 | 22 | ||
42 | DT_MACHINE_START(STM, "STiH415/416 SoC with Flattened Device Tree") | 23 | DT_MACHINE_START(STM, "STiH415/416 SoC with Flattened Device Tree") |
43 | .init_machine = stih41x_machine_init, | ||
44 | .smp = smp_ops(sti_smp_ops), | ||
45 | .dt_compat = stih41x_dt_match, | 24 | .dt_compat = stih41x_dt_match, |
25 | .l2c_aux_val = L2C_AUX_CTRL_SHARED_OVERRIDE | | ||
26 | L310_AUX_CTRL_DATA_PREFETCH | | ||
27 | L310_AUX_CTRL_INSTR_PREFETCH | | ||
28 | L2C_AUX_CTRL_WAY_SIZE(4), | ||
29 | .l2c_aux_mask = 0xc0000fff, | ||
30 | .smp = smp_ops(sti_smp_ops), | ||
46 | MACHINE_END | 31 | MACHINE_END |