wifi: Add support for new revisions of SAR table entries

Hardware / Coreboot - Sugnan Prabhu S [intel.com] - 2 September 2021 22:53 UTC

Existing SAR infrastructure supports only revision 0 of the SAR tables. This patch modifies it to extend support for intel wifi 6 and wifi 6e configurations as per the connectivity document: 559910_Intel_Connectivity_Platforms_BIOS_Guidelines_Rev6_4.pdf

The SAR table and WGDS configuration block sizes were static in the legacy SAR file format. Following is the format of the new binary file.

+------------------------------------------------------------+ | Field | Size | Description | +------------------------------------------------------------+ | Marker | 4 bytes | "$SAR" | +------------------------------------------------------------+ | Version | 1 byte | Current version = 1 | +------------------------------------------------------------+ | SAR table | 2 bytes | Offset of SAR table from start of | | offset | | the header | +------------------------------------------------------------+ | WGDS | 2 bytes | Offset of WGDS table from start of | | offset | | the header | +------------------------------------------------------------+ | Data | n bytes | Data for the different tables | +------------------------------------------------------------+

This change supports both the legacy and the new format of SAR file

BUG=b:193665559 TEST=Checked the SSDT entries for WRDS, EWRD and WGDS with different binaries generated by setting different versions in the config.star

Change-Id: I08c3f321938eba04e8bcff4d87cb215422715bb2

fcb4f2d77e wifi: Add support for new revisions of SAR table entries
src/drivers/wifi/generic/acpi.c | 215 ++++++++++++++++++++----------
src/include/sar.h | 64 +++++----
src/vendorcode/google/chromeos/sar.c | 244 +++++++++++++++++++++++++++++------
3 files changed, 386 insertions(+), 137 deletions(-)

Upstream: review.coreboot.org


  • Share