blob: 61481960e5bb244e6077ff38909d6f8992f07355 [file] [log] [blame]
Michał Żygowski48be6b22019-06-27 12:19:18 +02001chip 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 | DSX_DIS_AC_PRESENT_PD"
Felix Singer743242b2023-06-16 01:33:25 +02009 register "s0ix_enable" = true
Michał Żygowski48be6b22019-06-27 12:19:18 +020010
11 register "gpe0_dw0" = "GPP_B"
12 register "gpe0_dw1" = "GPP_D"
13 register "gpe0_dw2" = "GPP_E"
14
15 register "gen1_dec" = "0x00fc0201"
16 register "gen2_dec" = "0x007c0a01"
17 register "gen3_dec" = "0x000c03e1"
18 register "gen4_dec" = "0x001c02e1"
19
Michał Żygowski48be6b22019-06-27 12:19:18 +020020 register "eist_enable" = "1"
21
22 # Disable DPTF
23 register "dptf_enable" = "0"
24
Michał Żygowski48be6b22019-06-27 12:19:18 +020025 # Enable SERIRQ continuous
26 register "serirq_mode" = "SERIRQ_CONTINUOUS"
27
28 register "tcc_offset" = "5" # TCC of 95C
29
30 # FSP Configuration
Michał Żygowski48be6b22019-06-27 12:19:18 +020031 register "DspEnable" = "0"
32 register "IoBufferOwnership" = "0"
Michał Żygowski48be6b22019-06-27 12:19:18 +020033 register "SkipExtGfxScan" = "1"
Michał Żygowski48be6b22019-06-27 12:19:18 +020034 register "SaGv" = "SaGv_Enabled"
Michał Żygowski48be6b22019-06-27 12:19:18 +020035 register "IslVrCmd" = "2"
36 register "PmConfigSlpS3MinAssert" = "2" # 50ms
37 register "PmConfigSlpS4MinAssert" = "4" # 4s
38 register "PmConfigSlpSusMinAssert" = "1" # 500ms
39 register "PmConfigSlpAMinAssert" = "3" # 2s
40
Michał Żygowski48be6b22019-06-27 12:19:18 +020041 # VR Settings Configuration for 4 Domains
42 #+----------------+-------+-------+-------+-------+
43 #| Domain/Setting | SA | IA | GTUS | GTS |
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 #| IccMax | 7A | 34A | 35A | 35A |
53 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
54 #| AcLoadline(ohm)| 10.3m | 2.4m | 3.1m | 3.1m |
55 #| DcLoadline(ohm)| 10.3m | 2.4m | 3.1m | 3.1m |
56 #+----------------+-------+-------+-------+-------+
57 #Note: IccMax settings are moved to SoC code
58 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
59 .vr_config_enable = 1,
60 .psi1threshold = VR_CFG_AMP(20),
61 .psi2threshold = VR_CFG_AMP(4),
62 .psi3threshold = VR_CFG_AMP(1),
63 .psi3enable = 1,
64 .psi4enable = 1,
65 .imon_slope = 0x0,
66 .imon_offset = 0x0,
67 .voltage_limit = 1520,
68 }"
69
70 register "domain_vr_config[VR_IA_CORE]" = "{
71 .vr_config_enable = 1,
72 .psi1threshold = VR_CFG_AMP(20),
73 .psi2threshold = VR_CFG_AMP(5),
74 .psi3threshold = VR_CFG_AMP(1),
75 .psi3enable = 1,
76 .psi4enable = 1,
77 .imon_slope = 0x0,
78 .imon_offset = 0x0,
79 .voltage_limit = 1520,
80 }"
81
82 register "domain_vr_config[VR_GT_UNSLICED]" = "{
83 .vr_config_enable = 1,
84 .psi1threshold = VR_CFG_AMP(20),
85 .psi2threshold = VR_CFG_AMP(5),
86 .psi3threshold = VR_CFG_AMP(1),
87 .psi3enable = 1,
88 .psi4enable = 1,
89 .imon_slope = 0x0,
90 .imon_offset = 0x0,
91 .voltage_limit = 1520,
92 }"
93
94 register "domain_vr_config[VR_GT_SLICED]" = "{
95 .vr_config_enable = 1,
96 .psi1threshold = VR_CFG_AMP(20),
97 .psi2threshold = VR_CFG_AMP(5),
98 .psi3threshold = VR_CFG_AMP(1),
99 .psi3enable = 1,
100 .psi4enable = 1,
101 .imon_slope = 0x0,
102 .imon_offset = 0x0,
103 .voltage_limit = 1520,
104 }"
105
106 # Send an extra VR mailbox command for the PS4 exit issue
107 register "SendVrMbxCmd" = "2"
108
109 # Enable SATA ports 1,2
110 register "SataPortsEnable[0]" = "1"
111 register "SataPortsEnable[1]" = "1"
Michał Żygowski48be6b22019-06-27 12:19:18 +0200112
113 # Enable Root ports. 1-6 for LAN and Root Port 9
114 register "PcieRpEnable[0]" = "1"
115 register "PcieRpEnable[1]" = "1"
116 register "PcieRpEnable[2]" = "1"
117 register "PcieRpEnable[3]" = "1"
118 register "PcieRpEnable[4]" = "1"
119 register "PcieRpEnable[5]" = "1"
120 register "PcieRpEnable[8]" = "1" # mPCIe WiFi
121
122 # Enable Advanced Error Reporting for RP 1-6, 9
123 register "PcieRpAdvancedErrorReporting[0]" = "1"
124 register "PcieRpAdvancedErrorReporting[1]" = "1"
125 register "PcieRpAdvancedErrorReporting[2]" = "1"
126 register "PcieRpAdvancedErrorReporting[3]" = "1"
127 register "PcieRpAdvancedErrorReporting[4]" = "1"
128 register "PcieRpAdvancedErrorReporting[5]" = "1"
129 register "PcieRpAdvancedErrorReporting[8]" = "1"
130
131 # Enable Latency Tolerance Reporting Mechanism RP 1-6, 9
132 register "PcieRpLtrEnable[0]" = "1"
133 register "PcieRpLtrEnable[1]" = "1"
134 register "PcieRpLtrEnable[2]" = "1"
135 register "PcieRpLtrEnable[3]" = "1"
136 register "PcieRpLtrEnable[4]" = "1"
137 register "PcieRpLtrEnable[5]" = "1"
138 register "PcieRpLtrEnable[8]" = "1"
139
140 # Enable RP 9 CLKREQ# support
141 register "PcieRpClkReqSupport[8]" = "1"
142 # RP 9 uses CLKREQ0#
143 register "PcieRpClkReqNumber[8]" = "0"
144
145 # Clocks 0-5 for RP 1-6
146 register "PcieRpClkSrcNumber[0]" = "0"
147 register "PcieRpClkSrcNumber[1]" = "1"
148 register "PcieRpClkSrcNumber[2]" = "2"
149 register "PcieRpClkSrcNumber[3]" = "3"
150 register "PcieRpClkSrcNumber[4]" = "4"
151 register "PcieRpClkSrcNumber[5]" = "5"
152 # RP 9 shares CLKSRC5# with RP 6
153 register "PcieRpClkSrcNumber[8]" = "5"
154
Felix Singer21b5a9a2023-10-23 07:26:28 +0200155 register "SerialIoDevMode" = "{
156 [PchSerialIoIndexI2C0] = PchSerialIoDisabled,
157 [PchSerialIoIndexI2C1] = PchSerialIoDisabled,
158 [PchSerialIoIndexI2C2] = PchSerialIoDisabled,
159 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
160 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
161 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
162 [PchSerialIoIndexSpi0] = PchSerialIoDisabled,
163 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
164 [PchSerialIoIndexUart0] = PchSerialIoDisabled,
165 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
166 [PchSerialIoIndexUart2] = PchSerialIoDisabled,
Michał Żygowski48be6b22019-06-27 12:19:18 +0200167 }"
168
Michał Żygowski48be6b22019-06-27 12:19:18 +0200169 device domain 0 on
Felix Singer1f7510f2023-11-12 18:34:28 +0000170 device ref igpu on end
Felix Singer6c83a712024-06-23 00:25:18 +0200171 device ref south_xhci on
172 register "usb2_ports" = "{
173 [0] = USB2_PORT_SHORT(OC_SKIP), // TYPE-A Port
174 [1] = USB2_PORT_SHORT(OC_SKIP), // TYPE-A Port
175 [2] = USB2_PORT_SHORT(OC_SKIP), // TYPE-A Port
176 [3] = USB2_PORT_SHORT(OC_SKIP), // TYPE-A Port
177 [4] = USB2_PORT_SHORT(OC_SKIP), // Type-A Port
178 [5] = USB2_PORT_SHORT(OC_SKIP), // TYPE-A Port
179 [6] = USB2_PORT_SHORT(OC_SKIP), // TYPE-A Port
180 [7] = USB2_PORT_SHORT(OC_SKIP), // mPCIe slot
181 }"
182
183 register "usb3_ports" = "{
184 [0] = USB3_PORT_DEFAULT(OC_SKIP), // TYPE-A Port
185 [1] = USB3_PORT_DEFAULT(OC_SKIP), // TYPE-A Port
186 [2] = USB3_PORT_DEFAULT(OC_SKIP), // TYPE-A Port
187 [3] = USB3_PORT_DEFAULT(OC_SKIP), // TYPE-A Port
188 }"
189 end
Felix Singer1f7510f2023-11-12 18:34:28 +0000190 device ref heci1 on end
191 device ref sata on end
192 device ref pcie_rp1 on end
193 device ref pcie_rp2 on end
194 device ref pcie_rp3 on end
195 device ref pcie_rp4 on end
196 device ref pcie_rp5 on end
197 device ref pcie_rp6 on end
198 device ref pcie_rp9 on
199 # WIFI
Michał Żygowski48be6b22019-06-27 12:19:18 +0200200 smbios_slot_desc
201 "SlotTypePciExpressMini52pinWithoutBSKO"
202 "SlotLengthShort" "WIFI1" "SlotDataBusWidth1X"
203 end
Felix Singer1f7510f2023-11-12 18:34:28 +0000204 device ref lpc_espi on
Michał Żygowski48be6b22019-06-27 12:19:18 +0200205 chip superio/ite/it8772f
Joel Linnfb516612024-03-29 14:08:35 +0100206 register "TMPIN1.mode" = "THERMAL_RESISTOR"
207 register "TMPIN2.mode" = "THERMAL_RESISTOR"
208 register "TMPIN3.mode" = "THERMAL_PECI"
Michał Żygowski48be6b22019-06-27 12:19:18 +0200209 # FAN2 available on fan header but unused
210 device pnp 2e.0 off end # FDC
211 device pnp 2e.1 on # Serial Port 1
212 io 0x60 = 0x3f8
213 irq 0x70 = 4
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 off end # Keyboard
221 device pnp 2e.6 off end # Mouse
222 device pnp 2e.7 off end # GPIO
223 device pnp 2e.a off end # IR
224 end
Felix Singer1f7510f2023-11-12 18:34:28 +0000225 end
226 device ref smbus on end
Michał Żygowski48be6b22019-06-27 12:19:18 +0200227 end
Michał Żygowski7896b8c2020-06-19 17:15:51 +0200228 chip drivers/crb
229 device mmio 0xfed40000 on end
230 end
Michał Żygowski48be6b22019-06-27 12:19:18 +0200231end