blob: a20203299bab9e61efaaac7fbd743e865780ed21 [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
10 # GPE configuration
11 # Note that GPE events called out in ASL code rely on this
12 # route. i.e. If this route changes then the affected GPE
13 # offset bits also need to be changed.
14 register "gpe0_dw0" = "GPP_B"
15 register "gpe0_dw1" = "GPP_D"
16 register "gpe0_dw2" = "GPP_E"
17
18 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
19 register "gen1_dec" = "0x00fc0801"
20 register "gen2_dec" = "0x000c0201"
21 # EC memory map range is 0x900-0x9ff
22 register "gen3_dec" = "0x00fc0901"
23
Shelley Chen243dc392017-03-15 15:25:48 -070024 # FSP Configuration
25 register "ProbelessTrace" = "0"
Shelley Chenc5168832017-03-21 15:04:04 -070026 register "EnableLan" = "1"
27 register "EnableSata" = "1"
28 register "SataSalpSupport" = "1"
29 register "SataMode" = "1"
30 register "SataPortsEnable[0]" = "1"
Shelley Chen243dc392017-03-15 15:25:48 -070031 register "EnableAzalia" = "1"
32 register "DspEnable" = "1"
33 register "IoBufferOwnership" = "3"
34 register "EnableTraceHub" = "0"
35 register "XdciEnable" = "0"
36 register "SsicPortEnable" = "0"
37 register "SmbusEnable" = "1"
38 register "Cio2Enable" = "0"
Shelley Chenc5168832017-03-21 15:04:04 -070039 register "ScsEmmcEnabled" = "0"
40 register "ScsEmmcHs400Enabled" = "0"
Shelley Chen243dc392017-03-15 15:25:48 -070041 register "ScsSdCardEnabled" = "2"
42 register "IshEnable" = "0"
43 register "PttSwitch" = "0"
44 register "InternalGfx" = "1"
45 register "SkipExtGfxScan" = "1"
46 register "Device4Enable" = "1"
47 register "HeciEnabled" = "0"
48 register "FspSkipMpInit" = "1"
49 register "SaGv" = "3"
50 register "SerialIrqConfigSirqEnable" = "1"
51 register "PmConfigSlpS3MinAssert" = "2" # 50ms
52 register "PmConfigSlpS4MinAssert" = "1" # 1s
53 register "PmConfigSlpSusMinAssert" = "1" # 500ms
54 register "PmConfigSlpAMinAssert" = "3" # 2s
55 register "PmTimerDisabled" = "1"
56 register "SendVrMbxCmd" = "1" # IMVP8 workaround
57
58 register "pirqa_routing" = "PCH_IRQ11"
59 register "pirqb_routing" = "PCH_IRQ10"
60 register "pirqc_routing" = "PCH_IRQ11"
61 register "pirqd_routing" = "PCH_IRQ11"
62 register "pirqe_routing" = "PCH_IRQ11"
63 register "pirqf_routing" = "PCH_IRQ11"
64 register "pirqg_routing" = "PCH_IRQ11"
65 register "pirqh_routing" = "PCH_IRQ11"
66
67 # VR Settings Configuration for 4 Domains
68 #+----------------+-------+-------+-------+-------+
69 #| Domain/Setting | SA | IA | GTUS | GTS |
70 #+----------------+-------+-------+-------+-------+
71 #| Psi1Threshold | 20A | 20A | 20A | 20A |
72 #| Psi2Threshold | 4A | 5A | 5A | 5A |
73 #| Psi3Threshold | 1A | 1A | 1A | 1A |
74 #| Psi3Enable | 1 | 1 | 1 | 1 |
75 #| Psi4Enable | 1 | 1 | 1 | 1 |
76 #| ImonSlope | 0 | 0 | 0 | 0 |
77 #| ImonOffset | 0 | 0 | 0 | 0 |
78 #| IccMax | 7A | 34A | 35A | 35A |
79 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
80 #+----------------+-------+-------+-------+-------+
81 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
82 .vr_config_enable = 1,
83 .psi1threshold = VR_CFG_AMP(20),
84 .psi2threshold = VR_CFG_AMP(4),
85 .psi3threshold = VR_CFG_AMP(1),
86 .psi3enable = 1,
87 .psi4enable = 1,
88 .imon_slope = 0x0,
89 .imon_offset = 0x0,
90 .icc_max = VR_CFG_AMP(7),
91 .voltage_limit = 1520,
92 }"
93
94 register "domain_vr_config[VR_IA_CORE]" = "{
95 .vr_config_enable = 1,
96 .psi1threshold = VR_CFG_AMP(20),
97 .psi2threshold = VR_CFG_AMP(5),
98 .psi3threshold = VR_CFG_AMP(1),
99 .psi3enable = 1,
100 .psi4enable = 1,
101 .imon_slope = 0x0,
102 .imon_offset = 0x0,
103 .icc_max = VR_CFG_AMP(34),
104 .voltage_limit = 1520,
105 }"
106
107 register "domain_vr_config[VR_GT_UNSLICED]" = "{
108 .vr_config_enable = 1,
109 .psi1threshold = VR_CFG_AMP(20),
110 .psi2threshold = VR_CFG_AMP(5),
111 .psi3threshold = VR_CFG_AMP(1),
112 .psi3enable = 1,
113 .psi4enable = 1,
114 .imon_slope = 0x0,
115 .imon_offset = 0x0,
116 .icc_max = VR_CFG_AMP(35),
117 .voltage_limit = 1520,
118 }"
119
120 register "domain_vr_config[VR_GT_SLICED]" = "{
121 .vr_config_enable = 1,
122 .psi1threshold = VR_CFG_AMP(20),
123 .psi2threshold = VR_CFG_AMP(5),
124 .psi3threshold = VR_CFG_AMP(1),
125 .psi3enable = 1,
126 .psi4enable = 1,
127 .imon_slope = 0x0,
128 .imon_offset = 0x0,
129 .icc_max = VR_CFG_AMP(35),
130 .voltage_limit = 1520,
131 }"
132
Naresh G Solanki561f7fc2017-04-20 16:45:01 +0530133 # Enable Root port 3(x1) for LAN.
134 register "PcieRpEnable[2]" = "1"
Shelley Chen243dc392017-03-15 15:25:48 -0700135 # Enable CLKREQ#
Naresh G Solanki561f7fc2017-04-20 16:45:01 +0530136 register "PcieRpClkReqSupport[2]" = "1"
137 # RP 3 uses SRCCLKREQ0#
138 register "PcieRpClkReqNumber[2]" = "0"
139
140 # Enable Root port 4(x1) for WLAN.
141 register "PcieRpEnable[3]" = "1"
142 # Enable CLKREQ#
143 register "PcieRpClkReqSupport[3]" = "1"
144 # RP 4 uses SRCCLKREQ5#
145 register "PcieRpClkReqNumber[3]" = "5"
146
147 # Enable Root port 5(x4) for NVMe.
148 register "PcieRpEnable[4]" = "1"
149 # Enable CLKREQ#
150 register "PcieRpClkReqSupport[4]" = "1"
151 # RP 5 uses SRCCLKREQ1#
152 register "PcieRpClkReqNumber[4]" = "1"
153
154 # Enable Root port 9 for BtoB.
155 register "PcieRpEnable[8]" = "1"
156 # Enable CLKREQ#
157 register "PcieRpClkReqSupport[8]" = "1"
158 # RP 9 uses SRCCLKREQ2#
159 register "PcieRpClkReqNumber[8]" = "2"
Shelley Chen243dc392017-03-15 15:25:48 -0700160
Shelley Chenc5168832017-03-21 15:04:04 -0700161 register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C
162 register "usb2_ports[1]" = "USB2_PORT_MID(OC3)" # Type-A Rear
163 register "usb2_ports[2]" = "USB2_PORT_MID(OC2)" # Type-A Front
164 register "usb2_ports[3]" = "USB2_PORT_MID(OC2)" # Type-A Front
165 register "usb2_ports[4]" = "USB2_PORT_MID(OC1)" # Type-A Rear
166 register "usb2_ports[5]" = "USB2_PORT_MID(OC1)" # Type-A Rear
167 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
168 register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # Type-A 2.0 / Debug
169 register "usb2_ports[8]" = "USB2_PORT_EMPTY" # H1 (disconnected)
Shelley Chen243dc392017-03-15 15:25:48 -0700170
Shelley Chenc5168832017-03-21 15:04:04 -0700171 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C
172 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC3)" # Type-A Rear
173 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC2)" # Type-A Front
174 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC2)" # Type-A Front
Naresh G Solanki561f7fc2017-04-20 16:45:01 +0530175 register "usb3_ports[4]" = "USB3_PORT_DEFAULT(OC1)" # Type-A Rear
176 register "usb3_ports[5]" = "USB3_PORT_DEFAULT(OC1)" # Type-A Rear
Shelley Chen243dc392017-03-15 15:25:48 -0700177
Shelley Chenc5168832017-03-21 15:04:04 -0700178 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3" # HDMI CEC
179 register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3" # TPM
180 register "i2c_voltage[2]" = "I2C_VOLTAGE_3V3" # Debug
Shelley Chen243dc392017-03-15 15:25:48 -0700181 register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8" # Audio
182
183 # Must leave UART0 enabled or SD/eMMC will not work as PCI
184 register "SerialIoDevMode" = "{
185 [PchSerialIoIndexI2C0] = PchSerialIoPci,
186 [PchSerialIoIndexI2C1] = PchSerialIoPci,
187 [PchSerialIoIndexI2C2] = PchSerialIoPci,
Shelley Chenc5168832017-03-21 15:04:04 -0700188 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
189 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
Shelley Chen243dc392017-03-15 15:25:48 -0700190 [PchSerialIoIndexI2C5] = PchSerialIoPci,
191 [PchSerialIoIndexSpi0] = PchSerialIoPci,
Shelley Chenc5168832017-03-21 15:04:04 -0700192 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
Shelley Chen243dc392017-03-15 15:25:48 -0700193 [PchSerialIoIndexUart0] = PchSerialIoPci,
194 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
195 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
196 }"
197
198 register "speed_shift_enable" = "1"
199 register "tdp_pl2_override" = "7"
200 register "tcc_offset" = "10" # TCC of 90C
201
202 # Use default SD card detect GPIO configuration
Shelley Chenc5168832017-03-21 15:04:04 -0700203 register "sdcard_cd_gpio_default" = "GPP_A7"
Shelley Chen243dc392017-03-15 15:25:48 -0700204
205 device cpu_cluster 0 on
206 device lapic 0 on end
207 end
208 device domain 0 on
209 device pci 00.0 on end # Host Bridge
210 device pci 02.0 on end # Integrated Graphics Device
211 device pci 14.0 on end # USB xHCI
212 device pci 14.1 off end # USB xDCI (OTG)
213 device pci 14.2 on end # Thermal Subsystem
214 device pci 15.0 on
Shelley Chen243dc392017-03-15 15:25:48 -0700215 end # I2C #0
216 device pci 15.1 on end # I2C #1
217 device pci 15.2 on end # I2C #2
Shelley Chenc5168832017-03-21 15:04:04 -0700218 device pci 15.3 off
Shelley Chen243dc392017-03-15 15:25:48 -0700219 end # I2C #3
220 device pci 16.0 on end # Management Engine Interface 1
221 device pci 16.1 off end # Management Engine Interface 2
222 device pci 16.2 off end # Management Engine IDE-R
223 device pci 16.3 off end # Management Engine KT Redirection
224 device pci 16.4 off end # Management Engine Interface 3
Shelley Chenc5168832017-03-21 15:04:04 -0700225 device pci 17.0 on end # SATA
Shelley Chen243dc392017-03-15 15:25:48 -0700226 device pci 19.0 on end # UART #2
227 device pci 19.1 on
Shelley Chen243dc392017-03-15 15:25:48 -0700228 end # I2C #5
Shelley Chenc5168832017-03-21 15:04:04 -0700229 device pci 19.2 off end # I2C #4
Naresh G Solanki561f7fc2017-04-20 16:45:01 +0530230 device pci 1c.0 off end # PCI Express Port 1
231 device pci 1c.1 off end # PCI Express Port 2
232 device pci 1c.2 on end # PCI Express Port 3 for LAN
233 device pci 1c.3 on
Shelley Chen243dc392017-03-15 15:25:48 -0700234 chip drivers/intel/wifi
235 register "wake" = "GPE0_PCI_EXP"
236 device pci 00.0 on end
237 end
Naresh G Solanki561f7fc2017-04-20 16:45:01 +0530238 end # PCI Express Port 4 for WLAN
239 device pci 1c.4 on end # PCI Express Port 5 for NVMe
Shelley Chen243dc392017-03-15 15:25:48 -0700240 device pci 1c.5 off end # PCI Express Port 6
241 device pci 1c.6 off end # PCI Express Port 7
242 device pci 1c.7 off end # PCI Express Port 8
Naresh G Solanki561f7fc2017-04-20 16:45:01 +0530243 device pci 1d.0 on end # PCI Express Port 9 for BtoB
Shelley Chen243dc392017-03-15 15:25:48 -0700244 device pci 1d.1 off end # PCI Express Port 10
245 device pci 1d.2 off end # PCI Express Port 11
246 device pci 1d.3 off end # PCI Express Port 12
247 device pci 1e.0 on end # UART #0
248 device pci 1e.1 off end # UART #1
249 device pci 1e.2 on end # GSPI #0
Shelley Chenc5168832017-03-21 15:04:04 -0700250 device pci 1e.3 off end # GSPI #1
251 device pci 1e.4 off end # eMMC
Shelley Chen243dc392017-03-15 15:25:48 -0700252 device pci 1e.5 off end # SDIO
253 device pci 1e.6 on end # SDCard
254 device pci 1f.0 on
255 chip ec/google/chromeec
256 device pnp 0c09.0 on end
257 end
258 end # LPC Interface
259 device pci 1f.1 on end # P2SB
260 device pci 1f.2 on end # Power Management Controller
261 device pci 1f.3 on end # Intel HDA
262 device pci 1f.4 on end # SMBus
263 device pci 1f.5 on end # PCH SPI
264 device pci 1f.6 off end # GbE
265 end
266end