blob: d049db17a2f08e9990379e2ae794b5230f135a23 [file] [log] [blame]
Patrick Georgic49d7a32020-05-08 22:50:46 +02001## SPDX-License-Identifier: GPL-2.0-only
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +08002
3chip soc/intel/skylake
4
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +08005 register "deep_s5_enable_ac" = "0"
6 register "deep_s5_enable_dc" = "0"
7 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN"
8
9 # GPE configuration
10 # Note that GPE events called out in ASL code rely on this
11 # route. i.e. If this route changes then the affected GPE
12 # offset bits also need to be changed.
13 register "gpe0_dw0" = "GPP_B"
14 register "gpe0_dw1" = "GPP_D"
15 register "gpe0_dw2" = "GPP_E"
16
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080017 # FSP Configuration
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080018 register "DspEnable" = "1"
19 register "IoBufferOwnership" = "3"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080020 register "ScsEmmcHs400Enabled" = "0"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080021 register "SkipExtGfxScan" = "1"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080022
Praveen Hodagatta Praneshaa6a8fb2019-10-29 14:47:11 +080023 register "SaGv" = "SaGv_Enabled"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080024
25 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
26 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
27 register "PmConfigSlpS3MinAssert" = "0x02"
28
29 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
30 register "PmConfigSlpS4MinAssert" = "0x04"
31
32 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
33 register "PmConfigSlpSusMinAssert" = "0x03"
34
35 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
36 register "PmConfigSlpAMinAssert" = "0x03"
37
Nico Huber44e89af2019-02-23 19:24:51 +010038 register "serirq_mode" = "SERIRQ_CONTINUOUS"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080039
Praveen Hodagatta Pranesh55e5cb82019-10-30 10:14:23 +080040 # Lock Down
41 register "common_soc_config" = "{
42 .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
43 }"
44
Michael Niewöhner5e779f92019-10-09 21:02:36 +020045 # VR Settings Configuration for 4 Domains
46 #+----------------+-----------+-----------+-------------+----------+
47 #| Domain/Setting | SA | IA | GT Unsliced | GT |
48 #+----------------+-----------+-----------+-------------+----------+
49 #| Psi1Threshold | 20A | 20A | 20A | 20A |
50 #| Psi2Threshold | 4A | 5A | 5A | 5A |
51 #| Psi3Threshold | 1A | 1A | 1A | 1A |
52 #| Psi3Enable | 1 | 1 | 1 | 1 |
53 #| Psi4Enable | 1 | 1 | 1 | 1 |
54 #| ImonSlope | 0 | 0 | 0 | 0 |
55 #| ImonOffset | 0 | 0 | 0 | 0 |
56 #| IccMax | 7A | 34A | 35A | 35A |
57 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
58 #+----------------+-----------+-----------+-------------+----------+
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080059 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
Michael Niewöhner5e779f92019-10-09 21:02:36 +020060 .vr_config_enable = 1,
61 .psi1threshold = VR_CFG_AMP(20),
62 .psi2threshold = VR_CFG_AMP(4),
63 .psi3threshold = VR_CFG_AMP(1),
64 .psi3enable = 1,
65 .psi4enable = 1,
66 .imon_slope = 0x0,
67 .imon_offset = 0x0,
68 .icc_max = VR_CFG_AMP(7),
69 .voltage_limit = 1520,
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080070 }"
71
72 register "domain_vr_config[VR_IA_CORE]" = "{
Michael Niewöhner5e779f92019-10-09 21:02:36 +020073 .vr_config_enable = 1,
74 .psi1threshold = VR_CFG_AMP(20),
75 .psi2threshold = VR_CFG_AMP(5),
76 .psi3threshold = VR_CFG_AMP(1),
77 .psi3enable = 1,
78 .psi4enable = 1,
79 .imon_slope = 0x0,
80 .imon_offset = 0x0,
81 .icc_max = VR_CFG_AMP(34),
82 .voltage_limit = 1520,
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080083 }"
84
85 register "domain_vr_config[VR_GT_UNSLICED]" = "{
Michael Niewöhner5e779f92019-10-09 21:02:36 +020086 .vr_config_enable = 1,
87 .psi1threshold = VR_CFG_AMP(20),
88 .psi2threshold = VR_CFG_AMP(5),
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(35),
95 .voltage_limit = 1520,
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080096 }"
97
98 register "domain_vr_config[VR_GT_SLICED]" = "{
Michael Niewöhner5e779f92019-10-09 21:02:36 +020099 .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(35),
108 .voltage_limit = 1520,
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800109 }"
110
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800111 # Enable x1 slot
112 register "PcieRpEnable[7]" = "1"
113 register "PcieRpClkReqSupport[7]" = "1"
114 register "PcieRpClkReqNumber[7]" = "3" #uses SRCCLKREQ3
115
116 # Enable x4 slot
117 register "PcieRpEnable[8]" = "1"
118 register "PcieRpClkReqSupport[8]" = "1"
119 register "PcieRpClkReqNumber[8]" = "4" #uses SRCCLKREQ4
120
121 # Enable Root port 6 and 13.
122 register "PcieRpEnable[5]" = "1"
123 register "PcieRpEnable[12]" = "1"
124
125 # Enable CLKREQ#
126 register "PcieRpClkReqSupport[5]" = "1"
127 register "PcieRpClkReqSupport[12]" = "1"
128
129 # RP 6 uses SRCCLKREQ1# while RP `3 uses SRCCLKREQ2#
130 register "PcieRpClkReqNumber[5]" = "0"
131 register "PcieRpClkReqNumber[12]" = "1"
132
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800133 # USB related
134 register "SsicPortEnable" = "1"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800135
136 register "usb2_ports[0]" = "USB2_PORT_MID(OC_SKIP)" # OTG
137 register "usb2_ports[1]" = "USB2_PORT_MID(OC3)" # Touch Pad
138 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # M.2 BT
139 register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)" # Touch Panel
140 register "usb2_ports[4]" = "USB2_PORT_MID(OC_SKIP)" # M.2 WWAN
141 register "usb2_ports[5]" = "USB2_PORT_MID(OC0)" # Front Panel
142 register "usb2_ports[6]" = "USB2_PORT_MID(OC0)" # Front Panel
143 register "usb2_ports[7]" = "USB2_PORT_MID(OC2)" # Stacked conn (lan + usb)
144 register "usb2_ports[8]" = "USB2_PORT_MID(OC2)" # Stacked conn (lan + usb)
145 register "usb2_ports[9]" = "USB2_PORT_MID(OC1)" # LAN MAGJACK
146 register "usb2_ports[10]" = "USB2_PORT_MID(OC1)" # LAN MAGJACK
147 register "usb2_ports[11]" = "USB2_PORT_MID(OC_SKIP)" # Finger print sensor
148 register "usb2_ports[12]" = "USB2_PORT_MID(OC4)" # USB 2 stack conn
149 register "usb2_ports[13]" = "USB2_PORT_MID(OC4)" # USB 2 stack conn
150
151 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC5)" # OTG
152 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # M.2 WWAN
153 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC3)" # Flex
154 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # IVCAM
155 register "usb3_ports[4]" = "USB3_PORT_DEFAULT(OC1)" # LAN MAGJACK
156 register "usb3_ports[5]" = "USB3_PORT_DEFAULT(OC0)" # Front Panel
157 register "usb3_ports[6]" = "USB3_PORT_DEFAULT(OC0)" # Front Panel
158 register "usb3_ports[7]" = "USB3_PORT_DEFAULT(OC2)" # Stack Conn
159 register "usb3_ports[8]" = "USB3_PORT_DEFAULT(OC2)" # Stack Conn
160 register "usb3_ports[9]" = "USB3_PORT_DEFAULT(OC1)" # LAN MAGJACK
161
162 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" # I2C4 is 1.8V
163
164 # Must leave UART0 enabled or SD/eMMC will not work as PCI
165
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800166 register "SataSalpSupport" = "1"
167 register "SataPortsEnable" = "{ \
168 [0] = 1, \
169 [1] = 1, \
170 [2] = 1, \
171 [3] = 1, \
172 [4] = 1, \
173 [5] = 1, \
174 [6] = 1, \
175 [7] = 1, \
176 }"
177 register "SerialIoDevMode" = "{ \
Elyes HAOUASb0f19882018-06-09 11:59:00 +0200178 [PchSerialIoIndexI2C0] = PchSerialIoPci, \
179 [PchSerialIoIndexI2C1] = PchSerialIoPci, \
180 [PchSerialIoIndexI2C2] = PchSerialIoPci, \
181 [PchSerialIoIndexI2C3] = PchSerialIoPci, \
182 [PchSerialIoIndexI2C4] = PchSerialIoPci, \
183 [PchSerialIoIndexI2C5] = PchSerialIoPci, \
184 [PchSerialIoIndexSpi0] = PchSerialIoPci, \
185 [PchSerialIoIndexSpi1] = PchSerialIoPci, \
186 [PchSerialIoIndexUart0] = PchSerialIoPci, \
187 [PchSerialIoIndexUart1] = PchSerialIoPci, \
188 [PchSerialIoIndexUart2] = PchSerialIoSkipInit, \
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800189 }"
190
191 # PL2 override 25W
Sumeet R Pawnikar97c54642020-05-10 01:24:11 +0530192 register "power_limits_config" = "{
193 .tdp_pl2_override = 25,
194 }"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800195
196 # Send an extra VR mailbox command for the PS4 exit issue
197 register "SendVrMbxCmd" = "2"
198
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800199 # Use default SD card detect GPIO configuration
Angel Pons6bd99f92021-02-20 00:16:47 +0100200 #register "sdcard_cd_gpio" = "GPP_A7"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800201
202 device cpu_cluster 0 on
203 device lapic 0 on end
204 end
205 device domain 0 on
206 device pci 00.0 on end # Host Bridge
207 device pci 02.0 on end # Integrated Graphics Device
Felix Singer9c1c0092020-07-29 20:48:08 +0200208 device pci 04.0 off end # SA thermal subsystem
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800209 device pci 14.0 on end # USB xHCI
210 device pci 14.1 off end # USB xDCI (OTG)
211 device pci 14.2 on end # Thermal Subsystem
212 device pci 15.0 on end # I2C #0
213 device pci 15.1 on end # I2C #1
214 device pci 15.2 on end # I2C #2
215 device pci 15.3 on end # I2C #3
216 device pci 16.0 on end # Management Engine Interface 1
217 device pci 16.1 off end # Management Engine Interface 2
218 device pci 16.2 off end # Management Engine IDE-R
219 device pci 16.3 off end # Management Engine KT Redirection
220 device pci 16.4 off end # Management Engine Interface 3
221 device pci 17.0 on end # SATA
222 device pci 19.0 on end # UART #2
223 device pci 19.1 on end # I2C #5
224 device pci 19.2 on end # I2C #4
225 device pci 1c.0 on end # PCI Express Port 1
226 device pci 1c.1 off end # PCI Express Port 2
227 device pci 1c.2 off end # PCI Express Port 3
228 device pci 1c.3 off end # PCI Express Port 4
229 device pci 1c.4 off end # PCI Express Port 5
230 device pci 1c.5 off end # PCI Express Port 6
231 device pci 1c.6 off end # PCI Express Port 7
232 device pci 1c.7 off end # PCI Express Port 8
233 device pci 1d.0 off end # PCI Express Port 9
234 device pci 1d.1 off end # PCI Express Port 10
235 device pci 1d.2 off end # PCI Express Port 11
236 device pci 1d.3 off end # PCI Express Port 12
237 device pci 1e.0 on end # UART #0
238 device pci 1e.1 on end # UART #1
239 device pci 1e.2 on end # GSPI #0
240 device pci 1e.3 on end # GSPI #1
241 device pci 1e.4 off end # eMMC
242 device pci 1e.5 off end # SDIO
243 device pci 1e.6 off end # SDCard
244 device pci 1f.0 on
245 end # LPC Interface
246 device pci 1f.1 on end # P2SB
247 device pci 1f.2 on end # Power Management Controller
248 device pci 1f.3 on end # Intel HDA
249 device pci 1f.4 on end # SMBus
250 device pci 1f.5 on end # PCH SPI
251 device pci 1f.6 on end # GbE
252 end
253end