blob: c92377a1491bed5f4c95e6ab6f57c783f919d425 [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 "SkipExtGfxScan" = "1"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080021
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080022 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
23 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
24 register "PmConfigSlpS3MinAssert" = "0x02"
25
26 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
27 register "PmConfigSlpS4MinAssert" = "0x04"
28
29 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
30 register "PmConfigSlpSusMinAssert" = "0x03"
31
32 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
33 register "PmConfigSlpAMinAssert" = "0x03"
34
Michael Niewöhner5e779f92019-10-09 21:02:36 +020035 # VR Settings Configuration for 4 Domains
36 #+----------------+-----------+-----------+-------------+----------+
37 #| Domain/Setting | SA | IA | GT Unsliced | GT |
38 #+----------------+-----------+-----------+-------------+----------+
39 #| Psi1Threshold | 20A | 20A | 20A | 20A |
40 #| Psi2Threshold | 4A | 5A | 5A | 5A |
41 #| Psi3Threshold | 1A | 1A | 1A | 1A |
42 #| Psi3Enable | 1 | 1 | 1 | 1 |
43 #| Psi4Enable | 1 | 1 | 1 | 1 |
44 #| ImonSlope | 0 | 0 | 0 | 0 |
45 #| ImonOffset | 0 | 0 | 0 | 0 |
46 #| IccMax | 7A | 34A | 35A | 35A |
47 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
48 #+----------------+-----------+-----------+-------------+----------+
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080049 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
Michael Niewöhner5e779f92019-10-09 21:02:36 +020050 .vr_config_enable = 1,
51 .psi1threshold = VR_CFG_AMP(20),
52 .psi2threshold = VR_CFG_AMP(4),
53 .psi3threshold = VR_CFG_AMP(1),
54 .psi3enable = 1,
55 .psi4enable = 1,
56 .imon_slope = 0x0,
57 .imon_offset = 0x0,
58 .icc_max = VR_CFG_AMP(7),
59 .voltage_limit = 1520,
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080060 }"
61
62 register "domain_vr_config[VR_IA_CORE]" = "{
Michael Niewöhner5e779f92019-10-09 21:02:36 +020063 .vr_config_enable = 1,
64 .psi1threshold = VR_CFG_AMP(20),
65 .psi2threshold = VR_CFG_AMP(5),
66 .psi3threshold = VR_CFG_AMP(1),
67 .psi3enable = 1,
68 .psi4enable = 1,
69 .imon_slope = 0x0,
70 .imon_offset = 0x0,
71 .icc_max = VR_CFG_AMP(34),
72 .voltage_limit = 1520,
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080073 }"
74
75 register "domain_vr_config[VR_GT_UNSLICED]" = "{
Michael Niewöhner5e779f92019-10-09 21:02:36 +020076 .vr_config_enable = 1,
77 .psi1threshold = VR_CFG_AMP(20),
78 .psi2threshold = VR_CFG_AMP(5),
79 .psi3threshold = VR_CFG_AMP(1),
80 .psi3enable = 1,
81 .psi4enable = 1,
82 .imon_slope = 0x0,
83 .imon_offset = 0x0,
84 .icc_max = VR_CFG_AMP(35),
85 .voltage_limit = 1520,
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080086 }"
87
88 register "domain_vr_config[VR_GT_SLICED]" = "{
Michael Niewöhner5e779f92019-10-09 21:02:36 +020089 .vr_config_enable = 1,
90 .psi1threshold = VR_CFG_AMP(20),
91 .psi2threshold = VR_CFG_AMP(5),
92 .psi3threshold = VR_CFG_AMP(1),
93 .psi3enable = 1,
94 .psi4enable = 1,
95 .imon_slope = 0x0,
96 .imon_offset = 0x0,
97 .icc_max = VR_CFG_AMP(35),
98 .voltage_limit = 1520,
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +080099 }"
100
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800101 # Enable x1 slot
102 register "PcieRpEnable[7]" = "1"
103 register "PcieRpClkReqSupport[7]" = "1"
104 register "PcieRpClkReqNumber[7]" = "3" #uses SRCCLKREQ3
105
106 # Enable x4 slot
107 register "PcieRpEnable[8]" = "1"
108 register "PcieRpClkReqSupport[8]" = "1"
109 register "PcieRpClkReqNumber[8]" = "4" #uses SRCCLKREQ4
110
111 # Enable Root port 6 and 13.
112 register "PcieRpEnable[5]" = "1"
113 register "PcieRpEnable[12]" = "1"
114
115 # Enable CLKREQ#
116 register "PcieRpClkReqSupport[5]" = "1"
117 register "PcieRpClkReqSupport[12]" = "1"
118
119 # RP 6 uses SRCCLKREQ1# while RP `3 uses SRCCLKREQ2#
120 register "PcieRpClkReqNumber[5]" = "0"
121 register "PcieRpClkReqNumber[12]" = "1"
122
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800123 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" # I2C4 is 1.8V
124
125 # Must leave UART0 enabled or SD/eMMC will not work as PCI
126
Felix Singer21b5a9a2023-10-23 07:26:28 +0200127 register "SerialIoDevMode" = "{
128 [PchSerialIoIndexI2C0] = PchSerialIoPci,
129 [PchSerialIoIndexI2C1] = PchSerialIoPci,
130 [PchSerialIoIndexI2C2] = PchSerialIoPci,
131 [PchSerialIoIndexI2C3] = PchSerialIoPci,
132 [PchSerialIoIndexI2C4] = PchSerialIoPci,
133 [PchSerialIoIndexI2C5] = PchSerialIoPci,
134 [PchSerialIoIndexSpi0] = PchSerialIoPci,
135 [PchSerialIoIndexSpi1] = PchSerialIoPci,
136 [PchSerialIoIndexUart0] = PchSerialIoPci,
137 [PchSerialIoIndexUart1] = PchSerialIoPci,
138 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800139 }"
140
141 # PL2 override 25W
Sumeet R Pawnikar97c54642020-05-10 01:24:11 +0530142 register "power_limits_config" = "{
143 .tdp_pl2_override = 25,
144 }"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800145
146 # Send an extra VR mailbox command for the PS4 exit issue
147 register "SendVrMbxCmd" = "2"
148
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800149 # Use default SD card detect GPIO configuration
Angel Pons6bd99f92021-02-20 00:16:47 +0100150 #register "sdcard_cd_gpio" = "GPP_A7"
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800151
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800152 device domain 0 on
Felix Singerdada0172023-11-12 18:10:12 +0000153 device ref igpu on end
Felix Singer6c83a712024-06-23 00:25:18 +0200154 device ref south_xhci on
Felix Singer576f1cd2024-06-23 21:39:55 +0200155 register "SsicPortEnable" = "1"
156
Felix Singer6c83a712024-06-23 00:25:18 +0200157 register "usb2_ports" = "{
158 [0] = USB2_PORT_MID(OC_SKIP), /* OTG */
159 [1] = USB2_PORT_MID(OC3), /* Touch Pad */
160 [2] = USB2_PORT_MID(OC_SKIP), /* M.2 BT */
161 [3] = USB2_PORT_MID(OC_SKIP), /* Touch Panel */
162 [4] = USB2_PORT_MID(OC_SKIP), /* M.2 WWAN */
163 [5] = USB2_PORT_MID(OC0), /* Front Panel */
164 [6] = USB2_PORT_MID(OC0), /* Front Panel */
165 [7] = USB2_PORT_MID(OC2), /* Stacked conn (lan + usb) */
166 [8] = USB2_PORT_MID(OC2), /* Stacked conn (lan + usb) */
167 [9] = USB2_PORT_MID(OC1), /* LAN MAGJACK */
168 [10] = USB2_PORT_MID(OC1), /* LAN MAGJACK */
169 [11] = USB2_PORT_MID(OC_SKIP), /* Finger print sensor */
170 [12] = USB2_PORT_MID(OC4), /* USB 2 stack conn */
171 [13] = USB2_PORT_MID(OC4), /* USB 2 stack conn */
172 }"
173
174 register "usb3_ports" = "{
175 [0] = USB3_PORT_DEFAULT(OC5), /* OTG */
176 [1] = USB3_PORT_DEFAULT(OC_SKIP), /* M.2 WWAN */
177 [2] = USB3_PORT_DEFAULT(OC3), /* Flex */
178 [3] = USB3_PORT_DEFAULT(OC_SKIP), /* IVCAM */
179 [4] = USB3_PORT_DEFAULT(OC1), /* LAN MAGJACK */
180 [5] = USB3_PORT_DEFAULT(OC0), /* Front Panel */
181 [6] = USB3_PORT_DEFAULT(OC0), /* Front Panel */
182 [7] = USB3_PORT_DEFAULT(OC2), /* Stack Conn */
183 [8] = USB3_PORT_DEFAULT(OC2), /* Stack Conn */
184 [9] = USB3_PORT_DEFAULT(OC1), /* LAN MAGJACK */
185 }"
186 end
Felix Singerdada0172023-11-12 18:10:12 +0000187 device ref thermal on end
188 device ref i2c0 on end
189 device ref i2c1 on end
190 device ref i2c2 on end
191 device ref i2c3 on end
192 device ref heci1 on end
Felix Singerdf7de392024-06-23 04:59:03 +0200193 device ref sata on
194 register "SataSalpSupport" = "1"
195 register "SataPortsEnable" = "{
196 [0] = 1,
197 [1] = 1,
198 [2] = 1,
199 [3] = 1,
200 [4] = 1,
201 [5] = 1,
202 [6] = 1,
203 [7] = 1,
204 }"
205 end
Felix Singerdada0172023-11-12 18:10:12 +0000206 device ref uart2 on end
207 device ref i2c5 on end
208 device ref i2c4 on end
209 device ref pcie_rp1 on end
210 device ref uart0 on end
211 device ref uart1 on end
212 device ref gspi0 on end
213 device ref gspi1 on end
214 device ref hda on end
215 device ref smbus on end
Felix Singer4b722032024-06-23 20:32:15 +0200216 device ref lpc_espi on
217 register "serirq_mode" = "SERIRQ_CONTINUOUS"
218 end
Felix Singerdada0172023-11-12 18:10:12 +0000219 device ref fast_spi on end
220 device ref gbe on end
Teo Boon Tiong4dee7b52017-09-07 00:48:55 +0800221 end
222end