diff options
author | David Brownell <david-b@pacbell.net> | 2008-04-24 15:58:33 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-04-28 12:03:34 -0400 |
commit | 136eb955773dc99f82e6e754038eb1c530e03fdf (patch) | |
tree | 7cc04f791f09abdc0933bdc8efde3dd988d4402c /arch/arm/mach-at91 | |
parent | fe6cfde60012d4891470828a391274d94e0ea3a0 (diff) |
[ARM] 5021/1: at91: buildfix for sam9263 + PM
Build fix for power management on at91sam9263: it has two memory
controllers instead of just one, so it might have two banks of
DRAM to put into selfrefresh mode. For now we continue to assume
only the first bank is populated.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Andrew Victor <linux@maxim.org.za>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r-- | arch/arm/mach-at91/pm.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index 39733b6992aa..aa863c157708 100644 --- a/arch/arm/mach-at91/pm.c +++ b/arch/arm/mach-at91/pm.c | |||
@@ -61,6 +61,15 @@ static inline void sdram_selfrefresh_enable(void) | |||
61 | #else | 61 | #else |
62 | #include <asm/arch/at91sam9_sdramc.h> | 62 | #include <asm/arch/at91sam9_sdramc.h> |
63 | 63 | ||
64 | #ifdef CONFIG_ARCH_AT91SAM9263 | ||
65 | /* | ||
66 | * FIXME either or both the SDRAM controllers (EB0, EB1) might be in use; | ||
67 | * handle those cases both here and in the Suspend-To-RAM support. | ||
68 | */ | ||
69 | #define AT91_SDRAMC AT91_SDRAMC0 | ||
70 | #warning Assuming EB1 SDRAM controller is *NOT* used | ||
71 | #endif | ||
72 | |||
64 | static u32 saved_lpr; | 73 | static u32 saved_lpr; |
65 | 74 | ||
66 | static inline void sdram_selfrefresh_enable(void) | 75 | static inline void sdram_selfrefresh_enable(void) |
@@ -75,11 +84,6 @@ static inline void sdram_selfrefresh_enable(void) | |||
75 | 84 | ||
76 | #define sdram_selfrefresh_disable() at91_sys_write(AT91_SDRAMC_LPR, saved_lpr) | 85 | #define sdram_selfrefresh_disable() at91_sys_write(AT91_SDRAMC_LPR, saved_lpr) |
77 | 86 | ||
78 | /* | ||
79 | * FIXME: The AT91SAM9263 has a second EBI controller which may have | ||
80 | * additional SDRAM. pm_slowclock.S will require a similar fix. | ||
81 | */ | ||
82 | |||
83 | #endif | 87 | #endif |
84 | 88 | ||
85 | 89 | ||