summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorFrankChu <frank_chu@pegatron.corp-partner.google.com>2021-01-26 16:11:12 +0800
committerPatrick Georgi <pgeorgi@google.com>2021-01-28 09:27:11 +0000
commitd22f256e0346c2e75a72c3b9716e06c0e3cfa71a (patch)
treecca6f2f5205e8149bff17ea5d9c8488f16e822dd /src/mainboard
parentac8c357ddcf2c58c4903c198224b13f045672ca4 (diff)
mb/google/dedede/var/galith: Add Wifi SAR for convertibles
Add wifi sar for galith Using convertible mode of fw config to decide to load custom wifi sar or not. BUG=b:176206495 TEST=enable CHROMEOS_WIFI_SAR in config of coreboot, emerge-dedede coreboot-private-files-baseboard-dedede coreboot chromeos-bootimage. Cq-Depend: chromium:2649378,chrome-internal:3559387 Signed-off-by: FrankChu <frank_chu@pegatron.corp-partner.google.com> Change-Id: I0f9a7ddedef550317da4bf798317619ffd1fa979 Reviewed-on: https://review.coreboot.org/c/coreboot/+/49923 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/dedede/Kconfig.name1
-rw-r--r--src/mainboard/google/dedede/variants/galtic/Makefile.inc2
-rw-r--r--src/mainboard/google/dedede/variants/galtic/variant.c13
3 files changed, 16 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/Kconfig.name b/src/mainboard/google/dedede/Kconfig.name
index 883a6840ee..97b90c2e5b 100644
--- a/src/mainboard/google/dedede/Kconfig.name
+++ b/src/mainboard/google/dedede/Kconfig.name
@@ -85,6 +85,7 @@ config BOARD_GOOGLE_GALTIC
bool "-> Galtic"
select BOARD_GOOGLE_BASEBOARD_DEDEDE
select BASEBOARD_DEDEDE_LAPTOP
+ select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
config BOARD_GOOGLE_SASUKE
bool "-> Sasuke"
diff --git a/src/mainboard/google/dedede/variants/galtic/Makefile.inc b/src/mainboard/google/dedede/variants/galtic/Makefile.inc
index eb2c9bc021..717bb3a365 100644
--- a/src/mainboard/google/dedede/variants/galtic/Makefile.inc
+++ b/src/mainboard/google/dedede/variants/galtic/Makefile.inc
@@ -1,3 +1,5 @@
## SPDX-License-Identifier: GPL-2.0-or-later
+ramstage-$(CONFIG_FW_CONFIG) += variant.c
+
ramstage-y += gpio.c
diff --git a/src/mainboard/google/dedede/variants/galtic/variant.c b/src/mainboard/google/dedede/variants/galtic/variant.c
new file mode 100644
index 0000000000..e7b1bb8ccd
--- /dev/null
+++ b/src/mainboard/google/dedede/variants/galtic/variant.c
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <fw_config.h>
+#include <sar.h>
+
+const char *get_wifi_sar_cbfs_filename(void)
+{
+ const char *filename = NULL;
+
+ if (fw_config_probe(FW_CONFIG(TABLETMODE, TABLETMODE_ENABLED)))
+ filename = "wifi_sar-galtic.hex";
+ return filename;
+}