diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2016-03-08 09:18:09 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-03-14 19:18:51 -0400 |
commit | d468b1781abe3975fdbc1695ef1fcfb48b01732b (patch) | |
tree | 55456234e821e8f01ca7b1081216f183e30d3c01 /board/ti | |
parent | c4a2736ca165167aa38228a60354c6a8950d42f8 (diff) | |
download | u-boot-imx-d468b1781abe3975fdbc1695ef1fcfb48b01732b.zip u-boot-imx-d468b1781abe3975fdbc1695ef1fcfb48b01732b.tar.gz u-boot-imx-d468b1781abe3975fdbc1695ef1fcfb48b01732b.tar.bz2 |
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>
Diffstat (limited to 'board/ti')
-rw-r--r-- | board/ti/dra7xx/evm.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c index d142ccc..4c6dfa0 100644 --- a/board/ti/dra7xx/evm.c +++ b/board/ti/dra7xx/evm.c @@ -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 |