| 1 |
|
| 2 |
|
| 3 |
#ifndef _SOC_CHIP_H_ |
| 4 |
#define _SOC_CHIP_H_ |
| 5 |
|
| 6 |
#include <gpio.h> |
| 7 |
#include <intelblocks/cfg.h> |
| 8 |
#include <soc/acpi.h> |
| 9 |
#include <soc/irq.h> |
| 10 |
#include <stdint.h> |
| 11 |
|
| 12 |
#define MAX_PCH_PCIE_PORT 20 |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
struct pch_pcie_port { |
| 20 |
uint8_t ForceEnable; |
| 21 |
uint8_t PortLinkSpeed; |
| 22 |
}; |
| 23 |
|
| 24 |
struct soc_intel_xeon_sp_spr_config { |
| 25 |
|
| 26 |
struct soc_intel_common_config common_soc_config; |
| 27 |
|
| 28 |
|
| 29 |
struct pch_pcie_port pch_pci_port[MAX_PCH_PCIE_PORT]; |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
uint32_t ipc0; |
| 39 |
uint32_t ipc1; |
| 40 |
uint32_t ipc2; |
| 41 |
uint32_t ipc3; |
| 42 |
|
| 43 |
uint64_t turbo_ratio_limit; |
| 44 |
uint64_t turbo_ratio_limit_cores; |
| 45 |
|
| 46 |
uint32_t pstate_req_ratio; |
| 47 |
|
| 48 |
uint8_t vtd_support; |
| 49 |
|
| 50 |
|
| 51 |
uint32_t gen1_dec; |
| 52 |
uint32_t gen2_dec; |
| 53 |
uint32_t gen3_dec; |
| 54 |
uint32_t gen4_dec; |
| 55 |
|
| 56 |
|
| 57 |
uint32_t tcc_offset; |
| 58 |
|
| 59 |
enum acpi_cstate_mode cstate_states; |
| 60 |
}; |
| 61 |
|
| 62 |
typedef struct soc_intel_xeon_sp_spr_config config_t; |
| 63 |
|
| 64 |
#endif |