blob: 69658211f93a5170e79427fb0c272957f0b5692c [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
30 # Controls the CLKREQ, not the output directly.
31 # Depends on the CLKREQ to CLK gen mapping below
32 register "PcieClkSrcUsage[0]" = "PCIE_CLK_FREE" # BMC, PCIe Slot1, Slot2, Slot4, Slot6
33 register "PcieClkSrcUsage[1]" = "PCIE_CLK_FREE" # PHY3
34 register "PcieClkSrcUsage[2]" = "PCIE_CLK_NOTUSED"
35 register "PcieClkSrcUsage[3]" = "PCIE_CLK_NOTUSED"
36 register "PcieClkSrcUsage[4]" = "PCIE_CLK_FREE" # RP9 M2 Slot M x4
37 register "PcieClkSrcUsage[5]" = "PCIE_CLK_FREE" # RP16 M2 Slot E x1
38 register "PcieClkSrcUsage[6]" = "PCIE_CLK_NOTUSED"
39 register "PcieClkSrcUsage[7]" = "PCIE_CLK_NOTUSED"
40 register "PcieClkSrcUsage[8]" = "PCIE_CLK_NOTUSED"
41 register "PcieClkSrcUsage[9]" = "PCIE_CLK_NOTUSED"
42 register "PcieClkSrcUsage[10]" = "PCIE_CLK_NOTUSED"
43 register "PcieClkSrcUsage[11]" = "PCIE_CLK_NOTUSED"
44 register "PcieClkSrcUsage[12]" = "PCIE_CLK_NOTUSED"
45 register "PcieClkSrcUsage[13]" = "PCIE_CLK_FREE" # PHY 0, PHY 1, PHY 2, PHY 4
46 register "PcieClkSrcUsage[14]" = "PCIE_CLK_FREE" # PB
47 register "PcieClkSrcUsage[15]" = "PCIE_CLK_FREE" # PCIe Slot3
48
49 # Only map M2 CLKREQ to CLK gen
50 register "PcieClkSrcClkReq[4]" = "4" # M2_M_CLK_REQ_n
51 register "PcieClkSrcClkReq[5]" = "5" # M2_E_CLK_REQ_n
52
53 # USB OC5-7: not connected
54 register "usb2_ports" = "{
55
56#define HERMES_USB2_CONFIG(pin) { \
57 .enable = 1, \
58 .ocpin = (pin), \
59 .tx_bias = USB2_BIAS_0MV, \
60 .tx_emp_enable = USB2_DE_EMP_ON_PRE_EMP_ON, \
61 .pre_emp_bias = USB2_BIAS_28P15MV, \
62 .pre_emp_bit = USB2_FULL_BIT_PRE_EMP, \
63}
64 [0] = HERMES_USB2_CONFIG(OC0), /* USB3 rear panel 1 */
65 [1] = HERMES_USB2_CONFIG(OC0),
66 [2] = HERMES_USB2_CONFIG(OC1), /* USB3 rear panel 2 */
67 [3] = HERMES_USB2_CONFIG(OC1),
68 [4] = HERMES_USB2_CONFIG(OC2), /* USB3 internal header CN_USB3_HDR */
69 [5] = HERMES_USB2_CONFIG(OC2),
70 [6] = HERMES_USB2_CONFIG(OC3), /* USB2 internal header USB2_HDR1 */
71 [7] = HERMES_USB2_CONFIG(OC3),
72 [8] = HERMES_USB2_CONFIG(OC4), /* USB2 internal header USB2_HDR1 */
73 [9] = HERMES_USB2_CONFIG(OC4),
74 [10] = HERMES_USB2_CONFIG(OC_SKIP), /* BMC */
75 [11] = USB2_PORT_EMPTY,
76 [12] = HERMES_USB2_CONFIG(OC_SKIP), /* piggy-back */
77 [13] = HERMES_USB2_CONFIG(OC_SKIP), /* M.2 key E */
78 }"
79
80 # USB Config 2.0/3.0
81 # Enumeration starts at 0
82 # USB 3.0
83 # USB OC0: RP1
84 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)"
85 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)"
86
87 # USB OC1: RP2
88 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC1)"
89 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC1)"
90
91 # USB OC2: Internal Header CN_USB3_HDR
92 register "usb3_ports[4]" = "USB3_PORT_DEFAULT(OC2)"
93 register "usb3_ports[5]" = "USB3_PORT_DEFAULT(OC2)"
94
95 # Thermal
96 register "tcc_offset" = "1" # TCC of 99C
97
98 # Disable S0ix
99 register "s0ix_enable" = "0"
100
101 # Enable Turbo
102 register "eist_enable" = "1"
103
104 register "common_soc_config" = "{
105 .gspi[0] = {
106 .speed_mhz = 1,
107 .early_init = 1,
108 },
109 }"
110
111 # VR Power Delivery Design
112 register "VrPowerDeliveryDesign" = "0x12"
113
114 register "SerialIoDevMode" = "{
115 [PchSerialIoIndexI2C0] = PchSerialIoDisabled,
116 [PchSerialIoIndexI2C1] = PchSerialIoDisabled,
117 [PchSerialIoIndexI2C2] = PchSerialIoDisabled,
118 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
119 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
120 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
121 [PchSerialIoIndexSPI0] = PchSerialIoPci,
122 [PchSerialIoIndexSPI1] = PchSerialIoDisabled,
123 [PchSerialIoIndexUART0] = PchSerialIoPci,
124 [PchSerialIoIndexUART1] = PchSerialIoPci,
125 [PchSerialIoIndexUART2] = PchSerialIoPci,
126 }"
127
128 register "DisableHeciRetry" = "1"
129
Christian Walterb646e282020-01-09 15:42:42 +0100130 device cpu_cluster 0 on
131 device lapic 0 on end
132 end
133
134 device domain 0 on
135 device pci 00.0 on end # Host Bridge
136 device pci 01.0 on # PEG x8 / Slot 2
137 smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthOther" "SLOT2" "SlotDataBusWidth8X"
138 end
139 device pci 01.1 on # PEG x4 or x8 / Slot 6
140 smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthOther" "SLOT6" "SlotDataBusWidth4X"
141 end
142 device pci 01.2 on # PEG x4 or disabled / Slot 4
143 smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthOther" "SLOT4" "SlotDataBusWidth4X"
144 end
Angel Pons0515aa12021-10-15 14:22:30 +0200145 device pci 02.0 on end # Integrated Graphics Device
Christian Walterb646e282020-01-09 15:42:42 +0100146 device pci 04.0 on end # SA Thermal device
Christian Walterb646e282020-01-09 15:42:42 +0100147 device pci 08.0 on end # Gaussian Mixture
148 device pci 12.0 on end # Thermal Subsystem
149 device pci 14.0 on end # USB xHCI
Patrick Rudolphae758fa2020-06-18 11:34:19 +0200150 device pci 14.1 off end # USB xDCI (OTG)
Christian Walterb646e282020-01-09 15:42:42 +0100151 device pci 14.2 on end # RAM controller
Angel Pons0515aa12021-10-15 14:22:30 +0200152 device pci 14.3 on
153 chip drivers/wifi/generic
154 register "wake" = "PME_B0_EN_BIT"
155 device generic 0 on end
156 end
157 end # CNVi wifi
Christian Walterb646e282020-01-09 15:42:42 +0100158 device pci 14.5 off end # SDCard
Michael Niewöhner50a10722020-11-04 00:19:28 +0100159 device pci 16.0 on end # Management Engine Interface 1
Felix Singer250a7ac2020-07-26 21:19:21 +0200160 device pci 16.1 on end # Management Engine Interface 2
Felix Singerd9e45942020-08-19 14:13:15 +0200161 device pci 16.4 off end # Management Engine Interface 3
Christian Walterb646e282020-01-09 15:42:42 +0100162 device pci 17.0 on end # SATA
Angel Pons0515aa12021-10-15 14:22:30 +0200163 # This device does not have any function on CNP-H, but it needs
164 # to be here so that the resource allocator is aware of UART 2.
165 device pci 19.0 hidden end
166 chip soc/intel/common/block/uart
167 device pci 19.2 hidden
168 register "devid" = "PCI_DEVICE_ID_INTEL_CNP_H_UART2"
169 end # UART #2, in ACPI mode
170 end
171 device pci 1b.4 on # PCIe root port 21 (Slot 1)
172 smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthOther" "SLOT1" "SlotDataBusWidth4X"
173 register "PcieRpEnable[20]" = "1"
174 register "PcieRpLtrEnable[20]" = "1"
175 register "PcieRpSlotImplemented[20]" = "1"
176 register "PcieRpMaxPayload[20]" = "RpMaxPayload_256"
177 register "PcieRpAdvancedErrorReporting[20]" = "1"
178 register "PcieRpAspm[20]" = "AspmDisabled"
179 end
180 device pci 1c.0 on # PCIe root port 1 (Slot 3)
181 smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthOther" "SLOT3" "SlotDataBusWidth4X"
182 register "PcieRpEnable[0]" = "1"
183 register "PcieRpLtrEnable[0]" = "1"
184 register "PcieRpSlotImplemented[0]" = "1"
185 register "PcieRpMaxPayload[0]" = "RpMaxPayload_256"
186 register "PcieRpAdvancedErrorReporting[0]" = "1"
187 register "PcieRpAspm[0]" = "AspmDisabled"
188 end
189 device pci 1c.4 on # PCIe root port 5 (PHY 3)
190 register "PcieRpEnable[4]" = "1"
191 end
192 device pci 1c.5 on # PCIe root port 6 (PHY 4)
193 register "PcieRpEnable[5]" = "1"
194 end
195 device pci 1c.6 on # PCIe root port 7 (PHY 2)
196 register "PcieRpEnable[6]" = "1"
197 end
198 device pci 1c.7 on # PCIe root port 8 (PHY 1)
199 register "PcieRpEnable[7]" = "1"
200 end
201 device pci 1d.0 on # PCIe root port 9 (M2 M)
202 smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthOther" "M2 M" "SlotDataBusWidth4X"
203 register "PcieRpEnable[8]" = "1"
204 register "PcieRpSlotImplemented[8]" = "1"
205 end
206 device pci 1d.5 on # PCIe root port 14 (PHY 0)
207 register "PcieRpEnable[13]" = "1"
208 end
209 device pci 1d.6 on # PCIe root port 15 (BMC)
210 device pci 00.0 on # Aspeed PCI Bridge
Christian Walterb646e282020-01-09 15:42:42 +0100211 device pci 00.0 on end # Aspeed 2500 VGA
212 end
Angel Pons0515aa12021-10-15 14:22:30 +0200213 register "PcieRpEnable[14]" = "1"
Nico Huber119ace02019-10-02 16:02:06 +0200214 register "PcieRpSlotImplemented[14]" = "1"
Felix Singer2b9035e2020-08-18 23:12:55 +0200215 end
Angel Pons0515aa12021-10-15 14:22:30 +0200216 device pci 1d.7 on # PCIe root port 16 (M.2 E/CNVi)
217 # Disabled when CNVi is present
218 register "PcieRpEnable[15]" = "1"
219 register "PcieRpSlotImplemented[15]" = "1"
220 end
221 device pci 1e.0 on end # UART #0
222 device pci 1e.1 on end # UART #1
223 device pci 1e.2 off end # GSPI #0
224 device pci 1e.3 off end # GSPI #1
Elyes HAOUASbda27cd2020-06-27 07:17:16 +0200225 device pci 1f.0 on # LPC Interface
Christian Walterb646e282020-01-09 15:42:42 +0100226 chip drivers/pc80/tpm
227 device pnp 0c31.0 on end
228 end
229 # AST2500, but not enabled to decode LPC cycles
230 end
Patrick Rudolph63df43d2021-09-11 08:17:39 +0200231 device pci 1f.1 on end # P2SB
232 device pci 1f.2 hidden end # Power Management Controller
233 device pci 1f.3 on end # Intel HDA
234 device pci 1f.4 on end # SMBus
235 device pci 1f.5 on end # PCH SPI
Christian Walterb646e282020-01-09 15:42:42 +0100236 end
Christian Walterb646e282020-01-09 15:42:42 +0100237end