diff options
| author | Anup Patel <apatel@ventanamicro.com> | 2024-08-06 10:45:11 +0530 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2024-12-06 09:26:40 +0530 |
| commit | ff4769bf08b50c61bb48f37ea00a17737096e2b5 (patch) | |
| tree | c7f807fb05a5c379afa7a8c73706c8b802304cb9 /include | |
| parent | 9d760b810e184479c65c2537594beaf4657f02ed (diff) | |
| download | opensbi-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.h | 26 |
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 |
