1 // SPDX-License-Identifier: GPL-2.0+
3 * ENETC ethernet controller driver
4 * Copyright 2017-2019 NXP
10 #include <fdt_support.h>
14 #include <asm/cache.h>
18 #include <linux/bug.h>
19 #include <linux/delay.h>
21 #include "fsl_enetc.h"
23 #define ENETC_DRIVER_NAME "enetc_eth"
26 * sets the MAC address in IERB registers, this setting is persistent and
27 * carried over to Linux.
29 static void enetc_set_ierb_primary_mac(struct udevice *dev, int devfn,
32 #ifdef CONFIG_ARCH_LS1028A
34 * LS1028A is the only part with IERB at this time and there are plans to change
35 * its structure, keep this LS1028A specific for now
37 #define IERB_BASE 0x1f0800000ULL
38 #define IERB_PFMAC(pf, vf, n) (IERB_BASE + 0x8000 + (pf) * 0x100 + (vf) * 8 \
41 static int ierb_fn_to_pf[] = {0, 1, 2, -1, -1, -1, 3};
43 u16 lower = *(const u16 *)(enetaddr + 4);
44 u32 upper = *(const u32 *)enetaddr;
46 if (ierb_fn_to_pf[devfn] < 0)
49 out_le32(IERB_PFMAC(ierb_fn_to_pf[devfn], 0, 0), upper);
50 out_le32(IERB_PFMAC(ierb_fn_to_pf[devfn], 0, 1), (u32)lower);
54 /* sets up primary MAC addresses in DT/IERB */
55 void fdt_fixup_enetc_mac(void *blob)
57 struct pci_child_platdata *ppdata;
58 struct eth_pdata *pdata;
65 uclass_get(UCLASS_ETH, &uc);
66 uclass_foreach_dev(dev, uc) {
67 if (!dev->driver || !dev->driver->name ||
68 strcmp(dev->driver->name, ENETC_DRIVER_NAME))
71 pdata = dev_get_platdata(dev);
72 ppdata = dev_get_parent_platdata(dev);
73 devfn = PCI_FUNC(ppdata->devfn);
75 enetc_set_ierb_primary_mac(dev, devfn, pdata->enetaddr);
77 snprintf(path, 256, "/soc/pcie@1f0000000/ethernet@%x,%x",
78 PCI_DEV(ppdata->devfn), PCI_FUNC(ppdata->devfn));
79 offset = fdt_path_offset(blob, path);
82 fdt_setprop(blob, offset, "mac-address", pdata->enetaddr, 6);
88 * - set a more explicit name on the interface
90 static int enetc_bind(struct udevice *dev)
93 static int eth_num_devices;
96 * prefer using PCI function numbers to number interfaces, but these
97 * are only available if dts nodes are present. For PCI they are
98 * optional, handle that case too. Just in case some nodes are present
99 * and some are not, use different naming scheme - enetc-N based on
100 * PCI function # and enetc#N based on interface count
102 if (ofnode_valid(dev->node))
103 sprintf(name, "enetc-%u", PCI_FUNC(pci_get_devfn(dev)));
105 sprintf(name, "enetc#%u", eth_num_devices++);
106 device_set_name(dev, name);
111 /* MDIO wrappers, we're using these to drive internal MDIO to get to serdes */
112 static int enetc_mdio_read(struct mii_dev *bus, int addr, int devad, int reg)
114 struct enetc_mdio_priv priv;
116 priv.regs_base = bus->priv;
117 return enetc_mdio_read_priv(&priv, addr, devad, reg);
120 static int enetc_mdio_write(struct mii_dev *bus, int addr, int devad, int reg,
123 struct enetc_mdio_priv priv;
125 priv.regs_base = bus->priv;
126 return enetc_mdio_write_priv(&priv, addr, devad, reg, val);
129 /* only interfaces that can pin out through serdes have internal MDIO */
130 static bool enetc_has_imdio(struct udevice *dev)
132 struct enetc_priv *priv = dev_get_priv(dev);
134 return !!(priv->imdio.priv);
137 /* set up serdes for SGMII */
138 static int enetc_init_sgmii(struct udevice *dev)
140 struct enetc_priv *priv = dev_get_priv(dev);
144 if (!enetc_has_imdio(dev))
147 if (priv->if_type == PHY_INTERFACE_MODE_SGMII_2500)
151 * Set to SGMII mode, for 1Gbps enable AN, for 2.5Gbps set fixed speed.
152 * Although fixed speed is 1Gbps, we could be running at 2.5Gbps based
153 * on PLL configuration. Setting 1G for 2.5G here is counter intuitive
156 reg = ENETC_PCS_IF_MODE_SGMII;
157 reg |= is2500 ? ENETC_PCS_IF_MODE_SPEED_1G : ENETC_PCS_IF_MODE_SGMII_AN;
158 enetc_mdio_write(&priv->imdio, ENETC_PCS_PHY_ADDR, MDIO_DEVAD_NONE,
159 ENETC_PCS_IF_MODE, reg);
161 /* Dev ability - SGMII */
162 enetc_mdio_write(&priv->imdio, ENETC_PCS_PHY_ADDR, MDIO_DEVAD_NONE,
163 ENETC_PCS_DEV_ABILITY, ENETC_PCS_DEV_ABILITY_SGMII);
165 /* Adjust link timer for SGMII */
166 enetc_mdio_write(&priv->imdio, ENETC_PCS_PHY_ADDR, MDIO_DEVAD_NONE,
167 ENETC_PCS_LINK_TIMER1, ENETC_PCS_LINK_TIMER1_VAL);
168 enetc_mdio_write(&priv->imdio, ENETC_PCS_PHY_ADDR, MDIO_DEVAD_NONE,
169 ENETC_PCS_LINK_TIMER2, ENETC_PCS_LINK_TIMER2_VAL);
171 reg = ENETC_PCS_CR_DEF_VAL;
172 reg |= is2500 ? ENETC_PCS_CR_RST : ENETC_PCS_CR_RESET_AN;
174 enetc_mdio_write(&priv->imdio, ENETC_PCS_PHY_ADDR, MDIO_DEVAD_NONE,
180 /* set up MAC for RGMII */
181 static int enetc_init_rgmii(struct udevice *dev)
183 struct enetc_priv *priv = dev_get_priv(dev);
186 /* enable RGMII AN */
187 if_mode = enetc_read_port(priv, ENETC_PM_IF_MODE);
188 if_mode |= ENETC_PM_IF_MODE_AN_ENA;
189 enetc_write_port(priv, ENETC_PM_IF_MODE, if_mode);
194 /* set up MAC configuration for the given interface type */
195 static void enetc_setup_mac_iface(struct udevice *dev)
197 struct enetc_priv *priv = dev_get_priv(dev);
200 switch (priv->if_type) {
201 case PHY_INTERFACE_MODE_RGMII:
202 case PHY_INTERFACE_MODE_RGMII_ID:
203 case PHY_INTERFACE_MODE_RGMII_RXID:
204 case PHY_INTERFACE_MODE_RGMII_TXID:
205 enetc_init_rgmii(dev);
207 case PHY_INTERFACE_MODE_XGMII:
208 case PHY_INTERFACE_MODE_USXGMII:
209 case PHY_INTERFACE_MODE_XFI:
210 /* set ifmode to (US)XGMII */
211 if_mode = enetc_read_port(priv, ENETC_PM_IF_MODE);
212 if_mode &= ~ENETC_PM_IF_IFMODE_MASK;
213 enetc_write_port(priv, ENETC_PM_IF_MODE, if_mode);
218 /* set up serdes for SXGMII */
219 static int enetc_init_sxgmii(struct udevice *dev)
221 struct enetc_priv *priv = dev_get_priv(dev);
223 if (!enetc_has_imdio(dev))
226 /* Dev ability - SXGMII */
227 enetc_mdio_write(&priv->imdio, ENETC_PCS_PHY_ADDR, ENETC_PCS_DEVAD_REPL,
228 ENETC_PCS_DEV_ABILITY, ENETC_PCS_DEV_ABILITY_SXGMII);
231 enetc_mdio_write(&priv->imdio, ENETC_PCS_PHY_ADDR, ENETC_PCS_DEVAD_REPL,
233 ENETC_PCS_CR_RST | ENETC_PCS_CR_RESET_AN);
238 /* Apply protocol specific configuration to MAC, serdes as needed */
239 static void enetc_start_pcs(struct udevice *dev)
241 struct enetc_priv *priv = dev_get_priv(dev);
244 priv->if_type = PHY_INTERFACE_MODE_NONE;
246 /* register internal MDIO for debug purposes */
247 if (enetc_read_port(priv, ENETC_PCAPR0) & ENETC_PCAPRO_MDIO) {
248 priv->imdio.read = enetc_mdio_read;
249 priv->imdio.write = enetc_mdio_write;
250 priv->imdio.priv = priv->port_regs + ENETC_PM_IMDIO_BASE;
251 strncpy(priv->imdio.name, dev->name, MDIO_NAME_LEN);
252 if (!miiphy_get_dev_by_name(priv->imdio.name))
253 mdio_register(&priv->imdio);
256 if (!ofnode_valid(dev->node)) {
257 enetc_dbg(dev, "no enetc ofnode found, skipping PCS set-up\n");
261 if_str = ofnode_read_string(dev->node, "phy-mode");
263 priv->if_type = phy_get_interface_by_name(if_str);
266 "phy-mode property not found, defaulting to SGMII\n");
267 if (priv->if_type < 0)
268 priv->if_type = PHY_INTERFACE_MODE_NONE;
270 switch (priv->if_type) {
271 case PHY_INTERFACE_MODE_SGMII:
272 case PHY_INTERFACE_MODE_SGMII_2500:
273 enetc_init_sgmii(dev);
275 case PHY_INTERFACE_MODE_XGMII:
276 case PHY_INTERFACE_MODE_USXGMII:
277 case PHY_INTERFACE_MODE_XFI:
278 enetc_init_sxgmii(dev);
283 /* Configure the actual/external ethernet PHY, if one is found */
284 static void enetc_config_phy(struct udevice *dev)
286 struct enetc_priv *priv = dev_get_priv(dev);
289 priv->phy = dm_eth_phy_connect(dev);
294 supported = PHY_GBIT_FEATURES | SUPPORTED_2500baseX_Full;
295 priv->phy->supported &= supported;
296 priv->phy->advertising &= supported;
298 phy_config(priv->phy);
302 * Probe ENETC driver:
303 * - initialize port and station interface BARs
305 static int enetc_probe(struct udevice *dev)
307 struct enetc_priv *priv = dev_get_priv(dev);
309 if (ofnode_valid(dev->node) && !ofnode_is_available(dev->node)) {
310 enetc_dbg(dev, "interface disabled\n");
314 priv->enetc_txbd = memalign(ENETC_BD_ALIGN,
315 sizeof(struct enetc_tx_bd) * ENETC_BD_CNT);
316 priv->enetc_rxbd = memalign(ENETC_BD_ALIGN,
317 sizeof(union enetc_rx_bd) * ENETC_BD_CNT);
319 if (!priv->enetc_txbd || !priv->enetc_rxbd) {
320 /* free should be able to handle NULL, just free all pointers */
321 free(priv->enetc_txbd);
322 free(priv->enetc_rxbd);
327 /* initialize register */
328 priv->regs_base = dm_pci_map_bar(dev, PCI_BASE_ADDRESS_0, 0);
329 if (!priv->regs_base) {
330 enetc_dbg(dev, "failed to map BAR0\n");
333 priv->port_regs = priv->regs_base + ENETC_PORT_REGS_OFF;
335 dm_pci_clrset_config16(dev, PCI_COMMAND, 0, PCI_COMMAND_MEMORY);
337 enetc_start_pcs(dev);
338 enetc_config_phy(dev);
344 * Remove the driver from an interface:
345 * - free up allocated memory
347 static int enetc_remove(struct udevice *dev)
349 struct enetc_priv *priv = dev_get_priv(dev);
351 free(priv->enetc_txbd);
352 free(priv->enetc_rxbd);
358 * LS1028A is the only part with IERB at this time and there are plans to
359 * change its structure, keep this LS1028A specific for now.
361 #define LS1028A_IERB_BASE 0x1f0800000ULL
362 #define LS1028A_IERB_PSIPMAR0(pf, vf) (LS1028A_IERB_BASE + 0x8000 \
363 + (pf) * 0x100 + (vf) * 8)
364 #define LS1028A_IERB_PSIPMAR1(pf, vf) (LS1028A_IERB_PSIPMAR0(pf, vf) + 4)
366 static int enetc_ls1028a_write_hwaddr(struct udevice *dev)
368 struct pci_child_platdata *ppdata = dev_get_parent_platdata(dev);
369 const int devfn_to_pf[] = {0, 1, 2, -1, -1, -1, 3};
370 struct eth_pdata *plat = dev_get_platdata(dev);
371 int devfn = PCI_FUNC(ppdata->devfn);
372 u8 *addr = plat->enetaddr;
376 if (devfn >= ARRAY_SIZE(devfn_to_pf))
379 pf = devfn_to_pf[devfn];
383 lower = *(const u16 *)(addr + 4);
384 upper = *(const u32 *)addr;
386 out_le32(LS1028A_IERB_PSIPMAR0(pf, 0), upper);
387 out_le32(LS1028A_IERB_PSIPMAR1(pf, 0), lower);
392 static int enetc_write_hwaddr(struct udevice *dev)
394 struct eth_pdata *plat = dev_get_platdata(dev);
395 struct enetc_priv *priv = dev_get_priv(dev);
396 u8 *addr = plat->enetaddr;
398 if (IS_ENABLED(CONFIG_ARCH_LS1028A))
399 return enetc_ls1028a_write_hwaddr(dev);
401 u16 lower = *(const u16 *)(addr + 4);
402 u32 upper = *(const u32 *)addr;
404 enetc_write_port(priv, ENETC_PSIPMAR0, upper);
405 enetc_write_port(priv, ENETC_PSIPMAR1, lower);
410 /* Configure port parameters (# of rings, frame size, enable port) */
411 static void enetc_enable_si_port(struct enetc_priv *priv)
415 /* set Rx/Tx BDR count */
416 val = ENETC_PSICFGR_SET_TXBDR(ENETC_TX_BDR_CNT);
417 val |= ENETC_PSICFGR_SET_RXBDR(ENETC_RX_BDR_CNT);
418 enetc_write_port(priv, ENETC_PSICFGR(0), val);
419 /* set Rx max frame size */
420 enetc_write_port(priv, ENETC_PM_MAXFRM, ENETC_RX_MAXFRM_SIZE);
421 /* enable MAC port */
422 enetc_write_port(priv, ENETC_PM_CC, ENETC_PM_CC_RX_TX_EN);
424 enetc_write_port(priv, ENETC_PMR, ENETC_PMR_SI0_EN);
425 /* set SI cache policy */
426 enetc_write(priv, ENETC_SICAR0,
427 ENETC_SICAR_RD_CFG | ENETC_SICAR_WR_CFG);
429 enetc_write(priv, ENETC_SIMR, ENETC_SIMR_EN);
432 /* returns DMA address for a given buffer index */
433 static inline u64 enetc_rxb_address(struct udevice *dev, int i)
435 return cpu_to_le64(dm_pci_virt_to_mem(dev, net_rx_packets[i]));
439 * Setup a single Tx BD Ring (ID = 0):
440 * - set Tx buffer descriptor address
442 * - initialize the producer and consumer index
444 static void enetc_setup_tx_bdr(struct udevice *dev)
446 struct enetc_priv *priv = dev_get_priv(dev);
447 struct bd_ring *tx_bdr = &priv->tx_bdr;
448 u64 tx_bd_add = (u64)priv->enetc_txbd;
450 /* used later to advance to the next Tx BD */
451 tx_bdr->bd_count = ENETC_BD_CNT;
452 tx_bdr->next_prod_idx = 0;
453 tx_bdr->next_cons_idx = 0;
454 tx_bdr->cons_idx = priv->regs_base +
455 ENETC_BDR(TX, ENETC_TX_BDR_ID, ENETC_TBCIR);
456 tx_bdr->prod_idx = priv->regs_base +
457 ENETC_BDR(TX, ENETC_TX_BDR_ID, ENETC_TBPIR);
459 /* set Tx BD address */
460 enetc_bdr_write(priv, TX, ENETC_TX_BDR_ID, ENETC_TBBAR0,
461 lower_32_bits(tx_bd_add));
462 enetc_bdr_write(priv, TX, ENETC_TX_BDR_ID, ENETC_TBBAR1,
463 upper_32_bits(tx_bd_add));
464 /* set Tx 8 BD count */
465 enetc_bdr_write(priv, TX, ENETC_TX_BDR_ID, ENETC_TBLENR,
468 /* reset both producer/consumer indexes */
469 enetc_write_reg(tx_bdr->cons_idx, tx_bdr->next_cons_idx);
470 enetc_write_reg(tx_bdr->prod_idx, tx_bdr->next_prod_idx);
473 enetc_bdr_write(priv, TX, ENETC_TX_BDR_ID, ENETC_TBMR, ENETC_TBMR_EN);
477 * Setup a single Rx BD Ring (ID = 0):
478 * - set Rx buffer descriptors address (one descriptor per buffer)
479 * - set buffer size as max frame size
481 * - reset consumer and producer indexes
482 * - set buffer for each descriptor
484 static void enetc_setup_rx_bdr(struct udevice *dev)
486 struct enetc_priv *priv = dev_get_priv(dev);
487 struct bd_ring *rx_bdr = &priv->rx_bdr;
488 u64 rx_bd_add = (u64)priv->enetc_rxbd;
491 /* used later to advance to the next BD produced by ENETC HW */
492 rx_bdr->bd_count = ENETC_BD_CNT;
493 rx_bdr->next_prod_idx = 0;
494 rx_bdr->next_cons_idx = 0;
495 rx_bdr->cons_idx = priv->regs_base +
496 ENETC_BDR(RX, ENETC_RX_BDR_ID, ENETC_RBCIR);
497 rx_bdr->prod_idx = priv->regs_base +
498 ENETC_BDR(RX, ENETC_RX_BDR_ID, ENETC_RBPIR);
500 /* set Rx BD address */
501 enetc_bdr_write(priv, RX, ENETC_RX_BDR_ID, ENETC_RBBAR0,
502 lower_32_bits(rx_bd_add));
503 enetc_bdr_write(priv, RX, ENETC_RX_BDR_ID, ENETC_RBBAR1,
504 upper_32_bits(rx_bd_add));
505 /* set Rx BD count (multiple of 8) */
506 enetc_bdr_write(priv, RX, ENETC_RX_BDR_ID, ENETC_RBLENR,
508 /* set Rx buffer size */
509 enetc_bdr_write(priv, RX, ENETC_RX_BDR_ID, ENETC_RBBSR, PKTSIZE_ALIGN);
512 memset(priv->enetc_rxbd, 0,
513 rx_bdr->bd_count * sizeof(union enetc_rx_bd));
514 for (i = 0; i < rx_bdr->bd_count; i++) {
515 priv->enetc_rxbd[i].w.addr = enetc_rxb_address(dev, i);
516 /* each RX buffer must be aligned to 64B */
517 WARN_ON(priv->enetc_rxbd[i].w.addr & (ARCH_DMA_MINALIGN - 1));
520 /* reset producer (ENETC owned) and consumer (SW owned) index */
521 enetc_write_reg(rx_bdr->cons_idx, rx_bdr->next_cons_idx);
522 enetc_write_reg(rx_bdr->prod_idx, rx_bdr->next_prod_idx);
525 enetc_bdr_write(priv, RX, ENETC_RX_BDR_ID, ENETC_RBMR, ENETC_RBMR_EN);
529 * Start ENETC interface:
531 * - enable access to port and SI registers
533 * - setup TX/RX buffer descriptors
534 * - enable Tx/Rx rings
536 static int enetc_start(struct udevice *dev)
538 struct enetc_priv *priv = dev_get_priv(dev);
540 /* reset and enable the PCI device */
542 dm_pci_clrset_config16(dev, PCI_COMMAND, 0,
543 PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER);
545 enetc_enable_si_port(priv);
547 /* setup Tx/Rx buffer descriptors */
548 enetc_setup_tx_bdr(dev);
549 enetc_setup_rx_bdr(dev);
551 enetc_setup_mac_iface(dev);
554 phy_startup(priv->phy);
560 * Stop the network interface:
561 * - just quiesce it, we can wipe all configuration as _start starts from
564 static void enetc_stop(struct udevice *dev)
566 /* FLR is sufficient to quiesce the device */
568 /* leave the BARs accessible after we stop, this is needed to use
569 * internal MDIO in command line.
571 dm_pci_clrset_config16(dev, PCI_COMMAND, 0, PCI_COMMAND_MEMORY);
575 * ENETC transmit packet:
576 * - check if Tx BD ring is full
577 * - set buffer/packet address (dma address)
578 * - set final fragment flag
579 * - try while producer index equals consumer index or timeout
581 static int enetc_send(struct udevice *dev, void *packet, int length)
583 struct enetc_priv *priv = dev_get_priv(dev);
584 struct bd_ring *txr = &priv->tx_bdr;
585 void *nv_packet = (void *)packet;
586 int tries = ENETC_POLL_TRIES;
589 pi = txr->next_prod_idx;
590 ci = enetc_read_reg(txr->cons_idx) & ENETC_BDR_IDX_MASK;
591 /* Tx ring is full when */
592 if (((pi + 1) % txr->bd_count) == ci) {
593 enetc_dbg(dev, "Tx BDR full\n");
596 enetc_dbg(dev, "TxBD[%d]send: pkt_len=%d, buff @0x%x%08x\n", pi, length,
597 upper_32_bits((u64)nv_packet), lower_32_bits((u64)nv_packet));
600 memset(&priv->enetc_txbd[pi], 0x0, sizeof(struct enetc_tx_bd));
601 priv->enetc_txbd[pi].addr =
602 cpu_to_le64(dm_pci_virt_to_mem(dev, nv_packet));
603 priv->enetc_txbd[pi].buf_len = cpu_to_le16(length);
604 priv->enetc_txbd[pi].frm_len = cpu_to_le16(length);
605 priv->enetc_txbd[pi].flags = cpu_to_le16(ENETC_TXBD_FLAGS_F);
607 /* send frame: increment producer index */
608 pi = (pi + 1) % txr->bd_count;
609 txr->next_prod_idx = pi;
610 enetc_write_reg(txr->prod_idx, pi);
611 while ((--tries >= 0) &&
612 (pi != (enetc_read_reg(txr->cons_idx) & ENETC_BDR_IDX_MASK)))
615 return tries > 0 ? 0 : -ETIMEDOUT;
620 * - wait for the next BD to get ready bit set
621 * - clean up the descriptor
622 * - move on and indicate to HW that the cleaned BD is available for Rx
624 static int enetc_recv(struct udevice *dev, int flags, uchar **packetp)
626 struct enetc_priv *priv = dev_get_priv(dev);
627 struct bd_ring *rxr = &priv->rx_bdr;
628 int tries = ENETC_POLL_TRIES;
629 int pi = rxr->next_prod_idx;
630 int ci = rxr->next_cons_idx;
637 status = le32_to_cpu(priv->enetc_rxbd[pi].r.lstatus);
638 /* check if current BD is ready to be consumed */
639 rdy = ENETC_RXBD_STATUS_R(status);
640 } while (--tries >= 0 && !rdy);
646 len = le16_to_cpu(priv->enetc_rxbd[pi].r.buf_len);
647 *packetp = (uchar *)enetc_rxb_address(dev, pi);
648 enetc_dbg(dev, "RxBD[%d]: len=%d err=%d pkt=0x%x%08x\n", pi, len,
649 ENETC_RXBD_STATUS_ERRORS(status),
650 upper_32_bits((u64)*packetp), lower_32_bits((u64)*packetp));
652 /* BD clean up and advance to next in ring */
653 memset(&priv->enetc_rxbd[pi], 0, sizeof(union enetc_rx_bd));
654 priv->enetc_rxbd[pi].w.addr = enetc_rxb_address(dev, pi);
655 rxr->next_prod_idx = (pi + 1) % rxr->bd_count;
656 ci = (ci + 1) % rxr->bd_count;
657 rxr->next_cons_idx = ci;
659 /* free up the slot in the ring for HW */
660 enetc_write_reg(rxr->cons_idx, ci);
665 static const struct eth_ops enetc_ops = {
666 .start = enetc_start,
670 .write_hwaddr = enetc_write_hwaddr,
673 U_BOOT_DRIVER(eth_enetc) = {
674 .name = ENETC_DRIVER_NAME,
677 .probe = enetc_probe,
678 .remove = enetc_remove,
680 .priv_auto_alloc_size = sizeof(struct enetc_priv),
681 .platdata_auto_alloc_size = sizeof(struct eth_pdata),
684 static struct pci_device_id enetc_ids[] = {
685 { PCI_DEVICE(PCI_VENDOR_ID_FREESCALE, PCI_DEVICE_ID_ENETC_ETH) },
689 U_BOOT_PCI_DEVICE(eth_enetc, enetc_ids);