summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx3/mm.c
diff options
context:
space:
mode:
authorRob Herring <r.herring@freescale.com>2009-10-19 14:43:19 -0500
committerRob Herring <r.herring@freescale.com>2009-10-26 16:57:04 -0500
commit460b55880e47a98943f5072bc03ffcfcc8a40a14 (patch)
tree5690552665f0b7843e6552e4d5fe7b63cbc78f51 /arch/arm/mach-mx3/mm.c
parent40abba66d676c6c7aff57a5fbd1345974c90b2fe (diff)
ENGR00117389 Port 5.0.0 release to 2.6.31
This is i.MX BSP 5.0.0 release ported to 2.6.31 Signed-off-by: Rob Herring <r.herring@freescale.com> Signed-off-by: Alan Tull <r80115@freescale.com> Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
Diffstat (limited to 'arch/arm/mach-mx3/mm.c')
-rw-r--r--arch/arm/mach-mx3/mm.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/arch/arm/mach-mx3/mm.c b/arch/arm/mach-mx3/mm.c
index 1f5fdd456cb9..de000f01a193 100644
--- a/arch/arm/mach-mx3/mm.c
+++ b/arch/arm/mach-mx3/mm.c
@@ -30,7 +30,6 @@
#include <mach/common.h>
#include <mach/hardware.h>
-
/*!
* @file mm.c
*
@@ -43,7 +42,7 @@
* This table defines static virtual address mappings for I/O regions.
* These are the mappings common across all MX3 boards.
*/
-static struct map_desc mxc_io_desc[] __initdata = {
+static struct map_desc mx31_io_desc[] __initdata = {
{
.virtual = X_MEMC_BASE_ADDR_VIRT,
.pfn = __phys_to_pfn(X_MEMC_BASE_ADDR),
@@ -64,6 +63,16 @@ static struct map_desc mxc_io_desc[] __initdata = {
.pfn = __phys_to_pfn(AIPS2_BASE_ADDR),
.length = AIPS2_SIZE,
.type = MT_DEVICE_NONSHARED
+ }, {
+ .virtual = SPBA0_BASE_ADDR_VIRT,
+ .pfn = __phys_to_pfn(SPBA0_BASE_ADDR),
+ .length = SPBA0_SIZE,
+ .type = MT_DEVICE_NONSHARED
+ }, {
+ .virtual = MX31_IRAM_BASE_ADDR_VIRT & 0xFFF00000,
+ .pfn = __phys_to_pfn(MX31_IRAM_BASE_ADDR & 0xFFF00000),
+ .length = SZ_1M,
+ .type = MT_DEVICE_NONSHARED
},
};
@@ -76,14 +85,7 @@ void __init mx31_map_io(void)
{
mxc_set_cpu_type(MXC_CPU_MX31);
- iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc));
-}
-
-void __init mx35_map_io(void)
-{
- mxc_set_cpu_type(MXC_CPU_MX35);
-
- iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc));
+ iotable_init(mx31_io_desc, ARRAY_SIZE(mx31_io_desc));
}
#ifdef CONFIG_CACHE_L2X0