1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <ec/google/chromeec/ec.h>
8 GALTIC_SKU_START
= 0x120000,
9 GALTIC_SKU_END
= 0x12ffff,
10 GALITH_SKU_START
= 0x130000,
11 GALITH_SKU_END
= 0x13ffff,
12 GALNAT_SKU_START
= 0x140000,
13 GALNAT_SKU_END
= 0x14ffff,
14 GALLOP_SKU_START
= 0x150000,
15 GALLOP_SKU_END
= 0x15ffff,
16 GALTIC360_SKU_START
= 0x260000,
17 GALTIC360_SKU_END
= 0x26ffff,
18 GALITH360_SKU_START
= 0x270000,
19 GALITH360_SKU_END
= 0x27ffff,
20 GALNAT360_SKU_START
= 0x2B0000,
21 GALNAT360_SKU_END
= 0x2Bffff,
23 const char *get_wifi_sar_cbfs_filename(void)
25 uint32_t sku_id
= google_chromeec_get_board_sku();
27 if (sku_id
>= GALTIC_SKU_START
&& sku_id
<= GALTIC_SKU_END
)
28 return "wifi_sar-galtic.hex";
29 if (sku_id
>= GALNAT_SKU_START
&& sku_id
<= GALNAT_SKU_END
)
30 return "wifi_sar-galnat.hex";
31 if (sku_id
>= GALTIC360_SKU_START
&& sku_id
<= GALTIC360_SKU_END
)
32 return "wifi_sar-galtic360.hex";
33 if (sku_id
>= GALITH360_SKU_START
&& sku_id
<= GALITH360_SKU_END
)
34 return "wifi_sar-galith360.hex";
35 if (sku_id
>= GALNAT360_SKU_START
&& sku_id
<= GALNAT360_SKU_END
)
36 return "wifi_sar-galnat360.hex";
38 return WIFI_SAR_CBFS_DEFAULT_FILENAME
;