linux/arch/arm/mach-at91
Nicolas Ferre 3aadad5271 ARM: at91: pm: change BU Power Switch to automatic mode
[ Upstream commit 6fc5bdfa87 ]

Change how the Backup Unit Power is configured and force the
automatic/hardware mode.
This change eliminates the need for software management of the power
switch, ensuring it transitions to the backup power source before
entering low power modes.

This is done in the only location where this switch was configured. It's
usually done in the bootloader.

Previously, the loss of the VDDANA (or VDDIN33) power source was not
automatically compensated by an alternative power source. This resulted
in the loss of Backup Unit content, including Backup Self-refresh low
power mode information, OTP emulation configuration, and boot
configuration, for instance.

Fixes: ac809e7879 ("ARM: at91: pm: switch backup area to vbat in backup mode")
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20241125165648.509162-1-nicolas.ferre@microchip.com
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-02-08 09:57:36 +01:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
at91rm9200.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 4 2019-05-21 11:28:40 +02:00
at91sam9.c ARM: at91: pm: move SAM9X60's PM under its own SoC config flag 2019-12-10 00:44:53 +01:00
generic.h ARM: at91: pm: add support for sam9x7 SoC family 2024-08-07 19:24:44 +03:00
Kconfig ARM: at91: Kconfig: add config flag for SAM9X7 SoC 2024-08-07 19:24:46 +03:00
Makefile ARM: at91: pm: add sam9x7 SoC init config 2024-08-07 19:24:45 +03:00
pm.c ARM: at91: pm: change BU Power Switch to automatic mode 2025-02-08 09:57:36 +01:00
pm.h ARM: at91: pm: add support for 2.5V LDO regulator control 2021-07-19 14:32:12 +02:00
pm_data-offsets.c ARM: at91: pm: add self-refresh support for sama7g5 2021-07-19 14:32:12 +02:00
pm_suspend.S ARM updates for 6.2 2022-12-13 15:22:14 -08:00
sam9x7.c ARM: at91: pm: add sam9x7 SoC init config 2024-08-07 19:24:45 +03:00
sam9x60.c ARM: at91: pm: move SAM9X60's PM under its own SoC config flag 2019-12-10 00:44:53 +01:00
sam_secure.c ARM: at91: add sam_linux_is_optee_available() function 2022-07-20 11:03:45 +03:00
sam_secure.h ARM: at91: add sam_linux_is_optee_available() function 2022-07-20 11:03:45 +03:00
sama5.c ARM: at91: fix build for SAMA5D3 w/o L2 cache 2022-11-24 12:50:07 +02:00
sama7.c ARM: at91: pm: add pm support for SAMA7G5 2021-07-19 14:32:13 +02:00
samv7.c ARM: at91: Explicitly include correct DT includes 2023-07-29 16:56:04 +03:00