1 /* SPDX-License-Identifier: GPL-2.0-only */
7 #include <intelblocks/cfg.h>
12 #define MAX_PCH_PCIE_PORT 20
16 ForceEnable - Enable/Disable PCH PCIe port
17 PortLinkSpeed - Port Link Speed. Use PCIE_LINK_SPEED to set
19 struct pch_pcie_port
{
21 uint8_t PortLinkSpeed
;
25 PCIe Link Speed Selection
35 enum for DDR Frequency Limit
49 struct soc_intel_xeon_sp_cpx_config
{
50 /* Common struct containing soc config data required by common code */
51 struct soc_intel_common_config common_soc_config
;
53 /* Struct for configuring PCH PCIe port */
54 struct pch_pcie_port pch_pci_port
[MAX_PCH_PCIE_PORT
];
57 * Interrupt Routing configuration
58 * If bit7 is 1, the interrupt is disabled.
60 uint8_t pirqa_routing
;
61 uint8_t pirqb_routing
;
62 uint8_t pirqc_routing
;
63 uint8_t pirqd_routing
;
64 uint8_t pirqe_routing
;
65 uint8_t pirqf_routing
;
66 uint8_t pirqg_routing
;
67 uint8_t pirqh_routing
;
70 * Device Interrupt Routing configuration
71 * Interrupt Pin x Route.
81 uint16_t ir00_routing
;
82 uint16_t ir01_routing
;
83 uint16_t ir02_routing
;
84 uint16_t ir03_routing
;
85 uint16_t ir04_routing
;
88 * Device Interrupt Polarity Control
89 * ipc0 - IRQ-00-31 - 1: Active low to IOAPIC, 0: Active high to IOAPIC
90 * ipc1 - IRQ-32-63 - 1: Active low to IOAPIC, 0: Active high to IOAPIC
91 * ipc2 - IRQ-64-95 - 1: Active low to IOAPIC, 0: Active high to IOAPIC
92 * ipc3 - IRQ-96-119 - 1: Active low to IOAPIC, 0: Active high to IOAPIC
99 uint64_t turbo_ratio_limit
;
100 uint64_t turbo_ratio_limit_cores
;
102 uint32_t pstate_req_ratio
;
107 /* Generic IO decode ranges */
113 /* TCC activation offset */
116 enum acpi_cstate_mode cstate_states
;
119 typedef struct soc_intel_xeon_sp_cpx_config config_t
;