mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[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 <[email protected]> Signed-off-by: Russell King <[email protected]>
This commit is contained in:
parent
2a6f9902c6
commit
10e8e1fb75
3 changed files with 11 additions and 2 deletions
|
|
@ -17,6 +17,7 @@
|
|||
#include <asm/mach/map.h>
|
||||
|
||||
#include <asm/arch/hardware.h>
|
||||
#include "generic.h"
|
||||
|
||||
static struct map_desc at91rm9200_io_desc[] __initdata = {
|
||||
{
|
||||
|
|
@ -94,6 +95,11 @@ static struct map_desc at91rm9200_io_desc[] __initdata = {
|
|||
.pfn = __phys_to_pfn(AT91_BASE_TCB0),
|
||||
.length = SZ_16K,
|
||||
.type = MT_DEVICE,
|
||||
}, {
|
||||
.virtual = AT91_SRAM_VIRT_BASE,
|
||||
.pfn = __phys_to_pfn(AT91_SRAM_BASE),
|
||||
.length = AT91_SRAM_SIZE,
|
||||
.type = MT_DEVICE,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue