From 5283c337bf6627c7893f4e8203da4b2921951293 Mon Sep 17 00:00:00 2001 From: Ren Kuo Date: Tue, 8 Dec 2020 14:57:25 +0800 Subject: mb/google/dedede/var/magolor: Add Wifi SAR for magolor and maglia Add wifi sar for magolor and maglia: Using tablet mode of fw config to decide to load custom wifi sar or not. same wifi sar value for magolor and maglia (shared firmware) BUG=b:173001370, b:173001251 TEST=enable CHROMEOS_WIFI_SAR in config of coreboot, emerge-dedede coreboot-private-files-baseboard-dedede coreboot chromeos-bootimage. Cq-Depend: chrome-internal:3453724 Signed-off-by: Ren Kuo Change-Id: I44ab68c9ee5deced90d3858161571ab4b39b4c8a Reviewed-on: https://review.coreboot.org/c/coreboot/+/48448 Reviewed-by: Karthik Ramasubramanian Tested-by: build bot (Jenkins) --- src/mainboard/google/dedede/variants/magolor/Makefile.inc | 3 +++ src/mainboard/google/dedede/variants/magolor/variant.c | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 src/mainboard/google/dedede/variants/magolor/Makefile.inc create mode 100644 src/mainboard/google/dedede/variants/magolor/variant.c (limited to 'src/mainboard/google/dedede/variants') diff --git a/src/mainboard/google/dedede/variants/magolor/Makefile.inc b/src/mainboard/google/dedede/variants/magolor/Makefile.inc new file mode 100644 index 0000000000..24c75d1d9a --- /dev/null +++ b/src/mainboard/google/dedede/variants/magolor/Makefile.inc @@ -0,0 +1,3 @@ +## SPDX-License-Identifier: GPL-2.0-or-later + +ramstage-$(CONFIG_FW_CONFIG) += variant.c diff --git a/src/mainboard/google/dedede/variants/magolor/variant.c b/src/mainboard/google/dedede/variants/magolor/variant.c new file mode 100644 index 0000000000..e3b9599a91 --- /dev/null +++ b/src/mainboard/google/dedede/variants/magolor/variant.c @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include +#include + +const char *get_wifi_sar_cbfs_filename(void) +{ + const char *filename = NULL; + + if (fw_config_probe(FW_CONFIG(TABLETMODE, TABLETMODE_ENABLED))) + filename = "wifi_sar-magolor.hex"; + + return filename; +} -- cgit v1.2.3