mb/starlabs/labtop: Configure tcc_offset based on power_profile settings
Set tcc_offset value based on the power_profile value, ranging from 10 to 20 degrees. Signed-off-by: Sean Rhodes <sean@starlabs.systems> Change-Id: I66fb266c1730833ff6e2dbf8ea39f23ee0878590 Reviewed-on: https://review.coreboot.org/c/coreboot/+/64705 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
49d0204c31
commit
99d2d62fa1
|
@ -32,9 +32,6 @@ chip soc/intel/cannonlake
|
|||
register "PchPmSlpSusMinAssert" = "3" # 500ms
|
||||
register "PchPmSlpAMinAssert" = "3" # 2s
|
||||
|
||||
# Thermal
|
||||
register "tcc_offset" = "10"
|
||||
|
||||
# PM Util
|
||||
# GPE configuration
|
||||
# Note that GPE events called out in ASL code rely on this
|
||||
|
|
|
@ -17,19 +17,22 @@ void devtree_update(void)
|
|||
struct device *nic_dev = pcidev_on_root(0x14, 3);
|
||||
|
||||
/* Update PL1 & PL2 based on CMOS settings */
|
||||
switch (get_uint_option("power_profile", 0)) {
|
||||
case 1:
|
||||
soc_conf->tdp_pl1_override = 17;
|
||||
soc_conf->tdp_pl2_override = 20;
|
||||
break;
|
||||
case 2:
|
||||
soc_conf->tdp_pl1_override = 20;
|
||||
soc_conf->tdp_pl2_override = 25;
|
||||
break;
|
||||
default:
|
||||
switch (get_power_profile(PP_POWER_SAVER)) {
|
||||
case PP_POWER_SAVER:
|
||||
disable_turbo();
|
||||
soc_conf->tdp_pl1_override = 15;
|
||||
soc_conf->tdp_pl2_override = 15;
|
||||
cfg->tcc_offset = 20;
|
||||
break;
|
||||
case PP_BALANCED:
|
||||
soc_conf->tdp_pl1_override = 17;
|
||||
soc_conf->tdp_pl2_override = 20;
|
||||
cfg->tcc_offset = 15;
|
||||
break;
|
||||
case PP_PERFORMANCE:
|
||||
soc_conf->tdp_pl1_override = 20;
|
||||
soc_conf->tdp_pl2_override = 25;
|
||||
cfg->tcc_offset = 10;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -38,9 +38,6 @@ chip soc/intel/tigerlake
|
|||
register "PchPmSlpSusMinAssert" = "3" # 500ms
|
||||
register "PchPmSlpAMinAssert" = "3" # 2s
|
||||
|
||||
# Thermal
|
||||
register "tcc_offset" = "10"
|
||||
|
||||
# PM Util
|
||||
# GPE configuration
|
||||
# Note that GPE events called out in ASL code rely on this
|
||||
|
|
|
@ -31,18 +31,21 @@ void devtree_update(void)
|
|||
soc_conf_4core->tdp_pl1_override = 15;
|
||||
soc_conf_2core->tdp_pl2_override = 15;
|
||||
soc_conf_4core->tdp_pl2_override = 15;
|
||||
cfg->tcc_offset = 20;
|
||||
break;
|
||||
case PP_BALANCED:
|
||||
soc_conf_2core->tdp_pl1_override = 15;
|
||||
soc_conf_4core->tdp_pl1_override = 15;
|
||||
soc_conf_2core->tdp_pl2_override = 25;
|
||||
soc_conf_4core->tdp_pl2_override = 25;
|
||||
cfg->tcc_offset = 15;
|
||||
break;
|
||||
case PP_PERFORMANCE:
|
||||
soc_conf_2core->tdp_pl1_override = 28;
|
||||
soc_conf_4core->tdp_pl1_override = 28;
|
||||
soc_conf_2core->tdp_pl2_override = 40;
|
||||
soc_conf_4core->tdp_pl2_override = 40;
|
||||
cfg->tcc_offset = 10;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue