summaryrefslogtreecommitdiff
path: root/src/mainboard/intel/adlrvp/include/baseboard/variants.h
blob: bc2a57e98f17a90427bfc75eae2f78f7386d2e53 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef __BASEBOARD_VARIANTS_H__
#define __BASEBOARD_VARIANTS_H__

#include <soc/gpio.h>
#include <soc/meminit.h>
#include <stdint.h>
#include <vendorcode/google/chromeos/chromeos.h>

enum adl_boardid {
	/* ADL-P LPDDR4 RVPs */
	ADL_P_LP4_1 = 0x10,
	ADL_P_LP4_2 = 0x11,
	/* ADL-P DDR5 RVPs */
	ADL_P_DDR5_1 = 0x12,
	ADL_P_DDR5_2 = 0x16,
	/* ADL-P LPDDR5 RVP */
	ADL_P_LP5_1 = 0x13,
	ADL_P_LP5_2 = 0x17,
	/* ADL-P DDR4 RVPs */
	ADL_P_DDR4_1 = 0x14,
	ADL_P_DDR4_2 = 0x3F,
	/* ADL-M LP4 and LP5 RVPs */
	ADL_M_LP4 = 0x1,
	ADL_M_LP5 = 0x2,
};

/* The next set of functions return the gpio table and fill in the number of
 * entries for each table. */
const struct cros_gpio *variant_cros_gpios(size_t *num);
/* Functions to configure GPIO as per variant schematics */
void variant_configure_gpio_pads(void);
void variant_configure_early_gpio_pads(void);

size_t variant_memory_sku(void);
const struct mb_cfg *variant_memory_params(void);

/* Modify devictree settings during ramstage */
void variant_devtree_update(void);
struct cpu_power_limits {
	uint16_t mchid;
	unsigned int pl1_min_power;
	unsigned int pl1_max_power;
	unsigned int pl2_min_power;
	unsigned int pl2_max_power;
};
/* Modify Power Limit devictree settings during ramstage */
void variant_update_power_limits(void);

#endif /*__BASEBOARD_VARIANTS_H__ */