ARM: at91: pm: Enable ULP0/ULP1 for SAMA7D65
authorRyan Wanner <Ryan.Wanner@microchip.com>
Thu, 27 Feb 2025 15:51:59 +0000 (08:51 -0700)
committerClaudiu Beznea <claudiu.beznea@tuxon.dev>
Sun, 2 Mar 2025 15:38:54 +0000 (17:38 +0200)
commit8bd10f002411c9ea947edc0af18ad81f789e28d5
tree9a8fe8a1c48de0235b0091af7af271ec63574b72
parent23b43c1a821615e04848f85ff90dcc3c3aa96c0c
ARM: at91: pm: Enable ULP0/ULP1 for SAMA7D65

New clocks are saved to enable ULP0/ULP1 for SAMA7D65 because this SoC has a
total of 9 main clocks that need to be saved for ULP0/ULP1 mode.

Add mcks member to at91_pm_data, this will be used to determine
how many main clocks need to be saved. In the pm_mcks variable will also make
sure that no unnecessary clock settings are written during
mck_ps_restore.

Signed-off-by: Ryan Wanner <Ryan.Wanner@microchip.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/2ac0832f6ede17a5c111ede09b44b8a126e33e36.1740671156.git.Ryan.Wanner@microchip.com
[claudiu.beznea: adjusted the entry in pmc_infos[] array]
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
arch/arm/mach-at91/pm.c
arch/arm/mach-at91/pm.h
arch/arm/mach-at91/pm_data-offsets.c
arch/arm/mach-at91/pm_suspend.S