summaryrefslogtreecommitdiff
path: root/include/meson
diff options
context:
space:
mode:
authorAlexey Romanov <[email protected]>2023-09-21 11:13:39 +0300
committerNeil Armstrong <[email protected]>2023-10-15 12:23:48 +0200
commitef2eb106eebfc792f6d09d11dfed5c23c3991691 (patch)
treed0425cb3b4fd5d544599018f73e6f3116617bfda /include/meson
parent9a04e36170c03eaa8b50190bda4ec37dbf0b7745 (diff)
drivers: introduce Meson Secure Monitor driver
This patch adds an implementation of the Meson Secure Monitor driver based on UCLASS_SM. Signed-off-by: Alexey Romanov <[email protected]> Reviewed-by: Simon Glass <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Neil Armstrong <[email protected]>
Diffstat (limited to 'include/meson')
-rw-r--r--include/meson/sm.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/meson/sm.h b/include/meson/sm.h
new file mode 100644
index 00000000000..fbaab1f1ee0
--- /dev/null
+++ b/include/meson/sm.h
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (c) 2023 SberDevices, Inc.
+ *
+ * Author: Alexey Romanov <[email protected]>
+ */
+
+#ifndef __MESON_SM_CMD_H__
+#define __MESON_SM_CMD_H__
+
+enum meson_smc_cmd {
+ MESON_SMC_CMD_EFUSE_READ, /* read efuse memory */
+ MESON_SMC_CMD_EFUSE_WRITE, /* write efuse memory */
+ MESON_SMC_CMD_CHIP_ID_GET, /* readh chip unique id */
+ MESON_SMC_CMD_PWRDM_SET, /* do command at specified power domain */
+ MESON_SMC_CMD_COUNT,
+};
+
+#endif