summaryrefslogtreecommitdiff
path: root/src/mainboard/google/rex/variants
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2022-10-13 10:19:04 +0530
committerSubrata Banik <subratabanik@google.com>2022-10-14 08:50:19 +0000
commit8d70cf71a4f557799b7a2c079927959ef4f4aaa3 (patch)
tree8f8b37d3134cf469855ba2d18bc205fcd7863771 /src/mainboard/google/rex/variants
parent6dbded495e2c3bbaac68a96cff78551ceb945e7c (diff)
mb/google/rex: Implement WIFI SAR related changes
1. Add CHROMEOS_WIFI_SAR to include the SAR configs. 2. Add get_wifi_sar_cbfs_file_name() that return the wifi SAR filename. BUG=none TEST=emerge-rex coreboot Signed-off-by: Subrata Banik <subratabanik@google.com> Change-Id: Ia863eaa53c9456ae0e9f0e8914e0de497a32b53b Reviewed-on: https://review.coreboot.org/c/coreboot/+/68393 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Ivy Jian <ivy.jian@quanta.corp-partner.google.com> Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Diffstat (limited to 'src/mainboard/google/rex/variants')
-rw-r--r--src/mainboard/google/rex/variants/rex0/Makefile.inc1
-rw-r--r--src/mainboard/google/rex/variants/rex0/variant.c8
2 files changed, 9 insertions, 0 deletions
diff --git a/src/mainboard/google/rex/variants/rex0/Makefile.inc b/src/mainboard/google/rex/variants/rex0/Makefile.inc
index 2fa692abed..86a10df2a0 100644
--- a/src/mainboard/google/rex/variants/rex0/Makefile.inc
+++ b/src/mainboard/google/rex/variants/rex0/Makefile.inc
@@ -1,3 +1,4 @@
bootblock-y += gpio.c
romstage-y += gpio.c
ramstage-y += gpio.c
+ramstage-y += variant.c
diff --git a/src/mainboard/google/rex/variants/rex0/variant.c b/src/mainboard/google/rex/variants/rex0/variant.c
new file mode 100644
index 0000000000..6a79780f6e
--- /dev/null
+++ b/src/mainboard/google/rex/variants/rex0/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";
+}