summaryrefslogtreecommitdiff
path: root/include/firmware/imx/sci/svc/seco/api.h
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2023-04-28 12:08:09 +0800
committerStefano Babic <sbabic@denx.de>2023-05-21 16:54:32 +0200
commit99ac6c769f92b29a6317ee6beb239269bc59a82d (patch)
tree82a5ac18ef412c374f62fd04c332c326b2b524b4 /include/firmware/imx/sci/svc/seco/api.h
parentbe0ad00409982610a02067c70f09b3a1ac7b5864 (diff)
imx: move imx8 sci header file to include/firmware/imx
Move imx8 sci header file to include/firmware/imx, then we could use build macro to reuse some i.MX8 drivers for i.MX9, such as drivers/cpu/imx8_cpu.c. Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'include/firmware/imx/sci/svc/seco/api.h')
-rw-r--r--include/firmware/imx/sci/svc/seco/api.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/include/firmware/imx/sci/svc/seco/api.h b/include/firmware/imx/sci/svc/seco/api.h
new file mode 100644
index 00000000000..6e9c302315b
--- /dev/null
+++ b/include/firmware/imx/sci/svc/seco/api.h
@@ -0,0 +1,37 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright 2019 NXP
+ */
+
+#ifndef SC_SECO_API_H
+#define SC_SECO_API_H
+
+/* Includes */
+
+#include <firmware/imx/sci/types.h>
+
+/* Defines */
+#define SC_SECO_AUTH_CONTAINER 0U /* Authenticate container */
+#define SC_SECO_VERIFY_IMAGE 1U /* Verify image */
+#define SC_SECO_REL_CONTAINER 2U /* Release container */
+#define SC_SECO_AUTH_SECO_FW 3U /* SECO Firmware */
+#define SC_SECO_AUTH_HDMI_TX_FW 4U /* HDMI TX Firmware */
+#define SC_SECO_AUTH_HDMI_RX_FW 5U /* HDMI RX Firmware */
+
+#define SC_SECO_RNG_STAT_UNAVAILABLE 0U /* Unable to initialize the RNG */
+#define SC_SECO_RNG_STAT_INPROGRESS 1U /* Initialization is on-going */
+#define SC_SECO_RNG_STAT_READY 2U /* Initialized */
+
+/* Types */
+
+/*!
+ * This type is used to issue SECO authenticate commands.
+ */
+typedef u8 sc_seco_auth_cmd_t;
+
+/*!
+ * This type is used to return the RNG initialization status.
+ */
+typedef u32 sc_seco_rng_stat_t;
+
+#endif /* SC_SECO_API_H */