[PATCH v2] drivers: fpga: Use SOC64 conditional instead of Agilex/Stratix10

Chee, Tien Fong tien.fong.chee at altera.com
Mon Apr 13 09:56:26 CEST 2026


Hi Chen Huei,

> From: Lok, Chen Huei <chen.huei.lok at altera.com>
> Sent: Friday, February 6, 2026 4:19 PM
> To: u-boot at lists.denx.de <u-boot at lists.denx.de>
> Cc: Michal Simek <michal.simek at amd.com>; Tom Rini <trini at konsulko.com>;
> Alexander Dahl <ada at thorsis.com>; Rosdi, Danish Ahmad
> <danish.ahmad.rosdi at altera.com>; Chee, Tien Fong <tien.fong.chee at altera.com>;
> Yuslaimi, Alif Zakuan <alif.zakuan.yuslaimi at altera.com>; Maniyam, Dinesh
> <dinesh.maniyam at altera.com>; Ng, Boon Khai <boon.khai.ng at altera.com>; Hea, Kok
> Kiang <kok.kiang.hea at altera.com>; Lok, Chen Huei <chen.huei.lok at altera.com>
> Subject: [PATCH v2] drivers: fpga: Use SOC64 conditional instead of
> Agilex/Stratix10
> From: drosdi <danish.ahmad.rosdi at altera.com>
> Replace the conditional compilation checks for
> CONFIG_TARGET_SOCFPGA_AGILEX and CONFIG_TARGET_SOCFPGA_STRATIX10
> with a CONFIG_TARGET_SOCFPGA_SOC64 check.
> The affected code is common to all SOC64-based platforms, not just
> Stratix10 and Agilex. Newer devices such as Agilex7M and Agilex5 also
> fall under SOC64 and require the same handling.
> Signed-off-by: drosdi <danish.ahmad.rosdi at altera.com>
> Signed-off-by: Chen Huei Lok <chen.huei.lok at 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)

Please respin against current master; drivers/fpga/altera.c uses CONFIG_ARCH_SOCFPGA_* not CONFIG_TARGET_*. Likely want CONFIG_ARCH_SOCFPGA_SOC64 if available.

>  #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.19.0

Best regards,
Tien Fong


More information about the U-Boot mailing list