blob: c96faf78af8e28805396cbc21d129e74d0467cae [file] [log] [blame]
Duncan Laurie81485d22016-10-28 09:13:52 -07001chip soc/intel/skylake
2
3 # Enable deep Sx states
4 register "deep_s3_enable" = "1"
5 register "deep_s5_enable" = "1"
6 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN | DSX_EN_WAKE_PIN"
7
8 # GPE configuration
9 # Note that GPE events called out in ASL code rely on this
10 # route. i.e. If this route changes then the affected GPE
11 # offset bits also need to be changed.
12 register "gpe0_dw0" = "GPP_B"
13 register "gpe0_dw1" = "GPP_D"
14 register "gpe0_dw2" = "GPP_E"
15
16 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
17 register "gen1_dec" = "0x00fc0801"
18 register "gen2_dec" = "0x000c0201"
19 # EC memory map range is 0x900-0x9ff
20 register "gen3_dec" = "0x00fc0901"
21
22 # FSP Configuration
23 register "ProbelessTrace" = "0"
24 register "EnableLan" = "0"
25 register "EnableSata" = "0"
26 register "SataSalpSupport" = "0"
27 register "SataMode" = "0"
28 register "SataPortsEnable[0]" = "0"
29 register "EnableAzalia" = "1"
30 register "DspEnable" = "1"
31 register "IoBufferOwnership" = "3"
32 register "EnableTraceHub" = "0"
33 register "XdciEnable" = "0"
34 register "SsicPortEnable" = "0"
35 register "SmbusEnable" = "1"
36 register "Cio2Enable" = "0"
37 register "ScsEmmcEnabled" = "1"
38 register "ScsEmmcHs400Enabled" = "1"
39 register "ScsSdCardEnabled" = "0"
40 register "IshEnable" = "0"
41 register "PttSwitch" = "0"
42 register "InternalGfx" = "1"
43 register "SkipExtGfxScan" = "1"
44 register "Device4Enable" = "1"
45 register "HeciEnabled" = "0"
46 register "FspSkipMpInit" = "1"
47 register "SaGv" = "3"
48 register "SerialIrqConfigSirqEnable" = "1"
49 register "PmConfigSlpS3MinAssert" = "2" # 50ms
50 register "PmConfigSlpS4MinAssert" = "1" # 1s
51 register "PmConfigSlpSusMinAssert" = "1" # 500ms
52 register "PmConfigSlpAMinAssert" = "3" # 2s
53 register "PmTimerDisabled" = "1"
54 register "SendVrMbxCmd" = "1" # IMVP8 workaround
55
56 register "pirqa_routing" = "PCH_IRQ11"
57 register "pirqb_routing" = "PCH_IRQ10"
58 register "pirqc_routing" = "PCH_IRQ11"
59 register "pirqd_routing" = "PCH_IRQ11"
60 register "pirqe_routing" = "PCH_IRQ11"
61 register "pirqf_routing" = "PCH_IRQ11"
62 register "pirqg_routing" = "PCH_IRQ11"
63 register "pirqh_routing" = "PCH_IRQ11"
64
65 # 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 = VR_CFG_AMP(20),
82 .psi2threshold = VR_CFG_AMP(4),
83 .psi3threshold = VR_CFG_AMP(1),
84 .psi3enable = 1,
85 .psi4enable = 1,
86 .imon_slope = 0x0,
87 .imon_offset = 0x0,
88 .icc_max = VR_CFG_AMP(7),
89 .voltage_limit = 1520,
90 }"
91
92 register "domain_vr_config[VR_IA_CORE]" = "{
93 .vr_config_enable = 1,
94 .psi1threshold = VR_CFG_AMP(20),
95 .psi2threshold = VR_CFG_AMP(5),
96 .psi3threshold = VR_CFG_AMP(1),
97 .psi3enable = 1,
98 .psi4enable = 1,
99 .imon_slope = 0x0,
100 .imon_offset = 0x0,
101 .icc_max = VR_CFG_AMP(34),
102 .voltage_limit = 1520,
103 }"
104
105 register "domain_vr_config[VR_RING]" = "{
106 .vr_config_enable = 1,
107 .psi1threshold = VR_CFG_AMP(20),
108 .psi2threshold = VR_CFG_AMP(5),
109 .psi3threshold = VR_CFG_AMP(1),
110 .psi3enable = 1,
111 .psi4enable = 1,
112 .imon_slope = 0x0,
113 .imon_offset = 0x0,
114 .icc_max = VR_CFG_AMP(34),
115 .voltage_limit = 1520,
116 }"
117
118 register "domain_vr_config[VR_GT_UNSLICED]" = "{
119 .vr_config_enable = 1,
120 .psi1threshold = VR_CFG_AMP(20),
121 .psi2threshold = VR_CFG_AMP(5),
122 .psi3threshold = VR_CFG_AMP(1),
123 .psi3enable = 1,
124 .psi4enable = 1,
125 .imon_slope = 0x0,
126 .imon_offset = 0x0,
127 .icc_max = VR_CFG_AMP(35),
128 .voltage_limit = 1520,
129 }"
130
131 register "domain_vr_config[VR_GT_SLICED]" = "{
132 .vr_config_enable = 1,
133 .psi1threshold = VR_CFG_AMP(20),
134 .psi2threshold = VR_CFG_AMP(5),
135 .psi3threshold = VR_CFG_AMP(1),
136 .psi3enable = 1,
137 .psi4enable = 1,
138 .imon_slope = 0x0,
139 .imon_offset = 0x0,
140 .icc_max = VR_CFG_AMP(35),
141 .voltage_limit = 1520,
142 }"
143
144 # Enable Root port 1.
145 register "PcieRpEnable[0]" = "1"
146 # Enable CLKREQ#
147 register "PcieRpClkReqSupport[0]" = "1"
148 # RP 1 uses SRCCLKREQ1#
149 register "PcieRpClkReqNumber[0]" = "1"
150
Subrata Banik2c3054c2016-11-22 20:21:49 +0530151 register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C Port 1
152 register "usb2_ports[1]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera
153 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
154 register "usb2_ports[4]" = "USB2_PORT_LONG(OC1)" # Type-C Port 2
155 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
156 register "usb2_ports[8]" = "USB2_PORT_EMPTY" # Empty
Duncan Laurie81485d22016-10-28 09:13:52 -0700157
Subrata Banik2c3054c2016-11-22 20:21:49 +0530158 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1
159 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2
Duncan Laurie81485d22016-10-28 09:13:52 -0700160 register "usb3_ports[2]" = "USB3_PORT_EMPTY" # Empty
161 register "usb3_ports[3]" = "USB3_PORT_EMPTY" # Empty
162
Aaron Durbined14a4e2016-11-09 17:04:15 -0600163 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3" # Touchscreen
164 register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3" # TPM
165 register "i2c_voltage[2]" = "I2C_VOLTAGE_1V8" # Touchpad
Aaron Durbined14a4e2016-11-09 17:04:15 -0600166 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" # Audio
Duncan Laurie81485d22016-10-28 09:13:52 -0700167
168 # Enable I2C1 bus early for TPM access
169 register "i2c[1].early_init" = "1"
170 register "i2c[1].speed" = "I2C_SPEED_FAST"
171
172 # Must leave UART0 enabled or SD/eMMC will not work as PCI
173 register "SerialIoDevMode" = "{
174 [PchSerialIoIndexI2C0] = PchSerialIoPci,
175 [PchSerialIoIndexI2C1] = PchSerialIoPci,
176 [PchSerialIoIndexI2C2] = PchSerialIoPci,
Duncan Laurie93eb8c42016-12-12 10:43:45 -0800177 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
Duncan Laurie81485d22016-10-28 09:13:52 -0700178 [PchSerialIoIndexI2C4] = PchSerialIoPci,
179 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
180 [PchSerialIoIndexSpi0] = PchSerialIoPci,
181 [PchSerialIoIndexSpi1] = PchSerialIoPci,
182 [PchSerialIoIndexUart0] = PchSerialIoPci,
183 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
184 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
185 }"
186
187 register "speed_shift_enable" = "1"
188 register "dptf_enable" = "1"
189 register "tdp_pl2_override" = "7"
190
191 device cpu_cluster 0 on
192 device lapic 0 on end
193 end
194 device domain 0 on
195 device pci 00.0 on end # Host Bridge
196 device pci 02.0 on end # Integrated Graphics Device
197 device pci 14.0 on end # USB xHCI
198 device pci 14.1 off end # USB xDCI (OTG)
199 device pci 14.2 on end # Thermal Subsystem
200 device pci 15.0 on
201 chip drivers/i2c/generic
202 register "hid" = ""ATML0001""
203 register "desc" = ""Atmel Touchscreen""
204 register "irq" = "IRQ_EDGE_LOW(GPP_E7_IRQ)"
205 register "probed" = "1"
206 device i2c 4b on end
207 end
208 chip drivers/i2c/generic
209 register "hid" = ""ATML0001""
210 register "desc" = ""Atmel Touchscreen Bootloader""
211 register "irq" = "IRQ_EDGE_LOW(GPP_E7_IRQ)"
212 register "probed" = "1"
213 device i2c 27 on end
214 end
215 end # I2C #0
216 device pci 15.1 on
217 chip drivers/i2c/tpm
218 register "hid" = ""GOOG0005""
219 register "irq" = "IRQ_EDGE_LOW(GPP_E0_IRQ)"
220 device i2c 50 on end
221 end
222 end # I2C #1
223 device pci 15.2 on
224 chip drivers/i2c/generic
225 register "hid" = ""ATML0000""
226 register "desc" = ""Atmel Touchpad""
227 register "irq" = "IRQ_EDGE_LOW(GPP_B3_IRQ)"
228 register "probed" = "1"
229 device i2c 4a on end
230 end
231 chip drivers/i2c/generic
232 register "hid" = ""ATML0000""
233 register "desc" = ""Atmel Touchpad Bootloader""
234 register "irq" = "IRQ_EDGE_LOW(GPP_B3_IRQ)"
235 register "probed" = "1"
236 device i2c 26 on end
237 end
238 end # I2C #2
Duncan Laurie93eb8c42016-12-12 10:43:45 -0800239 device pci 15.3 off end # I2C #3
Duncan Laurie81485d22016-10-28 09:13:52 -0700240 device pci 16.0 on end # Management Engine Interface 1
241 device pci 16.1 off end # Management Engine Interface 2
242 device pci 16.2 off end # Management Engine IDE-R
243 device pci 16.3 off end # Management Engine KT Redirection
244 device pci 16.4 off end # Management Engine Interface 3
245 device pci 17.0 off end # SATA
246 device pci 19.0 on end # UART #2
247 device pci 19.1 on end # I2C #5
248 device pci 19.2 on end # I2C #4
249 device pci 1c.0 on
250 chip drivers/intel/wifi
251 register "wake" = "GPE0_PCI_EXP"
252 device pci 00.0 on end
253 end
254 end # PCI Express Port 1
255 device pci 1c.1 off end # PCI Express Port 2
256 device pci 1c.2 off end # PCI Express Port 3
257 device pci 1c.3 off end # PCI Express Port 4
258 device pci 1c.4 off end # PCI Express Port 5
259 device pci 1c.5 off end # PCI Express Port 6
260 device pci 1c.6 off end # PCI Express Port 7
261 device pci 1c.7 off end # PCI Express Port 8
262 device pci 1d.0 off end # PCI Express Port 9
263 device pci 1d.1 off end # PCI Express Port 10
264 device pci 1d.2 off end # PCI Express Port 11
265 device pci 1d.3 off end # PCI Express Port 12
266 device pci 1e.0 on end # UART #0
267 device pci 1e.1 off end # UART #1
268 device pci 1e.2 on end # GSPI #0
269 device pci 1e.3 on end # GSPI #1
270 device pci 1e.4 on end # eMMC
271 device pci 1e.5 off end # SDIO
272 device pci 1e.6 off end # SDCard
273 device pci 1f.0 on
274 chip ec/google/chromeec
275 device pnp 0c09.0 on end
276 end
277 end # LPC Interface
278 device pci 1f.1 on end # P2SB
279 device pci 1f.2 on end # Power Management Controller
280 device pci 1f.3 on end # Intel HDA
281 device pci 1f.4 on end # SMBus
282 device pci 1f.5 on end # PCH SPI
283 device pci 1f.6 off end # GbE
284 end
285end