From 4cd75854ce57b6f279d6f09ba468b3cee0153f39 Mon Sep 17 00:00:00 2001 From: Leo Chou Date: Tue, 11 Jun 2024 17:23:51 +0800 Subject: [PATCH] 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/83044 Reviewed-by: Subrata Banik Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai --- src/mainboard/google/brya/Kconfig | 1 + src/mainboard/google/brya/variants/sundance/Makefile.mk | 1 + .../google/brya/variants/sundance/overridetree.cb | 3 +++ src/mainboard/google/brya/variants/sundance/variant.c | 9 +++++++++ 4 files changed, 14 insertions(+) create mode 100644 src/mainboard/google/brya/variants/sundance/variant.c diff --git a/src/mainboard/google/brya/Kconfig b/src/mainboard/google/brya/Kconfig index 37897165f7..e89192412a 100644 --- a/src/mainboard/google/brya/Kconfig +++ b/src/mainboard/google/brya/Kconfig @@ -413,6 +413,7 @@ config BOARD_GOOGLE_PUJJO config BOARD_GOOGLE_SUNDANCE select BOARD_GOOGLE_BASEBOARD_NISSA + select CHROMEOS_WIFI_SAR if CHROMEOS select DRIVERS_GENERIC_GPIO_KEYS select HAVE_WWAN_POWER_SEQUENCE 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 +#include + +const char *get_wifi_sar_cbfs_filename(void) +{ + return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI_SAR_ID)); +}