[Concept,17/18] ulib: Allow dropping NAND init from the startup sequence

Message ID 20250904130459.848794-18-sjg@u-boot.org
State New
Headers
Series ulib: Introduce building U-Boot as a shared library |

Commit Message

Simon Glass Sept. 4, 2025, 1:04 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

This should be handled by driver model now. Some tests rely on this
happening early, so just disable it for the shared library.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 common/board_r.c | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

diff --git a/common/board_r.c b/common/board_r.c
index d60cc7aac70..297fdc29ca9 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -364,6 +364,9 @@  static int initr_flash(void)
 /* go init the NAND */
 static int initr_nand(void)
 {
+	if (gd_ulib())
+		return 0;
+
 	puts("NAND:  ");
 	nand_init();
 	printf("%lu MiB\n", nand_size() / 1024);