summaryrefslogtreecommitdiff
path: root/board/vpac270
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2010-09-23 09:46:57 +0200
committerWolfgang Denk <wd@denx.de>2010-10-19 22:47:34 +0200
commit6ef6eb91cda895de3366068fc2caf25328786f4d (patch)
tree4683c5c1f90a7f632b071fc510fe4e36c5c4005e /board/vpac270
parent80124df14f43e08c86892f5344c23cff1e943dbc (diff)
downloadu-boot-imx-6ef6eb91cda895de3366068fc2caf25328786f4d.zip
u-boot-imx-6ef6eb91cda895de3366068fc2caf25328786f4d.tar.gz
u-boot-imx-6ef6eb91cda895de3366068fc2caf25328786f4d.tar.bz2
PXA: Add necessary information for RELOC
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Diffstat (limited to 'board/vpac270')
-rw-r--r--board/vpac270/vpac270.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/board/vpac270/vpac270.c b/board/vpac270/vpac270.c
index 1557d1b..f91ff97 100644
--- a/board/vpac270/vpac270.c
+++ b/board/vpac270/vpac270.c
@@ -49,8 +49,18 @@ struct serial_device *default_serial_console(void)
return &serial_ffuart_device;
}
+
int dram_init(void)
{
+ gd->ram_size = PHYS_SDRAM_1_SIZE;
+#ifdef CONFIG_256M_U_BOOT
+ gd->ram_size += PHYS_SDRAM_2_SIZE;
+#endif
+ return 0;
+}
+
+void dram_init_banksize(void)
+{
gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
@@ -58,7 +68,6 @@ int dram_init(void)
gd->bd->bi_dram[1].start = PHYS_SDRAM_2;
gd->bd->bi_dram[1].size = PHYS_SDRAM_2_SIZE;
#endif
- return 0;
}
#ifdef CONFIG_CMD_USB