Skip to contentSkip to conversation

arm: socfpga: n5x: Enables mailbox functionality for QSPI before DDR

PATCH New Jit Loon Lim 1 participant 1 message Nov 22, 2022

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

PATCH 1/1 arm: socfpga: n5x: Enables mailbox functionality for QSPI before DDR

From: Tien Fong Chee <[email protected]>

Enables mailbox functionality for QSPI before initializing DDR, because storing calibration data into QSPI is required when DDR retention is enabled.

---
 arch/arm/mach-socfpga/spl_n5x.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
arch/arm/mach-socfpga/spl_n5x.c +6 -6
index c56b5a1b88..92037190e2 100644
@@ -81,6 +81,12 @@ void board_init_f(ulong dummy)
 		hang();
 	}
 
+	mbox_init();
+
+#if IS_ENABLED(CONFIG_CADENCE_QSPI)
+	mbox_qspi_open();
+#endif
+
 #if CONFIG_IS_ENABLED(ALTERA_SDRAM)
 	ret = uclass_get_device(UCLASS_RAM, 0, &dev);
 	if (ret) {
@@ -88,10 +94,4 @@ void board_init_f(ulong dummy)
 		hang();
 	}
 #endif
-
-	mbox_init();
-
-#ifdef CONFIG_CADENCE_QSPI
-	mbox_qspi_open();
-#endif
 }
Signature · 1 line
2.26.2