summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/google/brya/Kconfig1
-rw-r--r--src/mainboard/google/brya/variants/marasov/overridetree.cb4
-rw-r--r--src/mainboard/google/brya/variants/marasov/variant.c14
3 files changed, 19 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/Kconfig b/src/mainboard/google/brya/Kconfig
index 683f91701d..b06d772450 100644
--- a/src/mainboard/google/brya/Kconfig
+++ b/src/mainboard/google/brya/Kconfig
@@ -269,6 +269,7 @@ config BOARD_GOOGLE_LISBON
config BOARD_GOOGLE_MARASOV
select BOARD_GOOGLE_BASEBOARD_BRYA
+ select CHROMEOS_WIFI_SAR if CHROMEOS
select DRIVERS_INTEL_ISH
select SOC_INTEL_RAPTORLAKE
select USE_UNIFIED_AP_FIRMWARE_FOR_UFS_AND_NON_UFS
diff --git a/src/mainboard/google/brya/variants/marasov/overridetree.cb b/src/mainboard/google/brya/variants/marasov/overridetree.cb
index 311971f0ba..a8c1c06152 100644
--- a/src/mainboard/google/brya/variants/marasov/overridetree.cb
+++ b/src/mainboard/google/brya/variants/marasov/overridetree.cb
@@ -16,6 +16,10 @@ fw_config
option TOUCH_NONE 0
option TOUCH_ELAN0001 1
end
+ field WIFI_SAR_ID 6 7
+ option WIFI_SAR_ID_0 0
+ option WIFI_SAR_ID_1 1
+ end
field STORAGE 30 31
option STORAGE_UNKNOWN 0
option STORAGE_NVME 1
diff --git a/src/mainboard/google/brya/variants/marasov/variant.c b/src/mainboard/google/brya/variants/marasov/variant.c
index dad8a3c03b..5f3894d35c 100644
--- a/src/mainboard/google/brya/variants/marasov/variant.c
+++ b/src/mainboard/google/brya/variants/marasov/variant.c
@@ -2,8 +2,22 @@
#include <acpi/acpigen.h>
#include <baseboard/variants.h>
+#include <console/console.h>
+#include <fw_config.h>
+#include <sar.h>
#include <variant/gpio.h>
+const char *get_wifi_sar_cbfs_filename(void)
+{
+ if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, WIFI_SAR_ID_1))) {
+ printk(BIOS_INFO, "Use wifi_sar_1.hex for Intel Wi-Fi module AX211NGW.\n");
+ return "wifi_sar_1.hex";
+ }
+
+ printk(BIOS_INFO, "Intel Wi-Fi SAR not used, return NULL!\n");
+ return NULL;
+}
+
void variant_generate_s0ix_hook(enum s0ix_entry entry)
{
/* Add board-specific MS0X entries */