mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-20 22:21:41 +00:00
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>
This commit is contained in:
parent
e938ef1f07
commit
15eb1d43bf
1 changed files with 1 additions and 1 deletions
|
@ -322,6 +322,7 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
|
||||||
struct spl_image_info spl_image;
|
struct spl_image_info spl_image;
|
||||||
|
|
||||||
debug(">>spl:board_init_r()\n");
|
debug(">>spl:board_init_r()\n");
|
||||||
|
gd->bd = &bdata;
|
||||||
|
|
||||||
#if defined(CONFIG_SYS_SPL_MALLOC_START)
|
#if defined(CONFIG_SYS_SPL_MALLOC_START)
|
||||||
mem_malloc_init(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)
|
void preloader_console_init(void)
|
||||||
{
|
{
|
||||||
gd->bd = &bdata;
|
|
||||||
gd->baudrate = CONFIG_BAUDRATE;
|
gd->baudrate = CONFIG_BAUDRATE;
|
||||||
|
|
||||||
serial_init(); /* serial communications setup */
|
serial_init(); /* serial communications setup */
|
||||||
|
|
Loading…
Add table
Reference in a new issue