aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2017-02-01 15:32:43 -0500
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2017-03-31 14:36:06 -0400
commit5a2d4f053f67d03d212c2d036166934f4958173d (patch)
tree3894239069ddc30d4dc24658d29230d819cfc7f8
parent65cc1a59d192be1df33633d3fe668a1e3e0edc36 (diff)
ARM: at91: pm: Simplify at91rm9200_standby
Since 2008, AT91_MC_SDRAMC_LPR is set to 0 at kernel initialization. There is no use saving, changing and restoring it. Acked-by: Wenyou Yang <wenyou.yang@atmel.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
-rw-r--r--arch/arm/mach-at91/pm.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c
index a35b1541b328..3d68d93c11c7 100644
--- a/arch/arm/mach-at91/pm.c
+++ b/arch/arm/mach-at91/pm.c
@@ -222,20 +222,15 @@ static void at91_pm_set_standby(void (*at91_standby)(void))
222 */ 222 */
223static void at91rm9200_standby(void) 223static void at91rm9200_standby(void)
224{ 224{
225 u32 lpr = at91_ramc_read(0, AT91_MC_SDRAMC_LPR);
226
227 asm volatile( 225 asm volatile(
228 "b 1f\n\t" 226 "b 1f\n\t"
229 ".align 5\n\t" 227 ".align 5\n\t"
230 "1: mcr p15, 0, %0, c7, c10, 4\n\t" 228 "1: mcr p15, 0, %0, c7, c10, 4\n\t"
231 " str %0, [%1, %2]\n\t" 229 " str %2, [%1, %3]\n\t"
232 " str %3, [%1, %4]\n\t"
233 " mcr p15, 0, %0, c7, c0, 4\n\t" 230 " mcr p15, 0, %0, c7, c0, 4\n\t"
234 " str %5, [%1, %2]"
235 : 231 :
236 : "r" (0), "r" (pm_data.ramc[0]), "r" (AT91_MC_SDRAMC_LPR), 232 : "r" (0), "r" (pm_data.ramc[0]),
237 "r" (1), "r" (AT91_MC_SDRAMC_SRR), 233 "r" (1), "r" (AT91_MC_SDRAMC_SRR));
238 "r" (lpr));
239} 234}
240 235
241/* We manage both DDRAM/SDRAM controllers, we need more than one value to 236/* We manage both DDRAM/SDRAM controllers, we need more than one value to