From: Tingting Meng <tingting.m...@altera.com>

Handoff settings updated for new platform Agilex7 M-series.

Signed-off-by: Tingting Meng <tingting.m...@altera.com>
Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yusla...@altera.com>
---
 arch/arm/mach-socfpga/include/mach/handoff_soc64.h | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-socfpga/include/mach/handoff_soc64.h 
b/arch/arm/mach-socfpga/include/mach/handoff_soc64.h
index 763b077d8c1..d0613074c3c 100644
--- a/arch/arm/mach-socfpga/include/mach/handoff_soc64.h
+++ b/arch/arm/mach-socfpga/include/mach/handoff_soc64.h
@@ -18,7 +18,7 @@
 #define SOC64_HANDOFF_MAGIC_FPGA       0x46504741
 #define SOC64_HANDOFF_MAGIC_DELAY      0x444C4159
 #define SOC64_HANDOFF_MAGIC_CLOCK      0x434C4B53
-#define SOC64_HANDOFF_MAGIC_SDRAM      0x5344524d
+#define SOC64_HANDOFF_MAGIC_SDRAM      0x5344524D
 #if IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX5)
 #define SOC64_HANDOFF_MAGIC_PERI       0x50455249
 #else
@@ -30,9 +30,19 @@
 #define SOC64_HANDOFF_SIZE             4096
 
 #if IS_ENABLED(CONFIG_TARGET_SOCFPGA_STRATIX10) || \
-       IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX)
+       IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX) || \
+       IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX7M)
 #define SOC64_HANDOFF_BASE             0xFFE3F000
+#if IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX7M)
+#define SOC64_HANDOFF_MISC             (SOC64_HANDOFF_BASE + 0x634)
+/* DDR handoff */
+#define SOC64_HANDOFF_DDR_BASE (SOC64_HANDOFF_BASE + 0x610)
+#define SOC64_HANDOFF_DDR_LEN  5
+#define SOC64_HANDOFF_DDR_INTERLEAVING_MODE_MASK       BIT(0)
+#define SOC64_HANDOFF_DDR_MEMORY_TYPE_MASK             BIT(0)
+#else
 #define SOC64_HANDOFF_MISC             (SOC64_HANDOFF_BASE + 0x610)
+#endif
 #elif IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX5)
 #define SOC64_HANDOFF_BASE             0x0007F000
 #elif IS_ENABLED(CONFIG_TARGET_SOCFPGA_N5X)
-- 
2.35.3

Reply via email to