aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/setup.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-11-17 12:25:52 -0500
committerNicolas Ferre <nicolas.ferre@atmel.com>2012-01-20 11:22:38 -0500
commite9f68b5cc6160a473fc668054fd13f435fd4508b (patch)
tree33e634558f3c15d52af2a83a0f761226f4405beb /arch/arm/mach-at91/setup.c
parentc017759418fa4956f995e5eb595ea353ca6d9a3c (diff)
ARM: at91: make rstc 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/setup.c')
-rw-r--r--arch/arm/mach-at91/setup.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/setup.c b/arch/arm/mach-at91/setup.c
index f524718d14fe..69d3fc4c46f3 100644
--- a/arch/arm/mach-at91/setup.c
+++ b/arch/arm/mach-at91/setup.c
@@ -284,6 +284,15 @@ void __init at91_ioremap_shdwc(u32 base_addr)
284 pm_power_off = at91sam9_poweroff; 284 pm_power_off = at91sam9_poweroff;
285} 285}
286 286
287void __iomem *at91_rstc_base;
288
289void __init at91_ioremap_rstc(u32 base_addr)
290{
291 at91_rstc_base = ioremap(base_addr, 16);
292 if (!at91_rstc_base)
293 panic("Impossible to ioremap at91_rstc_base\n");
294}
295
287void __init at91_initialize(unsigned long main_clock) 296void __init at91_initialize(unsigned long main_clock)
288{ 297{
289 at91_boot_soc.ioremap_registers(); 298 at91_boot_soc.ioremap_registers();