From 7e0f9edd99796871eeb2cd608caf7071d0937063 Mon Sep 17 00:00:00 2001 From: Shelley Chen Date: Thu, 18 Jan 2024 16:14:51 -0800 Subject: mb/google/brox: enable WIFI_SAR Add get_wifi_sar_cbfs_filename(). This function uses the FW_CONFIG for WIFI to choose the right wifi_sar hex file. Below is the file mapping: wifi_sar_0.hex = wifi6 wifi_sar_1.hex = wifi7 BUG=b:319302319 BRANCH=None TEST=emerge-brox coreboot chromeos-bootimage Change-Id: I212c80412141e7770a512bd8ccf4111963bab395 Signed-off-by: Shelley Chen Reviewed-on: https://review.coreboot.org/c/coreboot/+/80085 Reviewed-by: Nick Vaccaro Tested-by: build bot (Jenkins) --- src/mainboard/google/brox/Kconfig | 1 + src/mainboard/google/brox/variants/brox/variant.c | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mainboard/google/brox/Kconfig b/src/mainboard/google/brox/Kconfig index 18a657545c..e6d1f1e5cc 100644 --- a/src/mainboard/google/brox/Kconfig +++ b/src/mainboard/google/brox/Kconfig @@ -53,6 +53,7 @@ config BOARD_GOOGLE_BASEBOARD_BROX config BOARD_GOOGLE_BROX select BOARD_GOOGLE_BASEBOARD_BROX + select CHROMEOS_WIFI_SAR if CHROMEOS if BOARD_GOOGLE_BROX_COMMON diff --git a/src/mainboard/google/brox/variants/brox/variant.c b/src/mainboard/google/brox/variants/brox/variant.c index acb5b66f6c..39162d5bf6 100644 --- a/src/mainboard/google/brox/variants/brox/variant.c +++ b/src/mainboard/google/brox/variants/brox/variant.c @@ -1,9 +1,16 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#include +#include #include #include -#include +#include void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config) { } + +const char *get_wifi_sar_cbfs_filename(void) +{ + return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI)); +} -- cgit v1.2.3