xilinx: versal-net: Add support for timer and start it
[platform/kernel/u-boot.git] / include / xilinx.h
index d9e4b8d..e4e2979 100644 (file)
@@ -39,6 +39,8 @@ typedef enum {                        /* typedef xilinx_family */
 
 /* FPGA bitstream supported types */
 #define FPGA_LEGACY                    BIT(0)
+#define FPGA_XILINX_ZYNQMP_DDRAUTH     BIT(1)
+#define FPGA_XILINX_ZYNQMP_ENC         BIT(2)
 
 typedef struct {               /* typedef xilinx_desc */
        xilinx_family family;   /* part type */
@@ -53,19 +55,22 @@ typedef struct {            /* typedef xilinx_desc */
 
 struct xilinx_fpga_op {
        int (*load)(xilinx_desc *desc, const void *buf, size_t bsize,
-                   bitstream_type bstype);
+                   bitstream_type bstype, int flags);
        int (*loadfs)(xilinx_desc *desc, const void *buf, size_t bsize,
                      fpga_fs_info *fpga_fsinfo);
        int (*loads)(xilinx_desc *desc, const void *buf, size_t bsize,
                     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
  *********************************************************************/
 int xilinx_load(xilinx_desc *desc, const void *image, size_t size,
-               bitstream_type bstype);
+               bitstream_type bstype, int flags);
 int xilinx_dump(xilinx_desc *desc, const void *buf, size_t bsize);
 int xilinx_info(xilinx_desc *desc);
 int xilinx_loadfs(xilinx_desc *desc, const void *buf, size_t bsize,