summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorScott Chao <scott_chao@wistron.corp-partner.google.com>2022-05-06 19:19:39 +0800
committerTim Wawrzynczak <twawrzynczak@chromium.org>2022-05-11 15:02:54 +0000
commita0cd3ee9665089c05baec81a6ebb05bf37fc8e89 (patch)
treefa4f72900b68354b5b350204cdf1b906c1c40244 /src/mainboard/google
parent7886d463168a8b665cf2eced37b81659caa4c888 (diff)
mb/google/brya/var/crota: enable wifi sar
BUG=b:216594621 BRANCH=brya TEST=build pass and SAR table be changed according to tablet/ desktop mode Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I62265e8931da48d20cf41e0c91ccb1a5b4bc1167 Reviewed-on: https://review.coreboot.org/c/coreboot/+/64096 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/brya/Kconfig.name1
-rw-r--r--src/mainboard/google/brya/variants/crota/Makefile.inc2
-rw-r--r--src/mainboard/google/brya/variants/crota/variant.c11
3 files changed, 14 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/Kconfig.name b/src/mainboard/google/brya/Kconfig.name
index dfa8986a26..d475d760ac 100644
--- a/src/mainboard/google/brya/Kconfig.name
+++ b/src/mainboard/google/brya/Kconfig.name
@@ -186,6 +186,7 @@ config BOARD_GOOGLE_BANSHEE
config BOARD_GOOGLE_CROTA
bool "-> Crota"
select BOARD_GOOGLE_BASEBOARD_BRYA
+ select CHROMEOS_WIFI_SAR if CHROMEOS
select DRIVERS_I2C_CS42L42
config BOARD_GOOGLE_MOLI
diff --git a/src/mainboard/google/brya/variants/crota/Makefile.inc b/src/mainboard/google/brya/variants/crota/Makefile.inc
index 7d1f88652d..f9d5990ace 100644
--- a/src/mainboard/google/brya/variants/crota/Makefile.inc
+++ b/src/mainboard/google/brya/variants/crota/Makefile.inc
@@ -4,3 +4,5 @@ romstage-y += gpio.c
romstage-y += memory.c
ramstage-y += gpio.c
+
+ramstage-y += variant.c
diff --git a/src/mainboard/google/brya/variants/crota/variant.c b/src/mainboard/google/brya/variants/crota/variant.c
new file mode 100644
index 0000000000..29f684aa08
--- /dev/null
+++ b/src/mainboard/google/brya/variants/crota/variant.c
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <sar.h>
+#include <chip.h>
+#include <fw_config.h>
+#include <baseboard/variants.h>
+
+const char *get_wifi_sar_cbfs_filename(void)
+{
+ return "wifi_sar_0.hex";
+}