mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
ARM: DRA7-evm: Update memory info in banks
Updating the memory banks properly so that DT is populated accordingly. And updating this only after DDR is properly detected by eeprom, so that git bisect is still maintained. Acked-by: Nishanth Menon <nm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
This commit is contained in:
parent
c4a2736ca1
commit
d468b1781a
1 changed files with 14 additions and 0 deletions
|
|
@ -268,6 +268,20 @@ int board_init(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void dram_init_banksize(void)
|
||||
{
|
||||
u64 ram_size;
|
||||
|
||||
ram_size = board_ti_get_emif_size();
|
||||
|
||||
gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
|
||||
gd->bd->bi_dram[0].size = get_effective_memsize();
|
||||
if (ram_size > CONFIG_MAX_MEM_MAPPED) {
|
||||
gd->bd->bi_dram[1].start = 0x200000000;
|
||||
gd->bd->bi_dram[1].size = ram_size - CONFIG_MAX_MEM_MAPPED;
|
||||
}
|
||||
}
|
||||
|
||||
int board_late_init(void)
|
||||
{
|
||||
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue