blob: 3989ec4e0dc7913eb1dae563c682dbcf19077358 [file] [log] [blame]
Shelley Chen243dc392017-03-15 15:25:48 -07001chip soc/intel/skylake
2
3 # Deep Sx states
Duncan Laurie1fe32d62017-04-10 21:02:13 -07004 register "deep_s3_enable_ac" = "0"
5 register "deep_s3_enable_dc" = "0"
6 register "deep_s5_enable_ac" = "1"
7 register "deep_s5_enable_dc" = "1"
Shelley Chen243dc392017-03-15 15:25:48 -07008 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN | DSX_EN_WAKE_PIN"
9
Shelley Chenda6e4f62017-06-29 16:13:33 -070010 # Mapping of USB port # to device
11 #+----------------+-------+-----------------------------------+
12 #| Device | Port# | Rev |
13 #+----------------+-------+-----------------------------------+
14 #| USB C | 1 | 2/3 |
15 #| USB A Rear | 2 | 2/3 |
16 #| USB A Front | 3 | 2/3 |
17 #| USB A Front | 4 | 2/3 |
18 #| USB A Rear | 5 | 2 on base celeron, 2/3 all others |
19 #| USB A Rear | 6 | 2 on base celeron, 2/3 all others |
20 #| Bluetooth | 7 | |
21 #| Daughter Board | 8 | |
22 #+----------------+-------+-----------------------------------+
23
24 # Bitmap for Wake Enable on USB attach/detach
25 register "usb2_wake_enable_bitmap" = "USB_PORT_WAKE_ENABLE(2) | \
26 USB_PORT_WAKE_ENABLE(3) | \
27 USB_PORT_WAKE_ENABLE(4) | \
28 USB_PORT_WAKE_ENABLE(5) | \
29 USB_PORT_WAKE_ENABLE(6)"
30 register "usb3_wake_enable_bitmap" = "USB_PORT_WAKE_ENABLE(2) | \
31 USB_PORT_WAKE_ENABLE(3) | \
32 USB_PORT_WAKE_ENABLE(4) | \
33 USB_PORT_WAKE_ENABLE(5) | \
34 USB_PORT_WAKE_ENABLE(6)"
35
Shelley Chen243dc392017-03-15 15:25:48 -070036 # GPE configuration
37 # Note that GPE events called out in ASL code rely on this
38 # route. i.e. If this route changes then the affected GPE
39 # offset bits also need to be changed.
40 register "gpe0_dw0" = "GPP_B"
41 register "gpe0_dw1" = "GPP_D"
42 register "gpe0_dw2" = "GPP_E"
43
44 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
45 register "gen1_dec" = "0x00fc0801"
46 register "gen2_dec" = "0x000c0201"
47 # EC memory map range is 0x900-0x9ff
48 register "gen3_dec" = "0x00fc0901"
49
Tsai, Gaggeryb2a3ac42017-08-22 10:55:13 +080050 # Enable DPTF
51 register "dptf_enable" = "1"
52
Shelley Chen243dc392017-03-15 15:25:48 -070053 # FSP Configuration
54 register "ProbelessTrace" = "0"
Shelley Chenc5168832017-03-21 15:04:04 -070055 register "EnableLan" = "1"
56 register "EnableSata" = "1"
57 register "SataSalpSupport" = "1"
58 register "SataMode" = "1"
59 register "SataPortsEnable[0]" = "1"
Shelley Chene8365aa2017-04-24 13:11:43 -070060 register "SataPortsEnable[1]" = "1"
Shelley Chen243dc392017-03-15 15:25:48 -070061 register "EnableAzalia" = "1"
62 register "DspEnable" = "1"
63 register "IoBufferOwnership" = "3"
64 register "EnableTraceHub" = "0"
65 register "XdciEnable" = "0"
66 register "SsicPortEnable" = "0"
67 register "SmbusEnable" = "1"
68 register "Cio2Enable" = "0"
Shelley Chenc5168832017-03-21 15:04:04 -070069 register "ScsEmmcEnabled" = "0"
70 register "ScsEmmcHs400Enabled" = "0"
Shelley Chen243dc392017-03-15 15:25:48 -070071 register "ScsSdCardEnabled" = "2"
72 register "IshEnable" = "0"
73 register "PttSwitch" = "0"
74 register "InternalGfx" = "1"
75 register "SkipExtGfxScan" = "1"
76 register "Device4Enable" = "1"
77 register "HeciEnabled" = "0"
78 register "FspSkipMpInit" = "1"
79 register "SaGv" = "3"
80 register "SerialIrqConfigSirqEnable" = "1"
81 register "PmConfigSlpS3MinAssert" = "2" # 50ms
82 register "PmConfigSlpS4MinAssert" = "1" # 1s
83 register "PmConfigSlpSusMinAssert" = "1" # 500ms
84 register "PmConfigSlpAMinAssert" = "3" # 2s
85 register "PmTimerDisabled" = "1"
86 register "SendVrMbxCmd" = "1" # IMVP8 workaround
87
88 register "pirqa_routing" = "PCH_IRQ11"
89 register "pirqb_routing" = "PCH_IRQ10"
90 register "pirqc_routing" = "PCH_IRQ11"
91 register "pirqd_routing" = "PCH_IRQ11"
92 register "pirqe_routing" = "PCH_IRQ11"
93 register "pirqf_routing" = "PCH_IRQ11"
94 register "pirqg_routing" = "PCH_IRQ11"
95 register "pirqh_routing" = "PCH_IRQ11"
96
97 # VR Settings Configuration for 4 Domains
98 #+----------------+-------+-------+-------+-------+
99 #| Domain/Setting | SA | IA | GTUS | GTS |
100 #+----------------+-------+-------+-------+-------+
101 #| Psi1Threshold | 20A | 20A | 20A | 20A |
102 #| Psi2Threshold | 4A | 5A | 5A | 5A |
103 #| Psi3Threshold | 1A | 1A | 1A | 1A |
104 #| Psi3Enable | 1 | 1 | 1 | 1 |
105 #| Psi4Enable | 1 | 1 | 1 | 1 |
106 #| ImonSlope | 0 | 0 | 0 | 0 |
107 #| ImonOffset | 0 | 0 | 0 | 0 |
108 #| IccMax | 7A | 34A | 35A | 35A |
109 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
110 #+----------------+-------+-------+-------+-------+
111 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
112 .vr_config_enable = 1,
113 .psi1threshold = VR_CFG_AMP(20),
114 .psi2threshold = VR_CFG_AMP(4),
115 .psi3threshold = VR_CFG_AMP(1),
116 .psi3enable = 1,
117 .psi4enable = 1,
118 .imon_slope = 0x0,
119 .imon_offset = 0x0,
120 .icc_max = VR_CFG_AMP(7),
121 .voltage_limit = 1520,
122 }"
123
124 register "domain_vr_config[VR_IA_CORE]" = "{
125 .vr_config_enable = 1,
126 .psi1threshold = VR_CFG_AMP(20),
127 .psi2threshold = VR_CFG_AMP(5),
128 .psi3threshold = VR_CFG_AMP(1),
129 .psi3enable = 1,
130 .psi4enable = 1,
131 .imon_slope = 0x0,
132 .imon_offset = 0x0,
133 .icc_max = VR_CFG_AMP(34),
134 .voltage_limit = 1520,
135 }"
136
137 register "domain_vr_config[VR_GT_UNSLICED]" = "{
138 .vr_config_enable = 1,
139 .psi1threshold = VR_CFG_AMP(20),
140 .psi2threshold = VR_CFG_AMP(5),
141 .psi3threshold = VR_CFG_AMP(1),
142 .psi3enable = 1,
143 .psi4enable = 1,
144 .imon_slope = 0x0,
145 .imon_offset = 0x0,
146 .icc_max = VR_CFG_AMP(35),
147 .voltage_limit = 1520,
148 }"
149
150 register "domain_vr_config[VR_GT_SLICED]" = "{
151 .vr_config_enable = 1,
152 .psi1threshold = VR_CFG_AMP(20),
153 .psi2threshold = VR_CFG_AMP(5),
154 .psi3threshold = VR_CFG_AMP(1),
155 .psi3enable = 1,
156 .psi4enable = 1,
157 .imon_slope = 0x0,
158 .imon_offset = 0x0,
159 .icc_max = VR_CFG_AMP(35),
160 .voltage_limit = 1520,
161 }"
162
Naresh G Solanki561f7fc2017-04-20 16:45:01 +0530163 # Enable Root port 3(x1) for LAN.
164 register "PcieRpEnable[2]" = "1"
Shelley Chen243dc392017-03-15 15:25:48 -0700165 # Enable CLKREQ#
Naresh G Solanki561f7fc2017-04-20 16:45:01 +0530166 register "PcieRpClkReqSupport[2]" = "1"
167 # RP 3 uses SRCCLKREQ0#
168 register "PcieRpClkReqNumber[2]" = "0"
169
170 # Enable Root port 4(x1) for WLAN.
171 register "PcieRpEnable[3]" = "1"
172 # Enable CLKREQ#
173 register "PcieRpClkReqSupport[3]" = "1"
174 # RP 4 uses SRCCLKREQ5#
175 register "PcieRpClkReqNumber[3]" = "5"
176
177 # Enable Root port 5(x4) for NVMe.
178 register "PcieRpEnable[4]" = "1"
179 # Enable CLKREQ#
180 register "PcieRpClkReqSupport[4]" = "1"
181 # RP 5 uses SRCCLKREQ1#
182 register "PcieRpClkReqNumber[4]" = "1"
183
184 # Enable Root port 9 for BtoB.
185 register "PcieRpEnable[8]" = "1"
186 # Enable CLKREQ#
187 register "PcieRpClkReqSupport[8]" = "1"
188 # RP 9 uses SRCCLKREQ2#
189 register "PcieRpClkReqNumber[8]" = "2"
Shelley Chen243dc392017-03-15 15:25:48 -0700190
Shelley Chenc5168832017-03-21 15:04:04 -0700191 register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C
192 register "usb2_ports[1]" = "USB2_PORT_MID(OC3)" # Type-A Rear
193 register "usb2_ports[2]" = "USB2_PORT_MID(OC2)" # Type-A Front
194 register "usb2_ports[3]" = "USB2_PORT_MID(OC2)" # Type-A Front
195 register "usb2_ports[4]" = "USB2_PORT_MID(OC1)" # Type-A Rear
196 register "usb2_ports[5]" = "USB2_PORT_MID(OC1)" # Type-A Rear
197 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
198 register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # Type-A 2.0 / Debug
199 register "usb2_ports[8]" = "USB2_PORT_EMPTY" # H1 (disconnected)
Shelley Chen243dc392017-03-15 15:25:48 -0700200
Shelley Chenc5168832017-03-21 15:04:04 -0700201 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C
202 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC3)" # Type-A Rear
203 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC2)" # Type-A Front
204 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC2)" # Type-A Front
Naresh G Solanki561f7fc2017-04-20 16:45:01 +0530205 register "usb3_ports[4]" = "USB3_PORT_DEFAULT(OC1)" # Type-A Rear
206 register "usb3_ports[5]" = "USB3_PORT_DEFAULT(OC1)" # Type-A Rear
Shelley Chen243dc392017-03-15 15:25:48 -0700207
Shelley Chenc5168832017-03-21 15:04:04 -0700208 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3" # HDMI CEC
209 register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3" # TPM
210 register "i2c_voltage[2]" = "I2C_VOLTAGE_3V3" # Debug
Shelley Chen243dc392017-03-15 15:25:48 -0700211 register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8" # Audio
212
Shelley Chen5aa64b92017-06-09 13:05:29 -0700213 # Use GSPI0 for cr50 TPM. Early init is required to set up a BAR for TPM
214 # communication before memory is up.
215 register "gspi[0]" = "{
216 .speed_mhz = 1,
217 .early_init = 1,
218 }"
219
Shelley Chendb287aa2017-06-09 12:56:08 -0700220 # Configure I2C1 for cr50 TPM. Early init is required to set up a BAR
221 # for TPM communication before memory is up.
222 register "i2c[1]" = "{
223 .early_init = 1,
224 }"
225
Shelley Chen243dc392017-03-15 15:25:48 -0700226 # Must leave UART0 enabled or SD/eMMC will not work as PCI
227 register "SerialIoDevMode" = "{
228 [PchSerialIoIndexI2C0] = PchSerialIoPci,
229 [PchSerialIoIndexI2C1] = PchSerialIoPci,
230 [PchSerialIoIndexI2C2] = PchSerialIoPci,
Shelley Chenc5168832017-03-21 15:04:04 -0700231 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
232 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
Shelley Chen243dc392017-03-15 15:25:48 -0700233 [PchSerialIoIndexI2C5] = PchSerialIoPci,
234 [PchSerialIoIndexSpi0] = PchSerialIoPci,
Shelley Chenc5168832017-03-21 15:04:04 -0700235 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
Shelley Chen243dc392017-03-15 15:25:48 -0700236 [PchSerialIoIndexUart0] = PchSerialIoPci,
237 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
238 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
239 }"
240
241 register "speed_shift_enable" = "1"
Shelley Chen8c81c6a2017-06-29 14:58:59 -0700242 register "tdp_psyspl2" = "90"
Shelley Chen243dc392017-03-15 15:25:48 -0700243 register "tcc_offset" = "10" # TCC of 90C
244
245 # Use default SD card detect GPIO configuration
Shelley Chenc5168832017-03-21 15:04:04 -0700246 register "sdcard_cd_gpio_default" = "GPP_A7"
Shelley Chen243dc392017-03-15 15:25:48 -0700247
Subrata Banikc204aaa2017-08-17 15:49:58 +0530248 # Lock Down
249 register "chipset_lockdown" = "CHIPSET_LOCKDOWN_COREBOOT"
250
Shelley Chen243dc392017-03-15 15:25:48 -0700251 device cpu_cluster 0 on
252 device lapic 0 on end
253 end
254 device domain 0 on
255 device pci 00.0 on end # Host Bridge
256 device pci 02.0 on end # Integrated Graphics Device
257 device pci 14.0 on end # USB xHCI
258 device pci 14.1 off end # USB xDCI (OTG)
259 device pci 14.2 on end # Thermal Subsystem
260 device pci 15.0 on
Shelley Chen243dc392017-03-15 15:25:48 -0700261 end # I2C #0
Shelley Chendb287aa2017-06-09 12:56:08 -0700262 device pci 15.1 on
263 chip drivers/i2c/tpm
264 register "hid" = ""GOOG0005""
265 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)"
266 device i2c 50 on end
267 end
268 end # I2C #1
Shelley Chen243dc392017-03-15 15:25:48 -0700269 device pci 15.2 on end # I2C #2
Shelley Chenc5168832017-03-21 15:04:04 -0700270 device pci 15.3 off
Shelley Chen243dc392017-03-15 15:25:48 -0700271 end # I2C #3
272 device pci 16.0 on end # Management Engine Interface 1
273 device pci 16.1 off end # Management Engine Interface 2
274 device pci 16.2 off end # Management Engine IDE-R
275 device pci 16.3 off end # Management Engine KT Redirection
276 device pci 16.4 off end # Management Engine Interface 3
Shelley Chenc5168832017-03-21 15:04:04 -0700277 device pci 17.0 on end # SATA
Shelley Chen243dc392017-03-15 15:25:48 -0700278 device pci 19.0 on end # UART #2
279 device pci 19.1 on
Kevin Cheng2a6f4ae2017-06-06 10:37:59 +0800280 chip drivers/i2c/generic
281 register "hid" = ""10EC5663""
282 register "name" = ""RT53""
283 register "desc" = ""Realtek RT5663""
284 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D9)"
285 device i2c 13 on end
286 end
Shelley Chen243dc392017-03-15 15:25:48 -0700287 end # I2C #5
Shelley Chenc5168832017-03-21 15:04:04 -0700288 device pci 19.2 off end # I2C #4
Shelley Chenf49785e2017-05-02 16:52:27 -0700289 device pci 1c.0 on end # PCI Express Port 1
Naresh G Solanki561f7fc2017-04-20 16:45:01 +0530290 device pci 1c.1 off end # PCI Express Port 2
291 device pci 1c.2 on end # PCI Express Port 3 for LAN
292 device pci 1c.3 on
Shelley Chen243dc392017-03-15 15:25:48 -0700293 chip drivers/intel/wifi
294 register "wake" = "GPE0_PCI_EXP"
295 device pci 00.0 on end
296 end
Naresh G Solanki561f7fc2017-04-20 16:45:01 +0530297 end # PCI Express Port 4 for WLAN
298 device pci 1c.4 on end # PCI Express Port 5 for NVMe
Shelley Chen243dc392017-03-15 15:25:48 -0700299 device pci 1c.5 off end # PCI Express Port 6
300 device pci 1c.6 off end # PCI Express Port 7
301 device pci 1c.7 off end # PCI Express Port 8
Naresh G Solanki561f7fc2017-04-20 16:45:01 +0530302 device pci 1d.0 on end # PCI Express Port 9 for BtoB
Shelley Chen243dc392017-03-15 15:25:48 -0700303 device pci 1d.1 off end # PCI Express Port 10
304 device pci 1d.2 off end # PCI Express Port 11
305 device pci 1d.3 off end # PCI Express Port 12
306 device pci 1e.0 on end # UART #0
307 device pci 1e.1 off end # UART #1
Shelley Chen5aa64b92017-06-09 13:05:29 -0700308 device pci 1e.2 on
309 chip drivers/spi/acpi
310 register "hid" = "ACPI_DT_NAMESPACE_HID"
311 register "compat_string" = ""google,cr50""
312 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)"
313 device spi 0 on end
314 end
315 end # GSPI #0
Shelley Chenc5168832017-03-21 15:04:04 -0700316 device pci 1e.3 off end # GSPI #1
317 device pci 1e.4 off end # eMMC
Shelley Chen243dc392017-03-15 15:25:48 -0700318 device pci 1e.5 off end # SDIO
319 device pci 1e.6 on end # SDCard
320 device pci 1f.0 on
321 chip ec/google/chromeec
322 device pnp 0c09.0 on end
323 end
324 end # LPC Interface
325 device pci 1f.1 on end # P2SB
326 device pci 1f.2 on end # Power Management Controller
327 device pci 1f.3 on end # Intel HDA
328 device pci 1f.4 on end # SMBus
329 device pci 1f.5 on end # PCH SPI
330 device pci 1f.6 off end # GbE
331 end
332end