Jamie Chen has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/80152?usp=email )
Change subject: mb/google/brya/var/omniknight: Add WIFI SAR table ......................................................................
mb/google/brya/var/omniknight: Add WIFI SAR table
Add WIFI SAR table for omniknight.
BUG=b:320172979 TEST=FW_NAME=omnigul emerge-brya coreboot
Change-Id: I70e79577612b3d5c4dc0f92211f87cbea0532d5d Signed-off-by: jamie_chen jamie_chen@compal.corp-partner.google.com --- M src/mainboard/google/brya/variants/omnigul/overridetree.cb M src/mainboard/google/brya/variants/omnigul/variant.c 2 files changed, 16 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/52/80152/1
diff --git a/src/mainboard/google/brya/variants/omnigul/overridetree.cb b/src/mainboard/google/brya/variants/omnigul/overridetree.cb index 0942299d..3c3a487 100644 --- a/src/mainboard/google/brya/variants/omnigul/overridetree.cb +++ b/src/mainboard/google/brya/variants/omnigul/overridetree.cb @@ -4,6 +4,10 @@ option STORAGE_UFS 1 option STORAGE_NVME 2 end + field WIFI_SAR_TABLE 5 + option OMNIGUL_WIFI_SAR_0 0 + option OMNIKNIGHT_WIFI_SAR_1 1 + end field FINGERPRINT 9 option DISABLE_FP 0 option ENABLE_FP 1 diff --git a/src/mainboard/google/brya/variants/omnigul/variant.c b/src/mainboard/google/brya/variants/omnigul/variant.c index 6a79780..53929a5 100644 --- a/src/mainboard/google/brya/variants/omnigul/variant.c +++ b/src/mainboard/google/brya/variants/omnigul/variant.c @@ -1,8 +1,19 @@ /* SPDX-License-Identifier: GPL-2.0-only */
#include <sar.h> +#include <fw_config.h> +#include <console/console.h>
const char *get_wifi_sar_cbfs_filename(void) { - return "wifi_sar_0.hex"; + if (fw_config_probe(FW_CONFIG(WIFI_SAR_TABLE, OMNIGUL_WIFI_SAR_0))) + { + printk(BIOS_DEBUG, "wifi_sar_0.\n"); + return "wifi_sar_0.hex"; + } + else + { + printk(BIOS_DEBUG, "wifi_sar_1.\n"); + return "wifi_sar_1.hex"; + } }