mirror of
https://xff.cz/git/u-boot/
synced 2025-10-27 00:24:09 +01:00
fpga: xilinx: Check for substring in device ID validation
Check for substrings in deviceID validation check so that it can support xa bitstreams also. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
committed by
Michal Simek
parent
38c4761c23
commit
f72132673a
@@ -75,8 +75,8 @@ int fpga_loadbitstream(int devnum, char *fpgadata, size_t size,
|
|||||||
buffer[i] = *dataptr++;
|
buffer[i] = *dataptr++;
|
||||||
|
|
||||||
if (xdesc->name) {
|
if (xdesc->name) {
|
||||||
i = strncmp(buffer, xdesc->name, strlen(xdesc->name));
|
i = (ulong)strstr(buffer, xdesc->name);
|
||||||
if (i) {
|
if (!i) {
|
||||||
printf("%s: Wrong bitstream ID for this device\n",
|
printf("%s: Wrong bitstream ID for this device\n",
|
||||||
__func__);
|
__func__);
|
||||||
printf("%s: Bitstream ID %s, current device ID %d/%s\n",
|
printf("%s: Bitstream ID %s, current device ID %d/%s\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user