summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorJeremy Compostella <jeremy.compostella@intel.com>2024-10-28 14:03:29 -0700
committerJérémy Compostella <jeremy.compostella@intel.com>2024-11-27 21:27:53 +0000
commit354cba21a41aa868b7b41804c2859f920d2e1b17 (patch)
tree31e69334fa56cf9150617fa16b4be72ec45ad1ce /src/include
parent8943e40b18911552b28e841394068bed80612829 (diff)
drivers/wifi: Support Bluetooth Per-Platform Antenna Gain
The ACPI BPAG method provide information to controls the antenna gain method to be used per country. The antenna gain mode is a bit field (0 - disabled, 1 -enabled) defined as follow: - Bit 0 - Antenna gain in EU - Bit 1 - Antenna gain in China Mainland The implementation follows document 559910 Intel Connectivity Platforms BIOS Guideline revision 9.2 specification. BUG=b:346600091 TEST=BPAG method is added to the bluetooth companion device and return the data supplied by the SAR binary blob Change-Id: Iebe95815c944d045f4cf686abcd1874a8a45e210 Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84941 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subratabanik@google.com> Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/sar.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/include/sar.h b/src/include/sar.h
index b0274b501a..b9c83c3a05 100644
--- a/src/include/sar.h
+++ b/src/include/sar.h
@@ -9,10 +9,11 @@
#define MAX_DENYLIST_ENTRY 16
#define MAX_DSAR_SET_COUNT 3
#define MAX_GEO_OFFSET_REVISION 3
-#define MAX_PROFILE_COUNT 7
+#define MAX_PROFILE_COUNT 8
#define MAX_SAR_REVISION 2
#define BSAR_REVISION 1
#define WBEM_REVISION 0
+#define BPAG_REVISION 2
#define REVISION_SIZE 1
#define SAR_REV0_CHAINS_COUNT 2
#define SAR_REV0_SUBBANDS_COUNT 5
@@ -81,6 +82,11 @@ struct wbem_profile {
uint32_t bandwidth_320mhz_country_enablement;
} __packed;
+struct bpag_profile {
+ uint8_t revision;
+ uint32_t antenna_gain_country_enablement;
+} __packed;
+
struct sar_header {
char marker[SAR_STR_PREFIX_SIZE];
uint8_t version;
@@ -97,6 +103,7 @@ union wifi_sar_limits {
struct dsm_profile *dsm;
struct bsar_profile *bsar;
struct wbem_profile *wbem;
+ struct bpag_profile *bpag;
};
void *profile[MAX_PROFILE_COUNT];
};