blob: 52840de8606ca27b770e863d253233916b4d1b24 [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
Duncan Laurie931a5792018-10-31 11:04:47 -070089 # PCIe port 13 for M.2 2280 SSD
90 register "PcieRpEnable[12]" = "1"
91 register "PcieClkSrcUsage[4]" = "12"
92 register "PcieClkSrcClkReq[4]" = "4"
93
94 device cpu_cluster 0 on
95 device lapic 0 on end
96 end
97 device domain 0 on
98 device pci 00.0 on end # Host Bridge
99 device pci 02.0 on end # Integrated Graphics Device
100 device pci 04.0 on end # SA Thermal device
101 device pci 12.0 on end # Thermal Subsystem
102 device pci 12.5 off end # UFS SCS
103 device pci 12.6 off end # GSPI #2
Duncan Laurieb0c726b2018-12-05 15:54:52 -0800104 device pci 13.0 on end # Integrated Sensor Hub
Duncan Laurie86b3a3b2018-12-01 17:19:23 -0800105 device pci 14.0 on
106 chip drivers/usb/acpi
107 register "desc" = ""Root Hub""
108 register "type" = "UPC_TYPE_HUB"
109 device usb 0.0 on
110 chip drivers/usb/acpi
111 register "desc" = ""Left Type-C Port""
112 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
113 register "group" = "ACPI_PLD_GROUP(1, 1)"
114 device usb 2.0 on end
115 end
116 chip drivers/usb/acpi
117 register "desc" = ""Left Type-A Port""
118 register "type" = "UPC_TYPE_A"
119 register "group" = "ACPI_PLD_GROUP(1, 2)"
120 device usb 2.1 on end
121 end
122 chip drivers/usb/acpi
123 register "desc" = ""Right Type-A Port""
124 register "type" = "UPC_TYPE_A"
125 register "group" = "ACPI_PLD_GROUP(2, 1)"
126 device usb 2.2 on end
127 end
128 chip drivers/usb/acpi
129 register "desc" = ""Camera""
130 register "type" = "UPC_TYPE_INTERNAL"
131 device usb 2.5 on end
132 end
133 chip drivers/usb/acpi
134 register "desc" = ""WWAN""
135 register "type" = "UPC_TYPE_INTERNAL"
136 device usb 2.6 on end
137 end
138 chip drivers/usb/acpi
139 register "desc" = ""USH""
140 register "type" = "UPC_TYPE_INTERNAL"
141 device usb 2.7 on end
142 end
143 chip drivers/usb/acpi
144 register "desc" = ""Fingerprint""
145 register "type" = "UPC_TYPE_INTERNAL"
146 device usb 2.8 on end
147 end
148 chip drivers/usb/acpi
149 register "desc" = ""Bluetooth""
150 register "type" = "UPC_TYPE_INTERNAL"
151 device usb 2.9 on end
152 end
153 chip drivers/usb/acpi
154 register "desc" = ""Left Type-C Port""
155 register "type" = "UPC_TYPE_C_USB2_SS_SWITCH"
156 register "group" = "ACPI_PLD_GROUP(1, 1)"
157 device usb 3.0 on end
158 end
159 chip drivers/usb/acpi
160 register "desc" = ""Left Type-A Port""
161 register "type" = "UPC_TYPE_USB3_A"
162 register "group" = "ACPI_PLD_GROUP(1, 2)"
163 device usb 3.1 on end
164 end
165 chip drivers/usb/acpi
166 register "desc" = ""Right Type-A Port""
167 register "type" = "UPC_TYPE_USB3_A"
168 register "group" = "ACPI_PLD_GROUP(2, 1)"
169 device usb 3.2 on end
170 end
171 chip drivers/usb/acpi
172 register "desc" = ""WWAN""
173 register "type" = "UPC_TYPE_INTERNAL"
174 device usb 3.3 on end
175 end
176 end
177 end
178 end # USB xHCI
Duncan Laurie931a5792018-10-31 11:04:47 -0700179 device pci 14.1 off end # USB xDCI (OTG)
Subrata Banik69b18f02018-11-06 16:59:56 +0530180 chip drivers/intel/wifi
181 register "wake" = "PME_B0_EN_BIT"
182 device pci 14.3 on end # CNVi wifi
183 end
Duncan Laurie931a5792018-10-31 11:04:47 -0700184 device pci 14.5 off end # SDCard
Casper Chang05653ca2018-12-11 09:37:12 +0800185 device pci 15.0 on
Duncan Laurie931a5792018-10-31 11:04:47 -0700186 chip drivers/i2c/hid
Casper Chang05653ca2018-12-11 09:37:12 +0800187 register "generic.hid" = ""WCOM48E2""
188 register "generic.desc" = ""Wacom Touchscreen""
189 register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_C23_IRQ)"
190 register "generic.probed" = "1"
191 register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E7)"
192 register "generic.enable_delay_ms" = "5"
193 register "generic.has_power_resource" = "1"
194 register "generic.disable_gpio_export_in_crs" = "1"
195 register "hid_desc_reg_offset" = "0x1"
196 device i2c 0A on end
197 end
198 end # I2C #0
199 device pci 15.1 on
200 chip drivers/i2c/generic
201 register "hid" = ""ELAN0000""
202 register "desc" = ""ELAN Touchpad""
203 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_B3_IRQ)"
204 register "probed" = "1"
Duncan Laurie931a5792018-10-31 11:04:47 -0700205 device i2c 2c on end
206 end
207 end # I2C #1
208 device pci 15.2 off end # I2C #2
209 device pci 15.3 off end # I2C #3
210 device pci 16.0 on end # Management Engine Interface 1
211 device pci 16.1 off end # Management Engine Interface 2
212 device pci 16.2 off end # Management Engine IDE-R
213 device pci 16.3 off end # Management Engine KT Redirection
214 device pci 16.4 off end # Management Engine Interface 3
215 device pci 16.5 off end # Management Engine Interface 4
216 device pci 17.0 on end # SATA
217 device pci 19.0 on
218 chip drivers/i2c/tpm
219 register "hid" = ""GOOG0005""
220 register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_D18_IRQ)"
221 device i2c 50 on end
222 end
223 end # I2C #4
224 device pci 19.1 off end # I2C #5
225 device pci 19.2 on end # UART #2
226 device pci 1a.0 off end # eMMC
227 device pci 1c.0 off end # PCI Express Port 1 (USB)
228 device pci 1c.1 off end # PCI Express Port 2 (USB)
229 device pci 1c.2 off end # PCI Express Port 3 (USB)
230 device pci 1c.3 off end # PCI Express Port 4 (USB)
231 device pci 1c.4 off end # PCI Express Port 5 (USB)
232 device pci 1c.5 off end # PCI Express Port 6
233 device pci 1c.6 off end # PCI Express Port 7
234 device pci 1c.7 off end # PCI Express Port 8
235 device pci 1d.0 on end # PCI Express Port 9
236 device pci 1d.1 on end # PCI Express Port 10
237 device pci 1d.2 on end # PCI Express Port 11
Lijian Zhaobb3d01a2018-12-20 21:34:40 -0800238 device pci 1d.3 off end # PCI Express Port 12
Duncan Laurie931a5792018-10-31 11:04:47 -0700239 device pci 1d.4 on end # PCI Express Port 13 (x4)
240 device pci 1e.0 off end # UART #0
241 device pci 1e.1 off end # UART #1
242 device pci 1e.2 off end # GSPI #0
243 device pci 1e.3 off end # GSPI #1
Duncan Laurie7a70b662018-10-31 13:19:21 -0700244 device pci 1f.0 on
245 chip ec/google/wilco
246 device pnp 0c09.0 on end
247 end
248 end # LPC/eSPI
Duncan Laurie931a5792018-10-31 11:04:47 -0700249 device pci 1f.1 on end # P2SB
250 device pci 1f.2 on end # Power Management Controller
251 device pci 1f.3 on end # Intel HDA
252 device pci 1f.4 on end # SMBus
253 device pci 1f.5 on end # PCH SPI
Lijian Zhao2d92b1a2018-12-06 17:12:40 -0800254 device pci 1f.6 off end # GbE
Duncan Laurie931a5792018-10-31 11:04:47 -0700255 end
256end