[PATCH v5] drivers: fpga: Use FPGA_INTEL_SDM_MAILBOX conditional instead of Agilex/Stratix10

Michal Simek michal.simek at amd.com
Tue Jun 23 16:08:28 CEST 2026



On 6/8/26 11:45, Chen Huei Lok wrote:
> From: Danish Ahmad Rosdi <danish.ahmad.rosdi at 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: Danish Ahmad Rosdi <danish.ahmad.rosdi at altera.com>
> Signed-off-by: Chen Huei Lok <chen.huei.lok at altera.com>
> ---
> v4->v5:
> --------
> Fix Signed-off-by to use real full name.
> 
> v3->v4:
> --------
> Replace conditional check with CONFIG_FPGA_INTEL_SDM_MAILBOX.
> 
> History:
> --------
> https://patchwork.ozlabs.org/project/uboot/patch/20260428053030.19532-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

Applied.
M


More information about the U-Boot mailing list