Skip to contentSkip to conversation

arm: mach-k3: j784s4: Call do_board_detect() before DDR probing

PATCH In review Emanuele Ghidoli 3 participants 3 messages May 21, 2025 – Jun 13, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: mach-k3: j784s4: Call do_board_detect() before DDR probing

From: Emanuele Ghidoli <[email protected]>

Call do_board_detect() hook before the K3 DDRSS driver gets probed. It will allow boards to adjust DDR timings in do_board_detect().

---
 arch/arm/mach-k3/j784s4/j784s4_init.c | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/mach-k3/j784s4/j784s4_init.c +4 -0
index 787cf6261e42..4e9f823072bb 100644
@@ -242,6 +242,10 @@ void board_init_f(ulong dummy)
 	int ret;
 
 	k3_spl_init();
+
+	/* Perform board detection */
+	do_board_detect();
+
 	k3_mem_init();
 
 	if (IS_ENABLED(CONFIG_CPU_V7R) && IS_ENABLED(CONFIG_K3_AVS0)) {
Signature · 1 line
2.43.0
#1 lore raw
Quoted 4 lines · Emanuele Ghidoli

Call do_board_detect() hook before the K3 DDRSS driver gets probed. It will allow boards to adjust DDR timings in do_board_detect().

Applied to u-boot/next, thanks!

[1/1] arm: mach-k3: j784s4: Call do_board_detect() before DDR probing

      commit: 79ae5510a211d788b01cc5cb7f4ad15e9f5f528f
Signature · 1 line
Tom
#2 lore raw

Hi Tom, Hi Bryan,

Am Fr., 13. Juni 2025 um 00:49 Uhr schrieb Tom Rini <[email protected]>:

Quoted 5 lines · Emanuele Ghidoli
Quoted 4 lines

Call do_board_detect() hook before the K3 DDRSS driver gets probed. It will allow boards to adjust DDR timings in do_board_detect().

I think the comment from Tom is also valid like the one in [1] about not doing things over and over again.

[1] https://lore.kernel.org/u-boot/20250612143808.GM1382132@bill-the-cat/

--
Heiko

Quoted 12 lines
Quoted 2 lines

Applied to u-boot/next, thanks!

[1/1] arm: mach-k3: j784s4: Call do_board_detect() before DDR probing

      commit: 79ae5510a211d788b01cc5cb7f4ad15e9f5f528f

--
Tom