mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

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>
25 lines
898 B
C
25 lines
898 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <linux/stddef.h>
|
|
#include <linux/kbuild.h>
|
|
#include "pm.h"
|
|
|
|
int main(void)
|
|
{
|
|
DEFINE(PM_DATA_PMC, offsetof(struct at91_pm_data, pmc));
|
|
DEFINE(PM_DATA_RAMC0, offsetof(struct at91_pm_data, ramc[0]));
|
|
DEFINE(PM_DATA_RAMC1, offsetof(struct at91_pm_data, ramc[1]));
|
|
DEFINE(PM_DATA_RAMC_PHY, offsetof(struct at91_pm_data,
|
|
ramc_phy));
|
|
DEFINE(PM_DATA_MEMCTRL, offsetof(struct at91_pm_data, memctrl));
|
|
DEFINE(PM_DATA_MODE, offsetof(struct at91_pm_data, mode));
|
|
DEFINE(PM_DATA_SHDWC, offsetof(struct at91_pm_data, shdwc));
|
|
DEFINE(PM_DATA_SFRBU, offsetof(struct at91_pm_data, sfrbu));
|
|
DEFINE(PM_DATA_PMC_MCKR_OFFSET, offsetof(struct at91_pm_data,
|
|
pmc_mckr_offset));
|
|
DEFINE(PM_DATA_PMC_VERSION, offsetof(struct at91_pm_data,
|
|
pmc_version));
|
|
DEFINE(PM_DATA_PMC_MCKS, offsetof(struct at91_pm_data,
|
|
pmc_mcks));
|
|
|
|
return 0;
|
|
}
|