summaryrefslogtreecommitdiff
path: root/board/vpac270
diff options
context:
space:
mode:
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