Re: [U-Boot] [PATCH 6/6] ARM: DRA7-evm: Update memory info in banks

2016-03-07 Thread Tom Rini
On Sat, Mar 05, 2016 at 05:35:18PM +0530, Lokesh Vutla wrote:

> 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 
> Signed-off-by: Lokesh Vutla 

Reviewed-by: Tom Rini 

-- 
Tom


signature.asc
Description: Digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 6/6] ARM: DRA7-evm: Update memory info in banks

2016-03-05 Thread Lokesh Vutla
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 
Signed-off-by: Lokesh Vutla 
---
 board/ti/dra7xx/evm.c | 14 ++
 1 file changed, 14 insertions(+)

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 = 0x2;
+   gd->bd->bi_dram[1].size = ram_size - CONFIG_MAX_MEM_MAPPED;
+   }
+}
+
 int board_late_init(void)
 {
 #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
-- 
2.1.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot