arm: mach-k3: j784s4: Call do_board_detect() before DDR probing
authorEmanuele Ghidoli <emanuele.ghidoli@toradex.com>
Wed, 21 May 2025 07:21:43 +0000 (09:21 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 12 Jun 2025 19:19:59 +0000 (13:19 -0600)
Call do_board_detect() hook before the K3 DDRSS driver gets probed.
It will allow boards to adjust DDR timings in do_board_detect().

Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
arch/arm/mach-k3/j784s4/j784s4_init.c

index 787cf62..4e9f823 100644 (file)
@@ -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)) {