summaryrefslogtreecommitdiff
path: root/include/versalpl.h
diff options
context:
space:
mode:
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>2019-08-05 15:54:59 +0530
committerMichal Simek <michal.simek@xilinx.com>2019-10-08 09:11:14 +0200
commit26e054c943a7348904a8b432fc9a85185b0861c7 (patch)
treee9fe6b1ff6f4f9e1907df5390b59bf07fe983766 /include/versalpl.h
parent13210cd951046e828ecf3463f0087acbfb4f185e (diff)
arm64: versal: fpga: Add PL bit stream load support
This patch adds PL bitstream load support for Versal platform. The PL bitstream is loaded by making an SMC to ATF which in turn communicates with platform firmware which configures and loads PL bitstream on to PL. Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'include/versalpl.h')
-rw-r--r--include/versalpl.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/versalpl.h b/include/versalpl.h
new file mode 100644
index 0000000000..b94c82e6e6
--- /dev/null
+++ b/include/versalpl.h
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * (C) Copyright 2019 Xilinx, Inc,
+ * Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
+ */
+
+#ifndef _VERSALPL_H_
+#define _VERSALPL_H_
+
+#include <xilinx.h>
+
+#define VERSAL_PM_LOAD_PDI 0x701
+#define VERSAL_PM_PDI_TYPE 0xF
+
+extern struct xilinx_fpga_op versal_op;
+
+#define XILINX_VERSAL_DESC \
+{ xilinx_versal, csu_dma, 1, &versal_op, 0, &versal_op }
+
+#endif /* _VERSALPL_H_ */