aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnup Patel <apatel@ventanamicro.com>2024-08-06 10:45:11 +0530
committerAnup Patel <anup@brainfault.org>2024-12-06 09:26:40 +0530
commitff4769bf08b50c61bb48f37ea00a17737096e2b5 (patch)
treec7f807fb05a5c379afa7a8c73706c8b802304cb9 /include
parent9d760b810e184479c65c2537594beaf4657f02ed (diff)
downloadopensbi-ff4769bf08b50c61bb48f37ea00a17737096e2b5.tar.gz
opensbi-ff4769bf08b50c61bb48f37ea00a17737096e2b5.tar.bz2
opensbi-ff4769bf08b50c61bb48f37ea00a17737096e2b5.zip
lib: utils: Add simple FDT based HSM driver framework
The generic platform can have multiple HSM drivers so add a simple FDT based HSM driver framework. Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Diffstat (limited to 'include')
-rw-r--r--include/sbi_utils/hsm/fdt_hsm.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/sbi_utils/hsm/fdt_hsm.h b/include/sbi_utils/hsm/fdt_hsm.h
new file mode 100644
index 00000000..58061afc
--- /dev/null
+++ b/include/sbi_utils/hsm/fdt_hsm.h
@@ -0,0 +1,26 @@
+/*
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2024 Ventana Micro Systems Inc.
+ *
+ * Authors:
+ * Anup Patel <apatel@ventanamicro.com>
+ */
+
+#ifndef __FDT_HSM_H__
+#define __FDT_HSM_H__
+
+#include <sbi/sbi_types.h>
+#include <sbi_utils/fdt/fdt_driver.h>
+
+#ifdef CONFIG_FDT_HSM
+
+void fdt_hsm_init(const void *fdt);
+
+#else
+
+static inline void fdt_hsm_init(const void *fdt) { }
+
+#endif
+
+#endif