summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/dedede/Kconfig.name1
-rw-r--r--src/mainboard/google/dedede/variants/pirika/Makefile.inc2
-rw-r--r--src/mainboard/google/dedede/variants/pirika/variant.c22
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;
+}