Move the setting of the RAM size out of the function which now only deals
with bd_info. This will allow us to rename it.

Signed-off-by: Simon Glass <[email protected]>
---

 arch/blackfin/cpu/cpu.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/blackfin/cpu/cpu.c b/arch/blackfin/cpu/cpu.c
index 25c97b5..afb2b0a 100644
--- a/arch/blackfin/cpu/cpu.c
+++ b/arch/blackfin/cpu/cpu.c
@@ -92,8 +92,6 @@ static int global_board_data_init(void)
        bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
        bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
 
-       gd->ram_size = CONFIG_SYS_MAX_RAM_SIZE;
-
        return 0;
 }
 
@@ -348,6 +346,7 @@ void cpu_init_f(ulong bootflag, ulong loaded_from_ldr)
 #endif
 
        serial_early_puts("Init global data\n");
+       gd->ram_size = CONFIG_SYS_MAX_RAM_SIZE;
        global_board_data_init();
 }
 
-- 
2.8.0.rc3.226.g39d4020

_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to