From c01e289a0be221eb3cce834a058756d44bb6a71e Mon Sep 17 00:00:00 2001 From: John Su Date: Fri, 20 May 2022 14:05:12 +0800 Subject: [PATCH] mb/google/brya/var/mithrax: Add WiFi SAR table for mithrax Add WiFi SAR table for mithrax. BUG=b:231491014 TEST=emerge-brya chromeos-config chromeos-config-bsp-private coreboot-private-files-baseboard-brya coreboot chromeos-bootimage and checked SAR table can load by WiFi driver. Signed-off-by: John Su Change-Id: I847debd7c817225b5b1777c798a14ef10aee3471 Reviewed-on: https://review.coreboot.org/c/coreboot/+/64541 Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik Reviewed-by: Frank Wu --- src/mainboard/google/brya/Kconfig.name | 1 + src/mainboard/google/brya/variants/mithrax/Makefile.inc | 2 ++ src/mainboard/google/brya/variants/mithrax/variant.c | 6 ++++++ 3 files changed, 9 insertions(+) diff --git a/src/mainboard/google/brya/Kconfig.name b/src/mainboard/google/brya/Kconfig.name index e2a917c337..7209e368a3 100644 --- a/src/mainboard/google/brya/Kconfig.name +++ b/src/mainboard/google/brya/Kconfig.name @@ -219,6 +219,7 @@ config BOARD_GOOGLE_OSIRIS config BOARD_GOOGLE_MITHRAX bool "-> Mithrax" select BOARD_GOOGLE_BASEBOARD_BRYA + select CHROMEOS_WIFI_SAR if CHROMEOS select DRIVERS_GENERIC_GPIO_KEYS select DRIVERS_GENESYSLOGIC_GL9755 diff --git a/src/mainboard/google/brya/variants/mithrax/Makefile.inc b/src/mainboard/google/brya/variants/mithrax/Makefile.inc index 1d149fd80a..2e359d3e2d 100644 --- a/src/mainboard/google/brya/variants/mithrax/Makefile.inc +++ b/src/mainboard/google/brya/variants/mithrax/Makefile.inc @@ -1,3 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only bootblock-y += gpio.c ramstage-y += gpio.c + +ramstage-$(CONFIG_FW_CONFIG) += variant.c diff --git a/src/mainboard/google/brya/variants/mithrax/variant.c b/src/mainboard/google/brya/variants/mithrax/variant.c index 2af5a9a976..b0bf99ac56 100644 --- a/src/mainboard/google/brya/variants/mithrax/variant.c +++ b/src/mainboard/google/brya/variants/mithrax/variant.c @@ -3,6 +3,12 @@ #include #include #include +#include + +const char *get_wifi_sar_cbfs_filename(void) +{ + return "wifi_sar_0.hex"; +} void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config) {