From d34364bdea12fd73ce5e83b44bc6fa347f3359d3 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Tue, 13 Dec 2022 13:43:17 +0530 Subject: soc/intel/alderlake: Utilize `CPU_BCLK_MHZ` over dedicated macro This patch drops the redundant macro to define CPU BCLK and instead uses `CPU_BCLK_MHZ` config to calculate the `smbios_cpu_get_max_speed_mhz`. TEST=Able to see max cpu speed is correct in smbios table while trying on Google/Kano. Signed-off-by: Subrata Banik Change-Id: I5167f3a513c074b9e6986c960e1bcced65f1264c Reviewed-on: https://review.coreboot.org/c/coreboot/+/70676 Reviewed-by: Eric Lai Reviewed-by: Dinesh Gehlot Tested-by: build bot (Jenkins) Reviewed-by: Kapil Porwal Reviewed-by: Ivy Jian --- src/soc/intel/alderlake/smbios.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/soc/intel/alderlake/smbios.c b/src/soc/intel/alderlake/smbios.c index d0d9d79062..42692586fe 100644 --- a/src/soc/intel/alderlake/smbios.c +++ b/src/soc/intel/alderlake/smbios.c @@ -4,11 +4,8 @@ #include #include -/* AlderLake bus clock is fixed at 100MHz */ -#define ADL_BCLK 100 - /* Provide the max turbo frequency of the CPU */ unsigned int smbios_cpu_get_max_speed_mhz(void) { - return cpu_get_max_turbo_ratio() * ADL_BCLK; + return cpu_get_max_turbo_ratio() * CONFIG_CPU_BCLK_MHZ; } -- cgit v1.2.3