diff options
author | Daniel_Peng <Daniel_Peng@pegatron.corp-partner.google.com> | 2024-04-09 15:01:12 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-04-25 14:53:08 +0000 |
commit | 348d3b6327fab84a79a3245e06d8c8e0302af88b (patch) | |
tree | 8493b58e75d469bb28ee5881a16a4bfab94ef6f9 | |
parent | 506c4edab53cc3876e3721c2bd045b6e1d15fc60 (diff) |
mb/google/nissa/var/glassway: Enable Wi-Fi sar table for Intel module
1.Enable CHROMEOS_WIFI_SAR flag to load a SAR table for Intel module.
2.Describe the FW_CONFIG probe for the settings on glassway.
- WIFI_SAR_0 for Intel Wi-Fi module AX211
BUG=336051631
BRANCH=firmware-nissa-15217.B
TEST=emerge-nissa coreboot chromeos-bootimage
Change-Id: I9e43081c93ef17291c5d55cf262a0f4d1497447b
Signed-off-by: Daniel_Peng <Daniel_Peng@pegatron.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81781
Reviewed-by: Daniel Peng <daniel_peng@pegatron.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <ericllai@google.com>
4 files changed, 16 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/Kconfig b/src/mainboard/google/brya/Kconfig index 1e10d40354..66839d161c 100644 --- a/src/mainboard/google/brya/Kconfig +++ b/src/mainboard/google/brya/Kconfig @@ -262,6 +262,7 @@ config BOARD_GOOGLE_GLASSWAY select DRIVERS_GENERIC_GPIO_KEYS select DRIVERS_GENESYSLOGIC_GL9750 select EC_GOOGLE_CHROMEEC_INCLUDE_SSFC_IN_FW_CONFIG + select CHROMEOS_WIFI_SAR if CHROMEOS config BOARD_GOOGLE_GOTHRAX select BOARD_GOOGLE_BASEBOARD_NISSA diff --git a/src/mainboard/google/brya/variants/glassway/Makefile.mk b/src/mainboard/google/brya/variants/glassway/Makefile.mk index d38141ca24..102307a6ca 100644 --- a/src/mainboard/google/brya/variants/glassway/Makefile.mk +++ b/src/mainboard/google/brya/variants/glassway/Makefile.mk @@ -4,3 +4,4 @@ bootblock-y += gpio.c romstage-y += gpio.c ramstage-y += gpio.c +ramstage-y += variant.c diff --git a/src/mainboard/google/brya/variants/glassway/overridetree.cb b/src/mainboard/google/brya/variants/glassway/overridetree.cb index 64c8ee067a..0db85b5575 100644 --- a/src/mainboard/google/brya/variants/glassway/overridetree.cb +++ b/src/mainboard/google/brya/variants/glassway/overridetree.cb @@ -13,6 +13,9 @@ fw_config option SD_ABSENT 0 option SD_GL9750S 1 end + field WIFI_SAR_ID 10 12 + option WIFI_SAR_ID_0 0 + end field TOUCHSCREEN_SOURCE 32 33 option TOUCHSCREEN_UNPROVISIONED 0 option TOUCHSCREEN_ELAN0001 1 diff --git a/src/mainboard/google/brya/variants/glassway/variant.c b/src/mainboard/google/brya/variants/glassway/variant.c new file mode 100644 index 0000000000..906d9aa0e4 --- /dev/null +++ b/src/mainboard/google/brya/variants/glassway/variant.c @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <baseboard/variants.h> +#include <chip.h> +#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)); +} |