diff options
author | Subrata Banik <subratabanik@google.com> | 2023-08-25 11:07:29 +0530 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2023-08-26 21:16:45 +0000 |
commit | 0c602b614dae135dda1c8860cfc1b69b78d3bf22 (patch) | |
tree | 3a1b4a02dfbbca9b0242c50dc65b1b1f4d081121 /src/mainboard | |
parent | 09202cce26fdd2796688ae6bf5b746ecaf2b07d2 (diff) | |
download | coreboot-0c602b614dae135dda1c8860cfc1b69b78d3bf22.tar.gz coreboot-0c602b614dae135dda1c8860cfc1b69b78d3bf22.tar.bz2 coreboot-0c602b614dae135dda1c8860cfc1b69b78d3bf22.zip |
mb/google/rex/var/rex0: Use FW_CONFIG to select the correct SAR table
This patch changes the SAR table selection logic to use FW_CONFIG which
will eventually help to support different WiFi SAR tables.
TEST=Able to build and boot google/rex.
Change-Id: I8f1244e3c3715bc3fbe6be1ade87817ff19836de
Signed-off-by: YH Lin <yueherngl@google.com>
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77428
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/google/rex/Kconfig | 1 | ||||
-rw-r--r-- | src/mainboard/google/rex/variants/rex0/variant.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/mainboard/google/rex/Kconfig b/src/mainboard/google/rex/Kconfig index ceab29eb9129..8d89d2b92d63 100644 --- a/src/mainboard/google/rex/Kconfig +++ b/src/mainboard/google/rex/Kconfig @@ -48,6 +48,7 @@ config BOARD_GOOGLE_BASEBOARD_REX 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_INTEL_ISH diff --git a/src/mainboard/google/rex/variants/rex0/variant.c b/src/mainboard/google/rex/variants/rex0/variant.c index 6641d4b92025..2441f96cfd37 100644 --- a/src/mainboard/google/rex/variants/rex0/variant.c +++ b/src/mainboard/google/rex/variants/rex0/variant.c @@ -12,7 +12,7 @@ const char *get_wifi_sar_cbfs_filename(void) { - return "wifi_sar_0.hex"; + return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI)); } void variant_generate_s0ix_hook(enum s0ix_entry entry) |