mirror of
https://github.com/torvalds/linux.git
synced 2024-12-18 09:02:17 +00:00
24a0f5c539
The sama5d2 has a mode were it is possible to cut power to the SoC while keeping the RAM in self refresh. Resuming from that mode needs support in the firmware/bootloader. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Acked-by: Wenyou Yang <wenyou.yang@atmel.com>
17 lines
542 B
C
17 lines
542 B
C
#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_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));
|
|
|
|
return 0;
|
|
}
|