ARM: at91: pm: Add Backup mode for SAMA7D65
authorRyan Wanner <Ryan.Wanner@microchip.com>
Thu, 27 Feb 2025 15:51:58 +0000 (08:51 -0700)
committerClaudiu Beznea <claudiu.beznea@tuxon.dev>
Sun, 2 Mar 2025 15:35:07 +0000 (17:35 +0200)
commit23b43c1a821615e04848f85ff90dcc3c3aa96c0c
treef04748e3b9f070f59e96658039a16969caaaf3f3
parent8e96f5080eeef70fccf7007a025de98661a549d8
ARM: at91: pm: Add Backup mode for SAMA7D65

Add config check that enables Backup mode for SAMA7D65 SoC.

Add SHDWC_SR read to clear the status bits once finished exiting backup
mode. This is only for SAMA7D65 SoCs. The SHDWC status register
needs to be cleared after exiting backup mode to clear the wake up pin
status.

Signed-off-by: Ryan Wanner <Ryan.Wanner@microchip.com>
Link: https://lore.kernel.org/r/3a1f59af1ac9322b0203694b535d5d13120a31eb.1740671156.git.Ryan.Wanner@microchip.com
[claudiu.beznea: dropped extra blank lines, use {} for multi-line
 statements that includes comments, s/PM/pm in commit title to have the
 same pattern accross all commits]
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
arch/arm/mach-at91/pm.c