summaryrefslogtreecommitdiff
path: root/plat/xilinx/common
diff options
context:
space:
mode:
authorJay Buddhabhatti <jay.buddhabhatti@xilinx.com>2022-04-04 23:42:04 -0700
committerMichal Simek <michal.simek@amd.com>2022-09-13 14:01:23 +0200
commitf99306d49ba074279c5402a0a34e6bc9797d77de (patch)
tree4f003cb499a7f9f7bd63a8d8e0710532c6d36b1b /plat/xilinx/common
parent207bda950d9cc741a9fa3767219ccc83d8dd2736 (diff)
downloadarm-trusted-firmware-f99306d49ba074279c5402a0a34e6bc9797d77de.tar.gz
feat(versal): update macro name to generic and move to common place
Update TZ_VERSION macro name to generic macro name and move to common header file so that it can be used for keystoneb. Signed-off-by: Jay Buddhabhatti <jay.buddhabhatti@xilinx.com> Acked-by: Tanmay Shah <tanmay.shah@xilinx.com> Signed-off-by: Michal Simek <michal.simek@amd.com> Change-Id: Ic3819eea78b6c7b51ffaa13081026dd191b76125
Diffstat (limited to 'plat/xilinx/common')
-rw-r--r--plat/xilinx/common/include/pm_common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/plat/xilinx/common/include/pm_common.h b/plat/xilinx/common/include/pm_common.h
index 06efa4b4e..89626e5f2 100644
--- a/plat/xilinx/common/include/pm_common.h
+++ b/plat/xilinx/common/include/pm_common.h
@@ -27,6 +27,11 @@
#endif
#define PAYLOAD_ARG_SIZE 4U /* size in bytes */
+#define TZ_VERSION_MAJOR 1
+#define TZ_VERSION_MINOR 0
+#define TZ_VERSION ((TZ_VERSION_MAJOR << 16) | \
+ TZ_VERSION_MINOR)
+
/**
* pm_ipi - struct for capturing IPI-channel specific info
* @local_ipi_id Local IPI agent ID