diff options
author | Zhuohao Lee <zhuohao@chromium.org> | 2021-03-11 12:07:57 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-03-15 06:10:44 +0000 |
commit | e6f12d0d5025e276b9022ee2ff9a6d4d195029e8 (patch) | |
tree | 189b16a235ee2d164bfd709f2ab3d73e65d2e4ca /src/mainboard/google/poppy/variants | |
parent | 9e16ca9decf6f61ce7aaa1f325e07ebd84923cb2 (diff) |
rammus: get cbfs sar table name based on the sku id
This patch overrides the get_wifi_sar_cbfs_filename()
to return different sar table according to the sku id.
BUG=b:173465272
TEST=checked bios log and the correct sar table was loaded.
Change-Id: Ia30d760b1a029197d470818c73bfd2c00514652d
Signed-off-by: Zhuohao Lee <zhuohao@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51413
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/google/poppy/variants')
-rw-r--r-- | src/mainboard/google/poppy/variants/rammus/mainboard.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mainboard/google/poppy/variants/rammus/mainboard.c b/src/mainboard/google/poppy/variants/rammus/mainboard.c index 66e252739c..8c09b2a57e 100644 --- a/src/mainboard/google/poppy/variants/rammus/mainboard.c +++ b/src/mainboard/google/poppy/variants/rammus/mainboard.c @@ -4,6 +4,7 @@ #include <ec/google/chromeec/ec.h> #include <smbios.h> #include <string.h> +#include <sar.h> #define SKU_UNKNOWN 0xFFFFFFFF @@ -29,3 +30,17 @@ const char *smbios_system_sku(void) return sku_str; } + +const char *get_wifi_sar_cbfs_filename(void) +{ + const char *filename = NULL; + uint32_t sku_id; + + sku_id = variant_board_sku(); + if (sku_id & 0x200) + filename = "wifi_sar-shyvana.hex"; + else + filename = "wifi_sar-leona.hex"; + + return filename; +} |