aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Beznea <[email protected]>2020-01-20 14:10:08 +0200
committerAlexandre Belloni <[email protected]>2020-02-18 21:47:54 +0100
commitbb1a0e87e1c54cd884e9b92b1cec06b186edc7a0 (patch)
tree14f0e97554db54164d3fe3fe71abe57d3f1caf0b
parent4fd36e4583922bf4e5c37a20d5d3fa7bc11d59fe (diff)
ARM: at91: pm: add quirk for sam9x60's ulp1
On SAM9X60 2 nop operations has to be introduced after setting WAITMODE bit in CKGR_MOR. Signed-off-by: Claudiu Beznea <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Link: https://lore.kernel.org/r/[email protected]
-rw-r--r--arch/arm/mach-at91/pm_suspend.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/pm_suspend.S b/arch/arm/mach-at91/pm_suspend.S
index 4e9eb4f57f16..be9764e8d3fa 100644
--- a/arch/arm/mach-at91/pm_suspend.S
+++ b/arch/arm/mach-at91/pm_suspend.S
@@ -275,6 +275,10 @@ ENDPROC(at91_backup_mode)
orr tmp1, tmp1, #AT91_PMC_KEY
str tmp1, [pmc, #AT91_CKGR_MOR]
+ /* Quirk for SAM9X60's PMC */
+ nop
+ nop
+
wait_mckrdy
/* Enable the crystal oscillator */