summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2018-11-26 10:13:51 +0100
committerSandrine Bailleux <sandrine.bailleux@arm.com>2018-11-27 10:51:20 +0100
commit7d34d304a5115a167102aa165c6a41124b00205d (patch)
tree685e2e15323da617f07cda8f8db2eb73a26cf91e /include
parent13d99f95ae68104f4e97a58f6887c75863b4f502 (diff)
Move BL1 SMC FIDs macros out of platform layer
BL1 SMC function IDs are not platform-specific so move them to a new generic header file, called bl1.h. Change-Id: I621483f7737f8101e9f370343e1a45a731c31c3b Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
Diffstat (limited to 'include')
-rw-r--r--include/runtime_services/bl1.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/include/runtime_services/bl1.h b/include/runtime_services/bl1.h
new file mode 100644
index 0000000..1674630
--- /dev/null
+++ b/include/runtime_services/bl1.h
@@ -0,0 +1,39 @@
+/*
+ * Copyright (c) 2018, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef BL1_H
+#define BL1_H
+
+#define BL1_SMC_CALL_COUNT 0x0
+#define BL1_SMC_UID 0x1
+/* SMC #0x2 reserved. */
+#define BL1_SMC_VERSION 0x3
+
+/* SMC function ID used to request BL1 to execute BL31. */
+#define BL1_SMC_RUN_IMAGE 0x4
+
+/* SMC function IDs for Firmware Update operations. */
+#define FWU_SMC_IMAGE_COPY 0x10
+#define FWU_SMC_IMAGE_AUTH 0x11
+#define FWU_SMC_IMAGE_EXECUTE 0x12
+#define FWU_SMC_IMAGE_RESUME 0x13
+#define FWU_SMC_SEC_IMAGE_DONE 0x14
+#define FWU_SMC_UPDATE_DONE 0x15
+#define FWU_SMC_IMAGE_RESET 0x16
+
+/*
+ * Number of SMC calls supported in BL1.
+ *
+ * Note that when Trusted Board Boot is disabled in BL1, this drops down to 4,
+ * as the 7 FWU SMCs are not implemented. We test BL1's SMC interface only in
+ * the context of FWU tests, where TBB is enabled.
+ */
+#define BL1_NUM_SMC_CALLS 11
+
+/* Version reported by the BL1_SMC_VERSION SMC. */
+#define BL1_VERSION 0x1
+
+#endif /* BL1_H */