blob: f2234a6937a00573299fd4c469ccce36584d4fee [file] [log] [blame]
Patrick Georgic49d7a32020-05-08 22:50:46 +02001## SPDX-License-Identifier: GPL-2.0-only
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +08002
3chip soc/intel/skylake
4
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +08005 register "deep_s5_enable_ac" = "0"
6 register "deep_s5_enable_dc" = "0"
7 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN"
8
9 # GPE configuration
10 # Note that GPE events called out in ASL code rely on this
11 # route. i.e. If this route changes then the affected GPE
12 # offset bits also need to be changed.
13 register "gpe0_dw0" = "GPP_B"
14 register "gpe0_dw1" = "GPP_D"
15 register "gpe0_dw2" = "GPP_E"
16
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080017 # FSP Configuration
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080018 register "DspEnable" = "1"
19 register "IoBufferOwnership" = "3"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080020 register "ScsEmmcHs400Enabled" = "0"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080021 register "SkipExtGfxScan" = "1"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080022
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080023 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
24 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
25 register "PmConfigSlpS3MinAssert" = "0x02"
26
27 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
28 register "PmConfigSlpS4MinAssert" = "0x04"
29
30 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
31 register "PmConfigSlpSusMinAssert" = "0x03"
32
33 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
34 register "PmConfigSlpAMinAssert" = "0x03"
35
Nico Huber44e89af2019-02-23 19:24:51 +010036 register "serirq_mode" = "SERIRQ_CONTINUOUS"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080037
Michael Niewöhner5e779f92019-10-09 21:02:36 +020038 # VR Settings Configuration for 4 Domains
39 #+----------------+-----------+-----------+-------------+----------+
40 #| Domain/Setting | SA | IA | GT Unsliced | GT |
41 #+----------------+-----------+-----------+-------------+----------+
42 #| Psi1Threshold | 20A | 20A | 20A | 20A |
43 #| Psi2Threshold | 4A | 5A | 5A | 5A |
44 #| Psi3Threshold | 1A | 1A | 1A | 1A |
45 #| Psi3Enable | 1 | 1 | 1 | 1 |
46 #| Psi4Enable | 1 | 1 | 1 | 1 |
47 #| ImonSlope | 0 | 0 | 0 | 0 |
48 #| ImonOffset | 0 | 0 | 0 | 0 |
49 #| IccMax | 7A | 34A | 35A | 35A |
50 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
51 #+----------------+-----------+-----------+-------------+----------+
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080052 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
Michael Niewöhner5e779f92019-10-09 21:02:36 +020053 .vr_config_enable = 1,
54 .psi1threshold = VR_CFG_AMP(20),
55 .psi2threshold = VR_CFG_AMP(4),
56 .psi3threshold = VR_CFG_AMP(1),
57 .psi3enable = 1,
58 .psi4enable = 1,
59 .imon_slope = 0x0,
60 .imon_offset = 0x0,
61 .icc_max = VR_CFG_AMP(7),
62 .voltage_limit = 1520,
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080063 }"
64
65 register "domain_vr_config[VR_IA_CORE]" = "{
Michael Niewöhner5e779f92019-10-09 21:02:36 +020066 .vr_config_enable = 1,
67 .psi1threshold = VR_CFG_AMP(20),
68 .psi2threshold = VR_CFG_AMP(5),
69 .psi3threshold = VR_CFG_AMP(1),
70 .psi3enable = 1,
71 .psi4enable = 1,
72 .imon_slope = 0x0,
73 .imon_offset = 0x0,
74 .icc_max = VR_CFG_AMP(34),
75 .voltage_limit = 1520,
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080076 }"
77
78 register "domain_vr_config[VR_GT_UNSLICED]" = "{
Michael Niewöhner5e779f92019-10-09 21:02:36 +020079 .vr_config_enable = 1,
80 .psi1threshold = VR_CFG_AMP(20),
81 .psi2threshold = VR_CFG_AMP(5),
82 .psi3threshold = VR_CFG_AMP(1),
83 .psi3enable = 1,
84 .psi4enable = 1,
85 .imon_slope = 0x0,
86 .imon_offset = 0x0,
87 .icc_max = VR_CFG_AMP(35),
88 .voltage_limit = 1520,
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080089 }"
90
91 register "domain_vr_config[VR_GT_SLICED]" = "{
Michael Niewöhner5e779f92019-10-09 21:02:36 +020092 .vr_config_enable = 1,
93 .psi1threshold = VR_CFG_AMP(20),
94 .psi2threshold = VR_CFG_AMP(5),
95 .psi3threshold = VR_CFG_AMP(1),
96 .psi3enable = 1,
97 .psi4enable = 1,
98 .imon_slope = 0x0,
99 .imon_offset = 0x0,
100 .icc_max = VR_CFG_AMP(35),
101 .voltage_limit = 1520,
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800102 }"
103
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800104 # Enable x1 slot
105 register "PcieRpEnable[7]" = "1"
106 register "PcieRpClkReqSupport[7]" = "1"
107 register "PcieRpClkReqNumber[7]" = "3" #uses SRCCLKREQ3
108
109 # Enable x4 slot
110 register "PcieRpEnable[8]" = "1"
111 register "PcieRpClkReqSupport[8]" = "1"
112 register "PcieRpClkReqNumber[8]" = "4" #uses SRCCLKREQ4
113
114 # Enable Root port 6 and 13.
115 register "PcieRpEnable[5]" = "1"
116 register "PcieRpEnable[12]" = "1"
117
118 # Enable CLKREQ#
119 register "PcieRpClkReqSupport[5]" = "1"
120 register "PcieRpClkReqSupport[12]" = "1"
121
122 # RP 6 uses SRCCLKREQ1# while RP `3 uses SRCCLKREQ2#
123 register "PcieRpClkReqNumber[5]" = "0"
124 register "PcieRpClkReqNumber[12]" = "1"
125
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800126 # USB related
127 register "SsicPortEnable" = "1"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800128
Felix Singercc93db92023-10-23 16:26:20 +0200129 register "usb2_ports" = "{
130 [0] = USB2_PORT_MID(OC_SKIP), /* OTG */
131 [1] = USB2_PORT_MID(OC3), /* Touch Pad */
132 [2] = USB2_PORT_MID(OC_SKIP), /* M.2 BT */
133 [3] = USB2_PORT_MID(OC_SKIP), /* Touch Panel */
134 [4] = USB2_PORT_MID(OC_SKIP), /* M.2 WWAN */
135 [5] = USB2_PORT_MID(OC0), /* Front Panel */
136 [6] = USB2_PORT_MID(OC0), /* Front Panel */
137 [7] = USB2_PORT_MID(OC2), /* Stacked conn (lan + usb) */
138 [8] = USB2_PORT_MID(OC2), /* Stacked conn (lan + usb) */
139 [9] = USB2_PORT_MID(OC1), /* LAN MAGJACK */
140 [10] = USB2_PORT_MID(OC1), /* LAN MAGJACK */
141 [11] = USB2_PORT_MID(OC_SKIP), /* Finger print sensor */
142 [12] = USB2_PORT_MID(OC4), /* USB 2 stack conn */
143 [13] = USB2_PORT_MID(OC4), /* USB 2 stack conn */
144 }"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800145
Felix Singercc93db92023-10-23 16:26:20 +0200146 register "usb3_ports" = "{
147 [0] = USB3_PORT_DEFAULT(OC5), /* OTG */
148 [1] = USB3_PORT_DEFAULT(OC_SKIP), /* M.2 WWAN */
149 [2] = USB3_PORT_DEFAULT(OC3), /* Flex */
150 [3] = USB3_PORT_DEFAULT(OC_SKIP), /* IVCAM */
151 [4] = USB3_PORT_DEFAULT(OC1), /* LAN MAGJACK */
152 [5] = USB3_PORT_DEFAULT(OC0), /* Front Panel */
153 [6] = USB3_PORT_DEFAULT(OC0), /* Front Panel */
154 [7] = USB3_PORT_DEFAULT(OC2), /* Stack Conn */
155 [8] = USB3_PORT_DEFAULT(OC2), /* Stack Conn */
156 [9] = USB3_PORT_DEFAULT(OC1), /* LAN MAGJACK */
157 }"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800158
159 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" # I2C4 is 1.8V
160
161 # Must leave UART0 enabled or SD/eMMC will not work as PCI
162
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800163 register "SataSalpSupport" = "1"
Felix Singer21b5a9a2023-10-23 07:26:28 +0200164 register "SataPortsEnable" = "{
165 [0] = 1,
166 [1] = 1,
167 [2] = 1,
168 [3] = 1,
169 [4] = 1,
170 [5] = 1,
171 [6] = 1,
172 [7] = 1,
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800173 }"
Felix Singer21b5a9a2023-10-23 07:26:28 +0200174 register "SerialIoDevMode" = "{
175 [PchSerialIoIndexI2C0] = PchSerialIoPci,
176 [PchSerialIoIndexI2C1] = PchSerialIoPci,
177 [PchSerialIoIndexI2C2] = PchSerialIoPci,
178 [PchSerialIoIndexI2C3] = PchSerialIoPci,
179 [PchSerialIoIndexI2C4] = PchSerialIoPci,
180 [PchSerialIoIndexI2C5] = PchSerialIoPci,
181 [PchSerialIoIndexSpi0] = PchSerialIoPci,
182 [PchSerialIoIndexSpi1] = PchSerialIoPci,
183 [PchSerialIoIndexUart0] = PchSerialIoPci,
184 [PchSerialIoIndexUart1] = PchSerialIoPci,
185 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800186 }"
187
188 # PL2 override 25W
Sumeet R Pawnikar97c54642020-05-10 01:24:11 +0530189 register "power_limits_config" = "{
190 .tdp_pl2_override = 25,
191 }"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800192
193 # Send an extra VR mailbox command for the PS4 exit issue
194 register "SendVrMbxCmd" = "2"
195
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800196 # Use default SD card detect GPIO configuration
Angel Pons6bd99f92021-02-20 00:16:47 +0100197 #register "sdcard_cd_gpio" = "GPP_A7"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800198
Arthur Heymans69cd7292022-11-07 13:52:11 +0100199 device cpu_cluster 0 on end
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800200 device domain 0 on
Felix Singerdada0172023-11-12 18:10:12 +0000201 device ref igpu on end
202 device ref south_xhci on end
203 device ref thermal on end
204 device ref i2c0 on end
205 device ref i2c1 on end
206 device ref i2c2 on end
207 device ref i2c3 on end
208 device ref heci1 on end
209 device ref sata on end
210 device ref uart2 on end
211 device ref i2c5 on end
212 device ref i2c4 on end
213 device ref pcie_rp1 on end
214 device ref uart0 on end
215 device ref uart1 on end
216 device ref gspi0 on end
217 device ref gspi1 on end
218 device ref hda on end
219 device ref smbus on end
220 device ref fast_spi on end
221 device ref gbe on end
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800222 end
223end