diff options
author | Ovidiu Panait <ovidiu.panait@windriver.com> | 2020-11-28 10:43:09 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-01-15 14:36:11 -0500 |
commit | fb504b2c082c3ecd2ec7e550ae9504175c019b3a (patch) | |
tree | b892ef4f1e4eec086c67db27cf17b6659fdd9ad8 /common | |
parent | 51c5a2c5e43e2c9c7ad6720c40aad8a55452f62c (diff) | |
download | u-boot-fb504b2c082c3ecd2ec7e550ae9504175c019b3a.zip u-boot-fb504b2c082c3ecd2ec7e550ae9504175c019b3a.tar.gz u-boot-fb504b2c082c3ecd2ec7e550ae9504175c019b3a.tar.bz2 |
common: board_r: Drop initr_secondary_cpu wrapper
Add a return value to cpu_secondary_init_r and use it directly in the
post-relocation init sequence, rather than using a wrapper stub.
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/board_r.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/common/board_r.c b/common/board_r.c index 07c0ad3..a291543 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -91,21 +91,8 @@ __weak int board_flash_wp_on(void) return 0; } -__weak void cpu_secondary_init_r(void) +__weak int cpu_secondary_init_r(void) { -} - -static int initr_secondary_cpu(void) -{ - /* - * after non-volatile devices & environment is setup and cpu code have - * another round to deal with any initialization that might require - * full access to the environment or loading of some image (firmware) - * from a non-volatile device - */ - /* TODO: maybe define this for all archs? */ - cpu_secondary_init_r(); - return 0; } @@ -801,7 +788,7 @@ static init_fnc_t init_sequence_r[] = { initr_malloc_bootparams, #endif INIT_FUNC_WATCHDOG_RESET - initr_secondary_cpu, + cpu_secondary_init_r, #if defined(CONFIG_ID_EEPROM) || defined(CONFIG_SYS_I2C_MAC_OFFSET) mac_read_from_eeprom, #endif |