summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorMark Hsieh <mark_hsieh@wistron.corp-partner.google.com>2021-09-13 20:17:19 +0800
committerTim Wawrzynczak <twawrzynczak@chromium.org>2021-09-15 02:49:29 +0000
commitcbeeec123c58fcbe33c954e803a06a2aae6c1533 (patch)
treefdaec99725ff9520a192d62a2665e15e4ad88a8f /src/mainboard
parenta4c0e607258ae4e5c8b6758e26721ba673c1635b (diff)
brya/gimble: add `get_wifi_sar_cbfs_filename()` in variant.c
gimble only uses one WiFi SAR table, contained in a file named wifi_sar_0.hex BUG=b:189068477 TEST=USE="project_gimble emerge-brya coreboot" and verify it builds without error. Signed-off-by: Mark Hsieh <mark_hsieh@wistron.corp-partner.google.com> Change-Id: Ied030b79183cc6f962674260e7a82a7261b317ca Reviewed-on: https://review.coreboot.org/c/coreboot/+/57616 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/brya/variants/gimble/Makefile.inc2
-rw-r--r--src/mainboard/google/brya/variants/gimble/variant.c8
2 files changed, 10 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/variants/gimble/Makefile.inc b/src/mainboard/google/brya/variants/gimble/Makefile.inc
index f2a624c0e8..acf9bada81 100644
--- a/src/mainboard/google/brya/variants/gimble/Makefile.inc
+++ b/src/mainboard/google/brya/variants/gimble/Makefile.inc
@@ -4,3 +4,5 @@ bootblock-y += gpio.c
ramstage-y += gpio.c
ramstage-$(CONFIG_FW_CONFIG) += fw_config.c
+
+ramstage-y += variant.c
diff --git a/src/mainboard/google/brya/variants/gimble/variant.c b/src/mainboard/google/brya/variants/gimble/variant.c
new file mode 100644
index 0000000000..6a79780f6e
--- /dev/null
+++ b/src/mainboard/google/brya/variants/gimble/variant.c
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <sar.h>
+
+const char *get_wifi_sar_cbfs_filename(void)
+{
+ return "wifi_sar_0.hex";
+}