public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] imx8m: set sane default value for SPL_LOAD_FIT_ADDRESS
@ 2024-10-24 10:01 Rasmus Villemoes
  2024-10-24 11:51 ` Marek Vasut
  0 siblings, 1 reply; 10+ messages in thread
From: Rasmus Villemoes @ 2024-10-24 10:01 UTC (permalink / raw)
  To: u-boot; +Cc: Marek Vasut, Tim Harvey, Heiko Schocher, Tom Rini,
	Rasmus Villemoes

I enabled IMX_HAB on an imx8mp board, but even though I knew about the
implementation, I forgot that I had to provide a sane value for
SPL_LOAD_FIT_ADDRESS. The help text for IMX_HAB doesn't mention this
implicit requirement, and there's no build-time warning; the default
0x0 value just ends up being returned from
board_spl_fit_buffer_addr(), obviously resulting in a non-booting
board.

The existing imx8m* board configs that set a non-zero value currently
all use 0x44000000. The actual value doesn't matter too much, but 0 is
always wrong for imx8m platforms. So just use 0x44000000 as default
for those platforms.

Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
---
 boot/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/boot/Kconfig b/boot/Kconfig
index 940389d4882..72d1f69afcd 100644
--- a/boot/Kconfig
+++ b/boot/Kconfig
@@ -231,6 +231,7 @@ config SPL_LOAD_FIT
 config SPL_LOAD_FIT_ADDRESS
 	hex "load address of fit image"
 	depends on SPL_LOAD_FIT
+	default 0x44000000 if ARCH_IMX8M
 	default 0x0
 	help
 	  Specify the load address of the fit image that will be loaded
-- 
2.47.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-10-26  4:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-24 10:01 [PATCH] imx8m: set sane default value for SPL_LOAD_FIT_ADDRESS Rasmus Villemoes
2024-10-24 11:51 ` Marek Vasut
2024-10-24 13:18   ` Rasmus Villemoes
2024-10-24 14:06     ` Marek Vasut
2024-10-24 15:20       ` Tom Rini
2024-10-24 16:13         ` Marek Vasut
2024-10-25  8:41           ` Rasmus Villemoes
2024-10-25 23:02             ` Marek Vasut
2024-10-26  0:24   ` Fabio Estevam
2024-10-26  0:32     ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox