Lean Sheng Tan has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/68222 )
Change subject: mb/prodrive/atlas: Disable C-States & cTDP ......................................................................
mb/prodrive/atlas: Disable C-States & cTDP
As Atlas is required for industrial use cases: - Disable Configurable TDP - Disable all C-states other than C0/C1 for CPU and package
Signed-off-by: Lean Sheng Tan sheng.tan@9elements.com Change-Id: Iaf1c15ac258c78025420966bf592795b66101d17 --- M src/mainboard/prodrive/atlas/mainboard.c 1 file changed, 27 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/22/68222/1
diff --git a/src/mainboard/prodrive/atlas/mainboard.c b/src/mainboard/prodrive/atlas/mainboard.c index 036208a..65b266f 100644 --- a/src/mainboard/prodrive/atlas/mainboard.c +++ b/src/mainboard/prodrive/atlas/mainboard.c @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */
#include <device/device.h> +#include <soc/ramstage.h> #include <stdint.h>
#include "gpio.h" @@ -10,6 +11,18 @@ configure_gpio_pads(); }
+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; + + /* Disable Configurable TDP */ + params->ApplyConfigTdp = 0; +} + struct chip_operations mainboard_ops = { .init = mainboard_init, };