diff options
author | Oleksandr Suvorov <oleksandr.suvorov@foundries.io> | 2022-07-22 17:16:08 +0300 |
---|---|---|
committer | Michal Simek <michal.simek@amd.com> | 2022-07-26 09:34:21 +0200 |
commit | 2c60514d9aecf7fbbbe3c4cb3a4a4acc421e5239 (patch) | |
tree | 69e88db3a21c5a88aa0f6261532696c300b4cce8 /include/fpga.h | |
parent | 282eed50ecb73c20dd35bf3ea7a579e79b20cd54 (diff) | |
download | u-boot-2c60514d9aecf7fbbbe3c4cb3a4a4acc421e5239.zip u-boot-2c60514d9aecf7fbbbe3c4cb3a4a4acc421e5239.tar.gz u-boot-2c60514d9aecf7fbbbe3c4cb3a4a4acc421e5239.tar.bz2 |
fpga: add fpga_compatible2flag
Add a "compatible" string to binary flag converter, which uses
a callback str2flag() of given FPGA driver if available.
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
Tested-by: Ricardo Salveti <ricardo@foundries.io>
Tested-by: Adrian Fiergolski <adrian.fiergolski@fastree3d.com>
Link: https://lore.kernel.org/r/20220722141614.297383-8-oleksandr.suvorov@foundries.io
Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'include/fpga.h')
-rw-r--r-- | include/fpga.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fpga.h b/include/fpga.h index 6365e15..13b1bbe 100644 --- a/include/fpga.h +++ b/include/fpga.h @@ -75,5 +75,6 @@ int fpga_dump(int devnum, const void *buf, size_t bsize); int fpga_info(int devnum); const fpga_desc *const fpga_validate(int devnum, const void *buf, size_t bsize, char *fn); +int fpga_compatible2flag(int devnum, const char *compatible); #endif /* _FPGA_H_ */ |