summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Wu <david_wu@quanta.corp-partner.google.com>2020-03-25 13:37:07 +0800
committerPatrick Georgi <pgeorgi@google.com>2020-03-30 08:37:14 +0000
commit1e40a115778865e60a13cb71fdf18eb3ddf1751f (patch)
tree5bc469e4b973ec7dadd64c0e3aa748445fcc2b29
parent5d841e6a176263bd9caa478e6e4ad464d1b9f489 (diff)
mb/google/hatch/var/kindred: set wifi sar for kled
Enable wifi sar feature and set wifi sar name for kled sku. BUG=b:152277272 TEST=emerge-hatch coreboot chromeos-bootimage and verify wifi SAR load by sku-id Change-Id: I9ee242773fd05cc2bcd7bde07da8176022827677 Signed-off-by: David Wu <David_Wu@quanta.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39813 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
-rw-r--r--src/mainboard/google/hatch/variants/kindred/variant.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mainboard/google/hatch/variants/kindred/variant.c b/src/mainboard/google/hatch/variants/kindred/variant.c
index 72bed92398..ce9df8a49b 100644
--- a/src/mainboard/google/hatch/variants/kindred/variant.c
+++ b/src/mainboard/google/hatch/variants/kindred/variant.c
@@ -16,6 +16,7 @@
#include <chip.h>
#include <soc/pci_devs.h>
#include <ec/google/chromeec/ec.h>
+#include <sar.h>
void variant_devtree_update(void)
{
@@ -46,3 +47,13 @@ void variant_devtree_update(void)
cfg->satapwroptimize = 0;
}
}
+
+const char *get_wifi_sar_cbfs_filename(void)
+{
+ const char *filename = NULL;
+ uint32_t sku_id = google_chromeec_get_board_sku();
+
+ if (sku_id == 1 || sku_id == 2 || sku_id == 3 || sku_id == 4)
+ filename = "wifi_sar-kled.hex";
+ return filename;
+}