diff options
Diffstat (limited to 'arch/arm/mach-msm/board-mahimahi.c')
-rw-r--r-- | arch/arm/mach-msm/board-mahimahi.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/arch/arm/mach-msm/board-mahimahi.c b/arch/arm/mach-msm/board-mahimahi.c index 7d9981cb400e..873c3ca3cd7e 100644 --- a/arch/arm/mach-msm/board-mahimahi.c +++ b/arch/arm/mach-msm/board-mahimahi.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/io.h> | 22 | #include <linux/io.h> |
23 | #include <linux/kernel.h> | 23 | #include <linux/kernel.h> |
24 | #include <linux/platform_device.h> | 24 | #include <linux/platform_device.h> |
25 | #include <linux/memblock.h> | ||
25 | 26 | ||
26 | #include <asm/mach-types.h> | 27 | #include <asm/mach-types.h> |
27 | #include <asm/mach/arch.h> | 28 | #include <asm/mach/arch.h> |
@@ -52,16 +53,10 @@ static void __init mahimahi_init(void) | |||
52 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 53 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
53 | } | 54 | } |
54 | 55 | ||
55 | static void __init mahimahi_fixup(struct tag *tags, char **cmdline, | 56 | static void __init mahimahi_fixup(struct tag *tags, char **cmdline) |
56 | struct meminfo *mi) | ||
57 | { | 57 | { |
58 | mi->nr_banks = 2; | 58 | memblock_add(PHYS_OFFSET, 219*SZ_1M); |
59 | mi->bank[0].start = PHYS_OFFSET; | 59 | memblock_add(MSM_HIGHMEM_BASE, MSM_HIGHMEM_SIZE); |
60 | mi->bank[0].node = PHYS_TO_NID(PHYS_OFFSET); | ||
61 | mi->bank[0].size = (219*1024*1024); | ||
62 | mi->bank[1].start = MSM_HIGHMEM_BASE; | ||
63 | mi->bank[1].node = PHYS_TO_NID(MSM_HIGHMEM_BASE); | ||
64 | mi->bank[1].size = MSM_HIGHMEM_SIZE; | ||
65 | } | 60 | } |
66 | 61 | ||
67 | static void __init mahimahi_map_io(void) | 62 | static void __init mahimahi_map_io(void) |