blob: e1e68caff7f73c09f2cb32a6aaf5e7277c15e52e [file] [log] [blame]
Matt DeVillierbba1ee02018-07-09 00:58:59 -05001chip soc/intel/skylake
2
Nico Huber55c57772018-12-16 03:39:35 +01003 register "gpu_pp_up_delay_ms" = "200"
4 register "gpu_pp_down_delay_ms" = " 50"
5 register "gpu_pp_cycle_delay_ms" = "500"
6 register "gpu_pp_backlight_on_delay_ms" = " 1"
7 register "gpu_pp_backlight_off_delay_ms" = "200"
8
9 register "gpu_pch_backlight_pwm_hz" = "1000"
10
Matt DeVillierbba1ee02018-07-09 00:58:59 -050011 # Enable deep Sx states
12 register "deep_s3_enable_ac" = "0"
13 register "deep_s3_enable_dc" = "0"
14 register "deep_s5_enable_ac" = "1"
15 register "deep_s5_enable_dc" = "1"
16 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN"
17
18 # GPE configuration
19 # Note that GPE events called out in ASL code rely on this
20 # route. i.e. If this route changes then the affected GPE
21 # offset bits also need to be changed.
22 register "gpe0_dw0" = "GPP_B"
23 register "gpe0_dw1" = "GPP_D"
24 register "gpe0_dw2" = "GPP_E"
25
26 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
27 register "gen1_dec" = "0x00fc0801"
28 register "gen2_dec" = "0x000c0201"
29
30 # Enable "Intel Speed Shift Technology"
31 register "speed_shift_enable" = "1"
32
33 # Enable DPTF
34 register "dptf_enable" = "1"
35
36 # FSP Configuration
Matt DeVillierd957d122020-03-31 12:18:44 -050037 register "ProbelessTrace" = "0"
38 register "EnableLan" = "0"
39 register "EnableSata" = "0"
40 register "SataSalpSupport" = "0"
41 register "SataMode" = "0"
42 register "SataPortsEnable[0]" = "0"
Matt DeVillierbba1ee02018-07-09 00:58:59 -050043 register "EnableAzalia" = "1"
44 register "DspEnable" = "1"
45 register "IoBufferOwnership" = "3"
Matt DeVillierd957d122020-03-31 12:18:44 -050046 register "EnableTraceHub" = "0"
47 register "SsicPortEnable" = "0"
Matt DeVillierbba1ee02018-07-09 00:58:59 -050048 register "SmbusEnable" = "1"
Matt DeVillierd957d122020-03-31 12:18:44 -050049 register "Cio2Enable" = "0"
Matt DeVillierbba1ee02018-07-09 00:58:59 -050050 register "ScsEmmcEnabled" = "1"
51 register "ScsEmmcHs400Enabled" = "1"
52 register "ScsSdCardEnabled" = "0"
Matt DeVillierd957d122020-03-31 12:18:44 -050053 register "PttSwitch" = "0"
Matt DeVillierbba1ee02018-07-09 00:58:59 -050054 register "SkipExtGfxScan" = "1"
55 register "Device4Enable" = "1"
56 register "HeciEnabled" = "0"
57 register "SaGv" = "3"
Matt DeVillierbba1ee02018-07-09 00:58:59 -050058 register "PmConfigSlpS3MinAssert" = "2" # 50ms
59 register "PmConfigSlpS4MinAssert" = "4" # 4s
60 register "PmConfigSlpSusMinAssert" = "3" # 4s
61 register "PmConfigSlpAMinAssert" = "3" # 2s
62 register "PmTimerDisabled" = "1"
Matt DeVillierbba1ee02018-07-09 00:58:59 -050063
64 register "pirqa_routing" = "PCH_IRQ11"
65 register "pirqb_routing" = "PCH_IRQ10"
66 register "pirqc_routing" = "PCH_IRQ11"
67 register "pirqd_routing" = "PCH_IRQ11"
68 register "pirqe_routing" = "PCH_IRQ11"
69 register "pirqf_routing" = "PCH_IRQ11"
70 register "pirqg_routing" = "PCH_IRQ11"
71 register "pirqh_routing" = "PCH_IRQ11"
72
Michael Niewöhnerf89cb242019-10-09 21:02:36 +020073 # VR Settings Configuration for 4 Domains
74 #+----------------+-----------+-----------+-------------+----------+
75 #| Domain/Setting | SA | IA | GT Unsliced | GT |
76 #+----------------+-----------+-----------+-------------+----------+
77 #| Psi1Threshold | 20A | 20A | 20A | 20A |
78 #| Psi2Threshold | 4A | 5A | 5A | 5A |
79 #| Psi3Threshold | 1A | 1A | 1A | 1A |
80 #| Psi3Enable | 1 | 1 | 1 | 1 |
81 #| Psi4Enable | 1 | 1 | 1 | 1 |
82 #| ImonSlope | 0 | 0 | 0 | 0 |
83 #| ImonOffset | 0 | 0 | 0 | 0 |
84 #| IccMax | 7A | 34A | 35A | 35A |
85 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
86 #+----------------+-----------+-----------+-------------+----------+
Matt DeVillierbba1ee02018-07-09 00:58:59 -050087 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
88 .vr_config_enable = 1,
89 .psi1threshold = VR_CFG_AMP(20),
90 .psi2threshold = VR_CFG_AMP(4),
91 .psi3threshold = VR_CFG_AMP(1),
92 .psi3enable = 1,
93 .psi4enable = 1,
94 .imon_slope = 0x0,
95 .imon_offset = 0x0,
96 .icc_max = VR_CFG_AMP(7),
97 .voltage_limit = 1520,
98 }"
99
100 register "domain_vr_config[VR_IA_CORE]" = "{
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 .icc_max = VR_CFG_AMP(34),
110 .voltage_limit = 1520,
111 }"
112
Matt DeVillierbba1ee02018-07-09 00:58:59 -0500113 register "domain_vr_config[VR_GT_UNSLICED]" = "{
114 .vr_config_enable = 1,
115 .psi1threshold = VR_CFG_AMP(20),
116 .psi2threshold = VR_CFG_AMP(5),
117 .psi3threshold = VR_CFG_AMP(1),
118 .psi3enable = 1,
119 .psi4enable = 1,
120 .imon_slope = 0x0,
121 .imon_offset = 0x0,
122 .icc_max = VR_CFG_AMP(35),
123 .voltage_limit = 1520,
124 }"
125
126 register "domain_vr_config[VR_GT_SLICED]" = "{
127 .vr_config_enable = 1,
128 .psi1threshold = VR_CFG_AMP(20),
129 .psi2threshold = VR_CFG_AMP(5),
130 .psi3threshold = VR_CFG_AMP(1),
131 .psi3enable = 1,
132 .psi4enable = 1,
133 .imon_slope = 0x0,
134 .imon_offset = 0x0,
135 .icc_max = VR_CFG_AMP(35),
136 .voltage_limit = 1520,
137 }"
138
139 # Enable Root port 1
140 register "PcieRpEnable[0]" = "1"
141 # Enable CLKREQ#
142 register "PcieRpClkReqSupport[0]" = "1"
143 # RP 1 uses SRCCLKREQ1#
144 register "PcieRpClkReqNumber[0]" = "1"
145
146 register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC0)" # Type-C Port 1
147 register "usb2_ports[1]" = "USB2_PORT_MID(OC2)" # Card Reader
148 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
149 register "usb2_ports[4]" = "USB2_PORT_MID(OC2)" # Type-A Port (board)
150 register "usb2_ports[6]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera
151 register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # PIC MCU
152 register "usb2_ports[8]" = "USB2_PORT_LONG(OC3)" # Type-A Port (board)
153
154 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1
155 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Card Reader
156 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC2)" # Type-A Port (board)
157 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC3)" # Type-A Port (board)
158
Matt DeVillierbba1ee02018-07-09 00:58:59 -0500159 # Must leave UART0 enabled or SD/eMMC will not work as PCI
160 register "SerialIoDevMode" = "{
161 [PchSerialIoIndexI2C0] = PchSerialIoPci,
162 [PchSerialIoIndexI2C1] = PchSerialIoPci,
163 [PchSerialIoIndexI2C2] = PchSerialIoDisabled,
164 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
165 [PchSerialIoIndexI2C4] = PchSerialIoPci,
166 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
167 [PchSerialIoIndexSpi0] = PchSerialIoDisabled,
168 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
169 [PchSerialIoIndexUart0] = PchSerialIoPci,
170 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
171 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
172 }"
173
Matt DeVillierd957d122020-03-31 12:18:44 -0500174 # I2C4 is 1.8V
175 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8"
176
Matt DeVillierbba1ee02018-07-09 00:58:59 -0500177 # PL2 override 25W
178 register "tdp_pl2_override" = "25"
179
180 # Send an extra VR mailbox command for the PS4 exit issue
181 register "SendVrMbxCmd" = "2"
182
183 # Lock Down
184 register "common_soc_config" = "{
185 .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
186 }"
187
188 device cpu_cluster 0 on
189 device lapic 0 on end
190 end
191 device domain 0 on
192 device pci 00.0 on end # Host Bridge
193 device pci 02.0 on end # Integrated Graphics Device
194 device pci 14.0 on end # USB xHCI
195 device pci 14.1 off end # USB xDCI (OTG)
196 device pci 14.2 on end # Thermal Subsystem
197 device pci 15.0 on
198 chip drivers/i2c/generic
199 register "hid" = ""ELAN0001""
200 register "desc" = ""ELAN Touchscreen""
201 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E7_IRQ)"
202 device i2c 10 on end
203 end
204 end # I2C #0
205 device pci 15.1 on
206 chip drivers/i2c/generic
207 register "hid" = ""ELAN0000""
208 register "desc" = ""ELAN Touchpad""
Matt DeVillier6b27c382018-07-16 20:18:41 -0500209 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_B3_IRQ)"
Matt DeVillierbba1ee02018-07-09 00:58:59 -0500210 register "wake" = "GPE0_DW0_05"
211 device i2c 15 on end
212 end
213 end # I2C #1
214 device pci 15.2 off end # I2C #2
215 device pci 15.3 off end # I2C #3
216 device pci 16.0 on end # Management Engine Interface 1
217 device pci 16.1 off end # Management Engine Interface 2
218 device pci 16.2 off end # Management Engine IDE-R
219 device pci 16.3 off end # Management Engine KT Redirection
220 device pci 16.4 off end # Management Engine Interface 3
221 device pci 17.0 off end # SATA
222 device pci 19.0 on end # UART #2
223 device pci 19.1 off end # I2C #5
224 device pci 19.2 on
225 chip drivers/i2c/nau8825
226 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_F10_IRQ)"
227 register "jkdet_enable" = "1"
228 register "jkdet_pull_enable" = "0" # R389
229 register "jkdet_polarity" = "1" # ActiveLow
230 register "vref_impedance" = "2" # 125kOhm
231 register "micbias_voltage" = "6" # 2.754
232 register "sar_threshold_num" = "4"
233 register "sar_threshold[0]" = "0x08"
234 register "sar_threshold[1]" = "0x12"
235 register "sar_threshold[2]" = "0x26"
236 register "sar_threshold[3]" = "0x73"
237 register "sar_hysteresis" = "0"
238 register "sar_voltage" = "6"
239 register "sar_compare_time" = "1" # 1us
240 register "sar_sampling_time" = "1" # 4us
241 register "short_key_debounce" = "3" # 30ms
242 register "jack_insert_debounce" = "7" # 512ms
243 register "jack_eject_debounce" = "0"
244 device i2c 1a on end
245 end
246 end # I2C #4
247 device pci 1c.0 on
248 chip drivers/intel/wifi
249 register "wake" = "GPE0_DW0_16"
250 device pci 00.0 on end
251 end
252 end # PCI Express Port 1
253 device pci 1c.1 off end # PCI Express Port 2
254 device pci 1c.2 off end # PCI Express Port 3
255 device pci 1c.3 off end # PCI Express Port 4
256 device pci 1c.4 off end # PCI Express Port 5
257 device pci 1c.5 off end # PCI Express Port 6
258 device pci 1c.6 off end # PCI Express Port 7
259 device pci 1c.7 off end # PCI Express Port 8
260 device pci 1d.0 off end # PCI Express Port 9
261 device pci 1d.1 off end # PCI Express Port 10
262 device pci 1d.2 off end # PCI Express Port 11
263 device pci 1d.3 off end # PCI Express Port 12
264 device pci 1e.0 on end # UART #0
265 device pci 1e.1 off end # UART #1
266 device pci 1e.2 off end # GSPI #0
267 device pci 1e.3 off end # GSPI #1
268 device pci 1e.4 on end # eMMC
269 device pci 1e.5 off end # SDIO
270 device pci 1e.6 off end # SDCard
271 device pci 1f.0 on
272 chip drivers/pc80/tpm
273 device pnp 0c31.0 on end
274 end
275 chip ec/google/chromeec
276 device pnp 0c09.0 on end
277 end
278 end # LPC Interface
279 device pci 1f.1 on end # P2SB
280 device pci 1f.2 on end # Power Management Controller
281 device pci 1f.3 on
282 chip drivers/generic/max98357a
Aamir Bohraa1c82c52020-03-16 18:57:48 +0530283 register "hid" = ""MX98357A""
Matt DeVillierbba1ee02018-07-09 00:58:59 -0500284 register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E3)"
285 register "sdmode_delay" = "5"
286 device generic 0 on end
287 end
288 end # Intel HDA
289 device pci 1f.4 on end # SMBus
290 device pci 1f.5 on end # PCH SPI
291 device pci 1f.6 off end # GbE
292 end
293end