blob: fdb59c9fcf9930d3c9375497286232cfa91f11ea [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
Felix Singer0901d032020-07-29 19:57:25 +020040 register "SataSalpSupport" = "1"
Felix Singer21b5a9a2023-10-23 07:26:28 +020041 register "SataPortsEnable" = "{
42 [0] = 1,
43 [1] = 0,
44 [2] = 0,
45 [3] = 0,
46 [4] = 0,
47 [5] = 0,
48 [6] = 0,
49 [7] = 0,
Felix Singer0901d032020-07-29 19:57:25 +020050 }"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010051
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010052 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
53 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
54 register "PmConfigSlpS3MinAssert" = "2"
55
56 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
57 register "PmConfigSlpS4MinAssert" = "4"
58
59 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
60 register "PmConfigSlpSusMinAssert" = "3"
61
62 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
63 register "PmConfigSlpAMinAssert" = "3"
64
65 # VR Settings Configuration for 4 Domains
66 #+----------------+-------+-------+-------+-------+
67 #| Domain/Setting | SA | IA | GTUS | GTS |
68 #+----------------+-------+-------+-------+-------+
69 #| Psi1Threshold | 20A | 20A | 20A | 20A |
70 #| Psi2Threshold | 5A | 5A | 5A | 5A |
71 #| Psi3Threshold | 1A | 1A | 1A | 1A |
72 #| Psi3Enable | 1 | 1 | 1 | 1 |
73 #| Psi4Enable | 1 | 1 | 1 | 1 |
74 #| ImonSlope | 0 | 0 | 0 | 0 |
75 #| ImonOffset | 0 | 0 | 0 | 0 |
Wim Vervoorn8bf921c2020-03-24 16:19:38 +010076 #| IccMax | 5.1A | 32A | 35A | 31A |
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010077 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
78 #+----------------+-------+-------+-------+-------+
79 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
Felix Singer21b5a9a2023-10-23 07:26:28 +020080 .vr_config_enable = 1,
81 .psi1threshold = VR_CFG_AMP(20),
82 .psi2threshold = VR_CFG_AMP(5),
83 .psi3threshold = VR_CFG_AMP(1),
84 .psi3enable = 1,
85 .psi4enable = 1,
86 .imon_slope = 0,
87 .imon_offset = 0,
88 .icc_max = VR_CFG_AMP(5.1),
89 .voltage_limit = 1520
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010090 }"
91
92 register "domain_vr_config[VR_IA_CORE]" = "{
Felix Singer21b5a9a2023-10-23 07:26:28 +020093 .vr_config_enable = 1,
94 .psi1threshold = VR_CFG_AMP(20),
95 .psi2threshold = VR_CFG_AMP(5),
96 .psi3threshold = VR_CFG_AMP(1),
97 .psi3enable = 1,
98 .psi4enable = 1,
99 .imon_slope = 0,
100 .imon_offset = 0,
101 .icc_max = VR_CFG_AMP(32),
102 .voltage_limit = 1520
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100103 }"
104
105 register "domain_vr_config[VR_GT_UNSLICED]" = "{
Felix Singer21b5a9a2023-10-23 07:26:28 +0200106 .vr_config_enable = 1,
107 .psi1threshold = VR_CFG_AMP(20),
108 .psi2threshold = VR_CFG_AMP(5),
109 .psi3threshold = VR_CFG_AMP(1),
110 .psi3enable = 1,
111 .psi4enable = 1,
112 .imon_slope = 0,
113 .imon_offset = 0,
114 .icc_max = VR_CFG_AMP(35),
115 .voltage_limit = 1520
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100116 }"
117
118 register "domain_vr_config[VR_GT_SLICED]" = "{
Felix Singer21b5a9a2023-10-23 07:26:28 +0200119 .vr_config_enable = 1,
120 .psi1threshold = VR_CFG_AMP(20),
121 .psi2threshold = VR_CFG_AMP(5),
122 .psi3threshold = VR_CFG_AMP(1),
123 .psi3enable = 1,
124 .psi4enable = 1,
125 .imon_slope = 0,
126 .imon_offset = 0,
127 .icc_max = VR_CFG_AMP(31),
128 .voltage_limit = 1520
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100129 }"
130
131 # Send an extra VR mailbox command for the PS4 exit issue
132 register "SendVrMbxCmd" = "2"
133
134 # Enable Root ports.
135 # PCIE Port 1 disabled
136 # PCIE Port 2 disabled
137
138 # PCIE Port 3 x1 -> Module x1 : Mapped to PCIe 2 on the baseboard
139 register "PcieRpEnable[2]" = "1"
140 # Disable CLKREQ#
141 register "PcieRpClkReqSupport[2]" = "0"
Wim Vervoorn544cc832020-05-07 13:21:36 +0200142 # Set MaxPayload to 256 bytes
143 register "PcieRpMaxPayload[2]" = "RpMaxPayload_256"
144 # Enable Latency Tolerance Reporting Mechanism
145 register "PcieRpLtrEnable[2]" = "1"
146 # Enable Advanced Error Reporting
147 register "PcieRpAdvancedErrorReporting[2]" = "1"
148 # Disable Aspm
Benjamin Doronb53858b2020-10-12 04:19:42 +0000149 register "pcie_rp_aspm[2]" = "AspmDisabled"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100150
151 # PCIE Port 4 disabled
152 # PCIE Port 5 x1 -> MODULE i219
153
154 # PCIE Port 6 x1 -> BASEBOARD x1 i210 : Mapped to PCIe 4 on the baseboard
155 register "PcieRpEnable[5]" = "1"
156 register "PcieRpClkReqSupport[5]" = "0"
Wim Vervoorn544cc832020-05-07 13:21:36 +0200157 # Set MaxPayload to 256 bytes
158 register "PcieRpMaxPayload[5]" = "RpMaxPayload_256"
159 # Enable Latency Tolerance Reporting Mechanism
160 register "PcieRpLtrEnable[5]" = "1"
161 # Enable Advanced Error Reporting
162 register "PcieRpAdvancedErrorReporting[5]" = "1"
163 # Disable Aspm
Benjamin Doronb53858b2020-10-12 04:19:42 +0000164 register "pcie_rp_aspm[5]" = "AspmDisabled"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100165
166 # PCIE Port 7 Disabled
167 # PCIE Port 8 Disabled
168
169 # PCIE Port 9 x4 -> BASEBOARD PEG0-3 FPGA
170 register "PcieRpEnable[8]" = "1"
171 # Disable CLKREQ#
172 register "PcieRpClkReqSupport[8]" = "0"
173 # Use Hot Plug subsystem
174 register "PcieRpHotPlug[8]" = "1"
Wim Vervoorn544cc832020-05-07 13:21:36 +0200175 # Set MaxPayload to 256 bytes
176 register "PcieRpMaxPayload[8]" = "RpMaxPayload_256"
177 # Enable Latency Tolerance Reporting Mechanism
178 register "PcieRpLtrEnable[8]" = "1"
179 # Enable Advanced Error Reporting
180 register "PcieRpAdvancedErrorReporting[8]" = "1"
181 # Disable Aspm
Benjamin Doronb53858b2020-10-12 04:19:42 +0000182 register "pcie_rp_aspm[8]" = "AspmDisabled"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100183
Felix Singer3b01dd12023-10-23 16:08:16 +0200184 register "usb2_ports" = "{
185 [0] = USB2_PORT_TYPE_C(OC_SKIP), /* USB-C Port 2 */
186 [1] = USB2_PORT_MID(OC1), /* USB3_TYPE-A Port 1 */
187 [2] = USB2_PORT_MID(OC1), /* USB3_TYPE-A Port 2 */
188 [3] = USB2_PORT_TYPE_C(OC_SKIP), /* USB-C Port 1 */
189 [4] = USB2_PORT_SHORT(OC_SKIP), /* M2 Port */
190 [6] = USB2_PORT_SHORT(OC_SKIP), /* Audio board */
191 }"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100192
Felix Singer3b01dd12023-10-23 16:08:16 +0200193 register "usb3_ports" = "{
194 [0] = USB3_PORT_DEFAULT(OC_SKIP), /* USB-C Port 2 */
195 [1] = USB3_PORT_DEFAULT(OC_SKIP), /* USB3_TYPE-A Port 1 */
196 [2] = USB3_PORT_DEFAULT(OC_SKIP), /* USB3_TYPE-A Port 2 */
197 [3] = USB3_PORT_DEFAULT(OC_SKIP), /* USB-C Port 1 */
198 }"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100199
200 register "SsicPortEnable" = "0"
201
202 # Must leave UART0 enabled or SD/eMMC will not work as PCI
Felix Singer21b5a9a2023-10-23 07:26:28 +0200203 register "SerialIoDevMode" = "{
204 [PchSerialIoIndexI2C0] = PchSerialIoDisabled,
205 [PchSerialIoIndexI2C1] = PchSerialIoDisabled,
206 [PchSerialIoIndexI2C2] = PchSerialIoDisabled,
207 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
208 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
209 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
210 [PchSerialIoIndexSpi0] = PchSerialIoDisabled,
211 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
212 [PchSerialIoIndexUart0] = PchSerialIoPci,
213 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
214 [PchSerialIoIndexUart2] = PchSerialIoDisabled,
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100215 }"
216
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100217 device domain 0 on
Felix Singer2516a202023-11-12 17:49:59 +0000218 device ref igpu on end
219 device ref sa_thermal on end
220 device ref gmm on end
221 device ref south_xhci on end
222 device ref south_xdci on end
223 device ref thermal on end
224 device ref heci1 on end
225 device ref sata on end
226 device ref pcie_rp3 on end # x1 baseboard WWAN
227 device ref pcie_rp6 on end # x1 baseboard i210
228 device ref pcie_rp9 on end # x4 FPGA
229 device ref uart0 on end
230 device ref emmc on end
231 device ref lpc_espi on
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100232 chip drivers/pc80/tpm
233 device pnp 0c31.0 on end
234 end
Felix Singer2516a202023-11-12 17:49:59 +0000235 end
236 device ref hda on end # for HDMI only
237 device ref smbus on end
238 device ref fast_spi on end
239 device ref gbe on end
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100240 end
241end