diff options
-rw-r--r-- | src/mainboard/google/brya/Kconfig.name | 1 | ||||
-rw-r--r-- | src/mainboard/google/brya/variants/pujjo/overridetree.cb | 5 | ||||
-rw-r--r-- | src/mainboard/google/brya/variants/pujjo/variant.c | 22 |
3 files changed, 28 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/Kconfig.name b/src/mainboard/google/brya/Kconfig.name index 48e511df0c..e141933091 100644 --- a/src/mainboard/google/brya/Kconfig.name +++ b/src/mainboard/google/brya/Kconfig.name @@ -264,6 +264,7 @@ config BOARD_GOOGLE_PUJJO select DRIVERS_I2C_SX9324 select DRIVERS_I2C_SX9324_SUPPORT_LEGACY_LINUX_DRIVER select HAVE_WWAN_POWER_SEQUENCE + select CHROMEOS_WIFI_SAR if CHROMEOS config BOARD_GOOGLE_XIVU bool "-> Xivu" diff --git a/src/mainboard/google/brya/variants/pujjo/overridetree.cb b/src/mainboard/google/brya/variants/pujjo/overridetree.cb index acba86ee7d..ade32f0ad3 100644 --- a/src/mainboard/google/brya/variants/pujjo/overridetree.cb +++ b/src/mainboard/google/brya/variants/pujjo/overridetree.cb @@ -30,6 +30,11 @@ fw_config option EXT_VR_PRESENT 0 option EXT_VR_ABSENT 1 end + field WIFI_SAR_ID 16 17 + option WIFI_SAR_TABLE_0 0 + option WIFI_SAR_TABLE_1 1 + option WIFI_SAR_TABLE_2 2 + end end diff --git a/src/mainboard/google/brya/variants/pujjo/variant.c b/src/mainboard/google/brya/variants/pujjo/variant.c index a09bba90f8..75eb0c24a0 100644 --- a/src/mainboard/google/brya/variants/pujjo/variant.c +++ b/src/mainboard/google/brya/variants/pujjo/variant.c @@ -2,6 +2,7 @@ #include <fw_config.h> #include <baseboard/variants.h> +#include <sar.h> void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config) { @@ -31,3 +32,24 @@ void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config) config->ext_fivr_settings.vnn_icc_max_ma = 500; } } + +const char *get_wifi_sar_cbfs_filename(void) +{ + if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, WIFI_SAR_TABLE_0))) { + printk(BIOS_INFO, "Use wifi_sar_0.hex.\n"); + return "wifi_sar_0.hex"; + } + + else if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, WIFI_SAR_TABLE_1))) { + printk(BIOS_INFO, "Use wifi_sar_1.hex.\n"); + return "wifi_sar_1.hex"; + } + + else if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, WIFI_SAR_TABLE_2))) { + printk(BIOS_INFO, "Use wifi_sar_2.hex.\n"); + return "wifi_sar_2.hex"; + } + + printk(BIOS_INFO, "Intel Wi-Fi SAR not used, return NULL!\n"); + return NULL; +} |