diff options
author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2021-04-15 13:50:01 +0300 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@microchip.com> | 2021-07-19 14:32:12 +0200 |
commit | 5b0bef872c1d131c4a4b2abdd825d4d5f548a1a1 (patch) | |
tree | 2026f23934b35194d59637549d36bc7d72e69eb3 /arch/arm | |
parent | 475be50fc149ae11822433e8cb511493bb0e5c1d (diff) |
ARM: at91: pm: wait for ddr power mode off
Wait for DDR power mode off before shutting down the core.
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20210415105010.569620-16-claudiu.beznea@microchip.com
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-at91/pm_suspend.S | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/pm_suspend.S b/arch/arm/mach-at91/pm_suspend.S index 9c9e08fd8300..7396e18dd7e5 100644 --- a/arch/arm/mach-at91/pm_suspend.S +++ b/arch/arm/mach-at91/pm_suspend.S @@ -980,6 +980,11 @@ ulp_exit: mov tmp1, #0x1 str tmp1, [r0, #0x10] + /* Wait for it. */ +1: ldr tmp1, [r0, #0x10] + tst tmp1, #0x1 + beq 1b + /* Shutdown */ ldr r0, .shdwc mov tmp1, #0xA5000000 |