aboutsummaryrefslogtreecommitdiff
path: root/include/drivers/scmi.h
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2021-01-20 11:04:08 +0800
committerPeng Fan <peng.fan@nxp.com>2021-01-20 11:37:14 +0800
commitb4734308981b651bac64adb90a7b148f252e850a (patch)
treef5e25c005b5eab286364aa5fc8153ce380f5c897 /include/drivers/scmi.h
parentf03c4ea8e604bcf5d13af3012e0ba7ec56e3180f (diff)
downloadtrusted-firmware-a-b4734308981b651bac64adb90a7b148f252e850a.tar.gz
drivers: move scmi-msg out of st
Make the scmi-msg driver reused by others. Signed-off-by: Peng Fan <peng.fan@nxp.com> Change-Id: I5bc35fd4dab70f45c09b8aab65af4209cf23b124
Diffstat (limited to 'include/drivers/scmi.h')
-rw-r--r--include/drivers/scmi.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/drivers/scmi.h b/include/drivers/scmi.h
new file mode 100644
index 0000000000..ac5dc38717
--- /dev/null
+++ b/include/drivers/scmi.h
@@ -0,0 +1,29 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/*
+ * Copyright (c) 2015-2019, Arm Limited and Contributors. All rights reserved.
+ */
+#ifndef SCMI_MSG_SCMI_H
+#define SCMI_MSG_SCMI_H
+
+#define SCMI_PROTOCOL_ID_BASE 0x10U
+#define SCMI_PROTOCOL_ID_POWER_DOMAIN 0x11U
+#define SCMI_PROTOCOL_ID_SYS_POWER 0x12U
+#define SCMI_PROTOCOL_ID_PERF 0x13U
+#define SCMI_PROTOCOL_ID_CLOCK 0x14U
+#define SCMI_PROTOCOL_ID_SENSOR 0x15U
+#define SCMI_PROTOCOL_ID_RESET_DOMAIN 0x16U
+
+/* SCMI error codes reported to agent through server-to-agent messages */
+#define SCMI_SUCCESS 0
+#define SCMI_NOT_SUPPORTED (-1)
+#define SCMI_INVALID_PARAMETERS (-2)
+#define SCMI_DENIED (-3)
+#define SCMI_NOT_FOUND (-4)
+#define SCMI_OUT_OF_RANGE (-5)
+#define SCMI_BUSY (-6)
+#define SCMI_COMMS_ERROR (-7)
+#define SCMI_GENERIC_ERROR (-8)
+#define SCMI_HARDWARE_ERROR (-9)
+#define SCMI_PROTOCOL_ERROR (-10)
+
+#endif /* SCMI_MSG_SCMI_H */