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