blob: bb408a4351791e3257030bd668ee6eac9abfc74f [file] [log] [blame]
Michał Żygowski48be6b22019-06-27 12:19:18 +02001chip soc/intel/skylake
2
3 # Enable deep Sx states
4 register "deep_s3_enable_ac" = "0"
5 register "deep_s3_enable_dc" = "0"
6 register "deep_s5_enable_ac" = "1"
7 register "deep_s5_enable_dc" = "1"
8 register "deep_sx_config" = "DSX_EN_WAKE_PIN | DSX_DIS_AC_PRESENT_PD"
9 register "s0ix_enable" = "1"
10
11 register "gpe0_dw0" = "GPP_B"
12 register "gpe0_dw1" = "GPP_D"
13 register "gpe0_dw2" = "GPP_E"
14
15 register "gen1_dec" = "0x00fc0201"
16 register "gen2_dec" = "0x007c0a01"
17 register "gen3_dec" = "0x000c03e1"
18 register "gen4_dec" = "0x001c02e1"
19
20 # Enable "Intel Speed Shift Technology"
21 register "speed_shift_enable" = "1"
22 register "eist_enable" = "1"
23
24 # Disable DPTF
25 register "dptf_enable" = "0"
26
27 # Enable VT-d
28 register "ignore_vtd" = "0"
29
30 # Enable SERIRQ continuous
31 register "serirq_mode" = "SERIRQ_CONTINUOUS"
32
33 register "tcc_offset" = "5" # TCC of 95C
34
35 # FSP Configuration
36 register "ProbelessTrace" = "0"
37 register "EnableLan" = "0"
38 register "EnableSata" = "1"
39 register "SataSalpSupport" = "0"
40 register "SataMode" = "0"
Michał Żygowski48be6b22019-06-27 12:19:18 +020041 register "EnableAzalia" = "0"
42 register "DspEnable" = "0"
43 register "IoBufferOwnership" = "0"
44 register "EnableTraceHub" = "0"
45 register "SsicPortEnable" = "0"
46 register "SmbusEnable" = "1"
47 register "Cio2Enable" = "0"
48 register "ScsEmmcEnabled" = "0"
49 register "ScsEmmcHs400Enabled" = "0"
50 register "ScsSdCardEnabled" = "0"
51 register "SkipExtGfxScan" = "1"
52 register "Device4Enable" = "0"
53 register "HeciEnabled" = "1"
54 register "PmTimerDisabled" = "1"
55 register "SaGv" = "SaGv_Enabled"
56 register "SaImguEnable" = "0"
57 register "IslVrCmd" = "2"
58 register "PmConfigSlpS3MinAssert" = "2" # 50ms
59 register "PmConfigSlpS4MinAssert" = "4" # 4s
60 register "PmConfigSlpSusMinAssert" = "1" # 500ms
61 register "PmConfigSlpAMinAssert" = "3" # 2s
62
63 register "pirqa_routing" = "PCH_IRQ11"
64 register "pirqb_routing" = "PCH_IRQ10"
65 register "pirqc_routing" = "PCH_IRQ11"
66 register "pirqd_routing" = "PCH_IRQ11"
67 register "pirqe_routing" = "PCH_IRQ11"
68 register "pirqf_routing" = "PCH_IRQ11"
69 register "pirqg_routing" = "PCH_IRQ11"
70 register "pirqh_routing" = "PCH_IRQ11"
71
72 # VR Settings Configuration for 4 Domains
73 #+----------------+-------+-------+-------+-------+
74 #| Domain/Setting | SA | IA | GTUS | GTS |
75 #+----------------+-------+-------+-------+-------+
76 #| Psi1Threshold | 20A | 20A | 20A | 20A |
77 #| Psi2Threshold | 4A | 5A | 5A | 5A |
78 #| Psi3Threshold | 1A | 1A | 1A | 1A |
79 #| Psi3Enable | 1 | 1 | 1 | 1 |
80 #| Psi4Enable | 1 | 1 | 1 | 1 |
81 #| ImonSlope | 0 | 0 | 0 | 0 |
82 #| ImonOffset | 0 | 0 | 0 | 0 |
83 #| IccMax | 7A | 34A | 35A | 35A |
84 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
85 #| AcLoadline(ohm)| 10.3m | 2.4m | 3.1m | 3.1m |
86 #| DcLoadline(ohm)| 10.3m | 2.4m | 3.1m | 3.1m |
87 #+----------------+-------+-------+-------+-------+
88 #Note: IccMax settings are moved to SoC code
89 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
90 .vr_config_enable = 1,
91 .psi1threshold = VR_CFG_AMP(20),
92 .psi2threshold = VR_CFG_AMP(4),
93 .psi3threshold = VR_CFG_AMP(1),
94 .psi3enable = 1,
95 .psi4enable = 1,
96 .imon_slope = 0x0,
97 .imon_offset = 0x0,
98 .voltage_limit = 1520,
99 }"
100
101 register "domain_vr_config[VR_IA_CORE]" = "{
102 .vr_config_enable = 1,
103 .psi1threshold = VR_CFG_AMP(20),
104 .psi2threshold = VR_CFG_AMP(5),
105 .psi3threshold = VR_CFG_AMP(1),
106 .psi3enable = 1,
107 .psi4enable = 1,
108 .imon_slope = 0x0,
109 .imon_offset = 0x0,
110 .voltage_limit = 1520,
111 }"
112
113 register "domain_vr_config[VR_GT_UNSLICED]" = "{
114 .vr_config_enable = 1,
115 .psi1threshold = VR_CFG_AMP(20),
116 .psi2threshold = VR_CFG_AMP(5),
117 .psi3threshold = VR_CFG_AMP(1),
118 .psi3enable = 1,
119 .psi4enable = 1,
120 .imon_slope = 0x0,
121 .imon_offset = 0x0,
122 .voltage_limit = 1520,
123 }"
124
125 register "domain_vr_config[VR_GT_SLICED]" = "{
126 .vr_config_enable = 1,
127 .psi1threshold = VR_CFG_AMP(20),
128 .psi2threshold = VR_CFG_AMP(5),
129 .psi3threshold = VR_CFG_AMP(1),
130 .psi3enable = 1,
131 .psi4enable = 1,
132 .imon_slope = 0x0,
133 .imon_offset = 0x0,
134 .voltage_limit = 1520,
135 }"
136
137 # Send an extra VR mailbox command for the PS4 exit issue
138 register "SendVrMbxCmd" = "2"
139
140 # Enable SATA ports 1,2
141 register "SataPortsEnable[0]" = "1"
142 register "SataPortsEnable[1]" = "1"
143 register "SataPortsEnable[2]" = "0"
144 register "SataPortsDevSlp[0]" = "0"
145 register "SataPortsDevSlp[1]" = "0"
146
147 # Enable Root ports. 1-6 for LAN and Root Port 9
148 register "PcieRpEnable[0]" = "1"
149 register "PcieRpEnable[1]" = "1"
150 register "PcieRpEnable[2]" = "1"
151 register "PcieRpEnable[3]" = "1"
152 register "PcieRpEnable[4]" = "1"
153 register "PcieRpEnable[5]" = "1"
154 register "PcieRpEnable[8]" = "1" # mPCIe WiFi
155
156 # Enable Advanced Error Reporting for RP 1-6, 9
157 register "PcieRpAdvancedErrorReporting[0]" = "1"
158 register "PcieRpAdvancedErrorReporting[1]" = "1"
159 register "PcieRpAdvancedErrorReporting[2]" = "1"
160 register "PcieRpAdvancedErrorReporting[3]" = "1"
161 register "PcieRpAdvancedErrorReporting[4]" = "1"
162 register "PcieRpAdvancedErrorReporting[5]" = "1"
163 register "PcieRpAdvancedErrorReporting[8]" = "1"
164
165 # Enable Latency Tolerance Reporting Mechanism RP 1-6, 9
166 register "PcieRpLtrEnable[0]" = "1"
167 register "PcieRpLtrEnable[1]" = "1"
168 register "PcieRpLtrEnable[2]" = "1"
169 register "PcieRpLtrEnable[3]" = "1"
170 register "PcieRpLtrEnable[4]" = "1"
171 register "PcieRpLtrEnable[5]" = "1"
172 register "PcieRpLtrEnable[8]" = "1"
173
174 # Enable RP 9 CLKREQ# support
175 register "PcieRpClkReqSupport[8]" = "1"
176 # RP 9 uses CLKREQ0#
177 register "PcieRpClkReqNumber[8]" = "0"
178
179 # Clocks 0-5 for RP 1-6
180 register "PcieRpClkSrcNumber[0]" = "0"
181 register "PcieRpClkSrcNumber[1]" = "1"
182 register "PcieRpClkSrcNumber[2]" = "2"
183 register "PcieRpClkSrcNumber[3]" = "3"
184 register "PcieRpClkSrcNumber[4]" = "4"
185 register "PcieRpClkSrcNumber[5]" = "5"
186 # RP 9 shares CLKSRC5# with RP 6
187 register "PcieRpClkSrcNumber[8]" = "5"
188
189
190 # USB 2.0 enable ports 1-8, disable ports 9-12
191 register "usb2_ports[0]" = "USB2_PORT_SHORT(OC_SKIP)" # TYPE-A Port
192 register "usb2_ports[1]" = "USB2_PORT_SHORT(OC_SKIP)" # TYPE-A Port
193 register "usb2_ports[2]" = "USB2_PORT_SHORT(OC_SKIP)" # TYPE-A Port
194 register "usb2_ports[3]" = "USB2_PORT_SHORT(OC_SKIP)" # TYPE-A Port
195 register "usb2_ports[4]" = "USB2_PORT_SHORT(OC_SKIP)" # Type-A Port
196 register "usb2_ports[5]" = "USB2_PORT_SHORT(OC_SKIP)" # TYPE-A Port
197 register "usb2_ports[6]" = "USB2_PORT_SHORT(OC_SKIP)" # TYPE-A Port
198 register "usb2_ports[7]" = "USB2_PORT_SHORT(OC_SKIP)" # mPCIe slot
199 register "usb2_ports[8]" = "USB2_PORT_EMPTY" # Disabled
200 register "usb2_ports[9]" = "USB2_PORT_EMPTY" # Disabled
201 register "usb2_ports[10]" = "USB2_PORT_EMPTY" # Disabled
202 register "usb2_ports[11]" = "USB2_PORT_EMPTY" # Disabled
203
204 # USB 3.0 enable ports 1-4, disable ports 5-6
205 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # TYPE-A Port
206 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # TYPE-A Port
207 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # TYPE-A Port
208 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # TYPE-A Port
209 register "usb3_ports[4]" = "USB3_PORT_EMPTY" # Disabled
210 register "usb3_ports[5]" = "USB3_PORT_EMPTY" # Disabled
211
212 register "SerialIoDevMode" = "{ \
213 [PchSerialIoIndexI2C0] = PchSerialIoDisabled, \
214 [PchSerialIoIndexI2C1] = PchSerialIoDisabled, \
215 [PchSerialIoIndexI2C2] = PchSerialIoDisabled, \
216 [PchSerialIoIndexI2C3] = PchSerialIoDisabled, \
217 [PchSerialIoIndexI2C4] = PchSerialIoDisabled, \
218 [PchSerialIoIndexI2C5] = PchSerialIoDisabled, \
219 [PchSerialIoIndexSpi0] = PchSerialIoDisabled, \
220 [PchSerialIoIndexSpi1] = PchSerialIoDisabled, \
221 [PchSerialIoIndexUart0] = PchSerialIoDisabled, \
222 [PchSerialIoIndexUart1] = PchSerialIoDisabled, \
223 [PchSerialIoIndexUart2] = PchSerialIoDisabled, \
224 }"
225
226 # Lock Down CHIPSET_LOCKDOWN_COREBOOT
227 register "common_soc_config" = "{
228 .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
229 }"
230
231 device cpu_cluster 0 on
232 device lapic 0 on end
233 end
234 device domain 0 on
235 device pci 00.0 on end # Host Bridge
236 device pci 02.0 on end # Integrated Graphics Device
237 device pci 08.0 off end # Gaussian Mixture Model
238 device pci 13.0 off end # Integrated Sensor Hub
239 device pci 14.0 on end # USB xHCI
240 device pci 14.1 off end # USB xDCI (OTG)
241 device pci 14.2 off end # Thermal Subsystem
242 device pci 14.3 off end # Camera I/O Host Controller
243 device pci 15.0 off end # I2C #0
244 device pci 15.1 off end # I2C #1
245 device pci 15.2 off end # I2C #2
246 device pci 15.3 off end # I2C #3
247 device pci 16.0 on end # Management Engine Interface 1
248 device pci 16.1 off end # Management Engine Interface 2
249 device pci 16.2 off end # Management Engine IDE-R
250 device pci 16.3 off end # Management Engine KT Redirection
251 device pci 16.4 off end # Management Engine Interface 3
252 device pci 17.0 on end # SATA
253 device pci 19.0 off end # UART #2
254 device pci 19.1 off end # I2C #5
255 device pci 19.2 off end # I2C #4
256 device pci 1c.0 on end # PCI Express Port 1
257 device pci 1c.1 on end # PCI Express Port 2
258 device pci 1c.2 on end # PCI Express Port 3
259 device pci 1c.3 on end # PCI Express Port 4
260 device pci 1c.4 on end # PCI Express Port 5
261 device pci 1c.5 on end # PCI Express Port 6
262 device pci 1c.6 off end # PCI Express Port 7
263 device pci 1c.7 off end # PCI Express Port 8
264 device pci 1d.0 on # PCI Express Port 9 - WiFi
265 smbios_slot_desc
266 "SlotTypePciExpressMini52pinWithoutBSKO"
267 "SlotLengthShort" "WIFI1" "SlotDataBusWidth1X"
268 end
269 device pci 1d.1 off end # PCI Express Port 10
270 device pci 1d.2 off end # PCI Express Port 11
271 device pci 1d.3 off end # PCI Express Port 12
272 device pci 1e.0 off end # UART #0
273 device pci 1e.1 off end # UART #1
274 device pci 1e.2 off end # GSPI #0
275 device pci 1e.3 off end # GSPI #1
276 device pci 1e.4 off end # eMMC
277 device pci 1e.5 off end # SDIO
278 device pci 1e.6 off end # SDCard
279 device pci 1f.0 on
280 chip superio/ite/it8772f
281 register "peci_tmpin" = "3"
282 register "tmpin1_mode" = "THERMAL_RESISTOR"
283 register "tmpin2_mode" = "THERMAL_RESISTOR"
284 # FAN2 available on fan header but unused
285 device pnp 2e.0 off end # FDC
286 device pnp 2e.1 on # Serial Port 1
287 io 0x60 = 0x3f8
288 irq 0x70 = 4
289 end
290 device pnp 2e.4 on # Environment Controller
291 io 0x60 = 0xa40
292 io 0x62 = 0xa30
293 irq 0x70 = 9
294 end
295 device pnp 2e.5 off end # Keyboard
296 device pnp 2e.6 off end # Mouse
297 device pnp 2e.7 off end # GPIO
298 device pnp 2e.a off end # IR
299 end
300 end # LPC Interface
301 device pci 1f.1 on end # P2SB
302 device pci 1f.2 on end # Power Management Controller
303 device pci 1f.3 off end # Intel HDA
304 device pci 1f.4 on end # SMBus
305 device pci 1f.5 off end # PCH SPI
306 device pci 1f.6 off end # GbE
307 end
Michał Żygowski7896b8c2020-06-19 17:15:51 +0200308 chip drivers/crb
309 device mmio 0xfed40000 on end
310 end
Michał Żygowski48be6b22019-06-27 12:19:18 +0200311end