From 096ce4b24453331a1f0719a149e2cb2ac0bd99f2 Mon Sep 17 00:00:00 2001 From: Hope Wang Date: Wed, 30 Apr 2025 10:53:28 +0800 Subject: [PATCH] soc/mediatek/mt8196: Move dvfs_init() declaration to dvfs_common.h To promote code reuse and maintainability, move dvfs_init() declaration to dvfs_common.h. BUG=b:410763782 BRANCH=none TEST=Build pass. Signed-off-by: Hope Wang Change-Id: If9778a13a4664bdaf4cad65c8daa78c10748466d Reviewed-on: https://review.coreboot.org/c/coreboot/+/87915 Reviewed-by: Yu-Ping Wu Reviewed-by: Yidi Lin Tested-by: build bot (Jenkins) --- src/soc/mediatek/common/include/soc/dvfs_common.h | 8 ++++++++ src/soc/mediatek/mt8196/include/soc/dvfs.h | 4 +--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 src/soc/mediatek/common/include/soc/dvfs_common.h diff --git a/src/soc/mediatek/common/include/soc/dvfs_common.h b/src/soc/mediatek/common/include/soc/dvfs_common.h new file mode 100644 index 0000000000..71068f4c41 --- /dev/null +++ b/src/soc/mediatek/common/include/soc/dvfs_common.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-only OR MIT */ + +#ifndef __SOC_MEDIATEK_DVFS_COMMON_H__ +#define __SOC_MEDIATEK_DVFS_COMMON_H__ + +void dvfs_init(void); + +#endif diff --git a/src/soc/mediatek/mt8196/include/soc/dvfs.h b/src/soc/mediatek/mt8196/include/soc/dvfs.h index 76634bf00b..6bd6db5ac5 100644 --- a/src/soc/mediatek/mt8196/include/soc/dvfs.h +++ b/src/soc/mediatek/mt8196/include/soc/dvfs.h @@ -4,11 +4,9 @@ #define __SOC_MEDIATEK_MT8196_DVFS_H__ #include +#include -#define CACHE_LINE 64 #define CSRAM_OFFSET 0x0001BC00 #define CSRAM_BASE (SRAM_BASE + CSRAM_OFFSET) -void dvfs_init(void); - #endif