U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4] drivers: fpga: Use FPGA_INTEL_SDM_MAILBOX conditional instead of Agilex/Stratix10
@ 2026-04-28  5:30 Chen Huei Lok
  2026-06-08  1:19 ` LOK, CHEN HUEI
  2026-06-08  9:45 ` [PATCH v5] " Chen Huei Lok
  0 siblings, 2 replies; 6+ messages in thread
From: Chen Huei Lok @ 2026-04-28  5:30 UTC (permalink / raw)
  To: u-boot
  Cc: Michal Simek, Alexander Dahl, Tom Rini, Tien Fong Chee,
	Chen Huei Lok, Alif Zakuan Yuslaimi, Dinesh Maniyam, Boon Khai Ng,
	Kok Kiang Hea, drosdi

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

Replace the conditional compilation checks for
CONFIG_ARCH_SOCFPGA_AGILEX and CONFIG_ARCH_SOCFPGA_STRATIX10 with
CONFIG_FPGA_INTEL_SDM_MAILBOX.

Signed-off-by: drosdi <danish.ahmad.rosdi@altera.com>
Signed-off-by: Chen Huei Lok <chen.huei.lok@altera.com>
---
v3->v4:
--------
Replace conditional check with CONFIG_FPGA_INTEL_SDM_MAILBOX.

History:
--------
https://patchwork.ozlabs.org/project/uboot/patch/20260414090350.34455-1-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 822183c5785..xxxxxxx 100644
--- a/drivers/fpga/altera.c
+++ b/drivers/fpga/altera.c
@@ -12,8 +12,7 @@
 /*
  *  Altera FPGA support
  */
-#if IS_ENABLED(CONFIG_ARCH_SOCFPGA_AGILEX) || \
-	IS_ENABLED(CONFIG_ARCH_SOCFPGA_STRATIX10)
+#if IS_ENABLED(CONFIG_FPGA_INTEL_SDM_MAILBOX)
 #include <asm/arch/misc.h>
 #endif
 #include <errno.h>
@@ -48,8 +47,7 @@ static const struct altera_fpga {
 #endif
 };

-#if IS_ENABLED(CONFIG_ARCH_SOCFPGA_AGILEX) || \
-	IS_ENABLED(CONFIG_ARCH_SOCFPGA_STRATIX10)
+#if IS_ENABLED(CONFIG_FPGA_INTEL_SDM_MAILBOX)
 int fpga_is_partial_data(int devnum, size_t img_len)
 {
 	/*
--
2.43.7

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

end of thread, other threads:[~2026-06-23 14:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-28  5:30 [PATCH v4] drivers: fpga: Use FPGA_INTEL_SDM_MAILBOX conditional instead of Agilex/Stratix10 Chen Huei Lok
2026-06-08  1:19 ` LOK, CHEN HUEI
2026-06-08  8:34   ` Michal Simek
2026-06-08  9:37     ` LOK, CHEN HUEI
2026-06-08  9:45 ` [PATCH v5] " Chen Huei Lok
2026-06-23 14:08   ` Michal Simek

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