public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [PATCH] spl: Remove unused CONFIG_SPL_FRAMEWORK_BOARD_INIT_F option
Date: Wed, 25 Mar 2026 13:00:20 -0600	[thread overview]
Message-ID: <20260325190020.3428514-1-trini@konsulko.com> (raw)

The option CONFIG_SPL_FRAMEWORK_BOARD_INIT_F enables a simple
board_init_f function in SPL. This however is never enabled, so remove
this function and option.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 common/spl/Kconfig |  9 ---------
 common/spl/spl.c   | 17 -----------------
 2 files changed, 26 deletions(-)

diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 57b2bef5e541..a21b71ad5d19 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -27,15 +27,6 @@ config SPL_FRAMEWORK
 	  supports MMC, NAND and YMODEM and other methods loading of U-Boot
 	  and the Linux Kernel.  If unsure, say Y.
 
-config SPL_FRAMEWORK_BOARD_INIT_F
-	bool "Define a generic function board_init_f"
-	depends on SPL_FRAMEWORK
-	help
-	  Define a generic function board_init_f that:
-	  - initialize the spl (spl_early_init)
-	  - initialize the serial (preloader_console_init)
-	  Unless you want to provide your own board_init_f, you should say Y.
-
 config SPL_SIZE_LIMIT
 	hex "Maximum size of SPL image"
 	default 0x11000 if ARCH_MX6 && !MX6_OCRAM_256KB
diff --git a/common/spl/spl.c b/common/spl/spl.c
index 8256fa978629..722b18c98edc 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -669,23 +669,6 @@ static int boot_from_devices(struct spl_image_info *spl_image,
 	return ret;
 }
 
-#if defined(CONFIG_SPL_FRAMEWORK_BOARD_INIT_F)
-void board_init_f(ulong dummy)
-{
-	if (CONFIG_IS_ENABLED(OF_CONTROL)) {
-		int ret;
-
-		ret = spl_early_init();
-		if (ret) {
-			debug("spl_early_init() failed: %d\n", ret);
-			hang();
-		}
-	}
-
-	preloader_console_init();
-}
-#endif
-
 void board_init_r(gd_t *dummy1, ulong dummy2)
 {
 	u32 spl_boot_list[] = {
-- 
2.43.0


             reply	other threads:[~2026-03-25 19:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-25 19:00 Tom Rini [this message]
2026-04-08 14:51 ` [PATCH] spl: Remove unused CONFIG_SPL_FRAMEWORK_BOARD_INIT_F option Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260325190020.3428514-1-trini@konsulko.com \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox