blob: 745d72ce32eaaeec1fa9a3db1e0a7e3f3720490a [file] [log] [blame]
Furquan Shaikh88880722017-05-01 14:23:37 -07001chip soc/intel/skylake
2
Matt DeVillier8f424722019-11-27 22:55:43 -06003 # IGD Displays
4 register "gfx" = "GMA_STATIC_DISPLAYS(0)"
5
Furquan Shaikh88880722017-05-01 14:23:37 -07006 # Deep Sx states
7 register "deep_s3_enable_ac" = "0"
Furquan Shaikhd37107e2017-11-08 11:28:10 -08008 register "deep_s3_enable_dc" = "0"
Furquan Shaikh88880722017-05-01 14:23:37 -07009 register "deep_s5_enable_ac" = "1"
10 register "deep_s5_enable_dc" = "1"
Furquan Shaikh9d867af2017-12-03 21:45:47 -080011 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN | DSX_EN_WAKE_PIN | DSX_DIS_AC_PRESENT_PD"
Furquan Shaikh88880722017-05-01 14:23:37 -070012
13 # GPE configuration
14 # Note that GPE events called out in ASL code rely on this
15 # route. i.e. If this route changes then the affected GPE
16 # offset bits also need to be changed.
17 register "gpe0_dw0" = "GPP_B"
18 register "gpe0_dw1" = "GPP_D"
19 register "gpe0_dw2" = "GPP_E"
20
21 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
22 register "gen1_dec" = "0x00fc0801"
23 register "gen2_dec" = "0x000c0201"
24 # EC memory map range is 0x900-0x9ff
25 register "gen3_dec" = "0x00fc0901"
26
27 # Enable DPTF
28 register "dptf_enable" = "1"
29
Rajat Jain2671afc2017-07-20 19:31:01 -070030 # Enable S0ix
31 register "s0ix_enable" = "1"
32
Furquan Shaikh88880722017-05-01 14:23:37 -070033 # FSP Configuration
Furquan Shaikh88880722017-05-01 14:23:37 -070034 register "SataSalpSupport" = "0"
35 register "SataMode" = "0"
36 register "SataPortsEnable[0]" = "0"
Furquan Shaikh88880722017-05-01 14:23:37 -070037 register "DspEnable" = "1"
38 register "IoBufferOwnership" = "3"
Furquan Shaikh88880722017-05-01 14:23:37 -070039 register "SsicPortEnable" = "0"
Furquan Shaikh88880722017-05-01 14:23:37 -070040 register "ScsEmmcHs400Enabled" = "1"
Furquan Shaikh88880722017-05-01 14:23:37 -070041 register "SkipExtGfxScan" = "1"
Furquan Shaikh88880722017-05-01 14:23:37 -070042 register "HeciEnabled" = "0"
Angel Pons6fadde02021-04-04 16:11:53 +020043 register "SaGv" = "SaGv_Enabled"
Furquan Shaikh88880722017-05-01 14:23:37 -070044 register "PmConfigSlpS3MinAssert" = "2" # 50ms
45 register "PmConfigSlpS4MinAssert" = "1" # 1s
46 register "PmConfigSlpSusMinAssert" = "1" # 500ms
47 register "PmConfigSlpAMinAssert" = "3" # 2s
Furquan Shaikh88880722017-05-01 14:23:37 -070048
Furquan Shaikh88880722017-05-01 14:23:37 -070049 # VR Settings Configuration for 4 Domains
50 #+----------------+-------+-------+-------+-------+
51 #| Domain/Setting | SA | IA | GTUS | GTS |
52 #+----------------+-------+-------+-------+-------+
53 #| Psi1Threshold | 20A | 20A | 20A | 20A |
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053054 #| Psi2Threshold | 2A | 2A | 2A | 2A |
Furquan Shaikh88880722017-05-01 14:23:37 -070055 #| Psi3Threshold | 1A | 1A | 1A | 1A |
56 #| Psi3Enable | 1 | 1 | 1 | 1 |
57 #| Psi4Enable | 1 | 1 | 1 | 1 |
58 #| ImonSlope | 0 | 0 | 0 | 0 |
59 #| ImonOffset | 0 | 0 | 0 | 0 |
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053060 #| IccMax | 5A | 24A | 24A | 24A |
Furquan Shaikh88880722017-05-01 14:23:37 -070061 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053062 #| AcLoadline | 15 | 5.7 | 5.5 | 5.5 |
63 #| DcLoadline | 14.3 | 4.83 | 4.2 | 4.2 |
Furquan Shaikh88880722017-05-01 14:23:37 -070064 #+----------------+-------+-------+-------+-------+
65 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
66 .vr_config_enable = 1,
67 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053068 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -070069 .psi3threshold = VR_CFG_AMP(1),
70 .psi3enable = 1,
71 .psi4enable = 1,
72 .imon_slope = 0x0,
73 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053074 .icc_max = VR_CFG_AMP(5),
Furquan Shaikh88880722017-05-01 14:23:37 -070075 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053076 .ac_loadline = 1500,
77 .dc_loadline = 1430,
Furquan Shaikh88880722017-05-01 14:23:37 -070078 }"
79
80 register "domain_vr_config[VR_IA_CORE]" = "{
81 .vr_config_enable = 1,
82 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053083 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -070084 .psi3threshold = VR_CFG_AMP(1),
85 .psi3enable = 1,
86 .psi4enable = 1,
87 .imon_slope = 0x0,
88 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053089 .icc_max = VR_CFG_AMP(24),
Furquan Shaikh88880722017-05-01 14:23:37 -070090 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053091 .ac_loadline = 570,
92 .dc_loadline = 483,
Furquan Shaikh88880722017-05-01 14:23:37 -070093 }"
94
95 register "domain_vr_config[VR_GT_UNSLICED]" = "{
96 .vr_config_enable = 1,
97 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +053098 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -070099 .psi3threshold = VR_CFG_AMP(1),
100 .psi3enable = 1,
101 .psi4enable = 1,
102 .imon_slope = 0x0,
103 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530104 .icc_max = VR_CFG_AMP(24),
Furquan Shaikh88880722017-05-01 14:23:37 -0700105 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530106 .ac_loadline = 550,
107 .dc_loadline = 420,
Furquan Shaikh88880722017-05-01 14:23:37 -0700108 }"
109
110 register "domain_vr_config[VR_GT_SLICED]" = "{
111 .vr_config_enable = 1,
112 .psi1threshold = VR_CFG_AMP(20),
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530113 .psi2threshold = VR_CFG_AMP(2),
Furquan Shaikh88880722017-05-01 14:23:37 -0700114 .psi3threshold = VR_CFG_AMP(1),
115 .psi3enable = 1,
116 .psi4enable = 1,
117 .imon_slope = 0x0,
118 .imon_offset = 0x0,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530119 .icc_max = VR_CFG_AMP(24),
Furquan Shaikh88880722017-05-01 14:23:37 -0700120 .voltage_limit = 1520,
Rajneesh Bhardwaj4692e2f2017-06-21 16:42:53 +0530121 .ac_loadline = 550,
122 .dc_loadline = 420,
Furquan Shaikh88880722017-05-01 14:23:37 -0700123 }"
124
125 # Enable Root port 1.
126 register "PcieRpEnable[0]" = "1"
127 # Enable CLKREQ#
128 register "PcieRpClkReqSupport[0]" = "1"
129 # RP 1 uses SRCCLKREQ1#
130 register "PcieRpClkReqNumber[0]" = "1"
Rizwan Qureshi86885362017-09-05 14:23:27 +0530131 # RP 1, Enable Advanced Error Reporting
Rizwan Qureshi09703f62017-09-16 02:01:13 +0530132 register "PcieRpAdvancedErrorReporting[0]" = "1"
133 # RP 1, Enable Latency Tolerance Reporting Mechanism
134 register "PcieRpLtrEnable[0]" = "1"
Divya Chellape7fb7ce2017-12-19 20:16:50 +0530135 # RP 1 uses uses CLK SRC 1
136 register "PcieRpClkSrcNumber[0]" = "1"
Furquan Shaikh88880722017-05-01 14:23:37 -0700137
138 register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C Port 1
139 register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
140 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
Wisley Chen1fbc1922017-09-05 17:14:06 +0800141 register "usb2_ports[4]" = "USB2_PORT_MAX(OC1)" # Type-C Port 2
Furquan Shaikh88880722017-05-01 14:23:37 -0700142 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
143 register "usb2_ports[8]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
144
145 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1
146 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2
147 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A Port
Furquan Shaikh88880722017-05-01 14:23:37 -0700148
Subrata Banikc4986eb2018-05-09 14:55:09 +0530149 # Intel Common SoC Config
150 #+-------------------+---------------------------+
151 #| Field | Value |
152 #+-------------------+---------------------------+
Subrata Banikc4986eb2018-05-09 14:55:09 +0530153 #| I2C0 | Touchscreen |
154 #| I2C1 | cr50 TPM. Early init is |
155 #| | required to set up a BAR |
156 #| | for TPM communication |
157 #| | before memory is up |
158 #| I2C2 | Camera |
159 #| I2C4 | Camera |
160 #| I2C5 | Audio |
Subrata Banikc077b222019-08-01 10:50:35 +0530161 #| pch_thermal_trip | PCH Trip Temperature |
Subrata Banikc4986eb2018-05-09 14:55:09 +0530162 #+-------------------+---------------------------+
163 register "common_soc_config" = "{
Subrata Banikc4986eb2018-05-09 14:55:09 +0530164 .i2c[0] = {
Furquan Shaikheeab2712017-08-28 14:32:05 -0700165 .speed = I2C_SPEED_FAST,
Subrata Banikc4986eb2018-05-09 14:55:09 +0530166 .speed_config[0] = {
167 .speed = I2C_SPEED_FAST,
168 .scl_lcnt = 180,
169 .scl_hcnt = 85,
170 .sda_hold = 36,
171 },
172 },
173 .i2c[1] = {
174 .early_init = 1,
175 .speed = I2C_SPEED_FAST,
176 .speed_config[0] = {
177 .speed = I2C_SPEED_FAST,
178 .scl_lcnt = 190,
179 .scl_hcnt = 90,
180 .sda_hold = 36,
181 },
182 },
183 .i2c[2] = {
184 .speed = I2C_SPEED_FAST,
185 .speed_config[0] = {
186 .speed = I2C_SPEED_FAST,
187 .scl_lcnt = 192,
188 .scl_hcnt = 90,
189 .sda_hold = 36,
190 },
191 },
192 .i2c[4] = {
193 .speed = I2C_SPEED_FAST,
194 .speed_config[0] = {
195 .speed = I2C_SPEED_FAST,
196 .scl_lcnt = 190,
197 .scl_hcnt = 90,
198 .sda_hold = 36,
199 },
200 },
201 .i2c[5] = {
202 .speed = I2C_SPEED_FAST,
203 .speed_config[0] = {
204 .speed = I2C_SPEED_FAST,
205 .scl_lcnt = 190,
206 .scl_hcnt = 90,
207 .sda_hold = 36,
208 },
Furquan Shaikheeab2712017-08-28 14:32:05 -0700209 },
Subrata Banikc077b222019-08-01 10:50:35 +0530210 .pch_thermal_trip = 75,
Furquan Shaikheeab2712017-08-28 14:32:05 -0700211 }"
212
Subrata Banikc4986eb2018-05-09 14:55:09 +0530213 # Touchscreen
214 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3"
215
Furquan Shaikheeab2712017-08-28 14:32:05 -0700216 # H1
Furquan Shaikheeab2712017-08-28 14:32:05 -0700217 # Configure I2C1 for cr50 TPM. Early init is required to set up a BAR
218 # for TPM communication before memory is up.
Subrata Banikc4986eb2018-05-09 14:55:09 +0530219 register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3"
Furquan Shaikheeab2712017-08-28 14:32:05 -0700220
221 # Camera
222 register "i2c_voltage[2]" = "I2C_VOLTAGE_1V8"
Furquan Shaikheeab2712017-08-28 14:32:05 -0700223
Furquan Shaikheeab2712017-08-28 14:32:05 -0700224 # Camera
225 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8"
Furquan Shaikheeab2712017-08-28 14:32:05 -0700226
227 # Audio
228 register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8"
Furquan Shaikh88880722017-05-01 14:23:37 -0700229
Furquan Shaikh88880722017-05-01 14:23:37 -0700230 # Must leave UART0 enabled or SD/eMMC will not work as PCI
231 register "SerialIoDevMode" = "{
232 [PchSerialIoIndexI2C0] = PchSerialIoPci,
233 [PchSerialIoIndexI2C1] = PchSerialIoPci,
234 [PchSerialIoIndexI2C2] = PchSerialIoPci,
Wisley Chend9ccb4e2017-09-01 09:21:31 +0800235 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
Furquan Shaikh88880722017-05-01 14:23:37 -0700236 [PchSerialIoIndexI2C4] = PchSerialIoPci,
237 [PchSerialIoIndexI2C5] = PchSerialIoPci,
Furquan Shaikh763b4062017-12-04 12:17:24 -0800238 [PchSerialIoIndexSpi0] = PchSerialIoDisabled,
Furquan Shaikh296c79c2017-06-09 18:41:39 -0700239 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
Angel Pons08564942021-06-04 18:55:03 +0200240 [PchSerialIoIndexUart0] = PchSerialIoSkipInit,
Furquan Shaikh88880722017-05-01 14:23:37 -0700241 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
242 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
243 }"
244
Sumeet Pawnikarb4411d32017-08-10 18:55:12 +0530245 # PL2 override 15W for KBL-Y
Sumeet R Pawnikar97c54642020-05-10 01:24:11 +0530246 register "power_limits_config" = "{
247 .tdp_pl2_override = 15,
248 .psys_pmax = 45,
249 }"
Furquan Shaikh88880722017-05-01 14:23:37 -0700250 register "tcc_offset" = "10" # TCC of 90C
251
252 # Use default SD card detect GPIO configuration
Angel Pons6bd99f92021-02-20 00:16:47 +0100253 register "sdcard_cd_gpio" = "GPP_E15"
Furquan Shaikh88880722017-05-01 14:23:37 -0700254
255 device cpu_cluster 0 on
256 device lapic 0 on end
257 end
258 device domain 0 on
259 device pci 00.0 on end # Host Bridge
260 device pci 02.0 on end # Integrated Graphics Device
Felix Singer9c1c0092020-07-29 20:48:08 +0200261 device pci 04.0 on end # SA thermal subsystem
Felix Singer4d5c4e02020-07-29 22:28:37 +0200262 device pci 05.0 on end # SA IMGU
Furquan Shaikh88880722017-05-01 14:23:37 -0700263 device pci 14.0 on end # USB xHCI
Furquan Shaikh7ca40062018-04-25 17:59:09 -0700264 device pci 14.1 on end # USB xDCI (OTG)
Furquan Shaikh88880722017-05-01 14:23:37 -0700265 device pci 14.2 on end # Thermal Subsystem
Felix Singere2186672020-07-29 23:20:52 +0200266 device pci 14.3 on end # Camera
Furquan Shaikh88880722017-05-01 14:23:37 -0700267 device pci 15.0 on
Wisley Chena80a0eb2017-07-06 18:02:04 +0800268 chip drivers/i2c/hid
269 register "generic.hid" = ""WCOMCOHO""
270 register "generic.desc" = ""WCOM Touchscreen""
271 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)"
272 register "generic.probed" = "1"
273 register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E3)"
Furquan Shaikhef1a5ed2017-10-06 14:06:27 -0700274 register "generic.reset_delay_ms" = "10"
Wisley Chena80a0eb2017-07-06 18:02:04 +0800275 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C22)"
276 register "generic.enable_delay_ms" = "1"
Furquan Shaikh3ed59692017-08-28 17:26:28 -0700277 register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E11)"
Wisley Chena80a0eb2017-07-06 18:02:04 +0800278 register "generic.has_power_resource" = "1"
279 register "generic.disable_gpio_export_in_crs" = "1"
280 register "hid_desc_reg_offset" = "0x1"
281 device i2c 0xA on end
282 end
Furquan Shaikh88880722017-05-01 14:23:37 -0700283 end # I2C #0
284 device pci 15.1 on
285 chip drivers/i2c/tpm
286 register "hid" = ""GOOG0005""
287 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)"
288 device i2c 50 on end
289 end
290 end # I2C #1
V Sowmya5dc15382017-05-05 14:21:48 +0530291 device pci 15.2 on end # I2C #2
Wisley Chend9ccb4e2017-09-01 09:21:31 +0800292 device pci 15.3 off end # I2C #3
Furquan Shaikh88880722017-05-01 14:23:37 -0700293 device pci 16.0 on end # Management Engine Interface 1
294 device pci 16.1 off end # Management Engine Interface 2
295 device pci 16.2 off end # Management Engine IDE-R
296 device pci 16.3 off end # Management Engine KT Redirection
297 device pci 16.4 off end # Management Engine Interface 3
298 device pci 17.0 off end # SATA
299 device pci 19.0 on end # UART #2
300 device pci 19.1 on
301 chip drivers/i2c/max98927
302 register "interleave_mode" = "1"
Harsha Priya130b4a22017-08-24 14:40:04 -0700303 register "vmon_slot_no" = "4"
304 register "imon_slot_no" = "5"
Furquan Shaikh88880722017-05-01 14:23:37 -0700305 register "uid" = "0"
306 register "desc" = ""SSM4567 Right Speaker Amp""
307 register "name" = ""MAXR""
308 device i2c 39 on end
309 end
310 chip drivers/i2c/max98927
311 register "interleave_mode" = "1"
Harsha Priya130b4a22017-08-24 14:40:04 -0700312 register "vmon_slot_no" = "6"
313 register "imon_slot_no" = "7"
Furquan Shaikh88880722017-05-01 14:23:37 -0700314 register "uid" = "1"
315 register "desc" = ""SSM4567 Left Speaker Amp""
316 register "name" = ""MAXL""
317 device i2c 3A on end
318 end
319 chip drivers/i2c/generic
320 register "hid" = ""10EC5663""
321 register "name" = ""RT53""
322 register "desc" = ""Realtek RT5663""
323 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D9)"
324 register "probed" = "1"
325 device i2c 13 on end
326 end
327 end # I2C #5
V Sowmya5dc15382017-05-05 14:21:48 +0530328 device pci 19.2 on end # I2C #4
Furquan Shaikh88880722017-05-01 14:23:37 -0700329 device pci 1c.0 on
Furquan Shaikha266d1e2020-10-04 12:52:54 -0700330 chip drivers/wifi/generic
Furquan Shaikh88880722017-05-01 14:23:37 -0700331 register "wake" = "GPE0_PCI_EXP"
332 device pci 00.0 on end
333 end
334 end # PCI Express Port 1
335 device pci 1c.1 off end # PCI Express Port 2
336 device pci 1c.2 off end # PCI Express Port 3
337 device pci 1c.3 off end # PCI Express Port 4
338 device pci 1c.4 off end # PCI Express Port 5
339 device pci 1c.5 off end # PCI Express Port 6
340 device pci 1c.6 off end # PCI Express Port 7
341 device pci 1c.7 off end # PCI Express Port 8
342 device pci 1d.0 off end # PCI Express Port 9
343 device pci 1d.1 off end # PCI Express Port 10
344 device pci 1d.2 off end # PCI Express Port 11
345 device pci 1d.3 off end # PCI Express Port 12
346 device pci 1e.0 on end # UART #0
347 device pci 1e.1 off end # UART #1
Furquan Shaikh763b4062017-12-04 12:17:24 -0800348 device pci 1e.2 off end # GSPI #0
Furquan Shaikh296c79c2017-06-09 18:41:39 -0700349 device pci 1e.3 off end # GSPI #1
Furquan Shaikh88880722017-05-01 14:23:37 -0700350 device pci 1e.4 on end # eMMC
351 device pci 1e.5 off end # SDIO
352 device pci 1e.6 on end # SDCard
353 device pci 1f.0 on
354 chip ec/google/chromeec
355 device pnp 0c09.0 on end
356 end
357 end # LPC Interface
358 device pci 1f.1 on end # P2SB
359 device pci 1f.2 on end # Power Management Controller
360 device pci 1f.3 on end # Intel HDA
361 device pci 1f.4 on end # SMBus
362 device pci 1f.5 on end # PCH SPI
363 device pci 1f.6 off end # GbE
364 end
365end