blob: 228676b8527288fa7b5ec9511cc1e68a0ee60f66 [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
Michał Żygowski48be6b22019-06-27 12:19:18 +020015 register "eist_enable" = "1"
16
17 # Disable DPTF
18 register "dptf_enable" = "0"
19
Michał Żygowski48be6b22019-06-27 12:19:18 +020020 register "tcc_offset" = "5" # TCC of 95C
21
22 # FSP Configuration
Michał Żygowski48be6b22019-06-27 12:19:18 +020023 register "DspEnable" = "0"
24 register "IoBufferOwnership" = "0"
Michał Żygowski48be6b22019-06-27 12:19:18 +020025 register "SkipExtGfxScan" = "1"
Michał Żygowski48be6b22019-06-27 12:19:18 +020026 register "SaGv" = "SaGv_Enabled"
Michał Żygowski48be6b22019-06-27 12:19:18 +020027 register "IslVrCmd" = "2"
28 register "PmConfigSlpS3MinAssert" = "2" # 50ms
29 register "PmConfigSlpS4MinAssert" = "4" # 4s
30 register "PmConfigSlpSusMinAssert" = "1" # 500ms
31 register "PmConfigSlpAMinAssert" = "3" # 2s
32
Michał Żygowski48be6b22019-06-27 12:19:18 +020033 # VR Settings Configuration for 4 Domains
34 #+----------------+-------+-------+-------+-------+
35 #| Domain/Setting | SA | IA | GTUS | GTS |
36 #+----------------+-------+-------+-------+-------+
37 #| Psi1Threshold | 20A | 20A | 20A | 20A |
38 #| Psi2Threshold | 4A | 5A | 5A | 5A |
39 #| Psi3Threshold | 1A | 1A | 1A | 1A |
40 #| Psi3Enable | 1 | 1 | 1 | 1 |
41 #| Psi4Enable | 1 | 1 | 1 | 1 |
42 #| ImonSlope | 0 | 0 | 0 | 0 |
43 #| ImonOffset | 0 | 0 | 0 | 0 |
44 #| IccMax | 7A | 34A | 35A | 35A |
45 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
46 #| AcLoadline(ohm)| 10.3m | 2.4m | 3.1m | 3.1m |
47 #| DcLoadline(ohm)| 10.3m | 2.4m | 3.1m | 3.1m |
48 #+----------------+-------+-------+-------+-------+
49 #Note: IccMax settings are moved to SoC code
50 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
51 .vr_config_enable = 1,
52 .psi1threshold = VR_CFG_AMP(20),
53 .psi2threshold = VR_CFG_AMP(4),
54 .psi3threshold = VR_CFG_AMP(1),
55 .psi3enable = 1,
56 .psi4enable = 1,
57 .imon_slope = 0x0,
58 .imon_offset = 0x0,
59 .voltage_limit = 1520,
60 }"
61
62 register "domain_vr_config[VR_IA_CORE]" = "{
63 .vr_config_enable = 1,
64 .psi1threshold = VR_CFG_AMP(20),
65 .psi2threshold = VR_CFG_AMP(5),
66 .psi3threshold = VR_CFG_AMP(1),
67 .psi3enable = 1,
68 .psi4enable = 1,
69 .imon_slope = 0x0,
70 .imon_offset = 0x0,
71 .voltage_limit = 1520,
72 }"
73
74 register "domain_vr_config[VR_GT_UNSLICED]" = "{
75 .vr_config_enable = 1,
76 .psi1threshold = VR_CFG_AMP(20),
77 .psi2threshold = VR_CFG_AMP(5),
78 .psi3threshold = VR_CFG_AMP(1),
79 .psi3enable = 1,
80 .psi4enable = 1,
81 .imon_slope = 0x0,
82 .imon_offset = 0x0,
83 .voltage_limit = 1520,
84 }"
85
86 register "domain_vr_config[VR_GT_SLICED]" = "{
87 .vr_config_enable = 1,
88 .psi1threshold = VR_CFG_AMP(20),
89 .psi2threshold = VR_CFG_AMP(5),
90 .psi3threshold = VR_CFG_AMP(1),
91 .psi3enable = 1,
92 .psi4enable = 1,
93 .imon_slope = 0x0,
94 .imon_offset = 0x0,
95 .voltage_limit = 1520,
96 }"
97
98 # Send an extra VR mailbox command for the PS4 exit issue
99 register "SendVrMbxCmd" = "2"
100
Michał Żygowski48be6b22019-06-27 12:19:18 +0200101 # Enable Root ports. 1-6 for LAN and Root Port 9
102 register "PcieRpEnable[0]" = "1"
103 register "PcieRpEnable[1]" = "1"
104 register "PcieRpEnable[2]" = "1"
105 register "PcieRpEnable[3]" = "1"
106 register "PcieRpEnable[4]" = "1"
107 register "PcieRpEnable[5]" = "1"
108 register "PcieRpEnable[8]" = "1" # mPCIe WiFi
109
110 # Enable Advanced Error Reporting for RP 1-6, 9
111 register "PcieRpAdvancedErrorReporting[0]" = "1"
112 register "PcieRpAdvancedErrorReporting[1]" = "1"
113 register "PcieRpAdvancedErrorReporting[2]" = "1"
114 register "PcieRpAdvancedErrorReporting[3]" = "1"
115 register "PcieRpAdvancedErrorReporting[4]" = "1"
116 register "PcieRpAdvancedErrorReporting[5]" = "1"
117 register "PcieRpAdvancedErrorReporting[8]" = "1"
118
119 # Enable Latency Tolerance Reporting Mechanism RP 1-6, 9
120 register "PcieRpLtrEnable[0]" = "1"
121 register "PcieRpLtrEnable[1]" = "1"
122 register "PcieRpLtrEnable[2]" = "1"
123 register "PcieRpLtrEnable[3]" = "1"
124 register "PcieRpLtrEnable[4]" = "1"
125 register "PcieRpLtrEnable[5]" = "1"
126 register "PcieRpLtrEnable[8]" = "1"
127
128 # Enable RP 9 CLKREQ# support
129 register "PcieRpClkReqSupport[8]" = "1"
130 # RP 9 uses CLKREQ0#
131 register "PcieRpClkReqNumber[8]" = "0"
132
133 # Clocks 0-5 for RP 1-6
134 register "PcieRpClkSrcNumber[0]" = "0"
135 register "PcieRpClkSrcNumber[1]" = "1"
136 register "PcieRpClkSrcNumber[2]" = "2"
137 register "PcieRpClkSrcNumber[3]" = "3"
138 register "PcieRpClkSrcNumber[4]" = "4"
139 register "PcieRpClkSrcNumber[5]" = "5"
140 # RP 9 shares CLKSRC5# with RP 6
141 register "PcieRpClkSrcNumber[8]" = "5"
142
Felix Singer21b5a9a2023-10-23 07:26:28 +0200143 register "SerialIoDevMode" = "{
144 [PchSerialIoIndexI2C0] = PchSerialIoDisabled,
145 [PchSerialIoIndexI2C1] = PchSerialIoDisabled,
146 [PchSerialIoIndexI2C2] = PchSerialIoDisabled,
147 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
148 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
149 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
150 [PchSerialIoIndexSpi0] = PchSerialIoDisabled,
151 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
152 [PchSerialIoIndexUart0] = PchSerialIoDisabled,
153 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
154 [PchSerialIoIndexUart2] = PchSerialIoDisabled,
Michał Żygowski48be6b22019-06-27 12:19:18 +0200155 }"
156
Michał Żygowski48be6b22019-06-27 12:19:18 +0200157 device domain 0 on
Felix Singer1f7510f2023-11-12 18:34:28 +0000158 device ref igpu on end
Felix Singer6c83a712024-06-23 00:25:18 +0200159 device ref south_xhci on
160 register "usb2_ports" = "{
161 [0] = USB2_PORT_SHORT(OC_SKIP), // TYPE-A Port
162 [1] = USB2_PORT_SHORT(OC_SKIP), // TYPE-A Port
163 [2] = USB2_PORT_SHORT(OC_SKIP), // TYPE-A Port
164 [3] = USB2_PORT_SHORT(OC_SKIP), // TYPE-A Port
165 [4] = USB2_PORT_SHORT(OC_SKIP), // Type-A Port
166 [5] = USB2_PORT_SHORT(OC_SKIP), // TYPE-A Port
167 [6] = USB2_PORT_SHORT(OC_SKIP), // TYPE-A Port
168 [7] = USB2_PORT_SHORT(OC_SKIP), // mPCIe slot
169 }"
170
171 register "usb3_ports" = "{
172 [0] = USB3_PORT_DEFAULT(OC_SKIP), // TYPE-A Port
173 [1] = USB3_PORT_DEFAULT(OC_SKIP), // TYPE-A Port
174 [2] = USB3_PORT_DEFAULT(OC_SKIP), // TYPE-A Port
175 [3] = USB3_PORT_DEFAULT(OC_SKIP), // TYPE-A Port
176 }"
177 end
Felix Singer1f7510f2023-11-12 18:34:28 +0000178 device ref heci1 on end
Felix Singerdf7de392024-06-23 04:59:03 +0200179 device ref sata on
180 register "SataPortsEnable" = "{
181 [0] = 1,
182 [1] = 1,
183 }"
184 end
Felix Singer1f7510f2023-11-12 18:34:28 +0000185 device ref pcie_rp1 on end
186 device ref pcie_rp2 on end
187 device ref pcie_rp3 on end
188 device ref pcie_rp4 on end
189 device ref pcie_rp5 on end
190 device ref pcie_rp6 on end
191 device ref pcie_rp9 on
192 # WIFI
Michał Żygowski48be6b22019-06-27 12:19:18 +0200193 smbios_slot_desc
194 "SlotTypePciExpressMini52pinWithoutBSKO"
195 "SlotLengthShort" "WIFI1" "SlotDataBusWidth1X"
196 end
Felix Singer1f7510f2023-11-12 18:34:28 +0000197 device ref lpc_espi on
Felix Singer4b722032024-06-23 20:32:15 +0200198 register "serirq_mode" = "SERIRQ_CONTINUOUS"
199
Felix Singerdcddc53f2024-06-23 03:39:24 +0200200 register "gen1_dec" = "0x00fc0201"
201 register "gen2_dec" = "0x007c0a01"
202 register "gen3_dec" = "0x000c03e1"
203 register "gen4_dec" = "0x001c02e1"
Michał Żygowski48be6b22019-06-27 12:19:18 +0200204 chip superio/ite/it8772f
Joel Linnfb516612024-03-29 14:08:35 +0100205 register "TMPIN1.mode" = "THERMAL_RESISTOR"
206 register "TMPIN2.mode" = "THERMAL_RESISTOR"
207 register "TMPIN3.mode" = "THERMAL_PECI"
Michał Żygowski48be6b22019-06-27 12:19:18 +0200208 # FAN2 available on fan header but unused
209 device pnp 2e.0 off end # FDC
210 device pnp 2e.1 on # Serial Port 1
211 io 0x60 = 0x3f8
212 irq 0x70 = 4
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 off end # Keyboard
220 device pnp 2e.6 off end # Mouse
221 device pnp 2e.7 off end # GPIO
222 device pnp 2e.a off end # IR
223 end
Felix Singer1f7510f2023-11-12 18:34:28 +0000224 end
225 device ref smbus on end
Michał Żygowski48be6b22019-06-27 12:19:18 +0200226 end
Michał Żygowski7896b8c2020-06-19 17:15:51 +0200227 chip drivers/crb
228 device mmio 0xfed40000 on end
229 end
Michał Żygowski48be6b22019-06-27 12:19:18 +0200230end