summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea@microchip.com>2020-01-20 14:10:08 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-22 09:32:57 +0200
commitde6d9aa5f7c1ea9010dea942e65faa2a7c5feebb (patch)
treed8db7231b15dbf938a3acab42f64516599838dbb /arch/arm/mach-at91
parent4301497fdc684067ca451a34a9b082d34f7e3273 (diff)
downloadlinux-stable-de6d9aa5f7c1ea9010dea942e65faa2a7c5feebb.tar.gz
linux-stable-de6d9aa5f7c1ea9010dea942e65faa2a7c5feebb.tar.bz2
linux-stable-de6d9aa5f7c1ea9010dea942e65faa2a7c5feebb.zip
ARM: at91: pm: add quirk for sam9x60's ulp1
[ Upstream commit bb1a0e87e1c54cd884e9b92b1cec06b186edc7a0 ] On SAM9X60 2 nop operations has to be introduced after setting WAITMODE bit in CKGR_MOR. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/1579522208-19523-9-git-send-email-claudiu.beznea@microchip.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/arm/mach-at91')
-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 ed57c879d4e1..2591cba61937 100644
--- a/arch/arm/mach-at91/pm_suspend.S
+++ b/arch/arm/mach-at91/pm_suspend.S
@@ -268,6 +268,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 */