blob: 2cb674f4865b26326cee4bb67db1d27d398e9603 [file] [log] [blame]
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +01001chip 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"
9
10 register "eist_enable" = "1"
11
12 register "serirq_mode" = "SERIRQ_CONTINUOUS"
13
14 # Set the Thermal Control Circuit (TCC) activation value to 95C
15 # even though FSP integration guide says to set it to 100C for SKL-U
16 # (offset at 0), because when the TCC activates at 100C, the CPU
17 # will have already shut itself down from overheating protection.
18 register "tcc_offset" = "5" # TCC of 95C
19
20 # GPE configuration
21 # Note that GPE events called out in ASL code rely on this
22 # route. i.e. If this route changes then the affected GPE
23 # offset bits also need to be changed.
24 register "gpe0_dw0" = "GPP_C"
25 register "gpe0_dw1" = "GPP_D"
26 register "gpe0_dw2" = "GPP_E"
27
28 register "gen1_dec" = "0x007c0a01" # EC 0xa00-0xa7f
29 register "gen2_dec" = "0x000c03e1" # COM3 port 0x3e0 - 0x3ef
30 register "gen3_dec" = "0x00fc02e1" # COM2/4/5/6 ports 0x2e0 - 0x2ff
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +010031
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +010032 # Disable DPTF
33 register "dptf_enable" = "0"
34
35 # FSP Configuration
Felix Singer9a1b47e2023-10-23 17:37:21 +020036 register "SataPortsEnable" = "{
37 [0] = 1,
38 [1] = 1,
39 [2] = 1,
40 }"
41 register "SataPortsDevSlp" = "{
42 [0] = 0,
43 [1] = 0,
44 [2] = 0,
45 }"
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +010046 register "SataSpeedLimit" = "2"
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +010047 register "DspEnable" = "1"
48 register "IoBufferOwnership" = "0"
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +010049 register "SkipExtGfxScan" = "1"
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +010050 register "SaGv" = "SaGv_Enabled"
51 register "PmConfigSlpS3MinAssert" = "2" # 50ms
52 register "PmConfigSlpS4MinAssert" = "1" # 1s
53 register "PmConfigSlpSusMinAssert" = "3" # 500ms
54 register "PmConfigSlpAMinAssert" = "3" # 2s
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +010055
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +010056 # VR Settings Configuration for 4 Domains
57 #+----------------+-------+-------+-------------+-------+
58 #| Domain/Setting | SA | IA | GT-Unsliced | GT |
59 #+----------------+-------+-------+-------------+-------+
60 #| Psi1Threshold | 20A | 20A | 20A | 20A |
61 #| Psi2Threshold | 4A | 5A | 5A | 5A |
62 #| Psi3Threshold | 1A | 1A | 1A | 1A |
63 #| Psi3Enable | 1 | 1 | 1 | 1 |
64 #| Psi4Enable | 1 | 1 | 1 | 1 |
65 #| ImonSlope | 0 | 0 | 0 | 0 |
66 #| ImonOffset | 0 | 0 | 0 | 0 |
67 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
68 #+----------------+-------+-------+-------------+-------+
69 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
70 .vr_config_enable = 1,
71 .psi1threshold = VR_CFG_AMP(20),
72 .psi2threshold = VR_CFG_AMP(4),
73 .psi3threshold = VR_CFG_AMP(1),
74 .psi3enable = 1,
75 .psi4enable = 1,
76 .imon_slope = 0x0,
77 .imon_offset = 0x0,
78 .voltage_limit = 1520,
79 }"
80
81 register "domain_vr_config[VR_IA_CORE]" = "{
82 .vr_config_enable = 1,
83 .psi1threshold = VR_CFG_AMP(20),
84 .psi2threshold = VR_CFG_AMP(5),
85 .psi3threshold = VR_CFG_AMP(1),
86 .psi3enable = 1,
87 .psi4enable = 1,
88 .imon_slope = 0x0,
89 .imon_offset = 0x0,
90 .voltage_limit = 1520,
91 }"
92
93 register "domain_vr_config[VR_GT_UNSLICED]" = "{
94 .vr_config_enable = 1,
95 .psi1threshold = VR_CFG_AMP(20),
96 .psi2threshold = VR_CFG_AMP(5),
97 .psi3threshold = VR_CFG_AMP(1),
98 .psi3enable = 1,
99 .psi4enable = 1,
100 .imon_slope = 0x0,
101 .imon_offset = 0x0,
102 .voltage_limit = 1520,
103 }"
104
105 register "domain_vr_config[VR_GT_SLICED]" = "{
106 .vr_config_enable = 1,
107 .psi1threshold = VR_CFG_AMP(20),
108 .psi2threshold = VR_CFG_AMP(5),
109 .psi3threshold = VR_CFG_AMP(1),
110 .psi3enable = 1,
111 .psi4enable = 1,
112 .imon_slope = 0x0,
113 .imon_offset = 0x0,
114 .voltage_limit = 1520,
115 }"
116
117 register "PcieRpEnable[2]" = "1"
118 register "PcieRpEnable[3]" = "1"
119 register "PcieRpEnable[4]" = "1"
120 register "PcieRpEnable[8]" = "1"
121 register "PcieRpEnable[9]" = "1"
122 register "PcieRpEnable[10]" = "1"
123 register "PcieRpEnable[11]" = "1"
124
125 register "PcieRpClkSrcNumber[0]" = "0"
126 register "PcieRpClkSrcNumber[3]" = "1"
127 register "PcieRpClkSrcNumber[4]" = "2"
128 register "PcieRpClkSrcNumber[8]" = "3"
129 register "PcieRpClkSrcNumber[9]" = "3"
130 register "PcieRpClkSrcNumber[10]" = "3"
131 register "PcieRpClkSrcNumber[11]" = "3"
132
Felix Singer9a1b47e2023-10-23 17:37:21 +0200133 register "usb2_ports" = "{
134 [0] = USB2_PORT_MID(OC_SKIP), /* Type-A Port (right) */
135 [1] = USB2_PORT_MID(OC_SKIP), /* Type-A Port (right) */
136 [2] = USB2_PORT_MID(OC_SKIP), /* WiFi */
137 [3] = USB2_PORT_MID(OC_SKIP), /* F_USB3 header */
138 [4] = USB2_PORT_MID(OC_SKIP), /* F_USB3 header */
139 [5] = USB2_PORT_MID(OC_SKIP), /* Type-A Port (left) */
140 [6] = USB2_PORT_MID(OC_SKIP), /* Type-A Port (left) */
141 [7] = USB2_PORT_MID(OC_SKIP), /* GL850G for F_USB1 and F_USB2 headers */
142 }"
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +0100143
Felix Singer9a1b47e2023-10-23 17:37:21 +0200144 register "usb3_ports" = "{
145 [0] = USB3_PORT_DEFAULT(OC_SKIP), /* Type-A Port (right) */
146 [1] = USB3_PORT_DEFAULT(OC_SKIP), /* Type-A Port (right) */
147 [2] = USB3_PORT_DEFAULT(OC_SKIP), /* F_USB3 header */
148 [3] = USB3_PORT_DEFAULT(OC_SKIP), /* F_USB3 header */
149 }"
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +0100150
151 # PL2 override 25W
Sumeet R Pawnikar97c54642020-05-10 01:24:11 +0530152 register "power_limits_config" = "{
153 .tdp_pl2_override = 25,
154 }"
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +0100155
156 # Send an extra VR mailbox command for the PS4 exit issue
157 register "SendVrMbxCmd" = "2"
158
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +0100159 device domain 0 on
Felix Singerc3ec1442023-11-12 17:35:05 +0000160 device ref igpu on end
161 device ref sa_thermal on end
162 device ref south_xhci on end
163 device ref south_xdci on end
164 device ref thermal on end
165 device ref heci1 on end
166 device ref sata on end
167 device ref pcie_rp3 on end
168 device ref pcie_rp5 on
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +0100169 smbios_slot_desc "SlotTypePciExpressMini52pinWithoutBSKO"
170 "SlotLengthOther" "MPCIE_WIFI1" "SlotDataBusWidth1X"
171 end
Felix Singerc3ec1442023-11-12 17:35:05 +0000172 device ref pcie_rp6 on end
173 device ref pcie_rp9 on
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +0100174 smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther"
175 "SSD_M.2 2242/2280" "SlotDataBusWidth4X"
176 end
Felix Singerc3ec1442023-11-12 17:35:05 +0000177 device ref pcie_rp10 on end
178 device ref pcie_rp11 on end
179 device ref pcie_rp12 on end
180 device ref lpc_espi on
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +0100181 chip drivers/pc80/tpm
182 device pnp 0c31.0 on end
183 end
184 chip superio/ite/it8786e
185 register "TMPIN1.mode" = "THERMAL_PECI"
186 register "TMPIN1.offset" = "100"
187 register "TMPIN1.min" = "128"
188 register "TMPIN2.mode" = "THERMAL_RESISTOR"
189 register "TMPIN2.min" = "128"
190 register "TMPIN3.mode" = "THERMAL_MODE_DISABLED"
191 register "ec.vin_mask" = "VIN_ALL"
192 # FAN1 is CPU fan (on board)
193 register "FAN1.mode" = "FAN_SMART_AUTOMATIC"
194 register "FAN1.smart.tmpin" = " 1"
195 register "FAN1.smart.tmp_off" = "35"
196 register "FAN1.smart.tmp_start" = "60"
197 register "FAN1.smart.tmp_full" = "85"
198 register "FAN1.smart.tmp_delta" = " 2"
199 register "FAN1.smart.pwm_start" = "20"
200 register "FAN1.smart.slope" = "24"
201 # FAN2 is system fan (4 pin connector populated)
202 #register "FAN2.mode" = "FAN_MODE_OFF"
203 # FAN3 PWM is used for LVDS backlight control
204 #register "FAN3.mode" = "FAN_MODE_OFF"
205
206 device pnp 2e.1 on # COM 1
207 io 0x60 = 0x3f8
208 irq 0x70 = 4
209 end
210 device pnp 2e.2 on # COM 2
211 io 0x60 = 0x2f8
212 irq 0x70 = 3
213 end
214 device pnp 2e.3 on # Printer Port
215 io 0x60 = 0x378
216 io 0x62 = 0x778
217 irq 0x70 = 5
218 drq 0x74 = 3
219 end
220 device pnp 2e.4 on # Environment Controller
221 io 0x60 = 0xa40
222 io 0x62 = 0xa30
223 irq 0x70 = 9
224 end
225 device pnp 2e.5 on # Keyboard
226 io 0x60 = 0x60
227 io 0x62 = 0x64
228 irq 0x70 = 1
229 end
230 device pnp 2e.6 on # Mouse
231 irq 0x70 = 12
232 end
233 device pnp 2e.7 off # GPIO
234 end
235 device pnp 2e.8 on # COM 3
236 io 0x60 = 0x3e8
237 irq 0x70 = 3
238 end
239 device pnp 2e.9 on # COM 4
240 io 0x60 = 0x2e8
241 irq 0x70 = 4
242 end
243 device pnp 2e.a off end # CIR
244 device pnp 2e.b on # COM 5
245 io 0x60 = 0x2f0
246 irq 0x70 = 3
247 end
248 device pnp 2e.c on # COM 6
249 io 0x60 = 0x2e0
250 irq 0x70 = 4
251 end
252 end
Felix Singerc3ec1442023-11-12 17:35:05 +0000253 end
254 device ref hda on end
255 device ref smbus on end
256 device ref fast_spi on end
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +0100257 end
258end