summaryrefslogtreecommitdiff
path: root/src/soc/intel/alderlake
diff options
context:
space:
mode:
authorSridhar Siricilla <sridhar.siricilla@intel.com>2023-01-05 17:08:17 +0530
committerLean Sheng Tan <sheng.tan@9elements.com>2023-01-10 13:53:24 +0000
commitd9c82695f50ca59ef5cdecdbefe7402ad90b3f27 (patch)
tree1a836b930566486a4cc2a72bd1bb3c176dd88439 /src/soc/intel/alderlake
parent166c75c7785965e7c7013b20a420720635cee656 (diff)
soc/intel: Add Kconfigs to define scaling factor for cores
The patch adds Kconfigs to define scaling factor for Efficient and Performance cores instead of using hard coded values in the soc code. Also, the patches uses the Kconfigs directly to calculate the core's nominal performance. So, we don't need to implement soc function soc_get_scaling_factor() to get the scaling factor data for different core types. Hence, soc_get_scaling_factor() function is removed. TEST=Build the code for Gimble and Rex. Also, I have verified that build system logs error when the Kconfigs are undefined. Signed-off-by: Sridhar Siricilla <sridhar.siricilla@intel.com> Change-Id: I55e4d815116ef40c5f33be64ab495e942bf35ee8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/71687 Reviewed-by: Subrata Banik <subratabanik@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/Kconfig8
-rw-r--r--src/soc/intel/alderlake/cpu.c6
2 files changed, 8 insertions, 6 deletions
diff --git a/src/soc/intel/alderlake/Kconfig b/src/soc/intel/alderlake/Kconfig
index 132e812dfa..a5332b06c6 100644
--- a/src/soc/intel/alderlake/Kconfig
+++ b/src/soc/intel/alderlake/Kconfig
@@ -291,6 +291,14 @@ config CPU_BCLK_MHZ
int
default 100
+config SOC_INTEL_PERFORMANCE_CORE_SCALE_FACTOR
+ int
+ default 127
+
+config SOC_INTEL_EFFICIENT_CORE_SCALE_FACTOR
+ int
+ default 100
+
config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
int
default 120
diff --git a/src/soc/intel/alderlake/cpu.c b/src/soc/intel/alderlake/cpu.c
index 768f2d533d..27c6a9330d 100644
--- a/src/soc/intel/alderlake/cpu.c
+++ b/src/soc/intel/alderlake/cpu.c
@@ -99,12 +99,6 @@ enum core_type get_soc_cpu_type(void)
return CPUID_CORE_TYPE_INTEL_CORE;
}
-void soc_get_scaling_factor(u16 *perf_core_scal_factor, u16 *eff_core_scal_factor)
-{
- *perf_core_scal_factor = 127;
- *eff_core_scal_factor = 100;
-}
-
bool soc_is_nominal_freq_supported(void)
{
return true;