cpu/x86/smm/pci_resource_store: Store DEV/VEN ID
[coreboot2.git] / src / mainboard / google / dedede / variants / magolor / variant.c
blob33c428c39be2d25bfc0f7deb3da0edecc5c868c7
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <drivers/intel/gma/opregion.h>
4 #include <ec/google/chromeec/ec.h>
5 #include <fw_config.h>
6 #include <sar.h>
8 enum {
9 MAGOLOR_SKU_START = 0x70000,
10 MAGOLOR_SKU_END = 0x7ffff,
11 MAGLIA_SKU_START = 0x80000,
12 MAGLIA_SKU_END = 0x8ffff,
13 MAGISTER_SKU_START = 0xc0000,
14 MAGISTER_SKU_END = 0xcffff,
15 MAGMA_SKU_START = 0xd0000,
16 MAGMA_SKU_END = 0xdffff,
17 MAGNETO_SKU_START = 0x110000,
18 MAGNETO_SKU_END = 0x11ffff,
21 const char *get_wifi_sar_cbfs_filename(void)
23 uint32_t sku_id = google_chromeec_get_board_sku();
25 if (sku_id >= MAGOLOR_SKU_START && sku_id <= MAGLIA_SKU_END)
26 return "wifi_sar-magolor.hex";
27 if (sku_id >= MAGISTER_SKU_START && sku_id <= MAGISTER_SKU_END)
28 return "wifi_sar-magister.hex";
29 if (sku_id >= MAGMA_SKU_START && sku_id <= MAGMA_SKU_END)
30 return "wifi_sar-magma.hex";
31 if (sku_id >= MAGNETO_SKU_START && sku_id <= MAGNETO_SKU_END)
32 return "wifi_sar-magneto.hex";
34 return WIFI_SAR_CBFS_DEFAULT_FILENAME;
37 const char *mainboard_vbt_filename(void)
39 if (fw_config_probe(FW_CONFIG(DB_PORTS, DB_PORTS_1A_HDMI)))
40 return "vbt_magister.bin";
42 return "vbt.bin";