xref: /openbmc/linux/drivers/mfd/intel-lpss-pci.c (revision a13c93b3a5db87a173b2cdc6c2f2122d9d677808)
14b45efe8SAndy Shevchenko /*
24b45efe8SAndy Shevchenko  * Intel LPSS PCI support.
34b45efe8SAndy Shevchenko  *
44b45efe8SAndy Shevchenko  * Copyright (C) 2015, Intel Corporation
54b45efe8SAndy Shevchenko  *
64b45efe8SAndy Shevchenko  * Authors: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
74b45efe8SAndy Shevchenko  *          Mika Westerberg <mika.westerberg@linux.intel.com>
84b45efe8SAndy Shevchenko  *
94b45efe8SAndy Shevchenko  * This program is free software; you can redistribute it and/or modify
104b45efe8SAndy Shevchenko  * it under the terms of the GNU General Public License version 2 as
114b45efe8SAndy Shevchenko  * published by the Free Software Foundation.
124b45efe8SAndy Shevchenko  */
134b45efe8SAndy Shevchenko 
144b45efe8SAndy Shevchenko #include <linux/ioport.h>
154b45efe8SAndy Shevchenko #include <linux/kernel.h>
164b45efe8SAndy Shevchenko #include <linux/module.h>
174b45efe8SAndy Shevchenko #include <linux/pci.h>
184b45efe8SAndy Shevchenko #include <linux/pm.h>
194b45efe8SAndy Shevchenko #include <linux/pm_runtime.h>
20028af594SMika Westerberg #include <linux/property.h>
214b45efe8SAndy Shevchenko 
224b45efe8SAndy Shevchenko #include "intel-lpss.h"
234b45efe8SAndy Shevchenko 
244b45efe8SAndy Shevchenko static int intel_lpss_pci_probe(struct pci_dev *pdev,
254b45efe8SAndy Shevchenko 				const struct pci_device_id *id)
264b45efe8SAndy Shevchenko {
274b45efe8SAndy Shevchenko 	struct intel_lpss_platform_info *info;
284b45efe8SAndy Shevchenko 	int ret;
294b45efe8SAndy Shevchenko 
304b45efe8SAndy Shevchenko 	ret = pcim_enable_device(pdev);
314b45efe8SAndy Shevchenko 	if (ret)
324b45efe8SAndy Shevchenko 		return ret;
334b45efe8SAndy Shevchenko 
344b45efe8SAndy Shevchenko 	info = devm_kmemdup(&pdev->dev, (void *)id->driver_data, sizeof(*info),
354b45efe8SAndy Shevchenko 			    GFP_KERNEL);
364b45efe8SAndy Shevchenko 	if (!info)
374b45efe8SAndy Shevchenko 		return -ENOMEM;
384b45efe8SAndy Shevchenko 
394b45efe8SAndy Shevchenko 	info->mem = &pdev->resource[0];
404b45efe8SAndy Shevchenko 	info->irq = pdev->irq;
414b45efe8SAndy Shevchenko 
424b45efe8SAndy Shevchenko 	/* Probably it is enough to set this for iDMA capable devices only */
434b45efe8SAndy Shevchenko 	pci_set_master(pdev);
4485a9419aSAndy Shevchenko 	pci_try_set_mwi(pdev);
454b45efe8SAndy Shevchenko 
464b45efe8SAndy Shevchenko 	ret = intel_lpss_probe(&pdev->dev, info);
474b45efe8SAndy Shevchenko 	if (ret)
484b45efe8SAndy Shevchenko 		return ret;
494b45efe8SAndy Shevchenko 
504b45efe8SAndy Shevchenko 	pm_runtime_put(&pdev->dev);
514b45efe8SAndy Shevchenko 	pm_runtime_allow(&pdev->dev);
524b45efe8SAndy Shevchenko 
534b45efe8SAndy Shevchenko 	return 0;
544b45efe8SAndy Shevchenko }
554b45efe8SAndy Shevchenko 
564b45efe8SAndy Shevchenko static void intel_lpss_pci_remove(struct pci_dev *pdev)
574b45efe8SAndy Shevchenko {
584b45efe8SAndy Shevchenko 	pm_runtime_forbid(&pdev->dev);
594b45efe8SAndy Shevchenko 	pm_runtime_get_sync(&pdev->dev);
604b45efe8SAndy Shevchenko 
614b45efe8SAndy Shevchenko 	intel_lpss_remove(&pdev->dev);
624b45efe8SAndy Shevchenko }
634b45efe8SAndy Shevchenko 
644b45efe8SAndy Shevchenko static INTEL_LPSS_PM_OPS(intel_lpss_pci_pm_ops);
654b45efe8SAndy Shevchenko 
664b45efe8SAndy Shevchenko static const struct intel_lpss_platform_info spt_info = {
674b45efe8SAndy Shevchenko 	.clk_rate = 120000000,
684b45efe8SAndy Shevchenko };
694b45efe8SAndy Shevchenko 
70028af594SMika Westerberg static struct property_entry spt_i2c_properties[] = {
71028af594SMika Westerberg 	PROPERTY_ENTRY_U32("i2c-sda-hold-time-ns", 230),
72028af594SMika Westerberg 	{ },
73028af594SMika Westerberg };
74028af594SMika Westerberg 
75028af594SMika Westerberg static const struct intel_lpss_platform_info spt_i2c_info = {
76028af594SMika Westerberg 	.clk_rate = 120000000,
77f4d05266SHeikki Krogerus 	.properties = spt_i2c_properties,
78028af594SMika Westerberg };
79028af594SMika Westerberg 
80ec14c539SAndy Shevchenko static struct property_entry uart_properties[] = {
81ec14c539SAndy Shevchenko 	PROPERTY_ENTRY_U32("reg-io-width", 4),
82ec14c539SAndy Shevchenko 	PROPERTY_ENTRY_U32("reg-shift", 2),
83ec14c539SAndy Shevchenko 	PROPERTY_ENTRY_BOOL("snps,uart-16550-compatible"),
84ec14c539SAndy Shevchenko 	{ },
85ec14c539SAndy Shevchenko };
86ec14c539SAndy Shevchenko 
874b45efe8SAndy Shevchenko static const struct intel_lpss_platform_info spt_uart_info = {
884b45efe8SAndy Shevchenko 	.clk_rate = 120000000,
894b45efe8SAndy Shevchenko 	.clk_con_id = "baudclk",
90f4d05266SHeikki Krogerus 	.properties = uart_properties,
914b45efe8SAndy Shevchenko };
924b45efe8SAndy Shevchenko 
93ff0a04a6SAndy Shevchenko static const struct intel_lpss_platform_info bxt_info = {
94ff0a04a6SAndy Shevchenko 	.clk_rate = 100000000,
95ff0a04a6SAndy Shevchenko };
96ff0a04a6SAndy Shevchenko 
97ff0a04a6SAndy Shevchenko static const struct intel_lpss_platform_info bxt_uart_info = {
98ff0a04a6SAndy Shevchenko 	.clk_rate = 100000000,
99ff0a04a6SAndy Shevchenko 	.clk_con_id = "baudclk",
100f4d05266SHeikki Krogerus 	.properties = uart_properties,
101ff0a04a6SAndy Shevchenko };
102ff0a04a6SAndy Shevchenko 
1030343b2f4SMika Westerberg static struct property_entry bxt_i2c_properties[] = {
1040343b2f4SMika Westerberg 	PROPERTY_ENTRY_U32("i2c-sda-hold-time-ns", 42),
1050343b2f4SMika Westerberg 	PROPERTY_ENTRY_U32("i2c-sda-falling-time-ns", 171),
1060343b2f4SMika Westerberg 	PROPERTY_ENTRY_U32("i2c-scl-falling-time-ns", 208),
1070343b2f4SMika Westerberg 	{ },
1080343b2f4SMika Westerberg };
1090343b2f4SMika Westerberg 
110ff0a04a6SAndy Shevchenko static const struct intel_lpss_platform_info bxt_i2c_info = {
111ff0a04a6SAndy Shevchenko 	.clk_rate = 133000000,
112f4d05266SHeikki Krogerus 	.properties = bxt_i2c_properties,
113ff0a04a6SAndy Shevchenko };
114ff0a04a6SAndy Shevchenko 
115c50cdd62SJarkko Nikula static struct property_entry apl_i2c_properties[] = {
116c50cdd62SJarkko Nikula 	PROPERTY_ENTRY_U32("i2c-sda-hold-time-ns", 207),
117c50cdd62SJarkko Nikula 	PROPERTY_ENTRY_U32("i2c-sda-falling-time-ns", 171),
118c50cdd62SJarkko Nikula 	PROPERTY_ENTRY_U32("i2c-scl-falling-time-ns", 208),
119c50cdd62SJarkko Nikula 	{ },
120c50cdd62SJarkko Nikula };
121c50cdd62SJarkko Nikula 
122c50cdd62SJarkko Nikula static const struct intel_lpss_platform_info apl_i2c_info = {
123c50cdd62SJarkko Nikula 	.clk_rate = 133000000,
124c50cdd62SJarkko Nikula 	.properties = apl_i2c_properties,
125c50cdd62SJarkko Nikula };
126c50cdd62SJarkko Nikula 
1274e93a658SJarkko Nikula static const struct intel_lpss_platform_info cnl_i2c_info = {
1284e93a658SJarkko Nikula 	.clk_rate = 216000000,
1294e93a658SJarkko Nikula 	.properties = spt_i2c_properties,
1304e93a658SJarkko Nikula };
1314e93a658SJarkko Nikula 
1324b45efe8SAndy Shevchenko static const struct pci_device_id intel_lpss_pci_ids[] = {
133023269ccSHuiquan Zhong 	/* BXT A-Step */
134ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x0aac), (kernel_ulong_t)&bxt_i2c_info },
135ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x0aae), (kernel_ulong_t)&bxt_i2c_info },
136ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x0ab0), (kernel_ulong_t)&bxt_i2c_info },
137ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x0ab2), (kernel_ulong_t)&bxt_i2c_info },
138ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x0ab4), (kernel_ulong_t)&bxt_i2c_info },
139ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x0ab6), (kernel_ulong_t)&bxt_i2c_info },
140ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x0ab8), (kernel_ulong_t)&bxt_i2c_info },
141ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x0aba), (kernel_ulong_t)&bxt_i2c_info },
142ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x0abc), (kernel_ulong_t)&bxt_uart_info },
143ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x0abe), (kernel_ulong_t)&bxt_uart_info },
144ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x0ac0), (kernel_ulong_t)&bxt_uart_info },
145ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x0ac2), (kernel_ulong_t)&bxt_info },
146ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x0ac4), (kernel_ulong_t)&bxt_info },
147ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x0ac6), (kernel_ulong_t)&bxt_info },
148ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x0aee), (kernel_ulong_t)&bxt_uart_info },
149023269ccSHuiquan Zhong 	/* BXT B-Step */
150023269ccSHuiquan Zhong 	{ PCI_VDEVICE(INTEL, 0x1aac), (kernel_ulong_t)&bxt_i2c_info },
151023269ccSHuiquan Zhong 	{ PCI_VDEVICE(INTEL, 0x1aae), (kernel_ulong_t)&bxt_i2c_info },
152023269ccSHuiquan Zhong 	{ PCI_VDEVICE(INTEL, 0x1ab0), (kernel_ulong_t)&bxt_i2c_info },
153023269ccSHuiquan Zhong 	{ PCI_VDEVICE(INTEL, 0x1ab2), (kernel_ulong_t)&bxt_i2c_info },
154023269ccSHuiquan Zhong 	{ PCI_VDEVICE(INTEL, 0x1ab4), (kernel_ulong_t)&bxt_i2c_info },
155023269ccSHuiquan Zhong 	{ PCI_VDEVICE(INTEL, 0x1ab6), (kernel_ulong_t)&bxt_i2c_info },
156023269ccSHuiquan Zhong 	{ PCI_VDEVICE(INTEL, 0x1ab8), (kernel_ulong_t)&bxt_i2c_info },
157023269ccSHuiquan Zhong 	{ PCI_VDEVICE(INTEL, 0x1aba), (kernel_ulong_t)&bxt_i2c_info },
158023269ccSHuiquan Zhong 	{ PCI_VDEVICE(INTEL, 0x1abc), (kernel_ulong_t)&bxt_uart_info },
159023269ccSHuiquan Zhong 	{ PCI_VDEVICE(INTEL, 0x1abe), (kernel_ulong_t)&bxt_uart_info },
160023269ccSHuiquan Zhong 	{ PCI_VDEVICE(INTEL, 0x1ac0), (kernel_ulong_t)&bxt_uart_info },
161023269ccSHuiquan Zhong 	{ PCI_VDEVICE(INTEL, 0x1ac2), (kernel_ulong_t)&bxt_info },
162023269ccSHuiquan Zhong 	{ PCI_VDEVICE(INTEL, 0x1ac4), (kernel_ulong_t)&bxt_info },
163023269ccSHuiquan Zhong 	{ PCI_VDEVICE(INTEL, 0x1ac6), (kernel_ulong_t)&bxt_info },
164023269ccSHuiquan Zhong 	{ PCI_VDEVICE(INTEL, 0x1aee), (kernel_ulong_t)&bxt_uart_info },
165f80e78aaSAndy Shevchenko 	/* GLK */
166f80e78aaSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x31ac), (kernel_ulong_t)&bxt_i2c_info },
167f80e78aaSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x31ae), (kernel_ulong_t)&bxt_i2c_info },
168f80e78aaSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x31b0), (kernel_ulong_t)&bxt_i2c_info },
169f80e78aaSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x31b2), (kernel_ulong_t)&bxt_i2c_info },
170f80e78aaSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x31b4), (kernel_ulong_t)&bxt_i2c_info },
171f80e78aaSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x31b6), (kernel_ulong_t)&bxt_i2c_info },
172f80e78aaSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x31b8), (kernel_ulong_t)&bxt_i2c_info },
173f80e78aaSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x31ba), (kernel_ulong_t)&bxt_i2c_info },
174f80e78aaSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x31bc), (kernel_ulong_t)&bxt_uart_info },
175f80e78aaSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x31be), (kernel_ulong_t)&bxt_uart_info },
176f80e78aaSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x31c0), (kernel_ulong_t)&bxt_uart_info },
177f80e78aaSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x31ee), (kernel_ulong_t)&bxt_uart_info },
178f80e78aaSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x31c2), (kernel_ulong_t)&bxt_info },
179f80e78aaSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x31c4), (kernel_ulong_t)&bxt_info },
180f80e78aaSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x31c6), (kernel_ulong_t)&bxt_info },
181*a13c93b3SMika Westerberg 	/* ICL-LP */
182*a13c93b3SMika Westerberg 	{ PCI_VDEVICE(INTEL, 0x34a8), (kernel_ulong_t)&spt_uart_info },
183*a13c93b3SMika Westerberg 	{ PCI_VDEVICE(INTEL, 0x34a9), (kernel_ulong_t)&spt_uart_info },
184*a13c93b3SMika Westerberg 	{ PCI_VDEVICE(INTEL, 0x34aa), (kernel_ulong_t)&spt_info },
185*a13c93b3SMika Westerberg 	{ PCI_VDEVICE(INTEL, 0x34ab), (kernel_ulong_t)&spt_info },
186*a13c93b3SMika Westerberg 	{ PCI_VDEVICE(INTEL, 0x34c5), (kernel_ulong_t)&bxt_i2c_info },
187*a13c93b3SMika Westerberg 	{ PCI_VDEVICE(INTEL, 0x34c6), (kernel_ulong_t)&bxt_i2c_info },
188*a13c93b3SMika Westerberg 	{ PCI_VDEVICE(INTEL, 0x34c7), (kernel_ulong_t)&spt_uart_info },
189*a13c93b3SMika Westerberg 	{ PCI_VDEVICE(INTEL, 0x34e8), (kernel_ulong_t)&bxt_i2c_info },
190*a13c93b3SMika Westerberg 	{ PCI_VDEVICE(INTEL, 0x34e9), (kernel_ulong_t)&bxt_i2c_info },
191*a13c93b3SMika Westerberg 	{ PCI_VDEVICE(INTEL, 0x34ea), (kernel_ulong_t)&bxt_i2c_info },
192*a13c93b3SMika Westerberg 	{ PCI_VDEVICE(INTEL, 0x34eb), (kernel_ulong_t)&bxt_i2c_info },
193*a13c93b3SMika Westerberg 	{ PCI_VDEVICE(INTEL, 0x34fb), (kernel_ulong_t)&spt_info },
194ff0a04a6SAndy Shevchenko 	/* APL */
195c50cdd62SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0x5aac), (kernel_ulong_t)&apl_i2c_info },
196c50cdd62SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0x5aae), (kernel_ulong_t)&apl_i2c_info },
197c50cdd62SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0x5ab0), (kernel_ulong_t)&apl_i2c_info },
198c50cdd62SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0x5ab2), (kernel_ulong_t)&apl_i2c_info },
199c50cdd62SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0x5ab4), (kernel_ulong_t)&apl_i2c_info },
200c50cdd62SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0x5ab6), (kernel_ulong_t)&apl_i2c_info },
201c50cdd62SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0x5ab8), (kernel_ulong_t)&apl_i2c_info },
202c50cdd62SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0x5aba), (kernel_ulong_t)&apl_i2c_info },
203ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x5abc), (kernel_ulong_t)&bxt_uart_info },
204ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x5abe), (kernel_ulong_t)&bxt_uart_info },
205ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x5ac0), (kernel_ulong_t)&bxt_uart_info },
206ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x5ac2), (kernel_ulong_t)&bxt_info },
207ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x5ac4), (kernel_ulong_t)&bxt_info },
208ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x5ac6), (kernel_ulong_t)&bxt_info },
209ff0a04a6SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x5aee), (kernel_ulong_t)&bxt_uart_info },
2104b45efe8SAndy Shevchenko 	/* SPT-LP */
2114b45efe8SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x9d27), (kernel_ulong_t)&spt_uart_info },
2124b45efe8SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x9d28), (kernel_ulong_t)&spt_uart_info },
2134b45efe8SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x9d29), (kernel_ulong_t)&spt_info },
2144b45efe8SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x9d2a), (kernel_ulong_t)&spt_info },
215028af594SMika Westerberg 	{ PCI_VDEVICE(INTEL, 0x9d60), (kernel_ulong_t)&spt_i2c_info },
216028af594SMika Westerberg 	{ PCI_VDEVICE(INTEL, 0x9d61), (kernel_ulong_t)&spt_i2c_info },
217028af594SMika Westerberg 	{ PCI_VDEVICE(INTEL, 0x9d62), (kernel_ulong_t)&spt_i2c_info },
218028af594SMika Westerberg 	{ PCI_VDEVICE(INTEL, 0x9d63), (kernel_ulong_t)&spt_i2c_info },
219028af594SMika Westerberg 	{ PCI_VDEVICE(INTEL, 0x9d64), (kernel_ulong_t)&spt_i2c_info },
220028af594SMika Westerberg 	{ PCI_VDEVICE(INTEL, 0x9d65), (kernel_ulong_t)&spt_i2c_info },
2214b45efe8SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x9d66), (kernel_ulong_t)&spt_uart_info },
222b418bbffSAndy Shevchenko 	/* CNL-LP */
223b418bbffSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x9da8), (kernel_ulong_t)&spt_uart_info },
224b418bbffSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x9da9), (kernel_ulong_t)&spt_uart_info },
225b418bbffSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x9daa), (kernel_ulong_t)&spt_info },
226b418bbffSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x9dab), (kernel_ulong_t)&spt_info },
227b418bbffSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x9dfb), (kernel_ulong_t)&spt_info },
2284e93a658SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0x9dc5), (kernel_ulong_t)&cnl_i2c_info },
2294e93a658SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0x9dc6), (kernel_ulong_t)&cnl_i2c_info },
230b418bbffSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0x9dc7), (kernel_ulong_t)&spt_uart_info },
2314e93a658SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0x9de8), (kernel_ulong_t)&cnl_i2c_info },
2324e93a658SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0x9de9), (kernel_ulong_t)&cnl_i2c_info },
2334e93a658SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0x9dea), (kernel_ulong_t)&cnl_i2c_info },
2344e93a658SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0x9deb), (kernel_ulong_t)&cnl_i2c_info },
2354b45efe8SAndy Shevchenko 	/* SPT-H */
2364b45efe8SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0xa127), (kernel_ulong_t)&spt_uart_info },
2374b45efe8SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0xa128), (kernel_ulong_t)&spt_uart_info },
2384b45efe8SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0xa129), (kernel_ulong_t)&spt_info },
2394b45efe8SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0xa12a), (kernel_ulong_t)&spt_info },
240028af594SMika Westerberg 	{ PCI_VDEVICE(INTEL, 0xa160), (kernel_ulong_t)&spt_i2c_info },
241028af594SMika Westerberg 	{ PCI_VDEVICE(INTEL, 0xa161), (kernel_ulong_t)&spt_i2c_info },
242e4b91470SFlorian R. Hölzlwimmer 	{ PCI_VDEVICE(INTEL, 0xa162), (kernel_ulong_t)&spt_i2c_info },
2434b45efe8SAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0xa166), (kernel_ulong_t)&spt_uart_info },
24477fc5ff6SMika Westerberg 	/* KBL-H */
2452c8c3416SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0xa2a7), (kernel_ulong_t)&spt_uart_info },
2462c8c3416SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0xa2a8), (kernel_ulong_t)&spt_uart_info },
2472c8c3416SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0xa2a9), (kernel_ulong_t)&spt_info },
2482c8c3416SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0xa2aa), (kernel_ulong_t)&spt_info },
2492c8c3416SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0xa2e0), (kernel_ulong_t)&spt_i2c_info },
2502c8c3416SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0xa2e1), (kernel_ulong_t)&spt_i2c_info },
2512c8c3416SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0xa2e2), (kernel_ulong_t)&spt_i2c_info },
2522c8c3416SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0xa2e3), (kernel_ulong_t)&spt_i2c_info },
2532c8c3416SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0xa2e6), (kernel_ulong_t)&spt_uart_info },
254b418bbffSAndy Shevchenko 	/* CNL-H */
255b418bbffSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0xa328), (kernel_ulong_t)&spt_uart_info },
256b418bbffSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0xa329), (kernel_ulong_t)&spt_uart_info },
257b418bbffSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0xa32a), (kernel_ulong_t)&spt_info },
258b418bbffSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0xa32b), (kernel_ulong_t)&spt_info },
259b418bbffSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0xa37b), (kernel_ulong_t)&spt_info },
260b418bbffSAndy Shevchenko 	{ PCI_VDEVICE(INTEL, 0xa347), (kernel_ulong_t)&spt_uart_info },
2614e93a658SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0xa368), (kernel_ulong_t)&cnl_i2c_info },
2624e93a658SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0xa369), (kernel_ulong_t)&cnl_i2c_info },
2634e93a658SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0xa36a), (kernel_ulong_t)&cnl_i2c_info },
2644e93a658SJarkko Nikula 	{ PCI_VDEVICE(INTEL, 0xa36b), (kernel_ulong_t)&cnl_i2c_info },
2654b45efe8SAndy Shevchenko 	{ }
2664b45efe8SAndy Shevchenko };
2674b45efe8SAndy Shevchenko MODULE_DEVICE_TABLE(pci, intel_lpss_pci_ids);
2684b45efe8SAndy Shevchenko 
2694b45efe8SAndy Shevchenko static struct pci_driver intel_lpss_pci_driver = {
2704b45efe8SAndy Shevchenko 	.name = "intel-lpss",
2714b45efe8SAndy Shevchenko 	.id_table = intel_lpss_pci_ids,
2724b45efe8SAndy Shevchenko 	.probe = intel_lpss_pci_probe,
2734b45efe8SAndy Shevchenko 	.remove = intel_lpss_pci_remove,
2744b45efe8SAndy Shevchenko 	.driver = {
2754b45efe8SAndy Shevchenko 		.pm = &intel_lpss_pci_pm_ops,
2764b45efe8SAndy Shevchenko 	},
2774b45efe8SAndy Shevchenko };
2784b45efe8SAndy Shevchenko 
2794b45efe8SAndy Shevchenko module_pci_driver(intel_lpss_pci_driver);
2804b45efe8SAndy Shevchenko 
2814b45efe8SAndy Shevchenko MODULE_AUTHOR("Andy Shevchenko <andriy.shevchenko@linux.intel.com>");
2824b45efe8SAndy Shevchenko MODULE_AUTHOR("Mika Westerberg <mika.westerberg@linux.intel.com>");
2834b45efe8SAndy Shevchenko MODULE_DESCRIPTION("Intel LPSS PCI driver");
2844b45efe8SAndy Shevchenko MODULE_LICENSE("GPL v2");
285