mb/starlabs/*: Add CFR entry for Bluetooth RTD3

Allows the Bluetooth RTD3 feature to be toggled on/off.

On some devices, enabling Bluetooth RTD3 causes the BT device to
continually disconnect/reconnect under Windows, so having the ability
to disable it in those cases is useful.

Change-Id: I1730dc35d56919fcf03acdf577288caf1e1a4ee3
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/87492
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
This commit is contained in:
Matt DeVillier 2025-04-16 09:17:24 -05:00
commit 8fa84d9111
5 changed files with 36 additions and 0 deletions

View file

@ -136,9 +136,18 @@ static const struct sm_object vtd = SM_DECLARE_BOOL({
.default_value = true,
});
static const struct sm_object bluetooth_rtd3 = SM_DECLARE_BOOL({
.opt_name = "bluetooth_rtd3",
.ui_name = "Bluetooth Runtime-D3",
.ui_helptext = "Enable or disable Bluetooth power optimization.\n"
"Recommended to disable when booting Windows.",
.default_value = true,
});
static struct sm_obj_form performance = {
.ui_name = "Performance",
.obj_list = (const struct sm_object *[]) {
&bluetooth_rtd3,
&power_profile,
NULL
},

View file

@ -12,6 +12,7 @@
static struct sm_obj_form performance = {
.ui_name = "Performance",
.obj_list = (const struct sm_object *[]) {
&bluetooth_rtd3,
&fan_mode,
&power_profile,
NULL

View file

@ -201,4 +201,12 @@ static const struct sm_object vtd = SM_DECLARE_BOOL({
.default_value = true,
});
static const struct sm_object bluetooth_rtd3 = SM_DECLARE_BOOL({
.opt_name = "bluetooth_rtd3",
.ui_name = "Bluetooth Runtime-D3",
.ui_helptext = "Enable or disable Bluetooth power optimization.\n"
"Recommended to disable when booting Windows.",
.default_value = true,
});
#endif /* _STARBOOK_CFR_H_ */

View file

@ -157,9 +157,18 @@ static const struct sm_object vtd = SM_DECLARE_BOOL({
.default_value = true,
});
static const struct sm_object bluetooth_rtd3 = SM_DECLARE_BOOL({
.opt_name = "bluetooth_rtd3",
.ui_name = "Bluetooth Runtime-D3",
.ui_helptext = "Enable or disable Bluetooth power optimization.\n"
"Recommended to disable when booting Windows.",
.default_value = true,
});
static struct sm_obj_form performance = {
.ui_name = "Performance",
.obj_list = (const struct sm_object *[]) {
&bluetooth_rtd3,
&fan_mode,
&power_profile,
NULL

View file

@ -189,9 +189,18 @@ static const struct sm_object vtd = SM_DECLARE_BOOL({
.default_value = true,
});
static const struct sm_object bluetooth_rtd3 = SM_DECLARE_BOOL({
.opt_name = "bluetooth_rtd3",
.ui_name = "Bluetooth Runtime-D3",
.ui_helptext = "Enable or disable Bluetooth power optimization.\n"
"Recommended to disable when booting Windows.",
.default_value = true,
});
static struct sm_obj_form performance = {
.ui_name = "Performance",
.obj_list = (const struct sm_object *[]) {
&bluetooth_rtd3,
&memory_speed,
&power_profile,
NULL