blob: e498dc9012f451569534511b7bb651caa8d79031 [file] [log] [blame]
Shelley Chen243dc392017-03-15 15:25:48 -07001chip soc/intel/skylake
2
3 # Deep Sx states
4 register "deep_s3_enable" = "0"
5 register "deep_s5_enable" = "1"
6 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN | DSX_EN_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.
12 register "gpe0_dw0" = "GPP_B"
13 register "gpe0_dw1" = "GPP_D"
14 register "gpe0_dw2" = "GPP_E"
15
16 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
17 register "gen1_dec" = "0x00fc0801"
18 register "gen2_dec" = "0x000c0201"
19 # EC memory map range is 0x900-0x9ff
20 register "gen3_dec" = "0x00fc0901"
21
Shelley Chen243dc392017-03-15 15:25:48 -070022 # FSP Configuration
23 register "ProbelessTrace" = "0"
Shelley Chenc5168832017-03-21 15:04:04 -070024 register "EnableLan" = "1"
25 register "EnableSata" = "1"
26 register "SataSalpSupport" = "1"
27 register "SataMode" = "1"
28 register "SataPortsEnable[0]" = "1"
Shelley Chen243dc392017-03-15 15:25:48 -070029 register "EnableAzalia" = "1"
30 register "DspEnable" = "1"
31 register "IoBufferOwnership" = "3"
32 register "EnableTraceHub" = "0"
33 register "XdciEnable" = "0"
34 register "SsicPortEnable" = "0"
35 register "SmbusEnable" = "1"
36 register "Cio2Enable" = "0"
Shelley Chenc5168832017-03-21 15:04:04 -070037 register "ScsEmmcEnabled" = "0"
38 register "ScsEmmcHs400Enabled" = "0"
Shelley Chen243dc392017-03-15 15:25:48 -070039 register "ScsSdCardEnabled" = "2"
40 register "IshEnable" = "0"
41 register "PttSwitch" = "0"
42 register "InternalGfx" = "1"
43 register "SkipExtGfxScan" = "1"
44 register "Device4Enable" = "1"
45 register "HeciEnabled" = "0"
46 register "FspSkipMpInit" = "1"
47 register "SaGv" = "3"
48 register "SerialIrqConfigSirqEnable" = "1"
49 register "PmConfigSlpS3MinAssert" = "2" # 50ms
50 register "PmConfigSlpS4MinAssert" = "1" # 1s
51 register "PmConfigSlpSusMinAssert" = "1" # 500ms
52 register "PmConfigSlpAMinAssert" = "3" # 2s
53 register "PmTimerDisabled" = "1"
54 register "SendVrMbxCmd" = "1" # IMVP8 workaround
55
56 register "pirqa_routing" = "PCH_IRQ11"
57 register "pirqb_routing" = "PCH_IRQ10"
58 register "pirqc_routing" = "PCH_IRQ11"
59 register "pirqd_routing" = "PCH_IRQ11"
60 register "pirqe_routing" = "PCH_IRQ11"
61 register "pirqf_routing" = "PCH_IRQ11"
62 register "pirqg_routing" = "PCH_IRQ11"
63 register "pirqh_routing" = "PCH_IRQ11"
64
65 # VR Settings Configuration for 4 Domains
66 #+----------------+-------+-------+-------+-------+
67 #| Domain/Setting | SA | IA | GTUS | GTS |
68 #+----------------+-------+-------+-------+-------+
69 #| Psi1Threshold | 20A | 20A | 20A | 20A |
70 #| Psi2Threshold | 4A | 5A | 5A | 5A |
71 #| Psi3Threshold | 1A | 1A | 1A | 1A |
72 #| Psi3Enable | 1 | 1 | 1 | 1 |
73 #| Psi4Enable | 1 | 1 | 1 | 1 |
74 #| ImonSlope | 0 | 0 | 0 | 0 |
75 #| ImonOffset | 0 | 0 | 0 | 0 |
76 #| IccMax | 7A | 34A | 35A | 35A |
77 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
78 #+----------------+-------+-------+-------+-------+
79 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
80 .vr_config_enable = 1,
81 .psi1threshold = VR_CFG_AMP(20),
82 .psi2threshold = VR_CFG_AMP(4),
83 .psi3threshold = VR_CFG_AMP(1),
84 .psi3enable = 1,
85 .psi4enable = 1,
86 .imon_slope = 0x0,
87 .imon_offset = 0x0,
88 .icc_max = VR_CFG_AMP(7),
89 .voltage_limit = 1520,
90 }"
91
92 register "domain_vr_config[VR_IA_CORE]" = "{
93 .vr_config_enable = 1,
94 .psi1threshold = VR_CFG_AMP(20),
95 .psi2threshold = VR_CFG_AMP(5),
96 .psi3threshold = VR_CFG_AMP(1),
97 .psi3enable = 1,
98 .psi4enable = 1,
99 .imon_slope = 0x0,
100 .imon_offset = 0x0,
101 .icc_max = VR_CFG_AMP(34),
102 .voltage_limit = 1520,
103 }"
104
105 register "domain_vr_config[VR_GT_UNSLICED]" = "{
106 .vr_config_enable = 1,
107 .psi1threshold = VR_CFG_AMP(20),
108 .psi2threshold = VR_CFG_AMP(5),
109 .psi3threshold = VR_CFG_AMP(1),
110 .psi3enable = 1,
111 .psi4enable = 1,
112 .imon_slope = 0x0,
113 .imon_offset = 0x0,
114 .icc_max = VR_CFG_AMP(35),
115 .voltage_limit = 1520,
116 }"
117
118 register "domain_vr_config[VR_GT_SLICED]" = "{
119 .vr_config_enable = 1,
120 .psi1threshold = VR_CFG_AMP(20),
121 .psi2threshold = VR_CFG_AMP(5),
122 .psi3threshold = VR_CFG_AMP(1),
123 .psi3enable = 1,
124 .psi4enable = 1,
125 .imon_slope = 0x0,
126 .imon_offset = 0x0,
127 .icc_max = VR_CFG_AMP(35),
128 .voltage_limit = 1520,
129 }"
130
131 # Enable Root port 1.
132 register "PcieRpEnable[0]" = "1"
133 # Enable CLKREQ#
134 register "PcieRpClkReqSupport[0]" = "1"
135 # RP 1 uses SRCCLKREQ1#
136 register "PcieRpClkReqNumber[0]" = "1"
137
Shelley Chenc5168832017-03-21 15:04:04 -0700138 register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C
139 register "usb2_ports[1]" = "USB2_PORT_MID(OC3)" # Type-A Rear
140 register "usb2_ports[2]" = "USB2_PORT_MID(OC2)" # Type-A Front
141 register "usb2_ports[3]" = "USB2_PORT_MID(OC2)" # Type-A Front
142 register "usb2_ports[4]" = "USB2_PORT_MID(OC1)" # Type-A Rear
143 register "usb2_ports[5]" = "USB2_PORT_MID(OC1)" # Type-A Rear
144 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
145 register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # Type-A 2.0 / Debug
146 register "usb2_ports[8]" = "USB2_PORT_EMPTY" # H1 (disconnected)
Shelley Chen243dc392017-03-15 15:25:48 -0700147
Shelley Chenc5168832017-03-21 15:04:04 -0700148 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C
149 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC3)" # Type-A Rear
150 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC2)" # Type-A Front
151 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC2)" # Type-A Front
Shelley Chen243dc392017-03-15 15:25:48 -0700152
Shelley Chenc5168832017-03-21 15:04:04 -0700153 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3" # HDMI CEC
154 register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3" # TPM
155 register "i2c_voltage[2]" = "I2C_VOLTAGE_3V3" # Debug
Shelley Chen243dc392017-03-15 15:25:48 -0700156 register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8" # Audio
157
158 # Must leave UART0 enabled or SD/eMMC will not work as PCI
159 register "SerialIoDevMode" = "{
160 [PchSerialIoIndexI2C0] = PchSerialIoPci,
161 [PchSerialIoIndexI2C1] = PchSerialIoPci,
162 [PchSerialIoIndexI2C2] = PchSerialIoPci,
Shelley Chenc5168832017-03-21 15:04:04 -0700163 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
164 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
Shelley Chen243dc392017-03-15 15:25:48 -0700165 [PchSerialIoIndexI2C5] = PchSerialIoPci,
166 [PchSerialIoIndexSpi0] = PchSerialIoPci,
Shelley Chenc5168832017-03-21 15:04:04 -0700167 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
Shelley Chen243dc392017-03-15 15:25:48 -0700168 [PchSerialIoIndexUart0] = PchSerialIoPci,
169 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
170 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
171 }"
172
173 register "speed_shift_enable" = "1"
174 register "tdp_pl2_override" = "7"
175 register "tcc_offset" = "10" # TCC of 90C
176
177 # Use default SD card detect GPIO configuration
Shelley Chenc5168832017-03-21 15:04:04 -0700178 register "sdcard_cd_gpio_default" = "GPP_A7"
Shelley Chen243dc392017-03-15 15:25:48 -0700179
180 device cpu_cluster 0 on
181 device lapic 0 on end
182 end
183 device domain 0 on
184 device pci 00.0 on end # Host Bridge
185 device pci 02.0 on end # Integrated Graphics Device
186 device pci 14.0 on end # USB xHCI
187 device pci 14.1 off end # USB xDCI (OTG)
188 device pci 14.2 on end # Thermal Subsystem
189 device pci 15.0 on
Shelley Chen243dc392017-03-15 15:25:48 -0700190 end # I2C #0
191 device pci 15.1 on end # I2C #1
192 device pci 15.2 on end # I2C #2
Shelley Chenc5168832017-03-21 15:04:04 -0700193 device pci 15.3 off
Shelley Chen243dc392017-03-15 15:25:48 -0700194 end # I2C #3
195 device pci 16.0 on end # Management Engine Interface 1
196 device pci 16.1 off end # Management Engine Interface 2
197 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
Shelley Chenc5168832017-03-21 15:04:04 -0700200 device pci 17.0 on end # SATA
Shelley Chen243dc392017-03-15 15:25:48 -0700201 device pci 19.0 on end # UART #2
202 device pci 19.1 on
Shelley Chen243dc392017-03-15 15:25:48 -0700203 end # I2C #5
Shelley Chenc5168832017-03-21 15:04:04 -0700204 device pci 19.2 off end # I2C #4
Shelley Chen243dc392017-03-15 15:25:48 -0700205 device pci 1c.0 on
206 chip drivers/intel/wifi
207 register "wake" = "GPE0_PCI_EXP"
208 device pci 00.0 on end
209 end
210 end # PCI Express Port 1
211 device pci 1c.1 off end # PCI Express Port 2
212 device pci 1c.2 off end # PCI Express Port 3
213 device pci 1c.3 off end # PCI Express Port 4
214 device pci 1c.4 off end # PCI Express Port 5
215 device pci 1c.5 off end # PCI Express Port 6
216 device pci 1c.6 off end # PCI Express Port 7
217 device pci 1c.7 off end # PCI Express Port 8
218 device pci 1d.0 off end # PCI Express Port 9
219 device pci 1d.1 off end # PCI Express Port 10
220 device pci 1d.2 off end # PCI Express Port 11
221 device pci 1d.3 off end # PCI Express Port 12
222 device pci 1e.0 on end # UART #0
223 device pci 1e.1 off end # UART #1
224 device pci 1e.2 on end # GSPI #0
Shelley Chenc5168832017-03-21 15:04:04 -0700225 device pci 1e.3 off end # GSPI #1
226 device pci 1e.4 off end # eMMC
Shelley Chen243dc392017-03-15 15:25:48 -0700227 device pci 1e.5 off end # SDIO
228 device pci 1e.6 on end # SDCard
229 device pci 1f.0 on
230 chip ec/google/chromeec
231 device pnp 0c09.0 on end
232 end
233 end # LPC Interface
234 device pci 1f.1 on end # P2SB
235 device pci 1f.2 on end # Power Management Controller
236 device pci 1f.3 on end # Intel HDA
237 device pci 1f.4 on end # SMBus
238 device pci 1f.5 on end # PCH SPI
239 device pci 1f.6 off end # GbE
240 end
241end