blob: df5641ba8eabe5c69f49fbb26201e2c17fa35f20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/* SPDX-License-Identifier: GPL-2.0-only */
/* This file is part of the coreboot project. */
#ifndef VARIANT_H
#define VARIANT_H
#include <gpio.h>
#include <variant/gpio.h>
/* Need to update for Drallion with right SKU IDs*/
typedef struct {
int id;
const char *name;
} sku_info;
const static sku_info skus[] = {
// Drallion 360
{ .id = 1, .name = "sku1" },
// Drallion
{ .id = 2, .name = "sku2" },
// Drallion 360 signed
{ .id = 3, .name = "sku3" },
// Drallion signed
{ .id = 4, .name = "sku4" },
};
/* Return memory SKU for the variant */
int variant_memory_sku(void);
/* Check if the device has a 360 sensor board present */
static inline int has_360_sensor_board(void)
{
return gpio_get(SENSOR_DET_360) == 0;
}
#endif
|