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