Skip to content
Snippets Groups Projects
Commit 496c5483 authored by Heiko Schocher's avatar Heiko Schocher Committed by Tom Rini
Browse files

bootstage: call show_boot_progress also in SPL


show_boot_progress() is now called from SPL also.

Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
parent 694607b5
No related branches found
No related tags found
No related merge requests found
...@@ -146,3 +146,8 @@ void board_init_f_init_reserve(ulong base) ...@@ -146,3 +146,8 @@ void board_init_f_init_reserve(ulong base)
base += CONFIG_SYS_MALLOC_F_LEN; base += CONFIG_SYS_MALLOC_F_LEN;
#endif #endif
} }
/*
* Board-specific Platform code can reimplement show_boot_progress () if needed
*/
__weak void show_boot_progress(int val) {}
...@@ -35,6 +35,11 @@ struct spl_image_info spl_image; ...@@ -35,6 +35,11 @@ struct spl_image_info spl_image;
/* Define board data structure */ /* Define board data structure */
static bd_t bdata __attribute__ ((section(".data"))); static bd_t bdata __attribute__ ((section(".data")));
/*
* Board-specific Platform code can reimplement show_boot_progress () if needed
*/
__weak void show_boot_progress(int val) {}
/* /*
* Default function to determine if u-boot or the OS should * Default function to determine if u-boot or the OS should
* be started. This implementation always returns 1. * be started. This implementation always returns 1.
......
...@@ -213,7 +213,9 @@ enum bootstage_id { ...@@ -213,7 +213,9 @@ enum bootstage_id {
*/ */
ulong timer_get_boot_us(void); ulong timer_get_boot_us(void);
#if !defined(CONFIG_SPL_BUILD) && !defined(USE_HOSTCC) #if defined(USE_HOSTCC)
#define show_boot_progress(val) do {} while (0)
#else
/* /*
* Board code can implement show_boot_progress() if needed. * Board code can implement show_boot_progress() if needed.
* *
...@@ -221,8 +223,6 @@ ulong timer_get_boot_us(void); ...@@ -221,8 +223,6 @@ ulong timer_get_boot_us(void);
* has occurred. * has occurred.
*/ */
void show_boot_progress(int val); void show_boot_progress(int val);
#else
#define show_boot_progress(val) do {} while (0)
#endif #endif
#if defined(CONFIG_BOOTSTAGE) && !defined(CONFIG_SPL_BUILD) && \ #if defined(CONFIG_BOOTSTAGE) && !defined(CONFIG_SPL_BUILD) && \
......
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