From a0cd3ee9665089c05baec81a6ebb05bf37fc8e89 Mon Sep 17 00:00:00 2001 From: Scott Chao Date: Fri, 6 May 2022 19:19:39 +0800 Subject: mb/google/brya/var/crota: enable wifi sar BUG=b:216594621 BRANCH=brya TEST=build pass and SAR table be changed according to tablet/ desktop mode Signed-off-by: Scott Chao Change-Id: I62265e8931da48d20cf41e0c91ccb1a5b4bc1167 Reviewed-on: https://review.coreboot.org/c/coreboot/+/64096 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- src/mainboard/google/brya/Kconfig.name | 1 + src/mainboard/google/brya/variants/crota/Makefile.inc | 2 ++ src/mainboard/google/brya/variants/crota/variant.c | 11 +++++++++++ 3 files changed, 14 insertions(+) create mode 100644 src/mainboard/google/brya/variants/crota/variant.c diff --git a/src/mainboard/google/brya/Kconfig.name b/src/mainboard/google/brya/Kconfig.name index dfa8986a26..d475d760ac 100644 --- a/src/mainboard/google/brya/Kconfig.name +++ b/src/mainboard/google/brya/Kconfig.name @@ -186,6 +186,7 @@ config BOARD_GOOGLE_BANSHEE config BOARD_GOOGLE_CROTA bool "-> Crota" select BOARD_GOOGLE_BASEBOARD_BRYA + select CHROMEOS_WIFI_SAR if CHROMEOS select DRIVERS_I2C_CS42L42 config BOARD_GOOGLE_MOLI diff --git a/src/mainboard/google/brya/variants/crota/Makefile.inc b/src/mainboard/google/brya/variants/crota/Makefile.inc index 7d1f88652d..f9d5990ace 100644 --- a/src/mainboard/google/brya/variants/crota/Makefile.inc +++ b/src/mainboard/google/brya/variants/crota/Makefile.inc @@ -4,3 +4,5 @@ romstage-y += gpio.c romstage-y += memory.c ramstage-y += gpio.c + +ramstage-y += variant.c diff --git a/src/mainboard/google/brya/variants/crota/variant.c b/src/mainboard/google/brya/variants/crota/variant.c new file mode 100644 index 0000000000..29f684aa08 --- /dev/null +++ b/src/mainboard/google/brya/variants/crota/variant.c @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include +#include +#include +#include + +const char *get_wifi_sar_cbfs_filename(void) +{ + return "wifi_sar_0.hex"; +} -- cgit v1.2.3