blob: ee0217792dae129d3729df25a3e1951b81b087c3 [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
133 # Enable Root port 1.
134 register "PcieRpEnable[0]" = "1"
135 # Enable CLKREQ#
136 register "PcieRpClkReqSupport[0]" = "1"
137 # RP 1 uses SRCCLKREQ1#
138 register "PcieRpClkReqNumber[0]" = "1"
139
Shelley Chenc5168832017-03-21 15:04:04 -0700140 register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C
141 register "usb2_ports[1]" = "USB2_PORT_MID(OC3)" # Type-A Rear
142 register "usb2_ports[2]" = "USB2_PORT_MID(OC2)" # Type-A Front
143 register "usb2_ports[3]" = "USB2_PORT_MID(OC2)" # Type-A Front
144 register "usb2_ports[4]" = "USB2_PORT_MID(OC1)" # Type-A Rear
145 register "usb2_ports[5]" = "USB2_PORT_MID(OC1)" # Type-A Rear
146 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
147 register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # Type-A 2.0 / Debug
148 register "usb2_ports[8]" = "USB2_PORT_EMPTY" # H1 (disconnected)
Shelley Chen243dc392017-03-15 15:25:48 -0700149
Shelley Chenc5168832017-03-21 15:04:04 -0700150 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C
151 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC3)" # Type-A Rear
152 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC2)" # Type-A Front
153 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC2)" # Type-A Front
Shelley Chen243dc392017-03-15 15:25:48 -0700154
Shelley Chenc5168832017-03-21 15:04:04 -0700155 register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3" # HDMI CEC
156 register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3" # TPM
157 register "i2c_voltage[2]" = "I2C_VOLTAGE_3V3" # Debug
Shelley Chen243dc392017-03-15 15:25:48 -0700158 register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8" # Audio
159
160 # Must leave UART0 enabled or SD/eMMC will not work as PCI
161 register "SerialIoDevMode" = "{
162 [PchSerialIoIndexI2C0] = PchSerialIoPci,
163 [PchSerialIoIndexI2C1] = PchSerialIoPci,
164 [PchSerialIoIndexI2C2] = PchSerialIoPci,
Shelley Chenc5168832017-03-21 15:04:04 -0700165 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
166 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
Shelley Chen243dc392017-03-15 15:25:48 -0700167 [PchSerialIoIndexI2C5] = PchSerialIoPci,
168 [PchSerialIoIndexSpi0] = PchSerialIoPci,
Shelley Chenc5168832017-03-21 15:04:04 -0700169 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
Shelley Chen243dc392017-03-15 15:25:48 -0700170 [PchSerialIoIndexUart0] = PchSerialIoPci,
171 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
172 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
173 }"
174
175 register "speed_shift_enable" = "1"
176 register "tdp_pl2_override" = "7"
177 register "tcc_offset" = "10" # TCC of 90C
178
179 # Use default SD card detect GPIO configuration
Shelley Chenc5168832017-03-21 15:04:04 -0700180 register "sdcard_cd_gpio_default" = "GPP_A7"
Shelley Chen243dc392017-03-15 15:25:48 -0700181
182 device cpu_cluster 0 on
183 device lapic 0 on end
184 end
185 device domain 0 on
186 device pci 00.0 on end # Host Bridge
187 device pci 02.0 on end # Integrated Graphics Device
188 device pci 14.0 on end # USB xHCI
189 device pci 14.1 off end # USB xDCI (OTG)
190 device pci 14.2 on end # Thermal Subsystem
191 device pci 15.0 on
Shelley Chen243dc392017-03-15 15:25:48 -0700192 end # I2C #0
193 device pci 15.1 on end # I2C #1
194 device pci 15.2 on end # I2C #2
Shelley Chenc5168832017-03-21 15:04:04 -0700195 device pci 15.3 off
Shelley Chen243dc392017-03-15 15:25:48 -0700196 end # I2C #3
197 device pci 16.0 on end # Management Engine Interface 1
198 device pci 16.1 off end # Management Engine Interface 2
199 device pci 16.2 off end # Management Engine IDE-R
200 device pci 16.3 off end # Management Engine KT Redirection
201 device pci 16.4 off end # Management Engine Interface 3
Shelley Chenc5168832017-03-21 15:04:04 -0700202 device pci 17.0 on end # SATA
Shelley Chen243dc392017-03-15 15:25:48 -0700203 device pci 19.0 on end # UART #2
204 device pci 19.1 on
Shelley Chen243dc392017-03-15 15:25:48 -0700205 end # I2C #5
Shelley Chenc5168832017-03-21 15:04:04 -0700206 device pci 19.2 off end # I2C #4
Shelley Chen243dc392017-03-15 15:25:48 -0700207 device pci 1c.0 on
208 chip drivers/intel/wifi
209 register "wake" = "GPE0_PCI_EXP"
210 device pci 00.0 on end
211 end
212 end # PCI Express Port 1
213 device pci 1c.1 off end # PCI Express Port 2
214 device pci 1c.2 off end # PCI Express Port 3
215 device pci 1c.3 off end # PCI Express Port 4
216 device pci 1c.4 off end # PCI Express Port 5
217 device pci 1c.5 off end # PCI Express Port 6
218 device pci 1c.6 off end # PCI Express Port 7
219 device pci 1c.7 off end # PCI Express Port 8
220 device pci 1d.0 off end # PCI Express Port 9
221 device pci 1d.1 off end # PCI Express Port 10
222 device pci 1d.2 off end # PCI Express Port 11
223 device pci 1d.3 off end # PCI Express Port 12
224 device pci 1e.0 on end # UART #0
225 device pci 1e.1 off end # UART #1
226 device pci 1e.2 on end # GSPI #0
Shelley Chenc5168832017-03-21 15:04:04 -0700227 device pci 1e.3 off end # GSPI #1
228 device pci 1e.4 off end # eMMC
Shelley Chen243dc392017-03-15 15:25:48 -0700229 device pci 1e.5 off end # SDIO
230 device pci 1e.6 on end # SDCard
231 device pci 1f.0 on
232 chip ec/google/chromeec
233 device pnp 0c09.0 on end
234 end
235 end # LPC Interface
236 device pci 1f.1 on end # P2SB
237 device pci 1f.2 on end # Power Management Controller
238 device pci 1f.3 on end # Intel HDA
239 device pci 1f.4 on end # SMBus
240 device pci 1f.5 on end # PCH SPI
241 device pci 1f.6 off end # GbE
242 end
243end