aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Rapoport <mike@compulab.co.il>2009-06-04 03:44:54 -0400
committerEric Miao <eric.y.miao@gmail.com>2009-06-04 22:50:27 -0400
commitb5a5c474b037ab61930c16b7a8e42874b54e5cb8 (patch)
treebb023a91a34349f88468119959957231d9ddc097
parent321d9eb32a903edc30a499262ad5b42cda98656c (diff)
[ARM] pxa/cm-x300: add .fixup method to enable second DRAM bank
Signed-off-by: Mike Rapoport <mike@compulab.co.il> Signed-off-by: Eric Miao <eric.miao@marvell.com>
-rw-r--r--arch/arm/mach-pxa/cm-x300.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/cm-x300.c b/arch/arm/mach-pxa/cm-x300.c
index cd39fa22ba2d..465da26591bd 100644
--- a/arch/arm/mach-pxa/cm-x300.c
+++ b/arch/arm/mach-pxa/cm-x300.c
@@ -28,6 +28,7 @@
28 28
29#include <asm/mach-types.h> 29#include <asm/mach-types.h>
30#include <asm/mach/arch.h> 30#include <asm/mach/arch.h>
31#include <asm/setup.h>
31 32
32#include <mach/pxa300.h> 33#include <mach/pxa300.h>
33#include <mach/pxafb.h> 34#include <mach/pxafb.h>
@@ -494,6 +495,18 @@ static void __init cm_x300_init(void)
494 cm_x300_init_rtc(); 495 cm_x300_init_rtc();
495} 496}
496 497
498static void __init cm_x300_fixup(struct machine_desc *mdesc, struct tag *tags,
499 char **cmdline, struct meminfo *mi)
500{
501 mi->nr_banks = 2;
502 mi->bank[0].start = 0xa0000000;
503 mi->bank[0].node = 0;
504 mi->bank[0].size = (64*1024*1024);
505 mi->bank[1].start = 0xc0000000;
506 mi->bank[1].node = 0;
507 mi->bank[1].size = (64*1024*1024);
508}
509
497MACHINE_START(CM_X300, "CM-X300 module") 510MACHINE_START(CM_X300, "CM-X300 module")
498 .phys_io = 0x40000000, 511 .phys_io = 0x40000000,
499 .boot_params = 0xa0000100, 512 .boot_params = 0xa0000100,
@@ -502,4 +515,5 @@ MACHINE_START(CM_X300, "CM-X300 module")
502 .init_irq = pxa3xx_init_irq, 515 .init_irq = pxa3xx_init_irq,
503 .timer = &pxa_timer, 516 .timer = &pxa_timer,
504 .init_machine = cm_x300_init, 517 .init_machine = cm_x300_init,
518 .fixup = cm_x300_fixup,
505MACHINE_END 519MACHINE_END