blob: ffd33a23d5f2efebf606ed4ca463d25f04b14b04 [file] [log] [blame]
Youness Alaoui047475c2017-05-08 16:50:23 -04001chip 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_LAN_WAKE_PIN"
9
10 # GPE configuration
11 # Note that GPE events called out in ASL code rely on this
12 # route. i.e. If this route changes then the affected GPE
13 # offset bits also need to be changed.
Youness Alaoui34a30a62017-05-25 13:25:41 -050014 register "gpe0_dw0" = "GPP_C"
Youness Alaoui047475c2017-05-08 16:50:23 -040015 register "gpe0_dw1" = "GPP_D"
16 register "gpe0_dw2" = "GPP_E"
17
18 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
19 register "gen1_dec" = "0x00fc0801"
20 register "gen2_dec" = "0x000c0201"
21
22 # Enable "Intel Speed Shift Technology"
23 register "speed_shift_enable" = "1"
24
25 # Enable DPTF
26 register "dptf_enable" = "1"
27
28 # FSP Configuration
29 register "ProbelessTrace" = "0"
30 register "EnableLan" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050031 register "EnableSata" = "1"
Youness Alaoui047475c2017-05-08 16:50:23 -040032 register "SataSalpSupport" = "0"
33 register "SataMode" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050034 register "SataPortsEnable[0]" = "1"
35 register "SataPortsEnable[2]" = "1"
Youness Alaoui047475c2017-05-08 16:50:23 -040036 register "EnableAzalia" = "1"
37 register "DspEnable" = "1"
38 register "IoBufferOwnership" = "3"
39 register "EnableTraceHub" = "0"
40 register "XdciEnable" = "0"
41 register "SsicPortEnable" = "0"
42 register "SmbusEnable" = "1"
43 register "Cio2Enable" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050044 register "ScsEmmcEnabled" = "0"
45 register "ScsEmmcHs400Enabled" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040046 register "ScsSdCardEnabled" = "0"
47 register "IshEnable" = "0"
48 register "PttSwitch" = "0"
49 register "InternalGfx" = "1"
50 register "SkipExtGfxScan" = "1"
51 register "Device4Enable" = "1"
52 register "HeciEnabled" = "0"
53 register "FspSkipMpInit" = "1"
54 register "SaGv" = "3"
55 register "SerialIrqConfigSirqEnable" = "1"
56 register "PmConfigSlpS3MinAssert" = "2" # 50ms
57 register "PmConfigSlpS4MinAssert" = "1" # 1s
58 register "PmConfigSlpSusMinAssert" = "1" # 500ms
59 register "PmConfigSlpAMinAssert" = "3" # 2s
Matt DeVillier0ff3b732017-05-25 15:31:49 -050060 register "PmTimerDisabled" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040061
62 register "pirqa_routing" = "PCH_IRQ11"
63 register "pirqb_routing" = "PCH_IRQ10"
64 register "pirqc_routing" = "PCH_IRQ11"
65 register "pirqd_routing" = "PCH_IRQ11"
66 register "pirqe_routing" = "PCH_IRQ11"
67 register "pirqf_routing" = "PCH_IRQ11"
68 register "pirqg_routing" = "PCH_IRQ11"
69 register "pirqh_routing" = "PCH_IRQ11"
70
71 # VR Settings Configuration for 5 Domains
72 #+----------------+-------+-------+-------------+-------------+-------+
73 #| Domain/Setting | SA | IA | Ring Sliced | GT Unsliced | GT |
74 #+----------------+-------+-------+-------------+-------------+-------+
75 #| Psi1Threshold | 20A | 20A | 20A | 20A | 20A |
76 #| Psi2Threshold | 4A | 5A | 5A | 5A | 5A |
77 #| Psi3Threshold | 1A | 1A | 1A | 1A | 1A |
78 #| Psi3Enable | 1 | 1 | 1 | 1 | 1 |
79 #| Psi4Enable | 1 | 1 | 1 | 1 | 1 |
80 #| ImonSlope | 0 | 0 | 0 | 0 | 0 |
81 #| ImonOffset | 0 | 0 | 0 | 0 | 0 |
82 #| IccMax | 7A | 34A | 34A | 35A | 35A |
83 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V | 1.52V |
84 #+----------------+-------+-------+-------------+-------------+-------+
85 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
86 .vr_config_enable = 1,
87 .psi1threshold = VR_CFG_AMP(20),
88 .psi2threshold = VR_CFG_AMP(4),
89 .psi3threshold = VR_CFG_AMP(1),
90 .psi3enable = 1,
91 .psi4enable = 1,
92 .imon_slope = 0x0,
93 .imon_offset = 0x0,
94 .icc_max = VR_CFG_AMP(7),
95 .voltage_limit = 1520,
96 }"
97
98 register "domain_vr_config[VR_IA_CORE]" = "{
99 .vr_config_enable = 1,
100 .psi1threshold = VR_CFG_AMP(20),
101 .psi2threshold = VR_CFG_AMP(5),
102 .psi3threshold = VR_CFG_AMP(1),
103 .psi3enable = 1,
104 .psi4enable = 1,
105 .imon_slope = 0x0,
106 .imon_offset = 0x0,
107 .icc_max = VR_CFG_AMP(34),
108 .voltage_limit = 1520,
109 }"
110
111 register "domain_vr_config[VR_RING]" = "{
112 .vr_config_enable = 1,
113 .psi1threshold = VR_CFG_AMP(20),
114 .psi2threshold = VR_CFG_AMP(5),
115 .psi3threshold = VR_CFG_AMP(1),
116 .psi3enable = 1,
117 .psi4enable = 1,
118 .imon_slope = 0x0,
119 .imon_offset = 0x0,
120 .icc_max = VR_CFG_AMP(34),
121 .voltage_limit = 1520,
122 }"
123
124 register "domain_vr_config[VR_GT_UNSLICED]" = "{
125 .vr_config_enable = 1,
126 .psi1threshold = VR_CFG_AMP(20),
127 .psi2threshold = VR_CFG_AMP(5),
128 .psi3threshold = VR_CFG_AMP(1),
129 .psi3enable = 1,
130 .psi4enable = 1,
131 .imon_slope = 0x0,
132 .imon_offset = 0x0,
133 .icc_max = VR_CFG_AMP(35),
134 .voltage_limit = 1520,
135 }"
136
137 register "domain_vr_config[VR_GT_SLICED]" = "{
138 .vr_config_enable = 1,
139 .psi1threshold = VR_CFG_AMP(20),
140 .psi2threshold = VR_CFG_AMP(5),
141 .psi3threshold = VR_CFG_AMP(1),
142 .psi3enable = 1,
143 .psi4enable = 1,
144 .imon_slope = 0x0,
145 .imon_offset = 0x0,
146 .icc_max = VR_CFG_AMP(35),
147 .voltage_limit = 1520,
148 }"
149
Youness Alaouidebb7852017-05-25 15:40:13 -0500150 # Enable Root Ports 5 and 9
151 register "PcieRpEnable[4]" = "1"
152 register "PcieRpEnable[8]" = "1"
153 # Enable CLKREQ# for RP9
154 register "PcieRpClkReqSupport[8]" = "1"
155 # ClkReq for NVMe - Bruteforced (no other value works)
156 register "PcieRpClkReqNumber[8]" = "2"
Youness Alaoui047475c2017-05-08 16:50:23 -0400157
158 register "usb2_ports[0]" = "USB2_PORT_LONG(OC2)" # Type-C Port 1
159 register "usb2_ports[1]" = "USB2_PORT_LONG(OC3)" # Type-C Port 2
160 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
161 register "usb2_ports[4]" = "USB2_PORT_MID(OC0)" # Type-A Port
162 register "usb2_ports[6]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera
163 register "usb2_ports[8]" = "USB2_PORT_MID(OC_SKIP)" # SD
164
165 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC2)" # Type-C Port 1
166 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC3)" # Type-C Port 2
167 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC0)" # Type-A Port
168 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # SD
169
170 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" # I2C4 is 1.8V
171
172 # Must leave UART0 enabled or SD/eMMC will not work as PCI
173 register "SerialIoDevMode" = "{
174 [PchSerialIoIndexI2C0] = PchSerialIoPci,
175 [PchSerialIoIndexI2C1] = PchSerialIoPci,
176 [PchSerialIoIndexI2C2] = PchSerialIoDisabled,
177 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
178 [PchSerialIoIndexI2C4] = PchSerialIoPci,
179 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
180 [PchSerialIoIndexSpi0] = PchSerialIoDisabled,
181 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
182 [PchSerialIoIndexUart0] = PchSerialIoPci,
183 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
184 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
185 }"
186
187 # PL2 override 15W
188 register "tdp_pl2_override" = "15"
189
190 register "tcc_offset" = "10" # TCC of 90C
191
192 # Send an extra VR mailbox command for the supported MPS IMVP8 model
193 register "SendVrMbxCmd" = "1"
194
195 device cpu_cluster 0 on
196 device lapic 0 on end
197 end
198 device domain 0 on
199 device pci 00.0 on end # Host Bridge
200 device pci 02.0 on end # Integrated Graphics Device
201 device pci 14.0 on end # USB xHCI
Youness Alaouidebb7852017-05-25 15:40:13 -0500202 device pci 14.1 on end # USB xDCI (OTG)
Youness Alaoui047475c2017-05-08 16:50:23 -0400203 device pci 14.2 on end # Thermal Subsystem
204 device pci 16.0 on end # Management Engine Interface 1
205 device pci 16.1 off end # Management Engine Interface 2
206 device pci 16.2 off end # Management Engine IDE-R
207 device pci 16.3 off end # Management Engine KT Redirection
208 device pci 16.4 off end # Management Engine Interface 3
209 device pci 17.0 on end # SATA
Youness Alaouidebb7852017-05-25 15:40:13 -0500210 device pci 1c.0 on end # PCI Express Port 1
Youness Alaoui047475c2017-05-08 16:50:23 -0400211 device pci 1c.1 off end # PCI Express Port 2
212 device pci 1c.2 off end # PCI Express Port 3
213 device pci 1c.3 off end # PCI Express Port 4
214 device pci 1c.4 off end # PCI Express Port 5
215 device pci 1c.5 off end # PCI Express Port 6
216 device pci 1c.6 off end # PCI Express Port 7
217 device pci 1c.7 off end # PCI Express Port 8
Youness Alaouidebb7852017-05-25 15:40:13 -0500218 device pci 1d.0 on end # PCI Express Port 9
Youness Alaoui047475c2017-05-08 16:50:23 -0400219 device pci 1d.1 off end # PCI Express Port 10
220 device pci 1d.2 off end # PCI Express Port 11
221 device pci 1d.3 off end # PCI Express Port 12
222 device pci 1f.0 on
223 chip ec/purism/librem
224 device pnp 0c09.0 on end
225 end
226 end # LPC Interface
Youness Alaouidebb7852017-05-25 15:40:13 -0500227 device pci 1f.1 on end # P2SB
Youness Alaoui047475c2017-05-08 16:50:23 -0400228 device pci 1f.2 on end # Power Management Controller
229 device pci 1f.3 on end # Intel HDA
230 device pci 1f.4 on end # SMBus
231 device pci 1f.5 on end # PCH SPI
232 device pci 1f.6 off end # GbE
233 end
234end