ARM: tegra: Skip scu_enable(scu_base) if not Cortex A9
authorHiroshi Doyu <hdoyu@nvidia.com>
Tue, 22 Jan 2013 05:52:02 +0000 (07:52 +0200)
committerStephen Warren <swarren@nvidia.com>
Mon, 28 Jan 2013 17:41:18 +0000 (10:41 -0700)
Skip scu_enable(scu_base) if CPU is not Cortex A9 with SCU.

Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
arch/arm/mach-tegra/platsmp.c

index 79fa7857d68d19b3f17b2c037cc24615e9011f16..8127d766fcfae0c1d19182ad77147188afe6302f 100644 (file)
@@ -36,8 +36,6 @@
 
 extern void tegra_secondary_startup(void);
 
-static void __iomem *scu_base = IO_ADDRESS(TEGRA_ARM_PERIF_BASE);
-
 #define EVP_CPU_RESET_VECTOR \
        (IO_ADDRESS(TEGRA_EXCEPTION_VECTORS_BASE) + 0x100)
 
@@ -151,7 +149,8 @@ static void __init tegra_smp_init_cpus(void)
 static void __init tegra_smp_prepare_cpus(unsigned int max_cpus)
 {
        tegra_cpu_reset_handler_init();
-       scu_enable(scu_base);
+       if (scu_a9_has_base())
+               scu_enable(IO_ADDRESS(scu_a9_get_base()));
 }
 
 struct smp_operations tegra_smp_ops __initdata = {