diff options
author | Peichao Wang <peichao.wang@bitland.corp-partner.google.com> | 2020-03-10 18:49:54 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-03-17 08:23:12 +0000 |
commit | bfb0f755b9fa0bf25b4575b39db348121431f325 (patch) | |
tree | f3c6a37fb36c9de716dbbf6aa23bd08fafe51af5 | |
parent | 2974ec2cbf6df4ca09cb472eb7465f3846c28747 (diff) | |
download | coreboot-bfb0f755b9fa0bf25b4575b39db348121431f325.tar.xz |
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 <peichao.wang@bitland.corp-partner.google.com>
Change-Id: I8cc5d73629990f19d2c1044debdba4990c54d07e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/39424
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Marco Chen <marcochen@google.com>
-rw-r--r-- | src/mainboard/google/octopus/variants/foob/variant.c | 12 |
1 files changed, 12 insertions, 0 deletions
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 <baseboard/variants.h> #include <soc/pci_devs.h> #include <ec/google/chromeec/ec.h> +#include <sar.h> #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; +} |