]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm: socfpga: Define Use FPGA switch handoff section size for Agilex5
authorAlif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>
Fri, 29 Aug 2025 03:42:59 +0000 (20:42 -0700)
committerTien Fong Chee <tien.fong.chee@intel.com>
Tue, 30 Sep 2025 06:29:53 +0000 (14:29 +0800)
Agilex5 FPGA switch section in the handoff data is larger by 32 bytes
than the default value as these extra sections contains I3C0 and I3C1
register offsets and values with 4 bytes each.

This requires 4 more times of reading the FPGA switch section of the
handoff data to fully populate the handoff data table in the memory
during runtime.

Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>
arch/arm/mach-socfpga/include/mach/handoff_soc64.h

index 9ef82cf46c0d74386593a43c15f1a8616f133f10..b8f2f73e2831b4707533d0fb1eb2d45680711a10 100644 (file)
@@ -98,6 +98,8 @@
 #define SOC64_HANDOFF_IOCTL_LEN                        96
 #if IS_ENABLED(CONFIG_TARGET_SOCFPGA_STRATIX10)
 #define SOC64_HANDOFF_FPGA_LEN                 42
+#elif IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX5)
+#define SOC64_HANDOFF_FPGA_LEN                 44
 #else
 #define SOC64_HANDOFF_FPGA_LEN                 40
 #endif