summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorRobertChen <robert.chen@quanta.corp-partner.google.com>2021-10-21 19:09:49 +0800
committerPatrick Georgi <pgeorgi@google.com>2021-11-01 10:29:23 +0000
commitf6c29165b25e4ae8b7013b107f90ba157bff7b87 (patch)
treedcbcf0a0feb21b3a85a42c05ef2aa9a3c9ddc918 /src/mainboard
parent8bea7027cd5a27515522acaf7d5a189dbb8aa3cb (diff)
mb/google/dedede/var/kracko: Add Wifi SAR for kracko
Add wifi sar for kracko BUG=b:194460420 TEST=emerge-dedede coreboot-private-files-baseboard-dedede coreboot chromeos-bootimage Change-Id: I83bca544c9f71142f95ea1137f732c182b3f29b7 Signed-off-by: Robert Chen <robert.chen@quanta.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58522 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Henry Sun <henrysun@google.com> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Reviewed-by: Shou-Chieh Hsu <shouchieh@google.com> Reviewed-by: Kevin Chiu <kevin.chiu.17802@gmail.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/dedede/Kconfig.name1
-rw-r--r--src/mainboard/google/dedede/variants/kracko/Makefile.inc2
-rw-r--r--src/mainboard/google/dedede/variants/kracko/variant.c7
3 files changed, 10 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/Kconfig.name b/src/mainboard/google/dedede/Kconfig.name
index e0eb517b38..ea6f35c6ae 100644
--- a/src/mainboard/google/dedede/Kconfig.name
+++ b/src/mainboard/google/dedede/Kconfig.name
@@ -114,6 +114,7 @@ config BOARD_GOOGLE_KRACKO
select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
select BASEBOARD_DEDEDE_LAPTOP
select DRIVERS_GENERIC_MAX98357A
+ select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
config BOARD_GOOGLE_BLIPPER
bool "-> Blipper"
diff --git a/src/mainboard/google/dedede/variants/kracko/Makefile.inc b/src/mainboard/google/dedede/variants/kracko/Makefile.inc
index fd60a18b69..a722a06dc9 100644
--- a/src/mainboard/google/dedede/variants/kracko/Makefile.inc
+++ b/src/mainboard/google/dedede/variants/kracko/Makefile.inc
@@ -1,5 +1,7 @@
## SPDX-License-Identifier: GPL-2.0-or-later
+ramstage-y += variant.c
+
ramstage-y += gpio.c
smm-y += variant.c
diff --git a/src/mainboard/google/dedede/variants/kracko/variant.c b/src/mainboard/google/dedede/variants/kracko/variant.c
index 22caa069d3..66d7b06889 100644
--- a/src/mainboard/google/dedede/variants/kracko/variant.c
+++ b/src/mainboard/google/dedede/variants/kracko/variant.c
@@ -4,6 +4,13 @@
#include <baseboard/variants.h>
#include <delay.h>
#include <gpio.h>
+#include <sar.h>
+
+const char *get_wifi_sar_cbfs_filename(void)
+{
+ return "wifi_sar-kracko.hex";
+}
+
static void power_off_lte_module(void)
{