drivers/mipi: Add support for KD_KD110N11_51IE panel
[coreboot2.git] / src / mainboard / google / octopus / variants / bloog / variant.c
blob498c5c4e23cb9d1e1632107a4f11df3a88885b10
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <ec/google/chromeec/ec.h>
4 #include <sar.h>
5 #include <baseboard/variants.h>
6 #include <drivers/intel/gma/opregion.h>
8 #define SKU_UNKNOWN 0xFFFFFFFF
10 enum {
11 SKU_33_BLOOG = 33, /* no kb blit, USI Stylus */
12 SKU_34_BLOOG = 34, /* kb blit, no USI Stylus */
13 SKU_35_BLOOG = 35, /* kb blit, USI Stylus */
14 SKU_36_BLOOG = 36, /* no kb blit, no USI Stylus */
15 SKU_49_BLOOGUARD = 49, /* kb blit, no USI Stylus */
16 SKU_50_BLOOGUARD = 50, /* kb blit, USI Stylus */
17 SKU_51_BLOOGUARD = 51, /* no kb blit, no USI Stylus */
18 SKU_52_BLOOGUARD = 52, /* no kb blit, USI Stylus */
19 SKU_53_BIPSHIP = 53, /* no kb blit, TS, 360, no Stylus, no rare-cam */
20 SKU_54_BIPSHIP = 54, /* kb blit, TS, 360, no Stylus, no rare-cam */
21 SKU_65_BLOOGLET = 65, /* TS, kb blit */
22 SKU_66_BLOOGLET = 66, /* TS, no kb blit */
23 SKU_67_BLOOGLET = 67, /* non-TS, kb blit */
24 SKU_68_BLOOGLET = 68, /* non-TS, no kb blit */
25 SKU_255_UNPROVISIONED = 255,
28 const char *get_wifi_sar_cbfs_filename(void)
30 uint32_t sku_id = google_chromeec_get_board_sku();
32 switch (sku_id) {
33 case SKU_33_BLOOG:
34 case SKU_34_BLOOG:
35 case SKU_35_BLOOG:
36 case SKU_36_BLOOG:
37 return "wifi_sar-bloog.hex";
38 case SKU_49_BLOOGUARD:
39 case SKU_50_BLOOGUARD:
40 case SKU_51_BLOOGUARD:
41 case SKU_52_BLOOGUARD:
42 case SKU_53_BIPSHIP:
43 case SKU_54_BIPSHIP:
44 return "wifi_sar-blooguard.hex";
46 return WIFI_SAR_CBFS_DEFAULT_FILENAME;
49 const char *mainboard_vbt_filename(void)
51 uint32_t sku_id;
53 sku_id = google_chromeec_get_board_sku();
55 switch (sku_id) {
56 case SKU_33_BLOOG:
57 case SKU_34_BLOOG:
58 case SKU_35_BLOOG:
59 case SKU_36_BLOOG:
60 case SKU_255_UNPROVISIONED:
61 return "vbt.bin";
62 default:
63 return "vbt_blooguard.bin";