diff options
author | Frank Chu <Frank_Chu@pegatron.corp-partner.google.com> | 2022-02-08 11:46:06 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-02-28 13:27:11 +0000 |
commit | 9fc741d32f23939d389464958b4c4def1cc1cf01 (patch) | |
tree | 21e37b23f4c9f92c3af8342ccb4477339127721b /src | |
parent | 122e07c8f195ee62df77674dca3b541496ec8275 (diff) |
mb/google/dedede/var/pirika: Add Wifi SAR for pasara
Add wifi sar for pasara
BUG=b:216411442
TEST=enable CHROMEOS_WIFI_SAR in config of coreboot,
emerge-dedede coreboot-private-files-baseboard-dedede coreboot chromeos-bootimage.
Signed-off-by: Frank Chu <Frank_Chu@pegatron.corp-partner.google.com>
Change-Id: Ida475307c8448c5c2758c289da7708484bcb89e3
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61705
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Shou-Chieh Hsu <shouchieh@google.com>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/dedede/Kconfig.name | 1 | ||||
-rw-r--r-- | src/mainboard/google/dedede/variants/pirika/Makefile.inc | 2 | ||||
-rw-r--r-- | src/mainboard/google/dedede/variants/pirika/variant.c | 22 |
3 files changed, 25 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/Kconfig.name b/src/mainboard/google/dedede/Kconfig.name index b92f1374c0..5136112527 100644 --- a/src/mainboard/google/dedede/Kconfig.name +++ b/src/mainboard/google/dedede/Kconfig.name @@ -139,6 +139,7 @@ config BOARD_GOOGLE_PIRIKA bool "-> Pirika" select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50 select BASEBOARD_DEDEDE_LAPTOP + select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR config BOARD_GOOGLE_CAPPY2 bool "-> Cappy2" diff --git a/src/mainboard/google/dedede/variants/pirika/Makefile.inc b/src/mainboard/google/dedede/variants/pirika/Makefile.inc index eb2c9bc021..e54466b72a 100644 --- a/src/mainboard/google/dedede/variants/pirika/Makefile.inc +++ b/src/mainboard/google/dedede/variants/pirika/Makefile.inc @@ -1,3 +1,5 @@ ## SPDX-License-Identifier: GPL-2.0-or-later +ramstage-y += variant.c + ramstage-y += gpio.c diff --git a/src/mainboard/google/dedede/variants/pirika/variant.c b/src/mainboard/google/dedede/variants/pirika/variant.c new file mode 100644 index 0000000000..66a050f9a0 --- /dev/null +++ b/src/mainboard/google/dedede/variants/pirika/variant.c @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <ec/google/chromeec/ec.h> +#include <sar.h> + +enum { + PIRETTE_SKU_START = 0x1D0000, + PIRETTE_SKU_END = 0x1Dffff, + PIRIKA_SKU_START = 0x1E0000, + PIRIKA_SKU_END = 0x1Effff, + PASARA_SKU_START = 0x2A0000, + PASARA_SKU_END = 0x2Affff, +}; +const char *get_wifi_sar_cbfs_filename(void) +{ + uint32_t sku_id = google_chromeec_get_board_sku(); + + if (sku_id >= PASARA_SKU_START && sku_id <= PASARA_SKU_END) + return "wifi_sar-pasara.hex"; + + return WIFI_SAR_CBFS_DEFAULT_FILENAME; +} |