diff options
| author | Ben Dooks <[email protected]> | 2025-05-07 13:23:42 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-05-22 13:55:17 -0600 |
| commit | 86acdce2ba886153f152b924b28e5c040e316c80 (patch) | |
| tree | 08d10991f3ee56ab7367e1736792b3250fab3bee /common/board_r.c | |
| parent | 1bf212129768d65a47145209c65bf37b6082d718 (diff) | |
common: add config for board_init() call
Add CONFIG_BOARD_INIT to specifu if the board_init() needs calling
during initcall phase, and default it to 'y' for the relevant
architectures which probably need it.
This allows anyone with a board that doesn't need it to just remove
it from the initcall list w/o an empty code block in the board init
file.
Signed-off-by: Ben Dooks <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'common/board_r.c')
| -rw-r--r-- | common/board_r.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/board_r.c b/common/board_r.c index b90a4d9ff69..65ff5fb595c 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -649,8 +649,7 @@ static void initcall_run_r(void) #if CONFIG_IS_ENABLED(ADDR_MAP) INITCALL(init_addr_map); #endif -#if CONFIG_IS_ENABLED(ARM) || CONFIG_IS_ENABLED(RISCV) || \ - CONFIG_IS_ENABLED(SANDBOX) +#if CONFIG_IS_ENABLED(BOARD_INIT) INITCALL(board_init); /* Setup chipselects */ #endif /* |
