Commit 909444ab authored by Hiroshi Doyu's avatar Hiroshi Doyu Committed by Stephen Warren

ARM: tegra: Skip scu_enable(scu_base) if not Cortex A9

Skip scu_enable(scu_base) if CPU is not Cortex A9 with SCU.
Signed-off-by: default avatarHiroshi Doyu <hdoyu@nvidia.com>
Acked-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
parent e9d6b335
...@@ -36,8 +36,6 @@ ...@@ -36,8 +36,6 @@
extern void tegra_secondary_startup(void); extern void tegra_secondary_startup(void);
static void __iomem *scu_base = IO_ADDRESS(TEGRA_ARM_PERIF_BASE);
#define EVP_CPU_RESET_VECTOR \ #define EVP_CPU_RESET_VECTOR \
(IO_ADDRESS(TEGRA_EXCEPTION_VECTORS_BASE) + 0x100) (IO_ADDRESS(TEGRA_EXCEPTION_VECTORS_BASE) + 0x100)
...@@ -151,7 +149,8 @@ static void __init tegra_smp_init_cpus(void) ...@@ -151,7 +149,8 @@ static void __init tegra_smp_init_cpus(void)
static void __init tegra_smp_prepare_cpus(unsigned int max_cpus) static void __init tegra_smp_prepare_cpus(unsigned int max_cpus)
{ {
tegra_cpu_reset_handler_init(); 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 = { struct smp_operations tegra_smp_ops __initdata = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment