summaryrefslogtreecommitdiffstats
path: root/src/mainboard
diff options
context:
space:
mode:
authorIan Feng <ian_feng@compal.corp-partner.google.com>2021-07-21 15:55:17 +0800
committerFelix Held <felix-coreboot@felixheld.de>2021-07-22 12:15:42 +0000
commitab1d1a02790f69e506ce1dfad7b4c1c54caa822d (patch)
tree34c76c3b29cf1ef124cee53931dd1ee945c8f6ff /src/mainboard
parent8dd1a54f0922a8cc600c8fc943dcb4ed5516803b (diff)
downloadcoreboot-ab1d1a02790f69e506ce1dfad7b4c1c54caa822d.tar.gz
coreboot-ab1d1a02790f69e506ce1dfad7b4c1c54caa822d.tar.bz2
coreboot-ab1d1a02790f69e506ce1dfad7b4c1c54caa822d.zip
mb/google/dedede/var/cret: Add Wifi SAR for cret
Add wifi sar for cret. BUG=b:194163601 TEST=enable CHROMEOS_WIFI_SAR in config of coreboot, emerge-dedede coreboot-private-files-baseboard-dedede coreboot chromeos-bootimage. Signed-off-by: Ian Feng <ian_feng@compal.corp-partner.google.com> Change-Id: Ic2f3dbc5822c1f4b1c935c87295ba9916e0e359e Reviewed-on: https://review.coreboot.org/c/coreboot/+/56474 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/dedede/Kconfig.name1
-rw-r--r--src/mainboard/google/dedede/variants/cret/Makefile.inc1
-rw-r--r--src/mainboard/google/dedede/variants/cret/variant.c7
3 files changed, 9 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/Kconfig.name b/src/mainboard/google/dedede/Kconfig.name
index 6c908fba4a9a..6cdd4ded87ca 100644
--- a/src/mainboard/google/dedede/Kconfig.name
+++ b/src/mainboard/google/dedede/Kconfig.name
@@ -143,6 +143,7 @@ config BOARD_GOOGLE_CRET
select BASEBOARD_DEDEDE_LAPTOP
select DRIVERS_GENERIC_MAX98357A
select DRIVERS_I2C_DA7219
+ select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
config BOARD_GOOGLE_PIRIKA
bool "-> Pirika"
diff --git a/src/mainboard/google/dedede/variants/cret/Makefile.inc b/src/mainboard/google/dedede/variants/cret/Makefile.inc
index fd60a18b6946..ac22e9e6de95 100644
--- a/src/mainboard/google/dedede/variants/cret/Makefile.inc
+++ b/src/mainboard/google/dedede/variants/cret/Makefile.inc
@@ -1,5 +1,6 @@
## SPDX-License-Identifier: GPL-2.0-or-later
ramstage-y += gpio.c
+ramstage-$(CONFIG_FW_CONFIG) += variant.c
smm-y += variant.c
diff --git a/src/mainboard/google/dedede/variants/cret/variant.c b/src/mainboard/google/dedede/variants/cret/variant.c
index 2540fc7f2a69..d9fb28ce2be3 100644
--- a/src/mainboard/google/dedede/variants/cret/variant.c
+++ b/src/mainboard/google/dedede/variants/cret/variant.c
@@ -3,7 +3,14 @@
#include <acpi/acpi.h>
#include <baseboard/variants.h>
#include <delay.h>
+#include <fw_config.h>
#include <gpio.h>
+#include <sar.h>
+
+const char *get_wifi_sar_cbfs_filename(void)
+{
+ return "wifi_sar-cret.hex";
+}
static void power_off_lte_module(void)
{