summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorOleksandr Suvorov <[email protected]>2022-07-22 17:16:05 +0300
committerMichal Simek <[email protected]>2022-07-26 09:34:21 +0200
commit24307b06b71a3c9b4aa556eefdad1f8fcca116bd (patch)
tree4e2b4943a6ad58a6870169d5a03a5a9976c142af /include
parentd7fcbfc19b4e83930a90c834046d4bf7dc3adefe (diff)
fpga: zynqmp: add str2flags call
Add a call to convert FPGA "compatible" string to a binary flag. Signed-off-by: Oleksandr Suvorov <[email protected]> Tested-by: Ricardo Salveti <[email protected]> Tested-by: Adrian Fiergolski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michal Simek <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/xilinx.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/xilinx.h b/include/xilinx.h
index d9e4b8da968..ff5486d98a7 100644
--- a/include/xilinx.h
+++ b/include/xilinx.h
@@ -60,6 +60,9 @@ struct xilinx_fpga_op {
struct fpga_secure_info *fpga_sec_info);
int (*dump)(xilinx_desc *desc, const void *buf, size_t bsize);
int (*info)(xilinx_desc *desc);
+#if CONFIG_IS_ENABLED(FPGA_LOAD_SECURE)
+ int (*str2flag)(xilinx_desc *desc, const char *string);
+#endif
};
/* Generic Xilinx Functions