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>
This commit is contained in:
Sean Rhodes 2024-10-04 12:07:24 +01:00
commit dcda600ec3
9 changed files with 31 additions and 0 deletions

View file

@ -40,6 +40,9 @@ void devtree_update(void)
break;
}
/* Set PL4 to 1.0C */
soc_conf_4core->tdp_pl4 = 36;
/* Enable/Disable Bluetooth based on CMOS settings */
if (get_uint_option("wireless", 1) == 0) {
cfg->usb2_ports[9].enable = 0;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -50,6 +50,10 @@ void devtree_update(void)
break;
}
/* Set PL4 to 1.0C */
soc_conf_6core->tdp_pl4 = 65;
soc_conf_14core->tdp_pl4 = 65;
/* Enable/Disable Bluetooth based on CMOS settings */
if (get_uint_option("wireless", 1) == 0)
cfg->usb2_ports[9].enable = 0;

View file

@ -42,6 +42,9 @@ void devtree_update(void)
break;
}
/* Set PL4 to 1.0C */
soc_conf_4core->tdp_pl4 = 37;
/* Enable/Disable Bluetooth based on CMOS settings */
if (get_uint_option("wireless", 1) == 0) {
cfg->usb2_ports[9].enable = 0;