[U-Boot] [PATCH 19/29] blackfin: Set the RAM size separately from bd_info

Simon Glass sjg at chromium.org
Thu Dec 15 04:27:50 CET 2016


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 <sjg at chromium.org>
---

 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



More information about the U-Boot mailing list