blob: 609e1811f864cf2cfdd8a138c13aa4310e7991f3 [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,
Felix Singer0901d032020-07-29 19:57:25 +020043 }"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010044
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010045 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
46 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
47 register "PmConfigSlpS3MinAssert" = "2"
48
49 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
50 register "PmConfigSlpS4MinAssert" = "4"
51
52 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
53 register "PmConfigSlpSusMinAssert" = "3"
54
55 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
56 register "PmConfigSlpAMinAssert" = "3"
57
58 # VR Settings Configuration for 4 Domains
59 #+----------------+-------+-------+-------+-------+
60 #| Domain/Setting | SA | IA | GTUS | GTS |
61 #+----------------+-------+-------+-------+-------+
62 #| Psi1Threshold | 20A | 20A | 20A | 20A |
63 #| Psi2Threshold | 5A | 5A | 5A | 5A |
64 #| Psi3Threshold | 1A | 1A | 1A | 1A |
65 #| Psi3Enable | 1 | 1 | 1 | 1 |
66 #| Psi4Enable | 1 | 1 | 1 | 1 |
67 #| ImonSlope | 0 | 0 | 0 | 0 |
68 #| ImonOffset | 0 | 0 | 0 | 0 |
Wim Vervoorn8bf921c2020-03-24 16:19:38 +010069 #| IccMax | 5.1A | 32A | 35A | 31A |
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010070 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
71 #+----------------+-------+-------+-------+-------+
72 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
Felix Singer21b5a9a2023-10-23 07:26:28 +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 = 0,
80 .imon_offset = 0,
81 .icc_max = VR_CFG_AMP(5.1),
82 .voltage_limit = 1520
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010083 }"
84
85 register "domain_vr_config[VR_IA_CORE]" = "{
Felix Singer21b5a9a2023-10-23 07:26:28 +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 = 0,
93 .imon_offset = 0,
94 .icc_max = VR_CFG_AMP(32),
95 .voltage_limit = 1520
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010096 }"
97
98 register "domain_vr_config[VR_GT_UNSLICED]" = "{
Felix Singer21b5a9a2023-10-23 07:26:28 +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 = 0,
106 .imon_offset = 0,
107 .icc_max = VR_CFG_AMP(35),
108 .voltage_limit = 1520
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100109 }"
110
111 register "domain_vr_config[VR_GT_SLICED]" = "{
Felix Singer21b5a9a2023-10-23 07:26:28 +0200112 .vr_config_enable = 1,
113 .psi1threshold = VR_CFG_AMP(20),
114 .psi2threshold = VR_CFG_AMP(5),
115 .psi3threshold = VR_CFG_AMP(1),
116 .psi3enable = 1,
117 .psi4enable = 1,
118 .imon_slope = 0,
119 .imon_offset = 0,
120 .icc_max = VR_CFG_AMP(31),
121 .voltage_limit = 1520
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100122 }"
123
124 # Send an extra VR mailbox command for the PS4 exit issue
125 register "SendVrMbxCmd" = "2"
126
127 # Enable Root ports.
128 # PCIE Port 1 disabled
129 # PCIE Port 2 disabled
130
131 # PCIE Port 3 x1 -> Module x1 : Mapped to PCIe 2 on the baseboard
132 register "PcieRpEnable[2]" = "1"
133 # Disable CLKREQ#
134 register "PcieRpClkReqSupport[2]" = "0"
Wim Vervoorn544cc832020-05-07 13:21:36 +0200135 # Set MaxPayload to 256 bytes
136 register "PcieRpMaxPayload[2]" = "RpMaxPayload_256"
137 # Enable Latency Tolerance Reporting Mechanism
138 register "PcieRpLtrEnable[2]" = "1"
139 # Enable Advanced Error Reporting
140 register "PcieRpAdvancedErrorReporting[2]" = "1"
141 # Disable Aspm
Benjamin Doronb53858b2020-10-12 04:19:42 +0000142 register "pcie_rp_aspm[2]" = "AspmDisabled"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100143
144 # PCIE Port 4 disabled
145 # PCIE Port 5 x1 -> MODULE i219
146
147 # PCIE Port 6 x1 -> BASEBOARD x1 i210 : Mapped to PCIe 4 on the baseboard
148 register "PcieRpEnable[5]" = "1"
149 register "PcieRpClkReqSupport[5]" = "0"
Wim Vervoorn544cc832020-05-07 13:21:36 +0200150 # Set MaxPayload to 256 bytes
151 register "PcieRpMaxPayload[5]" = "RpMaxPayload_256"
152 # Enable Latency Tolerance Reporting Mechanism
153 register "PcieRpLtrEnable[5]" = "1"
154 # Enable Advanced Error Reporting
155 register "PcieRpAdvancedErrorReporting[5]" = "1"
156 # Disable Aspm
Benjamin Doronb53858b2020-10-12 04:19:42 +0000157 register "pcie_rp_aspm[5]" = "AspmDisabled"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100158
159 # PCIE Port 7 Disabled
160 # PCIE Port 8 Disabled
161
162 # PCIE Port 9 x4 -> BASEBOARD PEG0-3 FPGA
163 register "PcieRpEnable[8]" = "1"
164 # Disable CLKREQ#
165 register "PcieRpClkReqSupport[8]" = "0"
166 # Use Hot Plug subsystem
167 register "PcieRpHotPlug[8]" = "1"
Wim Vervoorn544cc832020-05-07 13:21:36 +0200168 # Set MaxPayload to 256 bytes
169 register "PcieRpMaxPayload[8]" = "RpMaxPayload_256"
170 # Enable Latency Tolerance Reporting Mechanism
171 register "PcieRpLtrEnable[8]" = "1"
172 # Enable Advanced Error Reporting
173 register "PcieRpAdvancedErrorReporting[8]" = "1"
174 # Disable Aspm
Benjamin Doronb53858b2020-10-12 04:19:42 +0000175 register "pcie_rp_aspm[8]" = "AspmDisabled"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100176
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100177
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100178 # Must leave UART0 enabled or SD/eMMC will not work as PCI
Felix Singer21b5a9a2023-10-23 07:26:28 +0200179 register "SerialIoDevMode" = "{
180 [PchSerialIoIndexI2C0] = PchSerialIoDisabled,
181 [PchSerialIoIndexI2C1] = PchSerialIoDisabled,
182 [PchSerialIoIndexI2C2] = PchSerialIoDisabled,
183 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
184 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
185 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
186 [PchSerialIoIndexSpi0] = PchSerialIoDisabled,
187 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
188 [PchSerialIoIndexUart0] = PchSerialIoPci,
189 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
190 [PchSerialIoIndexUart2] = PchSerialIoDisabled,
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100191 }"
192
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100193 device domain 0 on
Felix Singer2516a202023-11-12 17:49:59 +0000194 device ref igpu on end
195 device ref sa_thermal on end
196 device ref gmm on end
Felix Singer6c83a712024-06-23 00:25:18 +0200197 device ref south_xhci on
198 register "usb2_ports" = "{
199 [0] = USB2_PORT_TYPE_C(OC_SKIP), /* USB-C Port 2 */
200 [1] = USB2_PORT_MID(OC1), /* USB3_TYPE-A Port 1 */
201 [2] = USB2_PORT_MID(OC1), /* USB3_TYPE-A Port 2 */
202 [3] = USB2_PORT_TYPE_C(OC_SKIP), /* USB-C Port 1 */
203 [4] = USB2_PORT_SHORT(OC_SKIP), /* M2 Port */
204 [6] = USB2_PORT_SHORT(OC_SKIP), /* Audio board */
205 }"
206
207 register "usb3_ports" = "{
208 [0] = USB3_PORT_DEFAULT(OC_SKIP), /* USB-C Port 2 */
209 [1] = USB3_PORT_DEFAULT(OC_SKIP), /* USB3_TYPE-A Port 1 */
210 [2] = USB3_PORT_DEFAULT(OC_SKIP), /* USB3_TYPE-A Port 2 */
211 [3] = USB3_PORT_DEFAULT(OC_SKIP), /* USB-C Port 1 */
212 }"
213 end
Felix Singer2516a202023-11-12 17:49:59 +0000214 device ref south_xdci on end
215 device ref thermal on end
216 device ref heci1 on end
217 device ref sata on end
218 device ref pcie_rp3 on end # x1 baseboard WWAN
219 device ref pcie_rp6 on end # x1 baseboard i210
220 device ref pcie_rp9 on end # x4 FPGA
221 device ref uart0 on end
222 device ref emmc on end
223 device ref lpc_espi on
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100224 chip drivers/pc80/tpm
225 device pnp 0c31.0 on end
226 end
Felix Singer2516a202023-11-12 17:49:59 +0000227 end
228 device ref hda on end # for HDMI only
229 device ref smbus on end
230 device ref fast_spi on end
231 device ref gbe on end
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100232 end
233end