summaryrefslogtreecommitdiff
path: root/src/mainboard/starlabs/starbook/variants
diff options
context:
space:
mode:
authorSean Rhodes <sean@starlabs.systems>2024-10-04 12:07:24 +0100
committerSean Rhodes <sean@starlabs.systems>2024-10-11 11:27:27 +0000
commitdcda600ec3f3f17c71f8a10a34789d1c843392c0 (patch)
tree89c00fa6b7cbad2aa8316285dc8bc2c5e9775fc3 /src/mainboard/starlabs/starbook/variants
parent4b3513056be7661268cd2d2dd98807d3e32f8ab0 (diff)
mb/starlabs/*: Set PL4 to 1.0C of the battery
Override the PL4 to the maximum power the battery can provide without a charger connected to prevent drawing too much power. Change-Id: I2945e1ed0f33ab6692631e327c1457980b353c06 Signed-off-by: Sean Rhodes <sean@starlabs.systems> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84660 Reviewed-by: Maxim Polyakov <max.senia.poliak@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/starlabs/starbook/variants')
-rw-r--r--src/mainboard/starlabs/starbook/variants/adl/devtree.c4
-rw-r--r--src/mainboard/starlabs/starbook/variants/cml/devtree.c3
-rw-r--r--src/mainboard/starlabs/starbook/variants/kbl/devtree.c3
-rw-r--r--src/mainboard/starlabs/starbook/variants/rpl/devtree.c4
-rw-r--r--src/mainboard/starlabs/starbook/variants/tgl/devtree.c4
5 files changed, 18 insertions, 0 deletions
diff --git a/src/mainboard/starlabs/starbook/variants/adl/devtree.c b/src/mainboard/starlabs/starbook/variants/adl/devtree.c
index 1c9a8ffc11..b99e432dd6 100644
--- a/src/mainboard/starlabs/starbook/variants/adl/devtree.c
+++ b/src/mainboard/starlabs/starbook/variants/adl/devtree.c
@@ -47,6 +47,10 @@ void devtree_update(void)
break;
}
+ /* Set PL4 to 1.0C */
+ soc_conf_10core->tdp_pl4 = 65;
+ soc_conf_12core->tdp_pl4 = 65;
+
/* Enable/Disable Bluetooth based on CMOS settings */
if (get_uint_option("wireless", 1) == 0)
cfg->usb2_ports[9].enable = 0;
diff --git a/src/mainboard/starlabs/starbook/variants/cml/devtree.c b/src/mainboard/starlabs/starbook/variants/cml/devtree.c
index b73d6c7589..a38fcd47a5 100644
--- a/src/mainboard/starlabs/starbook/variants/cml/devtree.c
+++ b/src/mainboard/starlabs/starbook/variants/cml/devtree.c
@@ -36,6 +36,9 @@ void devtree_update(void)
break;
}
+ /* Set PL4 to 1.0C */
+ soc_conf->tdp_pl4 = 45;
+
/* Enable/Disable Wireless based on CMOS settings */
if (get_uint_option("wireless", 1) == 0)
nic_dev->enabled = 0;
diff --git a/src/mainboard/starlabs/starbook/variants/kbl/devtree.c b/src/mainboard/starlabs/starbook/variants/kbl/devtree.c
index 6a98283e8e..26adaf2adb 100644
--- a/src/mainboard/starlabs/starbook/variants/kbl/devtree.c
+++ b/src/mainboard/starlabs/starbook/variants/kbl/devtree.c
@@ -36,6 +36,9 @@ void devtree_update(void)
break;
}
+ /* Set PL4 to 1.0C */
+ soc_conf->tdp_pl4 = 45;
+
/* Enable/Disable Wireless based on CMOS settings */
if (get_uint_option("wireless", 1) == 0)
nic_dev->enabled = 0;
diff --git a/src/mainboard/starlabs/starbook/variants/rpl/devtree.c b/src/mainboard/starlabs/starbook/variants/rpl/devtree.c
index f645f7cc35..3b47058a27 100644
--- a/src/mainboard/starlabs/starbook/variants/rpl/devtree.c
+++ b/src/mainboard/starlabs/starbook/variants/rpl/devtree.c
@@ -50,6 +50,10 @@ void devtree_update(void)
break;
}
+ /* Set PL4 to 1.0C */
+ soc_conf_6core->tdp_pl4 = 65;
+ soc_conf_12core->tdp_pl4 = 65;
+
/* Enable/Disable Bluetooth based on CMOS settings */
if (get_uint_option("wireless", 1) == 0)
cfg->usb2_ports[9].enable = 0;
diff --git a/src/mainboard/starlabs/starbook/variants/tgl/devtree.c b/src/mainboard/starlabs/starbook/variants/tgl/devtree.c
index 4195e09ff5..4013d7758f 100644
--- a/src/mainboard/starlabs/starbook/variants/tgl/devtree.c
+++ b/src/mainboard/starlabs/starbook/variants/tgl/devtree.c
@@ -49,6 +49,10 @@ void devtree_update(void)
break;
}
+ /* Set PL4 to 1.0C */
+ soc_conf_2core->tdp_pl4 = 65;
+ soc_conf_4core->tdp_pl4 = 65;
+
/* Enable/Disable Wireless based on CMOS settings */
if (get_uint_option("wireless", 1) == 0)
nic_dev->enabled = 0;