0001
0002
0003
0004
0005
0006
0007 #ifndef __ARCH_ARM_MACH_AT91_PM
0008 #define __ARCH_ARM_MACH_AT91_PM
0009
0010 #include <asm/proc-fns.h>
0011
0012 #include <linux/mfd/syscon/atmel-mc.h>
0013 #include <soc/at91/at91sam9_ddrsdr.h>
0014 #include <soc/at91/at91sam9_sdramc.h>
0015 #include <soc/at91/sama7-ddr.h>
0016 #include <soc/at91/sama7-sfrbu.h>
0017
0018 #define AT91_MEMCTRL_MC 0
0019 #define AT91_MEMCTRL_SDRAMC 1
0020 #define AT91_MEMCTRL_DDRSDR 2
0021
0022 #define AT91_PM_STANDBY 0x00
0023 #define AT91_PM_ULP0 0x01
0024 #define AT91_PM_ULP0_FAST 0x02
0025 #define AT91_PM_ULP1 0x03
0026 #define AT91_PM_BACKUP 0x04
0027
0028 #ifndef __ASSEMBLY__
0029 struct at91_pm_data {
0030 void __iomem *pmc;
0031 void __iomem *ramc[2];
0032 void __iomem *ramc_phy;
0033 unsigned long uhp_udp_mask;
0034 unsigned int memctrl;
0035 unsigned int mode;
0036 void __iomem *shdwc;
0037 void __iomem *sfrbu;
0038 unsigned int standby_mode;
0039 unsigned int suspend_mode;
0040 unsigned int pmc_mckr_offset;
0041 unsigned int pmc_version;
0042 };
0043 #endif
0044
0045 #endif