diff options
author | Arve Hjønnevåg <arve@android.com> | 2008-10-30 00:45:46 -0400 |
---|---|---|
committer | Daniel Walker <dwalker@codeaurora.org> | 2010-05-12 12:13:49 -0400 |
commit | 6bd631e17eaa0d045b259ff7a6625bfe96c15283 (patch) | |
tree | 2c525766beec53392754dadb851fa5e283f6ae59 /arch/arm/mach-msm | |
parent | a32d2feb80bb2d186d415ed8bb4997148add0bd1 (diff) |
[ARM] msm: halibut: Add memory configuration.
Diffstat (limited to 'arch/arm/mach-msm')
-rw-r--r-- | arch/arm/mach-msm/board-halibut.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-msm/board-halibut.c b/arch/arm/mach-msm/board-halibut.c index e61967dde9a1..b8da1002f47d 100644 --- a/arch/arm/mach-msm/board-halibut.c +++ b/arch/arm/mach-msm/board-halibut.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <asm/mach/arch.h> | 26 | #include <asm/mach/arch.h> |
27 | #include <asm/mach/map.h> | 27 | #include <asm/mach/map.h> |
28 | #include <asm/mach/flash.h> | 28 | #include <asm/mach/flash.h> |
29 | #include <asm/setup.h> | ||
29 | 30 | ||
30 | #include <mach/irqs.h> | 31 | #include <mach/irqs.h> |
31 | #include <mach/board.h> | 32 | #include <mach/board.h> |
@@ -77,6 +78,15 @@ static void __init halibut_init(void) | |||
77 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 78 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
78 | } | 79 | } |
79 | 80 | ||
81 | static void __init halibut_fixup(struct machine_desc *desc, struct tag *tags, | ||
82 | char **cmdline, struct meminfo *mi) | ||
83 | { | ||
84 | mi->nr_banks=1; | ||
85 | mi->bank[0].start = PHYS_OFFSET; | ||
86 | mi->bank[0].node = PHYS_TO_NID(PHYS_OFFSET); | ||
87 | mi->bank[0].size = (101*1024*1024); | ||
88 | } | ||
89 | |||
80 | static void __init halibut_map_io(void) | 90 | static void __init halibut_map_io(void) |
81 | { | 91 | { |
82 | msm_map_common_io(); | 92 | msm_map_common_io(); |
@@ -85,6 +95,7 @@ static void __init halibut_map_io(void) | |||
85 | 95 | ||
86 | MACHINE_START(HALIBUT, "Halibut Board (QCT SURF7200A)") | 96 | MACHINE_START(HALIBUT, "Halibut Board (QCT SURF7200A)") |
87 | .boot_params = 0x10000100, | 97 | .boot_params = 0x10000100, |
98 | .fixup = halibut_fixup, | ||
88 | .map_io = halibut_map_io, | 99 | .map_io = halibut_map_io, |
89 | .init_irq = halibut_init_irq, | 100 | .init_irq = halibut_init_irq, |
90 | .init_machine = halibut_init, | 101 | .init_machine = halibut_init, |