mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 21:21:37 +00:00
arch: arm: omap: Declare size of ddr very early
Declare the size of ddr very early in spl, so that this can be used to enable cache. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Ravi Babu <ravibabu@ti.com>
This commit is contained in:
parent
15eb1d43bf
commit
86282798b0
2 changed files with 5 additions and 0 deletions
|
@ -327,6 +327,10 @@ void board_init_f(ulong dummy)
|
|||
early_system_init();
|
||||
board_early_init_f();
|
||||
sdram_init();
|
||||
/* dram_init must store complete ramsize in gd->ram_size */
|
||||
gd->ram_size = get_ram_size(
|
||||
(void *)CONFIG_SYS_SDRAM_BASE,
|
||||
CONFIG_MAX_RAM_BANK_SIZE);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -171,6 +171,7 @@ void board_init_f(ulong dummy)
|
|||
#endif
|
||||
/* For regular u-boot sdram_init() is called from dram_init() */
|
||||
sdram_init();
|
||||
gd->ram_size = omap_sdram_size();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue