From: Simon Glass Date: Wed, 14 Dec 2016 20:27:50 -0700 Subject: [U-Boot] [PATCH 19/29] blackfin: Set the RAM size separately from bd_info In-Reply-To: <1481772480-29544-1-git-send-email-sjg@chromium.org> References: <1481772480-29544-1-git-send-email-sjg@chromium.org> Message-ID: <1481772480-29544-20-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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