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 <sean@starlabs.systems> Reviewed-on: https://review.coreboot.org/c/coreboot/+/89798 Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
2c9596555b
commit
2bbc0f1ad3
3 changed files with 9 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue