summaryrefslogtreecommitdiff
path: root/src/mainboard/starlabs/lite
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/lite
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/lite')
-rw-r--r--src/mainboard/starlabs/lite/devtree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainboard/starlabs/lite/devtree.c b/src/mainboard/starlabs/lite/devtree.c
index 9df207e668..82517df36e 100644
--- a/src/mainboard/starlabs/lite/devtree.c
+++ b/src/mainboard/starlabs/lite/devtree.c
@@ -44,6 +44,9 @@ void devtree_update(void)
break;
}
+ /* Set PL4 to 1.0C */
+ soc_conf->tdp_pl4 = 31;
+
/* Enable/Disable Wireless based on CMOS settings */
if (get_uint_option("wireless", 1) == 0)
nic_dev->enabled = 0;