forked from Minki/linux
f0bbf17958
Add self-refresh support for SAMA7G5. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com> Link: https://lore.kernel.org/r/20210415105010.569620-13-claudiu.beznea@microchip.com
24 lines
823 B
C
24 lines
823 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));
|
|
|
|
return 0;
|
|
}
|