drivers/wifi: Support Bluetooth Bands Selection Mode
This feature provides ability to provide Bluetooth Bands Selection
Mode. The bluetooth bands selection mode is defined as follow:
| Bit | Band GHz | Value | Description | Default |
|------+----------+-------+----------------------+---------|
| 0 | 2.4GHz | 0 | Controlled by NIC | 0 |
| | | 1 | Force disable 2.4GHz | |
| 1 | 5.2GHz | 0 | Controlled by NIC | 0 |
| | | 1 | Force disable 5.2GHz | |
| 2 | 5.8GHz | 0 | Controlled by NIC | 0 |
| | | 1 | Force disable 5.8GHz | |
| 3 | 6.2GHz | 0 | Controlled by NIC | 0 |
| | | 1 | Force disable 6.2GHz | |
| 31:4 | Reserved | | NA | 0 |
The implementation follows document 559910 Intel Connectivity
Platforms BIOS Guideline revision 9.2 specification.
BUG=b:346600091
TEST=BBSM method is added to the bluetooth companion device and
return the data supplied by the SAR binary blob
Change-Id: Iebe95815c944d045f4cf686abcd1874a8a45e230
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84944
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
This commit is contained in:
parent
67dff1b2b1
commit
e9b36b03ce
3 changed files with 53 additions and 1 deletions
|
|
@ -771,6 +771,41 @@ static void sar_emit_bdcm(const struct bdcm_profile *bdcm)
|
|||
acpigen_write_package_end();
|
||||
}
|
||||
|
||||
static void sar_emit_bbsm(const struct bbsm_profile *bbsm)
|
||||
{
|
||||
if (bbsm == NULL)
|
||||
return;
|
||||
|
||||
/*
|
||||
* Name ("BBSM", Package () {
|
||||
* Revision,
|
||||
* Package () {
|
||||
* Domain Type, // 0x12:Bluetooth
|
||||
* Bluetooth Bands Selection
|
||||
* }
|
||||
* })
|
||||
*/
|
||||
if (bbsm->revision != BBSM_REVISION) {
|
||||
printk(BIOS_ERR, "Unsupported BBSM table revision: %d\n",
|
||||
bbsm->revision);
|
||||
return;
|
||||
}
|
||||
|
||||
acpigen_write_name("BBSM");
|
||||
acpigen_write_package(2);
|
||||
acpigen_write_dword(bbsm->revision);
|
||||
|
||||
/*
|
||||
* Emit 'Domain Type' + 'Bluetooth Bands Selection'
|
||||
*/
|
||||
acpigen_write_package(2);
|
||||
acpigen_write_dword(DOMAIN_TYPE_BLUETOOTH);
|
||||
acpigen_write_dword(bbsm->bands_selection);
|
||||
|
||||
acpigen_write_package_end();
|
||||
acpigen_write_package_end();
|
||||
}
|
||||
|
||||
static void emit_wifi_sar_acpi_structures(const struct device *dev,
|
||||
union wifi_sar_limits *sar_limits)
|
||||
{
|
||||
|
|
@ -906,6 +941,7 @@ static void wifi_ssdt_write_properties(const struct device *dev, const char *sco
|
|||
sar_emit_bpag(sar_limits.bpag);
|
||||
sar_emit_bbfb(sar_limits.bbfb);
|
||||
sar_emit_bdcm(sar_limits.bdcm);
|
||||
sar_emit_bbsm(sar_limits.bbsm);
|
||||
acpigen_write_scope_end();
|
||||
} else {
|
||||
printk(BIOS_ERR, "Failed to get %s Bluetooth companion ACPI path\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue