blob: 2a2d761af15554c1fce34021da3dc8c973434d15 [file] [log] [blame]
V Sowmya6b78b732018-01-22 20:23:16 +05301chip 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" = "0"
7 register "deep_s5_enable_dc" = "0"
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.
14 register "gpe0_dw0" = "GPP_B"
15 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
21 # Enable "Intel Speed Shift Technology"
22 register "speed_shift_enable" = "1"
23
24 # Enable DPTF
25 register "dptf_enable" = "1"
26
27 # FSP Configuration
28 register "SmbusEnable" = "1"
29 register "ScsEmmcEnabled" = "0"
30 register "ScsEmmcHs400Enabled" = "0"
31 register "ScsSdCardEnabled" = "0"
32 register "InternalGfx" = "1"
33 register "SkipExtGfxScan" = "1"
34 register "Device4Enable" = "1"
35 register "HeciEnabled" = "0"
36 register "SaGv" = "3"
37 register "PmTimerDisabled" = "0"
38
39 register "pirqa_routing" = "PCH_IRQ11"
40 register "pirqb_routing" = "PCH_IRQ10"
41 register "pirqc_routing" = "PCH_IRQ11"
42 register "pirqd_routing" = "PCH_IRQ11"
43 register "pirqe_routing" = "PCH_IRQ11"
44 register "pirqf_routing" = "PCH_IRQ11"
45 register "pirqg_routing" = "PCH_IRQ11"
46 register "pirqh_routing" = "PCH_IRQ11"
47
48 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
49 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
50 register "PmConfigSlpS3MinAssert" = "0x02"
51
52 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
53 register "PmConfigSlpS4MinAssert" = "0x04"
54
55 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
56 register "PmConfigSlpSusMinAssert" = "0x03"
57
58 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
59 register "PmConfigSlpAMinAssert" = "0x03"
60
61 # Determines if enable Serial IRQ. Values 0: Disabled, 1: Enabled
62 register "SerialIrqConfigSirqEnable" = "0x01"
63 register "SerialIrqConfigSirqMode" = "0x01"
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 = 0x50, \
82 .psi2threshold = 0x10, \
83 .psi3threshold = 0x4, \
84 .psi3enable = 1, \
85 .psi4enable = 1, \
86 .imon_slope = 0x0, \
87 .imon_offset = 0x0, \
88 .icc_max = 0x0, \
89 .voltage_limit = 0x0 \
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 = 0x0, \
102 .voltage_limit = 0x0 \
103 }"
104
105 register "domain_vr_config[VR_GT_UNSLICED]" = "{
106 .vr_config_enable = 1, \
107 .psi1threshold = 0x50, \
108 .psi2threshold = 0x14, \
109 .psi3threshold = 0x4, \
110 .psi3enable = 1, \
111 .psi4enable = 1, \
112 .imon_slope = 0x0, \
113 .imon_offset = 0x0, \
114 .icc_max = 0x0 ,\
115 .voltage_limit = 0x0 \
116 }"
117
118 register "domain_vr_config[VR_GT_SLICED]" = "{
119 .vr_config_enable = 1, \
120 .psi1threshold = 0x50, \
121 .psi2threshold = 0x14, \
122 .psi3threshold = 0x4, \
123 .psi3enable = 1, \
124 .psi4enable = 1, \
125 .imon_slope = 0x0, \
126 .imon_offset = 0x0, \
127 .icc_max = 0x0, \
128 .voltage_limit = 0x0 \
129 }"
130
131 register "FspSkipMpInit" = "1"
132
133 # Enable Root port.
134 register "PcieRpEnable[3]" = "1"
135 register "PcieRpEnable[4]" = "1"
136 register "PcieRpEnable[8]" = "1"
137 register "PcieRpEnable[16]" = "1"
138
139 # Enable CLKREQ#
140 register "PcieRpClkReqSupport[3]" = "1"
141 register "PcieRpClkReqSupport[4]" = "1"
142 register "PcieRpClkReqSupport[8]" = "1"
143 register "PcieRpClkReqSupport[16]" = "1"
144
145 # SRCCLKREQ#
146 register "PcieRpClkReqNumber[3]" = "2"
147 register "PcieRpClkReqNumber[4]" = "1"
148 register "PcieRpClkReqNumber[8]" = "6"
149 register "PcieRpClkReqNumber[16]" = "7"
150
151 register "usb2_ports[0]" = "USB2_PORT_MAX(OC2)" # Type-C Port
152 register "usb2_ports[1]" = "USB2_PORT_MAX(OC5)" # Front panel
153 register "usb2_ports[2]" = "USB2_PORT_MAX(OC4)" # Back panel
154 register "usb2_ports[3]" = "USB2_PORT_MAX(OC4)" # Back panel
155 register "usb2_ports[4]" = "USB2_PORT_MAX(OC1)" # Back panel-1
156 register "usb2_ports[5]" = "USB2_PORT_MAX(OC1)" # Back panel
157 register "usb2_ports[6]" = "USB2_PORT_MAX(OC_SKIP)" # Back panel
158 register "usb2_ports[7]" = "USB2_PORT_MAX(OC_SKIP)" # Front panel
159 register "usb2_ports[8]" = "USB2_PORT_MAX(OC_SKIP)" # M.2 BT
160 register "usb2_ports[9]" = "USB2_PORT_MAX(OC2)" # Front panel
161 register "usb2_ports[10]" = "USB2_PORT_MAX(OC_SKIP)" # Back panel
162 register "usb2_ports[11]" = "USB2_PORT_MAX(OC_SKIP)" # Back panel-1
163 register "usb2_ports[12]" = "USB2_PORT_MAX(OC3)" # Back panel
164 register "usb2_ports[13]" = "USB2_PORT_MAX(OC_SKIP)" # Back panel
165
166 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port
167 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Back panel
168 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC1)" # Back panel
169 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC0)" # Back panel-2
170 register "usb3_ports[4]" = "USB3_PORT_DEFAULT(OC0)" # Front Panel
171 register "usb3_ports[5]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Front Panel
172 register "usb3_ports[6]" = "USB3_PORT_DEFAULT(OC2)" # Front Panel
173 register "usb3_ports[7]" = "USB3_PORT_DEFAULT(OC2)" # Front Panel
174 register "usb3_ports[8]" = "USB3_PORT_DEFAULT(OC3)" # Back panel
175 register "usb3_ports[9]" = "USB3_PORT_DEFAULT(OC_SKIP)" # LAN
176
177 register "SsicPortEnable" = "1" # Enable SSIC for WWAN
178
179 register "EnableSata" = "1"
180 register "SataSalpSupport" = "1"
181 register "SataPortsEnable" = "{ \
182 [0] = 1, \
183 [1] = 1, \
184 [2] = 1, \
185 [3] = 1, \
186 [4] = 1, \
187 [5] = 1, \
188 [6] = 1, \
189 [7] = 1, \
190 }"
191
192 # Must leave UART0 enabled or SD/eMMC will not work as PCI
193 register "SerialIoDevMode" = "{ \
194 [PchSerialIoIndexI2C0] = PchSerialIoPci, \
195 [PchSerialIoIndexI2C1] = PchSerialIoPci, \
196 [PchSerialIoIndexI2C2] = PchSerialIoDisabled, \
197 [PchSerialIoIndexI2C3] = PchSerialIoDisabled, \
198 [PchSerialIoIndexI2C4] = PchSerialIoDisabled, \
199 [PchSerialIoIndexI2C5] = PchSerialIoDisabled, \
200 [PchSerialIoIndexSpi0] = PchSerialIoDisabled, \
201 [PchSerialIoIndexSpi1] = PchSerialIoDisabled, \
202 [PchSerialIoIndexUart0] = PchSerialIoPci, \
203 [PchSerialIoIndexUart1] = PchSerialIoDisabled, \
204 [PchSerialIoIndexUart2] = PchSerialIoLegacyUart, \
205 }"
206
207 # PL2 override 25W
208 register "tdp_pl2_override" = "25"
209
210 # Send an extra VR mailbox command for the PS4 exit issue
211 register "SendVrMbxCmd" = "2"
212
213 # Enable/Disable VMX feature
214 register "VmxEnable" = "0"
215
216 # Use default SD card detect GPIO configuration
217 #register "sdcard_cd_gpio_default" = "GPP_D10"
218
219 device cpu_cluster 0 on
220 device lapic 0 on end
221 end
222 device domain 0 on
223 device pci 00.0 on end # Host Bridge
224 device pci 02.0 on end # Integrated Graphics Device
225 device pci 14.0 on end # USB xHCI
226 device pci 14.1 off end # USB xDCI (OTG)
227 device pci 14.2 on end # Thermal Subsystem
228 device pci 15.0 on end # I2C #0
229 device pci 15.1 on end # I2C #1
230 device pci 15.2 on end # I2C #2
231 device pci 15.3 on end # I2C #3
232 device pci 16.0 on end # Management Engine Interface 1
233 device pci 16.1 off end # Management Engine Interface 2
234 device pci 16.2 off end # Management Engine IDE-R
235 device pci 16.3 off end # Management Engine KT Redirection
236 device pci 16.4 off end # Management Engine Interface 3
237 device pci 17.0 on end # SATA
238 device pci 19.0 on end # UART #2
239 device pci 19.1 on end # I2C #5
240 device pci 19.2 on end # I2C #4
241 device pci 1c.0 off end # PCI Express Port 1
242 device pci 1c.1 off end # PCI Express Port 2
243 device pci 1c.2 on end # PCI Express Port 3
244 device pci 1c.3 on end # PCI Express Port 4
245 device pci 1c.4 on end # PCI Express Port 5
246 device pci 1c.5 off end # PCI Express Port 6
247 device pci 1c.6 off end # PCI Express Port 7
248 device pci 1c.7 off end # PCI Express Port 8
249 device pci 1d.0 on end # PCI Express Port 9
250 device pci 1d.1 off end # PCI Express Port 10
251 device pci 1d.2 off end # PCI Express Port 11
252 device pci 1d.3 off end # PCI Express Port 12
253 device pci 1e.0 on end # UART #0
254 device pci 1e.1 on end # UART #1
255 device pci 1e.2 on end # GSPI #0
256 device pci 1e.3 on end # GSPI #1
257 device pci 1e.4 off end # eMMC
258 device pci 1e.5 off end # SDIO
259 device pci 1e.6 on end # SDCard
260 device pci 1f.0 on
261 #chip drivers/pc80/tpm
262 # device pnp 0c31.0 on end
263 #end
264 end # LPC Interface
265 device pci 1f.1 on end # P2SB
266 device pci 1f.2 on end # Power Management Controller
267 device pci 1f.3 on end # Intel HDA
268 device pci 1f.4 on end # SMBus
269 device pci 1f.5 on end # PCH SPI
270 device pci 1f.6 on end # GbE
271 end
272end