blob: 8faf016e7c759850c2f8fd78b7986cc5fe7a797c [file] [log] [blame]
Christian Walterb646e282020-01-09 15:42:42 +01001chip soc/intel/cannonlake
Angel Pons0515aa12021-10-15 14:22:30 +02002 # FSP configuration
3
4 register "SataMode" = "0" # AHCI
5 register "SataSalpSupport" = "0"
6 register "satapwroptimize" = "1"
7 register "SataPortsDevSlp[1]" = "1" # PCH_M2_SATA_DEVSLP1
8
9 register "SataPortsEnable[0]" = "1"
10 register "SataPortsEnable[1]" = "1" # depends on SATAXPCIE1
11 register "SataPortsEnable[2]" = "0" # Not used for SATA
12 register "SataPortsEnable[3]" = "0" # Not used for SATA
13 register "SataPortsEnable[4]" = "1"
14 register "SataPortsEnable[5]" = "1"
15 register "SataPortsEnable[6]" = "1"
16 register "SataPortsEnable[7]" = "1"
17
18 register "SataPortsHotPlug[0]" = "1"
19 register "SataPortsHotPlug[1]" = "1"
20 register "SataPortsHotPlug[2]" = "0"
21 register "SataPortsHotPlug[3]" = "0"
22 register "SataPortsHotPlug[4]" = "1"
23 register "SataPortsHotPlug[5]" = "1"
24 register "SataPortsHotPlug[6]" = "1"
25 register "SataPortsHotPlug[7]" = "1"
26
27 register "PchHdaDspEnable" = "0"
28 register "PchHdaAudioLinkHda" = "1"
29
Angel Pons047835a2021-10-15 15:39:32 +020030 register "PcieClkSrcUsage[0]" = "20" # PCIe Slot1
31 register "PcieClkSrcUsage[1]" = "0x40" # PCIe Slot2
32 register "PcieClkSrcUsage[2]" = "0x42" # PCIe Slot4
33 register "PcieClkSrcUsage[3]" = "0x41" # PCIe Slot6
34 register "PcieClkSrcUsage[4]" = "8" # RP9 M2 Slot M x4
35 register "PcieClkSrcUsage[5]" = "15" # RP16 M2 Slot E x1
36 register "PcieClkSrcUsage[6]" = "14" # BMC
37 register "PcieClkSrcUsage[7]" = "4" # PHY 3
38 register "PcieClkSrcUsage[8]" = "PCIE_CLK_RP0" # PCIe Slot3
39 register "PcieClkSrcUsage[9]" = "5" # PHY 4
40 register "PcieClkSrcUsage[10]" = "6" # PHY 2
41 register "PcieClkSrcUsage[11]" = "7" # PHY 1
42 register "PcieClkSrcUsage[12]" = "13" # PHY 0
43 register "PcieClkSrcUsage[13]" = "0x42" # PB
Angel Pons1bfabb02021-10-15 15:11:38 +020044 register "PcieClkSrcUsage[14]" = "PCIE_CLK_NOTUSED"
45 register "PcieClkSrcUsage[15]" = "PCIE_CLK_NOTUSED"
Angel Pons0515aa12021-10-15 14:22:30 +020046
Angel Pons047835a2021-10-15 15:39:32 +020047 # Only enable CLKREQ# for M.2 slots
48 register "PcieClkSrcClkReq[0]" = "PCIE_CLK_NOTUSED"
49 register "PcieClkSrcClkReq[1]" = "PCIE_CLK_NOTUSED"
50 register "PcieClkSrcClkReq[2]" = "PCIE_CLK_NOTUSED"
51 register "PcieClkSrcClkReq[3]" = "PCIE_CLK_NOTUSED"
52 register "PcieClkSrcClkReq[4]" = "4" # M2_M_CLK_REQ_n
53 register "PcieClkSrcClkReq[5]" = "5" # M2_E_CLK_REQ_n
54 register "PcieClkSrcClkReq[6]" = "PCIE_CLK_NOTUSED"
55 register "PcieClkSrcClkReq[7]" = "PCIE_CLK_NOTUSED"
56 register "PcieClkSrcClkReq[8]" = "PCIE_CLK_NOTUSED"
57 register "PcieClkSrcClkReq[9]" = "PCIE_CLK_NOTUSED"
58 register "PcieClkSrcClkReq[10]" = "PCIE_CLK_NOTUSED"
59 register "PcieClkSrcClkReq[11]" = "PCIE_CLK_NOTUSED"
60 register "PcieClkSrcClkReq[12]" = "PCIE_CLK_NOTUSED"
61 register "PcieClkSrcClkReq[13]" = "PCIE_CLK_NOTUSED"
Angel Pons0515aa12021-10-15 14:22:30 +020062
63 # USB OC5-7: not connected
64 register "usb2_ports" = "{
65
66#define HERMES_USB2_CONFIG(pin) { \
67 .enable = 1, \
68 .ocpin = (pin), \
69 .tx_bias = USB2_BIAS_0MV, \
70 .tx_emp_enable = USB2_DE_EMP_ON_PRE_EMP_ON, \
71 .pre_emp_bias = USB2_BIAS_28P15MV, \
72 .pre_emp_bit = USB2_FULL_BIT_PRE_EMP, \
73}
74 [0] = HERMES_USB2_CONFIG(OC0), /* USB3 rear panel 1 */
75 [1] = HERMES_USB2_CONFIG(OC0),
76 [2] = HERMES_USB2_CONFIG(OC1), /* USB3 rear panel 2 */
77 [3] = HERMES_USB2_CONFIG(OC1),
78 [4] = HERMES_USB2_CONFIG(OC2), /* USB3 internal header CN_USB3_HDR */
79 [5] = HERMES_USB2_CONFIG(OC2),
80 [6] = HERMES_USB2_CONFIG(OC3), /* USB2 internal header USB2_HDR1 */
81 [7] = HERMES_USB2_CONFIG(OC3),
82 [8] = HERMES_USB2_CONFIG(OC4), /* USB2 internal header USB2_HDR1 */
83 [9] = HERMES_USB2_CONFIG(OC4),
84 [10] = HERMES_USB2_CONFIG(OC_SKIP), /* BMC */
85 [11] = USB2_PORT_EMPTY,
86 [12] = HERMES_USB2_CONFIG(OC_SKIP), /* piggy-back */
87 [13] = HERMES_USB2_CONFIG(OC_SKIP), /* M.2 key E */
88 }"
89
90 # USB Config 2.0/3.0
91 # Enumeration starts at 0
92 # USB 3.0
93 # USB OC0: RP1
94 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)"
95 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)"
96
97 # USB OC1: RP2
98 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC1)"
99 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC1)"
100
101 # USB OC2: Internal Header CN_USB3_HDR
102 register "usb3_ports[4]" = "USB3_PORT_DEFAULT(OC2)"
103 register "usb3_ports[5]" = "USB3_PORT_DEFAULT(OC2)"
104
105 # Thermal
106 register "tcc_offset" = "1" # TCC of 99C
107
108 # Disable S0ix
109 register "s0ix_enable" = "0"
110
111 # Enable Turbo
112 register "eist_enable" = "1"
113
114 register "common_soc_config" = "{
115 .gspi[0] = {
116 .speed_mhz = 1,
117 .early_init = 1,
118 },
119 }"
120
121 # VR Power Delivery Design
122 register "VrPowerDeliveryDesign" = "0x12"
123
124 register "SerialIoDevMode" = "{
125 [PchSerialIoIndexI2C0] = PchSerialIoDisabled,
126 [PchSerialIoIndexI2C1] = PchSerialIoDisabled,
127 [PchSerialIoIndexI2C2] = PchSerialIoDisabled,
128 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
129 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
130 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
131 [PchSerialIoIndexSPI0] = PchSerialIoPci,
132 [PchSerialIoIndexSPI1] = PchSerialIoDisabled,
133 [PchSerialIoIndexUART0] = PchSerialIoPci,
134 [PchSerialIoIndexUART1] = PchSerialIoPci,
135 [PchSerialIoIndexUART2] = PchSerialIoPci,
136 }"
137
138 register "DisableHeciRetry" = "1"
139
Christian Walterb646e282020-01-09 15:42:42 +0100140 device cpu_cluster 0 on
141 device lapic 0 on end
142 end
143
144 device domain 0 on
145 device pci 00.0 on end # Host Bridge
146 device pci 01.0 on # PEG x8 / Slot 2
147 smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthOther" "SLOT2" "SlotDataBusWidth8X"
148 end
149 device pci 01.1 on # PEG x4 or x8 / Slot 6
150 smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthOther" "SLOT6" "SlotDataBusWidth4X"
151 end
152 device pci 01.2 on # PEG x4 or disabled / Slot 4
153 smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthOther" "SLOT4" "SlotDataBusWidth4X"
154 end
Angel Pons0515aa12021-10-15 14:22:30 +0200155 device pci 02.0 on end # Integrated Graphics Device
Christian Walterb646e282020-01-09 15:42:42 +0100156 device pci 04.0 on end # SA Thermal device
Christian Walterb646e282020-01-09 15:42:42 +0100157 device pci 08.0 on end # Gaussian Mixture
158 device pci 12.0 on end # Thermal Subsystem
159 device pci 14.0 on end # USB xHCI
Patrick Rudolphae758fa2020-06-18 11:34:19 +0200160 device pci 14.1 off end # USB xDCI (OTG)
Christian Walterb646e282020-01-09 15:42:42 +0100161 device pci 14.2 on end # RAM controller
Angel Pons0515aa12021-10-15 14:22:30 +0200162 device pci 14.3 on
163 chip drivers/wifi/generic
164 register "wake" = "PME_B0_EN_BIT"
165 device generic 0 on end
166 end
167 end # CNVi wifi
Christian Walterb646e282020-01-09 15:42:42 +0100168 device pci 14.5 off end # SDCard
Michael Niewöhner50a10722020-11-04 00:19:28 +0100169 device pci 16.0 on end # Management Engine Interface 1
Felix Singer250a7ac2020-07-26 21:19:21 +0200170 device pci 16.1 on end # Management Engine Interface 2
Felix Singerd9e45942020-08-19 14:13:15 +0200171 device pci 16.4 off end # Management Engine Interface 3
Christian Walterb646e282020-01-09 15:42:42 +0100172 device pci 17.0 on end # SATA
Angel Pons0515aa12021-10-15 14:22:30 +0200173 # This device does not have any function on CNP-H, but it needs
174 # to be here so that the resource allocator is aware of UART 2.
175 device pci 19.0 hidden end
176 chip soc/intel/common/block/uart
177 device pci 19.2 hidden
178 register "devid" = "PCI_DEVICE_ID_INTEL_CNP_H_UART2"
179 end # UART #2, in ACPI mode
180 end
181 device pci 1b.4 on # PCIe root port 21 (Slot 1)
182 smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthOther" "SLOT1" "SlotDataBusWidth4X"
183 register "PcieRpEnable[20]" = "1"
184 register "PcieRpLtrEnable[20]" = "1"
185 register "PcieRpSlotImplemented[20]" = "1"
186 register "PcieRpMaxPayload[20]" = "RpMaxPayload_256"
187 register "PcieRpAdvancedErrorReporting[20]" = "1"
188 register "PcieRpAspm[20]" = "AspmDisabled"
189 end
190 device pci 1c.0 on # PCIe root port 1 (Slot 3)
191 smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthOther" "SLOT3" "SlotDataBusWidth4X"
192 register "PcieRpEnable[0]" = "1"
193 register "PcieRpLtrEnable[0]" = "1"
194 register "PcieRpSlotImplemented[0]" = "1"
195 register "PcieRpMaxPayload[0]" = "RpMaxPayload_256"
196 register "PcieRpAdvancedErrorReporting[0]" = "1"
197 register "PcieRpAspm[0]" = "AspmDisabled"
198 end
199 device pci 1c.4 on # PCIe root port 5 (PHY 3)
200 register "PcieRpEnable[4]" = "1"
Angel Pons9c30a2942021-10-15 15:42:14 +0200201 register "PcieRpLtrEnable[4]" = "1"
Angel Pons0515aa12021-10-15 14:22:30 +0200202 end
203 device pci 1c.5 on # PCIe root port 6 (PHY 4)
204 register "PcieRpEnable[5]" = "1"
Angel Pons9c30a2942021-10-15 15:42:14 +0200205 register "PcieRpLtrEnable[5]" = "1"
Angel Pons0515aa12021-10-15 14:22:30 +0200206 end
207 device pci 1c.6 on # PCIe root port 7 (PHY 2)
208 register "PcieRpEnable[6]" = "1"
Angel Pons9c30a2942021-10-15 15:42:14 +0200209 register "PcieRpLtrEnable[6]" = "1"
Angel Pons0515aa12021-10-15 14:22:30 +0200210 end
211 device pci 1c.7 on # PCIe root port 8 (PHY 1)
212 register "PcieRpEnable[7]" = "1"
Angel Pons9c30a2942021-10-15 15:42:14 +0200213 register "PcieRpLtrEnable[7]" = "1"
Angel Pons0515aa12021-10-15 14:22:30 +0200214 end
215 device pci 1d.0 on # PCIe root port 9 (M2 M)
216 smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthOther" "M2 M" "SlotDataBusWidth4X"
217 register "PcieRpEnable[8]" = "1"
Angel Pons9c30a2942021-10-15 15:42:14 +0200218 register "PcieRpLtrEnable[8]" = "1"
Angel Pons0515aa12021-10-15 14:22:30 +0200219 register "PcieRpSlotImplemented[8]" = "1"
220 end
221 device pci 1d.5 on # PCIe root port 14 (PHY 0)
222 register "PcieRpEnable[13]" = "1"
Angel Pons9c30a2942021-10-15 15:42:14 +0200223 register "PcieRpLtrEnable[13]" = "1"
Angel Pons0515aa12021-10-15 14:22:30 +0200224 end
225 device pci 1d.6 on # PCIe root port 15 (BMC)
226 device pci 00.0 on # Aspeed PCI Bridge
Christian Walterb646e282020-01-09 15:42:42 +0100227 device pci 00.0 on end # Aspeed 2500 VGA
228 end
Angel Pons0515aa12021-10-15 14:22:30 +0200229 register "PcieRpEnable[14]" = "1"
Angel Pons9c30a2942021-10-15 15:42:14 +0200230 register "PcieRpLtrEnable[14]" = "1"
Nico Huber119ace02019-10-02 16:02:06 +0200231 register "PcieRpSlotImplemented[14]" = "1"
Felix Singer2b9035e2020-08-18 23:12:55 +0200232 end
Angel Pons0515aa12021-10-15 14:22:30 +0200233 device pci 1d.7 on # PCIe root port 16 (M.2 E/CNVi)
234 # Disabled when CNVi is present
235 register "PcieRpEnable[15]" = "1"
Angel Pons9c30a2942021-10-15 15:42:14 +0200236 register "PcieRpLtrEnable[15]" = "1"
Angel Pons0515aa12021-10-15 14:22:30 +0200237 register "PcieRpSlotImplemented[15]" = "1"
238 end
239 device pci 1e.0 on end # UART #0
240 device pci 1e.1 on end # UART #1
241 device pci 1e.2 off end # GSPI #0
242 device pci 1e.3 off end # GSPI #1
Elyes HAOUASbda27cd2020-06-27 07:17:16 +0200243 device pci 1f.0 on # LPC Interface
Christian Walterb646e282020-01-09 15:42:42 +0100244 chip drivers/pc80/tpm
245 device pnp 0c31.0 on end
246 end
247 # AST2500, but not enabled to decode LPC cycles
248 end
Patrick Rudolph63df43d2021-09-11 08:17:39 +0200249 device pci 1f.1 on end # P2SB
250 device pci 1f.2 hidden end # Power Management Controller
251 device pci 1f.3 on end # Intel HDA
252 device pci 1f.4 on end # SMBus
253 device pci 1f.5 on end # PCH SPI
Christian Walterb646e282020-01-09 15:42:42 +0100254 end
Christian Walterb646e282020-01-09 15:42:42 +0100255end