Angel Pons | 0612b27 | 2020-04-05 15:46:56 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Aamir Bohra | 2d689f9 | 2017-05-11 20:27:27 +0530 | [diff] [blame] | 2 | |
| 3 | #include <console/console.h> |
| 4 | #include <device/pci.h> |
| 5 | #include <device/pciexp.h> |
| 6 | #include <device/pci_def.h> |
| 7 | #include <device/pci_ids.h> |
Patrick Rudolph | e56189c | 2018-04-18 10:11:59 +0200 | [diff] [blame] | 8 | #include <device/pci_ops.h> |
Aamir Bohra | 2d689f9 | 2017-05-11 20:27:27 +0530 | [diff] [blame] | 9 | |
| 10 | #define CACHE_LINE_SIZE 0x10 |
Aamir Bohra | 2d689f9 | 2017-05-11 20:27:27 +0530 | [diff] [blame] | 11 | |
| 12 | static void pch_pcie_init(struct device *dev) |
| 13 | { |
| 14 | u16 reg16; |
| 15 | |
| 16 | printk(BIOS_DEBUG, "Initializing PCH PCIe bridge.\n"); |
| 17 | |
| 18 | /* Enable SERR */ |
| 19 | pci_or_config32(dev, PCI_COMMAND, PCI_COMMAND_SERR); |
| 20 | |
| 21 | /* Enable Bus Master */ |
| 22 | pci_or_config32(dev, PCI_COMMAND, PCI_COMMAND_MASTER); |
| 23 | |
| 24 | /* Set Cache Line Size to 0x10 */ |
| 25 | pci_write_config8(dev, PCI_CACHE_LINE_SIZE, CACHE_LINE_SIZE); |
| 26 | |
Angel Pons | b82b431 | 2020-07-23 23:32:46 +0200 | [diff] [blame] | 27 | /* disable parity error response */ |
| 28 | pci_and_config16(dev, PCI_BRIDGE_CONTROL, ~PCI_BRIDGE_CTL_PARITY); |
Aamir Bohra | 2d689f9 | 2017-05-11 20:27:27 +0530 | [diff] [blame] | 29 | |
Julius Werner | cd49cce | 2019-03-05 16:53:33 -0800 | [diff] [blame] | 30 | if (CONFIG(PCIE_DEBUG_INFO)) { |
Aamir Bohra | 2d689f9 | 2017-05-11 20:27:27 +0530 | [diff] [blame] | 31 | printk(BIOS_SPEW, " MBL = 0x%08x\n", |
| 32 | pci_read_config32(dev, PCI_MEMORY_BASE)); |
| 33 | printk(BIOS_SPEW, " PMBL = 0x%08x\n", |
| 34 | pci_read_config32(dev, PCI_PREF_MEMORY_BASE)); |
| 35 | printk(BIOS_SPEW, " PMBU32 = 0x%08x\n", |
| 36 | pci_read_config32(dev, PCI_PREF_BASE_UPPER32)); |
| 37 | printk(BIOS_SPEW, " PMLU32 = 0x%08x\n", |
| 38 | pci_read_config32(dev, PCI_PREF_LIMIT_UPPER32)); |
| 39 | } |
| 40 | |
| 41 | /* Clear errors in status registers */ |
| 42 | reg16 = pci_read_config16(dev, PCI_STATUS); |
| 43 | pci_write_config16(dev, PCI_STATUS, reg16); |
| 44 | reg16 = pci_read_config16(dev, PCI_SEC_STATUS); |
| 45 | pci_write_config16(dev, PCI_SEC_STATUS, reg16); |
| 46 | } |
| 47 | |
Elyes HAOUAS | 4a13126 | 2018-09-16 17:35:48 +0200 | [diff] [blame] | 48 | static void pcie_set_L1_ss_max_latency(struct device *dev, unsigned int offset) |
Aamir Bohra | 2d689f9 | 2017-05-11 20:27:27 +0530 | [diff] [blame] | 49 | { |
| 50 | /* Set max snoop and non-snoop latency for the SOC */ |
| 51 | pci_write_config32(dev, offset, |
Subrata Banik | ed6996f | 2019-03-25 21:49:39 +0530 | [diff] [blame] | 52 | PCIE_LTR_MAX_NO_SNOOP_LATENCY_3146US << 16 | |
| 53 | PCIE_LTR_MAX_SNOOP_LATENCY_3146US); |
Aamir Bohra | 2d689f9 | 2017-05-11 20:27:27 +0530 | [diff] [blame] | 54 | } |
| 55 | |
| 56 | static struct pci_operations pcie_ops = { |
| 57 | .set_L1_ss_latency = pcie_set_L1_ss_max_latency, |
Subrata Banik | 15ccbf0 | 2019-03-20 15:09:44 +0530 | [diff] [blame] | 58 | .set_subsystem = pci_dev_set_subsystem, |
Aamir Bohra | 2d689f9 | 2017-05-11 20:27:27 +0530 | [diff] [blame] | 59 | }; |
| 60 | |
| 61 | static struct device_operations device_ops = { |
| 62 | .read_resources = pci_bus_read_resources, |
| 63 | .set_resources = pci_dev_set_resources, |
| 64 | .enable_resources = pci_bus_enable_resources, |
| 65 | .init = pch_pcie_init, |
| 66 | .scan_bus = pciexp_scan_bridge, |
| 67 | .ops_pci = &pcie_ops, |
| 68 | }; |
| 69 | |
| 70 | static const unsigned short pcie_device_ids[] = { |
| 71 | PCI_DEVICE_ID_INTEL_SPT_LP_PCIE_RP1, |
| 72 | PCI_DEVICE_ID_INTEL_SPT_LP_PCIE_RP2, |
| 73 | PCI_DEVICE_ID_INTEL_SPT_LP_PCIE_RP3, |
| 74 | PCI_DEVICE_ID_INTEL_SPT_LP_PCIE_RP4, |
| 75 | PCI_DEVICE_ID_INTEL_SPT_LP_PCIE_RP5, |
| 76 | PCI_DEVICE_ID_INTEL_SPT_LP_PCIE_RP6, |
| 77 | PCI_DEVICE_ID_INTEL_SPT_LP_PCIE_RP7, |
| 78 | PCI_DEVICE_ID_INTEL_SPT_LP_PCIE_RP8, |
| 79 | PCI_DEVICE_ID_INTEL_SPT_LP_PCIE_RP9, |
| 80 | PCI_DEVICE_ID_INTEL_SPT_LP_PCIE_RP10, |
| 81 | PCI_DEVICE_ID_INTEL_SPT_LP_PCIE_RP11, |
| 82 | PCI_DEVICE_ID_INTEL_SPT_LP_PCIE_RP12, |
| 83 | PCI_DEVICE_ID_INTEL_SPT_H_PCIE_RP1, |
| 84 | PCI_DEVICE_ID_INTEL_SPT_H_PCIE_RP2, |
| 85 | PCI_DEVICE_ID_INTEL_SPT_H_PCIE_RP3, |
| 86 | PCI_DEVICE_ID_INTEL_SPT_H_PCIE_RP4, |
| 87 | PCI_DEVICE_ID_INTEL_SPT_H_PCIE_RP5, |
| 88 | PCI_DEVICE_ID_INTEL_SPT_H_PCIE_RP6, |
| 89 | PCI_DEVICE_ID_INTEL_SPT_H_PCIE_RP7, |
| 90 | PCI_DEVICE_ID_INTEL_SPT_H_PCIE_RP8, |
| 91 | PCI_DEVICE_ID_INTEL_SPT_H_PCIE_RP9, |
| 92 | PCI_DEVICE_ID_INTEL_SPT_H_PCIE_RP10, |
| 93 | PCI_DEVICE_ID_INTEL_SPT_H_PCIE_RP11, |
| 94 | PCI_DEVICE_ID_INTEL_SPT_H_PCIE_RP12, |
| 95 | PCI_DEVICE_ID_INTEL_SPT_H_PCIE_RP13, |
| 96 | PCI_DEVICE_ID_INTEL_SPT_H_PCIE_RP14, |
| 97 | PCI_DEVICE_ID_INTEL_SPT_H_PCIE_RP15, |
| 98 | PCI_DEVICE_ID_INTEL_SPT_H_PCIE_RP16, |
| 99 | PCI_DEVICE_ID_INTEL_SPT_H_PCIE_RP17, |
| 100 | PCI_DEVICE_ID_INTEL_SPT_H_PCIE_RP18, |
| 101 | PCI_DEVICE_ID_INTEL_SPT_H_PCIE_RP19, |
| 102 | PCI_DEVICE_ID_INTEL_SPT_H_PCIE_RP20, |
Maxim Polyakov | 571d07d | 2019-08-22 13:11:32 +0300 | [diff] [blame] | 103 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP1, |
| 104 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP2, |
| 105 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP3, |
| 106 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP4, |
| 107 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP5, |
| 108 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP6, |
| 109 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP7, |
| 110 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP8, |
| 111 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP9, |
| 112 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP10, |
| 113 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP11, |
| 114 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP12, |
| 115 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP13, |
| 116 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP14, |
| 117 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP15, |
| 118 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP16, |
| 119 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP17, |
| 120 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP18, |
| 121 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP19, |
| 122 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP20, |
| 123 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP1_SUPER, |
| 124 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP2_SUPER, |
| 125 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP3_SUPER, |
| 126 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP4_SUPER, |
| 127 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP5_SUPER, |
| 128 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP6_SUPER, |
| 129 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP7_SUPER, |
| 130 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP8_SUPER, |
| 131 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP9_SUPER, |
| 132 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP10_SUPER, |
| 133 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP11_SUPER, |
| 134 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP12_SUPER, |
| 135 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP13_SUPER, |
| 136 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP14_SUPER, |
| 137 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP15_SUPER, |
| 138 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP16_SUPER, |
| 139 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP17_SUPER, |
| 140 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP18_SUPER, |
| 141 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP19_SUPER, |
| 142 | PCI_DEVICE_ID_INTEL_LWB_PCIE_RP20_SUPER, |
Aamir Bohra | 2d689f9 | 2017-05-11 20:27:27 +0530 | [diff] [blame] | 143 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP1, |
| 144 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP2, |
| 145 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP3, |
| 146 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP4, |
| 147 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP5, |
| 148 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP6, |
| 149 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP7, |
| 150 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP8, |
| 151 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP9, |
| 152 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP10, |
| 153 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP11, |
| 154 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP12, |
| 155 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP13, |
| 156 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP14, |
| 157 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP15, |
| 158 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP16, |
| 159 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP17, |
| 160 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP18, |
| 161 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP19, |
| 162 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP20, |
| 163 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP21, |
| 164 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP22, |
| 165 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP23, |
| 166 | PCI_DEVICE_ID_INTEL_KBP_H_PCIE_RP24, |
Lijian Zhao | bbedef9 | 2017-07-29 16:38:38 -0700 | [diff] [blame] | 167 | PCI_DEVICE_ID_INTEL_CNL_LP_PCIE_RP1, |
| 168 | PCI_DEVICE_ID_INTEL_CNL_LP_PCIE_RP2, |
| 169 | PCI_DEVICE_ID_INTEL_CNL_LP_PCIE_RP3, |
| 170 | PCI_DEVICE_ID_INTEL_CNL_LP_PCIE_RP4, |
| 171 | PCI_DEVICE_ID_INTEL_CNL_LP_PCIE_RP5, |
| 172 | PCI_DEVICE_ID_INTEL_CNL_LP_PCIE_RP6, |
| 173 | PCI_DEVICE_ID_INTEL_CNL_LP_PCIE_RP7, |
| 174 | PCI_DEVICE_ID_INTEL_CNL_LP_PCIE_RP8, |
| 175 | PCI_DEVICE_ID_INTEL_CNL_LP_PCIE_RP9, |
| 176 | PCI_DEVICE_ID_INTEL_CNL_LP_PCIE_RP10, |
| 177 | PCI_DEVICE_ID_INTEL_CNL_LP_PCIE_RP11, |
| 178 | PCI_DEVICE_ID_INTEL_CNL_LP_PCIE_RP12, |
| 179 | PCI_DEVICE_ID_INTEL_CNL_LP_PCIE_RP13, |
| 180 | PCI_DEVICE_ID_INTEL_CNL_LP_PCIE_RP14, |
| 181 | PCI_DEVICE_ID_INTEL_CNL_LP_PCIE_RP15, |
| 182 | PCI_DEVICE_ID_INTEL_CNL_LP_PCIE_RP16, |
praveen hodagatta pranesh | e26c4a4 | 2018-09-20 03:49:45 +0800 | [diff] [blame] | 183 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP1, |
| 184 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP2, |
| 185 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP3, |
| 186 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP4, |
| 187 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP5, |
| 188 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP6, |
| 189 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP7, |
| 190 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP8, |
| 191 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP9, |
| 192 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP10, |
| 193 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP11, |
| 194 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP12, |
| 195 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP13, |
| 196 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP14, |
| 197 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP15, |
| 198 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP16, |
| 199 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP17, |
| 200 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP18, |
| 201 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP19, |
| 202 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP20, |
| 203 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP21, |
| 204 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP22, |
| 205 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP23, |
| 206 | PCI_DEVICE_ID_INTEL_CNP_H_PCIE_RP24, |
Aamir Bohra | 9eac039 | 2018-06-30 12:07:04 +0530 | [diff] [blame] | 207 | PCI_DEVICE_ID_INTEL_ICP_LP_PCIE_RP1, |
| 208 | PCI_DEVICE_ID_INTEL_ICP_LP_PCIE_RP2, |
| 209 | PCI_DEVICE_ID_INTEL_ICP_LP_PCIE_RP3, |
| 210 | PCI_DEVICE_ID_INTEL_ICP_LP_PCIE_RP4, |
| 211 | PCI_DEVICE_ID_INTEL_ICP_LP_PCIE_RP5, |
| 212 | PCI_DEVICE_ID_INTEL_ICP_LP_PCIE_RP6, |
| 213 | PCI_DEVICE_ID_INTEL_ICP_LP_PCIE_RP7, |
| 214 | PCI_DEVICE_ID_INTEL_ICP_LP_PCIE_RP8, |
| 215 | PCI_DEVICE_ID_INTEL_ICP_LP_PCIE_RP9, |
| 216 | PCI_DEVICE_ID_INTEL_ICP_LP_PCIE_RP10, |
| 217 | PCI_DEVICE_ID_INTEL_ICP_LP_PCIE_RP11, |
| 218 | PCI_DEVICE_ID_INTEL_ICP_LP_PCIE_RP12, |
| 219 | PCI_DEVICE_ID_INTEL_ICP_LP_PCIE_RP13, |
| 220 | PCI_DEVICE_ID_INTEL_ICP_LP_PCIE_RP14, |
| 221 | PCI_DEVICE_ID_INTEL_ICP_LP_PCIE_RP15, |
| 222 | PCI_DEVICE_ID_INTEL_ICP_LP_PCIE_RP16, |
Ronak Kanabar | da7ffb48 | 2019-02-05 01:51:13 +0530 | [diff] [blame] | 223 | PCI_DEVICE_ID_INTEL_CMP_LP_PCIE_RP1, |
| 224 | PCI_DEVICE_ID_INTEL_CMP_LP_PCIE_RP2, |
| 225 | PCI_DEVICE_ID_INTEL_CMP_LP_PCIE_RP3, |
| 226 | PCI_DEVICE_ID_INTEL_CMP_LP_PCIE_RP4, |
| 227 | PCI_DEVICE_ID_INTEL_CMP_LP_PCIE_RP5, |
| 228 | PCI_DEVICE_ID_INTEL_CMP_LP_PCIE_RP6, |
| 229 | PCI_DEVICE_ID_INTEL_CMP_LP_PCIE_RP7, |
| 230 | PCI_DEVICE_ID_INTEL_CMP_LP_PCIE_RP8, |
| 231 | PCI_DEVICE_ID_INTEL_CMP_LP_PCIE_RP9, |
| 232 | PCI_DEVICE_ID_INTEL_CMP_LP_PCIE_RP10, |
| 233 | PCI_DEVICE_ID_INTEL_CMP_LP_PCIE_RP11, |
| 234 | PCI_DEVICE_ID_INTEL_CMP_LP_PCIE_RP12, |
| 235 | PCI_DEVICE_ID_INTEL_CMP_LP_PCIE_RP13, |
| 236 | PCI_DEVICE_ID_INTEL_CMP_LP_PCIE_RP14, |
| 237 | PCI_DEVICE_ID_INTEL_CMP_LP_PCIE_RP15, |
| 238 | PCI_DEVICE_ID_INTEL_CMP_LP_PCIE_RP16, |
Gaggery Tsai | 12a651c | 2019-12-05 11:23:20 -0800 | [diff] [blame] | 239 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP1, |
| 240 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP2, |
| 241 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP3, |
| 242 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP4, |
| 243 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP5, |
| 244 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP6, |
| 245 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP7, |
| 246 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP8, |
| 247 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP9, |
| 248 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP10, |
| 249 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP11, |
| 250 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP12, |
| 251 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP13, |
| 252 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP14, |
| 253 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP15, |
| 254 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP16, |
| 255 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP17, |
| 256 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP18, |
| 257 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP19, |
| 258 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP20, |
| 259 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP21, |
| 260 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP22, |
| 261 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP23, |
| 262 | PCI_DEVICE_ID_INTEL_CMP_H_PCIE_RP24, |
Ravi Sarawadi | 6b5bf40 | 2019-10-21 22:25:04 -0700 | [diff] [blame] | 263 | PCI_DEVICE_ID_INTEL_TGP_LP_PCIE_RP1, |
| 264 | PCI_DEVICE_ID_INTEL_TGP_LP_PCIE_RP2, |
| 265 | PCI_DEVICE_ID_INTEL_TGP_LP_PCIE_RP3, |
| 266 | PCI_DEVICE_ID_INTEL_TGP_LP_PCIE_RP4, |
| 267 | PCI_DEVICE_ID_INTEL_TGP_LP_PCIE_RP5, |
| 268 | PCI_DEVICE_ID_INTEL_TGP_LP_PCIE_RP6, |
| 269 | PCI_DEVICE_ID_INTEL_TGP_LP_PCIE_RP7, |
| 270 | PCI_DEVICE_ID_INTEL_TGP_LP_PCIE_RP8, |
| 271 | PCI_DEVICE_ID_INTEL_TGP_LP_PCIE_RP9, |
| 272 | PCI_DEVICE_ID_INTEL_TGP_LP_PCIE_RP10, |
| 273 | PCI_DEVICE_ID_INTEL_TGP_LP_PCIE_RP11, |
| 274 | PCI_DEVICE_ID_INTEL_TGP_LP_PCIE_RP12, |
| 275 | PCI_DEVICE_ID_INTEL_TGP_LP_PCIE_RP13, |
| 276 | PCI_DEVICE_ID_INTEL_TGP_LP_PCIE_RP14, |
| 277 | PCI_DEVICE_ID_INTEL_TGP_LP_PCIE_RP15, |
| 278 | PCI_DEVICE_ID_INTEL_TGP_LP_PCIE_RP16, |
Tan, Lean Sheng | 2613609 | 2020-01-20 19:13:56 -0800 | [diff] [blame] | 279 | PCI_DEVICE_ID_INTEL_MCC_PCIE_RP1, |
| 280 | PCI_DEVICE_ID_INTEL_MCC_PCIE_RP2, |
| 281 | PCI_DEVICE_ID_INTEL_MCC_PCIE_RP3, |
| 282 | PCI_DEVICE_ID_INTEL_MCC_PCIE_RP4, |
| 283 | PCI_DEVICE_ID_INTEL_MCC_PCIE_RP5, |
| 284 | PCI_DEVICE_ID_INTEL_MCC_PCIE_RP6, |
| 285 | PCI_DEVICE_ID_INTEL_MCC_PCIE_RP7, |
Meera Ravindranath | 3f4af0d | 2020-02-12 16:01:22 +0530 | [diff] [blame] | 286 | PCI_DEVICE_ID_INTEL_JSP_PCIE_RP1, |
| 287 | PCI_DEVICE_ID_INTEL_JSP_PCIE_RP2, |
| 288 | PCI_DEVICE_ID_INTEL_JSP_PCIE_RP3, |
| 289 | PCI_DEVICE_ID_INTEL_JSP_PCIE_RP4, |
| 290 | PCI_DEVICE_ID_INTEL_JSP_PCIE_RP5, |
| 291 | PCI_DEVICE_ID_INTEL_JSP_PCIE_RP6, |
| 292 | PCI_DEVICE_ID_INTEL_JSP_PCIE_RP7, |
| 293 | PCI_DEVICE_ID_INTEL_JSP_PCIE_RP8, |
Subrata Banik | f672f7f | 2020-08-03 14:29:25 +0530 | [diff] [blame] | 294 | PCI_DEVICE_ID_INTEL_ADP_P_PCIE_RP1, |
| 295 | PCI_DEVICE_ID_INTEL_ADP_P_PCIE_RP2, |
| 296 | PCI_DEVICE_ID_INTEL_ADP_P_PCIE_RP3, |
| 297 | PCI_DEVICE_ID_INTEL_ADP_P_PCIE_RP4, |
| 298 | PCI_DEVICE_ID_INTEL_ADP_P_PCIE_RP5, |
| 299 | PCI_DEVICE_ID_INTEL_ADP_P_PCIE_RP6, |
| 300 | PCI_DEVICE_ID_INTEL_ADP_P_PCIE_RP7, |
| 301 | PCI_DEVICE_ID_INTEL_ADP_P_PCIE_RP8, |
| 302 | PCI_DEVICE_ID_INTEL_ADP_P_PCIE_RP9, |
| 303 | PCI_DEVICE_ID_INTEL_ADP_P_PCIE_RP10, |
| 304 | PCI_DEVICE_ID_INTEL_ADP_P_PCIE_RP11, |
| 305 | PCI_DEVICE_ID_INTEL_ADP_P_PCIE_RP12, |
| 306 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP1, |
| 307 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP2, |
| 308 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP3, |
| 309 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP4, |
| 310 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP5, |
| 311 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP6, |
| 312 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP7, |
| 313 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP8, |
| 314 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP9, |
| 315 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP10, |
| 316 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP11, |
| 317 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP12, |
| 318 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP13, |
| 319 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP14, |
| 320 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP15, |
| 321 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP16, |
| 322 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP17, |
| 323 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP18, |
| 324 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP19, |
| 325 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP20, |
| 326 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP21, |
| 327 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP22, |
| 328 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP23, |
| 329 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP24, |
| 330 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP25, |
| 331 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP26, |
| 332 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP27, |
| 333 | PCI_DEVICE_ID_INTEL_ADP_S_PCIE_RP28, |
Varshit Pandya | f4d98fdd2 | 2021-01-17 18:39:29 +0530 | [diff] [blame^] | 334 | PCI_DEVICE_ID_INTEL_ADP_M_PCIE_RP1, |
| 335 | PCI_DEVICE_ID_INTEL_ADP_M_PCIE_RP2, |
| 336 | PCI_DEVICE_ID_INTEL_ADP_M_PCIE_RP3, |
| 337 | PCI_DEVICE_ID_INTEL_ADP_M_PCIE_RP4, |
| 338 | PCI_DEVICE_ID_INTEL_ADP_M_PCIE_RP5, |
| 339 | PCI_DEVICE_ID_INTEL_ADP_M_PCIE_RP6, |
| 340 | PCI_DEVICE_ID_INTEL_ADP_M_PCIE_RP7, |
| 341 | PCI_DEVICE_ID_INTEL_ADP_M_PCIE_RP8, |
| 342 | PCI_DEVICE_ID_INTEL_ADP_M_PCIE_RP9, |
| 343 | PCI_DEVICE_ID_INTEL_ADP_M_PCIE_RP10, |
Aamir Bohra | 2d689f9 | 2017-05-11 20:27:27 +0530 | [diff] [blame] | 344 | 0 |
| 345 | }; |
| 346 | |
| 347 | static const struct pci_driver pch_pcie __pci_driver = { |
| 348 | .ops = &device_ops, |
| 349 | .vendor = PCI_VENDOR_ID_INTEL, |
| 350 | .devices = pcie_device_ids, |
| 351 | }; |