blob: fc639677fc4d0368216eca4fdaf42c4ead62107d [file] [log] [blame]
Shelley Chen243dc392017-03-15 15:25:48 -07001chip soc/intel/skylake
2
3 # Deep Sx states
4 register "deep_s3_enable" = "0"
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 # Enable DPTF
23 register "dptf_enable" = "1"
24
25 # FSP Configuration
26 register "ProbelessTrace" = "0"
27 register "EnableLan" = "0"
28 register "EnableSata" = "0"
29 register "SataSalpSupport" = "0"
30 register "SataMode" = "0"
31 register "SataPortsEnable[0]" = "0"
32 register "EnableAzalia" = "1"
33 register "DspEnable" = "1"
34 register "IoBufferOwnership" = "3"
35 register "EnableTraceHub" = "0"
36 register "XdciEnable" = "0"
37 register "SsicPortEnable" = "0"
38 register "SmbusEnable" = "1"
39 register "Cio2Enable" = "0"
40 register "ScsEmmcEnabled" = "1"
41 register "ScsEmmcHs400Enabled" = "1"
42 register "ScsSdCardEnabled" = "2"
43 register "IshEnable" = "0"
44 register "PttSwitch" = "0"
45 register "InternalGfx" = "1"
46 register "SkipExtGfxScan" = "1"
47 register "Device4Enable" = "1"
48 register "HeciEnabled" = "0"
49 register "FspSkipMpInit" = "1"
50 register "SaGv" = "3"
51 register "SerialIrqConfigSirqEnable" = "1"
52 register "PmConfigSlpS3MinAssert" = "2" # 50ms
53 register "PmConfigSlpS4MinAssert" = "1" # 1s
54 register "PmConfigSlpSusMinAssert" = "1" # 500ms
55 register "PmConfigSlpAMinAssert" = "3" # 2s
56 register "PmTimerDisabled" = "1"
57 register "SendVrMbxCmd" = "1" # IMVP8 workaround
58
59 register "pirqa_routing" = "PCH_IRQ11"
60 register "pirqb_routing" = "PCH_IRQ10"
61 register "pirqc_routing" = "PCH_IRQ11"
62 register "pirqd_routing" = "PCH_IRQ11"
63 register "pirqe_routing" = "PCH_IRQ11"
64 register "pirqf_routing" = "PCH_IRQ11"
65 register "pirqg_routing" = "PCH_IRQ11"
66 register "pirqh_routing" = "PCH_IRQ11"
67
68 # VR Settings Configuration for 4 Domains
69 #+----------------+-------+-------+-------+-------+
70 #| Domain/Setting | SA | IA | GTUS | GTS |
71 #+----------------+-------+-------+-------+-------+
72 #| Psi1Threshold | 20A | 20A | 20A | 20A |
73 #| Psi2Threshold | 4A | 5A | 5A | 5A |
74 #| Psi3Threshold | 1A | 1A | 1A | 1A |
75 #| Psi3Enable | 1 | 1 | 1 | 1 |
76 #| Psi4Enable | 1 | 1 | 1 | 1 |
77 #| ImonSlope | 0 | 0 | 0 | 0 |
78 #| ImonOffset | 0 | 0 | 0 | 0 |
79 #| IccMax | 7A | 34A | 35A | 35A |
80 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
81 #+----------------+-------+-------+-------+-------+
82 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
83 .vr_config_enable = 1,
84 .psi1threshold = VR_CFG_AMP(20),
85 .psi2threshold = VR_CFG_AMP(4),
86 .psi3threshold = VR_CFG_AMP(1),
87 .psi3enable = 1,
88 .psi4enable = 1,
89 .imon_slope = 0x0,
90 .imon_offset = 0x0,
91 .icc_max = VR_CFG_AMP(7),
92 .voltage_limit = 1520,
93 }"
94
95 register "domain_vr_config[VR_IA_CORE]" = "{
96 .vr_config_enable = 1,
97 .psi1threshold = VR_CFG_AMP(20),
98 .psi2threshold = VR_CFG_AMP(5),
99 .psi3threshold = VR_CFG_AMP(1),
100 .psi3enable = 1,
101 .psi4enable = 1,
102 .imon_slope = 0x0,
103 .imon_offset = 0x0,
104 .icc_max = VR_CFG_AMP(34),
105 .voltage_limit = 1520,
106 }"
107
108 register "domain_vr_config[VR_GT_UNSLICED]" = "{
109 .vr_config_enable = 1,
110 .psi1threshold = VR_CFG_AMP(20),
111 .psi2threshold = VR_CFG_AMP(5),
112 .psi3threshold = VR_CFG_AMP(1),
113 .psi3enable = 1,
114 .psi4enable = 1,
115 .imon_slope = 0x0,
116 .imon_offset = 0x0,
117 .icc_max = VR_CFG_AMP(35),
118 .voltage_limit = 1520,
119 }"
120
121 register "domain_vr_config[VR_GT_SLICED]" = "{
122 .vr_config_enable = 1,
123 .psi1threshold = VR_CFG_AMP(20),
124 .psi2threshold = VR_CFG_AMP(5),
125 .psi3threshold = VR_CFG_AMP(1),
126 .psi3enable = 1,
127 .psi4enable = 1,
128 .imon_slope = 0x0,
129 .imon_offset = 0x0,
130 .icc_max = VR_CFG_AMP(35),
131 .voltage_limit = 1520,
132 }"
133
134 # Enable Root port 1.
135 register "PcieRpEnable[0]" = "1"
136 # Enable CLKREQ#
137 register "PcieRpClkReqSupport[0]" = "1"
138 # RP 1 uses SRCCLKREQ1#
139 register "PcieRpClkReqNumber[0]" = "1"
140
141 register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C Port 1
142 register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
143 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
144 register "usb2_ports[4]" = "USB2_PORT_LONG(OC1)" # Type-C Port 2
145 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
146 register "usb2_ports[8]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port
147
148 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1
149 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2
150 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A Port
151 register "usb3_ports[3]" = "USB3_PORT_EMPTY" # Empty
152
153 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3" # Touchscreen
154 register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3" # NFC
155 register "i2c_voltage[2]" = "I2C_VOLTAGE_1V8" # Camera
156 register "i2c_voltage[3]" = "I2C_VOLTAGE_1V8" # Pen
157 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" # Camera
158 register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8" # Audio
159
160 # Must leave UART0 enabled or SD/eMMC will not work as PCI
161 register "SerialIoDevMode" = "{
162 [PchSerialIoIndexI2C0] = PchSerialIoPci,
163 [PchSerialIoIndexI2C1] = PchSerialIoPci,
164 [PchSerialIoIndexI2C2] = PchSerialIoPci,
165 [PchSerialIoIndexI2C3] = PchSerialIoPci,
166 [PchSerialIoIndexI2C4] = PchSerialIoPci,
167 [PchSerialIoIndexI2C5] = PchSerialIoPci,
168 [PchSerialIoIndexSpi0] = PchSerialIoPci,
169 [PchSerialIoIndexSpi1] = PchSerialIoPci,
170 [PchSerialIoIndexUart0] = PchSerialIoPci,
171 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
172 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
173 }"
174
175 register "speed_shift_enable" = "1"
176 register "tdp_pl2_override" = "7"
177 register "tcc_offset" = "10" # TCC of 90C
178
179 # Use default SD card detect GPIO configuration
180 register "sdcard_cd_gpio_default" = "GPP_G7"
181
182 device cpu_cluster 0 on
183 device lapic 0 on end
184 end
185 device domain 0 on
186 device pci 00.0 on end # Host Bridge
187 device pci 02.0 on end # Integrated Graphics Device
188 device pci 14.0 on end # USB xHCI
189 device pci 14.1 off end # USB xDCI (OTG)
190 device pci 14.2 on end # Thermal Subsystem
191 device pci 15.0 on
192 chip drivers/i2c/generic
193 register "hid" = ""ATML0001""
194 register "desc" = ""Atmel Touchscreen""
195 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)"
196 register "probed" = "1"
197 device i2c 4b on end
198 end
199 end # I2C #0
200 device pci 15.1 on end # I2C #1
201 device pci 15.2 on end # I2C #2
202 device pci 15.3 on
203 chip drivers/i2c/hid
204 register "generic.hid" = ""WCOM50C1""
205 register "generic.desc" = ""WCOM Digitizer""
206 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D1_IRQ)"
207 register "hid_desc_reg_offset" = "0x1"
208 device i2c 0x9 on end
209 end
210 end # I2C #3
211 device pci 16.0 on end # Management Engine Interface 1
212 device pci 16.1 off end # Management Engine Interface 2
213 device pci 16.2 off end # Management Engine IDE-R
214 device pci 16.3 off end # Management Engine KT Redirection
215 device pci 16.4 off end # Management Engine Interface 3
216 device pci 17.0 off end # SATA
217 device pci 19.0 on end # UART #2
218 device pci 19.1 on
219 chip drivers/i2c/max98927
220 register "interleave_mode" = "1"
221 register "uid" = "0"
222 register "desc" = ""SSM4567 Right Speaker Amp""
223 register "name" = ""MAXR""
224 device i2c 39 on end
225 end
226 chip drivers/i2c/max98927
227 register "interleave_mode" = "1"
228 register "uid" = "1"
229 register "desc" = ""SSM4567 Left Speaker Amp""
230 register "name" = ""MAXL""
231 device i2c 3A on end
232 end
233 chip drivers/i2c/generic
234 register "hid" = ""10EC5663""
235 register "name" = ""RT53""
236 register "desc" = ""Realtek RT5663""
237 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D9)"
238 register "probed" = "1"
239 device i2c 13 on end
240 end
241 end # I2C #5
242 device pci 19.2 on end # I2C #4
243 device pci 1c.0 on
244 chip drivers/intel/wifi
245 register "wake" = "GPE0_PCI_EXP"
246 device pci 00.0 on end
247 end
248 end # PCI Express Port 1
249 device pci 1c.1 off end # PCI Express Port 2
250 device pci 1c.2 off end # PCI Express Port 3
251 device pci 1c.3 off end # PCI Express Port 4
252 device pci 1c.4 off end # PCI Express Port 5
253 device pci 1c.5 off end # PCI Express Port 6
254 device pci 1c.6 off end # PCI Express Port 7
255 device pci 1c.7 off end # PCI Express Port 8
256 device pci 1d.0 off end # PCI Express Port 9
257 device pci 1d.1 off end # PCI Express Port 10
258 device pci 1d.2 off end # PCI Express Port 11
259 device pci 1d.3 off end # PCI Express Port 12
260 device pci 1e.0 on end # UART #0
261 device pci 1e.1 off end # UART #1
262 device pci 1e.2 on end # GSPI #0
263 device pci 1e.3 on end # GSPI #1
264 device pci 1e.4 on end # eMMC
265 device pci 1e.5 off end # SDIO
266 device pci 1e.6 on end # SDCard
267 device pci 1f.0 on
268 chip ec/google/chromeec
269 device pnp 0c09.0 on end
270 end
271 end # LPC Interface
272 device pci 1f.1 on end # P2SB
273 device pci 1f.2 on end # Power Management Controller
274 device pci 1f.3 on end # Intel HDA
275 device pci 1f.4 on end # SMBus
276 device pci 1f.5 on end # PCH SPI
277 device pci 1f.6 off end # GbE
278 end
279end