summaryrefslogtreecommitdiff
path: root/common/spl
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2017-04-18 11:57:23 (GMT)
committerTom Rini <trini@konsulko.com>2017-05-12 02:03:41 (GMT)
commit15eb1d43bf470b85e9031c2fce7e0ce7b27dd321 (patch)
tree3c51c93b02226569f3a2dc5694d28e86fcd1369b /common/spl
parente938ef1f071d9358ab5667e07cd024f377f5984c (diff)
downloadu-boot-15eb1d43bf470b85e9031c2fce7e0ce7b27dd321.tar.xz
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 <lokeshvutla@ti.com> Signed-off-by: Ravi Babu <ravibabu@ti.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common/spl')
-rw-r--r--common/spl/spl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c
index 50828e6..8eea2f9 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 */