blob: e18b76701e002b4a59f96c9a3446a89705a77587 [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 Chene8365aa2017-04-24 13:11:43 -070031 register "SataPortsEnable[1]" = "1"
Shelley Chen243dc392017-03-15 15:25:48 -070032 register "EnableAzalia" = "1"
33 register "DspEnable" = "1"
34 register "IoBufferOwnership" = "3"
35 register "EnableTraceHub" = "0"
36 register "XdciEnable" = "0"
37 register "SsicPortEnable" = "0"
38 register "SmbusEnable" = "1"
39 register "Cio2Enable" = "0"
Shelley Chenc5168832017-03-21 15:04:04 -070040 register "ScsEmmcEnabled" = "0"
41 register "ScsEmmcHs400Enabled" = "0"
Shelley Chen243dc392017-03-15 15:25:48 -070042 register "ScsSdCardEnabled" = "2"
43 register "IshEnable" = "0"
44 register "PttSwitch" = "0"
45 register "InternalGfx" = "1"
46 register "SkipExtGfxScan" = "1"
47 register "Device4Enable" = "1"
48 register "HeciEnabled" = "0"
49 register "FspSkipMpInit" = "1"
50 register "SaGv" = "3"
51 register "SerialIrqConfigSirqEnable" = "1"
52 register "PmConfigSlpS3MinAssert" = "2" # 50ms
53 register "PmConfigSlpS4MinAssert" = "1" # 1s
54 register "PmConfigSlpSusMinAssert" = "1" # 500ms
55 register "PmConfigSlpAMinAssert" = "3" # 2s
56 register "PmTimerDisabled" = "1"
57 register "SendVrMbxCmd" = "1" # IMVP8 workaround
58
59 register "pirqa_routing" = "PCH_IRQ11"
60 register "pirqb_routing" = "PCH_IRQ10"
61 register "pirqc_routing" = "PCH_IRQ11"
62 register "pirqd_routing" = "PCH_IRQ11"
63 register "pirqe_routing" = "PCH_IRQ11"
64 register "pirqf_routing" = "PCH_IRQ11"
65 register "pirqg_routing" = "PCH_IRQ11"
66 register "pirqh_routing" = "PCH_IRQ11"
67
68 # VR Settings Configuration for 4 Domains
69 #+----------------+-------+-------+-------+-------+
70 #| Domain/Setting | SA | IA | GTUS | GTS |
71 #+----------------+-------+-------+-------+-------+
72 #| Psi1Threshold | 20A | 20A | 20A | 20A |
73 #| Psi2Threshold | 4A | 5A | 5A | 5A |
74 #| Psi3Threshold | 1A | 1A | 1A | 1A |
75 #| Psi3Enable | 1 | 1 | 1 | 1 |
76 #| Psi4Enable | 1 | 1 | 1 | 1 |
77 #| ImonSlope | 0 | 0 | 0 | 0 |
78 #| ImonOffset | 0 | 0 | 0 | 0 |
79 #| IccMax | 7A | 34A | 35A | 35A |
80 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
81 #+----------------+-------+-------+-------+-------+
82 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
83 .vr_config_enable = 1,
84 .psi1threshold = VR_CFG_AMP(20),
85 .psi2threshold = VR_CFG_AMP(4),
86 .psi3threshold = VR_CFG_AMP(1),
87 .psi3enable = 1,
88 .psi4enable = 1,
89 .imon_slope = 0x0,
90 .imon_offset = 0x0,
91 .icc_max = VR_CFG_AMP(7),
92 .voltage_limit = 1520,
93 }"
94
95 register "domain_vr_config[VR_IA_CORE]" = "{
96 .vr_config_enable = 1,
97 .psi1threshold = VR_CFG_AMP(20),
98 .psi2threshold = VR_CFG_AMP(5),
99 .psi3threshold = VR_CFG_AMP(1),
100 .psi3enable = 1,
101 .psi4enable = 1,
102 .imon_slope = 0x0,
103 .imon_offset = 0x0,
104 .icc_max = VR_CFG_AMP(34),
105 .voltage_limit = 1520,
106 }"
107
108 register "domain_vr_config[VR_GT_UNSLICED]" = "{
109 .vr_config_enable = 1,
110 .psi1threshold = VR_CFG_AMP(20),
111 .psi2threshold = VR_CFG_AMP(5),
112 .psi3threshold = VR_CFG_AMP(1),
113 .psi3enable = 1,
114 .psi4enable = 1,
115 .imon_slope = 0x0,
116 .imon_offset = 0x0,
117 .icc_max = VR_CFG_AMP(35),
118 .voltage_limit = 1520,
119 }"
120
121 register "domain_vr_config[VR_GT_SLICED]" = "{
122 .vr_config_enable = 1,
123 .psi1threshold = VR_CFG_AMP(20),
124 .psi2threshold = VR_CFG_AMP(5),
125 .psi3threshold = VR_CFG_AMP(1),
126 .psi3enable = 1,
127 .psi4enable = 1,
128 .imon_slope = 0x0,
129 .imon_offset = 0x0,
130 .icc_max = VR_CFG_AMP(35),
131 .voltage_limit = 1520,
132 }"
133
Naresh G Solanki561f7fc2017-04-20 16:45:01 +0530134 # Enable Root port 3(x1) for LAN.
135 register "PcieRpEnable[2]" = "1"
Shelley Chen243dc392017-03-15 15:25:48 -0700136 # Enable CLKREQ#
Naresh G Solanki561f7fc2017-04-20 16:45:01 +0530137 register "PcieRpClkReqSupport[2]" = "1"
138 # RP 3 uses SRCCLKREQ0#
139 register "PcieRpClkReqNumber[2]" = "0"
140
141 # Enable Root port 4(x1) for WLAN.
142 register "PcieRpEnable[3]" = "1"
143 # Enable CLKREQ#
144 register "PcieRpClkReqSupport[3]" = "1"
145 # RP 4 uses SRCCLKREQ5#
146 register "PcieRpClkReqNumber[3]" = "5"
147
148 # Enable Root port 5(x4) for NVMe.
149 register "PcieRpEnable[4]" = "1"
150 # Enable CLKREQ#
151 register "PcieRpClkReqSupport[4]" = "1"
152 # RP 5 uses SRCCLKREQ1#
153 register "PcieRpClkReqNumber[4]" = "1"
154
155 # Enable Root port 9 for BtoB.
156 register "PcieRpEnable[8]" = "1"
157 # Enable CLKREQ#
158 register "PcieRpClkReqSupport[8]" = "1"
159 # RP 9 uses SRCCLKREQ2#
160 register "PcieRpClkReqNumber[8]" = "2"
Shelley Chen243dc392017-03-15 15:25:48 -0700161
Shelley Chenc5168832017-03-21 15:04:04 -0700162 register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C
163 register "usb2_ports[1]" = "USB2_PORT_MID(OC3)" # Type-A Rear
164 register "usb2_ports[2]" = "USB2_PORT_MID(OC2)" # Type-A Front
165 register "usb2_ports[3]" = "USB2_PORT_MID(OC2)" # Type-A Front
166 register "usb2_ports[4]" = "USB2_PORT_MID(OC1)" # Type-A Rear
167 register "usb2_ports[5]" = "USB2_PORT_MID(OC1)" # Type-A Rear
168 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
169 register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # Type-A 2.0 / Debug
170 register "usb2_ports[8]" = "USB2_PORT_EMPTY" # H1 (disconnected)
Shelley Chen243dc392017-03-15 15:25:48 -0700171
Shelley Chenc5168832017-03-21 15:04:04 -0700172 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C
173 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC3)" # Type-A Rear
174 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC2)" # Type-A Front
175 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC2)" # Type-A Front
Naresh G Solanki561f7fc2017-04-20 16:45:01 +0530176 register "usb3_ports[4]" = "USB3_PORT_DEFAULT(OC1)" # Type-A Rear
177 register "usb3_ports[5]" = "USB3_PORT_DEFAULT(OC1)" # Type-A Rear
Shelley Chen243dc392017-03-15 15:25:48 -0700178
Shelley Chenc5168832017-03-21 15:04:04 -0700179 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3" # HDMI CEC
180 register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3" # TPM
181 register "i2c_voltage[2]" = "I2C_VOLTAGE_3V3" # Debug
Shelley Chen243dc392017-03-15 15:25:48 -0700182 register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8" # Audio
183
184 # Must leave UART0 enabled or SD/eMMC will not work as PCI
185 register "SerialIoDevMode" = "{
186 [PchSerialIoIndexI2C0] = PchSerialIoPci,
187 [PchSerialIoIndexI2C1] = PchSerialIoPci,
188 [PchSerialIoIndexI2C2] = PchSerialIoPci,
Shelley Chenc5168832017-03-21 15:04:04 -0700189 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
190 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
Shelley Chen243dc392017-03-15 15:25:48 -0700191 [PchSerialIoIndexI2C5] = PchSerialIoPci,
192 [PchSerialIoIndexSpi0] = PchSerialIoPci,
Shelley Chenc5168832017-03-21 15:04:04 -0700193 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
Shelley Chen243dc392017-03-15 15:25:48 -0700194 [PchSerialIoIndexUart0] = PchSerialIoPci,
195 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
196 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
197 }"
198
199 register "speed_shift_enable" = "1"
200 register "tdp_pl2_override" = "7"
201 register "tcc_offset" = "10" # TCC of 90C
202
203 # Use default SD card detect GPIO configuration
Shelley Chenc5168832017-03-21 15:04:04 -0700204 register "sdcard_cd_gpio_default" = "GPP_A7"
Shelley Chen243dc392017-03-15 15:25:48 -0700205
206 device cpu_cluster 0 on
207 device lapic 0 on end
208 end
209 device domain 0 on
210 device pci 00.0 on end # Host Bridge
211 device pci 02.0 on end # Integrated Graphics Device
212 device pci 14.0 on end # USB xHCI
213 device pci 14.1 off end # USB xDCI (OTG)
214 device pci 14.2 on end # Thermal Subsystem
215 device pci 15.0 on
Shelley Chen243dc392017-03-15 15:25:48 -0700216 end # I2C #0
217 device pci 15.1 on end # I2C #1
218 device pci 15.2 on end # I2C #2
Shelley Chenc5168832017-03-21 15:04:04 -0700219 device pci 15.3 off
Shelley Chen243dc392017-03-15 15:25:48 -0700220 end # I2C #3
221 device pci 16.0 on end # Management Engine Interface 1
222 device pci 16.1 off end # Management Engine Interface 2
223 device pci 16.2 off end # Management Engine IDE-R
224 device pci 16.3 off end # Management Engine KT Redirection
225 device pci 16.4 off end # Management Engine Interface 3
Shelley Chenc5168832017-03-21 15:04:04 -0700226 device pci 17.0 on end # SATA
Shelley Chen243dc392017-03-15 15:25:48 -0700227 device pci 19.0 on end # UART #2
228 device pci 19.1 on
Shelley Chen243dc392017-03-15 15:25:48 -0700229 end # I2C #5
Shelley Chenc5168832017-03-21 15:04:04 -0700230 device pci 19.2 off end # I2C #4
Naresh G Solanki561f7fc2017-04-20 16:45:01 +0530231 device pci 1c.0 off end # PCI Express Port 1
232 device pci 1c.1 off end # PCI Express Port 2
233 device pci 1c.2 on end # PCI Express Port 3 for LAN
234 device pci 1c.3 on
Shelley Chen243dc392017-03-15 15:25:48 -0700235 chip drivers/intel/wifi
236 register "wake" = "GPE0_PCI_EXP"
237 device pci 00.0 on end
238 end
Naresh G Solanki561f7fc2017-04-20 16:45:01 +0530239 end # PCI Express Port 4 for WLAN
240 device pci 1c.4 on end # PCI Express Port 5 for NVMe
Shelley Chen243dc392017-03-15 15:25:48 -0700241 device pci 1c.5 off end # PCI Express Port 6
242 device pci 1c.6 off end # PCI Express Port 7
243 device pci 1c.7 off end # PCI Express Port 8
Naresh G Solanki561f7fc2017-04-20 16:45:01 +0530244 device pci 1d.0 on end # PCI Express Port 9 for BtoB
Shelley Chen243dc392017-03-15 15:25:48 -0700245 device pci 1d.1 off end # PCI Express Port 10
246 device pci 1d.2 off end # PCI Express Port 11
247 device pci 1d.3 off end # PCI Express Port 12
248 device pci 1e.0 on end # UART #0
249 device pci 1e.1 off end # UART #1
250 device pci 1e.2 on end # GSPI #0
Shelley Chenc5168832017-03-21 15:04:04 -0700251 device pci 1e.3 off end # GSPI #1
252 device pci 1e.4 off end # eMMC
Shelley Chen243dc392017-03-15 15:25:48 -0700253 device pci 1e.5 off end # SDIO
254 device pci 1e.6 on end # SDCard
255 device pci 1f.0 on
256 chip ec/google/chromeec
257 device pnp 0c09.0 on end
258 end
259 end # LPC Interface
260 device pci 1f.1 on end # P2SB
261 device pci 1f.2 on end # Power Management Controller
262 device pci 1f.3 on end # Intel HDA
263 device pci 1f.4 on end # SMBus
264 device pci 1f.5 on end # PCH SPI
265 device pci 1f.6 off end # GbE
266 end
267end