Patrick Georgi | ac95903 | 2020-05-05 22:49:26 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 2 | |
Kyösti Mälkki | 0c1dd9c | 2020-06-17 23:37:49 +0300 | [diff] [blame] | 3 | #include <acpi/acpi_gnvs.h> |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 4 | #include <device/device.h> |
| 5 | #include <device/pci.h> |
| 6 | #include <device/pci_ids.h> |
Shaunak Saha | bd42780 | 2017-07-18 00:19:33 -0700 | [diff] [blame] | 7 | #include <intelblocks/acpi.h> |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 8 | #include <intelblocks/lpc_lib.h> |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 9 | #include <soc/pm.h> |
| 10 | |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 11 | /* SoC overrides */ |
| 12 | |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 13 | /* Common weak definition, needs to be implemented in each soc LPC driver. */ |
Aaron Durbin | 6403167 | 2018-04-21 14:45:32 -0600 | [diff] [blame] | 14 | __weak void lpc_soc_init(struct device *dev) |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 15 | { |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 16 | /* no-op */ |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 17 | } |
| 18 | |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 19 | /* Fill up LPC IO resource structure inside SoC directory */ |
Aaron Durbin | 6403167 | 2018-04-21 14:45:32 -0600 | [diff] [blame] | 20 | __weak void pch_lpc_soc_fill_io_resources(struct device *dev) |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 21 | { |
| 22 | /* no-op */ |
| 23 | } |
| 24 | |
| 25 | void pch_lpc_add_new_resource(struct device *dev, uint8_t offset, |
| 26 | uintptr_t base, size_t size, unsigned long flags) |
| 27 | { |
| 28 | struct resource *res; |
| 29 | res = new_resource(dev, offset); |
| 30 | res->base = base; |
| 31 | res->size = size; |
| 32 | res->flags = flags; |
| 33 | } |
| 34 | |
Elyes HAOUAS | 4a13126 | 2018-09-16 17:35:48 +0200 | [diff] [blame] | 35 | static void pch_lpc_add_io_resources(struct device *dev) |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 36 | { |
| 37 | /* Add the default claimed legacy IO range for the LPC device. */ |
| 38 | pch_lpc_add_new_resource(dev, 0, 0, 0x1000, IORESOURCE_IO | |
| 39 | IORESOURCE_ASSIGNED | IORESOURCE_FIXED); |
| 40 | |
| 41 | /* SoC IO resource overrides */ |
| 42 | pch_lpc_soc_fill_io_resources(dev); |
| 43 | } |
| 44 | |
Elyes HAOUAS | 4a13126 | 2018-09-16 17:35:48 +0200 | [diff] [blame] | 45 | static void pch_lpc_read_resources(struct device *dev) |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 46 | { |
| 47 | /* Get the PCI resources of this device. */ |
| 48 | pci_dev_read_resources(dev); |
| 49 | |
| 50 | /* Add IO resources to LPC. */ |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 51 | pch_lpc_add_io_resources(dev); |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 52 | } |
| 53 | |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 54 | static void pch_lpc_set_child_resources(struct device *dev); |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 55 | |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 56 | static void pch_lpc_loop_resources(struct device *dev) |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 57 | { |
| 58 | struct resource *res; |
| 59 | |
| 60 | for (res = dev->resource_list; res; res = res->next) { |
| 61 | if (res->flags & IORESOURCE_IO) |
| 62 | lpc_open_pmio_window(res->base, res->size); |
| 63 | |
| 64 | if (res->flags & IORESOURCE_MEM) { |
| 65 | /* Check if this is already decoded. */ |
| 66 | if (lpc_fits_fixed_mmio_window(res->base, res->size)) |
| 67 | continue; |
| 68 | |
| 69 | lpc_open_mmio_window(res->base, res->size); |
| 70 | } |
| 71 | } |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 72 | pch_lpc_set_child_resources(dev); |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 73 | } |
| 74 | |
| 75 | /* |
| 76 | * Loop through all the child devices' resources, and open up windows to the |
| 77 | * LPC bus, as appropriate. |
| 78 | */ |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 79 | static void pch_lpc_set_child_resources(struct device *dev) |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 80 | { |
| 81 | struct bus *link; |
| 82 | struct device *child; |
| 83 | |
| 84 | for (link = dev->link_list; link; link = link->next) { |
| 85 | for (child = link->children; child; child = child->sibling) |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 86 | pch_lpc_loop_resources(child); |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 87 | } |
| 88 | } |
| 89 | |
Elyes HAOUAS | 4a13126 | 2018-09-16 17:35:48 +0200 | [diff] [blame] | 90 | static void pch_lpc_set_resources(struct device *dev) |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 91 | { |
| 92 | pci_dev_set_resources(dev); |
| 93 | |
| 94 | /* Now open up windows to devices which have declared resources. */ |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 95 | pch_lpc_set_child_resources(dev); |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 96 | } |
| 97 | |
| 98 | static struct device_operations device_ops = { |
Nico Huber | 68680dd | 2020-03-31 17:34:52 +0200 | [diff] [blame] | 99 | .read_resources = pch_lpc_read_resources, |
| 100 | .set_resources = pch_lpc_set_resources, |
| 101 | .enable_resources = pci_dev_enable_resources, |
Karthikeyan Ramasubramanian | 0e971e1 | 2020-01-09 11:32:16 -0700 | [diff] [blame] | 102 | #if CONFIG(HAVE_ACPI_TABLES) |
Nico Huber | 68680dd | 2020-03-31 17:34:52 +0200 | [diff] [blame] | 103 | .write_acpi_tables = southbridge_write_acpi_tables, |
| 104 | .acpi_inject_dsdt = southbridge_inject_dsdt, |
Karthikeyan Ramasubramanian | 0e971e1 | 2020-01-09 11:32:16 -0700 | [diff] [blame] | 105 | #endif |
Nico Huber | 68680dd | 2020-03-31 17:34:52 +0200 | [diff] [blame] | 106 | .init = lpc_soc_init, |
| 107 | .scan_bus = scan_static_bus, |
| 108 | .ops_pci = &pci_dev_ops_pci, |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 109 | }; |
| 110 | |
| 111 | static const unsigned short pci_device_ids[] = { |
| 112 | PCI_DEVICE_ID_INTEL_SPT_LP_SAMPLE, |
| 113 | PCI_DEVICE_ID_INTEL_SPT_LP_U_BASE, |
| 114 | PCI_DEVICE_ID_INTEL_SPT_LP_U_PREMIUM, |
| 115 | PCI_DEVICE_ID_INTEL_SPT_LP_Y_PREMIUM, |
Maxim Polyakov | 7a732b4 | 2019-02-25 10:48:39 +0300 | [diff] [blame] | 116 | PCI_DEVICE_ID_INTEL_SPT_H_H110, |
Marius Genheimer | 4998bec | 2019-04-30 00:04:32 +0200 | [diff] [blame] | 117 | PCI_DEVICE_ID_INTEL_SPT_H_H170, |
| 118 | PCI_DEVICE_ID_INTEL_SPT_H_Z170, |
| 119 | PCI_DEVICE_ID_INTEL_SPT_H_Q170, |
| 120 | PCI_DEVICE_ID_INTEL_SPT_H_Q150, |
| 121 | PCI_DEVICE_ID_INTEL_SPT_H_B150, |
Felix Singer | c3244cc | 2019-07-29 22:54:09 +0200 | [diff] [blame] | 122 | PCI_DEVICE_ID_INTEL_SPT_H_C236, |
| 123 | PCI_DEVICE_ID_INTEL_SPT_H_C232, |
V Sowmya | 7c15047 | 2018-01-23 14:44:45 +0530 | [diff] [blame] | 124 | PCI_DEVICE_ID_INTEL_SPT_H_QM170, |
Felix Singer | c3244cc | 2019-07-29 22:54:09 +0200 | [diff] [blame] | 125 | PCI_DEVICE_ID_INTEL_SPT_H_HM170, |
| 126 | PCI_DEVICE_ID_INTEL_SPT_H_CM236, |
Praveen hodagatta pranesh | 523d669 | 2018-11-03 01:21:14 +0800 | [diff] [blame] | 127 | PCI_DEVICE_ID_INTEL_SPT_H_HM175, |
| 128 | PCI_DEVICE_ID_INTEL_SPT_H_QM175, |
| 129 | PCI_DEVICE_ID_INTEL_SPT_H_CM238, |
Maxim Polyakov | 571d07d | 2019-08-22 13:11:32 +0300 | [diff] [blame] | 130 | PCI_DEVICE_ID_INTEL_LWB_C621, |
| 131 | PCI_DEVICE_ID_INTEL_LWB_C622, |
| 132 | PCI_DEVICE_ID_INTEL_LWB_C624, |
| 133 | PCI_DEVICE_ID_INTEL_LWB_C625, |
| 134 | PCI_DEVICE_ID_INTEL_LWB_C626, |
| 135 | PCI_DEVICE_ID_INTEL_LWB_C627, |
| 136 | PCI_DEVICE_ID_INTEL_LWB_C628, |
| 137 | PCI_DEVICE_ID_INTEL_LWB_C629, |
BryantOu | e26da8b | 2020-04-15 00:37:23 -0700 | [diff] [blame] | 138 | PCI_DEVICE_ID_INTEL_LWB_C621A, |
| 139 | PCI_DEVICE_ID_INTEL_LWB_C627A, |
| 140 | PCI_DEVICE_ID_INTEL_LWB_C629A, |
Maxim Polyakov | 571d07d | 2019-08-22 13:11:32 +0300 | [diff] [blame] | 141 | PCI_DEVICE_ID_INTEL_LWB_C624_SUPER, |
| 142 | PCI_DEVICE_ID_INTEL_LWB_C627_SUPER_1, |
| 143 | PCI_DEVICE_ID_INTEL_LWB_C621_SUPER, |
| 144 | PCI_DEVICE_ID_INTEL_LWB_C627_SUPER_2, |
| 145 | PCI_DEVICE_ID_INTEL_LWB_C628_SUPER, |
BryantOu | e26da8b | 2020-04-15 00:37:23 -0700 | [diff] [blame] | 146 | PCI_DEVICE_ID_INTEL_LWB_C621A_SUPER, |
| 147 | PCI_DEVICE_ID_INTEL_LWB_C627A_SUPER, |
| 148 | PCI_DEVICE_ID_INTEL_LWB_C629A_SUPER, |
V Sowmya | acc2a48 | 2018-01-23 15:27:23 +0530 | [diff] [blame] | 149 | PCI_DEVICE_ID_INTEL_KBP_H_Q270, |
Gaggery Tsai | e415a4c | 2018-03-21 22:36:18 +0800 | [diff] [blame] | 150 | PCI_DEVICE_ID_INTEL_KBP_H_H270, |
| 151 | PCI_DEVICE_ID_INTEL_KBP_H_Z270, |
| 152 | PCI_DEVICE_ID_INTEL_KBP_H_Q250, |
| 153 | PCI_DEVICE_ID_INTEL_KBP_H_B250, |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 154 | PCI_DEVICE_ID_INTEL_SPT_LP_Y_PREMIUM_HDCP22, |
| 155 | PCI_DEVICE_ID_INTEL_SPT_LP_U_PREMIUM_HDCP22, |
Gaggery Tsai | e2592be | 2017-09-20 22:46:39 +0800 | [diff] [blame] | 156 | PCI_DEVICE_ID_INTEL_SPT_LP_U_BASE_HDCP22, |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 157 | PCI_DEVICE_ID_INTEL_KBP_LP_SUPER_SKU, |
| 158 | PCI_DEVICE_ID_INTEL_KBP_LP_U_PREMIUM, |
| 159 | PCI_DEVICE_ID_INTEL_KBP_LP_Y_PREMIUM, |
| 160 | PCI_DEVICE_ID_INTEL_APL_LPC, |
| 161 | PCI_DEVICE_ID_INTEL_GLK_LPC, |
Bora Guvendik | 94aed8d | 2017-11-03 12:40:25 -0700 | [diff] [blame] | 162 | PCI_DEVICE_ID_INTEL_GLK_ESPI, |
Lijian Zhao | f7bcc18 | 2017-09-25 23:58:39 -0700 | [diff] [blame] | 163 | PCI_DEVICE_ID_INTEL_CNL_BASE_U_LPC, |
| 164 | PCI_DEVICE_ID_INTEL_CNL_U_PREMIUM_LPC, |
Bora Guvendik | a0e0b05 | 2017-09-15 16:52:05 -0700 | [diff] [blame] | 165 | PCI_DEVICE_ID_INTEL_CNL_Y_PREMIUM_LPC, |
Felix Singer | d298ffe | 2019-07-28 13:27:11 +0200 | [diff] [blame] | 166 | PCI_DEVICE_ID_INTEL_CNP_H_LPC_H310, |
| 167 | PCI_DEVICE_ID_INTEL_CNP_H_LPC_H370, |
| 168 | PCI_DEVICE_ID_INTEL_CNP_H_LPC_Z390, |
praveen hodagatta pranesh | e26c4a4 | 2018-09-20 03:49:45 +0800 | [diff] [blame] | 169 | PCI_DEVICE_ID_INTEL_CNP_H_LPC_Q370, |
Felix Singer | d298ffe | 2019-07-28 13:27:11 +0200 | [diff] [blame] | 170 | PCI_DEVICE_ID_INTEL_CNP_H_LPC_B360, |
Lean Sheng Tan | 38c3ff7 | 2019-05-27 13:06:35 +0800 | [diff] [blame] | 171 | PCI_DEVICE_ID_INTEL_CNP_H_LPC_C246, |
Felix Singer | d298ffe | 2019-07-28 13:27:11 +0200 | [diff] [blame] | 172 | PCI_DEVICE_ID_INTEL_CNP_H_LPC_C242, |
| 173 | PCI_DEVICE_ID_INTEL_CNP_H_LPC_QM370, |
| 174 | PCI_DEVICE_ID_INTEL_CNP_H_LPC_HM370, |
Nico Huber | 129bc4c | 2019-05-14 13:17:28 +0200 | [diff] [blame] | 175 | PCI_DEVICE_ID_INTEL_CNP_H_LPC_CM246, |
Subrata Banik | 3d152ac | 2018-10-31 23:08:14 +0530 | [diff] [blame] | 176 | PCI_DEVICE_ID_INTEL_ICL_BASE_U_ESPI, |
| 177 | PCI_DEVICE_ID_INTEL_ICL_BASE_Y_ESPI, |
| 178 | PCI_DEVICE_ID_INTEL_ICL_U_PREMIUM_ESPI, |
| 179 | PCI_DEVICE_ID_INTEL_ICL_U_SUPER_U_ESPI, |
| 180 | PCI_DEVICE_ID_INTEL_ICL_U_SUPER_U_ESPI_REV0, |
| 181 | PCI_DEVICE_ID_INTEL_ICL_SUPER_Y_ESPI, |
| 182 | PCI_DEVICE_ID_INTEL_ICL_Y_PREMIUM_ESPI, |
Ronak Kanabar | da7ffb48 | 2019-02-05 01:51:13 +0530 | [diff] [blame] | 183 | PCI_DEVICE_ID_INTEL_CMP_SUPER_U_LPC, |
| 184 | PCI_DEVICE_ID_INTEL_CMP_PREMIUM_Y_LPC, |
| 185 | PCI_DEVICE_ID_INTEL_CMP_PREMIUM_U_LPC, |
| 186 | PCI_DEVICE_ID_INTEL_CMP_BASE_U_LPC, |
| 187 | PCI_DEVICE_ID_INTEL_CMP_SUPER_Y_LPC, |
Gaggery Tsai | b52354b | 2020-01-07 07:03:56 -0800 | [diff] [blame] | 188 | PCI_DEVICE_ID_INTEL_CMP_H_LPC_HM470, |
| 189 | PCI_DEVICE_ID_INTEL_CMP_H_LPC_WM490, |
| 190 | PCI_DEVICE_ID_INTEL_CMP_H_LPC_QM480, |
| 191 | PCI_DEVICE_ID_INTEL_CMP_H_LPC_W480, |
| 192 | PCI_DEVICE_ID_INTEL_CMP_H_LPC_H470, |
| 193 | PCI_DEVICE_ID_INTEL_CMP_H_LPC_Z490, |
| 194 | PCI_DEVICE_ID_INTEL_CMP_H_LPC_Q470, |
Subrata Banik | ae69575 | 2019-11-12 12:47:43 +0530 | [diff] [blame] | 195 | PCI_DEVICE_ID_INTEL_TGP_ESPI_0, |
| 196 | PCI_DEVICE_ID_INTEL_TGP_SUPER_U_ESPI, |
| 197 | PCI_DEVICE_ID_INTEL_TGP_PREMIUM_U_ESPI, |
| 198 | PCI_DEVICE_ID_INTEL_TGP_BASE_U_ESPI, |
| 199 | PCI_DEVICE_ID_INTEL_TGP_ESPI_1, |
| 200 | PCI_DEVICE_ID_INTEL_TGP_ESPI_2, |
| 201 | PCI_DEVICE_ID_INTEL_TGP_SUPER_Y_ESPI, |
| 202 | PCI_DEVICE_ID_INTEL_TGP_PREMIUM_Y_ESPI, |
| 203 | PCI_DEVICE_ID_INTEL_TGP_ESPI_3, |
| 204 | PCI_DEVICE_ID_INTEL_TGP_ESPI_4, |
| 205 | PCI_DEVICE_ID_INTEL_TGP_ESPI_5, |
| 206 | PCI_DEVICE_ID_INTEL_TGP_ESPI_6, |
| 207 | PCI_DEVICE_ID_INTEL_TGP_ESPI_7, |
| 208 | PCI_DEVICE_ID_INTEL_TGP_ESPI_8, |
| 209 | PCI_DEVICE_ID_INTEL_TGP_ESPI_9, |
| 210 | PCI_DEVICE_ID_INTEL_TGP_ESPI_10, |
| 211 | PCI_DEVICE_ID_INTEL_TGP_ESPI_11, |
| 212 | PCI_DEVICE_ID_INTEL_TGP_ESPI_12, |
| 213 | PCI_DEVICE_ID_INTEL_TGP_ESPI_13, |
| 214 | PCI_DEVICE_ID_INTEL_TGP_ESPI_14, |
| 215 | PCI_DEVICE_ID_INTEL_TGP_ESPI_15, |
| 216 | PCI_DEVICE_ID_INTEL_TGP_ESPI_16, |
| 217 | PCI_DEVICE_ID_INTEL_TGP_ESPI_17, |
| 218 | PCI_DEVICE_ID_INTEL_TGP_ESPI_18, |
| 219 | PCI_DEVICE_ID_INTEL_TGP_ESPI_19, |
| 220 | PCI_DEVICE_ID_INTEL_TGP_ESPI_20, |
| 221 | PCI_DEVICE_ID_INTEL_TGP_ESPI_21, |
| 222 | PCI_DEVICE_ID_INTEL_TGP_ESPI_22, |
| 223 | PCI_DEVICE_ID_INTEL_TGP_ESPI_23, |
| 224 | PCI_DEVICE_ID_INTEL_TGP_ESPI_24, |
| 225 | PCI_DEVICE_ID_INTEL_TGP_ESPI_25, |
| 226 | PCI_DEVICE_ID_INTEL_TGP_ESPI_26, |
Tan, Lean Sheng | 2613609 | 2020-01-20 19:13:56 -0800 | [diff] [blame] | 227 | PCI_DEVICE_ID_INTEL_MCC_ESPI_0, |
| 228 | PCI_DEVICE_ID_INTEL_MCC_ESPI_1, |
| 229 | PCI_DEVICE_ID_INTEL_MCC_BASE_ESPI, |
| 230 | PCI_DEVICE_ID_INTEL_MCC_PREMIUM_ESPI, |
| 231 | PCI_DEVICE_ID_INTEL_MCC_SUPER_ESPI, |
| 232 | PCI_DEVICE_ID_INTEL_MCC_ESPI_2, |
| 233 | PCI_DEVICE_ID_INTEL_MCC_ESPI_3, |
| 234 | PCI_DEVICE_ID_INTEL_MCC_ESPI_4, |
Meera Ravindranath | 3f4af0d | 2020-02-12 16:01:22 +0530 | [diff] [blame] | 235 | PCI_DEVICE_ID_INTEL_JSP_SUPER_ESPI, |
Subrata Banik | f672f7f | 2020-08-03 14:29:25 +0530 | [diff] [blame] | 236 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_0, |
| 237 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_1, |
| 238 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_2, |
| 239 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_3, |
| 240 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_4, |
| 241 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_5, |
| 242 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_6, |
| 243 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_7, |
| 244 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_8, |
| 245 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_9, |
| 246 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_10, |
| 247 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_11, |
| 248 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_12, |
| 249 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_13, |
| 250 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_14, |
| 251 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_15, |
| 252 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_16, |
| 253 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_17, |
| 254 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_18, |
| 255 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_19, |
| 256 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_20, |
| 257 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_21, |
| 258 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_22, |
| 259 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_23, |
| 260 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_24, |
| 261 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_25, |
| 262 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_26, |
| 263 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_27, |
| 264 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_28, |
| 265 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_29, |
| 266 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_30, |
| 267 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_31, |
| 268 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_0, |
| 269 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_1, |
| 270 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_2, |
| 271 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_3, |
| 272 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_4, |
| 273 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_5, |
| 274 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_6, |
| 275 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_7, |
| 276 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_8, |
| 277 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_9, |
| 278 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_10, |
| 279 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_11, |
| 280 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_12, |
| 281 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_13, |
| 282 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_14, |
| 283 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_15, |
| 284 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_16, |
| 285 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_17, |
| 286 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_18, |
| 287 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_19, |
| 288 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_20, |
| 289 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_21, |
| 290 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_22, |
| 291 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_23, |
| 292 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_24, |
| 293 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_25, |
| 294 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_26, |
| 295 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_27, |
| 296 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_28, |
| 297 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_29, |
| 298 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_30, |
| 299 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_31, |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 300 | 0 |
| 301 | }; |
| 302 | |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 303 | static const struct pci_driver pch_lpc __pci_driver = { |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 304 | .ops = &device_ops, |
| 305 | .vendor = PCI_VENDOR_ID_INTEL, |
| 306 | .devices = pci_device_ids, |
| 307 | }; |