aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorSantosh Shilimkar <santosh.shilimkar@ti.com>2013-04-05 08:59:02 -0400
committerKevin Hilman <khilman@linaro.org>2013-04-09 13:53:06 -0400
commitbaf4b7d3436be7e8c8ff5bd58acc51a9b07e1871 (patch)
treea73aa055caeb007cc53ebe03883c9d3aa21379d1 /arch/arm/mach-omap2
parent9f192cf7dad8f362e937badb890dc0ab03b03b81 (diff)
ARM: OMAP4+: Make secondary_startup function name more consistent
Current code has rather inconsistent function names for 'secondary_startup' routines. Update it to make it more consistent. Suggested by Kevin Hilman as part of OMAP5 PM patch review. Cc: Kevin Hilman <khilman@deeprootsystems.com> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by: Kevin Hilman <khilman@linaro.org>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/common.h4
-rw-r--r--arch/arm/mach-omap2/omap-headsmp.S8
-rw-r--r--arch/arm/mach-omap2/omap-mpuss-lowpower.c6
-rw-r--r--arch/arm/mach-omap2/omap-smp.c6
4 files changed, 12 insertions, 12 deletions
diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h
index 40f4a03d728f..1a568482a107 100644
--- a/arch/arm/mach-omap2/common.h
+++ b/arch/arm/mach-omap2/common.h
@@ -230,8 +230,8 @@ extern void omap_do_wfi(void);
230 230
231#ifdef CONFIG_SMP 231#ifdef CONFIG_SMP
232/* Needed for secondary core boot */ 232/* Needed for secondary core boot */
233extern void omap_secondary_startup(void); 233extern void omap4_secondary_startup(void);
234extern void omap_secondary_startup_4460(void); 234extern void omap4460_secondary_startup(void);
235extern u32 omap_modify_auxcoreboot0(u32 set_mask, u32 clear_mask); 235extern u32 omap_modify_auxcoreboot0(u32 set_mask, u32 clear_mask);
236extern void omap_auxcoreboot_addr(u32 cpu_addr); 236extern void omap_auxcoreboot_addr(u32 cpu_addr);
237extern u32 omap_read_auxcoreboot0(void); 237extern u32 omap_read_auxcoreboot0(void);
diff --git a/arch/arm/mach-omap2/omap-headsmp.S b/arch/arm/mach-omap2/omap-headsmp.S
index 0ea09faf327b..4ea308114165 100644
--- a/arch/arm/mach-omap2/omap-headsmp.S
+++ b/arch/arm/mach-omap2/omap-headsmp.S
@@ -49,7 +49,7 @@ END(omap5_secondary_startup)
49 * The primary core will update this flag using a hardware 49 * The primary core will update this flag using a hardware
50 * register AuxCoreBoot0. 50 * register AuxCoreBoot0.
51 */ 51 */
52ENTRY(omap_secondary_startup) 52ENTRY(omap4_secondary_startup)
53hold: ldr r12,=0x103 53hold: ldr r12,=0x103
54 dsb 54 dsb
55 smc #0 @ read from AuxCoreBoot0 55 smc #0 @ read from AuxCoreBoot0
@@ -64,9 +64,9 @@ hold: ldr r12,=0x103
64 * should now contain the SVC stack for this core 64 * should now contain the SVC stack for this core
65 */ 65 */
66 b secondary_startup 66 b secondary_startup
67ENDPROC(omap_secondary_startup) 67ENDPROC(omap4_secondary_startup)
68 68
69ENTRY(omap_secondary_startup_4460) 69ENTRY(omap4460_secondary_startup)
70hold_2: ldr r12,=0x103 70hold_2: ldr r12,=0x103
71 dsb 71 dsb
72 smc #0 @ read from AuxCoreBoot0 72 smc #0 @ read from AuxCoreBoot0
@@ -101,4 +101,4 @@ hold_2: ldr r12,=0x103
101 * should now contain the SVC stack for this core 101 * should now contain the SVC stack for this core
102 */ 102 */
103 b secondary_startup 103 b secondary_startup
104ENDPROC(omap_secondary_startup_4460) 104ENDPROC(omap4460_secondary_startup)
diff --git a/arch/arm/mach-omap2/omap-mpuss-lowpower.c b/arch/arm/mach-omap2/omap-mpuss-lowpower.c
index 8e7029269d8a..d4322aa3192e 100644
--- a/arch/arm/mach-omap2/omap-mpuss-lowpower.c
+++ b/arch/arm/mach-omap2/omap-mpuss-lowpower.c
@@ -324,7 +324,7 @@ int __cpuinit omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state)
324 /* 324 /*
325 * CPU never retuns back if targeted power state is OFF mode. 325 * CPU never retuns back if targeted power state is OFF mode.
326 * CPU ONLINE follows normal CPU ONLINE ptah via 326 * CPU ONLINE follows normal CPU ONLINE ptah via
327 * omap_secondary_startup(). 327 * omap4_secondary_startup().
328 */ 328 */
329 omap_pm_ops.finish_suspend(cpu_state); 329 omap_pm_ops.finish_suspend(cpu_state);
330 330
@@ -370,9 +370,9 @@ int __init omap4_mpuss_init(void)
370 pm_info->wkup_sar_addr = sar_base + CPU1_WAKEUP_NS_PA_ADDR_OFFSET; 370 pm_info->wkup_sar_addr = sar_base + CPU1_WAKEUP_NS_PA_ADDR_OFFSET;
371 pm_info->l2x0_sar_addr = sar_base + L2X0_SAVE_OFFSET1; 371 pm_info->l2x0_sar_addr = sar_base + L2X0_SAVE_OFFSET1;
372 if (cpu_is_omap446x()) 372 if (cpu_is_omap446x())
373 pm_info->secondary_startup = omap_secondary_startup_4460; 373 pm_info->secondary_startup = omap4460_secondary_startup;
374 else 374 else
375 pm_info->secondary_startup = omap_secondary_startup; 375 pm_info->secondary_startup = omap4_secondary_startup;
376 376
377 pm_info->pwrdm = pwrdm_lookup("cpu1_pwrdm"); 377 pm_info->pwrdm = pwrdm_lookup("cpu1_pwrdm");
378 if (!pm_info->pwrdm) { 378 if (!pm_info->pwrdm) {
diff --git a/arch/arm/mach-omap2/omap-smp.c b/arch/arm/mach-omap2/omap-smp.c
index 0cbb677c4df4..5b201653ca32 100644
--- a/arch/arm/mach-omap2/omap-smp.c
+++ b/arch/arm/mach-omap2/omap-smp.c
@@ -93,7 +93,7 @@ static int __cpuinit omap4_boot_secondary(unsigned int cpu, struct task_struct *
93 93
94 /* 94 /*
95 * Update the AuxCoreBoot0 with boot state for secondary core. 95 * Update the AuxCoreBoot0 with boot state for secondary core.
96 * omap_secondary_startup() routine will hold the secondary core till 96 * omap4_secondary_startup() routine will hold the secondary core till
97 * the AuxCoreBoot1 register is updated with cpu state 97 * the AuxCoreBoot1 register is updated with cpu state
98 * A barrier is added to ensure that write buffer is drained 98 * A barrier is added to ensure that write buffer is drained
99 */ 99 */
@@ -199,7 +199,7 @@ static void __init omap4_smp_init_cpus(void)
199 199
200static void __init omap4_smp_prepare_cpus(unsigned int max_cpus) 200static void __init omap4_smp_prepare_cpus(unsigned int max_cpus)
201{ 201{
202 void *startup_addr = omap_secondary_startup; 202 void *startup_addr = omap4_secondary_startup;
203 void __iomem *base = omap_get_wakeupgen_base(); 203 void __iomem *base = omap_get_wakeupgen_base();
204 204
205 /* 205 /*
@@ -210,7 +210,7 @@ static void __init omap4_smp_prepare_cpus(unsigned int max_cpus)
210 scu_enable(scu_base); 210 scu_enable(scu_base);
211 211
212 if (cpu_is_omap446x()) { 212 if (cpu_is_omap446x()) {
213 startup_addr = omap_secondary_startup_4460; 213 startup_addr = omap4460_secondary_startup;
214 pm44xx_errata |= PM_OMAP4_ROM_SMP_BOOT_ERRATUM_GICD; 214 pm44xx_errata |= PM_OMAP4_ROM_SMP_BOOT_ERRATUM_GICD;
215 } 215 }
216 216