summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx6/mx6_ddr_freq.S
diff options
context:
space:
mode:
authorRanjani Vaidyanathan <Ranjani.Vaidyanathan@freescale.com>2014-10-15 13:34:00 -0500
committerRanjani Vaidyanathan <Ranjani.Vaidyanathan@freescale.com>2014-10-15 13:34:00 -0500
commitc248ed788e4120dab0848fc3f68626374c5e64b7 (patch)
tree2e74c3256478fce9b9953cfdef252e4d9f9fd525 /arch/arm/mach-mx6/mx6_ddr_freq.S
parent798017f249bd9d8087c1d92038f529ea5ae511e6 (diff)
MLK-9698 ARM:imx6x: Fix build break when CONFIG_SMP is not definedrel_imx_3.0.101_4.1.1
Ensure that all the code in busfreq driver that is SMP dependent is enclosed with CONFIG_SMP define, else the build breaks when CONFIG_SMP=n. Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@freescale.com>
Diffstat (limited to 'arch/arm/mach-mx6/mx6_ddr_freq.S')
-rw-r--r--arch/arm/mach-mx6/mx6_ddr_freq.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-mx6/mx6_ddr_freq.S b/arch/arm/mach-mx6/mx6_ddr_freq.S
index 101e270ea370..3afc01ff41f0 100644
--- a/arch/arm/mach-mx6/mx6_ddr_freq.S
+++ b/arch/arm/mach-mx6/mx6_ddr_freq.S
@@ -23,12 +23,14 @@
#define L2_CACHE_SYNC 0x730
.extern iram_tlb_phys_addr
-.extern imx_scu_base
.globl mx6_ddr3_iram_start
.globl mx6_ddr3_iram_end
+#ifdef CONFIG_SMP
.globl wfe_ddr3_freq_change_start
.globl wfe_ddr3_freq_change_end
+.extern imx_scu_base
+#endif
.macro switch_to_528MHz
@@ -1158,6 +1160,7 @@ done:
.ltorg
mx6_ddr3_iram_end:
+#ifdef CONFIG_SMP
.align 3
ENTRY(wfe_ddr3_freq_change)
@@ -1229,3 +1232,4 @@ go_back_wfe:
mov pc, lr
.ltorg
wfe_ddr3_freq_change_end:
+#endif