From ff4769bf08b50c61bb48f37ea00a17737096e2b5 Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Tue, 6 Aug 2024 10:45:11 +0530 Subject: 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 --- include/sbi_utils/hsm/fdt_hsm.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 include/sbi_utils/hsm/fdt_hsm.h (limited to 'include') 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 + */ + +#ifndef __FDT_HSM_H__ +#define __FDT_HSM_H__ + +#include +#include + +#ifdef CONFIG_FDT_HSM + +void fdt_hsm_init(const void *fdt); + +#else + +static inline void fdt_hsm_init(const void *fdt) { } + +#endif + +#endif -- cgit v1.3.1