diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-04-23 03:28:34 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2011-07-28 11:07:28 -0400 |
commit | 21d08b9d5536ac418bbce4f419fe2b528b7ddf31 (patch) | |
tree | f1a1bbf5645d933799e31d93365458826dfadea6 /arch/arm/mach-at91/at91rm9200.c | |
parent | 02f8c6aee8df3cdc935e9bdd4f2d020306035dbe (diff) |
at91: introduce commom AT91_BASE_SYS
On all at91 except rm9200 and x40 have the System Controller starts
at address 0xffffc000 and has a size of 16KiB.
On rm9200 it's start at 0xfffe4000 of 111KiB with non reserved data starting
at 0xfffff000
This patch removes the individual definitions of AT91_BASE_SYS and
replaces them with a common version at base 0xfffffc000 and size 16KiB
and map the same memory space
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.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/arm/mach-at91/at91rm9200.c b/arch/arm/mach-at91/at91rm9200.c index 83a1a3fee554..489f4d90f274 100644 --- a/arch/arm/mach-at91/at91rm9200.c +++ b/arch/arm/mach-at91/at91rm9200.c | |||
@@ -20,16 +20,12 @@ | |||
20 | #include <mach/at91_st.h> | 20 | #include <mach/at91_st.h> |
21 | #include <mach/cpu.h> | 21 | #include <mach/cpu.h> |
22 | 22 | ||
23 | #include "soc.h" | ||
23 | #include "generic.h" | 24 | #include "generic.h" |
24 | #include "clock.h" | 25 | #include "clock.h" |
25 | 26 | ||
26 | static struct map_desc at91rm9200_io_desc[] __initdata = { | 27 | static struct map_desc at91rm9200_io_desc[] __initdata = { |
27 | { | 28 | { |
28 | .virtual = AT91_VA_BASE_SYS, | ||
29 | .pfn = __phys_to_pfn(AT91_BASE_SYS), | ||
30 | .length = SZ_4K, | ||
31 | .type = MT_DEVICE, | ||
32 | }, { | ||
33 | .virtual = AT91_VA_BASE_EMAC, | 29 | .virtual = AT91_VA_BASE_EMAC, |
34 | .pfn = __phys_to_pfn(AT91RM9200_BASE_EMAC), | 30 | .pfn = __phys_to_pfn(AT91RM9200_BASE_EMAC), |
35 | .length = SZ_16K, | 31 | .length = SZ_16K, |
@@ -315,13 +311,13 @@ void __init at91rm9200_set_type(int type) | |||
315 | /* -------------------------------------------------------------------- | 311 | /* -------------------------------------------------------------------- |
316 | * AT91RM9200 processor initialization | 312 | * AT91RM9200 processor initialization |
317 | * -------------------------------------------------------------------- */ | 313 | * -------------------------------------------------------------------- */ |
318 | void __init at91rm9200_map_io(void) | 314 | static void __init at91rm9200_map_io(void) |
319 | { | 315 | { |
320 | /* Map peripherals */ | 316 | /* Map peripherals */ |
321 | iotable_init(at91rm9200_io_desc, ARRAY_SIZE(at91rm9200_io_desc)); | 317 | iotable_init(at91rm9200_io_desc, ARRAY_SIZE(at91rm9200_io_desc)); |
322 | } | 318 | } |
323 | 319 | ||
324 | void __init at91rm9200_initialize(unsigned long main_clock) | 320 | static void __init at91rm9200_initialize(unsigned long main_clock) |
325 | { | 321 | { |
326 | at91_arch_reset = at91rm9200_reset; | 322 | at91_arch_reset = at91rm9200_reset; |
327 | at91_extern_irq = (1 << AT91RM9200_ID_IRQ0) | (1 << AT91RM9200_ID_IRQ1) | 323 | at91_extern_irq = (1 << AT91RM9200_ID_IRQ0) | (1 << AT91RM9200_ID_IRQ1) |
@@ -394,3 +390,8 @@ void __init at91rm9200_init_interrupts(unsigned int priority[NR_AIC_IRQS]) | |||
394 | /* Enable GPIO interrupts */ | 390 | /* Enable GPIO interrupts */ |
395 | at91_gpio_irq_setup(); | 391 | at91_gpio_irq_setup(); |
396 | } | 392 | } |
393 | |||
394 | struct at91_soc __initdata at91rm9200_soc = { | ||
395 | .map_io = at91rm9200_map_io, | ||
396 | .init = at91rm9200_initialize, | ||
397 | }; | ||