From 8d70cf71a4f557799b7a2c079927959ef4f4aaa3 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Thu, 13 Oct 2022 10:19:04 +0530 Subject: mb/google/rex: Implement WIFI SAR related changes 1. Add CHROMEOS_WIFI_SAR to include the SAR configs. 2. Add get_wifi_sar_cbfs_file_name() that return the wifi SAR filename. BUG=none TEST=emerge-rex coreboot Signed-off-by: Subrata Banik Change-Id: Ia863eaa53c9456ae0e9f0e8914e0de497a32b53b Reviewed-on: https://review.coreboot.org/c/coreboot/+/68393 Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) Reviewed-by: Ivy Jian Reviewed-by: Kapil Porwal --- src/mainboard/google/rex/Kconfig | 8 ++++++++ src/mainboard/google/rex/variants/rex0/Makefile.inc | 1 + src/mainboard/google/rex/variants/rex0/variant.c | 8 ++++++++ 3 files changed, 17 insertions(+) create mode 100644 src/mainboard/google/rex/variants/rex0/variant.c diff --git a/src/mainboard/google/rex/Kconfig b/src/mainboard/google/rex/Kconfig index 1f296dea56a8..076a651ecd1b 100644 --- a/src/mainboard/google/rex/Kconfig +++ b/src/mainboard/google/rex/Kconfig @@ -46,6 +46,14 @@ config CHROMEOS select GBB_FLAG_FORCE_MANUAL_RECOVERY select HAS_RECOVERY_MRC_CACHE +config CHROMEOS_WIFI_SAR + bool "Enable SAR options for ChromeOS build" + depends on CHROMEOS + select DSAR_ENABLE + select GEO_SAR_ENABLE + select SAR_ENABLE + select USE_SAR + config DEVICETREE default "variants/baseboard/\$(CONFIG_BASEBOARD_DIR)/devicetree.cb" diff --git a/src/mainboard/google/rex/variants/rex0/Makefile.inc b/src/mainboard/google/rex/variants/rex0/Makefile.inc index 2fa692abed06..86a10df2a08f 100644 --- a/src/mainboard/google/rex/variants/rex0/Makefile.inc +++ b/src/mainboard/google/rex/variants/rex0/Makefile.inc @@ -1,3 +1,4 @@ bootblock-y += gpio.c romstage-y += gpio.c ramstage-y += gpio.c +ramstage-y += variant.c diff --git a/src/mainboard/google/rex/variants/rex0/variant.c b/src/mainboard/google/rex/variants/rex0/variant.c new file mode 100644 index 000000000000..6a79780f6e87 --- /dev/null +++ b/src/mainboard/google/rex/variants/rex0/variant.c @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include + +const char *get_wifi_sar_cbfs_filename(void) +{ + return "wifi_sar_0.hex"; +} -- cgit v1.2.3