summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a519602)
raw | patch | inline | side by side (parent: a519602)
author | Jon Hunter <jon-hunter@ti.com> | |
Tue, 9 Apr 2013 21:41:29 +0000 (16:41 -0500) | ||
committer | Tom Rini <trini@ti.com> | |
Wed, 10 Apr 2013 20:03:01 +0000 (16:03 -0400) |
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>
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>
board/ti/omap5912osk/omap5912osk.c | patch | blob | history |
index fac683a7e63ce415b2868487efd2e2b5858cd22f..9e91c5efc143aba4148a1e143cc88359c92e4781 100644 (file)
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