1d2912cb1SThomas Gleixner // SPDX-License-Identifier: GPL-2.0-only 24b45efe8SAndy Shevchenko /* 34b45efe8SAndy Shevchenko * Intel LPSS PCI support. 44b45efe8SAndy Shevchenko * 54b45efe8SAndy Shevchenko * Copyright (C) 2015, Intel Corporation 64b45efe8SAndy Shevchenko * 74b45efe8SAndy Shevchenko * Authors: Andy Shevchenko <andriy.shevchenko@linux.intel.com> 84b45efe8SAndy Shevchenko * Mika Westerberg <mika.westerberg@linux.intel.com> 94b45efe8SAndy Shevchenko */ 104b45efe8SAndy Shevchenko 114b45efe8SAndy Shevchenko #include <linux/ioport.h> 124b45efe8SAndy Shevchenko #include <linux/kernel.h> 134b45efe8SAndy Shevchenko #include <linux/module.h> 144b45efe8SAndy Shevchenko #include <linux/pci.h> 154b45efe8SAndy Shevchenko #include <linux/pm_runtime.h> 16028af594SMika Westerberg #include <linux/property.h> 174b45efe8SAndy Shevchenko 184b45efe8SAndy Shevchenko #include "intel-lpss.h" 194b45efe8SAndy Shevchenko 204b45efe8SAndy Shevchenko static int intel_lpss_pci_probe(struct pci_dev *pdev, 214b45efe8SAndy Shevchenko const struct pci_device_id *id) 224b45efe8SAndy Shevchenko { 234b45efe8SAndy Shevchenko struct intel_lpss_platform_info *info; 244b45efe8SAndy Shevchenko int ret; 254b45efe8SAndy Shevchenko 264b45efe8SAndy Shevchenko ret = pcim_enable_device(pdev); 274b45efe8SAndy Shevchenko if (ret) 284b45efe8SAndy Shevchenko return ret; 294b45efe8SAndy Shevchenko 304b45efe8SAndy Shevchenko info = devm_kmemdup(&pdev->dev, (void *)id->driver_data, sizeof(*info), 314b45efe8SAndy Shevchenko GFP_KERNEL); 324b45efe8SAndy Shevchenko if (!info) 334b45efe8SAndy Shevchenko return -ENOMEM; 344b45efe8SAndy Shevchenko 354b45efe8SAndy Shevchenko info->mem = &pdev->resource[0]; 364b45efe8SAndy Shevchenko info->irq = pdev->irq; 374b45efe8SAndy Shevchenko 3876380a60SKai-Heng Feng pdev->d3cold_delay = 0; 3976380a60SKai-Heng Feng 404b45efe8SAndy Shevchenko /* Probably it is enough to set this for iDMA capable devices only */ 414b45efe8SAndy Shevchenko pci_set_master(pdev); 4285a9419aSAndy Shevchenko pci_try_set_mwi(pdev); 434b45efe8SAndy Shevchenko 444b45efe8SAndy Shevchenko ret = intel_lpss_probe(&pdev->dev, info); 454b45efe8SAndy Shevchenko if (ret) 464b45efe8SAndy Shevchenko return ret; 474b45efe8SAndy Shevchenko 484b45efe8SAndy Shevchenko pm_runtime_put(&pdev->dev); 494b45efe8SAndy Shevchenko pm_runtime_allow(&pdev->dev); 504b45efe8SAndy Shevchenko 514b45efe8SAndy Shevchenko return 0; 524b45efe8SAndy Shevchenko } 534b45efe8SAndy Shevchenko 544b45efe8SAndy Shevchenko static void intel_lpss_pci_remove(struct pci_dev *pdev) 554b45efe8SAndy Shevchenko { 564b45efe8SAndy Shevchenko pm_runtime_forbid(&pdev->dev); 574b45efe8SAndy Shevchenko pm_runtime_get_sync(&pdev->dev); 584b45efe8SAndy Shevchenko 594b45efe8SAndy Shevchenko intel_lpss_remove(&pdev->dev); 604b45efe8SAndy Shevchenko } 614b45efe8SAndy Shevchenko 624b45efe8SAndy Shevchenko static INTEL_LPSS_PM_OPS(intel_lpss_pci_pm_ops); 634b45efe8SAndy Shevchenko 644b45efe8SAndy Shevchenko static const struct intel_lpss_platform_info spt_info = { 654b45efe8SAndy Shevchenko .clk_rate = 120000000, 664b45efe8SAndy Shevchenko }; 674b45efe8SAndy Shevchenko 68028af594SMika Westerberg static struct property_entry spt_i2c_properties[] = { 69028af594SMika Westerberg PROPERTY_ENTRY_U32("i2c-sda-hold-time-ns", 230), 70028af594SMika Westerberg { }, 71028af594SMika Westerberg }; 72028af594SMika Westerberg 73028af594SMika Westerberg static const struct intel_lpss_platform_info spt_i2c_info = { 74028af594SMika Westerberg .clk_rate = 120000000, 75f4d05266SHeikki Krogerus .properties = spt_i2c_properties, 76028af594SMika Westerberg }; 77028af594SMika Westerberg 78ec14c539SAndy Shevchenko static struct property_entry uart_properties[] = { 79ec14c539SAndy Shevchenko PROPERTY_ENTRY_U32("reg-io-width", 4), 80ec14c539SAndy Shevchenko PROPERTY_ENTRY_U32("reg-shift", 2), 81ec14c539SAndy Shevchenko PROPERTY_ENTRY_BOOL("snps,uart-16550-compatible"), 82ec14c539SAndy Shevchenko { }, 83ec14c539SAndy Shevchenko }; 84ec14c539SAndy Shevchenko 854b45efe8SAndy Shevchenko static const struct intel_lpss_platform_info spt_uart_info = { 864b45efe8SAndy Shevchenko .clk_rate = 120000000, 874b45efe8SAndy Shevchenko .clk_con_id = "baudclk", 88f4d05266SHeikki Krogerus .properties = uart_properties, 894b45efe8SAndy Shevchenko }; 904b45efe8SAndy Shevchenko 91ff0a04a6SAndy Shevchenko static const struct intel_lpss_platform_info bxt_info = { 92ff0a04a6SAndy Shevchenko .clk_rate = 100000000, 93ff0a04a6SAndy Shevchenko }; 94ff0a04a6SAndy Shevchenko 95ff0a04a6SAndy Shevchenko static const struct intel_lpss_platform_info bxt_uart_info = { 96ff0a04a6SAndy Shevchenko .clk_rate = 100000000, 97ff0a04a6SAndy Shevchenko .clk_con_id = "baudclk", 98f4d05266SHeikki Krogerus .properties = uart_properties, 99ff0a04a6SAndy Shevchenko }; 100ff0a04a6SAndy Shevchenko 1010343b2f4SMika Westerberg static struct property_entry bxt_i2c_properties[] = { 1020343b2f4SMika Westerberg PROPERTY_ENTRY_U32("i2c-sda-hold-time-ns", 42), 1030343b2f4SMika Westerberg PROPERTY_ENTRY_U32("i2c-sda-falling-time-ns", 171), 1040343b2f4SMika Westerberg PROPERTY_ENTRY_U32("i2c-scl-falling-time-ns", 208), 1050343b2f4SMika Westerberg { }, 1060343b2f4SMika Westerberg }; 1070343b2f4SMika Westerberg 108ff0a04a6SAndy Shevchenko static const struct intel_lpss_platform_info bxt_i2c_info = { 109ff0a04a6SAndy Shevchenko .clk_rate = 133000000, 110f4d05266SHeikki Krogerus .properties = bxt_i2c_properties, 111ff0a04a6SAndy Shevchenko }; 112ff0a04a6SAndy Shevchenko 113c50cdd62SJarkko Nikula static struct property_entry apl_i2c_properties[] = { 114c50cdd62SJarkko Nikula PROPERTY_ENTRY_U32("i2c-sda-hold-time-ns", 207), 115c50cdd62SJarkko Nikula PROPERTY_ENTRY_U32("i2c-sda-falling-time-ns", 171), 116c50cdd62SJarkko Nikula PROPERTY_ENTRY_U32("i2c-scl-falling-time-ns", 208), 117c50cdd62SJarkko Nikula { }, 118c50cdd62SJarkko Nikula }; 119c50cdd62SJarkko Nikula 120c50cdd62SJarkko Nikula static const struct intel_lpss_platform_info apl_i2c_info = { 121c50cdd62SJarkko Nikula .clk_rate = 133000000, 122c50cdd62SJarkko Nikula .properties = apl_i2c_properties, 123c50cdd62SJarkko Nikula }; 124c50cdd62SJarkko Nikula 1253f31bc67SJarkko Nikula static struct property_entry glk_i2c_properties[] = { 1263f31bc67SJarkko Nikula PROPERTY_ENTRY_U32("i2c-sda-hold-time-ns", 313), 1273f31bc67SJarkko Nikula PROPERTY_ENTRY_U32("i2c-sda-falling-time-ns", 171), 1283f31bc67SJarkko Nikula PROPERTY_ENTRY_U32("i2c-scl-falling-time-ns", 290), 1293f31bc67SJarkko Nikula { }, 1303f31bc67SJarkko Nikula }; 1313f31bc67SJarkko Nikula 1323f31bc67SJarkko Nikula static const struct intel_lpss_platform_info glk_i2c_info = { 1333f31bc67SJarkko Nikula .clk_rate = 133000000, 1343f31bc67SJarkko Nikula .properties = glk_i2c_properties, 1353f31bc67SJarkko Nikula }; 1363f31bc67SJarkko Nikula 1374e93a658SJarkko Nikula static const struct intel_lpss_platform_info cnl_i2c_info = { 1384e93a658SJarkko Nikula .clk_rate = 216000000, 1394e93a658SJarkko Nikula .properties = spt_i2c_properties, 1404e93a658SJarkko Nikula }; 1414e93a658SJarkko Nikula 142d2923aa4SJarkko Nikula static const struct intel_lpss_platform_info ehl_i2c_info = { 143d2923aa4SJarkko Nikula .clk_rate = 100000000, 144d2923aa4SJarkko Nikula .properties = bxt_i2c_properties, 145d2923aa4SJarkko Nikula }; 146d2923aa4SJarkko Nikula 1474b45efe8SAndy Shevchenko static const struct pci_device_id intel_lpss_pci_ids[] = { 148dd047dceSAndy Shevchenko /* CML-LP */ 149dd662907SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x02a8), (kernel_ulong_t)&spt_uart_info }, 150dd662907SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x02a9), (kernel_ulong_t)&spt_uart_info }, 151dd662907SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x02aa), (kernel_ulong_t)&spt_info }, 152dd662907SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x02ab), (kernel_ulong_t)&spt_info }, 153dd662907SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x02c5), (kernel_ulong_t)&cnl_i2c_info }, 154dd662907SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x02c6), (kernel_ulong_t)&cnl_i2c_info }, 155dd662907SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x02c7), (kernel_ulong_t)&spt_uart_info }, 156dd662907SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x02e8), (kernel_ulong_t)&cnl_i2c_info }, 157dd662907SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x02e9), (kernel_ulong_t)&cnl_i2c_info }, 158dd662907SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x02ea), (kernel_ulong_t)&cnl_i2c_info }, 159dd662907SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x02eb), (kernel_ulong_t)&cnl_i2c_info }, 160dd662907SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x02fb), (kernel_ulong_t)&spt_info }, 161dd047dceSAndy Shevchenko /* CML-H */ 162dd047dceSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x06a8), (kernel_ulong_t)&spt_uart_info }, 163dd047dceSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x06a9), (kernel_ulong_t)&spt_uart_info }, 164dd047dceSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x06aa), (kernel_ulong_t)&spt_info }, 165dd047dceSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x06ab), (kernel_ulong_t)&spt_info }, 166dd047dceSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x06c7), (kernel_ulong_t)&spt_uart_info }, 167dd047dceSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x06e8), (kernel_ulong_t)&cnl_i2c_info }, 168dd047dceSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x06e9), (kernel_ulong_t)&cnl_i2c_info }, 169dd047dceSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x06ea), (kernel_ulong_t)&cnl_i2c_info }, 170dd047dceSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x06eb), (kernel_ulong_t)&cnl_i2c_info }, 171dd047dceSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x06fb), (kernel_ulong_t)&spt_info }, 172023269ccSHuiquan Zhong /* BXT A-Step */ 173ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x0aac), (kernel_ulong_t)&bxt_i2c_info }, 174ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x0aae), (kernel_ulong_t)&bxt_i2c_info }, 175ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x0ab0), (kernel_ulong_t)&bxt_i2c_info }, 176ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x0ab2), (kernel_ulong_t)&bxt_i2c_info }, 177ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x0ab4), (kernel_ulong_t)&bxt_i2c_info }, 178ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x0ab6), (kernel_ulong_t)&bxt_i2c_info }, 179ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x0ab8), (kernel_ulong_t)&bxt_i2c_info }, 180ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x0aba), (kernel_ulong_t)&bxt_i2c_info }, 181ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x0abc), (kernel_ulong_t)&bxt_uart_info }, 182ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x0abe), (kernel_ulong_t)&bxt_uart_info }, 183ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x0ac0), (kernel_ulong_t)&bxt_uart_info }, 184ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x0ac2), (kernel_ulong_t)&bxt_info }, 185ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x0ac4), (kernel_ulong_t)&bxt_info }, 186ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x0ac6), (kernel_ulong_t)&bxt_info }, 187ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x0aee), (kernel_ulong_t)&bxt_uart_info }, 188023269ccSHuiquan Zhong /* BXT B-Step */ 189023269ccSHuiquan Zhong { PCI_VDEVICE(INTEL, 0x1aac), (kernel_ulong_t)&bxt_i2c_info }, 190023269ccSHuiquan Zhong { PCI_VDEVICE(INTEL, 0x1aae), (kernel_ulong_t)&bxt_i2c_info }, 191023269ccSHuiquan Zhong { PCI_VDEVICE(INTEL, 0x1ab0), (kernel_ulong_t)&bxt_i2c_info }, 192023269ccSHuiquan Zhong { PCI_VDEVICE(INTEL, 0x1ab2), (kernel_ulong_t)&bxt_i2c_info }, 193023269ccSHuiquan Zhong { PCI_VDEVICE(INTEL, 0x1ab4), (kernel_ulong_t)&bxt_i2c_info }, 194023269ccSHuiquan Zhong { PCI_VDEVICE(INTEL, 0x1ab6), (kernel_ulong_t)&bxt_i2c_info }, 195023269ccSHuiquan Zhong { PCI_VDEVICE(INTEL, 0x1ab8), (kernel_ulong_t)&bxt_i2c_info }, 196023269ccSHuiquan Zhong { PCI_VDEVICE(INTEL, 0x1aba), (kernel_ulong_t)&bxt_i2c_info }, 197023269ccSHuiquan Zhong { PCI_VDEVICE(INTEL, 0x1abc), (kernel_ulong_t)&bxt_uart_info }, 198023269ccSHuiquan Zhong { PCI_VDEVICE(INTEL, 0x1abe), (kernel_ulong_t)&bxt_uart_info }, 199023269ccSHuiquan Zhong { PCI_VDEVICE(INTEL, 0x1ac0), (kernel_ulong_t)&bxt_uart_info }, 200023269ccSHuiquan Zhong { PCI_VDEVICE(INTEL, 0x1ac2), (kernel_ulong_t)&bxt_info }, 201023269ccSHuiquan Zhong { PCI_VDEVICE(INTEL, 0x1ac4), (kernel_ulong_t)&bxt_info }, 202023269ccSHuiquan Zhong { PCI_VDEVICE(INTEL, 0x1ac6), (kernel_ulong_t)&bxt_info }, 203023269ccSHuiquan Zhong { PCI_VDEVICE(INTEL, 0x1aee), (kernel_ulong_t)&bxt_uart_info }, 2043ea2e4eaSAndy Shevchenko /* EBG */ 2053ea2e4eaSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x1bad), (kernel_ulong_t)&bxt_uart_info }, 2063ea2e4eaSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x1bae), (kernel_ulong_t)&bxt_uart_info }, 207f80e78aaSAndy Shevchenko /* GLK */ 2083f31bc67SJarkko Nikula { PCI_VDEVICE(INTEL, 0x31ac), (kernel_ulong_t)&glk_i2c_info }, 2093f31bc67SJarkko Nikula { PCI_VDEVICE(INTEL, 0x31ae), (kernel_ulong_t)&glk_i2c_info }, 2103f31bc67SJarkko Nikula { PCI_VDEVICE(INTEL, 0x31b0), (kernel_ulong_t)&glk_i2c_info }, 2113f31bc67SJarkko Nikula { PCI_VDEVICE(INTEL, 0x31b2), (kernel_ulong_t)&glk_i2c_info }, 2123f31bc67SJarkko Nikula { PCI_VDEVICE(INTEL, 0x31b4), (kernel_ulong_t)&glk_i2c_info }, 2133f31bc67SJarkko Nikula { PCI_VDEVICE(INTEL, 0x31b6), (kernel_ulong_t)&glk_i2c_info }, 2143f31bc67SJarkko Nikula { PCI_VDEVICE(INTEL, 0x31b8), (kernel_ulong_t)&glk_i2c_info }, 2153f31bc67SJarkko Nikula { PCI_VDEVICE(INTEL, 0x31ba), (kernel_ulong_t)&glk_i2c_info }, 216f80e78aaSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x31bc), (kernel_ulong_t)&bxt_uart_info }, 217f80e78aaSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x31be), (kernel_ulong_t)&bxt_uart_info }, 218f80e78aaSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x31c0), (kernel_ulong_t)&bxt_uart_info }, 219f80e78aaSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x31c2), (kernel_ulong_t)&bxt_info }, 220f80e78aaSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x31c4), (kernel_ulong_t)&bxt_info }, 221f80e78aaSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x31c6), (kernel_ulong_t)&bxt_info }, 222f88314c1SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x31ee), (kernel_ulong_t)&bxt_uart_info }, 223a13c93b3SMika Westerberg /* ICL-LP */ 224a13c93b3SMika Westerberg { PCI_VDEVICE(INTEL, 0x34a8), (kernel_ulong_t)&spt_uart_info }, 225a13c93b3SMika Westerberg { PCI_VDEVICE(INTEL, 0x34a9), (kernel_ulong_t)&spt_uart_info }, 226a13c93b3SMika Westerberg { PCI_VDEVICE(INTEL, 0x34aa), (kernel_ulong_t)&spt_info }, 227a13c93b3SMika Westerberg { PCI_VDEVICE(INTEL, 0x34ab), (kernel_ulong_t)&spt_info }, 228a13c93b3SMika Westerberg { PCI_VDEVICE(INTEL, 0x34c5), (kernel_ulong_t)&bxt_i2c_info }, 229a13c93b3SMika Westerberg { PCI_VDEVICE(INTEL, 0x34c6), (kernel_ulong_t)&bxt_i2c_info }, 230a13c93b3SMika Westerberg { PCI_VDEVICE(INTEL, 0x34c7), (kernel_ulong_t)&spt_uart_info }, 231a13c93b3SMika Westerberg { PCI_VDEVICE(INTEL, 0x34e8), (kernel_ulong_t)&bxt_i2c_info }, 232a13c93b3SMika Westerberg { PCI_VDEVICE(INTEL, 0x34e9), (kernel_ulong_t)&bxt_i2c_info }, 233a13c93b3SMika Westerberg { PCI_VDEVICE(INTEL, 0x34ea), (kernel_ulong_t)&bxt_i2c_info }, 234a13c93b3SMika Westerberg { PCI_VDEVICE(INTEL, 0x34eb), (kernel_ulong_t)&bxt_i2c_info }, 235a13c93b3SMika Westerberg { PCI_VDEVICE(INTEL, 0x34fb), (kernel_ulong_t)&spt_info }, 236bb7fcad4SAndy Shevchenko /* TGL-H */ 237bb7fcad4SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x43a7), (kernel_ulong_t)&bxt_uart_info }, 238bb7fcad4SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x43a8), (kernel_ulong_t)&bxt_uart_info }, 239bb7fcad4SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x43a9), (kernel_ulong_t)&bxt_uart_info }, 240bb7fcad4SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x43aa), (kernel_ulong_t)&bxt_info }, 241bb7fcad4SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x43ab), (kernel_ulong_t)&bxt_info }, 242bb7fcad4SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x43ad), (kernel_ulong_t)&bxt_i2c_info }, 243bb7fcad4SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x43ae), (kernel_ulong_t)&bxt_i2c_info }, 244bb7fcad4SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x43d8), (kernel_ulong_t)&bxt_i2c_info }, 245bb7fcad4SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x43da), (kernel_ulong_t)&bxt_uart_info }, 246bb7fcad4SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x43e8), (kernel_ulong_t)&bxt_i2c_info }, 247bb7fcad4SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x43e9), (kernel_ulong_t)&bxt_i2c_info }, 248bb7fcad4SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x43ea), (kernel_ulong_t)&bxt_i2c_info }, 249bb7fcad4SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x43eb), (kernel_ulong_t)&bxt_i2c_info }, 250bb7fcad4SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x43fb), (kernel_ulong_t)&bxt_info }, 251bb7fcad4SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x43fd), (kernel_ulong_t)&bxt_info }, 25201e4eceeSAndy Shevchenko /* EHL */ 25301e4eceeSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x4b28), (kernel_ulong_t)&bxt_uart_info }, 25401e4eceeSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x4b29), (kernel_ulong_t)&bxt_uart_info }, 25501e4eceeSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x4b2a), (kernel_ulong_t)&bxt_info }, 25601e4eceeSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x4b2b), (kernel_ulong_t)&bxt_info }, 25701e4eceeSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x4b37), (kernel_ulong_t)&bxt_info }, 258d2923aa4SJarkko Nikula { PCI_VDEVICE(INTEL, 0x4b44), (kernel_ulong_t)&ehl_i2c_info }, 259d2923aa4SJarkko Nikula { PCI_VDEVICE(INTEL, 0x4b45), (kernel_ulong_t)&ehl_i2c_info }, 260d2923aa4SJarkko Nikula { PCI_VDEVICE(INTEL, 0x4b4b), (kernel_ulong_t)&ehl_i2c_info }, 261d2923aa4SJarkko Nikula { PCI_VDEVICE(INTEL, 0x4b4c), (kernel_ulong_t)&ehl_i2c_info }, 26201e4eceeSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x4b4d), (kernel_ulong_t)&bxt_uart_info }, 263d2923aa4SJarkko Nikula { PCI_VDEVICE(INTEL, 0x4b78), (kernel_ulong_t)&ehl_i2c_info }, 264d2923aa4SJarkko Nikula { PCI_VDEVICE(INTEL, 0x4b79), (kernel_ulong_t)&ehl_i2c_info }, 265d2923aa4SJarkko Nikula { PCI_VDEVICE(INTEL, 0x4b7a), (kernel_ulong_t)&ehl_i2c_info }, 266d2923aa4SJarkko Nikula { PCI_VDEVICE(INTEL, 0x4b7b), (kernel_ulong_t)&ehl_i2c_info }, 26757b89dd2SAndy Shevchenko /* JSL */ 26857b89dd2SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x4da8), (kernel_ulong_t)&spt_uart_info }, 26957b89dd2SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x4da9), (kernel_ulong_t)&spt_uart_info }, 27057b89dd2SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x4daa), (kernel_ulong_t)&spt_info }, 27157b89dd2SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x4dab), (kernel_ulong_t)&spt_info }, 27257b89dd2SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x4dc5), (kernel_ulong_t)&bxt_i2c_info }, 27357b89dd2SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x4dc6), (kernel_ulong_t)&bxt_i2c_info }, 2749a875245SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x4dc7), (kernel_ulong_t)&spt_uart_info }, 27557b89dd2SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x4de8), (kernel_ulong_t)&bxt_i2c_info }, 27657b89dd2SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x4de9), (kernel_ulong_t)&bxt_i2c_info }, 27757b89dd2SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x4dea), (kernel_ulong_t)&bxt_i2c_info }, 27857b89dd2SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x4deb), (kernel_ulong_t)&bxt_i2c_info }, 27957b89dd2SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x4dfb), (kernel_ulong_t)&spt_info }, 280ff0a04a6SAndy Shevchenko /* APL */ 281c50cdd62SJarkko Nikula { PCI_VDEVICE(INTEL, 0x5aac), (kernel_ulong_t)&apl_i2c_info }, 282c50cdd62SJarkko Nikula { PCI_VDEVICE(INTEL, 0x5aae), (kernel_ulong_t)&apl_i2c_info }, 283c50cdd62SJarkko Nikula { PCI_VDEVICE(INTEL, 0x5ab0), (kernel_ulong_t)&apl_i2c_info }, 284c50cdd62SJarkko Nikula { PCI_VDEVICE(INTEL, 0x5ab2), (kernel_ulong_t)&apl_i2c_info }, 285c50cdd62SJarkko Nikula { PCI_VDEVICE(INTEL, 0x5ab4), (kernel_ulong_t)&apl_i2c_info }, 286c50cdd62SJarkko Nikula { PCI_VDEVICE(INTEL, 0x5ab6), (kernel_ulong_t)&apl_i2c_info }, 287c50cdd62SJarkko Nikula { PCI_VDEVICE(INTEL, 0x5ab8), (kernel_ulong_t)&apl_i2c_info }, 288c50cdd62SJarkko Nikula { PCI_VDEVICE(INTEL, 0x5aba), (kernel_ulong_t)&apl_i2c_info }, 289ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x5abc), (kernel_ulong_t)&bxt_uart_info }, 290ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x5abe), (kernel_ulong_t)&bxt_uart_info }, 291ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x5ac0), (kernel_ulong_t)&bxt_uart_info }, 292ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x5ac2), (kernel_ulong_t)&bxt_info }, 293ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x5ac4), (kernel_ulong_t)&bxt_info }, 294ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x5ac6), (kernel_ulong_t)&bxt_info }, 295ff0a04a6SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x5aee), (kernel_ulong_t)&bxt_uart_info }, 296*5f039fa7SAndy Shevchenko /* LKF */ 297*5f039fa7SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x98a8), (kernel_ulong_t)&bxt_uart_info }, 298*5f039fa7SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x98a9), (kernel_ulong_t)&bxt_uart_info }, 299*5f039fa7SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x98c7), (kernel_ulong_t)&bxt_uart_info }, 3004b45efe8SAndy Shevchenko /* SPT-LP */ 3014b45efe8SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x9d27), (kernel_ulong_t)&spt_uart_info }, 3024b45efe8SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x9d28), (kernel_ulong_t)&spt_uart_info }, 3034b45efe8SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x9d29), (kernel_ulong_t)&spt_info }, 3044b45efe8SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x9d2a), (kernel_ulong_t)&spt_info }, 305028af594SMika Westerberg { PCI_VDEVICE(INTEL, 0x9d60), (kernel_ulong_t)&spt_i2c_info }, 306028af594SMika Westerberg { PCI_VDEVICE(INTEL, 0x9d61), (kernel_ulong_t)&spt_i2c_info }, 307028af594SMika Westerberg { PCI_VDEVICE(INTEL, 0x9d62), (kernel_ulong_t)&spt_i2c_info }, 308028af594SMika Westerberg { PCI_VDEVICE(INTEL, 0x9d63), (kernel_ulong_t)&spt_i2c_info }, 309028af594SMika Westerberg { PCI_VDEVICE(INTEL, 0x9d64), (kernel_ulong_t)&spt_i2c_info }, 310028af594SMika Westerberg { PCI_VDEVICE(INTEL, 0x9d65), (kernel_ulong_t)&spt_i2c_info }, 3114b45efe8SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x9d66), (kernel_ulong_t)&spt_uart_info }, 312b418bbffSAndy Shevchenko /* CNL-LP */ 313b418bbffSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x9da8), (kernel_ulong_t)&spt_uart_info }, 314b418bbffSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x9da9), (kernel_ulong_t)&spt_uart_info }, 315b418bbffSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x9daa), (kernel_ulong_t)&spt_info }, 316b418bbffSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x9dab), (kernel_ulong_t)&spt_info }, 3174e93a658SJarkko Nikula { PCI_VDEVICE(INTEL, 0x9dc5), (kernel_ulong_t)&cnl_i2c_info }, 3184e93a658SJarkko Nikula { PCI_VDEVICE(INTEL, 0x9dc6), (kernel_ulong_t)&cnl_i2c_info }, 319b418bbffSAndy Shevchenko { PCI_VDEVICE(INTEL, 0x9dc7), (kernel_ulong_t)&spt_uart_info }, 3204e93a658SJarkko Nikula { PCI_VDEVICE(INTEL, 0x9de8), (kernel_ulong_t)&cnl_i2c_info }, 3214e93a658SJarkko Nikula { PCI_VDEVICE(INTEL, 0x9de9), (kernel_ulong_t)&cnl_i2c_info }, 3224e93a658SJarkko Nikula { PCI_VDEVICE(INTEL, 0x9dea), (kernel_ulong_t)&cnl_i2c_info }, 3234e93a658SJarkko Nikula { PCI_VDEVICE(INTEL, 0x9deb), (kernel_ulong_t)&cnl_i2c_info }, 324f88314c1SAndy Shevchenko { PCI_VDEVICE(INTEL, 0x9dfb), (kernel_ulong_t)&spt_info }, 325ec65b560SAndy Shevchenko /* TGL-LP */ 326ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0a8), (kernel_ulong_t)&bxt_uart_info }, 327ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0a9), (kernel_ulong_t)&bxt_uart_info }, 328ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0aa), (kernel_ulong_t)&spt_info }, 329ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0ab), (kernel_ulong_t)&spt_info }, 330ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0c5), (kernel_ulong_t)&spt_i2c_info }, 331ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0c6), (kernel_ulong_t)&spt_i2c_info }, 332ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0c7), (kernel_ulong_t)&bxt_uart_info }, 333ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0d8), (kernel_ulong_t)&spt_i2c_info }, 334ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0d9), (kernel_ulong_t)&spt_i2c_info }, 335ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0da), (kernel_ulong_t)&bxt_uart_info }, 336ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0db), (kernel_ulong_t)&bxt_uart_info }, 337ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0dc), (kernel_ulong_t)&bxt_uart_info }, 338ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0dd), (kernel_ulong_t)&bxt_uart_info }, 339ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0de), (kernel_ulong_t)&spt_info }, 340ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0df), (kernel_ulong_t)&spt_info }, 341ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0e8), (kernel_ulong_t)&spt_i2c_info }, 342ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0e9), (kernel_ulong_t)&spt_i2c_info }, 343ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0ea), (kernel_ulong_t)&spt_i2c_info }, 344ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0eb), (kernel_ulong_t)&spt_i2c_info }, 345ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0fb), (kernel_ulong_t)&spt_info }, 346ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0fd), (kernel_ulong_t)&spt_info }, 347ec65b560SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa0fe), (kernel_ulong_t)&spt_info }, 3484b45efe8SAndy Shevchenko /* SPT-H */ 3494b45efe8SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa127), (kernel_ulong_t)&spt_uart_info }, 3504b45efe8SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa128), (kernel_ulong_t)&spt_uart_info }, 3514b45efe8SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa129), (kernel_ulong_t)&spt_info }, 3524b45efe8SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa12a), (kernel_ulong_t)&spt_info }, 353028af594SMika Westerberg { PCI_VDEVICE(INTEL, 0xa160), (kernel_ulong_t)&spt_i2c_info }, 354028af594SMika Westerberg { PCI_VDEVICE(INTEL, 0xa161), (kernel_ulong_t)&spt_i2c_info }, 355e4b91470SFlorian R. Hölzlwimmer { PCI_VDEVICE(INTEL, 0xa162), (kernel_ulong_t)&spt_i2c_info }, 3564b45efe8SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa166), (kernel_ulong_t)&spt_uart_info }, 35777fc5ff6SMika Westerberg /* KBL-H */ 3582c8c3416SJarkko Nikula { PCI_VDEVICE(INTEL, 0xa2a7), (kernel_ulong_t)&spt_uart_info }, 3592c8c3416SJarkko Nikula { PCI_VDEVICE(INTEL, 0xa2a8), (kernel_ulong_t)&spt_uart_info }, 3602c8c3416SJarkko Nikula { PCI_VDEVICE(INTEL, 0xa2a9), (kernel_ulong_t)&spt_info }, 3612c8c3416SJarkko Nikula { PCI_VDEVICE(INTEL, 0xa2aa), (kernel_ulong_t)&spt_info }, 3622c8c3416SJarkko Nikula { PCI_VDEVICE(INTEL, 0xa2e0), (kernel_ulong_t)&spt_i2c_info }, 3632c8c3416SJarkko Nikula { PCI_VDEVICE(INTEL, 0xa2e1), (kernel_ulong_t)&spt_i2c_info }, 3642c8c3416SJarkko Nikula { PCI_VDEVICE(INTEL, 0xa2e2), (kernel_ulong_t)&spt_i2c_info }, 3652c8c3416SJarkko Nikula { PCI_VDEVICE(INTEL, 0xa2e3), (kernel_ulong_t)&spt_i2c_info }, 3662c8c3416SJarkko Nikula { PCI_VDEVICE(INTEL, 0xa2e6), (kernel_ulong_t)&spt_uart_info }, 367b418bbffSAndy Shevchenko /* CNL-H */ 368b418bbffSAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa328), (kernel_ulong_t)&spt_uart_info }, 369b418bbffSAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa329), (kernel_ulong_t)&spt_uart_info }, 370b418bbffSAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa32a), (kernel_ulong_t)&spt_info }, 371b418bbffSAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa32b), (kernel_ulong_t)&spt_info }, 372b418bbffSAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa347), (kernel_ulong_t)&spt_uart_info }, 3734e93a658SJarkko Nikula { PCI_VDEVICE(INTEL, 0xa368), (kernel_ulong_t)&cnl_i2c_info }, 3744e93a658SJarkko Nikula { PCI_VDEVICE(INTEL, 0xa369), (kernel_ulong_t)&cnl_i2c_info }, 3754e93a658SJarkko Nikula { PCI_VDEVICE(INTEL, 0xa36a), (kernel_ulong_t)&cnl_i2c_info }, 3764e93a658SJarkko Nikula { PCI_VDEVICE(INTEL, 0xa36b), (kernel_ulong_t)&cnl_i2c_info }, 377f88314c1SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa37b), (kernel_ulong_t)&spt_info }, 3784e213b45SAndy Shevchenko /* CML-V */ 3794e213b45SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa3a7), (kernel_ulong_t)&spt_uart_info }, 3804e213b45SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa3a8), (kernel_ulong_t)&spt_uart_info }, 3814e213b45SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa3a9), (kernel_ulong_t)&spt_info }, 3824e213b45SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa3aa), (kernel_ulong_t)&spt_info }, 3834e213b45SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa3e0), (kernel_ulong_t)&spt_i2c_info }, 3844e213b45SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa3e1), (kernel_ulong_t)&spt_i2c_info }, 3854e213b45SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa3e2), (kernel_ulong_t)&spt_i2c_info }, 3864e213b45SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa3e3), (kernel_ulong_t)&spt_i2c_info }, 3874e213b45SAndy Shevchenko { PCI_VDEVICE(INTEL, 0xa3e6), (kernel_ulong_t)&spt_uart_info }, 3884b45efe8SAndy Shevchenko { } 3894b45efe8SAndy Shevchenko }; 3904b45efe8SAndy Shevchenko MODULE_DEVICE_TABLE(pci, intel_lpss_pci_ids); 3914b45efe8SAndy Shevchenko 3924b45efe8SAndy Shevchenko static struct pci_driver intel_lpss_pci_driver = { 3934b45efe8SAndy Shevchenko .name = "intel-lpss", 3944b45efe8SAndy Shevchenko .id_table = intel_lpss_pci_ids, 3954b45efe8SAndy Shevchenko .probe = intel_lpss_pci_probe, 3964b45efe8SAndy Shevchenko .remove = intel_lpss_pci_remove, 3974b45efe8SAndy Shevchenko .driver = { 3984b45efe8SAndy Shevchenko .pm = &intel_lpss_pci_pm_ops, 3994b45efe8SAndy Shevchenko }, 4004b45efe8SAndy Shevchenko }; 4014b45efe8SAndy Shevchenko 4024b45efe8SAndy Shevchenko module_pci_driver(intel_lpss_pci_driver); 4034b45efe8SAndy Shevchenko 4044b45efe8SAndy Shevchenko MODULE_AUTHOR("Andy Shevchenko <andriy.shevchenko@linux.intel.com>"); 4054b45efe8SAndy Shevchenko MODULE_AUTHOR("Mika Westerberg <mika.westerberg@linux.intel.com>"); 4064b45efe8SAndy Shevchenko MODULE_DESCRIPTION("Intel LPSS PCI driver"); 4074b45efe8SAndy Shevchenko MODULE_LICENSE("GPL v2"); 408