blob: 11cb31a41379125a6bb42b8c4245ed41788336c6 [file] [log] [blame]
Lee Leahyc4210412015-06-29 11:37:56 -07001chip soc/intel/skylake
2
Duncan Laurie1c2de9f2015-09-03 16:05:00 -07003 # Enable deep Sx states
Duncan Laurie1c2de9f2015-09-03 16:05:00 -07004 register "deep_s5_enable" = "1"
5 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN"
6
7 # GPE configuration
8 # Note that GPE events called out in ASL code rely on this
9 # route. i.e. If this route changes then the affected GPE
10 # offset bits also need to be changed.
Duncan Lauried6a42f92015-09-08 16:28:21 -070011 register "gpe0_dw0" = "GPP_B"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070012 register "gpe0_dw1" = "GPP_D"
13 register "gpe0_dw2" = "GPP_E"
14
Subrata Banik89f6d602016-07-26 15:37:11 +053015 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070016 register "gen1_dec" = "0x00fc0801"
Subrata Banik89f6d602016-07-26 15:37:11 +053017 register "gen2_dec" = "0x000c0201"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070018
Subrata Banik2a696c02016-02-08 17:19:10 +053019 # Enable "Intel Speed Shift Technology"
20 register "speed_shift_enable" = "1"
21
Duncan Laurie74b964e2015-09-04 10:41:02 -070022 # Enable DPTF
23 register "dptf_enable" = "1"
24
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070025 # FSP Configuration
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070026 register "EnableAzalia" = "1"
27 register "DspEnable" = "1"
28 register "IoBufferOwnership" = "3"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070029 register "SmbusEnable" = "1"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070030 register "ScsEmmcEnabled" = "1"
31 register "ScsEmmcHs400Enabled" = "1"
32 register "ScsSdCardEnabled" = "2"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070033 register "InternalGfx" = "1"
34 register "SkipExtGfxScan" = "1"
35 register "Device4Enable" = "1"
Archana Patni30f53cd2015-11-11 01:30:41 +053036 register "HeciEnabled" = "0"
haridharf991bf02015-12-04 10:41:23 +053037 register "SaGv" = "3"
Archana Patni4af905a2015-12-19 00:10:17 +053038 register "PmTimerDisabled" = "1"
Rizwan Qureshifb879982015-11-19 16:06:28 +053039
Barnali Sarkar8f2f22d2016-08-03 12:15:22 +053040 register "pirqa_routing" = "PCH_IRQ11"
41 register "pirqb_routing" = "PCH_IRQ10"
42 register "pirqc_routing" = "PCH_IRQ11"
43 register "pirqd_routing" = "PCH_IRQ11"
44 register "pirqe_routing" = "PCH_IRQ11"
45 register "pirqf_routing" = "PCH_IRQ11"
46 register "pirqg_routing" = "PCH_IRQ11"
47 register "pirqh_routing" = "PCH_IRQ11"
48
Rizwan Qureshifb879982015-11-19 16:06:28 +053049 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
50 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
51 register "PmConfigSlpS3MinAssert" = "0x02"
52
53 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
54 register "PmConfigSlpS4MinAssert" = "0x04"
55
56 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
57 register "PmConfigSlpSusMinAssert" = "0x03"
58
59 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
60 register "PmConfigSlpAMinAssert" = "0x03"
61
62 # Determines if enable Serial IRQ. Values 0: Disabled, 1: Enabled
63 register "SerialIrqConfigSirqEnable" = "0x01"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070064
Rizwan Qureshi3fc42772015-11-20 11:47:40 +053065 # VR Settings Configuration for 5 Domains
66 #+----------------+-------+-------+-------------+-------------+-------+
67 #| Domain/Setting | SA | IA | Ring Sliced | GT Unsliced | GT |
68 #+----------------+-------+-------+-------------+-------------+-------+
69 #| Psi1Threshold | 20A | 20A | 20A | 20A | 20A |
70 #| Psi2Threshold | 4A | 5A | 5A | 5A | 5A |
71 #| Psi3Threshold | 1A | 1A | 1A | 1A | 1A |
72 #| Psi3Enable | 1 | 1 | 1 | 1 | 1 |
73 #| Psi4Enable | 1 | 1 | 1 | 1 | 1 |
74 #| ImonSlope | 0 | 0 | 0 | 0 | 0 |
75 #| ImonOffset | 0 | 0 | 0 | 0 | 0 |
76 #| IccMax | 7A | 34A | 34A | 35A | 35A |
77 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V | 1.52V |
78 #+----------------+-------+-------+-------------+-------------+-------+
79 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
80 .vr_config_enable = 1, \
81 .psi1threshold = 0x50, \
82 .psi2threshold = 0x10, \
83 .psi3threshold = 0x4, \
84 .psi3enable = 1, \
85 .psi4enable = 1, \
86 .imon_slope = 0x0, \
87 .imon_offset = 0x0, \
88 .icc_max = 0x1C, \
89 .voltage_limit = 0x5F0 \
90 }"
91
92 register "domain_vr_config[VR_IA_CORE]" = "{
93 .vr_config_enable = 1, \
94 .psi1threshold = 0x50, \
95 .psi2threshold = 0x14, \
96 .psi3threshold = 0x4, \
97 .psi3enable = 1, \
98 .psi4enable = 1, \
99 .imon_slope = 0x0, \
100 .imon_offset = 0x0, \
101 .icc_max = 0x88, \
102 .voltage_limit = 0x5F0 \
103 }"
104 register "domain_vr_config[VR_RING]" = "{
105 .vr_config_enable = 1, \
106 .psi1threshold = 0x50, \
107 .psi2threshold = 0x14, \
108 .psi3threshold = 0x4, \
109 .psi3enable = 1, \
110 .psi4enable = 1, \
111 .imon_slope = 0x0, \
112 .imon_offset = 0x0, \
113 .icc_max = 0x88, \
114 .voltage_limit = 0x5F0, \
115 }"
116
117 register "domain_vr_config[VR_GT_UNSLICED]" = "{
118 .vr_config_enable = 1, \
119 .psi1threshold = 0x50, \
120 .psi2threshold = 0x14, \
121 .psi3threshold = 0x4, \
122 .psi3enable = 1, \
123 .psi4enable = 1, \
124 .imon_slope = 0x0, \
125 .imon_offset = 0x0, \
126 .icc_max = 0x8C ,\
127 .voltage_limit = 0x5F0 \
128 }"
129
130 register "domain_vr_config[VR_GT_SLICED]" = "{
131 .vr_config_enable = 1, \
132 .psi1threshold = 0x50, \
133 .psi2threshold = 0x14, \
134 .psi3threshold = 0x4, \
135 .psi3enable = 1, \
136 .psi4enable = 1, \
137 .imon_slope = 0x0, \
138 .imon_offset = 0x0, \
139 .icc_max = 0x8C, \
140 .voltage_limit = 0x5F0 \
141 }"
142
Rizwan Qureshifefce182015-11-19 16:30:18 +0530143 register "FspSkipMpInit" = "1"
144
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700145 # Enable Root port 1 and 5.
146 register "PcieRpEnable[0]" = "1"
147 register "PcieRpEnable[4]" = "1"
148 # Enable CLKREQ#
149 register "PcieRpClkReqSupport[0]" = "1"
150 register "PcieRpClkReqSupport[4]" = "1"
151 # RP 1 uses SRCCLKREQ1# while RP 5 uses SRCCLKREQ2#
152 register "PcieRpClkReqNumber[0]" = "1"
153 register "PcieRpClkReqNumber[4]" = "2"
Lee Leahyc4210412015-06-29 11:37:56 -0700154
Subrata Banik2c3054c2016-11-22 20:21:49 +0530155 register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC0)" # Type-C Port 1
156 register "usb2_ports[1]" = "USB2_PORT_TYPE_C(OC1)" # Type-C Port 2
157 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
158 register "usb2_ports[4]" = "USB2_PORT_MID(OC2)" # Type-A Port (card)
159 register "usb2_ports[6]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera
160 register "usb2_ports[8]" = "USB2_PORT_LONG(OC3)" # Type-A Port (board)
Duncan Laurie2b9595a2015-08-28 17:48:11 -0700161
Subrata Banik2c3054c2016-11-22 20:21:49 +0530162 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1
163 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2
164 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC2)" # Type-A Port (card)
165 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC3)" # Type-A Port (board)
Duncan Lauriec8d45ac2016-06-06 17:21:00 -0700166
Aaron Durbined14a4e2016-11-09 17:04:15 -0600167 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" # I2C4 is 1.8V
Rizwan Qureshi9cd8e5a2015-10-05 19:13:01 +0530168
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700169 # Must leave UART0 enabled or SD/eMMC will not work as PCI
170 register "SerialIoDevMode" = "{ \
171 [PchSerialIoIndexI2C0] = PchSerialIoPci, \
172 [PchSerialIoIndexI2C1] = PchSerialIoPci, \
173 [PchSerialIoIndexI2C2] = PchSerialIoDisabled, \
174 [PchSerialIoIndexI2C3] = PchSerialIoDisabled, \
175 [PchSerialIoIndexI2C4] = PchSerialIoPci, \
176 [PchSerialIoIndexI2C5] = PchSerialIoDisabled, \
177 [PchSerialIoIndexSpi0] = PchSerialIoDisabled, \
178 [PchSerialIoIndexSpi1] = PchSerialIoDisabled, \
179 [PchSerialIoIndexUart0] = PchSerialIoPci, \
180 [PchSerialIoIndexUart1] = PchSerialIoDisabled, \
Rizwan Qureshi9cd8e5a2015-10-05 19:13:01 +0530181 [PchSerialIoIndexUart2] = PchSerialIoSkipInit, \
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700182 }"
Lee Leahyc4210412015-06-29 11:37:56 -0700183
pchandrif28929d2016-01-19 10:49:51 -0800184 # PL2 override 25W
185 register "tdp_pl2_override" = "25"
186
Subrata Banik9a8b67d2016-04-20 14:19:53 +0530187 # Send an extra VR mailbox command for the PS4 exit issue
188 register "SendVrMbxCmd" = "2"
189
Rizwan Qureshi5ff73902016-08-24 20:50:54 +0530190 # Enable/Disable VMX feature
191 register "VmxEnable" = "0"
192
Duncan Laurie9482cf62016-06-22 11:31:51 -0700193 # Use default SD card detect GPIO configuration
194 register "sdcard_cd_gpio_default" = "GPP_A7"
195
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700196 device cpu_cluster 0 on
Lee Leahyc4210412015-06-29 11:37:56 -0700197 device lapic 0 on end
198 end
199 device domain 0 on
Lee Leahyc4210412015-06-29 11:37:56 -0700200 device pci 00.0 on end # Host Bridge
201 device pci 02.0 on end # Integrated Graphics Device
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700202 device pci 14.0 on end # USB xHCI
203 device pci 14.1 off end # USB xDCI (OTG)
Lee Leahyc4210412015-06-29 11:37:56 -0700204 device pci 14.2 on end # Thermal Subsystem
Duncan Laurie9482cf62016-06-22 11:31:51 -0700205 device pci 15.0 on
206 chip drivers/i2c/generic
207 register "hid" = ""ELAN0001""
208 register "desc" = ""ELAN Touchscreen""
Furquan Shaikh5b9b5932017-02-21 13:16:30 -0800209 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E7_IRQ)"
Duncan Laurie9482cf62016-06-22 11:31:51 -0700210 device i2c 10 on end
211 end
212 end # I2C #0
213 device pci 15.1 on
214 chip drivers/i2c/generic
215 register "hid" = ""ELAN0000""
216 register "desc" = ""ELAN Touchpad""
Furquan Shaikh5b9b5932017-02-21 13:16:30 -0800217 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_B3_IRQ)"
Duncan Laurie9482cf62016-06-22 11:31:51 -0700218 register "wake" = "GPE0_DW0_05"
219 device i2c 15 on end
220 end
221 end # I2C #1
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700222 device pci 15.2 off end # I2C #2
223 device pci 15.3 off end # I2C #3
Lee Leahyc4210412015-06-29 11:37:56 -0700224 device pci 16.0 on end # Management Engine Interface 1
225 device pci 16.1 off end # Management Engine Interface 2
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700226 device pci 16.2 off end # Management Engine IDE-R
227 device pci 16.3 off end # Management Engine KT Redirection
228 device pci 16.4 off end # Management Engine Interface 3
229 device pci 17.0 off end # SATA
230 device pci 19.0 on end # UART #2
231 device pci 19.1 off end # I2C #5
Duncan Laurie9482cf62016-06-22 11:31:51 -0700232 device pci 19.2 on
233 chip drivers/i2c/nau8825
Furquan Shaikh5b9b5932017-02-21 13:16:30 -0800234 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_F10_IRQ)"
Duncan Laurie9482cf62016-06-22 11:31:51 -0700235 register "jkdet_enable" = "1"
236 register "jkdet_pull_enable" = "1"
237 register "jkdet_pull_up" = "1"
238 register "jkdet_polarity" = "1" # ActiveLow
239 register "vref_impedance" = "2" # 125kOhm
240 register "micbias_voltage" = "6" # 2.754
241 register "sar_threshold_num" = "4"
242 register "sar_threshold[0]" = "0x08"
243 register "sar_threshold[1]" = "0x12"
244 register "sar_threshold[2]" = "0x26"
245 register "sar_threshold[3]" = "0x73"
246 register "sar_hysteresis" = "0"
247 register "sar_voltage" = "6"
248 register "sar_compare_time" = "1" # 1us
249 register "sar_sampling_time" = "1" # 4us
250 register "short_key_debounce" = "3" # 30ms
251 register "jack_insert_debounce" = "7" # 512ms
252 register "jack_eject_debounce" = "0"
253 device i2c 1a on end
254 end
255 chip drivers/i2c/generic
256 register "hid" = ""INT343B""
257 register "desc" = ""SSM4567 Left Speaker Amp""
258 register "uid" = "0"
259 register "device_present_gpio" = "GPP_E3"
260 device i2c 34 on end
261 end
262 chip drivers/i2c/generic
263 register "hid" = ""INT343B""
264 register "desc" = ""SSM4567 Right Speaker Amp""
265 register "uid" = "1"
266 register "device_present_gpio" = "GPP_E3"
267 device i2c 35 on end
268 end
269 end # I2C #4
270 device pci 1c.0 on
271 chip drivers/intel/wifi
272 register "wake" = "GPE0_DW0_16"
273 device pci 00.0 on end
274 end
275 end # PCI Express Port 1
Lee Leahyc4210412015-06-29 11:37:56 -0700276 device pci 1c.1 off end # PCI Express Port 2
277 device pci 1c.2 off end # PCI Express Port 3
278 device pci 1c.3 off end # PCI Express Port 4
Pratik Prajapatif1acb9b2015-08-13 15:21:37 -0700279 device pci 1c.4 on end # PCI Express Port 5
Lee Leahyc4210412015-06-29 11:37:56 -0700280 device pci 1c.5 off end # PCI Express Port 6
281 device pci 1c.6 off end # PCI Express Port 7
282 device pci 1c.7 off end # PCI Express Port 8
Pratik Prajapatif1acb9b2015-08-13 15:21:37 -0700283 device pci 1d.0 off end # PCI Express Port 9
Lee Leahyc4210412015-06-29 11:37:56 -0700284 device pci 1d.1 off end # PCI Express Port 10
285 device pci 1d.2 off end # PCI Express Port 11
286 device pci 1d.3 off end # PCI Express Port 12
287 device pci 1e.0 on end # UART #0
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700288 device pci 1e.1 off end # UART #1
289 device pci 1e.2 off end # GSPI #0
290 device pci 1e.3 off end # GSPI #1
Lee Leahyc4210412015-06-29 11:37:56 -0700291 device pci 1e.4 on end # eMMC
292 device pci 1e.5 off end # SDIO
293 device pci 1e.6 on end # SDCard
294 device pci 1f.0 on
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700295 chip drivers/pc80/tpm
296 device pnp 0c31.0 on end
297 end
Lee Leahyc4210412015-06-29 11:37:56 -0700298 chip ec/google/chromeec
299 device pnp 0c09.0 on end
300 end
301 end # LPC Interface
Archana Patni30f53cd2015-11-11 01:30:41 +0530302 device pci 1f.1 on end # P2SB
Naveen Krishna Chatradhi133dcd32015-07-10 16:00:51 +0530303 device pci 1f.2 on end # Power Management Controller
Duncan Laurie9482cf62016-06-22 11:31:51 -0700304 device pci 1f.3 on
305 chip drivers/generic/max98357a
Furquan Shaikh028200f2016-10-04 10:53:32 -0700306 register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E3)"
Duncan Laurie9482cf62016-06-22 11:31:51 -0700307 register "device_present_gpio" = "GPP_E3"
308 register "device_present_gpio_invert" = "1"
309 device generic 0 on end
310 end
311 end # Intel HDA
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700312 device pci 1f.4 on end # SMBus
313 device pci 1f.5 on end # PCH SPI
314 device pci 1f.6 off end # GbE
Lee Leahyc4210412015-06-29 11:37:56 -0700315 end
316end