diff options
author | Leo Chou <leo.chou@lcfc.corp-partner.google.com> | 2024-06-11 17:23:51 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-06-12 11:03:00 +0000 |
commit | 4cd75854ce57b6f279d6f09ba468b3cee0153f39 (patch) | |
tree | e9eada20abafe910be5716b9a066d90a10dba32c /src/mainboard/google/brya/variants | |
parent | fdeebb7558d75c288efbec845aa9bdd96aa52381 (diff) |
mb/google/nissa/var/sundance: Add wifi sar table
Add AX211 wifi sar table for sundance wifi sar config.
Use fw_config to separate different wifi card settings.
WIFI_SAR_TABLE_AX211: 0
BUG=b:332978681
Test=emerge-nissa coreboot
Change-Id: Ide84996da567e4f866a2a1309a6976ed8df635a6
Signed-off-by: Leo Chou <leo.chou@lcfc.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/83044
Reviewed-by: Subrata Banik <subratabanik@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <ericllai@google.com>
Diffstat (limited to 'src/mainboard/google/brya/variants')
3 files changed, 13 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/variants/sundance/Makefile.mk b/src/mainboard/google/brya/variants/sundance/Makefile.mk index 8ae0e3b61c..be82373521 100644 --- a/src/mainboard/google/brya/variants/sundance/Makefile.mk +++ b/src/mainboard/google/brya/variants/sundance/Makefile.mk @@ -5,3 +5,4 @@ romstage-y += gpio.c ramstage-$(CONFIG_FW_CONFIG) += fw_config.c ramstage-y += gpio.c +ramstage-y += variant.c diff --git a/src/mainboard/google/brya/variants/sundance/overridetree.cb b/src/mainboard/google/brya/variants/sundance/overridetree.cb index 2c4a63d37b..bd5112fe44 100644 --- a/src/mainboard/google/brya/variants/sundance/overridetree.cb +++ b/src/mainboard/google/brya/variants/sundance/overridetree.cb @@ -3,6 +3,9 @@ fw_config option LTE_ABSENT 0 option LTE_PRESENT 1 end + field WIFI_SAR_ID 12 15 + option WIFI_SAR_TABLE_AX211 0 + end end chip soc/intel/alderlake diff --git a/src/mainboard/google/brya/variants/sundance/variant.c b/src/mainboard/google/brya/variants/sundance/variant.c new file mode 100644 index 0000000000..c4a6face5b --- /dev/null +++ b/src/mainboard/google/brya/variants/sundance/variant.c @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include <fw_config.h> +#include <sar.h> + +const char *get_wifi_sar_cbfs_filename(void) +{ + return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI_SAR_ID)); +} |