aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-msm/board-dream.c
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2009-11-02 05:55:12 -0500
committerDaniel Walker <dwalker@fifo99.com>2009-11-20 09:40:23 -0500
commit5c43d49aec499973b51e574af871c8918598c2db (patch)
tree346bd8a0338272c2e007c514c7f25cd9ed30c205 /arch/arm/mach-msm/board-dream.c
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/board-dream.c')
-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 931a79649463..21afa8513168 100644
--- a/arch/arm/mach-msm/board-dream.c
+++ b/arch/arm/mach-msm/board-dream.c
@@ -21,6 +21,7 @@
21#include <asm/mach-types.h> 21#include <asm/mach-types.h>
22#include <asm/mach/arch.h> 22#include <asm/mach/arch.h>
23#include <asm/mach/map.h> 23#include <asm/mach/map.h>
24#include <asm/setup.h>
24 25
25#include <mach/board.h> 26#include <mach/board.h>
26#include <mach/hardware.h> 27#include <mach/hardware.h>
@@ -44,6 +45,15 @@ static void __init trout_init_irq(void)
44 msm_init_irq(); 45 msm_init_irq();
45} 46}
46 47
48static void __init trout_fixup(struct machine_desc *desc, struct tag *tags,
49 char **cmdline, struct meminfo *mi)
50{
51 mi->nr_banks = 1;
52 mi->bank[0].start = PHYS_OFFSET;
53 mi->bank[0].node = PHYS_TO_NID(PHYS_OFFSET);
54 mi->bank[0].size = (101*1024*1024);
55}
56
47static void __init trout_init(void) 57static void __init trout_init(void)
48{ 58{
49 platform_add_devices(devices, ARRAY_SIZE(devices)); 59 platform_add_devices(devices, ARRAY_SIZE(devices));
@@ -75,6 +85,7 @@ MACHINE_START(TROUT, "HTC Dream")
75 .phys_io = MSM_DEBUG_UART_PHYS, 85 .phys_io = MSM_DEBUG_UART_PHYS,
76 .io_pg_offst = ((MSM_DEBUG_UART_BASE) >> 18) & 0xfffc, 86 .io_pg_offst = ((MSM_DEBUG_UART_BASE) >> 18) & 0xfffc,
77 .boot_params = 0x10000100, 87 .boot_params = 0x10000100,
88 .fixup = trout_fixup,
78 .map_io = trout_map_io, 89 .map_io = trout_map_io,
79 .init_irq = trout_init_irq, 90 .init_irq = trout_init_irq,
80 .init_machine = trout_init, 91 .init_machine = trout_init,