Morris Hsu has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/77242?usp=email )
Change subject: mb/google/brask/var/constitution: Separate wifi sar table ......................................................................
mb/google/brask/var/constitution: Separate wifi sar table
Separate constitution and intrepid wifi sar table in variant.c
BUG=b:291859402 BRANCH=firmware-brya-14505.B TEST=emerge-constitution coreboot chromeos-bootimage
Change-Id: I0f89b3d5f5252a2b55bad4d91ad4ab9ec7519c50 --- M src/mainboard/google/brya/variants/constitution/variant.c 1 file changed, 14 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/42/77242/1
diff --git a/src/mainboard/google/brya/variants/constitution/variant.c b/src/mainboard/google/brya/variants/constitution/variant.c index 6a79780..648e7d9 100644 --- a/src/mainboard/google/brya/variants/constitution/variant.c +++ b/src/mainboard/google/brya/variants/constitution/variant.c @@ -1,8 +1,21 @@ /* SPDX-License-Identifier: GPL-2.0-only */
#include <sar.h> +#include <ec/google/chromeec/ec.h> + +enum{ + CONSTITUTION_SKU_ID=0X0, +};
const char *get_wifi_sar_cbfs_filename(void) { - return "wifi_sar_0.hex"; + uint32_t sku_id = google_chromeec_get_board_sku(); + if(sku_id==CONSTITUTION_SKU_ID) + { + return "wifi_sar_0.hex"; + } + else + { + return NULL; + } }