blob: 505a5987470631f9b3def115955d0d83f8058088 [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
Duncan Laurie74b964e2015-09-04 10:41:02 -070020 # Enable DPTF
21 register "dptf_enable" = "1"
22
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070023 # FSP Configuration
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070024 register "DspEnable" = "1"
25 register "IoBufferOwnership" = "3"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070026 register "ScsEmmcHs400Enabled" = "1"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070027 register "SkipExtGfxScan" = "1"
Archana Patni30f53cd2015-11-11 01:30:41 +053028 register "HeciEnabled" = "0"
Praveen Hodagatta Praneshaa6a8fb2019-10-29 14:47:11 +080029 register "SaGv" = "SaGv_Enabled"
Rizwan Qureshifb879982015-11-19 16:06:28 +053030
31 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
32 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
33 register "PmConfigSlpS3MinAssert" = "0x02"
34
35 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
36 register "PmConfigSlpS4MinAssert" = "0x04"
37
38 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
39 register "PmConfigSlpSusMinAssert" = "0x03"
40
41 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
42 register "PmConfigSlpAMinAssert" = "0x03"
43
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070044
Michael Niewöhnerdd321032019-10-09 21:02:36 +020045 # VR Settings Configuration for 4 Domains
46 #+----------------+-----------+-----------+-------------+----------+
47 #| Domain/Setting | SA | IA | GT Unsliced | GT |
48 #+----------------+-----------+-----------+-------------+----------+
49 #| Psi1Threshold | 20A | 20A | 20A | 20A |
50 #| Psi2Threshold | 4A | 5A | 5A | 5A |
51 #| Psi3Threshold | 1A | 1A | 1A | 1A |
52 #| Psi3Enable | 1 | 1 | 1 | 1 |
53 #| Psi4Enable | 1 | 1 | 1 | 1 |
54 #| ImonSlope | 0 | 0 | 0 | 0 |
55 #| ImonOffset | 0 | 0 | 0 | 0 |
56 #| IccMax | 7A | 34A | 35A | 35A |
57 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
58 #+----------------+-----------+-----------+-------------+----------+
Rizwan Qureshi3fc42772015-11-20 11:47:40 +053059 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
Michael Niewöhnerdd321032019-10-09 21:02:36 +020060 .vr_config_enable = 1,
61 .psi1threshold = VR_CFG_AMP(20),
62 .psi2threshold = VR_CFG_AMP(4),
63 .psi3threshold = VR_CFG_AMP(1),
64 .psi3enable = 1,
65 .psi4enable = 1,
66 .imon_slope = 0x0,
67 .imon_offset = 0x0,
68 .icc_max = VR_CFG_AMP(7),
69 .voltage_limit = 1520,
Rizwan Qureshi3fc42772015-11-20 11:47:40 +053070 }"
71
72 register "domain_vr_config[VR_IA_CORE]" = "{
Michael Niewöhnerdd321032019-10-09 21:02:36 +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 = 0x0,
80 .imon_offset = 0x0,
81 .icc_max = VR_CFG_AMP(34),
82 .voltage_limit = 1520,
Rizwan Qureshi3fc42772015-11-20 11:47:40 +053083 }"
84
85 register "domain_vr_config[VR_GT_UNSLICED]" = "{
Michael Niewöhnerdd321032019-10-09 21:02:36 +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 = 0x0,
93 .imon_offset = 0x0,
94 .icc_max = VR_CFG_AMP(35),
95 .voltage_limit = 1520,
Rizwan Qureshi3fc42772015-11-20 11:47:40 +053096 }"
97
98 register "domain_vr_config[VR_GT_SLICED]" = "{
Michael Niewöhnerdd321032019-10-09 21:02:36 +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 = 0x0,
106 .imon_offset = 0x0,
107 .icc_max = VR_CFG_AMP(35),
108 .voltage_limit = 1520,
Rizwan Qureshi3fc42772015-11-20 11:47:40 +0530109 }"
110
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700111 # Enable Root port 1 and 5.
112 register "PcieRpEnable[0]" = "1"
113 register "PcieRpEnable[4]" = "1"
114 # Enable CLKREQ#
115 register "PcieRpClkReqSupport[0]" = "1"
116 register "PcieRpClkReqSupport[4]" = "1"
117 # RP 1 uses SRCCLKREQ1# while RP 5 uses SRCCLKREQ2#
118 register "PcieRpClkReqNumber[0]" = "1"
119 register "PcieRpClkReqNumber[4]" = "2"
Lee Leahyc4210412015-06-29 11:37:56 -0700120
Subrata Banik2c3054c2016-11-22 20:21:49 +0530121 register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC0)" # Type-C Port 1
122 register "usb2_ports[1]" = "USB2_PORT_TYPE_C(OC1)" # Type-C Port 2
123 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
124 register "usb2_ports[4]" = "USB2_PORT_MID(OC2)" # Type-A Port (card)
125 register "usb2_ports[6]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera
126 register "usb2_ports[8]" = "USB2_PORT_LONG(OC3)" # Type-A Port (board)
Duncan Laurie2b9595a2015-08-28 17:48:11 -0700127
Subrata Banik2c3054c2016-11-22 20:21:49 +0530128 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1
129 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2
130 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC2)" # Type-A Port (card)
131 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC3)" # Type-A Port (board)
Duncan Lauriec8d45ac2016-06-06 17:21:00 -0700132
Aaron Durbined14a4e2016-11-09 17:04:15 -0600133 register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" # I2C4 is 1.8V
Rizwan Qureshi9cd8e5a2015-10-05 19:13:01 +0530134
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700135 # Must leave UART0 enabled or SD/eMMC will not work as PCI
136 register "SerialIoDevMode" = "{ \
137 [PchSerialIoIndexI2C0] = PchSerialIoPci, \
138 [PchSerialIoIndexI2C1] = PchSerialIoPci, \
139 [PchSerialIoIndexI2C2] = PchSerialIoDisabled, \
140 [PchSerialIoIndexI2C3] = PchSerialIoDisabled, \
141 [PchSerialIoIndexI2C4] = PchSerialIoPci, \
142 [PchSerialIoIndexI2C5] = PchSerialIoDisabled, \
143 [PchSerialIoIndexSpi0] = PchSerialIoDisabled, \
144 [PchSerialIoIndexSpi1] = PchSerialIoDisabled, \
145 [PchSerialIoIndexUart0] = PchSerialIoPci, \
146 [PchSerialIoIndexUart1] = PchSerialIoDisabled, \
Rizwan Qureshi9cd8e5a2015-10-05 19:13:01 +0530147 [PchSerialIoIndexUart2] = PchSerialIoSkipInit, \
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700148 }"
Lee Leahyc4210412015-06-29 11:37:56 -0700149
pchandrif28929d2016-01-19 10:49:51 -0800150 # PL2 override 25W
Sumeet R Pawnikar97c54642020-05-10 01:24:11 +0530151 register "power_limits_config" = "{
152 .tdp_pl2_override = 25,
153 }"
pchandrif28929d2016-01-19 10:49:51 -0800154
Subrata Banik9a8b67d2016-04-20 14:19:53 +0530155 # Send an extra VR mailbox command for the PS4 exit issue
156 register "SendVrMbxCmd" = "2"
157
Duncan Laurie9482cf62016-06-22 11:31:51 -0700158 # Use default SD card detect GPIO configuration
Angel Pons6bd99f92021-02-20 00:16:47 +0100159 register "sdcard_cd_gpio" = "GPP_A7"
Duncan Laurie9482cf62016-06-22 11:31:51 -0700160
Subrata Banikc204aaa2017-08-17 15:49:58 +0530161 # Lock Down
Subrata Banikc4986eb2018-05-09 14:55:09 +0530162 register "common_soc_config" = "{
163 .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
164 }"
Subrata Banikc204aaa2017-08-17 15:49:58 +0530165
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700166 device cpu_cluster 0 on
Lee Leahyc4210412015-06-29 11:37:56 -0700167 device lapic 0 on end
168 end
169 device domain 0 on
Lee Leahyc4210412015-06-29 11:37:56 -0700170 device pci 00.0 on end # Host Bridge
171 device pci 02.0 on end # Integrated Graphics Device
Felix Singer9c1c0092020-07-29 20:48:08 +0200172 device pci 04.0 on end # SA thermal subsystem
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700173 device pci 14.0 on end # USB xHCI
174 device pci 14.1 off end # USB xDCI (OTG)
Lee Leahyc4210412015-06-29 11:37:56 -0700175 device pci 14.2 on end # Thermal Subsystem
Duncan Laurie9482cf62016-06-22 11:31:51 -0700176 device pci 15.0 on
177 chip drivers/i2c/generic
178 register "hid" = ""ELAN0001""
179 register "desc" = ""ELAN Touchscreen""
Furquan Shaikh5b9b5932017-02-21 13:16:30 -0800180 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E7_IRQ)"
Duncan Laurie9482cf62016-06-22 11:31:51 -0700181 device i2c 10 on end
182 end
183 end # I2C #0
184 device pci 15.1 on
185 chip drivers/i2c/generic
186 register "hid" = ""ELAN0000""
187 register "desc" = ""ELAN Touchpad""
Furquan Shaikh5b9b5932017-02-21 13:16:30 -0800188 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_B3_IRQ)"
Duncan Laurie9482cf62016-06-22 11:31:51 -0700189 register "wake" = "GPE0_DW0_05"
190 device i2c 15 on end
191 end
192 end # I2C #1
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700193 device pci 15.2 off end # I2C #2
194 device pci 15.3 off end # I2C #3
Lee Leahyc4210412015-06-29 11:37:56 -0700195 device pci 16.0 on end # Management Engine Interface 1
196 device pci 16.1 off end # Management Engine Interface 2
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700197 device pci 16.2 off end # Management Engine IDE-R
198 device pci 16.3 off end # Management Engine KT Redirection
199 device pci 16.4 off end # Management Engine Interface 3
200 device pci 17.0 off end # SATA
201 device pci 19.0 on end # UART #2
202 device pci 19.1 off end # I2C #5
Duncan Laurie9482cf62016-06-22 11:31:51 -0700203 device pci 19.2 on
204 chip drivers/i2c/nau8825
Furquan Shaikh5b9b5932017-02-21 13:16:30 -0800205 register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_F10_IRQ)"
Duncan Laurie9482cf62016-06-22 11:31:51 -0700206 register "jkdet_enable" = "1"
207 register "jkdet_pull_enable" = "1"
208 register "jkdet_pull_up" = "1"
209 register "jkdet_polarity" = "1" # ActiveLow
210 register "vref_impedance" = "2" # 125kOhm
211 register "micbias_voltage" = "6" # 2.754
212 register "sar_threshold_num" = "4"
213 register "sar_threshold[0]" = "0x08"
214 register "sar_threshold[1]" = "0x12"
215 register "sar_threshold[2]" = "0x26"
216 register "sar_threshold[3]" = "0x73"
217 register "sar_hysteresis" = "0"
218 register "sar_voltage" = "6"
219 register "sar_compare_time" = "1" # 1us
220 register "sar_sampling_time" = "1" # 4us
221 register "short_key_debounce" = "3" # 30ms
222 register "jack_insert_debounce" = "7" # 512ms
223 register "jack_eject_debounce" = "0"
224 device i2c 1a on end
225 end
226 chip drivers/i2c/generic
227 register "hid" = ""INT343B""
228 register "desc" = ""SSM4567 Left Speaker Amp""
229 register "uid" = "0"
230 register "device_present_gpio" = "GPP_E3"
231 device i2c 34 on end
232 end
233 chip drivers/i2c/generic
234 register "hid" = ""INT343B""
235 register "desc" = ""SSM4567 Right Speaker Amp""
236 register "uid" = "1"
237 register "device_present_gpio" = "GPP_E3"
238 device i2c 35 on end
239 end
240 end # I2C #4
241 device pci 1c.0 on
Furquan Shaikha266d1e2020-10-04 12:52:54 -0700242 chip drivers/wifi/generic
Duncan Laurie9482cf62016-06-22 11:31:51 -0700243 register "wake" = "GPE0_DW0_16"
244 device pci 00.0 on end
245 end
246 end # PCI Express Port 1
Lee Leahyc4210412015-06-29 11:37:56 -0700247 device pci 1c.1 off end # PCI Express Port 2
248 device pci 1c.2 off end # PCI Express Port 3
249 device pci 1c.3 off end # PCI Express Port 4
Pratik Prajapatif1acb9b2015-08-13 15:21:37 -0700250 device pci 1c.4 on end # PCI Express Port 5
Lee Leahyc4210412015-06-29 11:37:56 -0700251 device pci 1c.5 off end # PCI Express Port 6
252 device pci 1c.6 off end # PCI Express Port 7
253 device pci 1c.7 off end # PCI Express Port 8
Pratik Prajapatif1acb9b2015-08-13 15:21:37 -0700254 device pci 1d.0 off end # PCI Express Port 9
Lee Leahyc4210412015-06-29 11:37:56 -0700255 device pci 1d.1 off end # PCI Express Port 10
256 device pci 1d.2 off end # PCI Express Port 11
257 device pci 1d.3 off end # PCI Express Port 12
258 device pci 1e.0 on end # UART #0
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700259 device pci 1e.1 off end # UART #1
260 device pci 1e.2 off end # GSPI #0
261 device pci 1e.3 off end # GSPI #1
Lee Leahyc4210412015-06-29 11:37:56 -0700262 device pci 1e.4 on end # eMMC
263 device pci 1e.5 off end # SDIO
264 device pci 1e.6 on end # SDCard
265 device pci 1f.0 on
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700266 chip drivers/pc80/tpm
267 device pnp 0c31.0 on end
268 end
Lee Leahyc4210412015-06-29 11:37:56 -0700269 chip ec/google/chromeec
270 device pnp 0c09.0 on end
271 end
272 end # LPC Interface
Archana Patni30f53cd2015-11-11 01:30:41 +0530273 device pci 1f.1 on end # P2SB
Naveen Krishna Chatradhi133dcd32015-07-10 16:00:51 +0530274 device pci 1f.2 on end # Power Management Controller
Duncan Laurie9482cf62016-06-22 11:31:51 -0700275 device pci 1f.3 on
276 chip drivers/generic/max98357a
Aamir Bohraa1c82c52020-03-16 18:57:48 +0530277 register "hid" = ""MX98357A""
Furquan Shaikh028200f2016-10-04 10:53:32 -0700278 register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E3)"
Duncan Laurie9482cf62016-06-22 11:31:51 -0700279 register "device_present_gpio" = "GPP_E3"
280 register "device_present_gpio_invert" = "1"
281 device generic 0 on end
282 end
283 end # Intel HDA
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700284 device pci 1f.4 on end # SMBus
285 device pci 1f.5 on end # PCH SPI
286 device pci 1f.6 off end # GbE
Lee Leahyc4210412015-06-29 11:37:56 -0700287 end
288end