summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Chou <leo.chou@lcfc.corp-partner.google.com>2024-05-30 15:54:11 +0800
committerFelix Held <felix-coreboot@felixheld.de>2024-06-07 18:39:16 +0000
commitb0692f65b6513592b5792125493b2848ce6e642a (patch)
tree6752852debe1b268835da1a29ca00e8dbfdf53e3
parent6fa18479236f39f86e63b7cc106230ccbaf4aa17 (diff)
mb/google/nissa/var/pujjoga: Add wifi sar table
Add AX211 and AX203 wifi sar table for pujjoga wifi sar config. Use fw_config to separate different wifi card settings. WIFI_SAR_TABLE_AX211: 0 WIFI_SAR_TABLE_AX203: 1 BUG=b:336167281 Test=emerge-nissa coreboot Change-Id: If0f542cb13e93e99960bf65d616b26cee7617a43 Signed-off-by: Leo Chou <leo.chou@lcfc.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/82702 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <ericllai@google.com> Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
-rw-r--r--src/mainboard/google/brya/Kconfig1
-rw-r--r--src/mainboard/google/brya/variants/pujjoga/Makefile.mk1
-rw-r--r--src/mainboard/google/brya/variants/pujjoga/overridetree.cb4
-rw-r--r--src/mainboard/google/brya/variants/pujjoga/variant.c9
4 files changed, 15 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/Kconfig b/src/mainboard/google/brya/Kconfig
index 17facbc17e..a1ae043cac 100644
--- a/src/mainboard/google/brya/Kconfig
+++ b/src/mainboard/google/brya/Kconfig
@@ -418,6 +418,7 @@ config BOARD_GOOGLE_SUNDANCE
config BOARD_GOOGLE_PUJJOGA
select BOARD_GOOGLE_BASEBOARD_NISSA
select DRIVERS_GENERIC_GPIO_KEYS
+ select CHROMEOS_WIFI_SAR if CHROMEOS
config BOARD_GOOGLE_QUANDISO
select BOARD_GOOGLE_BASEBOARD_NISSA
diff --git a/src/mainboard/google/brya/variants/pujjoga/Makefile.mk b/src/mainboard/google/brya/variants/pujjoga/Makefile.mk
index 8ae0e3b61c..e04a887191 100644
--- a/src/mainboard/google/brya/variants/pujjoga/Makefile.mk
+++ b/src/mainboard/google/brya/variants/pujjoga/Makefile.mk
@@ -4,4 +4,5 @@ bootblock-y += gpio.c
romstage-y += gpio.c
ramstage-$(CONFIG_FW_CONFIG) += fw_config.c
+ramstage-y += variant.c
ramstage-y += gpio.c
diff --git a/src/mainboard/google/brya/variants/pujjoga/overridetree.cb b/src/mainboard/google/brya/variants/pujjoga/overridetree.cb
index 26eb32a866..a8b9a7eaa7 100644
--- a/src/mainboard/google/brya/variants/pujjoga/overridetree.cb
+++ b/src/mainboard/google/brya/variants/pujjoga/overridetree.cb
@@ -4,6 +4,10 @@ fw_config
option LTE_PRESENT 1
option 5G_PRESENT 2
end
+ field WIFI_SAR_ID 13 16
+ option WIFI_SAR_TABLE_AX211 0
+ option WIFI_SAR_TABLE_AX203 1
+ end
end
chip soc/intel/alderlake
diff --git a/src/mainboard/google/brya/variants/pujjoga/variant.c b/src/mainboard/google/brya/variants/pujjoga/variant.c
new file mode 100644
index 0000000000..c4a6face5b
--- /dev/null
+++ b/src/mainboard/google/brya/variants/pujjoga/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));
+}