diff options
author | Ian Feng <ian_feng@compal.corp-partner.google.com> | 2021-07-21 15:55:17 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-07-22 12:15:42 +0000 |
commit | ab1d1a02790f69e506ce1dfad7b4c1c54caa822d (patch) | |
tree | 34c76c3b29cf1ef124cee53931dd1ee945c8f6ff /src | |
parent | 8dd1a54f0922a8cc600c8fc943dcb4ed5516803b (diff) |
mb/google/dedede/var/cret: Add Wifi SAR for cret
Add wifi sar for cret.
BUG=b:194163601
TEST=enable CHROMEOS_WIFI_SAR in config of coreboot,
emerge-dedede coreboot-private-files-baseboard-dedede coreboot chromeos-bootimage.
Signed-off-by: Ian Feng <ian_feng@compal.corp-partner.google.com>
Change-Id: Ic2f3dbc5822c1f4b1c935c87295ba9916e0e359e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56474
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/cret/Makefile.inc | 1 | ||||
-rw-r--r-- | src/mainboard/google/dedede/variants/cret/variant.c | 7 |
3 files changed, 9 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/Kconfig.name b/src/mainboard/google/dedede/Kconfig.name index 6c908fba4a..6cdd4ded87 100644 --- a/src/mainboard/google/dedede/Kconfig.name +++ b/src/mainboard/google/dedede/Kconfig.name @@ -143,6 +143,7 @@ config BOARD_GOOGLE_CRET select BASEBOARD_DEDEDE_LAPTOP select DRIVERS_GENERIC_MAX98357A select DRIVERS_I2C_DA7219 + select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR config BOARD_GOOGLE_PIRIKA bool "-> Pirika" diff --git a/src/mainboard/google/dedede/variants/cret/Makefile.inc b/src/mainboard/google/dedede/variants/cret/Makefile.inc index fd60a18b69..ac22e9e6de 100644 --- a/src/mainboard/google/dedede/variants/cret/Makefile.inc +++ b/src/mainboard/google/dedede/variants/cret/Makefile.inc @@ -1,5 +1,6 @@ ## SPDX-License-Identifier: GPL-2.0-or-later ramstage-y += gpio.c +ramstage-$(CONFIG_FW_CONFIG) += variant.c smm-y += variant.c diff --git a/src/mainboard/google/dedede/variants/cret/variant.c b/src/mainboard/google/dedede/variants/cret/variant.c index 2540fc7f2a..d9fb28ce2b 100644 --- a/src/mainboard/google/dedede/variants/cret/variant.c +++ b/src/mainboard/google/dedede/variants/cret/variant.c @@ -3,7 +3,14 @@ #include <acpi/acpi.h> #include <baseboard/variants.h> #include <delay.h> +#include <fw_config.h> #include <gpio.h> +#include <sar.h> + +const char *get_wifi_sar_cbfs_filename(void) +{ + return "wifi_sar-cret.hex"; +} static void power_off_lte_module(void) { |