Shon Wang has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/75673?usp=email )
Change subject: mb/google/nissa/var/yavilla: Enable wifi SAR ......................................................................
mb/google/nissa/var/yavilla: Enable wifi SAR
Enable wifi sar function for yavilla/yavilly/yavijo. Use the fw_config to separate SAR setting for different wifi card.
BUG=b:273791621 BRANCH=firmware-nissa-15217.B TEST=build, enabled iwlwifi debug, and check dmesg
Change-Id: I1bd111a734a250df49535a07ef056d5b68fccb33 Signed-off-by: Shon Wang shon.wang@quanta.corp-partner.google.com --- M src/mainboard/google/brya/Kconfig.name M src/mainboard/google/brya/variants/yavilla/overridetree.cb M src/mainboard/google/brya/variants/yavilla/variant.c 3 files changed, 16 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/73/75673/1
diff --git a/src/mainboard/google/brya/Kconfig.name b/src/mainboard/google/brya/Kconfig.name index 0e32761..0744bd7 100644 --- a/src/mainboard/google/brya/Kconfig.name +++ b/src/mainboard/google/brya/Kconfig.name @@ -375,6 +375,7 @@ select DRIVERS_GENERIC_GPIO_KEYS select DRIVERS_INTEL_MIPI_CAMERA select HAVE_WWAN_POWER_SEQUENCE + select CHROMEOS_WIFI_SAR if CHROMEOS
config BOARD_GOOGLE_GOTHRAX bool "-> Gothrax" diff --git a/src/mainboard/google/brya/variants/yavilla/overridetree.cb b/src/mainboard/google/brya/variants/yavilla/overridetree.cb index 447121b..08439f9 100644 --- a/src/mainboard/google/brya/variants/yavilla/overridetree.cb +++ b/src/mainboard/google/brya/variants/yavilla/overridetree.cb @@ -28,6 +28,15 @@ option MB_1C 0 option MB_1C_2A 1 end + field WIFI_SAR_ID2 16 18 + option INTEL_YAVILLA_LTE 0 + option INTEL_YAVILLA_WIFI 1 + option INTEL_YAVILLY_LTE 2 + option INTEL_YAVILLY_WIFI 3 + option INTEL_YAVIJO_LTE 4 + option INTEL_YAVIJO_WIFI 5 + option UNUSED 7 + end end
chip soc/intel/alderlake diff --git a/src/mainboard/google/brya/variants/yavilla/variant.c b/src/mainboard/google/brya/variants/yavilla/variant.c index 60a7c79..9140eb0 100644 --- a/src/mainboard/google/brya/variants/yavilla/variant.c +++ b/src/mainboard/google/brya/variants/yavilla/variant.c @@ -4,6 +4,7 @@ #include <boardid.h> #include <device/device.h> #include <fw_config.h> +#include <sar.h>
void variant_devtree_update(void) { @@ -27,3 +28,8 @@ ish->enabled = 0; } } + +const char *get_wifi_sar_cbfs_filename(void) +{ + return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI_SAR_ID2)); +}