Debian Codegraph @

src/soc/intel/common/block/include/intelblocks/cfg.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #ifndef SOC_INTEL_COMMON_BLOCK_CFG_H
4 #define SOC_INTEL_COMMON_BLOCK_CFG_H
5
6 #include <boot/coreboot_tables.h>
7 #include <bootsplash.h>
8 #include <intelblocks/gspi.h>
9 #include <drivers/i2c/designware/dw_i2c.h>
10 #include <intelblocks/mmc.h>
11
12 enum {
13 CHIPSET_LOCKDOWN_COREBOOT = 0, /* coreboot handles locking */
14 CHIPSET_LOCKDOWN_FSP, /* FSP handles locking per UPDs */
15 };
16
17 /*
18 * This structure will hold data required by common blocks.
19 * These are soc specific configurations which will be filled by soc.
20 * We'll fill this structure once during init and use the data in common block.
21 */
22 struct soc_intel_common_config {
23 int chipset_lockdown;
24 struct gspi_cfg gspi[CONFIG_SOC_INTEL_COMMON_BLOCK_GSPI_MAX];
25 struct dw_i2c_bus_config i2c[CONFIG_SOC_INTEL_I2C_DEV_MAX];
26 /* PCH Thermal Trip Temperature in deg C */
27 uint8_t pch_thermal_trip;
28 struct mmc_dll_params emmc_dll;
29 enum lb_fb_orientation panel_orientation;
30 enum fw_splash_vertical_alignment logo_valignment;
31 /* Implies spacing from an edge for rendering footer logo */
32 uint8_t logo_bottom_margin;
33 };
34
35 /* This function to retrieve soc config structure required by common code */
36 struct soc_intel_common_config *chip_get_common_soc_structure(void);
37
38 #endif /* SOC_INTEL_COMMON_BLOCK_CFG_H */