From af3f8298d62832d1bb2bee4ef08097052e07c1a7 Mon Sep 17 00:00:00 2001 From: Yidi Lin Date: Tue, 15 Oct 2024 16:43:39 +0800 Subject: soc/mediatek/common: Config CAL_TOL_RATE and CAL_MAX_VAL in SoC folder MT8196 has differenet configurations from other platforms. Make CAL_TOL_RATE and CAL_MAX_VAL as per SoC configuration in order to reuse common/pmif_clk.c BUG=none TEST=emerge-corsola coreboot; emerge-geralt coreboot Change-Id: Iefc8180e1719d9796df7457b619a8792ceb762b2 Signed-off-by: Yidi Lin Reviewed-on: https://review.coreboot.org/c/coreboot/+/84771 Reviewed-by: Yu-Ping Wu Tested-by: build bot (Jenkins) --- src/soc/mediatek/mt8188/include/soc/pmif.h | 6 ++++++ 1 file changed, 6 insertions(+) (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 3cb8f3505f..39737ce659 100644 --- a/src/soc/mediatek/mt8188/include/soc/pmif.h +++ b/src/soc/mediatek/mt8188/include/soc/pmif.h @@ -137,6 +137,12 @@ enum { FREQ_260MHZ = 260, }; +/* calibation tolerance rate, unit: 0.1% */ +enum { + CAL_TOL_RATE = 40, + CAL_MAX_VAL = 0x7F, +}; + #define FREQ_METER_ABIST_AD_OSC_CK 42 #define CALI_DEFAULT_CAP_VALUE 0x3d -- cgit v1.2.3