diff options
author | Andrew Victor <andrew@sanpeople.com> | 2006-06-19 10:26:51 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-06-19 10:26:51 -0400 |
commit | 10e8e1fb758eed5cfb0cae1b770f842624851e7b (patch) | |
tree | 3276408aedaf5b1061c7f681ad5ea6dcf89925c2 /arch | |
parent | 2a6f9902c6a799a9c0218b37e39b75690c3b9a70 (diff) |
[ARM] 3581/1: AT91RM9200 Internal SRAM
Patch from Andrew Victor
This patch maps the AT91RM9200's internal SRAM into the virtual memory
address space - just below the internal peripheral registers.
Signed-off-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-at91rm9200/common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-at91rm9200/common.c b/arch/arm/mach-at91rm9200/common.c index 3848fd2d5596..40d29a73b5c5 100644 --- a/arch/arm/mach-at91rm9200/common.c +++ b/arch/arm/mach-at91rm9200/common.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <asm/mach/map.h> | 17 | #include <asm/mach/map.h> |
18 | 18 | ||
19 | #include <asm/arch/hardware.h> | 19 | #include <asm/arch/hardware.h> |
20 | #include "generic.h" | ||
20 | 21 | ||
21 | static struct map_desc at91rm9200_io_desc[] __initdata = { | 22 | static struct map_desc at91rm9200_io_desc[] __initdata = { |
22 | { | 23 | { |
@@ -94,6 +95,11 @@ static struct map_desc at91rm9200_io_desc[] __initdata = { | |||
94 | .pfn = __phys_to_pfn(AT91_BASE_TCB0), | 95 | .pfn = __phys_to_pfn(AT91_BASE_TCB0), |
95 | .length = SZ_16K, | 96 | .length = SZ_16K, |
96 | .type = MT_DEVICE, | 97 | .type = MT_DEVICE, |
98 | }, { | ||
99 | .virtual = AT91_SRAM_VIRT_BASE, | ||
100 | .pfn = __phys_to_pfn(AT91_SRAM_BASE), | ||
101 | .length = AT91_SRAM_SIZE, | ||
102 | .type = MT_DEVICE, | ||
97 | }, | 103 | }, |
98 | }; | 104 | }; |
99 | 105 | ||