From 2bbc0f1ad3b99816be599e163d9f00fd1496d61e Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Tue, 28 Oct 2025 20:05:18 +0000 Subject: [PATCH] mb/starlabs/starbook/{kbl,cml,tgl}: Control USB Bluetooth with wireless Make the "wireless" option enable or disable the USB Bluetooth along with the wireless card. Change-Id: I253b83ac3efb768e91dba424be4cec6a56bf53f8 Signed-off-by: Sean Rhodes Reviewed-on: https://review.coreboot.org/c/coreboot/+/89798 Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) --- src/mainboard/starlabs/starbook/variants/cml/devtree.c | 4 +++- src/mainboard/starlabs/starbook/variants/kbl/devtree.c | 4 +++- src/mainboard/starlabs/starbook/variants/tgl/devtree.c | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/mainboard/starlabs/starbook/variants/cml/devtree.c b/src/mainboard/starlabs/starbook/variants/cml/devtree.c index 85b5174392..f9d201078c 100644 --- a/src/mainboard/starlabs/starbook/variants/cml/devtree.c +++ b/src/mainboard/starlabs/starbook/variants/cml/devtree.c @@ -48,8 +48,10 @@ void devtree_update(void) soc_conf->tdp_pl2_override = (soc_conf->tdp_pl2_override * performance_scale) / 100; /* Enable/Disable Wireless based on CMOS settings */ - if (get_uint_option("wireless", 1) == 0) + if (get_uint_option("wireless", 1) == 0) { nic_dev->enabled = 0; + cfg->usb2_ports[9].enable = 0; + } /* Enable/Disable Webcam based on CMOS settings */ cfg->usb2_ports[CONFIG_CCD_PORT].enable = get_uint_option("webcam", 1); diff --git a/src/mainboard/starlabs/starbook/variants/kbl/devtree.c b/src/mainboard/starlabs/starbook/variants/kbl/devtree.c index 4c7394515f..3cda4ce455 100644 --- a/src/mainboard/starlabs/starbook/variants/kbl/devtree.c +++ b/src/mainboard/starlabs/starbook/variants/kbl/devtree.c @@ -48,8 +48,10 @@ void devtree_update(void) soc_conf->tdp_pl2_override = (soc_conf->tdp_pl2_override * performance_scale) / 100; /* Enable/Disable Wireless based on CMOS settings */ - if (get_uint_option("wireless", 1) == 0) + if (get_uint_option("wireless", 1) == 0) { nic_dev->enabled = 0; + cfg->usb2_ports[9].enable = 0; + } /* Enable/Disable Webcam based on CMOS settings */ cfg->usb2_ports[CONFIG_CCD_PORT].enable = get_uint_option("webcam", 1); diff --git a/src/mainboard/starlabs/starbook/variants/tgl/devtree.c b/src/mainboard/starlabs/starbook/variants/tgl/devtree.c index 8f6e39b066..3988cf2cde 100644 --- a/src/mainboard/starlabs/starbook/variants/tgl/devtree.c +++ b/src/mainboard/starlabs/starbook/variants/tgl/devtree.c @@ -60,8 +60,10 @@ void devtree_update(void) soc_conf_4core->tdp_pl2_override = (soc_conf_4core->tdp_pl2_override * performance_scale) / 100; /* Enable/Disable Wireless based on CMOS settings */ - if (get_uint_option("wireless", 1) == 0) + if (get_uint_option("wireless", 1) == 0) { nic_dev->enabled = 0; + cfg->usb2_ports[9].enable = 0; + } /* Enable/Disable Webcam based on CMOS settings */ cfg->usb2_ports[CONFIG_CCD_PORT].enable = get_uint_option("webcam", 1);