summaryrefslogtreecommitdiff
path: root/arch/arm/mach-zynqmp
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2019-09-27 11:36:59 +0100
committerMichal Simek <michal.simek@xilinx.com>2019-10-08 09:55:11 +0200
commit17eb88e4e59111199279c5f53bbdb2b34fcedadd (patch)
treece1007dab4c936e70401f8c340b02130fe99547c /arch/arm/mach-zynqmp
parent95497afada586f7370f44092ba62d55d4647fe03 (diff)
downloadu-boot-17eb88e4e59111199279c5f53bbdb2b34fcedadd.tar.gz
arm64: zynqmp: Cleanup PM SMC macro composition
Cleanup PM ID handling by using enum values. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Ibai Erkiaga <ibai.erkiaga-elorza@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm/mach-zynqmp')
-rw-r--r--arch/arm/mach-zynqmp/include/mach/sys_proto.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/arm/mach-zynqmp/include/mach/sys_proto.h b/arch/arm/mach-zynqmp/include/mach/sys_proto.h
index f25d414dcb..573c4ffcee 100644
--- a/arch/arm/mach-zynqmp/include/mach/sys_proto.h
+++ b/arch/arm/mach-zynqmp/include/mach/sys_proto.h
@@ -10,7 +10,8 @@
#define PAYLOAD_ARG_CNT 5
#define ZYNQMP_CSU_SILICON_VER_MASK 0xF
-#define ZYNQMP_SIP_SVC_PM_SECURE_IMG_LOAD 0xC200002D
+#define ZYNQMP_SIP_SVC_PM_SECURE_IMG_LOAD \
+ (PM_SIP_SVC + PM_SECURE_IMAGE)
#define KEY_PTR_LEN 32
#define ZYNQMP_FPGA_BIT_AUTH_DDR 1
@@ -21,7 +22,8 @@
#define ZYNQMP_FPGA_AUTH_DDR 1
-#define ZYNQMP_SIP_SVC_GET_API_VERSION 0xC2000001
+#define ZYNQMP_SIP_SVC_GET_API_VERSION \
+ (PM_SIP_SVC + PM_GET_API_VERSION)
#define ZYNQMP_PM_VERSION_MAJOR 1
#define ZYNQMP_PM_VERSION_MINOR 0
@@ -36,6 +38,13 @@
#define PMUFW_V1_0 ((1 << ZYNQMP_PM_VERSION_MAJOR_SHIFT) | 0)
+#define PM_SIP_SVC 0xc2000000
+
+enum pm_api_id {
+ PM_GET_API_VERSION = 1,
+ PM_SECURE_IMAGE = 45,
+};
+
enum {
IDCODE,
VERSION,