diff options
author | Dtrain Hsu <dtrain_hsu@compal.corp-partner.google.com> | 2020-09-16 13:54:20 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-09-21 08:11:40 +0000 |
commit | d579a502d04c67ea9ead07c0035a18fa7a70dc30 (patch) | |
tree | 34a24269a7a5b72b9d63a2e7264cf3a2ab98077c /src | |
parent | 9cd8afdc3ce7df24d6dd233a08974530ed3e1f50 (diff) | |
download | coreboot-d579a502d04c67ea9ead07c0035a18fa7a70dc30.tar.xz |
mb/google/dedede/var/madoo: Add Wifi SAR for madoo
Add wifi sar for madoo.
Using tablet mode of fw config to decide to load custom wifi sar or not.
BUG=b:165105210
TEST=enable CHROMEOS_WIFI_SAR in config of coreboot,
emerge-dedede coreboot-private-files-baseboard-dedede coreboot chromeos-bootimage.
Signed-off-by: Dtrain Hsu <dtrain_hsu@compal.corp-partner.google.com>
Change-Id: Ic6128b966c952cdc02a6359c14fa41f22265039a
Reviewed-on: https://review.coreboot.org/c/coreboot/+/45439
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/dedede/Kconfig.name | 1 | ||||
-rw-r--r-- | src/mainboard/google/dedede/variants/madoo/Makefile.inc | 1 | ||||
-rw-r--r-- | src/mainboard/google/dedede/variants/madoo/variant.c | 14 |
3 files changed, 16 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/Kconfig.name b/src/mainboard/google/dedede/Kconfig.name index bc31ea5e1c..7a5372140c 100644 --- a/src/mainboard/google/dedede/Kconfig.name +++ b/src/mainboard/google/dedede/Kconfig.name @@ -34,6 +34,7 @@ config BOARD_GOOGLE_MADOO select BOARD_GOOGLE_BASEBOARD_DEDEDE select BASEBOARD_DEDEDE_LAPTOP select DRIVERS_GENERIC_MAX98357A + select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR config BOARD_GOOGLE_WADDLEDOO bool "Waddledoo" diff --git a/src/mainboard/google/dedede/variants/madoo/Makefile.inc b/src/mainboard/google/dedede/variants/madoo/Makefile.inc index eb2c9bc021..04eb9a4877 100644 --- a/src/mainboard/google/dedede/variants/madoo/Makefile.inc +++ b/src/mainboard/google/dedede/variants/madoo/Makefile.inc @@ -1,3 +1,4 @@ ## SPDX-License-Identifier: GPL-2.0-or-later ramstage-y += gpio.c +ramstage-$(CONFIG_FW_CONFIG) += variant.c diff --git a/src/mainboard/google/dedede/variants/madoo/variant.c b/src/mainboard/google/dedede/variants/madoo/variant.c new file mode 100644 index 0000000000..b8c3654ab0 --- /dev/null +++ b/src/mainboard/google/dedede/variants/madoo/variant.c @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <fw_config.h> +#include <sar.h> + +const char *get_wifi_sar_cbfs_filename(void) +{ + const char *filename = NULL; + + if (fw_config_probe(FW_CONFIG(TABLETMODE, TABLETMODE_ENABLED))) + filename = "wifi_sar-madoo.hex"; + + return filename; +} |