summaryrefslogtreecommitdiff
path: root/src/soc/intel/apollolake
diff options
context:
space:
mode:
authorUwe Poeche <uwe.poeche@siemens.com>2022-05-23 12:06:28 +0200
committerPaul Fagerburg <pfagerburg@chromium.org>2022-06-03 15:22:17 +0000
commitd2d90215435f05329bfc03d9351ee6f8f5351014 (patch)
tree7522c210c6219c6aa81ca3a941be05443d3c0c59 /src/soc/intel/apollolake
parent8da4bfe5b573f395057fbfb5a9d99b376e25c2a4 (diff)
intel/common/block: move RAPL disabling to common code
This patch brings the feature of disabling RAPL to common code. It replaces the current solution for APL and EHL. For special case if RAPL disabling is only working via changes in MCHBAR a new config switch was introduced. Test: Boot mc_apl4/5 with this patch and ensure that the relevant bits in MSR 0x610 are the same as before the patch. Change-Id: I2098ddcd2f19e3ebd87ef00c544e1427674f5e84 Signed-off-by: Uwe Poeche <uwe.poeche@siemens.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/64596 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
Diffstat (limited to 'src/soc/intel/apollolake')
-rw-r--r--src/soc/intel/apollolake/chip.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/soc/intel/apollolake/chip.c b/src/soc/intel/apollolake/chip.c
index cb115a0b1b..40316a203d 100644
--- a/src/soc/intel/apollolake/chip.c
+++ b/src/soc/intel/apollolake/chip.c
@@ -321,14 +321,10 @@ static void soc_init(void *data)
*/
p2sb_unhide();
- if (CONFIG(SOC_INTEL_DISABLE_POWER_LIMITS)) {
- printk(BIOS_INFO, "Skip setting RAPL per configuration\n");
- } else {
- config = config_of_soc();
- /* Set RAPL MSR for Package power limits */
- soc_config = &config->power_limits_config;
- set_power_limits(MOBILE_SKU_PL1_TIME_SEC, soc_config);
- }
+ config = config_of_soc();
+ /* Set RAPL MSR for Package power limits */
+ soc_config = &config->power_limits_config;
+ set_power_limits(MOBILE_SKU_PL1_TIME_SEC, soc_config);
/*
* FSP-S routes SCI to IRQ 9. With the help of this function you can