Skip to content
Snippets Groups Projects
Commit 15eb1d43 authored by Lokesh Vutla's avatar Lokesh Vutla Committed by Tom Rini
Browse files

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: default avatarLokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: default avatarRavi Babu <ravibabu@ti.com>
Reviewed-by: default avatarLukasz Majewski <lukma@denx.de>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent e938ef1f
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment