mb/starlabs/starbook/kbl: Use function for getting power profile
All other variants use a function and definitions to get the power profile. Make this board to the same. Change-Id: I07ce71e20bd71229bb0cd3438ab59140cd0d8b42 Signed-off-by: Sean Rhodes <sean@starlabs.systems> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81412 Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -17,20 +17,20 @@ void devtree_update(void)
|
|||||||
struct device *nic_dev = pcidev_on_root(0x1c, 5);
|
struct device *nic_dev = pcidev_on_root(0x1c, 5);
|
||||||
|
|
||||||
/* Update PL1 & PL2 based on CMOS settings */
|
/* Update PL1 & PL2 based on CMOS settings */
|
||||||
switch (get_uint_option("power_profile", 0)) {
|
switch (get_power_profile(PP_POWER_SAVER)) {
|
||||||
case 1:
|
case PP_POWER_SAVER:
|
||||||
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:
|
|
||||||
disable_turbo();
|
disable_turbo();
|
||||||
soc_conf->tdp_pl1_override = 15;
|
soc_conf->tdp_pl1_override = 15;
|
||||||
soc_conf->tdp_pl2_override = 15;
|
soc_conf->tdp_pl2_override = 15;
|
||||||
break;
|
break;
|
||||||
|
case PP_BALANCED:
|
||||||
|
soc_conf->tdp_pl1_override = 17;
|
||||||
|
soc_conf->tdp_pl2_override = 20;
|
||||||
|
break;
|
||||||
|
case PP_PERFORMANCE:
|
||||||
|
soc_conf->tdp_pl1_override = 20;
|
||||||
|
soc_conf->tdp_pl2_override = 25;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Enable/Disable Wireless based on CMOS settings */
|
/* Enable/Disable Wireless based on CMOS settings */
|
||||||
|
Reference in New Issue
Block a user