YH Lin has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/78181?usp=email )
Change subject: mb/google/rex/var/karis: add hook for WiFi SAR table ......................................................................
mb/google/rex/var/karis: add hook for WiFi SAR table
In preparation for WiFi SAR table addition by adding hook for it.
BUG=b:290689824 TEST=emerge-rex coreboot
Change-Id: Ic989024ab9eb0fc439fc701c335a85986c4cfec5 Signed-off-by: YH Lin yueherngl@google.com --- M src/mainboard/google/rex/Kconfig M src/mainboard/google/rex/variants/karis/Makefile.inc A src/mainboard/google/rex/variants/karis/variant.c 3 files changed, 13 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/81/78181/1
diff --git a/src/mainboard/google/rex/Kconfig b/src/mainboard/google/rex/Kconfig index e2c730e..2a540d6 100644 --- a/src/mainboard/google/rex/Kconfig +++ b/src/mainboard/google/rex/Kconfig @@ -45,11 +45,11 @@ select SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES select SYSTEM_TYPE_LAPTOP select TPM_GOOGLE_TI50 + select CHROMEOS_WIFI_SAR if CHROMEOS
config BOARD_GOOGLE_MODEL_REX def_bool n select BOARD_GOOGLE_BASEBOARD_REX - select CHROMEOS_WIFI_SAR if CHROMEOS select DRIVERS_GENERIC_MAX98357A select DRIVERS_GENESYSLOGIC_GL9755 select DRIVERS_I2C_SX9324 @@ -68,7 +68,6 @@ config BOARD_GOOGLE_MODEL_SCREEBO def_bool n select BOARD_GOOGLE_BASEBOARD_REX - select CHROMEOS_WIFI_SAR if CHROMEOS select DRIVERS_GENERIC_ALC1015 select DRIVERS_GENESYSLOGIC_GL9750 select DRIVERS_GENESYSLOGIC_GL9750_INVERT_WP diff --git a/src/mainboard/google/rex/variants/karis/Makefile.inc b/src/mainboard/google/rex/variants/karis/Makefile.inc index 2638540..5595937 100644 --- a/src/mainboard/google/rex/variants/karis/Makefile.inc +++ b/src/mainboard/google/rex/variants/karis/Makefile.inc @@ -4,3 +4,4 @@ romstage-y += gpio.c ramstage-$(CONFIG_FW_CONFIG) += fw_config.c ramstage-y += gpio.c +ramstage-y += variant.c diff --git a/src/mainboard/google/rex/variants/karis/variant.c b/src/mainboard/google/rex/variants/karis/variant.c new file mode 100644 index 0000000..27bfbb3 --- /dev/null +++ b/src/mainboard/google/rex/variants/karis/variant.c @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <chip.h> +#include <fw_config.h> +#include <baseboard/variants.h> +#include <sar.h> + +const char *get_wifi_sar_cbfs_filename(void) +{ + return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI_TYPE)); +}