diff options
Diffstat (limited to 'arch/arm/mach-at91/pm.h')
-rw-r--r-- | arch/arm/mach-at91/pm.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/arm/mach-at91/pm.h b/arch/arm/mach-at91/pm.h index bba9ce1aaaec..89f56f3a802e 100644 --- a/arch/arm/mach-at91/pm.h +++ b/arch/arm/mach-at91/pm.h | |||
@@ -11,8 +11,9 @@ | |||
11 | #ifndef __ARCH_ARM_MACH_AT91_PM | 11 | #ifndef __ARCH_ARM_MACH_AT91_PM |
12 | #define __ARCH_ARM_MACH_AT91_PM | 12 | #define __ARCH_ARM_MACH_AT91_PM |
13 | 13 | ||
14 | #include <mach/at91_ramc.h> | ||
14 | #ifdef CONFIG_ARCH_AT91RM9200 | 15 | #ifdef CONFIG_ARCH_AT91RM9200 |
15 | #include <mach/at91rm9200_mc.h> | 16 | #include <mach/at91rm9200_sdramc.h> |
16 | 17 | ||
17 | /* | 18 | /* |
18 | * The AT91RM9200 goes into self-refresh mode with this command, and will | 19 | * The AT91RM9200 goes into self-refresh mode with this command, and will |
@@ -26,7 +27,7 @@ | |||
26 | 27 | ||
27 | static inline void at91rm9200_standby(void) | 28 | static inline void at91rm9200_standby(void) |
28 | { | 29 | { |
29 | u32 lpr = at91_sys_read(AT91_SDRAMC_LPR); | 30 | u32 lpr = at91_ramc_read(0, AT91RM9200_SDRAMC_LPR); |
30 | 31 | ||
31 | asm volatile( | 32 | asm volatile( |
32 | "b 1f\n\t" | 33 | "b 1f\n\t" |
@@ -37,15 +38,14 @@ static inline void at91rm9200_standby(void) | |||
37 | " mcr p15, 0, %0, c7, c0, 4\n\t" | 38 | " mcr p15, 0, %0, c7, c0, 4\n\t" |
38 | " str %5, [%1, %2]" | 39 | " str %5, [%1, %2]" |
39 | : | 40 | : |
40 | : "r" (0), "r" (AT91_BASE_SYS), "r" (AT91_SDRAMC_LPR), | 41 | : "r" (0), "r" (AT91_BASE_SYS), "r" (AT91RM9200_SDRAMC_LPR), |
41 | "r" (1), "r" (AT91_SDRAMC_SRR), | 42 | "r" (1), "r" (AT91RM9200_SDRAMC_SRR), |
42 | "r" (lpr)); | 43 | "r" (lpr)); |
43 | } | 44 | } |
44 | 45 | ||
45 | #define at91_standby at91rm9200_standby | 46 | #define at91_standby at91rm9200_standby |
46 | 47 | ||
47 | #elif defined(CONFIG_ARCH_AT91SAM9G45) | 48 | #elif defined(CONFIG_ARCH_AT91SAM9G45) |
48 | #include <mach/at91sam9_ddrsdr.h> | ||
49 | 49 | ||
50 | /* We manage both DDRAM/SDRAM controllers, we need more than one value to | 50 | /* We manage both DDRAM/SDRAM controllers, we need more than one value to |
51 | * remember. | 51 | * remember. |
@@ -78,7 +78,6 @@ static inline void at91sam9g45_standby(void) | |||
78 | #define at91_standby at91sam9g45_standby | 78 | #define at91_standby at91sam9g45_standby |
79 | 79 | ||
80 | #else | 80 | #else |
81 | #include <mach/at91sam9_sdramc.h> | ||
82 | 81 | ||
83 | #ifdef CONFIG_ARCH_AT91SAM9263 | 82 | #ifdef CONFIG_ARCH_AT91SAM9263 |
84 | /* | 83 | /* |