summaryrefslogtreecommitdiff
path: root/include/sbi_utils/cppc/fdt_cppc.h
diff options
context:
space:
mode:
authorAnup Patel <[email protected]>2024-08-07 10:47:18 +0530
committerAnup Patel <[email protected]>2024-12-06 09:26:45 +0530
commit54e632b72e80101cf733c47ad1c419d23a8b78e7 (patch)
treec4e1728b41cb62f10ba733a3141697e35e1ff290 /include/sbi_utils/cppc/fdt_cppc.h
parent33ee9b8240fee298ddd357a68096652286024670 (diff)
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 <[email protected]>
Diffstat (limited to 'include/sbi_utils/cppc/fdt_cppc.h')
-rw-r--r--include/sbi_utils/cppc/fdt_cppc.h26
1 files changed, 26 insertions, 0 deletions
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 <[email protected]>
+ */
+
+#ifndef __FDT_CPPC_H__
+#define __FDT_CPPC_H__
+
+#include <sbi/sbi_types.h>
+#include <sbi_utils/fdt/fdt_driver.h>
+
+#ifdef CONFIG_FDT_CPPC
+
+void fdt_cppc_init(const void *fdt);
+
+#else
+
+static inline void fdt_cppc_init(const void *fdt) { }
+
+#endif
+
+#endif