mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-03 11:51:03 +02:00
fpga: xilinx: Add option to skip bitstream ID check
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>
Link: https://lore.kernel.org/r/d0f11d0a8d48b284683f00d20dfbe323c11f2943.1776360720.git.michal.simek@amd.com
This commit is contained in:
parent
89c269154b
commit
8669c34566
@ -11,6 +11,7 @@
|
||||
* Xilinx FPGA support
|
||||
*/
|
||||
|
||||
#include <env.h>
|
||||
#include <fpga.h>
|
||||
#include <log.h>
|
||||
#include <virtex2.h>
|
||||
@ -92,7 +93,11 @@ 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 (!CONFIG_IS_ENABLED(ENV_SUPPORT) ||
|
||||
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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user