[PATCH] arm: mvebu: Drop unnecessary BOARD_EARLY_INIT_F usage

Robert Marko robert.marko at sartura.hr
Thu Mar 26 12:04:25 CET 2026


On Wed, Mar 25, 2026 at 8:00 PM Tom Rini <trini at konsulko.com> wrote:
>
> All of these platforms enable CONFIG_BOARD_EARLY_INIT_F and then have a
> do-nothing board_early_init_f function. Change to not enabling the
> option and so not needing an empty function.
>
> Signed-off-by: Tom Rini <trini at konsulko.com>

Reviewed-by: Robert Marko <robert.marko at sartura.hr>

> ---
> Cc: Stefan Roese <sr at denx.de>
> Cc: Robert Marko <robert.marko at sartura.hr>
> Cc: Konstantin Porotchkin <kostap at marvell.com>
> Cc: Ben Schneider <ben at bens.haus>
> ---
>  board/Marvell/mvebu_armada-37xx/board.c           | 5 -----
>  configs/eDPU_defconfig                            | 1 -
>  configs/mvebu_db-88f3720_defconfig                | 1 -
>  configs/mvebu_espressobin-88f3720_defconfig       | 1 -
>  configs/mvebu_espressobin_ultra-88f3720_defconfig | 1 -
>  configs/uDPU_defconfig                            | 1 -
>  6 files changed, 10 deletions(-)
>
> diff --git a/board/Marvell/mvebu_armada-37xx/board.c b/board/Marvell/mvebu_armada-37xx/board.c
> index e44b713f96d7..c30fca6cffd8 100644
> --- a/board/Marvell/mvebu_armada-37xx/board.c
> +++ b/board/Marvell/mvebu_armada-37xx/board.c
> @@ -102,11 +102,6 @@ static bool is_edpu_plus(void)
>                 return false;
>  }
>
> -int board_early_init_f(void)
> -{
> -       return 0;
> -}
> -
>  int board_init(void)
>  {
>         /* adress of boot parameters */
> diff --git a/configs/eDPU_defconfig b/configs/eDPU_defconfig
> index 0b7815c78a30..98ba91aa568f 100644
> --- a/configs/eDPU_defconfig
> +++ b/configs/eDPU_defconfig
> @@ -23,7 +23,6 @@ CONFIG_SYS_PBSIZE=1048
>  # CONFIG_DISPLAY_CPUINFO is not set
>  # CONFIG_DISPLAY_BOARDINFO is not set
>  CONFIG_DISPLAY_BOARDINFO_LATE=y
> -CONFIG_BOARD_EARLY_INIT_F=y
>  CONFIG_SYS_PROMPT="eDPU>> "
>  CONFIG_SYS_MAXARGS=32
>  # CONFIG_CMD_ELF is not set
> diff --git a/configs/mvebu_db-88f3720_defconfig b/configs/mvebu_db-88f3720_defconfig
> index 52ad18e4dd91..b7a2559997fe 100644
> --- a/configs/mvebu_db-88f3720_defconfig
> +++ b/configs/mvebu_db-88f3720_defconfig
> @@ -23,7 +23,6 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y
>  # CONFIG_DISPLAY_CPUINFO is not set
>  # CONFIG_DISPLAY_BOARDINFO is not set
>  CONFIG_DISPLAY_BOARDINFO_LATE=y
> -CONFIG_BOARD_EARLY_INIT_F=y
>  CONFIG_SYS_MAXARGS=32
>  CONFIG_CMD_FUSE=y
>  CONFIG_CMD_GPIO=y
> diff --git a/configs/mvebu_espressobin-88f3720_defconfig b/configs/mvebu_espressobin-88f3720_defconfig
> index af3bf1a04fce..c101b342980c 100644
> --- a/configs/mvebu_espressobin-88f3720_defconfig
> +++ b/configs/mvebu_espressobin-88f3720_defconfig
> @@ -25,7 +25,6 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y
>  # CONFIG_DISPLAY_CPUINFO is not set
>  # CONFIG_DISPLAY_BOARDINFO is not set
>  CONFIG_DISPLAY_BOARDINFO_LATE=y
> -CONFIG_BOARD_EARLY_INIT_F=y
>  CONFIG_BOARD_LATE_INIT=y
>  CONFIG_SYS_MAXARGS=32
>  CONFIG_CMD_FUSE=y
> diff --git a/configs/mvebu_espressobin_ultra-88f3720_defconfig b/configs/mvebu_espressobin_ultra-88f3720_defconfig
> index 69d6f7e34c3b..157bd9696425 100644
> --- a/configs/mvebu_espressobin_ultra-88f3720_defconfig
> +++ b/configs/mvebu_espressobin_ultra-88f3720_defconfig
> @@ -24,7 +24,6 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y
>  # CONFIG_DISPLAY_CPUINFO is not set
>  # CONFIG_DISPLAY_BOARDINFO is not set
>  CONFIG_DISPLAY_BOARDINFO_LATE=y
> -CONFIG_BOARD_EARLY_INIT_F=y
>  CONFIG_BOARD_LATE_INIT=y
>  CONFIG_SYS_MAXARGS=32
>  CONFIG_CMD_FUSE=y
> diff --git a/configs/uDPU_defconfig b/configs/uDPU_defconfig
> index 851d7bb2cb99..b819e978c3a5 100644
> --- a/configs/uDPU_defconfig
> +++ b/configs/uDPU_defconfig
> @@ -22,7 +22,6 @@ CONFIG_SYS_PBSIZE=1048
>  # CONFIG_DISPLAY_CPUINFO is not set
>  # CONFIG_DISPLAY_BOARDINFO is not set
>  CONFIG_DISPLAY_BOARDINFO_LATE=y
> -CONFIG_BOARD_EARLY_INIT_F=y
>  CONFIG_SYS_PROMPT="uDPU>> "
>  CONFIG_SYS_MAXARGS=32
>  # CONFIG_CMD_ELF is not set
> --
> 2.43.0
>


-- 
Robert Marko
Staff Embedded Linux Engineer
Sartura d.d.
Lendavska ulica 16a
10000 Zagreb, Croatia
Email: robert.marko at sartura.hr
Web: www.sartura.hr


More information about the U-Boot mailing list