From 37d4d7ab11ed669ba6a37adafad97e473cd341a9 Mon Sep 17 00:00:00 2001 From: Yu-Ping Wu Date: Wed, 20 Nov 2024 15:41:57 +0800 Subject: soc/mediatek: Rename FREQ_*MHZ to PMIF_TARGET_FREQ_MHZ Enum is useful for improving readability because of the meaningful enum names. Names such as "FREQ_260MHZ = 260", however, don't provide any extra information of the value itself. Therefore, rename those enums to PMIF_TARGET_FREQ_MHZ to better reflect its usage. Change-Id: I420b909a76973a040b96feb2bcb93d3640b086b5 Signed-off-by: Yu-Ping Wu Reviewed-on: https://review.coreboot.org/c/coreboot/+/85204 Reviewed-by: Yidi Lin Tested-by: build bot (Jenkins) --- src/soc/mediatek/mt8188/include/soc/pmif.h | 2 +- src/soc/mediatek/mt8188/pmif_clk.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/soc/mediatek/mt8188') diff --git a/src/soc/mediatek/mt8188/include/soc/pmif.h b/src/soc/mediatek/mt8188/include/soc/pmif.h index 39737ce659..c22a77399b 100644 --- a/src/soc/mediatek/mt8188/include/soc/pmif.h +++ b/src/soc/mediatek/mt8188/include/soc/pmif.h @@ -134,7 +134,7 @@ struct mtk_clk_monitor_regs { #define mtk_clk_monitor ((struct mtk_clk_monitor_regs *)EFUSE_BASE + 0x45C) enum { - FREQ_260MHZ = 260, + PMIF_TARGET_FREQ_MHZ = 260, }; /* calibation tolerance rate, unit: 0.1% */ diff --git a/src/soc/mediatek/mt8188/pmif_clk.c b/src/soc/mediatek/mt8188/pmif_clk.c index 9756f99d1a..bac37b9fc2 100644 --- a/src/soc/mediatek/mt8188/pmif_clk.c +++ b/src/soc/mediatek/mt8188/pmif_clk.c @@ -116,7 +116,7 @@ static int pmif_init_ulposc(void) SET32_BITFIELDS(&mtk_spm->ulposc_con, ULPOSC_CG_EN, 1); udelay(50); - return pmif_ulposc_cali(FREQ_260MHZ); + return pmif_ulposc_cali(PMIF_TARGET_FREQ_MHZ); } int pmif_clk_init(void) -- cgit v1.2.3