diff options
author | Eric Miao <eric.miao@linaro.org> | 2011-12-21 22:55:01 -0500 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2011-12-25 21:18:59 -0500 |
commit | 733d1724d7c5c79113d8063d3d9d93e8c80cea82 (patch) | |
tree | 667b61e18807b0fe2cb884c480d5933a5e4db19a /arch/arm/mach-imx/head-v7.S | |
parent | 46ec1b26901ea7bd0dc3287e8dbd1221b3a51fed (diff) |
ARM: imx6q: resume PL310 only when CACHE_L2X0 defined
Original patch from Lothar Waßmann, this patch fixes a building error
when CONFIG_CACHE_L2X0 is not defined.
Cc: Lothar Waßmann <lw@karo-electronics.de>
Signed-off-by: Eric Miao <eric.miao@linaro.org>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/head-v7.S')
-rw-r--r-- | arch/arm/mach-imx/head-v7.S | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/arch/arm/mach-imx/head-v7.S b/arch/arm/mach-imx/head-v7.S index a59cae747af4..cec23a857c7e 100644 --- a/arch/arm/mach-imx/head-v7.S +++ b/arch/arm/mach-imx/head-v7.S | |||
@@ -80,6 +80,7 @@ ENDPROC(v7_secondary_startup) | |||
80 | .data | 80 | .data |
81 | .align | 81 | .align |
82 | 82 | ||
83 | #ifdef CONFIG_CACHE_L2X0 | ||
83 | .macro pl310_resume | 84 | .macro pl310_resume |
84 | ldr r2, phys_l2x0_saved_regs | 85 | ldr r2, phys_l2x0_saved_regs |
85 | ldr r0, [r2, #L2X0_R_PHY_BASE] @ get physical base of l2x0 | 86 | ldr r0, [r2, #L2X0_R_PHY_BASE] @ get physical base of l2x0 |
@@ -89,13 +90,17 @@ ENDPROC(v7_secondary_startup) | |||
89 | str r1, [r0, #L2X0_CTRL] @ re-enable L2 | 90 | str r1, [r0, #L2X0_CTRL] @ re-enable L2 |
90 | .endm | 91 | .endm |
91 | 92 | ||
93 | .globl phys_l2x0_saved_regs | ||
94 | phys_l2x0_saved_regs: | ||
95 | .long 0 | ||
96 | #else | ||
97 | .macro pl310_resume | ||
98 | .endm | ||
99 | #endif | ||
100 | |||
92 | ENTRY(v7_cpu_resume) | 101 | ENTRY(v7_cpu_resume) |
93 | bl v7_invalidate_l1 | 102 | bl v7_invalidate_l1 |
94 | pl310_resume | 103 | pl310_resume |
95 | b cpu_resume | 104 | b cpu_resume |
96 | ENDPROC(v7_cpu_resume) | 105 | ENDPROC(v7_cpu_resume) |
97 | |||
98 | .globl phys_l2x0_saved_regs | ||
99 | phys_l2x0_saved_regs: | ||
100 | .long 0 | ||
101 | #endif | 106 | #endif |