aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2014-04-28 10:36:04 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2014-05-29 19:50:15 -0400
commit00123d9a8d25a90cdd964062f7f7877e510ec7c1 (patch)
treed1ed22c22e28dad1fb47a2f039893fc7f32caef4 /arch/arm/mach-tegra
parentb16cee70fdadaa500e0f962ae76877843281192e (diff)
ARM: l2c: tegra: convert to generic l2c OF initialisation
Remove the explicit call to l2x0_of_init(), converting to the generic infrastructure instead. Acked-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-tegra')
-rw-r--r--arch/arm/mach-tegra/tegra.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/arch/arm/mach-tegra/tegra.c b/arch/arm/mach-tegra/tegra.c
index 1bc49f9db015..15ac9fcc96b1 100644
--- a/arch/arm/mach-tegra/tegra.c
+++ b/arch/arm/mach-tegra/tegra.c
@@ -70,20 +70,12 @@ u32 tegra_uart_config[3] = {
70 0, 70 0,
71}; 71};
72 72
73static void __init tegra_init_cache(void)
74{
75#ifdef CONFIG_CACHE_L2X0
76 l2x0_of_init(0x3c400001, 0xc20fc3fe);
77#endif
78}
79
80static void __init tegra_init_early(void) 73static void __init tegra_init_early(void)
81{ 74{
82 of_register_trusted_foundations(); 75 of_register_trusted_foundations();
83 tegra_apb_io_init(); 76 tegra_apb_io_init();
84 tegra_init_fuse(); 77 tegra_init_fuse();
85 tegra_cpu_reset_handler_init(); 78 tegra_cpu_reset_handler_init();
86 tegra_init_cache();
87 tegra_powergate_init(); 79 tegra_powergate_init();
88 tegra_hotplug_init(); 80 tegra_hotplug_init();
89} 81}
@@ -171,8 +163,10 @@ static const char * const tegra_dt_board_compat[] = {
171}; 163};
172 164
173DT_MACHINE_START(TEGRA_DT, "NVIDIA Tegra SoC (Flattened Device Tree)") 165DT_MACHINE_START(TEGRA_DT, "NVIDIA Tegra SoC (Flattened Device Tree)")
174 .map_io = tegra_map_common_io, 166 .l2c_aux_val = 0x3c400001,
167 .l2c_aux_mask = 0xc20fc3fe,
175 .smp = smp_ops(tegra_smp_ops), 168 .smp = smp_ops(tegra_smp_ops),
169 .map_io = tegra_map_common_io,
176 .init_early = tegra_init_early, 170 .init_early = tegra_init_early,
177 .init_irq = tegra_dt_init_irq, 171 .init_irq = tegra_dt_init_irq,
178 .init_machine = tegra_dt_init, 172 .init_machine = tegra_dt_init,