public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v1] drivers: fpga: Enable SOC64 support, remove Agilex/Stratix10 checks for FPGA bridge
@ 2026-02-05  1:58 Chen Huei Lok
  2026-02-05  7:29 ` Peng Fan
  0 siblings, 1 reply; 3+ messages in thread
From: Chen Huei Lok @ 2026-02-05  1:58 UTC (permalink / raw)
  To: u-boot
  Cc: Michal Simek, Tom Rini, Alexander Dahl, drosdi, Tien Fong Chee,
	Alif Zakuan Yuslaimi, Dinesh Maniyam, Boon Khai Ng, Kok Kiang Hea,
	Chen Huei Lok

From: drosdi <danish.ahmad.rosdi@altera.com>

Replace the conditional compilation checks for Agilex and Stratix10
with a check for SOC64 in `drivers/fpga/altera.c`.

Signed-off-by: drosdi <danish.ahmad.rosdi@altera.com>
Signed-off-by: Chen Huei Lok <chen.huei.lok@altera.com>
---
 drivers/fpga/altera.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/fpga/altera.c b/drivers/fpga/altera.c
index 4a9aa74357e..246df72cb89 100644
--- a/drivers/fpga/altera.c
+++ b/drivers/fpga/altera.c
@@ -12,8 +12,7 @@
 /*
  *  Altera FPGA support
  */
-#if IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX) || \
-	IS_ENABLED(CONFIG_TARGET_SOCFPGA_STRATIX10)
+#if IS_ENABLED(CONFIG_TARGET_SOCFPGA_SOC64)
 #include <asm/arch/misc.h>
 #endif
 #include <errno.h>
@@ -48,8 +47,7 @@ static const struct altera_fpga {
 #endif
 };
 
-#if IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX) || \
-	IS_ENABLED(CONFIG_TARGET_SOCFPGA_STRATIX10)
+#if IS_ENABLED(CONFIG_TARGET_SOCFPGA_SOC64)
 int fpga_is_partial_data(int devnum, size_t img_len)
 {
 	/*
-- 
2.43.7


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-02-05 13:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-05  1:58 [PATCH v1] drivers: fpga: Enable SOC64 support, remove Agilex/Stratix10 checks for FPGA bridge Chen Huei Lok
2026-02-05  7:29 ` Peng Fan
2026-02-05  9:50   ` Lok, Chen Huei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox