aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-msm
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2009-11-02 11:55:12 +0100
committerDaniel Walker <dwalker@fifo99.com>2009-11-20 06:40:23 -0800
commit5c43d49aec499973b51e574af871c8918598c2db (patch)
tree346bd8a0338272c2e007c514c7f25cd9ed30c205 /arch/arm/mach-msm
parent348ee123a15ec064c0c4c98ecb5fbf4737153887 (diff)
msm: Add memory map for HTC Dream
Add memory map to HTC Dream, so that boot can proceed further. Signed-off-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm')
-rw-r--r--arch/arm/mach-msm/board-dream.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-msm/board-dream.c b/arch/arm/mach-msm/board-dream.c
index 931a7964946..21afa851316 100644
--- a/arch/arm/mach-msm/board-dream.c
+++ b/arch/arm/mach-msm/board-dream.c
@@ -21,6 +21,7 @@
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
+#include <asm/setup.h>
#include <mach/board.h>
#include <mach/hardware.h>
@@ -44,6 +45,15 @@ static void __init trout_init_irq(void)
msm_init_irq();
}
+static void __init trout_fixup(struct machine_desc *desc, struct tag *tags,
+ char **cmdline, struct meminfo *mi)
+{
+ mi->nr_banks = 1;
+ mi->bank[0].start = PHYS_OFFSET;
+ mi->bank[0].node = PHYS_TO_NID(PHYS_OFFSET);
+ mi->bank[0].size = (101*1024*1024);
+}
+
static void __init trout_init(void)
{
platform_add_devices(devices, ARRAY_SIZE(devices));
@@ -75,6 +85,7 @@ MACHINE_START(TROUT, "HTC Dream")
.phys_io = MSM_DEBUG_UART_PHYS,
.io_pg_offst = ((MSM_DEBUG_UART_BASE) >> 18) & 0xfffc,
.boot_params = 0x10000100,
+ .fixup = trout_fixup,
.map_io = trout_map_io,
.init_irq = trout_init_irq,
.init_machine = trout_init,