]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
librem5: Drop unnecessary BOARD_EARLY_INIT_F usage
authorTom Rini <trini@konsulko.com>
Wed, 25 Mar 2026 19:00:47 +0000 (13:00 -0600)
committerFabio Estevam <festevam@nabladev.com>
Thu, 2 Apr 2026 12:10:40 +0000 (09:10 -0300)
This platform enables CONFIG_BOARD_EARLY_INIT_F and then has 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@konsulko.com>
board/purism/librem5/librem5.c
board/purism/librem5/spl.c
configs/librem5_defconfig

index a2bc0c08f0b50fe681d717cc236c6f6185623b76..3640ef232c8cd7474dea5495d6f0efd20544b45c 100644 (file)
 #include <usb/xhci.h>
 #include "librem5.h"
 
-int board_early_init_f(void)
-{
-       return 0;
-}
-
 #if IS_ENABLED(CONFIG_LOAD_ENV_FROM_MMC_BOOT_PARTITION)
 uint board_mmc_get_env_part(struct mmc *mmc)
 {
index 568224f973244117672de4f2536a5de72e822702..a104ee5c2aab48f3b77d4e5569dfd20840cccb81 100644 (file)
@@ -547,8 +547,6 @@ void board_init_f(ulong dummy)
        gpio_direction_output(WIFI_EN, 1);
 #endif
 
-       board_early_init_f();
-
        timer_init();
 
        preloader_console_init();
index e6ad27ed1bf82521c0da02191e84b06781d86c2e..d9d32bf5a50a50a751413406503a30fe409f6d70 100644 (file)
@@ -36,7 +36,6 @@ CONFIG_OF_SYSTEM_SETUP=y
 CONFIG_SYS_PBSIZE=1050
 CONFIG_SYS_CONSOLE_IS_IN_ENV=y
 # CONFIG_SYS_DEVICE_NULLDEV is not set
-CONFIG_BOARD_EARLY_INIT_F=y
 CONFIG_BOARD_LATE_INIT=y
 CONFIG_SPL_MAX_SIZE=0x25000
 CONFIG_SPL_BOARD_INIT=y