]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - security-integration-tree/security-ti-u-boot.git/commitdiff
ARM: DRA7-evm: Update memory info in banks
authorLokesh Vutla <lokeshvutla@ti.com>
Fri, 6 Nov 2015 15:50:17 +0000 (21:20 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Wed, 3 Feb 2016 04:00:20 +0000 (09:30 +0530)
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>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
board/ti/dra7xx/evm.c

index 5ddd007484a73207a5ac391b461f6e46021280c4..e5f819915f04db73e9e485ee9240d6719e0b21da 100644 (file)
@@ -273,6 +273,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