diff options
author | YH Lin <yueherngl@google.com> | 2024-09-25 20:58:44 +0000 |
---|---|---|
committer | Subrata Banik <subratabanik@google.com> | 2024-09-27 21:10:00 +0000 |
commit | 76a16f8e8a3a0b8cb32a6ef3063ac071d41c487c (patch) | |
tree | 1069bbc391507a7854f653a07f8b10055ebeec50 /src | |
parent | 2a3b9b2ad5849fa3980196f8733548b8976d804a (diff) |
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 <yueherngl@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84556
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Pranava Y N <pranavayn@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/fatcat/Kconfig | 11 | ||||
-rw-r--r-- | src/mainboard/google/fatcat/variants/fatcat/Makefile.mk | 1 | ||||
-rw-r--r-- | src/mainboard/google/fatcat/variants/fatcat/variant.c | 11 |
3 files changed, 23 insertions, 0 deletions
diff --git a/src/mainboard/google/fatcat/Kconfig b/src/mainboard/google/fatcat/Kconfig index 42c4063078..cf4233a0d3 100644 --- a/src/mainboard/google/fatcat/Kconfig +++ b/src/mainboard/google/fatcat/Kconfig @@ -8,6 +8,8 @@ config BOARD_GOOGLE_FATCAT_COMMON select EC_GOOGLE_CHROMEEC_BOARDID select EC_GOOGLE_CHROMEEC_ESPI select EC_GOOGLE_CHROMEEC_SKUID + select FW_CONFIG + select FW_CONFIG_SOURCE_CHROMEEC_CBI select GOOGLE_SMBIOS_MAINBOARD_VERSION select HAVE_ACPI_TABLES select I2C_TPM @@ -25,6 +27,7 @@ config BOARD_GOOGLE_FATCAT_COMMON config BOARD_GOOGLE_BASEBOARD_FATCAT def_bool n select BOARD_GOOGLE_FATCAT_COMMON + select CHROMEOS_WIFI_SAR if CHROMEOS select HAVE_SLP_S0_GATE select MAINBOARD_HAS_CHROMEOS select MEMORY_SOLDERDOWN @@ -55,6 +58,14 @@ config CHROMEOS select GBB_FLAG_FORCE_MANUAL_RECOVERY select HAS_RECOVERY_MRC_CACHE +config CHROMEOS_WIFI_SAR + bool "Enable SAR options for ChromeOS build" + depends on CHROMEOS + select DSAR_ENABLE + select GEO_SAR_ENABLE + select SAR_ENABLE + select USE_SAR + config DEVICETREE default "variants/baseboard/\$(CONFIG_BASEBOARD_DIR)/devicetree.cb" 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 <acpi/acpigen.h> +#include <baseboard/variants.h> +#include <fw_config.h> +#include <sar.h> + +const char *get_wifi_sar_cbfs_filename(void) +{ + return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI)); +} |