blob: a8bb34233a54d59b887fdf6c91ec8290b6500da5 [file] [log] [blame]
Duncan Laurie931a5792018-10-31 11:04:47 -07001chip soc/intel/cannonlake
2
3 # GPE configuration
4 # Note that GPE events called out in ASL code rely on this
5 # route. i.e. If this route changes then the affected GPE
6 # offset bits also need to be changed.
7 register "gpe0_dw0" = "PMC_GPP_A"
8 register "gpe0_dw1" = "PMC_GPP_C"
9 register "gpe0_dw2" = "PMC_GPP_D"
10
Duncan Laurie7a70b662018-10-31 13:19:21 -070011 # EC host command ranges
12 register "gen1_dec" = "0x00040931" # 0x930-0x937
13 register "gen2_dec" = "0x00040941" # 0x940-0x947
14 register "gen3_dec" = "0x000c0951" # 0x950-0x95f
15
Duncan Laurie931a5792018-10-31 11:04:47 -070016 # FSP configuration
17 register "SaGv" = "3"
18 register "HeciEnabled" = "1"
19 register "SataSalpSupport" = "1"
Lijian Zhao6b2c9b12018-12-06 17:07:25 -080020 register "SataMode" = "Sata_AHCI"
Duncan Laurie931a5792018-10-31 11:04:47 -070021 register "SataPortsEnable[2]" = "1"
Duncan Laurie931a5792018-10-31 11:04:47 -070022 register "SataPortsDevSlp[2]" = "1"
23 register "InternalGfx" = "1"
24 register "SkipExtGfxScan" = "1"
25 register "VmxEnable" = "1"
26
27 register "speed_shift_enable" = "1"
28 register "s0ix_enable" = "1"
Duncan Laurie833a3a82018-11-20 17:33:12 -080029 register "dptf_enable" = "1"
Lijian Zhao43825e82018-12-13 09:26:39 -080030 register "dmipwroptimize" = "1"
31 register "satapwroptimize" = "1"
Duncan Laurie931a5792018-10-31 11:04:47 -070032
33 # Intel Common SoC Config
Duncan Laurie86b3a3b2018-12-01 17:19:23 -080034 register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)" # Left Type-C Port
35 register "usb2_ports[1]" = "USB2_PORT_LONG(OC0)" # Left Type-A Port
36 register "usb2_ports[2]" = "USB2_PORT_LONG(OC1)" # Right Type-A Port
Duncan Laurie931a5792018-10-31 11:04:47 -070037 register "usb2_ports[3]" = "USB2_PORT_EMPTY"
38 register "usb2_ports[4]" = "USB2_PORT_EMPTY"
39 register "usb2_ports[5]" = "USB2_PORT_LONG(OC_SKIP)" # Camera
40 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # WWAN
41 register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)" # USH
Duncan Laurie86b3a3b2018-12-01 17:19:23 -080042 register "usb2_ports[8]" = "USB2_PORT_MID(OC_SKIP)" # Fingerprint
43 register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
Duncan Laurie931a5792018-10-31 11:04:47 -070044
Duncan Laurie86b3a3b2018-12-01 17:19:23 -080045 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Left Type-C Port
46 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)" # Left Type-A Port
47 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC1)" # Right Type-A Port
48 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # WWAN
Duncan Laurie931a5792018-10-31 11:04:47 -070049 register "usb3_ports[4]" = "USB3_PORT_EMPTY"
50 register "usb3_ports[5]" = "USB3_PORT_EMPTY"
51
52 # Intel Common SoC Config
53 #+-------------------+---------------------------+
54 #| Field | Value |
55 #+-------------------+---------------------------+
56 #| chipset_lockdown | CHIPSET_LOCKDOWN_COREBOOT |
57 #| I2C0 | Touchscreen |
58 #| I2C1 | Touchpad |
59 #| I2C4 | H1 TPM |
60 #+-------------------+---------------------------+
61 register "common_soc_config" = "{
62 .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
63 .i2c[0] = {
64 .speed = I2C_SPEED_FAST,
65 },
66 .i2c[1] = {
67 .speed = I2C_SPEED_FAST,
Duncan Lauried2226062018-12-05 15:41:03 -080068 .rise_time_ns = 216,
69 .fall_time_ns = 28,
Duncan Laurie931a5792018-10-31 11:04:47 -070070 },
71 .i2c[4] = {
72 .early_init = 1,
73 .speed = I2C_SPEED_FAST,
Duncan Lauried2226062018-12-05 15:41:03 -080074 .rise_time_ns = 452,
75 .fall_time_ns = 110,
Duncan Laurie931a5792018-10-31 11:04:47 -070076 },
77 }"
78
Duncan Laurie931a5792018-10-31 11:04:47 -070079 # PCIe port 10 for M.2 2230 WLAN
80 register "PcieRpEnable[9]" = "1"
81 register "PcieClkSrcUsage[2]" = "9"
82 register "PcieClkSrcClkReq[2]" = "2"
83
84 # PCIe port 11 for card reader
85 register "PcieRpEnable[10]" = "1"
86 register "PcieClkSrcUsage[1]" = "10"
87 register "PcieClkSrcClkReq[1]" = "1"
88
89 # PCIe port 12 for M.2 3042
90 register "PcieRpEnable[11]" = "1"
91 register "PcieClkSrcUsage[3]" = "11"
92 register "PcieClkSrcClkReq[3]" = "3"
93
94 # PCIe port 13 for M.2 2280 SSD
95 register "PcieRpEnable[12]" = "1"
96 register "PcieClkSrcUsage[4]" = "12"
97 register "PcieClkSrcClkReq[4]" = "4"
98
99 device cpu_cluster 0 on
100 device lapic 0 on end
101 end
102 device domain 0 on
103 device pci 00.0 on end # Host Bridge
104 device pci 02.0 on end # Integrated Graphics Device
105 device pci 04.0 on end # SA Thermal device
106 device pci 12.0 on end # Thermal Subsystem
107 device pci 12.5 off end # UFS SCS
108 device pci 12.6 off end # GSPI #2
Duncan Laurieb0c726b2018-12-05 15:54:52 -0800109 device pci 13.0 on end # Integrated Sensor Hub
Duncan Laurie86b3a3b2018-12-01 17:19:23 -0800110 device pci 14.0 on
111 chip drivers/usb/acpi
112 register "desc" = ""Root Hub""
113 register "type" = "UPC_TYPE_HUB"
114 device usb 0.0 on
115 chip drivers/usb/acpi
116 register "desc" = ""Left Type-C Port""
117 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
118 register "group" = "ACPI_PLD_GROUP(1, 1)"
119 device usb 2.0 on end
120 end
121 chip drivers/usb/acpi
122 register "desc" = ""Left Type-A Port""
123 register "type" = "UPC_TYPE_A"
124 register "group" = "ACPI_PLD_GROUP(1, 2)"
125 device usb 2.1 on end
126 end
127 chip drivers/usb/acpi
128 register "desc" = ""Right Type-A Port""
129 register "type" = "UPC_TYPE_A"
130 register "group" = "ACPI_PLD_GROUP(2, 1)"
131 device usb 2.2 on end
132 end
133 chip drivers/usb/acpi
134 register "desc" = ""Camera""
135 register "type" = "UPC_TYPE_INTERNAL"
136 device usb 2.5 on end
137 end
138 chip drivers/usb/acpi
139 register "desc" = ""WWAN""
140 register "type" = "UPC_TYPE_INTERNAL"
141 device usb 2.6 on end
142 end
143 chip drivers/usb/acpi
144 register "desc" = ""USH""
145 register "type" = "UPC_TYPE_INTERNAL"
146 device usb 2.7 on end
147 end
148 chip drivers/usb/acpi
149 register "desc" = ""Fingerprint""
150 register "type" = "UPC_TYPE_INTERNAL"
151 device usb 2.8 on end
152 end
153 chip drivers/usb/acpi
154 register "desc" = ""Bluetooth""
155 register "type" = "UPC_TYPE_INTERNAL"
156 device usb 2.9 on end
157 end
158 chip drivers/usb/acpi
159 register "desc" = ""Left Type-C Port""
160 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
161 register "group" = "ACPI_PLD_GROUP(1, 1)"
162 device usb 3.0 on end
163 end
164 chip drivers/usb/acpi
165 register "desc" = ""Left Type-A Port""
166 register "type" = "UPC_TYPE_USB3_A"
167 register "group" = "ACPI_PLD_GROUP(1, 2)"
168 device usb 3.1 on end
169 end
170 chip drivers/usb/acpi
171 register "desc" = ""Right Type-A Port""
172 register "type" = "UPC_TYPE_USB3_A"
173 register "group" = "ACPI_PLD_GROUP(2, 1)"
174 device usb 3.2 on end
175 end
176 chip drivers/usb/acpi
177 register "desc" = ""WWAN""
178 register "type" = "UPC_TYPE_INTERNAL"
179 device usb 3.3 on end
180 end
181 end
182 end
183 end # USB xHCI
Duncan Laurie931a5792018-10-31 11:04:47 -0700184 device pci 14.1 off end # USB xDCI (OTG)
Subrata Banik69b18f02018-11-06 16:59:56 +0530185 chip drivers/intel/wifi
186 register "wake" = "PME_B0_EN_BIT"
187 device pci 14.3 on end # CNVi wifi
188 end
Duncan Laurie931a5792018-10-31 11:04:47 -0700189 device pci 14.5 off end # SDCard
Casper Chang05653ca2018-12-11 09:37:12 +0800190 device pci 15.0 on
Duncan Laurie931a5792018-10-31 11:04:47 -0700191 chip drivers/i2c/hid
Casper Chang05653ca2018-12-11 09:37:12 +0800192 register "generic.hid" = ""WCOM48E2""
193 register "generic.desc" = ""Wacom Touchscreen""
194 register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_C23_IRQ)"
195 register "generic.probed" = "1"
196 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E7)"
197 register "generic.enable_delay_ms" = "5"
198 register "generic.has_power_resource" = "1"
199 register "generic.disable_gpio_export_in_crs" = "1"
200 register "hid_desc_reg_offset" = "0x1"
201 device i2c 0A on end
202 end
203 end # I2C #0
204 device pci 15.1 on
205 chip drivers/i2c/generic
206 register "hid" = ""ELAN0000""
207 register "desc" = ""ELAN Touchpad""
208 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_B3_IRQ)"
209 register "probed" = "1"
Duncan Laurie931a5792018-10-31 11:04:47 -0700210 device i2c 2c on end
211 end
212 end # I2C #1
213 device pci 15.2 off end # I2C #2
214 device pci 15.3 off end # I2C #3
215 device pci 16.0 on end # Management Engine Interface 1
216 device pci 16.1 off end # Management Engine Interface 2
217 device pci 16.2 off end # Management Engine IDE-R
218 device pci 16.3 off end # Management Engine KT Redirection
219 device pci 16.4 off end # Management Engine Interface 3
220 device pci 16.5 off end # Management Engine Interface 4
221 device pci 17.0 on end # SATA
222 device pci 19.0 on
223 chip drivers/i2c/tpm
224 register "hid" = ""GOOG0005""
225 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_D18_IRQ)"
226 device i2c 50 on end
227 end
228 end # I2C #4
229 device pci 19.1 off end # I2C #5
230 device pci 19.2 on end # UART #2
231 device pci 1a.0 off end # eMMC
232 device pci 1c.0 off end # PCI Express Port 1 (USB)
233 device pci 1c.1 off end # PCI Express Port 2 (USB)
234 device pci 1c.2 off end # PCI Express Port 3 (USB)
235 device pci 1c.3 off end # PCI Express Port 4 (USB)
236 device pci 1c.4 off end # PCI Express Port 5 (USB)
237 device pci 1c.5 off end # PCI Express Port 6
238 device pci 1c.6 off end # PCI Express Port 7
239 device pci 1c.7 off end # PCI Express Port 8
240 device pci 1d.0 on end # PCI Express Port 9
241 device pci 1d.1 on end # PCI Express Port 10
242 device pci 1d.2 on end # PCI Express Port 11
243 device pci 1d.3 on end # PCI Express Port 12
244 device pci 1d.4 on end # PCI Express Port 13 (x4)
245 device pci 1e.0 off end # UART #0
246 device pci 1e.1 off end # UART #1
247 device pci 1e.2 off end # GSPI #0
248 device pci 1e.3 off end # GSPI #1
Duncan Laurie7a70b662018-10-31 13:19:21 -0700249 device pci 1f.0 on
250 chip ec/google/wilco
251 device pnp 0c09.0 on end
252 end
253 end # LPC/eSPI
Duncan Laurie931a5792018-10-31 11:04:47 -0700254 device pci 1f.1 on end # P2SB
255 device pci 1f.2 on end # Power Management Controller
256 device pci 1f.3 on end # Intel HDA
257 device pci 1f.4 on end # SMBus
258 device pci 1f.5 on end # PCH SPI
Lijian Zhao2d92b1a2018-12-06 17:12:40 -0800259 device pci 1f.6 off end # GbE
Duncan Laurie931a5792018-10-31 11:04:47 -0700260 end
261end