ARM: OMAP: Make use of available scu_a9_get_base() interface
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Wed, 23 Jan 2013 08:26:19 +0000 (13:56 +0530)
committerStephen Warren <swarren@nvidia.com>
Mon, 28 Jan 2013 17:41:39 +0000 (10:41 -0700)
Drop the define and make use of scu_a9_get_base() which reads
the physical address of SCU from CP15 register.

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
arch/arm/mach-omap2/omap-smp.c
arch/arm/mach-omap2/omap44xx.h

index cd42d921940dcdb1dd91de67bb56b0350e2b442a..e683d0dcef6bf259aba7b8045ab997242ae56e8b 100644 (file)
@@ -215,7 +215,7 @@ static void __init omap4_smp_init_cpus(void)
                 * Currently we can't call ioremap here because
                 * SoC detection won't work until after init_early.
                 */
-               scu_base =  OMAP2_L4_IO_ADDRESS(OMAP44XX_SCU_BASE);
+               scu_base =  OMAP2_L4_IO_ADDRESS(scu_a9_get_base());
                BUG_ON(!scu_base);
                ncores = scu_get_core_count(scu_base);
        } else if (cpu_id == CPU_CORTEX_A15) {
index 43b927b2e2e88df3afb5c50b45ff4723d605afa2..8a515bb746394b9a5ce6549b6aebd1e24fdf1cea 100644 (file)
@@ -40,7 +40,6 @@
 #define OMAP44XX_GIC_DIST_BASE         0x48241000
 #define OMAP44XX_GIC_CPU_BASE          0x48240100
 #define OMAP44XX_IRQ_GIC_START         32
-#define OMAP44XX_SCU_BASE              0x48240000
 #define OMAP44XX_LOCAL_TWD_BASE                0x48240600
 #define OMAP44XX_L2CACHE_BASE          0x48242000
 #define OMAP44XX_WKUPGEN_BASE          0x48281000