From a1459caa886704200cbf96428fe9e304903ad45c Mon Sep 17 00:00:00 2001 From: Sheng-Liang Pan Date: Thu, 24 Aug 2023 17:16:37 +0800 Subject: mb/google/dedede/var/taranza: Add Wifi SAR for taranza BUG=b:297276380 BRANCH=dedede TEST=enable CHROMEOS_WIFI_SAR in config of coreboot, emerge-dedede coreboot-private-files-baseboard-dedede coreboot chromeos-bootimage Cq-Depend: chrome-internal:6373154 Signed-off-by: Sheng-Liang Pan Change-Id: If21c7a7d329b0b1cc2c73dadb0c5b8a5b8ab27e2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/77399 Reviewed-by: David Wu Tested-by: build bot (Jenkins) Reviewed-by: Tyler Wang --- src/mainboard/google/dedede/Kconfig.name | 1 + src/mainboard/google/dedede/variants/taranza/Makefile.inc | 2 ++ src/mainboard/google/dedede/variants/taranza/variant.c | 8 ++++++++ 3 files changed, 11 insertions(+) create mode 100644 src/mainboard/google/dedede/variants/taranza/variant.c (limited to 'src/mainboard') diff --git a/src/mainboard/google/dedede/Kconfig.name b/src/mainboard/google/dedede/Kconfig.name index 10cf5e2805..f668fb1b6b 100644 --- a/src/mainboard/google/dedede/Kconfig.name +++ b/src/mainboard/google/dedede/Kconfig.name @@ -208,6 +208,7 @@ config BOARD_GOOGLE_TARANZA select RT8168_GEN_ACPI_POWER_RESOURCE select RT8168_GET_MAC_FROM_VPD select RT8168_SET_LED_MODE + select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR config BOARD_GOOGLE_BOXY bool "-> Boxy" diff --git a/src/mainboard/google/dedede/variants/taranza/Makefile.inc b/src/mainboard/google/dedede/variants/taranza/Makefile.inc index eb2c9bc021..f6abb34693 100644 --- a/src/mainboard/google/dedede/variants/taranza/Makefile.inc +++ b/src/mainboard/google/dedede/variants/taranza/Makefile.inc @@ -1,3 +1,5 @@ ## SPDX-License-Identifier: GPL-2.0-or-later ramstage-y += gpio.c + +ramstage-y += variant.c diff --git a/src/mainboard/google/dedede/variants/taranza/variant.c b/src/mainboard/google/dedede/variants/taranza/variant.c new file mode 100644 index 0000000000..c0a66fa0b3 --- /dev/null +++ b/src/mainboard/google/dedede/variants/taranza/variant.c @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include + +const char *get_wifi_sar_cbfs_filename(void) +{ + return "wifi_sar-taranza.hex"; +} -- cgit v1.2.3