blob: 13b3abce6efbb7a6810363d36ba0070743115540 [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
Wim Vervoornaf995bb2019-12-23 16:03:55 +010032 # DPTF
33 register "dptf_enable" = "1"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010034
35 # FSP Configuration
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010036 register "ScsEmmcHs400Enabled" = "1"
37 register "SkipExtGfxScan" = "1"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010038 register "SaGv" = "SaGv_Enabled"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010039 register "HeciEnabled" = "0"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010040
Felix Singer0901d032020-07-29 19:57:25 +020041 register "SataSalpSupport" = "1"
42 register "SataPortsEnable" = "{ \
43 [0] = 1, \
44 [1] = 0, \
45 [2] = 0, \
46 [3] = 0, \
47 [4] = 0, \
48 [5] = 0, \
49 [6] = 0, \
50 [7] = 0, \
51 }"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010052
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010053 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
54 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
55 register "PmConfigSlpS3MinAssert" = "2"
56
57 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
58 register "PmConfigSlpS4MinAssert" = "4"
59
60 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
61 register "PmConfigSlpSusMinAssert" = "3"
62
63 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
64 register "PmConfigSlpAMinAssert" = "3"
65
66 # VR Settings Configuration for 4 Domains
67 #+----------------+-------+-------+-------+-------+
68 #| Domain/Setting | SA | IA | GTUS | GTS |
69 #+----------------+-------+-------+-------+-------+
70 #| Psi1Threshold | 20A | 20A | 20A | 20A |
71 #| Psi2Threshold | 5A | 5A | 5A | 5A |
72 #| Psi3Threshold | 1A | 1A | 1A | 1A |
73 #| Psi3Enable | 1 | 1 | 1 | 1 |
74 #| Psi4Enable | 1 | 1 | 1 | 1 |
75 #| ImonSlope | 0 | 0 | 0 | 0 |
76 #| ImonOffset | 0 | 0 | 0 | 0 |
Wim Vervoorn8bf921c2020-03-24 16:19:38 +010077 #| IccMax | 5.1A | 32A | 35A | 31A |
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010078 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
79 #+----------------+-------+-------+-------+-------+
80 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
81 .vr_config_enable = 1, \
82 .psi1threshold = VR_CFG_AMP(20), \
83 .psi2threshold = VR_CFG_AMP(5), \
84 .psi3threshold = VR_CFG_AMP(1), \
85 .psi3enable = 1, \
86 .psi4enable = 1, \
87 .imon_slope = 0, \
88 .imon_offset = 0, \
Wim Vervoornb2e440a2020-01-15 09:23:27 +010089 .icc_max = VR_CFG_AMP(5.1), \
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010090 .voltage_limit = 1520 \
91 }"
92
93 register "domain_vr_config[VR_IA_CORE]" = "{
94 .vr_config_enable = 1, \
95 .psi1threshold = VR_CFG_AMP(20), \
96 .psi2threshold = VR_CFG_AMP(5), \
97 .psi3threshold = VR_CFG_AMP(1), \
98 .psi3enable = 1, \
99 .psi4enable = 1, \
100 .imon_slope = 0, \
101 .imon_offset = 0, \
Wim Vervoornb2e440a2020-01-15 09:23:27 +0100102 .icc_max = VR_CFG_AMP(32), \
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100103 .voltage_limit = 1520 \
104 }"
105
106 register "domain_vr_config[VR_GT_UNSLICED]" = "{
107 .vr_config_enable = 1, \
108 .psi1threshold = VR_CFG_AMP(20), \
109 .psi2threshold = VR_CFG_AMP(5), \
110 .psi3threshold = VR_CFG_AMP(1), \
111 .psi3enable = 1, \
112 .psi4enable = 1, \
113 .imon_slope = 0, \
114 .imon_offset = 0, \
115 .icc_max = VR_CFG_AMP(35),\
116 .voltage_limit = 1520 \
117 }"
118
119 register "domain_vr_config[VR_GT_SLICED]" = "{
120 .vr_config_enable = 1, \
121 .psi1threshold = VR_CFG_AMP(20), \
122 .psi2threshold = VR_CFG_AMP(5), \
123 .psi3threshold = VR_CFG_AMP(1), \
124 .psi3enable = 1, \
125 .psi4enable = 1, \
126 .imon_slope = 0, \
127 .imon_offset = 0, \
Wim Vervoorn8bf921c2020-03-24 16:19:38 +0100128 .icc_max = VR_CFG_AMP(31), \
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100129 .voltage_limit = 1520 \
130 }"
131
132 # Send an extra VR mailbox command for the PS4 exit issue
133 register "SendVrMbxCmd" = "2"
134
135 # Enable Root ports.
136 # PCIE Port 1 disabled
137 # PCIE Port 2 disabled
138
139 # PCIE Port 3 x1 -> Module x1 : Mapped to PCIe 2 on the baseboard
140 register "PcieRpEnable[2]" = "1"
141 # Disable CLKREQ#
142 register "PcieRpClkReqSupport[2]" = "0"
Wim Vervoorn544cc832020-05-07 13:21:36 +0200143 # Set MaxPayload to 256 bytes
144 register "PcieRpMaxPayload[2]" = "RpMaxPayload_256"
145 # Enable Latency Tolerance Reporting Mechanism
146 register "PcieRpLtrEnable[2]" = "1"
147 # Enable Advanced Error Reporting
148 register "PcieRpAdvancedErrorReporting[2]" = "1"
149 # Disable Aspm
Benjamin Doronb53858b2020-10-12 04:19:42 +0000150 register "pcie_rp_aspm[2]" = "AspmDisabled"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100151
152 # PCIE Port 4 disabled
153 # PCIE Port 5 x1 -> MODULE i219
154
155 # PCIE Port 6 x1 -> BASEBOARD x1 i210 : Mapped to PCIe 4 on the baseboard
156 register "PcieRpEnable[5]" = "1"
157 register "PcieRpClkReqSupport[5]" = "0"
Wim Vervoorn544cc832020-05-07 13:21:36 +0200158 # Set MaxPayload to 256 bytes
159 register "PcieRpMaxPayload[5]" = "RpMaxPayload_256"
160 # Enable Latency Tolerance Reporting Mechanism
161 register "PcieRpLtrEnable[5]" = "1"
162 # Enable Advanced Error Reporting
163 register "PcieRpAdvancedErrorReporting[5]" = "1"
164 # Disable Aspm
Benjamin Doronb53858b2020-10-12 04:19:42 +0000165 register "pcie_rp_aspm[5]" = "AspmDisabled"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100166
167 # PCIE Port 7 Disabled
168 # PCIE Port 8 Disabled
169
170 # PCIE Port 9 x4 -> BASEBOARD PEG0-3 FPGA
171 register "PcieRpEnable[8]" = "1"
172 # Disable CLKREQ#
173 register "PcieRpClkReqSupport[8]" = "0"
174 # Use Hot Plug subsystem
175 register "PcieRpHotPlug[8]" = "1"
Wim Vervoorn544cc832020-05-07 13:21:36 +0200176 # Set MaxPayload to 256 bytes
177 register "PcieRpMaxPayload[8]" = "RpMaxPayload_256"
178 # Enable Latency Tolerance Reporting Mechanism
179 register "PcieRpLtrEnable[8]" = "1"
180 # Enable Advanced Error Reporting
181 register "PcieRpAdvancedErrorReporting[8]" = "1"
182 # Disable Aspm
Benjamin Doronb53858b2020-10-12 04:19:42 +0000183 register "pcie_rp_aspm[8]" = "AspmDisabled"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100184
185 # USB 2.0 Enable all ports
186 register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)" # USB-C Port 2
187 register "usb2_ports[1]" = "USB2_PORT_MID(OC1)" # USB3_TYPE-A Port 1
188 register "usb2_ports[2]" = "USB2_PORT_MID(OC1)" # USB3_TYPE-A Port 2
189 register "usb2_ports[3]" = "USB2_PORT_TYPE_C(OC_SKIP)" # USB-C Port 1
190 register "usb2_ports[4]" = "USB2_PORT_SHORT(OC_SKIP)" # M2 Port
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100191 register "usb2_ports[6]" = "USB2_PORT_SHORT(OC_SKIP)" # Audio board
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100192
193 # USB 3.0 Enable Port 1-4. Port 5 & 6 Disabled
194 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB-C Port 2
195 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3_TYPE-A Port 1
196 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3_TYPE-A Port 2
197 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB-C Port 1
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100198
199 register "SsicPortEnable" = "0"
200
201 # Must leave UART0 enabled or SD/eMMC will not work as PCI
202 register "SerialIoDevMode" = "{ \
203 [PchSerialIoIndexI2C0] = PchSerialIoDisabled, \
204 [PchSerialIoIndexI2C1] = PchSerialIoDisabled, \
205 [PchSerialIoIndexI2C2] = PchSerialIoDisabled, \
206 [PchSerialIoIndexI2C3] = PchSerialIoDisabled, \
207 [PchSerialIoIndexI2C4] = PchSerialIoDisabled, \
208 [PchSerialIoIndexI2C5] = PchSerialIoDisabled, \
209 [PchSerialIoIndexSpi0] = PchSerialIoDisabled, \
210 [PchSerialIoIndexSpi1] = PchSerialIoDisabled, \
211 [PchSerialIoIndexUart0] = PchSerialIoPci, \
212 [PchSerialIoIndexUart1] = PchSerialIoDisabled, \
213 [PchSerialIoIndexUart2] = PchSerialIoDisabled, \
214 }"
215
216 # Lock Down
217 register "common_soc_config" = "{
218 .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
219 }"
220
221 device cpu_cluster 0 on
222 device lapic 0 on end
223 end
224 device domain 0 on
225 device pci 00.0 on end # Host Bridge
226 device pci 02.0 on end # Integrated Graphics Device
Wim Vervoorncb4fa5d2020-01-15 09:27:26 +0100227 device pci 04.0 on end # Thermal Subsystem
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100228 device pci 08.0 on end # Gaussian Mixture Model
229 device pci 14.0 on end # USB xHCI
230 device pci 14.1 on end # USB xDCI (OTG)
231 device pci 14.2 on end # Thermal Subsystem
232 device pci 17.0 on end # SATA
233 device pci 1c.2 on end # PCI Express Port 3 x1 baseboard WWAN
234 device pci 1c.5 on end # PCI Express Port 6 x1 baseboard i210
235 device pci 1d.0 on end # PCI Express Port 9 x4 FPGA
236 device pci 1e.0 on end # UART #0
237 device pci 1e.4 on end # eMMC
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100238 device pci 1f.0 on # LPC Interface
239 chip drivers/pc80/tpm
240 device pnp 0c31.0 on end
241 end
242 end # LPC Bridge
243 device pci 1f.1 on end # P2SB
244 device pci 1f.2 on end # Power Management Controller
Wim Vervoorn54f81162019-12-18 09:18:26 +0100245 device pci 1f.3 on end # HDA Controller for HDMI only
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100246 device pci 1f.4 on end # SMBus
247 device pci 1f.5 on end # PCH SPI
248 device pci 1f.6 on end # GbE
249 end
250end