mfd: intel-lpss: Switch to use the software nodes
[linux-2.6-block.git] / drivers / mfd / intel-lpss-pci.c
CommitLineData
d2912cb1 1// SPDX-License-Identifier: GPL-2.0-only
4b45efe8
AS
2/*
3 * Intel LPSS PCI support.
4 *
5 * Copyright (C) 2015, Intel Corporation
6 *
7 * Authors: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
8 * Mika Westerberg <mika.westerberg@linux.intel.com>
4b45efe8
AS
9 */
10
11#include <linux/ioport.h>
12#include <linux/kernel.h>
13#include <linux/module.h>
14#include <linux/pci.h>
4b45efe8 15#include <linux/pm_runtime.h>
028af594 16#include <linux/property.h>
4b45efe8
AS
17
18#include "intel-lpss.h"
19
20static int intel_lpss_pci_probe(struct pci_dev *pdev,
21 const struct pci_device_id *id)
22{
23 struct intel_lpss_platform_info *info;
24 int ret;
25
26 ret = pcim_enable_device(pdev);
27 if (ret)
28 return ret;
29
30 info = devm_kmemdup(&pdev->dev, (void *)id->driver_data, sizeof(*info),
31 GFP_KERNEL);
32 if (!info)
33 return -ENOMEM;
34
35 info->mem = &pdev->resource[0];
36 info->irq = pdev->irq;
37
76380a60
KHF
38 pdev->d3cold_delay = 0;
39
4b45efe8
AS
40 /* Probably it is enough to set this for iDMA capable devices only */
41 pci_set_master(pdev);
85a9419a 42 pci_try_set_mwi(pdev);
4b45efe8
AS
43
44 ret = intel_lpss_probe(&pdev->dev, info);
45 if (ret)
46 return ret;
47
48 pm_runtime_put(&pdev->dev);
49 pm_runtime_allow(&pdev->dev);
50
51 return 0;
52}
53
54static void intel_lpss_pci_remove(struct pci_dev *pdev)
55{
56 pm_runtime_forbid(&pdev->dev);
57 pm_runtime_get_sync(&pdev->dev);
58
59 intel_lpss_remove(&pdev->dev);
60}
61
62static INTEL_LPSS_PM_OPS(intel_lpss_pci_pm_ops);
63
64static const struct intel_lpss_platform_info spt_info = {
65 .clk_rate = 120000000,
66};
67
9677e6f7 68static const struct property_entry spt_i2c_properties[] = {
028af594
MW
69 PROPERTY_ENTRY_U32("i2c-sda-hold-time-ns", 230),
70 { },
71};
72
03152e35
HK
73static const struct software_node spt_i2c_node = {
74 .properties = spt_i2c_properties,
75};
76
028af594
MW
77static const struct intel_lpss_platform_info spt_i2c_info = {
78 .clk_rate = 120000000,
03152e35 79 .swnode = &spt_i2c_node,
028af594
MW
80};
81
9677e6f7 82static const struct property_entry uart_properties[] = {
ec14c539
AS
83 PROPERTY_ENTRY_U32("reg-io-width", 4),
84 PROPERTY_ENTRY_U32("reg-shift", 2),
85 PROPERTY_ENTRY_BOOL("snps,uart-16550-compatible"),
86 { },
87};
88
03152e35
HK
89static const struct software_node uart_node = {
90 .properties = uart_properties,
91};
92
4b45efe8
AS
93static const struct intel_lpss_platform_info spt_uart_info = {
94 .clk_rate = 120000000,
95 .clk_con_id = "baudclk",
03152e35 96 .swnode = &uart_node,
4b45efe8
AS
97};
98
ff0a04a6
AS
99static const struct intel_lpss_platform_info bxt_info = {
100 .clk_rate = 100000000,
101};
102
103static const struct intel_lpss_platform_info bxt_uart_info = {
104 .clk_rate = 100000000,
105 .clk_con_id = "baudclk",
03152e35 106 .swnode = &uart_node,
ff0a04a6
AS
107};
108
9677e6f7 109static const struct property_entry bxt_i2c_properties[] = {
0343b2f4
MW
110 PROPERTY_ENTRY_U32("i2c-sda-hold-time-ns", 42),
111 PROPERTY_ENTRY_U32("i2c-sda-falling-time-ns", 171),
112 PROPERTY_ENTRY_U32("i2c-scl-falling-time-ns", 208),
113 { },
114};
115
03152e35
HK
116static const struct software_node bxt_i2c_node = {
117 .properties = bxt_i2c_properties,
118};
119
ff0a04a6
AS
120static const struct intel_lpss_platform_info bxt_i2c_info = {
121 .clk_rate = 133000000,
03152e35 122 .swnode = &bxt_i2c_node,
ff0a04a6
AS
123};
124
9677e6f7 125static const struct property_entry apl_i2c_properties[] = {
c50cdd62
JN
126 PROPERTY_ENTRY_U32("i2c-sda-hold-time-ns", 207),
127 PROPERTY_ENTRY_U32("i2c-sda-falling-time-ns", 171),
128 PROPERTY_ENTRY_U32("i2c-scl-falling-time-ns", 208),
129 { },
130};
131
03152e35
HK
132static const struct software_node apl_i2c_node = {
133 .properties = apl_i2c_properties,
134};
135
c50cdd62
JN
136static const struct intel_lpss_platform_info apl_i2c_info = {
137 .clk_rate = 133000000,
03152e35 138 .swnode = &apl_i2c_node,
c50cdd62
JN
139};
140
9677e6f7 141static const struct property_entry glk_i2c_properties[] = {
3f31bc67
JN
142 PROPERTY_ENTRY_U32("i2c-sda-hold-time-ns", 313),
143 PROPERTY_ENTRY_U32("i2c-sda-falling-time-ns", 171),
144 PROPERTY_ENTRY_U32("i2c-scl-falling-time-ns", 290),
145 { },
146};
147
03152e35
HK
148static const struct software_node glk_i2c_node = {
149 .properties = glk_i2c_properties,
150};
151
3f31bc67
JN
152static const struct intel_lpss_platform_info glk_i2c_info = {
153 .clk_rate = 133000000,
03152e35 154 .swnode = &glk_i2c_node,
3f31bc67
JN
155};
156
4e93a658
JN
157static const struct intel_lpss_platform_info cnl_i2c_info = {
158 .clk_rate = 216000000,
03152e35 159 .swnode = &spt_i2c_node,
4e93a658
JN
160};
161
d2923aa4
JN
162static const struct intel_lpss_platform_info ehl_i2c_info = {
163 .clk_rate = 100000000,
03152e35 164 .swnode = &bxt_i2c_node,
d2923aa4
JN
165};
166
4b45efe8 167static const struct pci_device_id intel_lpss_pci_ids[] = {
dd047dce 168 /* CML-LP */
dd662907
AS
169 { PCI_VDEVICE(INTEL, 0x02a8), (kernel_ulong_t)&spt_uart_info },
170 { PCI_VDEVICE(INTEL, 0x02a9), (kernel_ulong_t)&spt_uart_info },
171 { PCI_VDEVICE(INTEL, 0x02aa), (kernel_ulong_t)&spt_info },
172 { PCI_VDEVICE(INTEL, 0x02ab), (kernel_ulong_t)&spt_info },
173 { PCI_VDEVICE(INTEL, 0x02c5), (kernel_ulong_t)&cnl_i2c_info },
174 { PCI_VDEVICE(INTEL, 0x02c6), (kernel_ulong_t)&cnl_i2c_info },
175 { PCI_VDEVICE(INTEL, 0x02c7), (kernel_ulong_t)&spt_uart_info },
176 { PCI_VDEVICE(INTEL, 0x02e8), (kernel_ulong_t)&cnl_i2c_info },
177 { PCI_VDEVICE(INTEL, 0x02e9), (kernel_ulong_t)&cnl_i2c_info },
178 { PCI_VDEVICE(INTEL, 0x02ea), (kernel_ulong_t)&cnl_i2c_info },
179 { PCI_VDEVICE(INTEL, 0x02eb), (kernel_ulong_t)&cnl_i2c_info },
180 { PCI_VDEVICE(INTEL, 0x02fb), (kernel_ulong_t)&spt_info },
dd047dce
AS
181 /* CML-H */
182 { PCI_VDEVICE(INTEL, 0x06a8), (kernel_ulong_t)&spt_uart_info },
183 { PCI_VDEVICE(INTEL, 0x06a9), (kernel_ulong_t)&spt_uart_info },
184 { PCI_VDEVICE(INTEL, 0x06aa), (kernel_ulong_t)&spt_info },
185 { PCI_VDEVICE(INTEL, 0x06ab), (kernel_ulong_t)&spt_info },
186 { PCI_VDEVICE(INTEL, 0x06c7), (kernel_ulong_t)&spt_uart_info },
187 { PCI_VDEVICE(INTEL, 0x06e8), (kernel_ulong_t)&cnl_i2c_info },
188 { PCI_VDEVICE(INTEL, 0x06e9), (kernel_ulong_t)&cnl_i2c_info },
189 { PCI_VDEVICE(INTEL, 0x06ea), (kernel_ulong_t)&cnl_i2c_info },
190 { PCI_VDEVICE(INTEL, 0x06eb), (kernel_ulong_t)&cnl_i2c_info },
191 { PCI_VDEVICE(INTEL, 0x06fb), (kernel_ulong_t)&spt_info },
023269cc 192 /* BXT A-Step */
ff0a04a6
AS
193 { PCI_VDEVICE(INTEL, 0x0aac), (kernel_ulong_t)&bxt_i2c_info },
194 { PCI_VDEVICE(INTEL, 0x0aae), (kernel_ulong_t)&bxt_i2c_info },
195 { PCI_VDEVICE(INTEL, 0x0ab0), (kernel_ulong_t)&bxt_i2c_info },
196 { PCI_VDEVICE(INTEL, 0x0ab2), (kernel_ulong_t)&bxt_i2c_info },
197 { PCI_VDEVICE(INTEL, 0x0ab4), (kernel_ulong_t)&bxt_i2c_info },
198 { PCI_VDEVICE(INTEL, 0x0ab6), (kernel_ulong_t)&bxt_i2c_info },
199 { PCI_VDEVICE(INTEL, 0x0ab8), (kernel_ulong_t)&bxt_i2c_info },
200 { PCI_VDEVICE(INTEL, 0x0aba), (kernel_ulong_t)&bxt_i2c_info },
201 { PCI_VDEVICE(INTEL, 0x0abc), (kernel_ulong_t)&bxt_uart_info },
202 { PCI_VDEVICE(INTEL, 0x0abe), (kernel_ulong_t)&bxt_uart_info },
203 { PCI_VDEVICE(INTEL, 0x0ac0), (kernel_ulong_t)&bxt_uart_info },
204 { PCI_VDEVICE(INTEL, 0x0ac2), (kernel_ulong_t)&bxt_info },
205 { PCI_VDEVICE(INTEL, 0x0ac4), (kernel_ulong_t)&bxt_info },
206 { PCI_VDEVICE(INTEL, 0x0ac6), (kernel_ulong_t)&bxt_info },
207 { PCI_VDEVICE(INTEL, 0x0aee), (kernel_ulong_t)&bxt_uart_info },
023269cc
HZ
208 /* BXT B-Step */
209 { PCI_VDEVICE(INTEL, 0x1aac), (kernel_ulong_t)&bxt_i2c_info },
210 { PCI_VDEVICE(INTEL, 0x1aae), (kernel_ulong_t)&bxt_i2c_info },
211 { PCI_VDEVICE(INTEL, 0x1ab0), (kernel_ulong_t)&bxt_i2c_info },
212 { PCI_VDEVICE(INTEL, 0x1ab2), (kernel_ulong_t)&bxt_i2c_info },
213 { PCI_VDEVICE(INTEL, 0x1ab4), (kernel_ulong_t)&bxt_i2c_info },
214 { PCI_VDEVICE(INTEL, 0x1ab6), (kernel_ulong_t)&bxt_i2c_info },
215 { PCI_VDEVICE(INTEL, 0x1ab8), (kernel_ulong_t)&bxt_i2c_info },
216 { PCI_VDEVICE(INTEL, 0x1aba), (kernel_ulong_t)&bxt_i2c_info },
217 { PCI_VDEVICE(INTEL, 0x1abc), (kernel_ulong_t)&bxt_uart_info },
218 { PCI_VDEVICE(INTEL, 0x1abe), (kernel_ulong_t)&bxt_uart_info },
219 { PCI_VDEVICE(INTEL, 0x1ac0), (kernel_ulong_t)&bxt_uart_info },
220 { PCI_VDEVICE(INTEL, 0x1ac2), (kernel_ulong_t)&bxt_info },
221 { PCI_VDEVICE(INTEL, 0x1ac4), (kernel_ulong_t)&bxt_info },
222 { PCI_VDEVICE(INTEL, 0x1ac6), (kernel_ulong_t)&bxt_info },
223 { PCI_VDEVICE(INTEL, 0x1aee), (kernel_ulong_t)&bxt_uart_info },
3ea2e4ea
AS
224 /* EBG */
225 { PCI_VDEVICE(INTEL, 0x1bad), (kernel_ulong_t)&bxt_uart_info },
226 { PCI_VDEVICE(INTEL, 0x1bae), (kernel_ulong_t)&bxt_uart_info },
f80e78aa 227 /* GLK */
3f31bc67
JN
228 { PCI_VDEVICE(INTEL, 0x31ac), (kernel_ulong_t)&glk_i2c_info },
229 { PCI_VDEVICE(INTEL, 0x31ae), (kernel_ulong_t)&glk_i2c_info },
230 { PCI_VDEVICE(INTEL, 0x31b0), (kernel_ulong_t)&glk_i2c_info },
231 { PCI_VDEVICE(INTEL, 0x31b2), (kernel_ulong_t)&glk_i2c_info },
232 { PCI_VDEVICE(INTEL, 0x31b4), (kernel_ulong_t)&glk_i2c_info },
233 { PCI_VDEVICE(INTEL, 0x31b6), (kernel_ulong_t)&glk_i2c_info },
234 { PCI_VDEVICE(INTEL, 0x31b8), (kernel_ulong_t)&glk_i2c_info },
235 { PCI_VDEVICE(INTEL, 0x31ba), (kernel_ulong_t)&glk_i2c_info },
f80e78aa
AS
236 { PCI_VDEVICE(INTEL, 0x31bc), (kernel_ulong_t)&bxt_uart_info },
237 { PCI_VDEVICE(INTEL, 0x31be), (kernel_ulong_t)&bxt_uart_info },
238 { PCI_VDEVICE(INTEL, 0x31c0), (kernel_ulong_t)&bxt_uart_info },
f80e78aa
AS
239 { PCI_VDEVICE(INTEL, 0x31c2), (kernel_ulong_t)&bxt_info },
240 { PCI_VDEVICE(INTEL, 0x31c4), (kernel_ulong_t)&bxt_info },
241 { PCI_VDEVICE(INTEL, 0x31c6), (kernel_ulong_t)&bxt_info },
f88314c1 242 { PCI_VDEVICE(INTEL, 0x31ee), (kernel_ulong_t)&bxt_uart_info },
a13c93b3
MW
243 /* ICL-LP */
244 { PCI_VDEVICE(INTEL, 0x34a8), (kernel_ulong_t)&spt_uart_info },
245 { PCI_VDEVICE(INTEL, 0x34a9), (kernel_ulong_t)&spt_uart_info },
246 { PCI_VDEVICE(INTEL, 0x34aa), (kernel_ulong_t)&spt_info },
247 { PCI_VDEVICE(INTEL, 0x34ab), (kernel_ulong_t)&spt_info },
248 { PCI_VDEVICE(INTEL, 0x34c5), (kernel_ulong_t)&bxt_i2c_info },
249 { PCI_VDEVICE(INTEL, 0x34c6), (kernel_ulong_t)&bxt_i2c_info },
250 { PCI_VDEVICE(INTEL, 0x34c7), (kernel_ulong_t)&spt_uart_info },
251 { PCI_VDEVICE(INTEL, 0x34e8), (kernel_ulong_t)&bxt_i2c_info },
252 { PCI_VDEVICE(INTEL, 0x34e9), (kernel_ulong_t)&bxt_i2c_info },
253 { PCI_VDEVICE(INTEL, 0x34ea), (kernel_ulong_t)&bxt_i2c_info },
254 { PCI_VDEVICE(INTEL, 0x34eb), (kernel_ulong_t)&bxt_i2c_info },
255 { PCI_VDEVICE(INTEL, 0x34fb), (kernel_ulong_t)&spt_info },
bb7fcad4
AS
256 /* TGL-H */
257 { PCI_VDEVICE(INTEL, 0x43a7), (kernel_ulong_t)&bxt_uart_info },
258 { PCI_VDEVICE(INTEL, 0x43a8), (kernel_ulong_t)&bxt_uart_info },
259 { PCI_VDEVICE(INTEL, 0x43a9), (kernel_ulong_t)&bxt_uart_info },
260 { PCI_VDEVICE(INTEL, 0x43aa), (kernel_ulong_t)&bxt_info },
261 { PCI_VDEVICE(INTEL, 0x43ab), (kernel_ulong_t)&bxt_info },
262 { PCI_VDEVICE(INTEL, 0x43ad), (kernel_ulong_t)&bxt_i2c_info },
263 { PCI_VDEVICE(INTEL, 0x43ae), (kernel_ulong_t)&bxt_i2c_info },
264 { PCI_VDEVICE(INTEL, 0x43d8), (kernel_ulong_t)&bxt_i2c_info },
265 { PCI_VDEVICE(INTEL, 0x43da), (kernel_ulong_t)&bxt_uart_info },
266 { PCI_VDEVICE(INTEL, 0x43e8), (kernel_ulong_t)&bxt_i2c_info },
267 { PCI_VDEVICE(INTEL, 0x43e9), (kernel_ulong_t)&bxt_i2c_info },
268 { PCI_VDEVICE(INTEL, 0x43ea), (kernel_ulong_t)&bxt_i2c_info },
269 { PCI_VDEVICE(INTEL, 0x43eb), (kernel_ulong_t)&bxt_i2c_info },
270 { PCI_VDEVICE(INTEL, 0x43fb), (kernel_ulong_t)&bxt_info },
271 { PCI_VDEVICE(INTEL, 0x43fd), (kernel_ulong_t)&bxt_info },
01e4ecee
AS
272 /* EHL */
273 { PCI_VDEVICE(INTEL, 0x4b28), (kernel_ulong_t)&bxt_uart_info },
274 { PCI_VDEVICE(INTEL, 0x4b29), (kernel_ulong_t)&bxt_uart_info },
275 { PCI_VDEVICE(INTEL, 0x4b2a), (kernel_ulong_t)&bxt_info },
276 { PCI_VDEVICE(INTEL, 0x4b2b), (kernel_ulong_t)&bxt_info },
277 { PCI_VDEVICE(INTEL, 0x4b37), (kernel_ulong_t)&bxt_info },
d2923aa4
JN
278 { PCI_VDEVICE(INTEL, 0x4b44), (kernel_ulong_t)&ehl_i2c_info },
279 { PCI_VDEVICE(INTEL, 0x4b45), (kernel_ulong_t)&ehl_i2c_info },
280 { PCI_VDEVICE(INTEL, 0x4b4b), (kernel_ulong_t)&ehl_i2c_info },
281 { PCI_VDEVICE(INTEL, 0x4b4c), (kernel_ulong_t)&ehl_i2c_info },
01e4ecee 282 { PCI_VDEVICE(INTEL, 0x4b4d), (kernel_ulong_t)&bxt_uart_info },
d2923aa4
JN
283 { PCI_VDEVICE(INTEL, 0x4b78), (kernel_ulong_t)&ehl_i2c_info },
284 { PCI_VDEVICE(INTEL, 0x4b79), (kernel_ulong_t)&ehl_i2c_info },
285 { PCI_VDEVICE(INTEL, 0x4b7a), (kernel_ulong_t)&ehl_i2c_info },
286 { PCI_VDEVICE(INTEL, 0x4b7b), (kernel_ulong_t)&ehl_i2c_info },
57b89dd2
AS
287 /* JSL */
288 { PCI_VDEVICE(INTEL, 0x4da8), (kernel_ulong_t)&spt_uart_info },
289 { PCI_VDEVICE(INTEL, 0x4da9), (kernel_ulong_t)&spt_uart_info },
290 { PCI_VDEVICE(INTEL, 0x4daa), (kernel_ulong_t)&spt_info },
291 { PCI_VDEVICE(INTEL, 0x4dab), (kernel_ulong_t)&spt_info },
57b89dd2
AS
292 { PCI_VDEVICE(INTEL, 0x4dc5), (kernel_ulong_t)&bxt_i2c_info },
293 { PCI_VDEVICE(INTEL, 0x4dc6), (kernel_ulong_t)&bxt_i2c_info },
9a875245 294 { PCI_VDEVICE(INTEL, 0x4dc7), (kernel_ulong_t)&spt_uart_info },
57b89dd2
AS
295 { PCI_VDEVICE(INTEL, 0x4de8), (kernel_ulong_t)&bxt_i2c_info },
296 { PCI_VDEVICE(INTEL, 0x4de9), (kernel_ulong_t)&bxt_i2c_info },
297 { PCI_VDEVICE(INTEL, 0x4dea), (kernel_ulong_t)&bxt_i2c_info },
298 { PCI_VDEVICE(INTEL, 0x4deb), (kernel_ulong_t)&bxt_i2c_info },
299 { PCI_VDEVICE(INTEL, 0x4dfb), (kernel_ulong_t)&spt_info },
f7b67321
AS
300 /* ADL-P */
301 { PCI_VDEVICE(INTEL, 0x51a8), (kernel_ulong_t)&bxt_uart_info },
302 { PCI_VDEVICE(INTEL, 0x51a9), (kernel_ulong_t)&bxt_uart_info },
303 { PCI_VDEVICE(INTEL, 0x51aa), (kernel_ulong_t)&bxt_info },
304 { PCI_VDEVICE(INTEL, 0x51ab), (kernel_ulong_t)&bxt_info },
305 { PCI_VDEVICE(INTEL, 0x51c5), (kernel_ulong_t)&bxt_i2c_info },
306 { PCI_VDEVICE(INTEL, 0x51c6), (kernel_ulong_t)&bxt_i2c_info },
307 { PCI_VDEVICE(INTEL, 0x51c7), (kernel_ulong_t)&bxt_uart_info },
308 { PCI_VDEVICE(INTEL, 0x51e8), (kernel_ulong_t)&bxt_i2c_info },
309 { PCI_VDEVICE(INTEL, 0x51e9), (kernel_ulong_t)&bxt_i2c_info },
310 { PCI_VDEVICE(INTEL, 0x51ea), (kernel_ulong_t)&bxt_i2c_info },
311 { PCI_VDEVICE(INTEL, 0x51eb), (kernel_ulong_t)&bxt_i2c_info },
312 { PCI_VDEVICE(INTEL, 0x51fb), (kernel_ulong_t)&bxt_info },
ff0a04a6 313 /* APL */
c50cdd62
JN
314 { PCI_VDEVICE(INTEL, 0x5aac), (kernel_ulong_t)&apl_i2c_info },
315 { PCI_VDEVICE(INTEL, 0x5aae), (kernel_ulong_t)&apl_i2c_info },
316 { PCI_VDEVICE(INTEL, 0x5ab0), (kernel_ulong_t)&apl_i2c_info },
317 { PCI_VDEVICE(INTEL, 0x5ab2), (kernel_ulong_t)&apl_i2c_info },
318 { PCI_VDEVICE(INTEL, 0x5ab4), (kernel_ulong_t)&apl_i2c_info },
319 { PCI_VDEVICE(INTEL, 0x5ab6), (kernel_ulong_t)&apl_i2c_info },
320 { PCI_VDEVICE(INTEL, 0x5ab8), (kernel_ulong_t)&apl_i2c_info },
321 { PCI_VDEVICE(INTEL, 0x5aba), (kernel_ulong_t)&apl_i2c_info },
ff0a04a6
AS
322 { PCI_VDEVICE(INTEL, 0x5abc), (kernel_ulong_t)&bxt_uart_info },
323 { PCI_VDEVICE(INTEL, 0x5abe), (kernel_ulong_t)&bxt_uart_info },
324 { PCI_VDEVICE(INTEL, 0x5ac0), (kernel_ulong_t)&bxt_uart_info },
325 { PCI_VDEVICE(INTEL, 0x5ac2), (kernel_ulong_t)&bxt_info },
326 { PCI_VDEVICE(INTEL, 0x5ac4), (kernel_ulong_t)&bxt_info },
327 { PCI_VDEVICE(INTEL, 0x5ac6), (kernel_ulong_t)&bxt_info },
328 { PCI_VDEVICE(INTEL, 0x5aee), (kernel_ulong_t)&bxt_uart_info },
c7b79a75
JN
329 /* ADL-S */
330 { PCI_VDEVICE(INTEL, 0x7aa8), (kernel_ulong_t)&bxt_uart_info },
331 { PCI_VDEVICE(INTEL, 0x7aa9), (kernel_ulong_t)&bxt_uart_info },
332 { PCI_VDEVICE(INTEL, 0x7aaa), (kernel_ulong_t)&bxt_info },
333 { PCI_VDEVICE(INTEL, 0x7aab), (kernel_ulong_t)&bxt_info },
334 { PCI_VDEVICE(INTEL, 0x7acc), (kernel_ulong_t)&bxt_i2c_info },
335 { PCI_VDEVICE(INTEL, 0x7acd), (kernel_ulong_t)&bxt_i2c_info },
336 { PCI_VDEVICE(INTEL, 0x7ace), (kernel_ulong_t)&bxt_i2c_info },
337 { PCI_VDEVICE(INTEL, 0x7acf), (kernel_ulong_t)&bxt_i2c_info },
338 { PCI_VDEVICE(INTEL, 0x7adc), (kernel_ulong_t)&bxt_uart_info },
339 { PCI_VDEVICE(INTEL, 0x7af9), (kernel_ulong_t)&bxt_info },
340 { PCI_VDEVICE(INTEL, 0x7afb), (kernel_ulong_t)&bxt_info },
341 { PCI_VDEVICE(INTEL, 0x7afc), (kernel_ulong_t)&bxt_i2c_info },
342 { PCI_VDEVICE(INTEL, 0x7afd), (kernel_ulong_t)&bxt_i2c_info },
343 { PCI_VDEVICE(INTEL, 0x7afe), (kernel_ulong_t)&bxt_uart_info },
5f039fa7
AS
344 /* LKF */
345 { PCI_VDEVICE(INTEL, 0x98a8), (kernel_ulong_t)&bxt_uart_info },
346 { PCI_VDEVICE(INTEL, 0x98a9), (kernel_ulong_t)&bxt_uart_info },
347 { PCI_VDEVICE(INTEL, 0x98c7), (kernel_ulong_t)&bxt_uart_info },
4b45efe8
AS
348 /* SPT-LP */
349 { PCI_VDEVICE(INTEL, 0x9d27), (kernel_ulong_t)&spt_uart_info },
350 { PCI_VDEVICE(INTEL, 0x9d28), (kernel_ulong_t)&spt_uart_info },
351 { PCI_VDEVICE(INTEL, 0x9d29), (kernel_ulong_t)&spt_info },
352 { PCI_VDEVICE(INTEL, 0x9d2a), (kernel_ulong_t)&spt_info },
028af594
MW
353 { PCI_VDEVICE(INTEL, 0x9d60), (kernel_ulong_t)&spt_i2c_info },
354 { PCI_VDEVICE(INTEL, 0x9d61), (kernel_ulong_t)&spt_i2c_info },
355 { PCI_VDEVICE(INTEL, 0x9d62), (kernel_ulong_t)&spt_i2c_info },
356 { PCI_VDEVICE(INTEL, 0x9d63), (kernel_ulong_t)&spt_i2c_info },
357 { PCI_VDEVICE(INTEL, 0x9d64), (kernel_ulong_t)&spt_i2c_info },
358 { PCI_VDEVICE(INTEL, 0x9d65), (kernel_ulong_t)&spt_i2c_info },
4b45efe8 359 { PCI_VDEVICE(INTEL, 0x9d66), (kernel_ulong_t)&spt_uart_info },
b418bbff
AS
360 /* CNL-LP */
361 { PCI_VDEVICE(INTEL, 0x9da8), (kernel_ulong_t)&spt_uart_info },
362 { PCI_VDEVICE(INTEL, 0x9da9), (kernel_ulong_t)&spt_uart_info },
363 { PCI_VDEVICE(INTEL, 0x9daa), (kernel_ulong_t)&spt_info },
364 { PCI_VDEVICE(INTEL, 0x9dab), (kernel_ulong_t)&spt_info },
4e93a658
JN
365 { PCI_VDEVICE(INTEL, 0x9dc5), (kernel_ulong_t)&cnl_i2c_info },
366 { PCI_VDEVICE(INTEL, 0x9dc6), (kernel_ulong_t)&cnl_i2c_info },
b418bbff 367 { PCI_VDEVICE(INTEL, 0x9dc7), (kernel_ulong_t)&spt_uart_info },
4e93a658
JN
368 { PCI_VDEVICE(INTEL, 0x9de8), (kernel_ulong_t)&cnl_i2c_info },
369 { PCI_VDEVICE(INTEL, 0x9de9), (kernel_ulong_t)&cnl_i2c_info },
370 { PCI_VDEVICE(INTEL, 0x9dea), (kernel_ulong_t)&cnl_i2c_info },
371 { PCI_VDEVICE(INTEL, 0x9deb), (kernel_ulong_t)&cnl_i2c_info },
f88314c1 372 { PCI_VDEVICE(INTEL, 0x9dfb), (kernel_ulong_t)&spt_info },
ec65b560
AS
373 /* TGL-LP */
374 { PCI_VDEVICE(INTEL, 0xa0a8), (kernel_ulong_t)&bxt_uart_info },
375 { PCI_VDEVICE(INTEL, 0xa0a9), (kernel_ulong_t)&bxt_uart_info },
376 { PCI_VDEVICE(INTEL, 0xa0aa), (kernel_ulong_t)&spt_info },
377 { PCI_VDEVICE(INTEL, 0xa0ab), (kernel_ulong_t)&spt_info },
378 { PCI_VDEVICE(INTEL, 0xa0c5), (kernel_ulong_t)&spt_i2c_info },
379 { PCI_VDEVICE(INTEL, 0xa0c6), (kernel_ulong_t)&spt_i2c_info },
380 { PCI_VDEVICE(INTEL, 0xa0c7), (kernel_ulong_t)&bxt_uart_info },
381 { PCI_VDEVICE(INTEL, 0xa0d8), (kernel_ulong_t)&spt_i2c_info },
382 { PCI_VDEVICE(INTEL, 0xa0d9), (kernel_ulong_t)&spt_i2c_info },
383 { PCI_VDEVICE(INTEL, 0xa0da), (kernel_ulong_t)&bxt_uart_info },
384 { PCI_VDEVICE(INTEL, 0xa0db), (kernel_ulong_t)&bxt_uart_info },
385 { PCI_VDEVICE(INTEL, 0xa0dc), (kernel_ulong_t)&bxt_uart_info },
386 { PCI_VDEVICE(INTEL, 0xa0dd), (kernel_ulong_t)&bxt_uart_info },
387 { PCI_VDEVICE(INTEL, 0xa0de), (kernel_ulong_t)&spt_info },
388 { PCI_VDEVICE(INTEL, 0xa0df), (kernel_ulong_t)&spt_info },
389 { PCI_VDEVICE(INTEL, 0xa0e8), (kernel_ulong_t)&spt_i2c_info },
390 { PCI_VDEVICE(INTEL, 0xa0e9), (kernel_ulong_t)&spt_i2c_info },
391 { PCI_VDEVICE(INTEL, 0xa0ea), (kernel_ulong_t)&spt_i2c_info },
392 { PCI_VDEVICE(INTEL, 0xa0eb), (kernel_ulong_t)&spt_i2c_info },
393 { PCI_VDEVICE(INTEL, 0xa0fb), (kernel_ulong_t)&spt_info },
394 { PCI_VDEVICE(INTEL, 0xa0fd), (kernel_ulong_t)&spt_info },
395 { PCI_VDEVICE(INTEL, 0xa0fe), (kernel_ulong_t)&spt_info },
4b45efe8
AS
396 /* SPT-H */
397 { PCI_VDEVICE(INTEL, 0xa127), (kernel_ulong_t)&spt_uart_info },
398 { PCI_VDEVICE(INTEL, 0xa128), (kernel_ulong_t)&spt_uart_info },
399 { PCI_VDEVICE(INTEL, 0xa129), (kernel_ulong_t)&spt_info },
400 { PCI_VDEVICE(INTEL, 0xa12a), (kernel_ulong_t)&spt_info },
028af594
MW
401 { PCI_VDEVICE(INTEL, 0xa160), (kernel_ulong_t)&spt_i2c_info },
402 { PCI_VDEVICE(INTEL, 0xa161), (kernel_ulong_t)&spt_i2c_info },
e4b91470 403 { PCI_VDEVICE(INTEL, 0xa162), (kernel_ulong_t)&spt_i2c_info },
4b45efe8 404 { PCI_VDEVICE(INTEL, 0xa166), (kernel_ulong_t)&spt_uart_info },
77fc5ff6 405 /* KBL-H */
2c8c3416
JN
406 { PCI_VDEVICE(INTEL, 0xa2a7), (kernel_ulong_t)&spt_uart_info },
407 { PCI_VDEVICE(INTEL, 0xa2a8), (kernel_ulong_t)&spt_uart_info },
408 { PCI_VDEVICE(INTEL, 0xa2a9), (kernel_ulong_t)&spt_info },
409 { PCI_VDEVICE(INTEL, 0xa2aa), (kernel_ulong_t)&spt_info },
410 { PCI_VDEVICE(INTEL, 0xa2e0), (kernel_ulong_t)&spt_i2c_info },
411 { PCI_VDEVICE(INTEL, 0xa2e1), (kernel_ulong_t)&spt_i2c_info },
412 { PCI_VDEVICE(INTEL, 0xa2e2), (kernel_ulong_t)&spt_i2c_info },
413 { PCI_VDEVICE(INTEL, 0xa2e3), (kernel_ulong_t)&spt_i2c_info },
414 { PCI_VDEVICE(INTEL, 0xa2e6), (kernel_ulong_t)&spt_uart_info },
b418bbff
AS
415 /* CNL-H */
416 { PCI_VDEVICE(INTEL, 0xa328), (kernel_ulong_t)&spt_uart_info },
417 { PCI_VDEVICE(INTEL, 0xa329), (kernel_ulong_t)&spt_uart_info },
418 { PCI_VDEVICE(INTEL, 0xa32a), (kernel_ulong_t)&spt_info },
419 { PCI_VDEVICE(INTEL, 0xa32b), (kernel_ulong_t)&spt_info },
b418bbff 420 { PCI_VDEVICE(INTEL, 0xa347), (kernel_ulong_t)&spt_uart_info },
4e93a658
JN
421 { PCI_VDEVICE(INTEL, 0xa368), (kernel_ulong_t)&cnl_i2c_info },
422 { PCI_VDEVICE(INTEL, 0xa369), (kernel_ulong_t)&cnl_i2c_info },
423 { PCI_VDEVICE(INTEL, 0xa36a), (kernel_ulong_t)&cnl_i2c_info },
424 { PCI_VDEVICE(INTEL, 0xa36b), (kernel_ulong_t)&cnl_i2c_info },
f88314c1 425 { PCI_VDEVICE(INTEL, 0xa37b), (kernel_ulong_t)&spt_info },
4e213b45
AS
426 /* CML-V */
427 { PCI_VDEVICE(INTEL, 0xa3a7), (kernel_ulong_t)&spt_uart_info },
428 { PCI_VDEVICE(INTEL, 0xa3a8), (kernel_ulong_t)&spt_uart_info },
429 { PCI_VDEVICE(INTEL, 0xa3a9), (kernel_ulong_t)&spt_info },
430 { PCI_VDEVICE(INTEL, 0xa3aa), (kernel_ulong_t)&spt_info },
431 { PCI_VDEVICE(INTEL, 0xa3e0), (kernel_ulong_t)&spt_i2c_info },
432 { PCI_VDEVICE(INTEL, 0xa3e1), (kernel_ulong_t)&spt_i2c_info },
433 { PCI_VDEVICE(INTEL, 0xa3e2), (kernel_ulong_t)&spt_i2c_info },
434 { PCI_VDEVICE(INTEL, 0xa3e3), (kernel_ulong_t)&spt_i2c_info },
435 { PCI_VDEVICE(INTEL, 0xa3e6), (kernel_ulong_t)&spt_uart_info },
4b45efe8
AS
436 { }
437};
438MODULE_DEVICE_TABLE(pci, intel_lpss_pci_ids);
439
440static struct pci_driver intel_lpss_pci_driver = {
441 .name = "intel-lpss",
442 .id_table = intel_lpss_pci_ids,
443 .probe = intel_lpss_pci_probe,
444 .remove = intel_lpss_pci_remove,
445 .driver = {
446 .pm = &intel_lpss_pci_pm_ops,
447 },
448};
449
450module_pci_driver(intel_lpss_pci_driver);
451
452MODULE_AUTHOR("Andy Shevchenko <andriy.shevchenko@linux.intel.com>");
453MODULE_AUTHOR("Mika Westerberg <mika.westerberg@linux.intel.com>");
454MODULE_DESCRIPTION("Intel LPSS PCI driver");
455MODULE_LICENSE("GPL v2");