diff options
author | Dinesh Gehlot <digehlot@google.com> | 2022-12-16 09:21:18 +0000 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2022-12-25 15:24:36 +0000 |
commit | d4f2d14d52cba27f25a53979548ea9bdaf71c23e (patch) | |
tree | 8dd3c9da43daf7cb51fabdfa0d9b05c9dc8b59ba /src/soc/intel/alderlake | |
parent | 2179c7fdb7c48e7cc3009c00cbd107267e0d7903 (diff) |
soc/intel: Move max speed API to common
This patch moves API "smbios_cpu_get_max_speed_mhz()"
to common code from board specific. This API was made
generic in 'commit d34364bdea12 ("soc/intel/alderlake:
Utilize `CPU_BCLK_MHZ` over dedicated macro")'
BUG=NONE
TEST=Boot and verified that SMBIOS max speed value is
correct on brya and rex.
(brya) dmidecode -t : "Max Speed: 4400 MHz"
(rex) dmidecode -t : "Max Speed: 3400 MHz"
Signed-off-by: Dinesh Gehlot <digehlot@google.com>
Change-Id: I87040ab23319097287e191d7fc9579f16d716e62
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70879
Reviewed-by: Johnny Lin <Johnny_Lin@wiwynn.com>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/alderlake')
-rw-r--r-- | src/soc/intel/alderlake/Makefile.inc | 1 | ||||
-rw-r--r-- | src/soc/intel/alderlake/smbios.c | 11 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/soc/intel/alderlake/Makefile.inc b/src/soc/intel/alderlake/Makefile.inc index 415c2b1a56..2055870251 100644 --- a/src/soc/intel/alderlake/Makefile.inc +++ b/src/soc/intel/alderlake/Makefile.inc @@ -46,7 +46,6 @@ ramstage-y += tcss.c ramstage-y += vr_config.c ramstage-y += xhci.c ramstage-$(CONFIG_SOC_INTEL_CRASHLOG) += crashlog.c -ramstage-y += smbios.c smm-y += elog.c smm-y += p2sb.c diff --git a/src/soc/intel/alderlake/smbios.c b/src/soc/intel/alderlake/smbios.c deleted file mode 100644 index 42692586fe..0000000000 --- a/src/soc/intel/alderlake/smbios.c +++ /dev/null @@ -1,11 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#include <intelblocks/cpulib.h> -#include <intelblocks/msr.h> -#include <smbios.h> - -/* Provide the max turbo frequency of the CPU */ -unsigned int smbios_cpu_get_max_speed_mhz(void) -{ - return cpu_get_max_turbo_ratio() * CONFIG_CPU_BCLK_MHZ; -} |