diff options
author | Nishanth Menon <nm@ti.com> | 2013-06-26 10:39:46 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-07-04 08:10:51 -0400 |
commit | b46355a920a3dbdce7365d2e39eefd6c7b87c22a (patch) | |
tree | b82d18015cd0360bdcff891d3117e00466e90161 /arch | |
parent | 37bd6ca8ab6c103603e04e320d3debeb4596e481 (diff) |
ARM: OMAP4: sleep: build OMAP4 specific functions only for OMAP4
CPU sleep and resume functions for Cortex-A9 based OMAP4 and
Cortex-A15 based OMAP5 are different. Hence, even though we reuse
most of the remaining file as part of OMAP4/5 consolidation, build
OMAP4 specific sleep/resume operations only for OMAP4. SCU is not used
OMAP5.
This fixes the following build failure with OMAP5 only build:
arch/arm/mach-omap2/built-in.o: In function `scu_gp_set':
arch/arm/mach-omap2/sleep44xx.S:132: undefined reference to `scu_power_mode'
arch/arm/mach-omap2/built-in.o: In function `scu_gp_clear':
arch/arm/mach-omap2/sleep44xx.S:229: undefined reference to `scu_power_mode'
Reported-by: Pekon Gupta <pekon@ti.com>
Reported-by: Vincent Stehlé <v-stehle@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/sleep44xx.S | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/sleep44xx.S b/arch/arm/mach-omap2/sleep44xx.S index 88ff83a0942e..9086ce03ae12 100644 --- a/arch/arm/mach-omap2/sleep44xx.S +++ b/arch/arm/mach-omap2/sleep44xx.S | |||
@@ -34,6 +34,8 @@ ppa_zero_params: | |||
34 | ppa_por_params: | 34 | ppa_por_params: |
35 | .word 1, 0 | 35 | .word 1, 0 |
36 | 36 | ||
37 | #ifdef CONFIG_ARCH_OMAP4 | ||
38 | |||
37 | /* | 39 | /* |
38 | * ============================= | 40 | * ============================= |
39 | * == CPU suspend finisher == | 41 | * == CPU suspend finisher == |
@@ -326,7 +328,9 @@ skip_l2en: | |||
326 | 328 | ||
327 | b cpu_resume @ Jump to generic resume | 329 | b cpu_resume @ Jump to generic resume |
328 | ENDPROC(omap4_cpu_resume) | 330 | ENDPROC(omap4_cpu_resume) |
329 | #endif | 331 | #endif /* CONFIG_ARCH_OMAP4 */ |
332 | |||
333 | #endif /* defined(CONFIG_SMP) && defined(CONFIG_PM) */ | ||
330 | 334 | ||
331 | #ifndef CONFIG_OMAP4_ERRATA_I688 | 335 | #ifndef CONFIG_OMAP4_ERRATA_I688 |
332 | ENTRY(omap_bus_sync) | 336 | ENTRY(omap_bus_sync) |