From 2d046936401d49dff8b4ab6cf509eeac92db865d Mon Sep 17 00:00:00 2001 From: Werner Zeh Date: Wed, 3 Nov 2021 07:26:44 +0100 Subject: mb/siemens/mc_ehl: Disable C-States for CPU and package Disable all C-states other than C0/C1 for CPU and package. Change-Id: I2c163f859dab4b0dc02896c70122e993cdd3db72 Signed-off-by: Werner Zeh Reviewed-on: https://review.coreboot.org/c/coreboot/+/58893 Tested-by: build bot (Jenkins) Reviewed-by: Lean Sheng Tan Reviewed-by: Mario Scheithauer --- src/mainboard/siemens/mc_ehl/mainboard.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/mainboard') diff --git a/src/mainboard/siemens/mc_ehl/mainboard.c b/src/mainboard/siemens/mc_ehl/mainboard.c index e64dbda54f..eff2d21ac6 100644 --- a/src/mainboard/siemens/mc_ehl/mainboard.c +++ b/src/mainboard/siemens/mc_ehl/mainboard.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -114,6 +115,15 @@ static void wait_for_legacy_dev(void *unused) printk(BIOS_NOTICE, "done!\n"); } +void mainboard_silicon_init_params(FSP_S_CONFIG *params) +{ + /* Disable CPU power states (C-states) */ + params->Cx = 0; + + /* Set maximum package C-state to PkgC0C1 */ + params->PkgCStateLimit = 0; +} + static void mainboard_init(void *chip_info) { const struct pad_config *pads; -- cgit v1.2.3