aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/at91sam9rl.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-05-09 15:20:09 -0400
committerArnd Bergmann <arnd@arndb.de>2011-07-28 11:07:29 -0400
commitf0051d82a68abcf35418d49db1c82e6f0e514d78 (patch)
tree5a14645bdefe2a3c4671f456d4eb6595956c68ca /arch/arm/mach-at91/at91sam9rl.c
parent51ddec7617bd0d4c73c44a8862faac5d7d97eb03 (diff)
at91: factorize sram init
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/at91sam9rl.c')
-rw-r--r--arch/arm/mach-at91/at91sam9rl.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/arm/mach-at91/at91sam9rl.c b/arch/arm/mach-at91/at91sam9rl.c
index 55ee7d0a9bf4..a238105d2c11 100644
--- a/arch/arm/mach-at91/at91sam9rl.c
+++ b/arch/arm/mach-at91/at91sam9rl.c
@@ -26,13 +26,6 @@
26#include "generic.h" 26#include "generic.h"
27#include "clock.h" 27#include "clock.h"
28 28
29static struct map_desc at91sam9rl_sram_desc[] __initdata = {
30 {
31 .pfn = __phys_to_pfn(AT91SAM9RL_SRAM_BASE),
32 .type = MT_DEVICE,
33 }
34};
35
36/* -------------------------------------------------------------------- 29/* --------------------------------------------------------------------
37 * Clocks 30 * Clocks
38 * -------------------------------------------------------------------- */ 31 * -------------------------------------------------------------------- */
@@ -293,11 +286,8 @@ static void __init at91sam9rl_map_io(void)
293 sram_size = SZ_16K; 286 sram_size = SZ_16K;
294 } 287 }
295 288
296 at91sam9rl_sram_desc->virtual = AT91_IO_VIRT_BASE - sram_size;
297 at91sam9rl_sram_desc->length = sram_size;
298
299 /* Map SRAM */ 289 /* Map SRAM */
300 iotable_init(at91sam9rl_sram_desc, ARRAY_SIZE(at91sam9rl_sram_desc)); 290 at91_init_sram(0, AT91SAM9RL_SRAM_BASE, sram_size);
301} 291}
302 292
303static void __init at91sam9rl_initialize(void) 293static void __init at91sam9rl_initialize(void)