summaryrefslogtreecommitdiff
path: root/src/mainboard/starlabs/labtop/variants/cml/devtree.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/starlabs/labtop/variants/cml/devtree.c')
-rw-r--r--src/mainboard/starlabs/labtop/variants/cml/devtree.c25
1 files changed, 14 insertions, 11 deletions
diff --git a/src/mainboard/starlabs/labtop/variants/cml/devtree.c b/src/mainboard/starlabs/labtop/variants/cml/devtree.c
index cf0734e4ce..93d55c58ae 100644
--- a/src/mainboard/starlabs/labtop/variants/cml/devtree.c
+++ b/src/mainboard/starlabs/labtop/variants/cml/devtree.c
@@ -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;
+ 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 2:
- soc_conf->tdp_pl1_override = 20;
- soc_conf->tdp_pl2_override = 25;
+ case PP_BALANCED:
+ soc_conf->tdp_pl1_override = 17;
+ soc_conf->tdp_pl2_override = 20;
+ cfg->tcc_offset = 15;
break;
- default:
- disable_turbo();
- soc_conf->tdp_pl1_override = 15;
- soc_conf->tdp_pl2_override = 15;
+ case PP_PERFORMANCE:
+ soc_conf->tdp_pl1_override = 20;
+ soc_conf->tdp_pl2_override = 25;
+ cfg->tcc_offset = 10;
break;
}