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>
This commit is contained in:
Leo Chou
2024-05-30 15:54:11 +08:00
committed by Felix Held
parent 6fa1847923
commit b0692f65b6
4 changed files with 15 additions and 0 deletions

View File

@@ -418,6 +418,7 @@ config BOARD_GOOGLE_SUNDANCE
config BOARD_GOOGLE_PUJJOGA config BOARD_GOOGLE_PUJJOGA
select BOARD_GOOGLE_BASEBOARD_NISSA select BOARD_GOOGLE_BASEBOARD_NISSA
select DRIVERS_GENERIC_GPIO_KEYS select DRIVERS_GENERIC_GPIO_KEYS
select CHROMEOS_WIFI_SAR if CHROMEOS
config BOARD_GOOGLE_QUANDISO config BOARD_GOOGLE_QUANDISO
select BOARD_GOOGLE_BASEBOARD_NISSA select BOARD_GOOGLE_BASEBOARD_NISSA

View File

@@ -4,4 +4,5 @@ bootblock-y += gpio.c
romstage-y += gpio.c romstage-y += gpio.c
ramstage-$(CONFIG_FW_CONFIG) += fw_config.c ramstage-$(CONFIG_FW_CONFIG) += fw_config.c
ramstage-y += variant.c
ramstage-y += gpio.c ramstage-y += gpio.c

View File

@@ -4,6 +4,10 @@ fw_config
option LTE_PRESENT 1 option LTE_PRESENT 1
option 5G_PRESENT 2 option 5G_PRESENT 2
end end
field WIFI_SAR_ID 13 16
option WIFI_SAR_TABLE_AX211 0
option WIFI_SAR_TABLE_AX203 1
end
end end
chip soc/intel/alderlake chip soc/intel/alderlake

View File

@@ -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));
}