blob: 3afff4506eac217742305bb1007717c11ec30f0f [file] [log] [blame]
Lee Leahyc4210412015-06-29 11:37:56 -07001chip soc/intel/skylake
2
Duncan Laurie1c2de9f2015-09-03 16:05:00 -07003 # Enable deep Sx states
Duncan Laurie1fe32d62017-04-10 21:02:13 -07004 register "deep_s5_enable_ac" = "1"
5 register "deep_s5_enable_dc" = "1"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -07006 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN"
7
8 # GPE configuration
9 # Note that GPE events called out in ASL code rely on this
10 # route. i.e. If this route changes then the affected GPE
11 # offset bits also need to be changed.
Duncan Lauried6a42f92015-09-08 16:28:21 -070012 register "gpe0_dw0" = "GPP_B"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070013 register "gpe0_dw1" = "GPP_D"
14 register "gpe0_dw2" = "GPP_E"
15
Subrata Banik89f6d602016-07-26 15:37:11 +053016 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070017 register "gen1_dec" = "0x00fc0801"
Subrata Banik89f6d602016-07-26 15:37:11 +053018 register "gen2_dec" = "0x000c0201"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070019
Subrata Banik2a696c02016-02-08 17:19:10 +053020 # Enable "Intel Speed Shift Technology"
21 register "speed_shift_enable" = "1"
22
Duncan Laurie74b964e2015-09-04 10:41:02 -070023 # Enable DPTF
24 register "dptf_enable" = "1"
25
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070026 # FSP Configuration
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070027 register "DspEnable" = "1"
28 register "IoBufferOwnership" = "3"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070029 register "ScsEmmcHs400Enabled" = "1"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070030 register "SkipExtGfxScan" = "1"
Archana Patni30f53cd2015-11-11 01:30:41 +053031 register "HeciEnabled" = "0"
Praveen Hodagatta Praneshaa6a8fb2019-10-29 14:47:11 +080032 register "SaGv" = "SaGv_Enabled"
Archana Patni4af905a2015-12-19 00:10:17 +053033 register "PmTimerDisabled" = "1"
Rizwan Qureshifb879982015-11-19 16:06:28 +053034
35 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
36 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
37 register "PmConfigSlpS3MinAssert" = "0x02"
38
39 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
40 register "PmConfigSlpS4MinAssert" = "0x04"
41
42 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
43 register "PmConfigSlpSusMinAssert" = "0x03"
44
45 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
46 register "PmConfigSlpAMinAssert" = "0x03"
47
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070048
Michael Niewöhnerdd321032019-10-09 21:02:36 +020049 # VR Settings Configuration for 4 Domains
50 #+----------------+-----------+-----------+-------------+----------+
51 #| Domain/Setting | SA | IA | GT Unsliced | GT |
52 #+----------------+-----------+-----------+-------------+----------+
53 #| Psi1Threshold | 20A | 20A | 20A | 20A |
54 #| Psi2Threshold | 4A | 5A | 5A | 5A |
55 #| Psi3Threshold | 1A | 1A | 1A | 1A |
56 #| Psi3Enable | 1 | 1 | 1 | 1 |
57 #| Psi4Enable | 1 | 1 | 1 | 1 |
58 #| ImonSlope | 0 | 0 | 0 | 0 |
59 #| ImonOffset | 0 | 0 | 0 | 0 |
60 #| IccMax | 7A | 34A | 35A | 35A |
61 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
62 #+----------------+-----------+-----------+-------------+----------+
Rizwan Qureshi3fc42772015-11-20 11:47:40 +053063 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
Michael Niewöhnerdd321032019-10-09 21:02:36 +020064 .vr_config_enable = 1,
65 .psi1threshold = VR_CFG_AMP(20),
66 .psi2threshold = VR_CFG_AMP(4),
67 .psi3threshold = VR_CFG_AMP(1),
68 .psi3enable = 1,
69 .psi4enable = 1,
70 .imon_slope = 0x0,
71 .imon_offset = 0x0,
72 .icc_max = VR_CFG_AMP(7),
73 .voltage_limit = 1520,
Rizwan Qureshi3fc42772015-11-20 11:47:40 +053074 }"
75
76 register "domain_vr_config[VR_IA_CORE]" = "{
Michael Niewöhnerdd321032019-10-09 21:02:36 +020077 .vr_config_enable = 1,
78 .psi1threshold = VR_CFG_AMP(20),
79 .psi2threshold = VR_CFG_AMP(5),
80 .psi3threshold = VR_CFG_AMP(1),
81 .psi3enable = 1,
82 .psi4enable = 1,
83 .imon_slope = 0x0,
84 .imon_offset = 0x0,
85 .icc_max = VR_CFG_AMP(34),
86 .voltage_limit = 1520,
Rizwan Qureshi3fc42772015-11-20 11:47:40 +053087 }"
88
89 register "domain_vr_config[VR_GT_UNSLICED]" = "{
Michael Niewöhnerdd321032019-10-09 21:02:36 +020090 .vr_config_enable = 1,
91 .psi1threshold = VR_CFG_AMP(20),
92 .psi2threshold = VR_CFG_AMP(5),
93 .psi3threshold = VR_CFG_AMP(1),
94 .psi3enable = 1,
95 .psi4enable = 1,
96 .imon_slope = 0x0,
97 .imon_offset = 0x0,
98 .icc_max = VR_CFG_AMP(35),
99 .voltage_limit = 1520,
Rizwan Qureshi3fc42772015-11-20 11:47:40 +0530100 }"
101
102 register "domain_vr_config[VR_GT_SLICED]" = "{
Michael Niewöhnerdd321032019-10-09 21:02:36 +0200103 .vr_config_enable = 1,
104 .psi1threshold = VR_CFG_AMP(20),
105 .psi2threshold = VR_CFG_AMP(5),
106 .psi3threshold = VR_CFG_AMP(1),
107 .psi3enable = 1,
108 .psi4enable = 1,
109 .imon_slope = 0x0,
110 .imon_offset = 0x0,
111 .icc_max = VR_CFG_AMP(35),
112 .voltage_limit = 1520,
Rizwan Qureshi3fc42772015-11-20 11:47:40 +0530113 }"
114
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700115 # Enable Root port 1 and 5.
116 register "PcieRpEnable[0]" = "1"
117 register "PcieRpEnable[4]" = "1"
118 # Enable CLKREQ#
119 register "PcieRpClkReqSupport[0]" = "1"
120 register "PcieRpClkReqSupport[4]" = "1"
121 # RP 1 uses SRCCLKREQ1# while RP 5 uses SRCCLKREQ2#
122 register "PcieRpClkReqNumber[0]" = "1"
123 register "PcieRpClkReqNumber[4]" = "2"
Lee Leahyc4210412015-06-29 11:37:56 -0700124
Subrata Banik2c3054c2016-11-22 20:21:49 +0530125 register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC0)" # Type-C Port 1
126 register "usb2_ports[1]" = "USB2_PORT_TYPE_C(OC1)" # Type-C Port 2
127 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
128 register "usb2_ports[4]" = "USB2_PORT_MID(OC2)" # Type-A Port (card)
129 register "usb2_ports[6]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera
130 register "usb2_ports[8]" = "USB2_PORT_LONG(OC3)" # Type-A Port (board)
Duncan Laurie2b9595a2015-08-28 17:48:11 -0700131
Subrata Banik2c3054c2016-11-22 20:21:49 +0530132 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1
133 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2
134 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC2)" # Type-A Port (card)
135 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC3)" # Type-A Port (board)
Duncan Lauriec8d45ac2016-06-06 17:21:00 -0700136
Aaron Durbined14a4e2016-11-09 17:04:15 -0600137 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" # I2C4 is 1.8V
Rizwan Qureshi9cd8e5a2015-10-05 19:13:01 +0530138
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700139 # Must leave UART0 enabled or SD/eMMC will not work as PCI
140 register "SerialIoDevMode" = "{ \
141 [PchSerialIoIndexI2C0] = PchSerialIoPci, \
142 [PchSerialIoIndexI2C1] = PchSerialIoPci, \
143 [PchSerialIoIndexI2C2] = PchSerialIoDisabled, \
144 [PchSerialIoIndexI2C3] = PchSerialIoDisabled, \
145 [PchSerialIoIndexI2C4] = PchSerialIoPci, \
146 [PchSerialIoIndexI2C5] = PchSerialIoDisabled, \
147 [PchSerialIoIndexSpi0] = PchSerialIoDisabled, \
148 [PchSerialIoIndexSpi1] = PchSerialIoDisabled, \
149 [PchSerialIoIndexUart0] = PchSerialIoPci, \
150 [PchSerialIoIndexUart1] = PchSerialIoDisabled, \
Rizwan Qureshi9cd8e5a2015-10-05 19:13:01 +0530151 [PchSerialIoIndexUart2] = PchSerialIoSkipInit, \
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700152 }"
Lee Leahyc4210412015-06-29 11:37:56 -0700153
pchandrif28929d2016-01-19 10:49:51 -0800154 # PL2 override 25W
Sumeet R Pawnikar97c54642020-05-10 01:24:11 +0530155 register "power_limits_config" = "{
156 .tdp_pl2_override = 25,
157 }"
pchandrif28929d2016-01-19 10:49:51 -0800158
Subrata Banik9a8b67d2016-04-20 14:19:53 +0530159 # Send an extra VR mailbox command for the PS4 exit issue
160 register "SendVrMbxCmd" = "2"
161
Duncan Laurie9482cf62016-06-22 11:31:51 -0700162 # Use default SD card detect GPIO configuration
163 register "sdcard_cd_gpio_default" = "GPP_A7"
164
Subrata Banikc204aaa2017-08-17 15:49:58 +0530165 # Lock Down
Subrata Banikc4986eb2018-05-09 14:55:09 +0530166 register "common_soc_config" = "{
167 .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
168 }"
Subrata Banikc204aaa2017-08-17 15:49:58 +0530169
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700170 device cpu_cluster 0 on
Lee Leahyc4210412015-06-29 11:37:56 -0700171 device lapic 0 on end
172 end
173 device domain 0 on
Lee Leahyc4210412015-06-29 11:37:56 -0700174 device pci 00.0 on end # Host Bridge
175 device pci 02.0 on end # Integrated Graphics Device
Felix Singer9c1c0092020-07-29 20:48:08 +0200176 device pci 04.0 on end # SA thermal subsystem
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700177 device pci 14.0 on end # USB xHCI
178 device pci 14.1 off end # USB xDCI (OTG)
Lee Leahyc4210412015-06-29 11:37:56 -0700179 device pci 14.2 on end # Thermal Subsystem
Duncan Laurie9482cf62016-06-22 11:31:51 -0700180 device pci 15.0 on
181 chip drivers/i2c/generic
182 register "hid" = ""ELAN0001""
183 register "desc" = ""ELAN Touchscreen""
Furquan Shaikh5b9b5932017-02-21 13:16:30 -0800184 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E7_IRQ)"
Duncan Laurie9482cf62016-06-22 11:31:51 -0700185 device i2c 10 on end
186 end
187 end # I2C #0
188 device pci 15.1 on
189 chip drivers/i2c/generic
190 register "hid" = ""ELAN0000""
191 register "desc" = ""ELAN Touchpad""
Furquan Shaikh5b9b5932017-02-21 13:16:30 -0800192 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_B3_IRQ)"
Duncan Laurie9482cf62016-06-22 11:31:51 -0700193 register "wake" = "GPE0_DW0_05"
194 device i2c 15 on end
195 end
196 end # I2C #1
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700197 device pci 15.2 off end # I2C #2
198 device pci 15.3 off end # I2C #3
Lee Leahyc4210412015-06-29 11:37:56 -0700199 device pci 16.0 on end # Management Engine Interface 1
200 device pci 16.1 off end # Management Engine Interface 2
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700201 device pci 16.2 off end # Management Engine IDE-R
202 device pci 16.3 off end # Management Engine KT Redirection
203 device pci 16.4 off end # Management Engine Interface 3
204 device pci 17.0 off end # SATA
205 device pci 19.0 on end # UART #2
206 device pci 19.1 off end # I2C #5
Duncan Laurie9482cf62016-06-22 11:31:51 -0700207 device pci 19.2 on
208 chip drivers/i2c/nau8825
Furquan Shaikh5b9b5932017-02-21 13:16:30 -0800209 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_F10_IRQ)"
Duncan Laurie9482cf62016-06-22 11:31:51 -0700210 register "jkdet_enable" = "1"
211 register "jkdet_pull_enable" = "1"
212 register "jkdet_pull_up" = "1"
213 register "jkdet_polarity" = "1" # ActiveLow
214 register "vref_impedance" = "2" # 125kOhm
215 register "micbias_voltage" = "6" # 2.754
216 register "sar_threshold_num" = "4"
217 register "sar_threshold[0]" = "0x08"
218 register "sar_threshold[1]" = "0x12"
219 register "sar_threshold[2]" = "0x26"
220 register "sar_threshold[3]" = "0x73"
221 register "sar_hysteresis" = "0"
222 register "sar_voltage" = "6"
223 register "sar_compare_time" = "1" # 1us
224 register "sar_sampling_time" = "1" # 4us
225 register "short_key_debounce" = "3" # 30ms
226 register "jack_insert_debounce" = "7" # 512ms
227 register "jack_eject_debounce" = "0"
228 device i2c 1a on end
229 end
230 chip drivers/i2c/generic
231 register "hid" = ""INT343B""
232 register "desc" = ""SSM4567 Left Speaker Amp""
233 register "uid" = "0"
234 register "device_present_gpio" = "GPP_E3"
235 device i2c 34 on end
236 end
237 chip drivers/i2c/generic
238 register "hid" = ""INT343B""
239 register "desc" = ""SSM4567 Right Speaker Amp""
240 register "uid" = "1"
241 register "device_present_gpio" = "GPP_E3"
242 device i2c 35 on end
243 end
244 end # I2C #4
245 device pci 1c.0 on
Furquan Shaikha266d1e2020-10-04 12:52:54 -0700246 chip drivers/wifi/generic
Duncan Laurie9482cf62016-06-22 11:31:51 -0700247 register "wake" = "GPE0_DW0_16"
248 device pci 00.0 on end
249 end
250 end # PCI Express Port 1
Lee Leahyc4210412015-06-29 11:37:56 -0700251 device pci 1c.1 off end # PCI Express Port 2
252 device pci 1c.2 off end # PCI Express Port 3
253 device pci 1c.3 off end # PCI Express Port 4
Pratik Prajapatif1acb9b2015-08-13 15:21:37 -0700254 device pci 1c.4 on end # PCI Express Port 5
Lee Leahyc4210412015-06-29 11:37:56 -0700255 device pci 1c.5 off end # PCI Express Port 6
256 device pci 1c.6 off end # PCI Express Port 7
257 device pci 1c.7 off end # PCI Express Port 8
Pratik Prajapatif1acb9b2015-08-13 15:21:37 -0700258 device pci 1d.0 off end # PCI Express Port 9
Lee Leahyc4210412015-06-29 11:37:56 -0700259 device pci 1d.1 off end # PCI Express Port 10
260 device pci 1d.2 off end # PCI Express Port 11
261 device pci 1d.3 off end # PCI Express Port 12
262 device pci 1e.0 on end # UART #0
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700263 device pci 1e.1 off end # UART #1
264 device pci 1e.2 off end # GSPI #0
265 device pci 1e.3 off end # GSPI #1
Lee Leahyc4210412015-06-29 11:37:56 -0700266 device pci 1e.4 on end # eMMC
267 device pci 1e.5 off end # SDIO
268 device pci 1e.6 on end # SDCard
269 device pci 1f.0 on
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700270 chip drivers/pc80/tpm
271 device pnp 0c31.0 on end
272 end
Lee Leahyc4210412015-06-29 11:37:56 -0700273 chip ec/google/chromeec
274 device pnp 0c09.0 on end
275 end
276 end # LPC Interface
Archana Patni30f53cd2015-11-11 01:30:41 +0530277 device pci 1f.1 on end # P2SB
Naveen Krishna Chatradhi133dcd32015-07-10 16:00:51 +0530278 device pci 1f.2 on end # Power Management Controller
Duncan Laurie9482cf62016-06-22 11:31:51 -0700279 device pci 1f.3 on
280 chip drivers/generic/max98357a
Aamir Bohraa1c82c52020-03-16 18:57:48 +0530281 register "hid" = ""MX98357A""
Furquan Shaikh028200f2016-10-04 10:53:32 -0700282 register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E3)"
Duncan Laurie9482cf62016-06-22 11:31:51 -0700283 register "device_present_gpio" = "GPP_E3"
284 register "device_present_gpio_invert" = "1"
285 device generic 0 on end
286 end
287 end # Intel HDA
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700288 device pci 1f.4 on end # SMBus
289 device pci 1f.5 on end # PCH SPI
290 device pci 1f.6 off end # GbE
Lee Leahyc4210412015-06-29 11:37:56 -0700291 end
292end