diff options
author | YH Lin <yueherngl@google.com> | 2023-08-31 09:41:31 -0700 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2023-09-02 16:22:07 +0000 |
commit | fd6908a748ad00aa6557e08309b9aad9abcdceb2 (patch) | |
tree | e9088a4bd2d987d004a43aa51a6e7bdbba8f97df | |
parent | f03a6ef1131a4f758f8bfa8aabea345e36ceb5bd (diff) |
mb/google/rex/var/screebo: add hook for WiFi SAR table
As a preparation for WiFi SAR table addition, adding hook for it.
BUG=b:291155207
TEST=emerge-rex coreboot
Change-Id: Ia313cfddec278e6bf8498407b242c027a5891deb
Signed-off-by: YH Lin <yueherngl@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77598
Reviewed-by: Subrata Banik <subratabanik@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r-- | src/mainboard/google/rex/Kconfig | 1 | ||||
-rw-r--r-- | src/mainboard/google/rex/variants/screebo/overridetree.cb | 4 | ||||
-rw-r--r-- | src/mainboard/google/rex/variants/screebo/variant.c | 6 |
3 files changed, 11 insertions, 0 deletions
diff --git a/src/mainboard/google/rex/Kconfig b/src/mainboard/google/rex/Kconfig index 78dc780ca9..b289408633 100644 --- a/src/mainboard/google/rex/Kconfig +++ b/src/mainboard/google/rex/Kconfig @@ -64,6 +64,7 @@ config BOARD_GOOGLE_MODEL_REX_EC_ISH 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/screebo/overridetree.cb b/src/mainboard/google/rex/variants/screebo/overridetree.cb index 6878ac600c..772ba9c508 100644 --- a/src/mainboard/google/rex/variants/screebo/overridetree.cb +++ b/src/mainboard/google/rex/variants/screebo/overridetree.cb @@ -26,6 +26,10 @@ fw_config option SD_GL9750 0 option SD_RTS5227S 1 end + field WIFI_SAR_ID 13 + option WIFI_SAR_ID_0 0 + option WIFI_SAR_ID_1 1 + end end chip soc/intel/meteorlake diff --git a/src/mainboard/google/rex/variants/screebo/variant.c b/src/mainboard/google/rex/variants/screebo/variant.c index 4044fd4025..4ea659863e 100644 --- a/src/mainboard/google/rex/variants/screebo/variant.c +++ b/src/mainboard/google/rex/variants/screebo/variant.c @@ -3,6 +3,12 @@ #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_SAR_ID)); +} void variant_update_soc_chip_config(struct soc_intel_meteorlake_config *config) { |