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 | |
| 3 | #include <device/device.h> |
| 4 | #include <device/pci.h> |
| 5 | #include <device/pci_ids.h> |
| 6 | #include <intelblocks/lpc_lib.h> |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 7 | #include <soc/pm.h> |
| 8 | |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 9 | /* SoC overrides */ |
| 10 | |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 11 | /* Common weak definition, needs to be implemented in each soc LPC driver. */ |
Aaron Durbin | 6403167 | 2018-04-21 14:45:32 -0600 | [diff] [blame] | 12 | __weak void lpc_soc_init(struct device *dev) |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 13 | { |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 14 | /* no-op */ |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 15 | } |
| 16 | |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 17 | /* Fill up LPC IO resource structure inside SoC directory */ |
Aaron Durbin | 6403167 | 2018-04-21 14:45:32 -0600 | [diff] [blame] | 18 | __weak void pch_lpc_soc_fill_io_resources(struct device *dev) |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 19 | { |
| 20 | /* no-op */ |
| 21 | } |
| 22 | |
| 23 | void pch_lpc_add_new_resource(struct device *dev, uint8_t offset, |
| 24 | uintptr_t base, size_t size, unsigned long flags) |
| 25 | { |
| 26 | struct resource *res; |
| 27 | res = new_resource(dev, offset); |
| 28 | res->base = base; |
| 29 | res->size = size; |
| 30 | res->flags = flags; |
| 31 | } |
| 32 | |
Elyes HAOUAS | 4a13126 | 2018-09-16 17:35:48 +0200 | [diff] [blame] | 33 | static void pch_lpc_add_io_resources(struct device *dev) |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 34 | { |
| 35 | /* Add the default claimed legacy IO range for the LPC device. */ |
| 36 | pch_lpc_add_new_resource(dev, 0, 0, 0x1000, IORESOURCE_IO | |
| 37 | IORESOURCE_ASSIGNED | IORESOURCE_FIXED); |
| 38 | |
| 39 | /* SoC IO resource overrides */ |
| 40 | pch_lpc_soc_fill_io_resources(dev); |
| 41 | } |
| 42 | |
Elyes HAOUAS | 4a13126 | 2018-09-16 17:35:48 +0200 | [diff] [blame] | 43 | static void pch_lpc_read_resources(struct device *dev) |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 44 | { |
| 45 | /* Get the PCI resources of this device. */ |
| 46 | pci_dev_read_resources(dev); |
| 47 | |
| 48 | /* Add IO resources to LPC. */ |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 49 | pch_lpc_add_io_resources(dev); |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 50 | } |
| 51 | |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 52 | static void pch_lpc_set_child_resources(struct device *dev); |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 53 | |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 54 | static void pch_lpc_loop_resources(struct device *dev) |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 55 | { |
| 56 | struct resource *res; |
| 57 | |
| 58 | for (res = dev->resource_list; res; res = res->next) { |
| 59 | if (res->flags & IORESOURCE_IO) |
| 60 | lpc_open_pmio_window(res->base, res->size); |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 61 | } |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 62 | pch_lpc_set_child_resources(dev); |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | /* |
| 66 | * Loop through all the child devices' resources, and open up windows to the |
| 67 | * LPC bus, as appropriate. |
| 68 | */ |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 69 | static void pch_lpc_set_child_resources(struct device *dev) |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 70 | { |
| 71 | struct bus *link; |
| 72 | struct device *child; |
| 73 | |
| 74 | for (link = dev->link_list; link; link = link->next) { |
| 75 | for (child = link->children; child; child = child->sibling) |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 76 | pch_lpc_loop_resources(child); |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 77 | } |
| 78 | } |
| 79 | |
Elyes HAOUAS | 4a13126 | 2018-09-16 17:35:48 +0200 | [diff] [blame] | 80 | static void pch_lpc_set_resources(struct device *dev) |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 81 | { |
| 82 | pci_dev_set_resources(dev); |
| 83 | |
| 84 | /* Now open up windows to devices which have declared resources. */ |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 85 | pch_lpc_set_child_resources(dev); |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 86 | } |
| 87 | |
Jonathan Zhang | db202ba | 2020-09-21 17:09:50 -0700 | [diff] [blame] | 88 | #if CONFIG(HAVE_ACPI_TABLES) |
| 89 | static const char *lpc_acpi_name(const struct device *dev) |
| 90 | { |
| 91 | return "LPCB"; |
| 92 | } |
| 93 | #endif |
| 94 | |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 95 | static struct device_operations device_ops = { |
Nico Huber | 68680dd | 2020-03-31 17:34:52 +0200 | [diff] [blame] | 96 | .read_resources = pch_lpc_read_resources, |
| 97 | .set_resources = pch_lpc_set_resources, |
| 98 | .enable_resources = pci_dev_enable_resources, |
Karthikeyan Ramasubramanian | 0e971e1 | 2020-01-09 11:32:16 -0700 | [diff] [blame] | 99 | #if CONFIG(HAVE_ACPI_TABLES) |
Nico Huber | 68680dd | 2020-03-31 17:34:52 +0200 | [diff] [blame] | 100 | .write_acpi_tables = southbridge_write_acpi_tables, |
Jonathan Zhang | db202ba | 2020-09-21 17:09:50 -0700 | [diff] [blame] | 101 | .acpi_name = lpc_acpi_name, |
Karthikeyan Ramasubramanian | 0e971e1 | 2020-01-09 11:32:16 -0700 | [diff] [blame] | 102 | #endif |
Nico Huber | 68680dd | 2020-03-31 17:34:52 +0200 | [diff] [blame] | 103 | .init = lpc_soc_init, |
| 104 | .scan_bus = scan_static_bus, |
| 105 | .ops_pci = &pci_dev_ops_pci, |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 106 | }; |
| 107 | |
| 108 | static const unsigned short pci_device_ids[] = { |
| 109 | PCI_DEVICE_ID_INTEL_SPT_LP_SAMPLE, |
| 110 | PCI_DEVICE_ID_INTEL_SPT_LP_U_BASE, |
| 111 | PCI_DEVICE_ID_INTEL_SPT_LP_U_PREMIUM, |
| 112 | PCI_DEVICE_ID_INTEL_SPT_LP_Y_PREMIUM, |
Maxim Polyakov | 7a732b4 | 2019-02-25 10:48:39 +0300 | [diff] [blame] | 113 | PCI_DEVICE_ID_INTEL_SPT_H_H110, |
Marius Genheimer | 4998bec | 2019-04-30 00:04:32 +0200 | [diff] [blame] | 114 | PCI_DEVICE_ID_INTEL_SPT_H_H170, |
| 115 | PCI_DEVICE_ID_INTEL_SPT_H_Z170, |
| 116 | PCI_DEVICE_ID_INTEL_SPT_H_Q170, |
| 117 | PCI_DEVICE_ID_INTEL_SPT_H_Q150, |
| 118 | PCI_DEVICE_ID_INTEL_SPT_H_B150, |
Felix Singer | c3244cc | 2019-07-29 22:54:09 +0200 | [diff] [blame] | 119 | PCI_DEVICE_ID_INTEL_SPT_H_C236, |
| 120 | PCI_DEVICE_ID_INTEL_SPT_H_C232, |
V Sowmya | 7c15047 | 2018-01-23 14:44:45 +0530 | [diff] [blame] | 121 | PCI_DEVICE_ID_INTEL_SPT_H_QM170, |
Felix Singer | c3244cc | 2019-07-29 22:54:09 +0200 | [diff] [blame] | 122 | PCI_DEVICE_ID_INTEL_SPT_H_HM170, |
| 123 | PCI_DEVICE_ID_INTEL_SPT_H_CM236, |
Praveen hodagatta pranesh | 523d669 | 2018-11-03 01:21:14 +0800 | [diff] [blame] | 124 | PCI_DEVICE_ID_INTEL_SPT_H_HM175, |
| 125 | PCI_DEVICE_ID_INTEL_SPT_H_QM175, |
| 126 | PCI_DEVICE_ID_INTEL_SPT_H_CM238, |
Maxim Polyakov | 571d07d | 2019-08-22 13:11:32 +0300 | [diff] [blame] | 127 | PCI_DEVICE_ID_INTEL_LWB_C621, |
| 128 | PCI_DEVICE_ID_INTEL_LWB_C622, |
| 129 | PCI_DEVICE_ID_INTEL_LWB_C624, |
| 130 | PCI_DEVICE_ID_INTEL_LWB_C625, |
| 131 | PCI_DEVICE_ID_INTEL_LWB_C626, |
| 132 | PCI_DEVICE_ID_INTEL_LWB_C627, |
| 133 | PCI_DEVICE_ID_INTEL_LWB_C628, |
| 134 | PCI_DEVICE_ID_INTEL_LWB_C629, |
BryantOu | e26da8b | 2020-04-15 00:37:23 -0700 | [diff] [blame] | 135 | PCI_DEVICE_ID_INTEL_LWB_C621A, |
| 136 | PCI_DEVICE_ID_INTEL_LWB_C627A, |
| 137 | PCI_DEVICE_ID_INTEL_LWB_C629A, |
Maxim Polyakov | 571d07d | 2019-08-22 13:11:32 +0300 | [diff] [blame] | 138 | PCI_DEVICE_ID_INTEL_LWB_C624_SUPER, |
| 139 | PCI_DEVICE_ID_INTEL_LWB_C627_SUPER_1, |
| 140 | PCI_DEVICE_ID_INTEL_LWB_C621_SUPER, |
| 141 | PCI_DEVICE_ID_INTEL_LWB_C627_SUPER_2, |
| 142 | PCI_DEVICE_ID_INTEL_LWB_C628_SUPER, |
BryantOu | e26da8b | 2020-04-15 00:37:23 -0700 | [diff] [blame] | 143 | PCI_DEVICE_ID_INTEL_LWB_C621A_SUPER, |
| 144 | PCI_DEVICE_ID_INTEL_LWB_C627A_SUPER, |
| 145 | PCI_DEVICE_ID_INTEL_LWB_C629A_SUPER, |
Jonathan Zhang | f0fd6ae | 2020-12-11 17:13:52 -0800 | [diff] [blame] | 146 | PCI_DEVICE_ID_INTEL_EMB_SUPER, |
Angel Pons | f530e36 | 2021-04-27 10:20:04 +0200 | [diff] [blame] | 147 | PCI_DEVICE_ID_INTEL_UPT_H_Q270, |
| 148 | PCI_DEVICE_ID_INTEL_UPT_H_H270, |
| 149 | PCI_DEVICE_ID_INTEL_UPT_H_Z270, |
| 150 | PCI_DEVICE_ID_INTEL_UPT_H_Q250, |
| 151 | PCI_DEVICE_ID_INTEL_UPT_H_B250, |
Angel Pons | 49c20c0 | 2021-04-27 11:25:54 +0200 | [diff] [blame] | 152 | PCI_DEVICE_ID_INTEL_UPT_H_Z370, |
| 153 | PCI_DEVICE_ID_INTEL_UPT_H_H310C, |
| 154 | PCI_DEVICE_ID_INTEL_UPT_H_B365, |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 155 | PCI_DEVICE_ID_INTEL_SPT_LP_Y_PREMIUM_HDCP22, |
| 156 | PCI_DEVICE_ID_INTEL_SPT_LP_U_PREMIUM_HDCP22, |
Gaggery Tsai | e2592be | 2017-09-20 22:46:39 +0800 | [diff] [blame] | 157 | PCI_DEVICE_ID_INTEL_SPT_LP_U_BASE_HDCP22, |
Angel Pons | f530e36 | 2021-04-27 10:20:04 +0200 | [diff] [blame] | 158 | PCI_DEVICE_ID_INTEL_UPT_LP_SUPER_SKU, |
Angel Pons | b45a769 | 2021-04-27 11:12:58 +0200 | [diff] [blame] | 159 | PCI_DEVICE_ID_INTEL_UPT_LP_U_BASE, |
Angel Pons | f530e36 | 2021-04-27 10:20:04 +0200 | [diff] [blame] | 160 | PCI_DEVICE_ID_INTEL_UPT_LP_U_PREMIUM, |
| 161 | PCI_DEVICE_ID_INTEL_UPT_LP_Y_PREMIUM, |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 162 | PCI_DEVICE_ID_INTEL_APL_LPC, |
| 163 | PCI_DEVICE_ID_INTEL_GLK_LPC, |
Bora Guvendik | 94aed8d | 2017-11-03 12:40:25 -0700 | [diff] [blame] | 164 | PCI_DEVICE_ID_INTEL_GLK_ESPI, |
Lijian Zhao | f7bcc18 | 2017-09-25 23:58:39 -0700 | [diff] [blame] | 165 | PCI_DEVICE_ID_INTEL_CNL_BASE_U_LPC, |
| 166 | PCI_DEVICE_ID_INTEL_CNL_U_PREMIUM_LPC, |
Bora Guvendik | a0e0b05 | 2017-09-15 16:52:05 -0700 | [diff] [blame] | 167 | PCI_DEVICE_ID_INTEL_CNL_Y_PREMIUM_LPC, |
Felix Singer | d298ffe | 2019-07-28 13:27:11 +0200 | [diff] [blame] | 168 | PCI_DEVICE_ID_INTEL_CNP_H_LPC_H310, |
| 169 | PCI_DEVICE_ID_INTEL_CNP_H_LPC_H370, |
| 170 | PCI_DEVICE_ID_INTEL_CNP_H_LPC_Z390, |
praveen hodagatta pranesh | e26c4a4 | 2018-09-20 03:49:45 +0800 | [diff] [blame] | 171 | PCI_DEVICE_ID_INTEL_CNP_H_LPC_Q370, |
Felix Singer | d298ffe | 2019-07-28 13:27:11 +0200 | [diff] [blame] | 172 | PCI_DEVICE_ID_INTEL_CNP_H_LPC_B360, |
Lean Sheng Tan | 38c3ff7 | 2019-05-27 13:06:35 +0800 | [diff] [blame] | 173 | PCI_DEVICE_ID_INTEL_CNP_H_LPC_C246, |
Felix Singer | d298ffe | 2019-07-28 13:27:11 +0200 | [diff] [blame] | 174 | PCI_DEVICE_ID_INTEL_CNP_H_LPC_C242, |
| 175 | PCI_DEVICE_ID_INTEL_CNP_H_LPC_QM370, |
| 176 | PCI_DEVICE_ID_INTEL_CNP_H_LPC_HM370, |
Nico Huber | 129bc4c | 2019-05-14 13:17:28 +0200 | [diff] [blame] | 177 | PCI_DEVICE_ID_INTEL_CNP_H_LPC_CM246, |
Subrata Banik | 3d152ac | 2018-10-31 23:08:14 +0530 | [diff] [blame] | 178 | PCI_DEVICE_ID_INTEL_ICL_BASE_U_ESPI, |
| 179 | PCI_DEVICE_ID_INTEL_ICL_BASE_Y_ESPI, |
| 180 | PCI_DEVICE_ID_INTEL_ICL_U_PREMIUM_ESPI, |
| 181 | PCI_DEVICE_ID_INTEL_ICL_U_SUPER_U_ESPI, |
| 182 | PCI_DEVICE_ID_INTEL_ICL_U_SUPER_U_ESPI_REV0, |
| 183 | PCI_DEVICE_ID_INTEL_ICL_SUPER_Y_ESPI, |
| 184 | PCI_DEVICE_ID_INTEL_ICL_Y_PREMIUM_ESPI, |
Ronak Kanabar | da7ffb48 | 2019-02-05 01:51:13 +0530 | [diff] [blame] | 185 | PCI_DEVICE_ID_INTEL_CMP_SUPER_U_LPC, |
| 186 | PCI_DEVICE_ID_INTEL_CMP_PREMIUM_Y_LPC, |
| 187 | PCI_DEVICE_ID_INTEL_CMP_PREMIUM_U_LPC, |
| 188 | PCI_DEVICE_ID_INTEL_CMP_BASE_U_LPC, |
| 189 | PCI_DEVICE_ID_INTEL_CMP_SUPER_Y_LPC, |
Gaggery Tsai | b52354b | 2020-01-07 07:03:56 -0800 | [diff] [blame] | 190 | PCI_DEVICE_ID_INTEL_CMP_H_LPC_HM470, |
| 191 | PCI_DEVICE_ID_INTEL_CMP_H_LPC_WM490, |
| 192 | PCI_DEVICE_ID_INTEL_CMP_H_LPC_QM480, |
| 193 | PCI_DEVICE_ID_INTEL_CMP_H_LPC_W480, |
| 194 | PCI_DEVICE_ID_INTEL_CMP_H_LPC_H470, |
| 195 | PCI_DEVICE_ID_INTEL_CMP_H_LPC_Z490, |
| 196 | PCI_DEVICE_ID_INTEL_CMP_H_LPC_Q470, |
Subrata Banik | ae69575 | 2019-11-12 12:47:43 +0530 | [diff] [blame] | 197 | PCI_DEVICE_ID_INTEL_TGP_ESPI_0, |
| 198 | PCI_DEVICE_ID_INTEL_TGP_SUPER_U_ESPI, |
| 199 | PCI_DEVICE_ID_INTEL_TGP_PREMIUM_U_ESPI, |
| 200 | PCI_DEVICE_ID_INTEL_TGP_BASE_U_ESPI, |
| 201 | PCI_DEVICE_ID_INTEL_TGP_ESPI_1, |
| 202 | PCI_DEVICE_ID_INTEL_TGP_ESPI_2, |
| 203 | PCI_DEVICE_ID_INTEL_TGP_SUPER_Y_ESPI, |
| 204 | PCI_DEVICE_ID_INTEL_TGP_PREMIUM_Y_ESPI, |
| 205 | PCI_DEVICE_ID_INTEL_TGP_ESPI_3, |
| 206 | PCI_DEVICE_ID_INTEL_TGP_ESPI_4, |
| 207 | PCI_DEVICE_ID_INTEL_TGP_ESPI_5, |
| 208 | PCI_DEVICE_ID_INTEL_TGP_ESPI_6, |
| 209 | PCI_DEVICE_ID_INTEL_TGP_ESPI_7, |
| 210 | PCI_DEVICE_ID_INTEL_TGP_ESPI_8, |
| 211 | PCI_DEVICE_ID_INTEL_TGP_ESPI_9, |
| 212 | PCI_DEVICE_ID_INTEL_TGP_ESPI_10, |
| 213 | PCI_DEVICE_ID_INTEL_TGP_ESPI_11, |
| 214 | PCI_DEVICE_ID_INTEL_TGP_ESPI_12, |
| 215 | PCI_DEVICE_ID_INTEL_TGP_ESPI_13, |
| 216 | PCI_DEVICE_ID_INTEL_TGP_ESPI_14, |
| 217 | PCI_DEVICE_ID_INTEL_TGP_ESPI_15, |
| 218 | PCI_DEVICE_ID_INTEL_TGP_ESPI_16, |
| 219 | PCI_DEVICE_ID_INTEL_TGP_ESPI_17, |
| 220 | PCI_DEVICE_ID_INTEL_TGP_ESPI_18, |
| 221 | PCI_DEVICE_ID_INTEL_TGP_ESPI_19, |
| 222 | PCI_DEVICE_ID_INTEL_TGP_ESPI_20, |
| 223 | PCI_DEVICE_ID_INTEL_TGP_ESPI_21, |
| 224 | PCI_DEVICE_ID_INTEL_TGP_ESPI_22, |
| 225 | PCI_DEVICE_ID_INTEL_TGP_ESPI_23, |
| 226 | PCI_DEVICE_ID_INTEL_TGP_ESPI_24, |
| 227 | PCI_DEVICE_ID_INTEL_TGP_ESPI_25, |
| 228 | PCI_DEVICE_ID_INTEL_TGP_ESPI_26, |
Jeremy Soller | 191a8d7 | 2021-08-10 14:06:51 -0600 | [diff] [blame] | 229 | PCI_DEVICE_ID_INTEL_TGP_H_ESPI_B560, |
| 230 | PCI_DEVICE_ID_INTEL_TGP_H_ESPI_H510, |
| 231 | PCI_DEVICE_ID_INTEL_TGP_H_ESPI_H570, |
| 232 | PCI_DEVICE_ID_INTEL_TGP_H_ESPI_Q570, |
| 233 | PCI_DEVICE_ID_INTEL_TGP_H_ESPI_W580, |
| 234 | PCI_DEVICE_ID_INTEL_TGP_H_ESPI_Z590, |
| 235 | PCI_DEVICE_ID_INTEL_TGP_H_ESPI_HM570, |
| 236 | PCI_DEVICE_ID_INTEL_TGP_H_ESPI_QM580, |
| 237 | PCI_DEVICE_ID_INTEL_TGP_H_ESPI_WM590, |
Tan, Lean Sheng | 2613609 | 2020-01-20 19:13:56 -0800 | [diff] [blame] | 238 | PCI_DEVICE_ID_INTEL_MCC_ESPI_0, |
| 239 | PCI_DEVICE_ID_INTEL_MCC_ESPI_1, |
| 240 | PCI_DEVICE_ID_INTEL_MCC_BASE_ESPI, |
| 241 | PCI_DEVICE_ID_INTEL_MCC_PREMIUM_ESPI, |
| 242 | PCI_DEVICE_ID_INTEL_MCC_SUPER_ESPI, |
| 243 | PCI_DEVICE_ID_INTEL_MCC_ESPI_2, |
| 244 | PCI_DEVICE_ID_INTEL_MCC_ESPI_3, |
| 245 | PCI_DEVICE_ID_INTEL_MCC_ESPI_4, |
Meera Ravindranath | 3f4af0d | 2020-02-12 16:01:22 +0530 | [diff] [blame] | 246 | PCI_DEVICE_ID_INTEL_JSP_SUPER_ESPI, |
Subrata Banik | f672f7f | 2020-08-03 14:29:25 +0530 | [diff] [blame] | 247 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_0, |
| 248 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_1, |
| 249 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_2, |
| 250 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_3, |
| 251 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_4, |
| 252 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_5, |
| 253 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_6, |
| 254 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_7, |
| 255 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_8, |
| 256 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_9, |
| 257 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_10, |
| 258 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_11, |
| 259 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_12, |
| 260 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_13, |
| 261 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_14, |
| 262 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_15, |
| 263 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_16, |
| 264 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_17, |
| 265 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_18, |
| 266 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_19, |
| 267 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_20, |
| 268 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_21, |
| 269 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_22, |
| 270 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_23, |
| 271 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_24, |
| 272 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_25, |
| 273 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_26, |
| 274 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_27, |
| 275 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_28, |
| 276 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_29, |
| 277 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_30, |
| 278 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_31, |
Subrata Banik | a19001b | 2021-01-11 15:04:11 +0530 | [diff] [blame] | 279 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_32, |
| 280 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_33, |
Subrata Banik | f672f7f | 2020-08-03 14:29:25 +0530 | [diff] [blame] | 281 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_0, |
| 282 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_1, |
| 283 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_2, |
| 284 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_3, |
| 285 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_4, |
| 286 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_5, |
| 287 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_6, |
| 288 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_7, |
| 289 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_8, |
| 290 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_9, |
| 291 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_10, |
| 292 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_11, |
| 293 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_12, |
| 294 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_13, |
| 295 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_14, |
| 296 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_15, |
| 297 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_16, |
| 298 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_17, |
| 299 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_18, |
| 300 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_19, |
| 301 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_20, |
| 302 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_21, |
| 303 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_22, |
| 304 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_23, |
| 305 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_24, |
| 306 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_25, |
| 307 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_26, |
| 308 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_27, |
| 309 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_28, |
| 310 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_29, |
| 311 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_30, |
| 312 | PCI_DEVICE_ID_INTEL_ADP_S_ESPI_31, |
Varshit Pandya | f4d98fdd2 | 2021-01-17 18:39:29 +0530 | [diff] [blame] | 313 | PCI_DEVICE_ID_INTEL_ADP_P_ESPI_32, |
Usha P | af5a9d6 | 2022-01-17 20:24:31 +0530 | [diff] [blame] | 314 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_0, |
| 315 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_1, |
| 316 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_2, |
| 317 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_3, |
| 318 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_4, |
| 319 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_5, |
| 320 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_7, |
| 321 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_8, |
| 322 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_9, |
| 323 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_10, |
| 324 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_11, |
| 325 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_12, |
| 326 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_13, |
| 327 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_14, |
| 328 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_15, |
| 329 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_16, |
| 330 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_17, |
| 331 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_18, |
| 332 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_19, |
| 333 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_20, |
| 334 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_21, |
| 335 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_22, |
| 336 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_23, |
| 337 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_24, |
| 338 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_25, |
| 339 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_26, |
| 340 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_27, |
| 341 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_28, |
| 342 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_29, |
| 343 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_30, |
| 344 | PCI_DEVICE_ID_INTEL_ADP_M_N_ESPI_31, |
Maulik V Vaghela | afb143d | 2021-01-29 22:42:08 +0530 | [diff] [blame] | 345 | PCI_DEVICE_ID_INTEL_ADP_M_ESPI_32, |
Jonathan Zhang | 492a792 | 2021-03-06 10:31:46 -0800 | [diff] [blame] | 346 | PCI_DEVICE_ID_INTEL_SPR_ESPI_1, |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 347 | 0 |
| 348 | }; |
| 349 | |
Subrata Banik | 8885206 | 2018-01-10 10:51:50 +0530 | [diff] [blame] | 350 | static const struct pci_driver pch_lpc __pci_driver = { |
Ravi Sarawadi | efa606b | 2017-08-04 16:26:09 -0700 | [diff] [blame] | 351 | .ops = &device_ops, |
| 352 | .vendor = PCI_VENDOR_ID_INTEL, |
| 353 | .devices = pci_device_ids, |
| 354 | }; |