aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-msm/board-trout.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-msm/board-trout.c')
-rw-r--r--arch/arm/mach-msm/board-trout.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/arm/mach-msm/board-trout.c b/arch/arm/mach-msm/board-trout.c
index 015d544aa017..f72b07de2152 100644
--- a/arch/arm/mach-msm/board-trout.c
+++ b/arch/arm/mach-msm/board-trout.c
@@ -19,6 +19,7 @@
19#include <linux/init.h> 19#include <linux/init.h>
20#include <linux/platform_device.h> 20#include <linux/platform_device.h>
21#include <linux/clkdev.h> 21#include <linux/clkdev.h>
22#include <linux/memblock.h>
22 23
23#include <asm/system_info.h> 24#include <asm/system_info.h>
24#include <asm/mach-types.h> 25#include <asm/mach-types.h>
@@ -55,12 +56,9 @@ static void __init trout_init_irq(void)
55 msm_init_irq(); 56 msm_init_irq();
56} 57}
57 58
58static void __init trout_fixup(struct tag *tags, char **cmdline, 59static void __init trout_fixup(struct tag *tags, char **cmdline)
59 struct meminfo *mi)
60{ 60{
61 mi->nr_banks = 1; 61 memblock_add(PHYS_OFFSET, 101*SZ_1M);
62 mi->bank[0].start = PHYS_OFFSET;
63 mi->bank[0].size = (101*1024*1024);
64} 62}
65 63
66static void __init trout_init(void) 64static void __init trout_init(void)
@@ -78,7 +76,7 @@ static void __init trout_init(void)
78 76
79static struct map_desc trout_io_desc[] __initdata = { 77static struct map_desc trout_io_desc[] __initdata = {
80 { 78 {
81 .virtual = TROUT_CPLD_BASE, 79 .virtual = (unsigned long)TROUT_CPLD_BASE,
82 .pfn = __phys_to_pfn(TROUT_CPLD_START), 80 .pfn = __phys_to_pfn(TROUT_CPLD_START),
83 .length = TROUT_CPLD_SIZE, 81 .length = TROUT_CPLD_SIZE,
84 .type = MT_DEVICE_NONSHARED 82 .type = MT_DEVICE_NONSHARED