aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/at91sam9263.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-10-31 13:23:20 -0400
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-11-28 09:50:38 -0500
commitf22deee523e0ff49c3be01dd6f979d374230725a (patch)
treee8ef85e51335de930cba58e5d7fb90625590002b /arch/arm/mach-at91/at91sam9263.c
parentf466f3bc92eb6857181bb033d14b1e9b1dd52140 (diff)
ARM: at91: make shutdown controler 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/at91sam9263.c')
-rw-r--r--arch/arm/mach-at91/at91sam9263.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/arm/mach-at91/at91sam9263.c b/arch/arm/mach-at91/at91sam9263.c
index b8f49962e87f..2a42b99d99d1 100644
--- a/arch/arm/mach-at91/at91sam9263.c
+++ b/arch/arm/mach-at91/at91sam9263.c
@@ -11,7 +11,6 @@
11 */ 11 */
12 12
13#include <linux/module.h> 13#include <linux/module.h>
14#include <linux/pm.h>
15 14
16#include <asm/irq.h> 15#include <asm/irq.h>
17#include <asm/mach/arch.h> 16#include <asm/mach/arch.h>
@@ -19,7 +18,6 @@
19#include <mach/at91sam9263.h> 18#include <mach/at91sam9263.h>
20#include <mach/at91_pmc.h> 19#include <mach/at91_pmc.h>
21#include <mach/at91_rstc.h> 20#include <mach/at91_rstc.h>
22#include <mach/at91_shdwc.h>
23 21
24#include "soc.h" 22#include "soc.h"
25#include "generic.h" 23#include "generic.h"
@@ -288,12 +286,6 @@ static struct at91_gpio_bank at91sam9263_gpio[] = {
288 } 286 }
289}; 287};
290 288
291static void at91sam9263_poweroff(void)
292{
293 at91_sys_write(AT91_SHDW_CR, AT91_SHDW_KEY | AT91_SHDW_SHDW);
294}
295
296
297/* -------------------------------------------------------------------- 289/* --------------------------------------------------------------------
298 * AT91SAM9263 processor initialization 290 * AT91SAM9263 processor initialization
299 * -------------------------------------------------------------------- */ 291 * -------------------------------------------------------------------- */
@@ -306,6 +298,7 @@ static void __init at91sam9263_map_io(void)
306 298
307static void __init at91sam9263_ioremap_registers(void) 299static void __init at91sam9263_ioremap_registers(void)
308{ 300{
301 at91_ioremap_shdwc(AT91SAM9263_BASE_SHDWC);
309 at91sam926x_ioremap_pit(AT91SAM9263_BASE_PIT); 302 at91sam926x_ioremap_pit(AT91SAM9263_BASE_PIT);
310 at91sam9_ioremap_smc(0, AT91SAM9263_BASE_SMC0); 303 at91sam9_ioremap_smc(0, AT91SAM9263_BASE_SMC0);
311 at91sam9_ioremap_smc(1, AT91SAM9263_BASE_SMC1); 304 at91sam9_ioremap_smc(1, AT91SAM9263_BASE_SMC1);
@@ -314,7 +307,6 @@ static void __init at91sam9263_ioremap_registers(void)
314static void __init at91sam9263_initialize(void) 307static void __init at91sam9263_initialize(void)
315{ 308{
316 at91_arch_reset = at91sam9_alt_reset; 309 at91_arch_reset = at91sam9_alt_reset;
317 pm_power_off = at91sam9263_poweroff;
318 at91_extern_irq = (1 << AT91SAM9263_ID_IRQ0) | (1 << AT91SAM9263_ID_IRQ1); 310 at91_extern_irq = (1 << AT91SAM9263_ID_IRQ0) | (1 << AT91SAM9263_ID_IRQ1);
319 311
320 /* Register GPIO subsystem */ 312 /* Register GPIO subsystem */