summaryrefslogtreecommitdiff
path: root/board/ti
diff options
context:
space:
mode:
authorJon Hunter <jon-hunter@ti.com>2013-04-09 16:41:29 -0500
committerTom Rini <trini@ti.com>2013-04-10 16:03:01 -0400
commitc8b30b858fe3425e005940b2db314fc3cc9d106c (patch)
tree619959e11216046124fa7f2489d821cda3ce14fe /board/ti
parenta519602d9599a3afe53ec3f7687aba5fe3dd3af1 (diff)
omap5912-osk: Fix DRAM initialisation
The size of the DRAM for the omap5912-osk board is getting setup in the dram_init() function. However, for the current u-boot release this is too late and needs to be done in dram_init_banksize(). Therefore, add a dram_init_banksize() function for the omap5912-osk board and setup the DRAM size there. Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Diffstat (limited to 'board/ti')
-rw-r--r--board/ti/omap5912osk/omap5912osk.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/board/ti/omap5912osk/omap5912osk.c b/board/ti/omap5912osk/omap5912osk.c
index fac683a7e6..9e91c5efc1 100644
--- a/board/ti/omap5912osk/omap5912osk.c
+++ b/board/ti/omap5912osk/omap5912osk.c
@@ -128,14 +128,19 @@ void ether__init (void)
Routine:
Description:
******************************/
-int dram_init (void)
+int dram_init(void)
{
- gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
- gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
+ gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
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;
+}
+
/******************************************************
Routine: set_muxconf_regs
Description: Setting up the configuration Mux registers