blob: dc0655af50e7fd6172cef199c278362a45146c07 [file] [log] [blame]
Youness Alaoui047475c2017-05-08 16:50:23 -04001chip soc/intel/skylake
2
3 # Enable deep Sx states
4 register "deep_s3_enable_ac" = "0"
5 register "deep_s3_enable_dc" = "0"
6 register "deep_s5_enable_ac" = "1"
7 register "deep_s5_enable_dc" = "1"
8 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN"
9
10 # GPE configuration
11 # Note that GPE events called out in ASL code rely on this
12 # route. i.e. If this route changes then the affected GPE
13 # offset bits also need to be changed.
Youness Alaoui34a30a62017-05-25 13:25:41 -050014 register "gpe0_dw0" = "GPP_C"
Youness Alaoui047475c2017-05-08 16:50:23 -040015 register "gpe0_dw1" = "GPP_D"
16 register "gpe0_dw2" = "GPP_E"
17
18 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
19 register "gen1_dec" = "0x00fc0801"
20 register "gen2_dec" = "0x000c0201"
21
22 # Enable "Intel Speed Shift Technology"
23 register "speed_shift_enable" = "1"
24
25 # Enable DPTF
26 register "dptf_enable" = "1"
27
28 # FSP Configuration
29 register "ProbelessTrace" = "0"
30 register "EnableLan" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050031 register "EnableSata" = "1"
Youness Alaoui047475c2017-05-08 16:50:23 -040032 register "SataSalpSupport" = "0"
33 register "SataMode" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050034 register "SataPortsEnable[0]" = "1"
35 register "SataPortsEnable[2]" = "1"
Youness Alaoui047475c2017-05-08 16:50:23 -040036 register "EnableAzalia" = "1"
37 register "DspEnable" = "1"
38 register "IoBufferOwnership" = "3"
39 register "EnableTraceHub" = "0"
40 register "XdciEnable" = "0"
41 register "SsicPortEnable" = "0"
42 register "SmbusEnable" = "1"
43 register "Cio2Enable" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050044 register "ScsEmmcEnabled" = "0"
45 register "ScsEmmcHs400Enabled" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040046 register "ScsSdCardEnabled" = "0"
47 register "IshEnable" = "0"
48 register "PttSwitch" = "0"
49 register "InternalGfx" = "1"
50 register "SkipExtGfxScan" = "1"
51 register "Device4Enable" = "1"
52 register "HeciEnabled" = "0"
53 register "FspSkipMpInit" = "1"
54 register "SaGv" = "3"
55 register "SerialIrqConfigSirqEnable" = "1"
56 register "PmConfigSlpS3MinAssert" = "2" # 50ms
57 register "PmConfigSlpS4MinAssert" = "1" # 1s
58 register "PmConfigSlpSusMinAssert" = "1" # 500ms
59 register "PmConfigSlpAMinAssert" = "3" # 2s
60 register "PmTimerDisabled" = "1"
61
62 register "pirqa_routing" = "PCH_IRQ11"
63 register "pirqb_routing" = "PCH_IRQ10"
64 register "pirqc_routing" = "PCH_IRQ11"
65 register "pirqd_routing" = "PCH_IRQ11"
66 register "pirqe_routing" = "PCH_IRQ11"
67 register "pirqf_routing" = "PCH_IRQ11"
68 register "pirqg_routing" = "PCH_IRQ11"
69 register "pirqh_routing" = "PCH_IRQ11"
70
71 # VR Settings Configuration for 5 Domains
72 #+----------------+-------+-------+-------------+-------------+-------+
73 #| Domain/Setting | SA | IA | Ring Sliced | GT Unsliced | GT |
74 #+----------------+-------+-------+-------------+-------------+-------+
75 #| Psi1Threshold | 20A | 20A | 20A | 20A | 20A |
76 #| Psi2Threshold | 4A | 5A | 5A | 5A | 5A |
77 #| Psi3Threshold | 1A | 1A | 1A | 1A | 1A |
78 #| Psi3Enable | 1 | 1 | 1 | 1 | 1 |
79 #| Psi4Enable | 1 | 1 | 1 | 1 | 1 |
80 #| ImonSlope | 0 | 0 | 0 | 0 | 0 |
81 #| ImonOffset | 0 | 0 | 0 | 0 | 0 |
82 #| IccMax | 7A | 34A | 34A | 35A | 35A |
83 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V | 1.52V |
84 #+----------------+-------+-------+-------------+-------------+-------+
85 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
86 .vr_config_enable = 1,
87 .psi1threshold = VR_CFG_AMP(20),
88 .psi2threshold = VR_CFG_AMP(4),
89 .psi3threshold = VR_CFG_AMP(1),
90 .psi3enable = 1,
91 .psi4enable = 1,
92 .imon_slope = 0x0,
93 .imon_offset = 0x0,
94 .icc_max = VR_CFG_AMP(7),
95 .voltage_limit = 1520,
96 }"
97
98 register "domain_vr_config[VR_IA_CORE]" = "{
99 .vr_config_enable = 1,
100 .psi1threshold = VR_CFG_AMP(20),
101 .psi2threshold = VR_CFG_AMP(5),
102 .psi3threshold = VR_CFG_AMP(1),
103 .psi3enable = 1,
104 .psi4enable = 1,
105 .imon_slope = 0x0,
106 .imon_offset = 0x0,
107 .icc_max = VR_CFG_AMP(34),
108 .voltage_limit = 1520,
109 }"
110
111 register "domain_vr_config[VR_RING]" = "{
112 .vr_config_enable = 1,
113 .psi1threshold = VR_CFG_AMP(20),
114 .psi2threshold = VR_CFG_AMP(5),
115 .psi3threshold = VR_CFG_AMP(1),
116 .psi3enable = 1,
117 .psi4enable = 1,
118 .imon_slope = 0x0,
119 .imon_offset = 0x0,
120 .icc_max = VR_CFG_AMP(34),
121 .voltage_limit = 1520,
122 }"
123
124 register "domain_vr_config[VR_GT_UNSLICED]" = "{
125 .vr_config_enable = 1,
126 .psi1threshold = VR_CFG_AMP(20),
127 .psi2threshold = VR_CFG_AMP(5),
128 .psi3threshold = VR_CFG_AMP(1),
129 .psi3enable = 1,
130 .psi4enable = 1,
131 .imon_slope = 0x0,
132 .imon_offset = 0x0,
133 .icc_max = VR_CFG_AMP(35),
134 .voltage_limit = 1520,
135 }"
136
137 register "domain_vr_config[VR_GT_SLICED]" = "{
138 .vr_config_enable = 1,
139 .psi1threshold = VR_CFG_AMP(20),
140 .psi2threshold = VR_CFG_AMP(5),
141 .psi3threshold = VR_CFG_AMP(1),
142 .psi3enable = 1,
143 .psi4enable = 1,
144 .imon_slope = 0x0,
145 .imon_offset = 0x0,
146 .icc_max = VR_CFG_AMP(35),
147 .voltage_limit = 1520,
148 }"
149
150 # Enable Root port 1.
151 register "PcieRpEnable[0]" = "1"
152 # Enable CLKREQ#
153 register "PcieRpClkReqSupport[0]" = "1"
154 # RP 1 uses SRCCLKREQ1#
155 register "PcieRpClkReqNumber[0]" = "1"
156
157 register "usb2_ports[0]" = "USB2_PORT_LONG(OC2)" # Type-C Port 1
158 register "usb2_ports[1]" = "USB2_PORT_LONG(OC3)" # Type-C Port 2
159 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
160 register "usb2_ports[4]" = "USB2_PORT_MID(OC0)" # Type-A Port
161 register "usb2_ports[6]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera
162 register "usb2_ports[8]" = "USB2_PORT_MID(OC_SKIP)" # SD
163
164 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC2)" # Type-C Port 1
165 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC3)" # Type-C Port 2
166 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC0)" # Type-A Port
167 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # SD
168
169 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" # I2C4 is 1.8V
170
171 # Must leave UART0 enabled or SD/eMMC will not work as PCI
172 register "SerialIoDevMode" = "{
173 [PchSerialIoIndexI2C0] = PchSerialIoPci,
174 [PchSerialIoIndexI2C1] = PchSerialIoPci,
175 [PchSerialIoIndexI2C2] = PchSerialIoDisabled,
176 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
177 [PchSerialIoIndexI2C4] = PchSerialIoPci,
178 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
179 [PchSerialIoIndexSpi0] = PchSerialIoDisabled,
180 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
181 [PchSerialIoIndexUart0] = PchSerialIoPci,
182 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
183 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
184 }"
185
186 # PL2 override 15W
187 register "tdp_pl2_override" = "15"
188
189 register "tcc_offset" = "10" # TCC of 90C
190
191 # Send an extra VR mailbox command for the supported MPS IMVP8 model
192 register "SendVrMbxCmd" = "1"
193
194 device cpu_cluster 0 on
195 device lapic 0 on end
196 end
197 device domain 0 on
198 device pci 00.0 on end # Host Bridge
199 device pci 02.0 on end # Integrated Graphics Device
200 device pci 14.0 on end # USB xHCI
201 device pci 14.1 off end # USB xDCI (OTG)
202 device pci 14.2 on end # Thermal Subsystem
203 device pci 16.0 on end # Management Engine Interface 1
204 device pci 16.1 off end # Management Engine Interface 2
205 device pci 16.2 off end # Management Engine IDE-R
206 device pci 16.3 off end # Management Engine KT Redirection
207 device pci 16.4 off end # Management Engine Interface 3
208 device pci 17.0 on end # SATA
209 device pci 1c.0 on
210 chip drivers/intel/wifi
211 register "wake" = "GPE0_DW0_16"
212 device pci 00.0 on end
213 end
214 end # PCI Express Port 1
215 device pci 1c.1 off end # PCI Express Port 2
216 device pci 1c.2 off end # PCI Express Port 3
217 device pci 1c.3 off end # PCI Express Port 4
218 device pci 1c.4 off end # PCI Express Port 5
219 device pci 1c.5 off end # PCI Express Port 6
220 device pci 1c.6 off end # PCI Express Port 7
221 device pci 1c.7 off end # PCI Express Port 8
222 device pci 1d.0 off end # PCI Express Port 9
223 device pci 1d.1 off end # PCI Express Port 10
224 device pci 1d.2 off end # PCI Express Port 11
225 device pci 1d.3 off end # PCI Express Port 12
226 device pci 1f.0 on
227 chip ec/purism/librem
228 device pnp 0c09.0 on end
229 end
230 end # LPC Interface
231 device pci 1f.1 off end # P2SB
232 device pci 1f.2 on end # Power Management Controller
233 device pci 1f.3 on end # Intel HDA
234 device pci 1f.4 on end # SMBus
235 device pci 1f.5 on end # PCH SPI
236 device pci 1f.6 off end # GbE
237 end
238end