@@ -56,6 +56,14 @@ static int zynqmp_fpga_ops_write(struct fpga_manager *mgr,
wmb(); /* ensure all writes are done before initiate FW call */
+ if (priv->flags & FPGA_MGR_ENCRYPTED_BITSTREAM)
+ eemi_flags |= XILINX_ZYNQMP_PM_FPGA_ENCRYPTION_DEVKEY;
+
+ if (priv->flags & FPGA_MGR_DDR_MEM_AUTH_BITSTREAM)
+ eemi_flags |= XILINX_ZYNQMP_PM_FPGA_AUTHENTICATION_DDR;
+ else if (priv->flags & FPGA_MGR_SECURE_MEM_AUTH_BITSTREAM)
+ eemi_flags |= XILINX_ZYNQMP_PM_FPGA_AUTHENTICATION_OCM;
+
if (priv->flags & FPGA_MGR_PARTIAL_RECONFIG)
eemi_flags |= XILINX_ZYNQMP_PM_FPGA_PARTIAL;
@@ -62,6 +62,9 @@
*/
#define XILINX_ZYNQMP_PM_FPGA_FULL 0x0U
#define XILINX_ZYNQMP_PM_FPGA_PARTIAL BIT(0)
+#define XILINX_ZYNQMP_PM_FPGA_AUTHENTICATION_DDR BIT(1)
+#define XILINX_ZYNQMP_PM_FPGA_AUTHENTICATION_OCM BIT(2)
+#define XILINX_ZYNQMP_PM_FPGA_ENCRYPTION_DEVKEY BIT(4)
enum pm_api_id {
PM_GET_API_VERSION = 1,
This commit adds secure BitStream Loading support for the Xilinx ZynqMp chip. Signed-off-by: Nava kishore Manne <nava.manne@xilinx.com> --- drivers/fpga/zynqmp-fpga.c | 8 ++++++++ include/linux/firmware/xlnx-zynqmp.h | 3 +++ 2 files changed, 11 insertions(+)