public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Michal Simek <michal.simek@amd.com>
To: u-boot@lists.denx.de, git@amd.com
Cc: Pieter Van Trappen <pieter.van.trappen@cern.ch>,
	Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH] fpga: xilinx: Add option to skip bitstream ID check
Date: Wed, 15 Apr 2026 15:08:25 +0200	[thread overview]
Message-ID: <ecf75d3c-da6a-47d5-a5f5-e3974082a1d2@amd.com> (raw)
In-Reply-To: <4951c9780b251212ee38ae0f368fd79e6a571c11.1775558028.git.michal.simek@amd.com>



On 4/7/26 12:33, Michal Simek wrote:
> Add environment variable 'fpga_skip_idcheck' that when set to '1' or
> 'y' allows bypassing the device ID validation during bitstream loading.
> This is useful for loading bitstreams on devices whose ID codes are not
> yet recorded in the SOC driver.
> 
> Usage: setenv fpga_skip_idcheck 1
>    fpga loadb 0 ${loadaddr} ${filesize}
> 
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> ---
> 
>   drivers/fpga/xilinx.c | 6 +++++-
>   1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/fpga/xilinx.c b/drivers/fpga/xilinx.c
> index 25b348648eff..dd8888b908a7 100644
> --- a/drivers/fpga/xilinx.c
> +++ b/drivers/fpga/xilinx.c
> @@ -11,6 +11,7 @@
>    *  Xilinx FPGA support
>    */
>   
> +#include <env.h>
>   #include <fpga.h>
>   #include <log.h>
>   #include <virtex2.h>
> @@ -92,7 +93,10 @@ int fpga_loadbitstream(int devnum, char *fpgadata, size_t size,
>   			       __func__);
>   			printf("%s: Bitstream ID %s, current device ID %d/%s\n",
>   			       __func__, dataptr, devnum, xdesc->name);
> -			return FPGA_FAIL;
> +			if (env_get_yesno("fpga_skip_idcheck") != 1)
> +				return FPGA_FAIL;
> +
> +			printf("%s: Skipping ID check\n", __func__);
>   		}
>   	} else {
>   		printf("%s: Please fill correct device ID to xilinx_desc\n",

Applied.
M

      reply	other threads:[~2026-04-15 13:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-07 10:33 [PATCH] fpga: xilinx: Add option to skip bitstream ID check Michal Simek
2026-04-15 13:08 ` Michal Simek [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ecf75d3c-da6a-47d5-a5f5-e3974082a1d2@amd.com \
    --to=michal.simek@amd.com \
    --cc=git@amd.com \
    --cc=pieter.van.trappen@cern.ch \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox