lib: Add SG2044 CPPC support

Signed-off-by: haijiao.liu <haijiao.liu@sophgo.com>
This commit is contained in:
haijiao.liu
2025-03-26 22:01:23 +08:00
committed by Xiaoguang Xing
parent df02b2f353
commit 78f021d248
15 changed files with 961 additions and 0 deletions

18
lib/utils/clk/fdt_clk.c Normal file
View File

@@ -0,0 +1,18 @@
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2025 Sophgo Inc.
*
* Authors:
* Haijiao Liu <haijiao.liu@sophgo.com>
*/
#include <sbi_utils/clk/fdt_clk.h>
/* List of FDT clock drivers generated at compile time */
extern const struct fdt_driver *const fdt_clk_drivers[];
void fdt_clk_init(const void *fdt)
{
fdt_driver_init_all(fdt, fdt_clk_drivers);
}