From 15eb1d43bf470b85e9031c2fce7e0ce7b27dd321 Mon Sep 17 00:00:00 2001 From: Lokesh Vutla Date: Tue, 18 Apr 2017 17:27:23 +0530 Subject: [PATCH] spl: reorder the assignment of board info to global data Move the assignment of board info to global data a bit early which is safe, so that ram details can be used to enable caches. Signed-off-by: Lokesh Vutla Signed-off-by: Ravi Babu Reviewed-by: Lukasz Majewski Reviewed-by: Tom Rini --- common/spl/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/spl/spl.c b/common/spl/spl.c index 50828e6021..8eea2f937a 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -322,6 +322,7 @@ void board_init_r(gd_t *dummy1, ulong dummy2) struct spl_image_info spl_image; debug(">>spl:board_init_r()\n"); + gd->bd = &bdata; #if defined(CONFIG_SYS_SPL_MALLOC_START) mem_malloc_init(CONFIG_SYS_SPL_MALLOC_START, @@ -385,7 +386,6 @@ void board_init_r(gd_t *dummy1, ulong dummy2) */ void preloader_console_init(void) { - gd->bd = &bdata; gd->baudrate = CONFIG_BAUDRATE; serial_init(); /* serial communications setup */ -- 2.39.5