Angel Pons | f94ac9a | 2020-04-05 15:46:48 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | /* This file is part of the coreboot project. */ |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 3 | |
Kyösti Mälkki | 13f6650 | 2019-03-03 08:01:05 +0200 | [diff] [blame] | 4 | #include <device/mmio.h> |
Kyösti Mälkki | f1b58b7 | 2019-03-01 13:43:02 +0200 | [diff] [blame] | 5 | #include <device/pci_ops.h> |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 6 | #include <cbmem.h> |
| 7 | #include <console/console.h> |
| 8 | #include <device/device.h> |
| 9 | #include <device/pci.h> |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 10 | #include <device/pci_ids.h> |
Julius Werner | 4ee4bd5 | 2014-10-20 13:46:39 -0700 | [diff] [blame] | 11 | #include <soc/iobp.h> |
| 12 | #include <soc/nvs.h> |
| 13 | #include <soc/pci_devs.h> |
| 14 | #include <soc/pch.h> |
| 15 | #include <soc/ramstage.h> |
| 16 | #include <soc/rcba.h> |
| 17 | #include <soc/serialio.h> |
| 18 | #include <soc/intel/broadwell/chip.h> |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 19 | |
| 20 | /* Set D3Hot Power State in ACPI mode */ |
Duncan Laurie | 6168027 | 2014-05-05 12:42:35 -0500 | [diff] [blame] | 21 | static void serialio_enable_d3hot(struct resource *res) |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 22 | { |
Kevin Paul Herbert | bde6d30 | 2014-12-24 18:43:20 -0800 | [diff] [blame] | 23 | u32 reg32 = read32(res2mmio(res, PCH_PCS, 0)); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 24 | reg32 |= PCH_PCS_PS_D3HOT; |
Kevin Paul Herbert | bde6d30 | 2014-12-24 18:43:20 -0800 | [diff] [blame] | 25 | write32(res2mmio(res, PCH_PCS, 0), reg32); |
Duncan Laurie | 6168027 | 2014-05-05 12:42:35 -0500 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | static int serialio_uart_is_debug(struct device *dev) |
| 29 | { |
Julius Werner | cd49cce | 2019-03-05 16:53:33 -0800 | [diff] [blame] | 30 | #if CONFIG(INTEL_PCH_UART_CONSOLE) |
Duncan Laurie | 6168027 | 2014-05-05 12:42:35 -0500 | [diff] [blame] | 31 | switch (dev->path.pci.devfn) { |
| 32 | case PCH_DEVFN_UART0: /* UART0 */ |
| 33 | return !!(CONFIG_INTEL_PCH_UART_CONSOLE_NUMBER == 0); |
| 34 | case PCH_DEVFN_UART1: /* UART1 */ |
| 35 | return !!(CONFIG_INTEL_PCH_UART_CONSOLE_NUMBER == 1); |
| 36 | } |
| 37 | #endif |
| 38 | return 0; |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 39 | } |
| 40 | |
| 41 | /* Enable clock in PCI mode */ |
| 42 | static void serialio_enable_clock(struct resource *bar0) |
| 43 | { |
Kevin Paul Herbert | bde6d30 | 2014-12-24 18:43:20 -0800 | [diff] [blame] | 44 | u32 reg32 = read32(res2mmio(bar0, SIO_REG_PPR_CLOCK, 0)); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 45 | reg32 |= SIO_REG_PPR_CLOCK_EN; |
Kevin Paul Herbert | bde6d30 | 2014-12-24 18:43:20 -0800 | [diff] [blame] | 46 | write32(res2mmio(bar0, SIO_REG_PPR_CLOCK, 0), reg32); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | /* Put Serial IO D21:F0-F6 device into desired mode. */ |
| 50 | static void serialio_d21_mode(int sio_index, int int_pin, int acpi_mode) |
| 51 | { |
| 52 | u32 portctrl = SIO_IOBP_PORTCTRL_PM_CAP_PRSNT; |
| 53 | |
| 54 | /* Snoop select 1. */ |
| 55 | portctrl |= SIO_IOBP_PORTCTRL_SNOOP_SELECT(1); |
| 56 | |
| 57 | /* Set interrupt pin. */ |
| 58 | portctrl |= SIO_IOBP_PORTCTRL_INT_PIN(int_pin); |
| 59 | |
| 60 | if (acpi_mode) { |
| 61 | /* Enable ACPI interrupt mode. */ |
| 62 | portctrl |= SIO_IOBP_PORTCTRL_ACPI_IRQ_EN; |
| 63 | |
| 64 | /* Disable PCI config space. */ |
| 65 | portctrl |= SIO_IOBP_PORTCTRL_PCI_CONF_DIS; |
| 66 | } |
| 67 | |
| 68 | pch_iobp_update(SIO_IOBP_PORTCTRLX(sio_index), 0, portctrl); |
| 69 | } |
| 70 | |
| 71 | /* Put Serial IO D23:F0 device into desired mode. */ |
| 72 | static void serialio_d23_mode(int acpi_mode) |
| 73 | { |
| 74 | u32 portctrl = 0; |
| 75 | |
| 76 | /* Snoop select 1. */ |
| 77 | pch_iobp_update(SIO_IOBP_PORTCTRL1, 0, |
| 78 | SIO_IOBP_PORTCTRL1_SNOOP_SELECT(1)); |
| 79 | |
| 80 | if (acpi_mode) { |
| 81 | /* Enable ACPI interrupt mode. */ |
| 82 | portctrl |= SIO_IOBP_PORTCTRL0_ACPI_IRQ_EN; |
| 83 | |
| 84 | /* Disable PCI config space. */ |
| 85 | portctrl |= SIO_IOBP_PORTCTRL0_PCI_CONF_DIS; |
| 86 | } |
| 87 | |
| 88 | pch_iobp_update(SIO_IOBP_PORTCTRL0, 0, portctrl); |
| 89 | } |
| 90 | |
| 91 | /* Enable LTR Auto Mode for D21:F1-F6. */ |
| 92 | static void serialio_d21_ltr(struct resource *bar0) |
| 93 | { |
| 94 | u32 reg; |
| 95 | |
| 96 | /* 1. Program BAR0 + 808h[2] = 0b */ |
Kevin Paul Herbert | bde6d30 | 2014-12-24 18:43:20 -0800 | [diff] [blame] | 97 | reg = read32(res2mmio(bar0, SIO_REG_PPR_GEN, 0)); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 98 | reg &= ~SIO_REG_PPR_GEN_LTR_MODE_MASK; |
Kevin Paul Herbert | bde6d30 | 2014-12-24 18:43:20 -0800 | [diff] [blame] | 99 | write32(res2mmio(bar0, SIO_REG_PPR_GEN, 0), reg); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 100 | |
| 101 | /* 2. Program BAR0 + 804h[1:0] = 00b */ |
Kevin Paul Herbert | bde6d30 | 2014-12-24 18:43:20 -0800 | [diff] [blame] | 102 | reg = read32(res2mmio(bar0, SIO_REG_PPR_RST, 0)); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 103 | reg &= ~SIO_REG_PPR_RST_ASSERT; |
Kevin Paul Herbert | bde6d30 | 2014-12-24 18:43:20 -0800 | [diff] [blame] | 104 | write32(res2mmio(bar0, SIO_REG_PPR_RST, 0), reg); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 105 | |
| 106 | /* 3. Program BAR0 + 804h[1:0] = 11b */ |
Kevin Paul Herbert | bde6d30 | 2014-12-24 18:43:20 -0800 | [diff] [blame] | 107 | reg = read32(res2mmio(bar0, SIO_REG_PPR_RST, 0)); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 108 | reg |= SIO_REG_PPR_RST_ASSERT; |
Kevin Paul Herbert | bde6d30 | 2014-12-24 18:43:20 -0800 | [diff] [blame] | 109 | write32(res2mmio(bar0, SIO_REG_PPR_RST, 0), reg); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 110 | |
| 111 | /* 4. Program BAR0 + 814h[31:0] = 00000000h */ |
Kevin Paul Herbert | bde6d30 | 2014-12-24 18:43:20 -0800 | [diff] [blame] | 112 | write32(res2mmio(bar0, SIO_REG_AUTO_LTR, 0), 0); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 113 | } |
| 114 | |
| 115 | /* Enable LTR Auto Mode for D23:F0. */ |
| 116 | static void serialio_d23_ltr(struct resource *bar0) |
| 117 | { |
| 118 | u32 reg; |
| 119 | |
| 120 | /* Program BAR0 + 1008h[2] = 1b */ |
Kevin Paul Herbert | bde6d30 | 2014-12-24 18:43:20 -0800 | [diff] [blame] | 121 | reg = read32(res2mmio(bar0, SIO_REG_SDIO_PPR_GEN, 0)); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 122 | reg |= SIO_REG_PPR_GEN_LTR_MODE_MASK; |
Kevin Paul Herbert | bde6d30 | 2014-12-24 18:43:20 -0800 | [diff] [blame] | 123 | write32(res2mmio(bar0, SIO_REG_SDIO_PPR_GEN, 0), reg); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 124 | |
| 125 | /* Program BAR0 + 1010h = 0x00000000 */ |
Kevin Paul Herbert | bde6d30 | 2014-12-24 18:43:20 -0800 | [diff] [blame] | 126 | write32(res2mmio(bar0, SIO_REG_SDIO_PPR_SW_LTR, 0), 0); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 127 | |
| 128 | /* Program BAR0 + 3Ch[30] = 1b */ |
Kevin Paul Herbert | bde6d30 | 2014-12-24 18:43:20 -0800 | [diff] [blame] | 129 | reg = read32(res2mmio(bar0, SIO_REG_SDIO_PPR_CMD12, 0)); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 130 | reg |= SIO_REG_SDIO_PPR_CMD12_B30; |
Kevin Paul Herbert | bde6d30 | 2014-12-24 18:43:20 -0800 | [diff] [blame] | 131 | write32(res2mmio(bar0, SIO_REG_SDIO_PPR_CMD12, 0), reg); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 132 | } |
| 133 | |
| 134 | /* Select I2C voltage of 1.8V or 3.3V. */ |
| 135 | static void serialio_i2c_voltage_sel(struct resource *bar0, u8 voltage) |
| 136 | { |
Kevin Paul Herbert | bde6d30 | 2014-12-24 18:43:20 -0800 | [diff] [blame] | 137 | u32 reg32 = read32(res2mmio(bar0, SIO_REG_PPR_GEN, 0)); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 138 | reg32 &= ~SIO_REG_PPR_GEN_VOLTAGE_MASK; |
| 139 | reg32 |= SIO_REG_PPR_GEN_VOLTAGE(voltage); |
Kevin Paul Herbert | bde6d30 | 2014-12-24 18:43:20 -0800 | [diff] [blame] | 140 | write32(res2mmio(bar0, SIO_REG_PPR_GEN, 0), reg32); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 141 | } |
| 142 | |
| 143 | /* Init sequence to be run once, done as part of D21:F0 (SDMA) init. */ |
| 144 | static void serialio_init_once(int acpi_mode) |
| 145 | { |
| 146 | if (acpi_mode) { |
| 147 | /* Enable ACPI IRQ for IRQ13, IRQ7, IRQ6, IRQ5 in RCBA. */ |
| 148 | RCBA32_OR(ACPIIRQEN, (1 << 13)|(1 << 7)|(1 << 6)|(1 << 5)); |
| 149 | } |
| 150 | |
| 151 | /* Program IOBP CB000154h[12,9:8,4:0] = 1001100011111b. */ |
| 152 | pch_iobp_update(SIO_IOBP_GPIODF, ~0x0000131f, 0x0000131f); |
| 153 | |
| 154 | /* Program IOBP CB000180h[5:0] = 111111b (undefined register) */ |
| 155 | pch_iobp_update(0xcb000180, ~0x0000003f, 0x0000003f); |
| 156 | } |
| 157 | |
| 158 | static void serialio_init(struct device *dev) |
| 159 | { |
Kyösti Mälkki | 8950cfb | 2019-07-13 22:16:25 +0300 | [diff] [blame] | 160 | config_t *config = config_of(dev); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 161 | struct resource *bar0, *bar1; |
| 162 | int sio_index = -1; |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 163 | |
| 164 | printk(BIOS_DEBUG, "Initializing Serial IO device\n"); |
| 165 | |
| 166 | /* Ensure memory and bus master are enabled */ |
Elyes HAOUAS | b887adf | 2020-04-29 10:42:34 +0200 | [diff] [blame^] | 167 | pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 168 | |
| 169 | /* Find BAR0 and BAR1 */ |
| 170 | bar0 = find_resource(dev, PCI_BASE_ADDRESS_0); |
| 171 | if (!bar0) |
| 172 | return; |
| 173 | bar1 = find_resource(dev, PCI_BASE_ADDRESS_1); |
| 174 | if (!bar1) |
| 175 | return; |
| 176 | |
| 177 | if (!config->sio_acpi_mode) |
| 178 | serialio_enable_clock(bar0); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 179 | |
| 180 | switch (dev->path.pci.devfn) { |
Duncan Laurie | 6168027 | 2014-05-05 12:42:35 -0500 | [diff] [blame] | 181 | case PCH_DEVFN_SDMA: /* SDMA */ |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 182 | sio_index = SIO_ID_SDMA; |
| 183 | serialio_init_once(config->sio_acpi_mode); |
| 184 | serialio_d21_mode(sio_index, SIO_PIN_INTB, |
| 185 | config->sio_acpi_mode); |
| 186 | break; |
Duncan Laurie | 6168027 | 2014-05-05 12:42:35 -0500 | [diff] [blame] | 187 | case PCH_DEVFN_I2C0: /* I2C0 */ |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 188 | sio_index = SIO_ID_I2C0; |
| 189 | serialio_d21_ltr(bar0); |
| 190 | serialio_i2c_voltage_sel(bar0, config->sio_i2c0_voltage); |
| 191 | serialio_d21_mode(sio_index, SIO_PIN_INTC, |
| 192 | config->sio_acpi_mode); |
| 193 | break; |
Duncan Laurie | 6168027 | 2014-05-05 12:42:35 -0500 | [diff] [blame] | 194 | case PCH_DEVFN_I2C1: /* I2C1 */ |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 195 | sio_index = SIO_ID_I2C1; |
| 196 | serialio_d21_ltr(bar0); |
| 197 | serialio_i2c_voltage_sel(bar0, config->sio_i2c1_voltage); |
| 198 | serialio_d21_mode(sio_index, SIO_PIN_INTC, |
| 199 | config->sio_acpi_mode); |
| 200 | break; |
Duncan Laurie | 6168027 | 2014-05-05 12:42:35 -0500 | [diff] [blame] | 201 | case PCH_DEVFN_SPI0: /* SPI0 */ |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 202 | sio_index = SIO_ID_SPI0; |
| 203 | serialio_d21_ltr(bar0); |
| 204 | serialio_d21_mode(sio_index, SIO_PIN_INTC, |
| 205 | config->sio_acpi_mode); |
| 206 | break; |
Duncan Laurie | 6168027 | 2014-05-05 12:42:35 -0500 | [diff] [blame] | 207 | case PCH_DEVFN_SPI1: /* SPI1 */ |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 208 | sio_index = SIO_ID_SPI1; |
| 209 | serialio_d21_ltr(bar0); |
| 210 | serialio_d21_mode(sio_index, SIO_PIN_INTC, |
| 211 | config->sio_acpi_mode); |
| 212 | break; |
Duncan Laurie | 6168027 | 2014-05-05 12:42:35 -0500 | [diff] [blame] | 213 | case PCH_DEVFN_UART0: /* UART0 */ |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 214 | sio_index = SIO_ID_UART0; |
Duncan Laurie | 6168027 | 2014-05-05 12:42:35 -0500 | [diff] [blame] | 215 | if (!serialio_uart_is_debug(dev)) |
| 216 | serialio_d21_ltr(bar0); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 217 | serialio_d21_mode(sio_index, SIO_PIN_INTD, |
| 218 | config->sio_acpi_mode); |
| 219 | break; |
Duncan Laurie | 6168027 | 2014-05-05 12:42:35 -0500 | [diff] [blame] | 220 | case PCH_DEVFN_UART1: /* UART1 */ |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 221 | sio_index = SIO_ID_UART1; |
Duncan Laurie | 6168027 | 2014-05-05 12:42:35 -0500 | [diff] [blame] | 222 | if (!serialio_uart_is_debug(dev)) |
| 223 | serialio_d21_ltr(bar0); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 224 | serialio_d21_mode(sio_index, SIO_PIN_INTD, |
| 225 | config->sio_acpi_mode); |
| 226 | break; |
Duncan Laurie | 6168027 | 2014-05-05 12:42:35 -0500 | [diff] [blame] | 227 | case PCH_DEVFN_SDIO: /* SDIO */ |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 228 | sio_index = SIO_ID_SDIO; |
| 229 | serialio_d23_ltr(bar0); |
| 230 | serialio_d23_mode(config->sio_acpi_mode); |
| 231 | break; |
| 232 | default: |
| 233 | return; |
| 234 | } |
| 235 | |
| 236 | if (config->sio_acpi_mode) { |
| 237 | global_nvs_t *gnvs; |
| 238 | |
| 239 | /* Find ACPI NVS to update BARs */ |
| 240 | gnvs = (global_nvs_t *)cbmem_find(CBMEM_ID_ACPI_GNVS); |
| 241 | if (!gnvs) { |
| 242 | printk(BIOS_ERR, "Unable to locate Global NVS\n"); |
| 243 | return; |
| 244 | } |
| 245 | |
| 246 | /* Save BAR0 and BAR1 to ACPI NVS */ |
| 247 | gnvs->dev.bar0[sio_index] = (u32)bar0->base; |
| 248 | gnvs->dev.bar1[sio_index] = (u32)bar1->base; |
Duncan Laurie | 6168027 | 2014-05-05 12:42:35 -0500 | [diff] [blame] | 249 | |
| 250 | /* Do not enable UART if it is used as debug port */ |
| 251 | if (!serialio_uart_is_debug(dev)) |
| 252 | gnvs->dev.enable[sio_index] = 1; |
| 253 | |
| 254 | /* Put device in D3hot state via BAR1 */ |
| 255 | if (dev->path.pci.devfn != PCH_DEVFN_SDMA) |
| 256 | serialio_enable_d3hot(bar1); /* all but SDMA */ |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 257 | } |
| 258 | } |
| 259 | |
| 260 | static void serialio_set_resources(struct device *dev) |
| 261 | { |
| 262 | pci_dev_set_resources(dev); |
| 263 | |
Julius Werner | cd49cce | 2019-03-05 16:53:33 -0800 | [diff] [blame] | 264 | #if CONFIG(INTEL_PCH_UART_CONSOLE) |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 265 | /* Update UART base address if used for debug */ |
| 266 | if (serialio_uart_is_debug(dev)) { |
| 267 | struct resource *res = find_resource(dev, PCI_BASE_ADDRESS_0); |
| 268 | if (res) |
| 269 | uartmem_setbaseaddr(res->base); |
| 270 | } |
| 271 | #endif |
| 272 | } |
| 273 | |
| 274 | static struct device_operations device_ops = { |
| 275 | .read_resources = &pci_dev_read_resources, |
| 276 | .set_resources = &serialio_set_resources, |
| 277 | .enable_resources = &pci_dev_enable_resources, |
| 278 | .init = &serialio_init, |
| 279 | .ops_pci = &broadwell_pci_ops, |
| 280 | }; |
| 281 | |
| 282 | static const unsigned short pci_device_ids[] = { |
| 283 | 0x9c60, 0x9ce0, /* 0:15.0 - SDMA */ |
| 284 | 0x9c61, 0x9ce1, /* 0:15.1 - I2C0 */ |
| 285 | 0x9c62, 0x9ce2, /* 0:15.2 - I2C1 */ |
| 286 | 0x9c65, 0x9ce5, /* 0:15.3 - SPI0 */ |
| 287 | 0x9c66, 0x9ce6, /* 0:15.4 - SPI1 */ |
| 288 | 0x9c63, 0x9ce3, /* 0:15.5 - UART0 */ |
| 289 | 0x9c64, 0x9ce4, /* 0:15.6 - UART1 */ |
| 290 | 0x9c35, 0x9cb5, /* 0:17.0 - SDIO */ |
| 291 | 0 |
| 292 | }; |
| 293 | |
| 294 | static const struct pci_driver pch_pcie __pci_driver = { |
| 295 | .ops = &device_ops, |
| 296 | .vendor = PCI_VENDOR_ID_INTEL, |
| 297 | .devices = pci_device_ids, |
| 298 | }; |