diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-05-09 15:20:09 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2011-07-28 11:07:29 -0400 |
commit | f0051d82a68abcf35418d49db1c82e6f0e514d78 (patch) | |
tree | 5a14645bdefe2a3c4671f456d4eb6595956c68ca /arch/arm/mach-at91/at91sam9263.c | |
parent | 51ddec7617bd0d4c73c44a8862faac5d7d97eb03 (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/at91sam9263.c')
-rw-r--r-- | arch/arm/mach-at91/at91sam9263.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/arch/arm/mach-at91/at91sam9263.c b/arch/arm/mach-at91/at91sam9263.c index da13f02acf51..044f3c927e64 100644 --- a/arch/arm/mach-at91/at91sam9263.c +++ b/arch/arm/mach-at91/at91sam9263.c | |||
@@ -25,20 +25,6 @@ | |||
25 | #include "generic.h" | 25 | #include "generic.h" |
26 | #include "clock.h" | 26 | #include "clock.h" |
27 | 27 | ||
28 | static struct map_desc at91sam9263_sram_desc[] __initdata = { | ||
29 | { | ||
30 | .virtual = AT91_IO_VIRT_BASE - AT91SAM9263_SRAM0_SIZE, | ||
31 | .pfn = __phys_to_pfn(AT91SAM9263_SRAM0_BASE), | ||
32 | .length = AT91SAM9263_SRAM0_SIZE, | ||
33 | .type = MT_DEVICE, | ||
34 | }, { | ||
35 | .virtual = AT91_IO_VIRT_BASE - AT91SAM9263_SRAM0_SIZE - AT91SAM9263_SRAM1_SIZE, | ||
36 | .pfn = __phys_to_pfn(AT91SAM9263_SRAM1_BASE), | ||
37 | .length = AT91SAM9263_SRAM1_SIZE, | ||
38 | .type = MT_DEVICE, | ||
39 | }, | ||
40 | }; | ||
41 | |||
42 | /* -------------------------------------------------------------------- | 28 | /* -------------------------------------------------------------------- |
43 | * Clocks | 29 | * Clocks |
44 | * -------------------------------------------------------------------- */ | 30 | * -------------------------------------------------------------------- */ |
@@ -311,7 +297,8 @@ static void at91sam9263_poweroff(void) | |||
311 | 297 | ||
312 | static void __init at91sam9263_map_io(void) | 298 | static void __init at91sam9263_map_io(void) |
313 | { | 299 | { |
314 | iotable_init(at91sam9263_sram_desc, ARRAY_SIZE(at91sam9263_sram_desc)); | 300 | at91_init_sram(0, AT91SAM9263_SRAM0_BASE, AT91SAM9263_SRAM0_SIZE); |
301 | at91_init_sram(1, AT91SAM9263_SRAM1_BASE, AT91SAM9263_SRAM1_SIZE); | ||
315 | } | 302 | } |
316 | 303 | ||
317 | static void __init at91sam9263_initialize(void) | 304 | static void __init at91sam9263_initialize(void) |