coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
chip.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef _SOC_CHIP_H_
4 #define _SOC_CHIP_H_
5 
6 #include <intelblocks/cfg.h>
7 #include <soc/acpi.h>
8 #include <soc/gpio.h>
9 #include <soc/irq.h>
10 #include <stdint.h>
11 
12 #define MAX_PCH_PCIE_PORT 20
13 
14 /**
15  UPD_PCH_PCIE_PORT:
16  ForceEnable - Enable/Disable PCH PCIe port
17  PortLinkSpeed - Port Link Speed. Use PCIE_LINK_SPEED to set
18 **/
19 struct pch_pcie_port {
22 };
23 
24 /**
25  PCIe Link Speed Selection
26  **/
27 typedef enum {
28  PcieAuto = 0,
31  PcieGen3
33 
34 /**
35  enum for DDR Frequency Limit
36  **/
38  DDR_AUTO = 0x0,
39  DDR_1333 = 0x5,
40  DDR_1600 = 0x7,
41  DDR_1866 = 0x9,
42  DDR_2133 = 0xb,
43  DDR_2400 = 0xd,
44  DDR_2666 = 0xf,
45  DDR_2933 = 0x11,
46  DDR_3200 = 0x13
47 };
48 
50  /* Common struct containing soc config data required by common code */
52 
53  /* Struct for configuring PCH PCIe port */
55 
56  /**
57  * Interrupt Routing configuration
58  * If bit7 is 1, the interrupt is disabled.
59  */
68 
69  /**
70  * Device Interrupt Routing configuration
71  * Interrupt Pin x Route.
72  * 0h = PIRQA#
73  * 1h = PIRQB#
74  * 2h = PIRQC#
75  * 3h = PIRQD#
76  * 4h = PIRQE#
77  * 5h = PIRQF#
78  * 6h = PIRQG#
79  * 7h = PIRQH#
80  */
86 
87  /**
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
93  */
98 
101 
103 
106 
107  /* Generic IO decode ranges */
112 
113  /* TCC activation offset */
115 
117 };
118 
120 
121 #endif
pcie_link_speed
PCIe Link Speed Selection.
Definition: chip.h:27
@ PcieGen2
Definition: chip.h:30
@ PcieAuto
Definition: chip.h:28
@ PcieGen1
Definition: chip.h:29
@ PcieGen3
Definition: chip.h:31
#define MAX_PCH_PCIE_PORT
Definition: chip.h:12
ddr_freq_limit
enum for DDR Frequency Limit
Definition: chip.h:37
@ DDR_2933
Definition: chip.h:45
@ DDR_3200
Definition: chip.h:46
@ DDR_1333
Definition: chip.h:39
@ DDR_2400
Definition: chip.h:43
@ DDR_AUTO
Definition: chip.h:38
@ DDR_2666
Definition: chip.h:44
@ DDR_1866
Definition: chip.h:41
@ DDR_1600
Definition: chip.h:40
@ DDR_2133
Definition: chip.h:42
acpi_cstate_mode
Select C-state map set in config cstate_states.
Definition: acpi.h:11
unsigned short uint16_t
Definition: stdint.h:11
unsigned int uint32_t
Definition: stdint.h:14
unsigned long long uint64_t
Definition: stdint.h:17
unsigned char uint8_t
Definition: stdint.h:8
UPD_PCH_PCIE_PORT: ForceEnable - Enable/Disable PCH PCIe port PortLinkSpeed - Port Link Speed.
Definition: chip.h:19
uint8_t ForceEnable
Definition: chip.h:20
uint8_t PortLinkSpeed
Definition: chip.h:21
struct pch_pcie_port pch_pci_port[MAX_PCH_PCIE_PORT]
Definition: chip.h:54
uint8_t pirqa_routing
Interrupt Routing configuration If bit7 is 1, the interrupt is disabled.
Definition: chip.h:60
uint32_t ipc0
Device Interrupt Polarity Control ipc0 - IRQ-00-31 - 1: Active low to IOAPIC, 0: Active high to IOAPI...
Definition: chip.h:94
uint16_t ir00_routing
Device Interrupt Routing configuration Interrupt Pin x Route.
Definition: chip.h:81
enum acpi_cstate_mode cstate_states
Definition: chip.h:116
struct soc_intel_common_config common_soc_config
Definition: chip.h:51
uint64_t turbo_ratio_limit
Definition: chip.h:99
uint64_t turbo_ratio_limit_cores
Definition: chip.h:100