diff options
Diffstat (limited to 'src/soc/intel/alderlake/smbios.c')
-rw-r--r-- | src/soc/intel/alderlake/smbios.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/soc/intel/alderlake/smbios.c b/src/soc/intel/alderlake/smbios.c new file mode 100644 index 0000000000..d0d9d79062 --- /dev/null +++ b/src/soc/intel/alderlake/smbios.c @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <intelblocks/cpulib.h> +#include <intelblocks/msr.h> +#include <smbios.h> + +/* 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; +} |