soc/intel/ptl: Update ME specification version to 21
[coreboot.git] / src / mainboard / google / dedede / variants / pirika / variant.c
blobcc3714b358f96323afd0929f0e16fa9b13f36bea
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <ec/google/chromeec/ec.h>
4 #include <fw_config.h>
5 #include <sar.h>
7 enum {
8 PIRETTE_SKU_START = 0x1D0000,
9 PIRETTE_SKU_END = 0x1Dffff,
10 PIRIKA_SKU_START = 0x1E0000,
11 PIRIKA_SKU_END = 0x1Effff,
12 PASARA_SKU_START = 0x2A0000,
13 PASARA_SKU_END = 0x2Affff,
14 PALUTENA_SKU_START = 0x350000,
15 PALUTENA_SKU_END = 0x35ffff,
17 const char *get_wifi_sar_cbfs_filename(void)
19 uint32_t sku_id = google_chromeec_get_board_sku();
21 if (sku_id >= PASARA_SKU_START && sku_id <= PASARA_SKU_END)
22 return "wifi_sar-pasara.hex";
24 if (sku_id >= PALUTENA_SKU_START && sku_id <= PALUTENA_SKU_END) {
25 if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, WIFI_SAR_ID_1)))
26 return "wifi_sar-palutena_INTEL_AX201.hex";
29 return WIFI_SAR_CBFS_DEFAULT_FILENAME;