aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/at91rm9200.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/at91rm9200.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/at91rm9200.c')
-rw-r--r--arch/arm/mach-at91/at91rm9200.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/mach-at91/at91rm9200.c b/arch/arm/mach-at91/at91rm9200.c
index 010407802cdc..f73302dbc6a5 100644
--- a/arch/arm/mach-at91/at91rm9200.c
+++ b/arch/arm/mach-at91/at91rm9200.c
@@ -30,11 +30,6 @@ static struct map_desc at91rm9200_io_desc[] __initdata = {
30 .pfn = __phys_to_pfn(AT91RM9200_BASE_EMAC), 30 .pfn = __phys_to_pfn(AT91RM9200_BASE_EMAC),
31 .length = SZ_16K, 31 .length = SZ_16K,
32 .type = MT_DEVICE, 32 .type = MT_DEVICE,
33 }, {
34 .virtual = AT91_IO_VIRT_BASE - AT91RM9200_SRAM_SIZE,
35 .pfn = __phys_to_pfn(AT91RM9200_SRAM_BASE),
36 .length = AT91RM9200_SRAM_SIZE,
37 .type = MT_DEVICE,
38 }, 33 },
39}; 34};
40 35
@@ -306,6 +301,7 @@ static void at91rm9200_reset(void)
306static void __init at91rm9200_map_io(void) 301static void __init at91rm9200_map_io(void)
307{ 302{
308 /* Map peripherals */ 303 /* Map peripherals */
304 at91_init_sram(0, AT91RM9200_SRAM_BASE, AT91RM9200_SRAM_SIZE);
309 iotable_init(at91rm9200_io_desc, ARRAY_SIZE(at91rm9200_io_desc)); 305 iotable_init(at91rm9200_io_desc, ARRAY_SIZE(at91rm9200_io_desc));
310} 306}
311 307