diff options
Diffstat (limited to 'arch/arm/mach-tegra/sleep.h')
-rw-r--r-- | arch/arm/mach-tegra/sleep.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/arch/arm/mach-tegra/sleep.h b/arch/arm/mach-tegra/sleep.h index a4edbb3abd3d..339fe42cd6fb 100644 --- a/arch/arm/mach-tegra/sleep.h +++ b/arch/arm/mach-tegra/sleep.h | |||
@@ -120,37 +120,6 @@ | |||
120 | mov \tmp1, \tmp1, lsr #8 | 120 | mov \tmp1, \tmp1, lsr #8 |
121 | .endm | 121 | .endm |
122 | 122 | ||
123 | /* Macro to resume & re-enable L2 cache */ | ||
124 | #ifndef L2X0_CTRL_EN | ||
125 | #define L2X0_CTRL_EN 1 | ||
126 | #endif | ||
127 | |||
128 | #ifdef CONFIG_CACHE_L2X0 | ||
129 | .macro l2_cache_resume, tmp1, tmp2, tmp3, phys_l2x0_saved_regs | ||
130 | W(adr) \tmp1, \phys_l2x0_saved_regs | ||
131 | ldr \tmp1, [\tmp1] | ||
132 | ldr \tmp2, [\tmp1, #L2X0_R_PHY_BASE] | ||
133 | ldr \tmp3, [\tmp2, #L2X0_CTRL] | ||
134 | tst \tmp3, #L2X0_CTRL_EN | ||
135 | bne exit_l2_resume | ||
136 | ldr \tmp3, [\tmp1, #L2X0_R_TAG_LATENCY] | ||
137 | str \tmp3, [\tmp2, #L2X0_TAG_LATENCY_CTRL] | ||
138 | ldr \tmp3, [\tmp1, #L2X0_R_DATA_LATENCY] | ||
139 | str \tmp3, [\tmp2, #L2X0_DATA_LATENCY_CTRL] | ||
140 | ldr \tmp3, [\tmp1, #L2X0_R_PREFETCH_CTRL] | ||
141 | str \tmp3, [\tmp2, #L2X0_PREFETCH_CTRL] | ||
142 | ldr \tmp3, [\tmp1, #L2X0_R_PWR_CTRL] | ||
143 | str \tmp3, [\tmp2, #L2X0_POWER_CTRL] | ||
144 | ldr \tmp3, [\tmp1, #L2X0_R_AUX_CTRL] | ||
145 | str \tmp3, [\tmp2, #L2X0_AUX_CTRL] | ||
146 | mov \tmp3, #L2X0_CTRL_EN | ||
147 | str \tmp3, [\tmp2, #L2X0_CTRL] | ||
148 | exit_l2_resume: | ||
149 | .endm | ||
150 | #else /* CONFIG_CACHE_L2X0 */ | ||
151 | .macro l2_cache_resume, tmp1, tmp2, tmp3, phys_l2x0_saved_regs | ||
152 | .endm | ||
153 | #endif /* CONFIG_CACHE_L2X0 */ | ||
154 | #else | 123 | #else |
155 | void tegra_pen_lock(void); | 124 | void tegra_pen_lock(void); |
156 | void tegra_pen_unlock(void); | 125 | void tegra_pen_unlock(void); |