blob: dd2fc6084c79148cb547f7b0b34a140d3a81da72 [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 }"
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +010041 register "SataSpeedLimit" = "2"
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +010042 register "DspEnable" = "1"
43 register "IoBufferOwnership" = "0"
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +010044 register "SkipExtGfxScan" = "1"
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +010045 register "SaGv" = "SaGv_Enabled"
46 register "PmConfigSlpS3MinAssert" = "2" # 50ms
47 register "PmConfigSlpS4MinAssert" = "1" # 1s
48 register "PmConfigSlpSusMinAssert" = "3" # 500ms
49 register "PmConfigSlpAMinAssert" = "3" # 2s
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +010050
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +010051 # VR Settings Configuration for 4 Domains
52 #+----------------+-------+-------+-------------+-------+
53 #| Domain/Setting | SA | IA | GT-Unsliced | GT |
54 #+----------------+-------+-------+-------------+-------+
55 #| Psi1Threshold | 20A | 20A | 20A | 20A |
56 #| Psi2Threshold | 4A | 5A | 5A | 5A |
57 #| Psi3Threshold | 1A | 1A | 1A | 1A |
58 #| Psi3Enable | 1 | 1 | 1 | 1 |
59 #| Psi4Enable | 1 | 1 | 1 | 1 |
60 #| ImonSlope | 0 | 0 | 0 | 0 |
61 #| ImonOffset | 0 | 0 | 0 | 0 |
62 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
63 #+----------------+-------+-------+-------------+-------+
64 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
65 .vr_config_enable = 1,
66 .psi1threshold = VR_CFG_AMP(20),
67 .psi2threshold = VR_CFG_AMP(4),
68 .psi3threshold = VR_CFG_AMP(1),
69 .psi3enable = 1,
70 .psi4enable = 1,
71 .imon_slope = 0x0,
72 .imon_offset = 0x0,
73 .voltage_limit = 1520,
74 }"
75
76 register "domain_vr_config[VR_IA_CORE]" = "{
77 .vr_config_enable = 1,
78 .psi1threshold = VR_CFG_AMP(20),
79 .psi2threshold = VR_CFG_AMP(5),
80 .psi3threshold = VR_CFG_AMP(1),
81 .psi3enable = 1,
82 .psi4enable = 1,
83 .imon_slope = 0x0,
84 .imon_offset = 0x0,
85 .voltage_limit = 1520,
86 }"
87
88 register "domain_vr_config[VR_GT_UNSLICED]" = "{
89 .vr_config_enable = 1,
90 .psi1threshold = VR_CFG_AMP(20),
91 .psi2threshold = VR_CFG_AMP(5),
92 .psi3threshold = VR_CFG_AMP(1),
93 .psi3enable = 1,
94 .psi4enable = 1,
95 .imon_slope = 0x0,
96 .imon_offset = 0x0,
97 .voltage_limit = 1520,
98 }"
99
100 register "domain_vr_config[VR_GT_SLICED]" = "{
101 .vr_config_enable = 1,
102 .psi1threshold = VR_CFG_AMP(20),
103 .psi2threshold = VR_CFG_AMP(5),
104 .psi3threshold = VR_CFG_AMP(1),
105 .psi3enable = 1,
106 .psi4enable = 1,
107 .imon_slope = 0x0,
108 .imon_offset = 0x0,
109 .voltage_limit = 1520,
110 }"
111
112 register "PcieRpEnable[2]" = "1"
113 register "PcieRpEnable[3]" = "1"
114 register "PcieRpEnable[4]" = "1"
115 register "PcieRpEnable[8]" = "1"
116 register "PcieRpEnable[9]" = "1"
117 register "PcieRpEnable[10]" = "1"
118 register "PcieRpEnable[11]" = "1"
119
120 register "PcieRpClkSrcNumber[0]" = "0"
121 register "PcieRpClkSrcNumber[3]" = "1"
122 register "PcieRpClkSrcNumber[4]" = "2"
123 register "PcieRpClkSrcNumber[8]" = "3"
124 register "PcieRpClkSrcNumber[9]" = "3"
125 register "PcieRpClkSrcNumber[10]" = "3"
126 register "PcieRpClkSrcNumber[11]" = "3"
127
Felix Singer9a1b47e2023-10-23 17:37:21 +0200128 register "usb2_ports" = "{
129 [0] = USB2_PORT_MID(OC_SKIP), /* Type-A Port (right) */
130 [1] = USB2_PORT_MID(OC_SKIP), /* Type-A Port (right) */
131 [2] = USB2_PORT_MID(OC_SKIP), /* WiFi */
132 [3] = USB2_PORT_MID(OC_SKIP), /* F_USB3 header */
133 [4] = USB2_PORT_MID(OC_SKIP), /* F_USB3 header */
134 [5] = USB2_PORT_MID(OC_SKIP), /* Type-A Port (left) */
135 [6] = USB2_PORT_MID(OC_SKIP), /* Type-A Port (left) */
136 [7] = USB2_PORT_MID(OC_SKIP), /* GL850G for F_USB1 and F_USB2 headers */
137 }"
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +0100138
Felix Singer9a1b47e2023-10-23 17:37:21 +0200139 register "usb3_ports" = "{
140 [0] = USB3_PORT_DEFAULT(OC_SKIP), /* Type-A Port (right) */
141 [1] = USB3_PORT_DEFAULT(OC_SKIP), /* Type-A Port (right) */
142 [2] = USB3_PORT_DEFAULT(OC_SKIP), /* F_USB3 header */
143 [3] = USB3_PORT_DEFAULT(OC_SKIP), /* F_USB3 header */
144 }"
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +0100145
146 # PL2 override 25W
Sumeet R Pawnikar97c54642020-05-10 01:24:11 +0530147 register "power_limits_config" = "{
148 .tdp_pl2_override = 25,
149 }"
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +0100150
151 # Send an extra VR mailbox command for the PS4 exit issue
152 register "SendVrMbxCmd" = "2"
153
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +0100154 device domain 0 on
Felix Singerc3ec1442023-11-12 17:35:05 +0000155 device ref igpu on end
156 device ref sa_thermal on end
157 device ref south_xhci on end
158 device ref south_xdci on end
159 device ref thermal on end
160 device ref heci1 on end
161 device ref sata on end
162 device ref pcie_rp3 on end
163 device ref pcie_rp5 on
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +0100164 smbios_slot_desc "SlotTypePciExpressMini52pinWithoutBSKO"
165 "SlotLengthOther" "MPCIE_WIFI1" "SlotDataBusWidth1X"
166 end
Felix Singerc3ec1442023-11-12 17:35:05 +0000167 device ref pcie_rp6 on end
168 device ref pcie_rp9 on
Michał Żygowskib9f9f6c2018-12-21 12:23:27 +0100169 smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther"
170 "SSD_M.2 2242/2280" "SlotDataBusWidth4X"
171 end
Felix Singerc3ec1442023-11-12 17:35:05 +0000172 device ref pcie_rp10 on end
173 device ref pcie_rp11 on end
174 device ref pcie_rp12 on end
175 device ref lpc_espi on
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