blob: 02c35386c8122c81a156a3544e8c22b9865f33f7 [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
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +010028 # Disable DPTF
29 register "dptf_enable" = "0"
30
31 # FSP Configuration
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +010032 register "DspEnable" = "1"
33 register "IoBufferOwnership" = "0"
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +010034 register "SkipExtGfxScan" = "1"
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +010035 register "SaGv" = "SaGv_Enabled"
36 register "PmConfigSlpS3MinAssert" = "2" # 50ms
37 register "PmConfigSlpS4MinAssert" = "1" # 1s
38 register "PmConfigSlpSusMinAssert" = "3" # 500ms
39 register "PmConfigSlpAMinAssert" = "3" # 2s
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +010040
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +010041 # VR Settings Configuration for 4 Domains
42 #+----------------+-------+-------+-------------+-------+
43 #| Domain/Setting | SA | IA | GT-Unsliced | GT |
44 #+----------------+-------+-------+-------------+-------+
45 #| Psi1Threshold | 20A | 20A | 20A | 20A |
46 #| Psi2Threshold | 4A | 5A | 5A | 5A |
47 #| Psi3Threshold | 1A | 1A | 1A | 1A |
48 #| Psi3Enable | 1 | 1 | 1 | 1 |
49 #| Psi4Enable | 1 | 1 | 1 | 1 |
50 #| ImonSlope | 0 | 0 | 0 | 0 |
51 #| ImonOffset | 0 | 0 | 0 | 0 |
52 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
53 #+----------------+-------+-------+-------------+-------+
54 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
55 .vr_config_enable = 1,
56 .psi1threshold = VR_CFG_AMP(20),
57 .psi2threshold = VR_CFG_AMP(4),
58 .psi3threshold = VR_CFG_AMP(1),
59 .psi3enable = 1,
60 .psi4enable = 1,
61 .imon_slope = 0x0,
62 .imon_offset = 0x0,
63 .voltage_limit = 1520,
64 }"
65
66 register "domain_vr_config[VR_IA_CORE]" = "{
67 .vr_config_enable = 1,
68 .psi1threshold = VR_CFG_AMP(20),
69 .psi2threshold = VR_CFG_AMP(5),
70 .psi3threshold = VR_CFG_AMP(1),
71 .psi3enable = 1,
72 .psi4enable = 1,
73 .imon_slope = 0x0,
74 .imon_offset = 0x0,
75 .voltage_limit = 1520,
76 }"
77
78 register "domain_vr_config[VR_GT_UNSLICED]" = "{
79 .vr_config_enable = 1,
80 .psi1threshold = VR_CFG_AMP(20),
81 .psi2threshold = VR_CFG_AMP(5),
82 .psi3threshold = VR_CFG_AMP(1),
83 .psi3enable = 1,
84 .psi4enable = 1,
85 .imon_slope = 0x0,
86 .imon_offset = 0x0,
87 .voltage_limit = 1520,
88 }"
89
90 register "domain_vr_config[VR_GT_SLICED]" = "{
91 .vr_config_enable = 1,
92 .psi1threshold = VR_CFG_AMP(20),
93 .psi2threshold = VR_CFG_AMP(5),
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 "PcieRpEnable[2]" = "1"
103 register "PcieRpEnable[3]" = "1"
104 register "PcieRpEnable[4]" = "1"
105 register "PcieRpEnable[8]" = "1"
106 register "PcieRpEnable[9]" = "1"
107 register "PcieRpEnable[10]" = "1"
108 register "PcieRpEnable[11]" = "1"
109
110 register "PcieRpClkSrcNumber[0]" = "0"
111 register "PcieRpClkSrcNumber[3]" = "1"
112 register "PcieRpClkSrcNumber[4]" = "2"
113 register "PcieRpClkSrcNumber[8]" = "3"
114 register "PcieRpClkSrcNumber[9]" = "3"
115 register "PcieRpClkSrcNumber[10]" = "3"
116 register "PcieRpClkSrcNumber[11]" = "3"
117
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +0100118 # PL2 override 25W
Sumeet R Pawnikar97c54642020-05-10 01:24:11 +0530119 register "power_limits_config" = "{
120 .tdp_pl2_override = 25,
121 }"
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +0100122
123 # Send an extra VR mailbox command for the PS4 exit issue
124 register "SendVrMbxCmd" = "2"
125
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +0100126 device domain 0 on
Felix Singerc3ec1442023-11-12 17:35:05 +0000127 device ref igpu on end
128 device ref sa_thermal on end
Felix Singer6c83a712024-06-23 00:25:18 +0200129 device ref south_xhci on
130 register "usb2_ports" = "{
131 [0] = USB2_PORT_MID(OC_SKIP), /* Type-A Port (right) */
132 [1] = USB2_PORT_MID(OC_SKIP), /* Type-A Port (right) */
133 [2] = USB2_PORT_MID(OC_SKIP), /* WiFi */
134 [3] = USB2_PORT_MID(OC_SKIP), /* F_USB3 header */
135 [4] = USB2_PORT_MID(OC_SKIP), /* F_USB3 header */
136 [5] = USB2_PORT_MID(OC_SKIP), /* Type-A Port (left) */
137 [6] = USB2_PORT_MID(OC_SKIP), /* Type-A Port (left) */
138 [7] = USB2_PORT_MID(OC_SKIP), /* GL850G for F_USB1 and F_USB2 headers */
139 }"
140
141 register "usb3_ports" = "{
142 [0] = USB3_PORT_DEFAULT(OC_SKIP), /* Type-A Port (right) */
143 [1] = USB3_PORT_DEFAULT(OC_SKIP), /* Type-A Port (right) */
144 [2] = USB3_PORT_DEFAULT(OC_SKIP), /* F_USB3 header */
145 [3] = USB3_PORT_DEFAULT(OC_SKIP), /* F_USB3 header */
146 }"
147 end
Felix Singerc3ec1442023-11-12 17:35:05 +0000148 device ref south_xdci on end
149 device ref thermal on end
150 device ref heci1 on end
Felix Singerdf7de392024-06-23 04:59:03 +0200151 device ref sata on
152 register "SataPortsEnable" = "{
153 [0] = 1,
154 [1] = 1,
155 [2] = 1,
156 }"
157 register "SataSpeedLimit" = "2"
158 end
Felix Singerc3ec1442023-11-12 17:35:05 +0000159 device ref pcie_rp3 on end
160 device ref pcie_rp5 on
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +0100161 smbios_slot_desc "SlotTypePciExpressMini52pinWithoutBSKO"
162 "SlotLengthOther" "MPCIE_WIFI1" "SlotDataBusWidth1X"
163 end
Felix Singerc3ec1442023-11-12 17:35:05 +0000164 device ref pcie_rp6 on end
165 device ref pcie_rp9 on
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +0100166 smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther"
167 "SSD_M.2 2242/2280" "SlotDataBusWidth4X"
168 end
Felix Singerc3ec1442023-11-12 17:35:05 +0000169 device ref pcie_rp10 on end
170 device ref pcie_rp11 on end
171 device ref pcie_rp12 on end
172 device ref lpc_espi on
Felix Singerdcddc53f2024-06-23 03:39:24 +0200173 register "gen1_dec" = "0x007c0a01" # EC 0xa00-0xa7f
174 register "gen2_dec" = "0x000c03e1" # COM3 port 0x3e0 - 0x3ef
175 register "gen3_dec" = "0x00fc02e1" # COM2/4/5/6 ports 0x2e0 - 0x2ff
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +0100176 chip drivers/pc80/tpm
177 device pnp 0c31.0 on end
178 end
179 chip superio/ite/it8786e
180 register "TMPIN1.mode" = "THERMAL_PECI"
181 register "TMPIN1.offset" = "100"
182 register "TMPIN1.min" = "128"
183 register "TMPIN2.mode" = "THERMAL_RESISTOR"
184 register "TMPIN2.min" = "128"
185 register "TMPIN3.mode" = "THERMAL_MODE_DISABLED"
186 register "ec.vin_mask" = "VIN_ALL"
187 # FAN1 is CPU fan (on board)
188 register "FAN1.mode" = "FAN_SMART_AUTOMATIC"
189 register "FAN1.smart.tmpin" = " 1"
190 register "FAN1.smart.tmp_off" = "35"
191 register "FAN1.smart.tmp_start" = "60"
192 register "FAN1.smart.tmp_full" = "85"
193 register "FAN1.smart.tmp_delta" = " 2"
194 register "FAN1.smart.pwm_start" = "20"
195 register "FAN1.smart.slope" = "24"
196 # FAN2 is system fan (4 pin connector populated)
197 #register "FAN2.mode" = "FAN_MODE_OFF"
198 # FAN3 PWM is used for LVDS backlight control
199 #register "FAN3.mode" = "FAN_MODE_OFF"
200
201 device pnp 2e.1 on # COM 1
202 io 0x60 = 0x3f8
203 irq 0x70 = 4
204 end
205 device pnp 2e.2 on # COM 2
206 io 0x60 = 0x2f8
207 irq 0x70 = 3
208 end
209 device pnp 2e.3 on # Printer Port
210 io 0x60 = 0x378
211 io 0x62 = 0x778
212 irq 0x70 = 5
213 drq 0x74 = 3
214 end
215 device pnp 2e.4 on # Environment Controller
216 io 0x60 = 0xa40
217 io 0x62 = 0xa30
218 irq 0x70 = 9
219 end
220 device pnp 2e.5 on # Keyboard
221 io 0x60 = 0x60
222 io 0x62 = 0x64
223 irq 0x70 = 1
224 end
225 device pnp 2e.6 on # Mouse
226 irq 0x70 = 12
227 end
228 device pnp 2e.7 off # GPIO
229 end
230 device pnp 2e.8 on # COM 3
231 io 0x60 = 0x3e8
232 irq 0x70 = 3
233 end
234 device pnp 2e.9 on # COM 4
235 io 0x60 = 0x2e8
236 irq 0x70 = 4
237 end
238 device pnp 2e.a off end # CIR
239 device pnp 2e.b on # COM 5
240 io 0x60 = 0x2f0
241 irq 0x70 = 3
242 end
243 device pnp 2e.c on # COM 6
244 io 0x60 = 0x2e0
245 irq 0x70 = 4
246 end
247 end
Felix Singerc3ec1442023-11-12 17:35:05 +0000248 end
249 device ref hda on end
250 device ref smbus on end
251 device ref fast_spi on end
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +0100252 end
253end