From 23073b2753cce923e2dda3a13f045dbd969174de Mon Sep 17 00:00:00 2001 From: David Wu Date: Fri, 23 Aug 2024 09:27:28 +0800 Subject: mb/google/nissa/var/nivviks: enable WIFI_SAR Add get_wifi_sar_cbfs_filename(). This function uses the FW_CONFIG for WIFI_CATEGORY 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:345596420 TEST=emerge-nissa coreboot chromeos-bootimage Cq-Depend: chrome-internal:7607427 Change-Id: If8339a2a1d32d3e885ef87ea2ec2847f107f1fbd Signed-off-by: David Wu Reviewed-on: https://review.coreboot.org/c/coreboot/+/84051 Reviewed-by: Subrata Banik Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- src/mainboard/google/brya/variants/nivviks/Makefile.mk | 1 + src/mainboard/google/brya/variants/nivviks/variant.c | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 src/mainboard/google/brya/variants/nivviks/variant.c (limited to 'src/mainboard/google/brya/variants') diff --git a/src/mainboard/google/brya/variants/nivviks/Makefile.mk b/src/mainboard/google/brya/variants/nivviks/Makefile.mk index 4e128435f7..4578e25f24 100644 --- a/src/mainboard/google/brya/variants/nivviks/Makefile.mk +++ b/src/mainboard/google/brya/variants/nivviks/Makefile.mk @@ -5,4 +5,5 @@ romstage-y += gpio.c romstage-y += memory.c ramstage-$(CONFIG_FW_CONFIG) += fw_config.c +ramstage-$(CONFIG_FW_CONFIG) += variant.c ramstage-y += gpio.c diff --git a/src/mainboard/google/brya/variants/nivviks/variant.c b/src/mainboard/google/brya/variants/nivviks/variant.c new file mode 100644 index 0000000000..94809ae78a --- /dev/null +++ b/src/mainboard/google/brya/variants/nivviks/variant.c @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include +#include + +const char *get_wifi_sar_cbfs_filename(void) +{ + return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI_CATEGORY)); +} -- cgit v1.2.3