From bfb0f755b9fa0bf25b4575b39db348121431f325 Mon Sep 17 00:00:00 2001 From: Peichao Wang Date: Tue, 10 Mar 2020 18:49:54 +0800 Subject: mb/google/octopus: Add custom SAR values for Foob360 Foob360 would prefer to use different SAR values. Since Foob360 sku id is 9. BUG=b:149362272 BRANCH=octopus TEST=build Signed-off-by: peichao.wang Change-Id: I8cc5d73629990f19d2c1044debdba4990c54d07e Reviewed-on: https://review.coreboot.org/c/coreboot/+/39424 Tested-by: build bot (Jenkins) Reviewed-by: Marco Chen --- src/mainboard/google/octopus/variants/foob/variant.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/mainboard/google/octopus/variants') diff --git a/src/mainboard/google/octopus/variants/foob/variant.c b/src/mainboard/google/octopus/variants/foob/variant.c index 47639f6345..d5d76585d9 100644 --- a/src/mainboard/google/octopus/variants/foob/variant.c +++ b/src/mainboard/google/octopus/variants/foob/variant.c @@ -16,6 +16,7 @@ #include #include #include +#include #define SKU_UNKNOWN 0xFFFFFFFF @@ -34,3 +35,14 @@ void variant_update_devtree(struct device *dev) if (no_touchscreen_sku(sku_id)) touchscreen_i2c_host->enabled = 0; } + +const char *get_wifi_sar_cbfs_filename(void) +{ + const char *filename = NULL; + uint32_t sku_id = SKU_UNKNOWN; + + sku_id = google_chromeec_get_board_sku(); + if (sku_id == 9) + filename = "wifi_sar-foob360.hex"; + return filename; +} -- cgit v1.2.3