diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-02-12 23:58:53 -0500 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-02-23 08:57:56 -0500 |
commit | f363c407b42c467d06675c852e55f26adb959915 (patch) | |
tree | 695ffaf47ee7db5adfa9dd23976b5df77bd738c5 /arch/arm/mach-at91/pm.h | |
parent | 1a269ade22bb65d0afc0d20e0a19602453fae04a (diff) |
ARM: at91: make sdram/ddr register base soc independent
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/pm.h')
-rw-r--r-- | arch/arm/mach-at91/pm.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/mach-at91/pm.h b/arch/arm/mach-at91/pm.h index 41cdd2beb1ec..89f56f3a802e 100644 --- a/arch/arm/mach-at91/pm.h +++ b/arch/arm/mach-at91/pm.h | |||
@@ -11,8 +11,8 @@ | |||
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 | #include <mach/at91rm9200_sdramc.h> |
17 | 17 | ||
18 | /* | 18 | /* |
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | static inline void at91rm9200_standby(void) | 28 | static inline void at91rm9200_standby(void) |
29 | { | 29 | { |
30 | u32 lpr = at91_sys_read(AT91RM9200_SDRAMC_LPR); | 30 | u32 lpr = at91_ramc_read(0, AT91RM9200_SDRAMC_LPR); |
31 | 31 | ||
32 | asm volatile( | 32 | asm volatile( |
33 | "b 1f\n\t" | 33 | "b 1f\n\t" |
@@ -46,7 +46,6 @@ static inline void at91rm9200_standby(void) | |||
46 | #define at91_standby at91rm9200_standby | 46 | #define at91_standby at91rm9200_standby |
47 | 47 | ||
48 | #elif defined(CONFIG_ARCH_AT91SAM9G45) | 48 | #elif defined(CONFIG_ARCH_AT91SAM9G45) |
49 | #include <mach/at91sam9_ddrsdr.h> | ||
50 | 49 | ||
51 | /* 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 |
52 | * remember. | 51 | * remember. |
@@ -79,7 +78,6 @@ static inline void at91sam9g45_standby(void) | |||
79 | #define at91_standby at91sam9g45_standby | 78 | #define at91_standby at91sam9g45_standby |
80 | 79 | ||
81 | #else | 80 | #else |
82 | #include <mach/at91sam9_sdramc.h> | ||
83 | 81 | ||
84 | #ifdef CONFIG_ARCH_AT91SAM9263 | 82 | #ifdef CONFIG_ARCH_AT91SAM9263 |
85 | /* | 83 | /* |