From 76a16f8e8a3a0b8cb32a6ef3063ac071d41c487c Mon Sep 17 00:00:00 2001 From: YH Lin Date: Wed, 25 Sep 2024 20:58:44 +0000 Subject: mb/google/fatcat/var/fatcat: add support for wifi sar table Add wifi sar table support for fatcat. Bit 4-5 in CBI/FW_CONFIG is used to select different sar table (index 0 to 3). BUG=b:348678529 TEST=emerge-fatcat coreboot chromeos-bootimage Change-Id: I2d82f76d7c11378ee5c221a6b9621b4cba83720d Signed-off-by: YH Lin Reviewed-on: https://review.coreboot.org/c/coreboot/+/84556 Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik Reviewed-by: Pranava Y N --- src/mainboard/google/fatcat/variants/fatcat/Makefile.mk | 1 + src/mainboard/google/fatcat/variants/fatcat/variant.c | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 src/mainboard/google/fatcat/variants/fatcat/variant.c (limited to 'src/mainboard/google/fatcat/variants') diff --git a/src/mainboard/google/fatcat/variants/fatcat/Makefile.mk b/src/mainboard/google/fatcat/variants/fatcat/Makefile.mk index 4c33dad4db..88986e4814 100644 --- a/src/mainboard/google/fatcat/variants/fatcat/Makefile.mk +++ b/src/mainboard/google/fatcat/variants/fatcat/Makefile.mk @@ -4,3 +4,4 @@ bootblock-y += gpio.c romstage-y += gpio.c romstage-y += memory.c ramstage-y += gpio.c +ramstage-y += variant.c diff --git a/src/mainboard/google/fatcat/variants/fatcat/variant.c b/src/mainboard/google/fatcat/variants/fatcat/variant.c new file mode 100644 index 0000000000..8893753a9a --- /dev/null +++ b/src/mainboard/google/fatcat/variants/fatcat/variant.c @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include +#include +#include +#include + +const char *get_wifi_sar_cbfs_filename(void) +{ + return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI)); +} -- cgit v1.2.3