From 54e632b72e80101cf733c47ad1c419d23a8b78e7 Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Wed, 7 Aug 2024 10:47:18 +0530 Subject: lib: utils: Add simple FDT based CPPC driver framework The generic platform can have multiple CPPC drivers so add a simple FDT based CPPC driver framework. Signed-off-by: Anup Patel --- include/sbi_utils/cppc/fdt_cppc.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 include/sbi_utils/cppc/fdt_cppc.h (limited to 'include/sbi_utils/cppc') diff --git a/include/sbi_utils/cppc/fdt_cppc.h b/include/sbi_utils/cppc/fdt_cppc.h new file mode 100644 index 00000000..433c6d32 --- /dev/null +++ b/include/sbi_utils/cppc/fdt_cppc.h @@ -0,0 +1,26 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2024 Ventana Micro Systems Inc. + * + * Authors: + * Anup Patel + */ + +#ifndef __FDT_CPPC_H__ +#define __FDT_CPPC_H__ + +#include +#include + +#ifdef CONFIG_FDT_CPPC + +void fdt_cppc_init(const void *fdt); + +#else + +static inline void fdt_cppc_init(const void *fdt) { } + +#endif + +#endif -- cgit v1.3.1