diff options
author | Nicolas Ferre <nicolas.ferre@atmel.com> | 2010-10-14 13:14:00 -0400 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2010-10-26 05:32:48 -0400 |
commit | bb413db591d53c29292868577068fa822b84da82 (patch) | |
tree | 4a60e1015dd56ec54f00a809a9f3fffa99fa38a2 /arch/arm/mach-at91/at91sam9263.c | |
parent | 1345562b449e95e2098cc60eb0eed6d2415cd0b0 (diff) |
AT91: reset: extend alternate reset procedure to several chips
Several at91sam9 chips need the alternate reset procedure to be sure to halt
SDRAM smoothly before resetting the chip.
This is an extension of previous patch "Fix AT91SAM9G20 reset" to all chips
affected.
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/at91sam9263.c')
-rw-r--r-- | arch/arm/mach-at91/at91sam9263.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/arm/mach-at91/at91sam9263.c b/arch/arm/mach-at91/at91sam9263.c index 942792d630d8..249f900954d8 100644 --- a/arch/arm/mach-at91/at91sam9263.c +++ b/arch/arm/mach-at91/at91sam9263.c | |||
@@ -269,11 +269,6 @@ static struct at91_gpio_bank at91sam9263_gpio[] = { | |||
269 | } | 269 | } |
270 | }; | 270 | }; |
271 | 271 | ||
272 | static void at91sam9263_reset(void) | ||
273 | { | ||
274 | at91_sys_write(AT91_RSTC_CR, AT91_RSTC_KEY | AT91_RSTC_PROCRST | AT91_RSTC_PERRST); | ||
275 | } | ||
276 | |||
277 | static void at91sam9263_poweroff(void) | 272 | static void at91sam9263_poweroff(void) |
278 | { | 273 | { |
279 | at91_sys_write(AT91_SHDW_CR, AT91_SHDW_KEY | AT91_SHDW_SHDW); | 274 | at91_sys_write(AT91_SHDW_CR, AT91_SHDW_KEY | AT91_SHDW_SHDW); |
@@ -289,7 +284,7 @@ void __init at91sam9263_initialize(unsigned long main_clock) | |||
289 | /* Map peripherals */ | 284 | /* Map peripherals */ |
290 | iotable_init(at91sam9263_io_desc, ARRAY_SIZE(at91sam9263_io_desc)); | 285 | iotable_init(at91sam9263_io_desc, ARRAY_SIZE(at91sam9263_io_desc)); |
291 | 286 | ||
292 | at91_arch_reset = at91sam9263_reset; | 287 | at91_arch_reset = at91sam9_alt_reset; |
293 | pm_power_off = at91sam9263_poweroff; | 288 | pm_power_off = at91sam9263_poweroff; |
294 | at91_extern_irq = (1 << AT91SAM9263_ID_IRQ0) | (1 << AT91SAM9263_ID_IRQ1); | 289 | at91_extern_irq = (1 << AT91SAM9263_ID_IRQ0) | (1 << AT91SAM9263_ID_IRQ1); |
295 | 290 | ||