blob: e65fe3cfc221d52dc1fc64e32bfb01b6b6d9f1f4 [file] [log] [blame]
Wim Vervoorn7c04acf2019-12-05 13:45:41 +01001chip soc/intel/skylake
2
Wim Vervoorn7c04acf2019-12-05 13:45:41 +01003 register "deep_s5_enable_ac" = "0"
4 register "deep_s5_enable_dc" = "0"
5 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN"
6
7 # GPE configuration
8 # Note that GPE events called out in ASL code rely on this
9 # route. i.e. If this route changes then the affected GPE
10 # offset bits also need to be changed.
11 register "gpe0_dw0" = "GPP_C"
12 register "gpe0_dw1" = "GPP_D"
13 register "gpe0_dw2" = "GPP_E"
14
Wim Vervoorn4f012692020-03-13 15:20:13 +010015 # Set the fixed lpc ranges
16 # enable COMA at 3f8 and COMB at 3e8 (instead of the default 2f8)
17 # enable the embedded controller
18 register "lpc_iod" = "0x0070"
19 register "lpc_ioe" = "LPC_IOE_COMA_EN | LPC_IOE_COMB_EN | LPC_IOE_EC_62_66"
20
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010021 # CPLD host command ranges are in 0x280-0x2BF
22 # EC PNP registers are at 0x6e and 0x6f
23 register "gen1_dec" = "0x003c0281"
24 register "gen3_dec" = "0x0004006d"
25
26 # LPC serial IRQ
27 register "serirq_mode" = "SERIRQ_CONTINUOUS"
28
Wim Vervoornaf995bb2019-12-23 16:03:55 +010029 # "Intel SpeedStep Technology"
30 register "eist_enable" = "1"
31
32 # "Intel Speed Shift Technology"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010033 register "speed_shift_enable" = "1"
34
Wim Vervoornaf995bb2019-12-23 16:03:55 +010035 # DPTF
36 register "dptf_enable" = "1"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010037
38 # FSP Configuration
Wim Vervoorn54f81162019-12-18 09:18:26 +010039 register "EnableAzalia" = "1"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010040 register "SmbusEnable" = "1"
41 register "ScsEmmcEnabled" = "1"
42 register "ScsEmmcHs400Enabled" = "1"
43 register "SkipExtGfxScan" = "1"
44 register "Device4Enable" = "1"
45 register "SaGv" = "SaGv_Enabled"
46 register "SaImguEnable" = "0"
47 register "Cio2Enable" = "0"
48 register "PmTimerDisabled" = "1"
49 register "HeciEnabled" = "0"
50 register "EnableLan" = "1"
51
52 register "EnableSata" = "1"
53 register "SataSalpSupport" = "1"
54 register "SataPortsEnable" = "{ \
55 [0] = 1, \
56 [1] = 0, \
57 [2] = 0, \
58 [3] = 0, \
59 [4] = 0, \
60 [5] = 0, \
61 [6] = 0, \
62 [7] = 0, \
63 }"
64
65 register "pirqa_routing" = "PCH_IRQ11"
66 register "pirqb_routing" = "PCH_IRQ10"
67 register "pirqc_routing" = "PCH_IRQ11"
68 register "pirqd_routing" = "PCH_IRQ11"
69 register "pirqe_routing" = "PCH_IRQ11"
70 register "pirqf_routing" = "PCH_IRQ11"
71 register "pirqg_routing" = "PCH_IRQ11"
72 register "pirqh_routing" = "PCH_IRQ11"
73
74 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
75 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
76 register "PmConfigSlpS3MinAssert" = "2"
77
78 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
79 register "PmConfigSlpS4MinAssert" = "4"
80
81 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
82 register "PmConfigSlpSusMinAssert" = "3"
83
84 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
85 register "PmConfigSlpAMinAssert" = "3"
86
87 # VR Settings Configuration for 4 Domains
88 #+----------------+-------+-------+-------+-------+
89 #| Domain/Setting | SA | IA | GTUS | GTS |
90 #+----------------+-------+-------+-------+-------+
91 #| Psi1Threshold | 20A | 20A | 20A | 20A |
92 #| Psi2Threshold | 5A | 5A | 5A | 5A |
93 #| Psi3Threshold | 1A | 1A | 1A | 1A |
94 #| Psi3Enable | 1 | 1 | 1 | 1 |
95 #| Psi4Enable | 1 | 1 | 1 | 1 |
96 #| ImonSlope | 0 | 0 | 0 | 0 |
97 #| ImonOffset | 0 | 0 | 0 | 0 |
Wim Vervoornb2e440a2020-01-15 09:23:27 +010098 #| IccMax | 5.1A | 32A | 35A | 35A |
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010099 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
100 #+----------------+-------+-------+-------+-------+
101 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
102 .vr_config_enable = 1, \
103 .psi1threshold = VR_CFG_AMP(20), \
104 .psi2threshold = VR_CFG_AMP(5), \
105 .psi3threshold = VR_CFG_AMP(1), \
106 .psi3enable = 1, \
107 .psi4enable = 1, \
108 .imon_slope = 0, \
109 .imon_offset = 0, \
Wim Vervoornb2e440a2020-01-15 09:23:27 +0100110 .icc_max = VR_CFG_AMP(5.1), \
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100111 .voltage_limit = 1520 \
112 }"
113
114 register "domain_vr_config[VR_IA_CORE]" = "{
115 .vr_config_enable = 1, \
116 .psi1threshold = VR_CFG_AMP(20), \
117 .psi2threshold = VR_CFG_AMP(5), \
118 .psi3threshold = VR_CFG_AMP(1), \
119 .psi3enable = 1, \
120 .psi4enable = 1, \
121 .imon_slope = 0, \
122 .imon_offset = 0, \
Wim Vervoornb2e440a2020-01-15 09:23:27 +0100123 .icc_max = VR_CFG_AMP(32), \
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100124 .voltage_limit = 1520 \
125 }"
126
127 register "domain_vr_config[VR_GT_UNSLICED]" = "{
128 .vr_config_enable = 1, \
129 .psi1threshold = VR_CFG_AMP(20), \
130 .psi2threshold = VR_CFG_AMP(5), \
131 .psi3threshold = VR_CFG_AMP(1), \
132 .psi3enable = 1, \
133 .psi4enable = 1, \
134 .imon_slope = 0, \
135 .imon_offset = 0, \
136 .icc_max = VR_CFG_AMP(35),\
137 .voltage_limit = 1520 \
138 }"
139
140 register "domain_vr_config[VR_GT_SLICED]" = "{
141 .vr_config_enable = 1, \
142 .psi1threshold = VR_CFG_AMP(20), \
143 .psi2threshold = VR_CFG_AMP(5), \
144 .psi3threshold = VR_CFG_AMP(1), \
145 .psi3enable = 1, \
146 .psi4enable = 1, \
147 .imon_slope = 0, \
148 .imon_offset = 0, \
149 .icc_max = VR_CFG_AMP(35), \
150 .voltage_limit = 1520 \
151 }"
152
153 # Send an extra VR mailbox command for the PS4 exit issue
154 register "SendVrMbxCmd" = "2"
155
156 # Enable Root ports.
157 # PCIE Port 1 disabled
158 # PCIE Port 2 disabled
159
160 # PCIE Port 3 x1 -> Module x1 : Mapped to PCIe 2 on the baseboard
161 register "PcieRpEnable[2]" = "1"
162 # Disable CLKREQ#
163 register "PcieRpClkReqSupport[2]" = "0"
164
165 # PCIE Port 4 disabled
166 # PCIE Port 5 x1 -> MODULE i219
167
168 # PCIE Port 6 x1 -> BASEBOARD x1 i210 : Mapped to PCIe 4 on the baseboard
169 register "PcieRpEnable[5]" = "1"
170 register "PcieRpClkReqSupport[5]" = "0"
171
172 # PCIE Port 7 Disabled
173 # PCIE Port 8 Disabled
174
175 # PCIE Port 9 x4 -> BASEBOARD PEG0-3 FPGA
176 register "PcieRpEnable[8]" = "1"
177 # Disable CLKREQ#
178 register "PcieRpClkReqSupport[8]" = "0"
179 # Use Hot Plug subsystem
180 register "PcieRpHotPlug[8]" = "1"
181
182 # USB 2.0 Enable all ports
183 register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)" # USB-C Port 2
184 register "usb2_ports[1]" = "USB2_PORT_MID(OC1)" # USB3_TYPE-A Port 1
185 register "usb2_ports[2]" = "USB2_PORT_MID(OC1)" # USB3_TYPE-A Port 2
186 register "usb2_ports[3]" = "USB2_PORT_TYPE_C(OC_SKIP)" # USB-C Port 1
187 register "usb2_ports[4]" = "USB2_PORT_SHORT(OC_SKIP)" # M2 Port
188 register "usb2_ports[5]" = "USB2_PORT_EMPTY" # Disabled
189 register "usb2_ports[6]" = "USB2_PORT_SHORT(OC_SKIP)" # Audio board
190 register "usb2_ports[7]" = "USB2_PORT_EMPTY" # Disabled
191 register "usb2_ports[8]" = "USB2_PORT_EMPTY" # Disabled
192 register "usb2_ports[9]" = "USB2_PORT_EMPTY" # Disabled
193 register "usb2_ports[10]" = "USB2_PORT_EMPTY" # Disabled
194 register "usb2_ports[11]" = "USB2_PORT_EMPTY" # Disabled
195
196 # USB 3.0 Enable Port 1-4. Port 5 & 6 Disabled
197 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB-C Port 2
198 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3_TYPE-A Port 1
199 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3_TYPE-A Port 2
200 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB-C Port 1
201 register "usb3_ports[4]" = "USB3_PORT_EMPTY" # Disabled
202 register "usb3_ports[5]" = "USB3_PORT_EMPTY" # Disabled
203
204 register "SsicPortEnable" = "0"
205
206 # Must leave UART0 enabled or SD/eMMC will not work as PCI
207 register "SerialIoDevMode" = "{ \
208 [PchSerialIoIndexI2C0] = PchSerialIoDisabled, \
209 [PchSerialIoIndexI2C1] = PchSerialIoDisabled, \
210 [PchSerialIoIndexI2C2] = PchSerialIoDisabled, \
211 [PchSerialIoIndexI2C3] = PchSerialIoDisabled, \
212 [PchSerialIoIndexI2C4] = PchSerialIoDisabled, \
213 [PchSerialIoIndexI2C5] = PchSerialIoDisabled, \
214 [PchSerialIoIndexSpi0] = PchSerialIoDisabled, \
215 [PchSerialIoIndexSpi1] = PchSerialIoDisabled, \
216 [PchSerialIoIndexUart0] = PchSerialIoPci, \
217 [PchSerialIoIndexUart1] = PchSerialIoDisabled, \
218 [PchSerialIoIndexUart2] = PchSerialIoDisabled, \
219 }"
220
221 # Lock Down
222 register "common_soc_config" = "{
223 .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
224 }"
225
226 device cpu_cluster 0 on
227 device lapic 0 on end
228 end
229 device domain 0 on
230 device pci 00.0 on end # Host Bridge
231 device pci 02.0 on end # Integrated Graphics Device
Wim Vervoorncb4fa5d2020-01-15 09:27:26 +0100232 device pci 04.0 on end # Thermal Subsystem
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100233 device pci 08.0 on end # Gaussian Mixture Model
234 device pci 14.0 on end # USB xHCI
235 device pci 14.1 on end # USB xDCI (OTG)
236 device pci 14.2 on end # Thermal Subsystem
237 device pci 17.0 on end # SATA
238 device pci 1c.2 on end # PCI Express Port 3 x1 baseboard WWAN
239 device pci 1c.5 on end # PCI Express Port 6 x1 baseboard i210
240 device pci 1d.0 on end # PCI Express Port 9 x4 FPGA
241 device pci 1e.0 on end # UART #0
242 device pci 1e.4 on end # eMMC
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100243 device pci 1f.0 on # LPC Interface
244 chip drivers/pc80/tpm
245 device pnp 0c31.0 on end
246 end
247 end # LPC Bridge
248 device pci 1f.1 on end # P2SB
249 device pci 1f.2 on end # Power Management Controller
Wim Vervoorn54f81162019-12-18 09:18:26 +0100250 device pci 1f.3 on end # HDA Controller for HDMI only
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100251 device pci 1f.4 on end # SMBus
252 device pci 1f.5 on end # PCH SPI
253 device pci 1f.6 on end # GbE
254 end
255end