blob: 854b887fb0d8bf892f8a091b9058e3edfecdb320 [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 # LPC serial IRQ
22 register "serirq_mode" = "SERIRQ_CONTINUOUS"
23
Wim Vervoornaf995bb2019-12-23 16:03:55 +010024 # "Intel SpeedStep Technology"
25 register "eist_enable" = "1"
26
Wim Vervoornaf995bb2019-12-23 16:03:55 +010027 # DPTF
28 register "dptf_enable" = "1"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010029
30 # FSP Configuration
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010031 register "ScsEmmcHs400Enabled" = "1"
32 register "SkipExtGfxScan" = "1"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010033 register "SaGv" = "SaGv_Enabled"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010034
Felix Singer0901d032020-07-29 19:57:25 +020035 register "SataSalpSupport" = "1"
Felix Singer21b5a9a2023-10-23 07:26:28 +020036 register "SataPortsEnable" = "{
37 [0] = 1,
Felix Singer0901d032020-07-29 19:57:25 +020038 }"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010039
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010040 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
41 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
42 register "PmConfigSlpS3MinAssert" = "2"
43
44 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
45 register "PmConfigSlpS4MinAssert" = "4"
46
47 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
48 register "PmConfigSlpSusMinAssert" = "3"
49
50 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
51 register "PmConfigSlpAMinAssert" = "3"
52
53 # VR Settings Configuration for 4 Domains
54 #+----------------+-------+-------+-------+-------+
55 #| Domain/Setting | SA | IA | GTUS | GTS |
56 #+----------------+-------+-------+-------+-------+
57 #| Psi1Threshold | 20A | 20A | 20A | 20A |
58 #| Psi2Threshold | 5A | 5A | 5A | 5A |
59 #| Psi3Threshold | 1A | 1A | 1A | 1A |
60 #| Psi3Enable | 1 | 1 | 1 | 1 |
61 #| Psi4Enable | 1 | 1 | 1 | 1 |
62 #| ImonSlope | 0 | 0 | 0 | 0 |
63 #| ImonOffset | 0 | 0 | 0 | 0 |
Wim Vervoorn8bf921c2020-03-24 16:19:38 +010064 #| IccMax | 5.1A | 32A | 35A | 31A |
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010065 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
66 #+----------------+-------+-------+-------+-------+
67 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
Felix Singer21b5a9a2023-10-23 07:26:28 +020068 .vr_config_enable = 1,
69 .psi1threshold = VR_CFG_AMP(20),
70 .psi2threshold = VR_CFG_AMP(5),
71 .psi3threshold = VR_CFG_AMP(1),
72 .psi3enable = 1,
73 .psi4enable = 1,
74 .imon_slope = 0,
75 .imon_offset = 0,
76 .icc_max = VR_CFG_AMP(5.1),
77 .voltage_limit = 1520
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010078 }"
79
80 register "domain_vr_config[VR_IA_CORE]" = "{
Felix Singer21b5a9a2023-10-23 07:26:28 +020081 .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,
89 .icc_max = VR_CFG_AMP(32),
90 .voltage_limit = 1520
Wim Vervoorn7c04acf2019-12-05 13:45:41 +010091 }"
92
93 register "domain_vr_config[VR_GT_UNSLICED]" = "{
Felix Singer21b5a9a2023-10-23 07:26:28 +020094 .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,
102 .icc_max = VR_CFG_AMP(35),
103 .voltage_limit = 1520
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100104 }"
105
106 register "domain_vr_config[VR_GT_SLICED]" = "{
Felix Singer21b5a9a2023-10-23 07:26:28 +0200107 .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(31),
116 .voltage_limit = 1520
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100117 }"
118
119 # Send an extra VR mailbox command for the PS4 exit issue
120 register "SendVrMbxCmd" = "2"
121
122 # Enable Root ports.
123 # PCIE Port 1 disabled
124 # PCIE Port 2 disabled
125
126 # PCIE Port 3 x1 -> Module x1 : Mapped to PCIe 2 on the baseboard
127 register "PcieRpEnable[2]" = "1"
128 # Disable CLKREQ#
129 register "PcieRpClkReqSupport[2]" = "0"
Wim Vervoorn544cc832020-05-07 13:21:36 +0200130 # Set MaxPayload to 256 bytes
131 register "PcieRpMaxPayload[2]" = "RpMaxPayload_256"
132 # Enable Latency Tolerance Reporting Mechanism
133 register "PcieRpLtrEnable[2]" = "1"
134 # Enable Advanced Error Reporting
135 register "PcieRpAdvancedErrorReporting[2]" = "1"
136 # Disable Aspm
Benjamin Doronb53858b2020-10-12 04:19:42 +0000137 register "pcie_rp_aspm[2]" = "AspmDisabled"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100138
139 # PCIE Port 4 disabled
140 # PCIE Port 5 x1 -> MODULE i219
141
142 # PCIE Port 6 x1 -> BASEBOARD x1 i210 : Mapped to PCIe 4 on the baseboard
143 register "PcieRpEnable[5]" = "1"
144 register "PcieRpClkReqSupport[5]" = "0"
Wim Vervoorn544cc832020-05-07 13:21:36 +0200145 # Set MaxPayload to 256 bytes
146 register "PcieRpMaxPayload[5]" = "RpMaxPayload_256"
147 # Enable Latency Tolerance Reporting Mechanism
148 register "PcieRpLtrEnable[5]" = "1"
149 # Enable Advanced Error Reporting
150 register "PcieRpAdvancedErrorReporting[5]" = "1"
151 # Disable Aspm
Benjamin Doronb53858b2020-10-12 04:19:42 +0000152 register "pcie_rp_aspm[5]" = "AspmDisabled"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100153
154 # PCIE Port 7 Disabled
155 # PCIE Port 8 Disabled
156
157 # PCIE Port 9 x4 -> BASEBOARD PEG0-3 FPGA
158 register "PcieRpEnable[8]" = "1"
159 # Disable CLKREQ#
160 register "PcieRpClkReqSupport[8]" = "0"
161 # Use Hot Plug subsystem
162 register "PcieRpHotPlug[8]" = "1"
Wim Vervoorn544cc832020-05-07 13:21:36 +0200163 # Set MaxPayload to 256 bytes
164 register "PcieRpMaxPayload[8]" = "RpMaxPayload_256"
165 # Enable Latency Tolerance Reporting Mechanism
166 register "PcieRpLtrEnable[8]" = "1"
167 # Enable Advanced Error Reporting
168 register "PcieRpAdvancedErrorReporting[8]" = "1"
169 # Disable Aspm
Benjamin Doronb53858b2020-10-12 04:19:42 +0000170 register "pcie_rp_aspm[8]" = "AspmDisabled"
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100171
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100172
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100173 # Must leave UART0 enabled or SD/eMMC will not work as PCI
Felix Singer21b5a9a2023-10-23 07:26:28 +0200174 register "SerialIoDevMode" = "{
175 [PchSerialIoIndexI2C0] = PchSerialIoDisabled,
176 [PchSerialIoIndexI2C1] = PchSerialIoDisabled,
177 [PchSerialIoIndexI2C2] = PchSerialIoDisabled,
178 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
179 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
180 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
181 [PchSerialIoIndexSpi0] = PchSerialIoDisabled,
182 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
183 [PchSerialIoIndexUart0] = PchSerialIoPci,
184 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
185 [PchSerialIoIndexUart2] = PchSerialIoDisabled,
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100186 }"
187
Wim Vervoorn7c04acf2019-12-05 13:45:41 +0100188 device domain 0 on
Felix Singer2516a202023-11-12 17:49:59 +0000189 device ref igpu on end
190 device ref sa_thermal on end
191 device ref gmm on end
Felix Singer6c83a712024-06-23 00:25:18 +0200192 device ref south_xhci on
193 register "usb2_ports" = "{
194 [0] = USB2_PORT_TYPE_C(OC_SKIP), /* USB-C Port 2 */
195 [1] = USB2_PORT_MID(OC1), /* USB3_TYPE-A Port 1 */
196 [2] = USB2_PORT_MID(OC1), /* USB3_TYPE-A Port 2 */
197 [3] = USB2_PORT_TYPE_C(OC_SKIP), /* USB-C Port 1 */
198 [4] = USB2_PORT_SHORT(OC_SKIP), /* M2 Port */
199 [6] = USB2_PORT_SHORT(OC_SKIP), /* Audio board */
200 }"
201
202 register "usb3_ports" = "{
203 [0] = USB3_PORT_DEFAULT(OC_SKIP), /* USB-C Port 2 */
204 [1] = USB3_PORT_DEFAULT(OC_SKIP), /* USB3_TYPE-A Port 1 */
205 [2] = USB3_PORT_DEFAULT(OC_SKIP), /* USB3_TYPE-A Port 2 */
206 [3] = USB3_PORT_DEFAULT(OC_SKIP), /* USB-C Port 1 */
207 }"
208 end
Felix Singer2516a202023-11-12 17:49:59 +0000209 device ref south_xdci on end
210 device ref thermal on end
211 device ref heci1 on end
212 device ref sata on end
213 device ref pcie_rp3 on end # x1 baseboard WWAN
214 device ref pcie_rp6 on end # x1 baseboard i210
215 device ref pcie_rp9 on end # x4 FPGA
216 device ref uart0 on end
217 device ref emmc on end
218 device ref lpc_espi on
Felix Singerdcddc53f2024-06-23 03:39:24 +0200219 # CPLD host command ranges are in 0x280-0x2BF
220 # EC PNP registers are at 0x6e and 0x6f
221 register "gen1_dec" = "0x003c0281"
222 register "gen3_dec" = "0x0004006d"
223
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