summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeichao Wang <peichao.wang@bitland.corp-partner.google.com>2020-03-10 18:49:54 +0800
committerPatrick Georgi <pgeorgi@google.com>2020-03-17 08:23:12 +0000
commitbfb0f755b9fa0bf25b4575b39db348121431f325 (patch)
treef3c6a37fb36c9de716dbbf6aa23bd08fafe51af5 /src
parent2974ec2cbf6df4ca09cb472eb7465f3846c28747 (diff)
downloadcoreboot-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>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/octopus/variants/foob/variant.c12
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;
+}