Debian Codegraph @

src/soc/amd/common/block/include/amdblocks/chip.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #ifndef AMD_BLOCK_CHIP_H
4 #define AMD_BLOCK_CHIP_H
5
6 #include <amdblocks/acp.h>
7 #include <amdblocks/espi.h>
8 #include <amdblocks/spi.h>
9 #include <stdint.h>
10
11 struct soc_amd_common_config {
12 /*
13 * SPI configuration
14 * Default values if not overridden by mainboard:
15 * Read mode - Normal 33MHz
16 * Normal speed - 66MHz
17 * Fast speed - 66MHz
18 * Alt speed - 66MHz
19 * TPM speed - 66MHz
20 */
21 struct spi_config spi_config;
22
23 /* eSPI configuration */
24 struct espi_config espi_config;
25
26 /* Options for these are in src/include/acpi/acpi.h */
27 uint16_t fadt_boot_arch;
28 uint32_t fadt_flags;
29
30 /* Audio Co-processor (ACP) configuration */
31 struct acp_config acp_config;
32 };
33
34 /*
35 * SoC callback that returns pointer to soc_amd_common_config structure embedded within the chip
36 * soc config.
37 */
38 const struct soc_amd_common_config *soc_get_common_config(void);
39
40 #endif /* AMD_BLOCK_CHIP_H */