1 // SPDX-License-Identifier: GPL-2.0
3 * PCIe driver for Marvell MVEBU SoCs
5 * Based on Barebox drivers/pci/pci-mvebu.c
17 #include <asm/global_data.h>
18 #include <dm/device-internal.h>
20 #include <dm/of_access.h>
23 #include <asm/arch/cpu.h>
24 #include <asm/arch/soc.h>
25 #include <linux/bitops.h>
26 #include <linux/errno.h>
27 #include <linux/ioport.h>
28 #include <linux/mbus.h>
30 DECLARE_GLOBAL_DATA_PTR;
32 /* PCIe unit register offsets */
33 #define SELECT(x, n) ((x >> n) & 1UL)
35 #define PCIE_DEV_ID_OFF 0x0000
36 #define PCIE_CMD_OFF 0x0004
37 #define PCIE_DEV_REV_OFF 0x0008
38 #define PCIE_BAR_LO_OFF(n) (0x0010 + ((n) << 3))
39 #define PCIE_BAR_HI_OFF(n) (0x0014 + ((n) << 3))
40 #define PCIE_EXP_ROM_BAR_OFF 0x0030
41 #define PCIE_CAPAB_OFF 0x0060
42 #define PCIE_CTRL_STAT_OFF 0x0068
43 #define PCIE_HEADER_LOG_4_OFF 0x0128
44 #define PCIE_BAR_CTRL_OFF(n) (0x1804 + (((n) - 1) * 4))
45 #define PCIE_WIN04_CTRL_OFF(n) (0x1820 + ((n) << 4))
46 #define PCIE_WIN04_BASE_OFF(n) (0x1824 + ((n) << 4))
47 #define PCIE_WIN04_REMAP_OFF(n) (0x182c + ((n) << 4))
48 #define PCIE_WIN5_CTRL_OFF 0x1880
49 #define PCIE_WIN5_BASE_OFF 0x1884
50 #define PCIE_WIN5_REMAP_OFF 0x188c
51 #define PCIE_CONF_ADDR_OFF 0x18f8
52 #define PCIE_CONF_ADDR_EN BIT(31)
53 #define PCIE_CONF_REG(r) ((((r) & 0xf00) << 16) | ((r) & 0xfc))
54 #define PCIE_CONF_BUS(b) (((b) & 0xff) << 16)
55 #define PCIE_CONF_DEV(d) (((d) & 0x1f) << 11)
56 #define PCIE_CONF_FUNC(f) (((f) & 0x7) << 8)
57 #define PCIE_CONF_ADDR(b, d, f, reg) \
58 (PCIE_CONF_BUS(b) | PCIE_CONF_DEV(d) | \
59 PCIE_CONF_FUNC(f) | PCIE_CONF_REG(reg) | \
61 #define PCIE_CONF_DATA_OFF 0x18fc
62 #define PCIE_MASK_OFF 0x1910
63 #define PCIE_MASK_ENABLE_INTS (0xf << 24)
64 #define PCIE_CTRL_OFF 0x1a00
65 #define PCIE_CTRL_X1_MODE BIT(0)
66 #define PCIE_CTRL_RC_MODE BIT(1)
67 #define PCIE_STAT_OFF 0x1a04
68 #define PCIE_STAT_BUS (0xff << 8)
69 #define PCIE_STAT_DEV (0x1f << 16)
70 #define PCIE_STAT_LINK_DOWN BIT(0)
71 #define PCIE_DEBUG_CTRL 0x1a60
72 #define PCIE_DEBUG_SOFT_RESET BIT(20)
75 struct pci_controller hose;
77 void __iomem *membase;
88 unsigned int mem_target;
89 unsigned int mem_attr;
90 unsigned int io_target;
92 u32 cfgcache[(0x3c - 0x10) / 4];
96 * MVEBU PCIe controller needs MEMORY and I/O BARs to be mapped
97 * into SoCs address space. Each controller will map 128M of MEM
98 * and 64K of I/O space when registered.
100 static void __iomem *mvebu_pcie_membase = (void __iomem *)MBUS_PCI_MEM_BASE;
101 static void __iomem *mvebu_pcie_iobase = (void __iomem *)MBUS_PCI_IO_BASE;
103 static inline bool mvebu_pcie_link_up(struct mvebu_pcie *pcie)
106 val = readl(pcie->base + PCIE_STAT_OFF);
107 return !(val & PCIE_STAT_LINK_DOWN);
110 static void mvebu_pcie_set_local_bus_nr(struct mvebu_pcie *pcie, int busno)
114 stat = readl(pcie->base + PCIE_STAT_OFF);
115 stat &= ~PCIE_STAT_BUS;
117 writel(stat, pcie->base + PCIE_STAT_OFF);
120 static void mvebu_pcie_set_local_dev_nr(struct mvebu_pcie *pcie, int devno)
124 stat = readl(pcie->base + PCIE_STAT_OFF);
125 stat &= ~PCIE_STAT_DEV;
127 writel(stat, pcie->base + PCIE_STAT_OFF);
130 static inline struct mvebu_pcie *hose_to_pcie(struct pci_controller *hose)
132 return container_of(hose, struct mvebu_pcie, hose);
135 static bool mvebu_pcie_valid_addr(struct mvebu_pcie *pcie,
136 int busno, int dev, int func)
138 /* On primary bus is only one PCI Bridge */
139 if (busno == pcie->first_busno && (dev != 0 || func != 0))
142 /* Access to other buses is possible when link is up */
143 if (busno != pcie->first_busno && !mvebu_pcie_link_up(pcie))
146 /* On secondary bus can be only one PCIe device */
147 if (busno == pcie->sec_busno && dev != 0)
153 static int mvebu_pcie_read_config(const struct udevice *bus, pci_dev_t bdf,
154 uint offset, ulong *valuep,
155 enum pci_size_t size)
157 struct mvebu_pcie *pcie = dev_get_plat(bus);
158 int busno = PCI_BUS(bdf) - dev_seq(bus);
161 debug("PCIE CFG read: (b,d,f)=(%2d,%2d,%2d) ",
162 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf));
164 if (!mvebu_pcie_valid_addr(pcie, busno, PCI_DEV(bdf), PCI_FUNC(bdf))) {
165 debug("- out of range\n");
166 *valuep = pci_get_ff(size);
171 * The configuration space of the PCI Bridge on primary (first) bus is
172 * of Type 0 but the BAR registers (including ROM BAR) don't have the
173 * same meaning as in the PCIe specification. Therefore do not access
174 * BAR registers and non-common registers (those which have different
175 * meaning for Type 0 and Type 1 config space) of the PCI Bridge and
176 * instead read their content from driver virtual cfgcache[].
178 if (busno == pcie->first_busno && ((offset >= 0x10 && offset < 0x34) ||
179 (offset >= 0x38 && offset < 0x3c))) {
180 data = pcie->cfgcache[(offset - 0x10) / 4];
181 debug("(addr,size,val)=(0x%04x, %d, 0x%08x) from cfgcache\n",
183 *valuep = pci_conv_32_to_size(data, offset, size);
188 * PCI bridge is device 0 at primary bus but mvebu has it mapped on
189 * secondary bus with device number 1.
191 if (busno == pcie->first_busno)
192 addr = PCIE_CONF_ADDR(pcie->sec_busno, 1, 0, offset);
194 addr = PCIE_CONF_ADDR(busno, PCI_DEV(bdf), PCI_FUNC(bdf), offset);
197 writel(addr, pcie->base + PCIE_CONF_ADDR_OFF);
202 data = readb(pcie->base + PCIE_CONF_DATA_OFF + (offset & 3));
205 data = readw(pcie->base + PCIE_CONF_DATA_OFF + (offset & 2));
208 data = readl(pcie->base + PCIE_CONF_DATA_OFF);
214 if (busno == pcie->first_busno &&
215 (offset & ~3) == (PCI_HEADER_TYPE & ~3)) {
217 * Change Header Type of PCI Bridge device to Type 1
218 * (0x01, used by PCI Bridges) because mvebu reports
219 * Type 0 (0x00, used by Upstream and Endpoint devices).
221 data = pci_conv_size_to_32(data, 0, offset, size);
223 data |= PCI_HEADER_TYPE_BRIDGE << 16;
224 data = pci_conv_32_to_size(data, offset, size);
227 debug("(addr,size,val)=(0x%04x, %d, 0x%08x)\n", offset, size, data);
233 static int mvebu_pcie_write_config(struct udevice *bus, pci_dev_t bdf,
234 uint offset, ulong value,
235 enum pci_size_t size)
237 struct mvebu_pcie *pcie = dev_get_plat(bus);
238 int busno = PCI_BUS(bdf) - dev_seq(bus);
241 debug("PCIE CFG write: (b,d,f)=(%2d,%2d,%2d) ",
242 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf));
243 debug("(addr,size,val)=(0x%04x, %d, 0x%08lx)\n", offset, size, value);
245 if (!mvebu_pcie_valid_addr(pcie, busno, PCI_DEV(bdf), PCI_FUNC(bdf))) {
246 debug("- out of range\n");
251 * As explained in mvebu_pcie_read_config(), PCI Bridge Type 1 specific
252 * config registers are not available, so we write their content only
253 * into driver virtual cfgcache[].
254 * And as explained in mvebu_pcie_probe(), mvebu has its own specific
255 * way for configuring primary and secondary bus numbers.
257 if (busno == pcie->first_busno && ((offset >= 0x10 && offset < 0x34) ||
258 (offset >= 0x38 && offset < 0x3c))) {
259 debug("Writing to cfgcache only\n");
260 data = pcie->cfgcache[(offset - 0x10) / 4];
261 data = pci_conv_size_to_32(data, value, offset, size);
262 /* mvebu PCI bridge does not have configurable bars */
263 if ((offset & ~3) == PCI_BASE_ADDRESS_0 ||
264 (offset & ~3) == PCI_BASE_ADDRESS_1 ||
265 (offset & ~3) == PCI_ROM_ADDRESS1)
267 pcie->cfgcache[(offset - 0x10) / 4] = data;
268 /* mvebu has its own way how to set PCI primary bus number */
269 if (offset == PCI_PRIMARY_BUS) {
270 pcie->first_busno = data & 0xff;
271 debug("Primary bus number was changed to %d\n",
274 /* mvebu has its own way how to set PCI secondary bus number */
275 if (offset == PCI_SECONDARY_BUS ||
276 (offset == PCI_PRIMARY_BUS && size != PCI_SIZE_8)) {
277 pcie->sec_busno = (data >> 8) & 0xff;
278 mvebu_pcie_set_local_bus_nr(pcie, pcie->sec_busno);
279 debug("Secondary bus number was changed to %d\n",
286 * PCI bridge is device 0 at primary bus but mvebu has it mapped on
287 * secondary bus with device number 1.
289 if (busno == pcie->first_busno)
290 addr = PCIE_CONF_ADDR(pcie->sec_busno, 1, 0, offset);
292 addr = PCIE_CONF_ADDR(busno, PCI_DEV(bdf), PCI_FUNC(bdf), offset);
295 writel(addr, pcie->base + PCIE_CONF_ADDR_OFF);
300 writeb(value, pcie->base + PCIE_CONF_DATA_OFF + (offset & 3));
303 writew(value, pcie->base + PCIE_CONF_DATA_OFF + (offset & 2));
306 writel(value, pcie->base + PCIE_CONF_DATA_OFF);
316 * Setup PCIE BARs and Address Decode Wins:
317 * BAR[0] -> internal registers
318 * BAR[1] -> covers all DRAM banks
320 * WIN[0-3] -> DRAM bank[0-3]
322 static void mvebu_pcie_setup_wins(struct mvebu_pcie *pcie)
324 const struct mbus_dram_target_info *dram = mvebu_mbus_dram_info();
328 /* First, disable and clear BARs and windows. */
329 for (i = 1; i < 3; i++) {
330 writel(0, pcie->base + PCIE_BAR_CTRL_OFF(i));
331 writel(0, pcie->base + PCIE_BAR_LO_OFF(i));
332 writel(0, pcie->base + PCIE_BAR_HI_OFF(i));
335 for (i = 0; i < 5; i++) {
336 writel(0, pcie->base + PCIE_WIN04_CTRL_OFF(i));
337 writel(0, pcie->base + PCIE_WIN04_BASE_OFF(i));
338 writel(0, pcie->base + PCIE_WIN04_REMAP_OFF(i));
341 writel(0, pcie->base + PCIE_WIN5_CTRL_OFF);
342 writel(0, pcie->base + PCIE_WIN5_BASE_OFF);
343 writel(0, pcie->base + PCIE_WIN5_REMAP_OFF);
345 /* Setup windows for DDR banks. Count total DDR size on the fly. */
347 for (i = 0; i < dram->num_cs; i++) {
348 const struct mbus_dram_window *cs = dram->cs + i;
350 writel(cs->base & 0xffff0000,
351 pcie->base + PCIE_WIN04_BASE_OFF(i));
352 writel(0, pcie->base + PCIE_WIN04_REMAP_OFF(i));
353 writel(((cs->size - 1) & 0xffff0000) |
354 (cs->mbus_attr << 8) |
355 (dram->mbus_dram_target_id << 4) | 1,
356 pcie->base + PCIE_WIN04_CTRL_OFF(i));
361 /* Round up 'size' to the nearest power of two. */
362 if ((size & (size - 1)) != 0)
363 size = 1 << fls(size);
365 /* Setup BAR[1] to all DRAM banks. */
366 writel(dram->cs[0].base | 0xc, pcie->base + PCIE_BAR_LO_OFF(1));
367 writel(0, pcie->base + PCIE_BAR_HI_OFF(1));
368 writel(((size - 1) & 0xffff0000) | 0x1,
369 pcie->base + PCIE_BAR_CTRL_OFF(1));
371 /* Setup BAR[0] to internal registers. */
372 writel(SOC_REGS_PHY_BASE, pcie->base + PCIE_BAR_LO_OFF(0));
373 writel(0, pcie->base + PCIE_BAR_HI_OFF(0));
376 static int mvebu_pcie_probe(struct udevice *dev)
378 struct mvebu_pcie *pcie = dev_get_plat(dev);
379 struct udevice *ctlr = pci_get_controller(dev);
380 struct pci_controller *hose = dev_get_uclass_priv(ctlr);
383 /* Setup PCIe controller to Root Complex mode */
384 reg = readl(pcie->base + PCIE_CTRL_OFF);
385 reg |= PCIE_CTRL_RC_MODE;
386 writel(reg, pcie->base + PCIE_CTRL_OFF);
389 * Change Class Code of PCI Bridge device to PCI Bridge (0x600400)
390 * because default value is Memory controller (0x508000) which
391 * U-Boot cannot recognize as P2P Bridge.
393 * Note that this mvebu PCI Bridge does not have compliant Type 1
394 * Configuration Space. Header Type is reported as Type 0 and it
395 * has format of Type 0 config space.
397 * Moreover Type 0 BAR registers (ranges 0x10 - 0x28 and 0x30 - 0x34)
398 * have the same format in Marvell's specification as in PCIe
399 * specification, but their meaning is totally different and they do
400 * different things: they are aliased into internal mvebu registers
401 * (e.g. PCIE_BAR_LO_OFF) and these should not be changed or
402 * reconfigured by pci device drivers.
404 * So our driver converts Type 0 config space to Type 1 and reports
405 * Header Type as Type 1. Access to BAR registers and to non-existent
406 * Type 1 registers is redirected to the virtual cfgcache[] buffer,
407 * which avoids changing unrelated registers.
409 reg = readl(pcie->base + PCIE_DEV_REV_OFF);
411 reg |= (PCI_CLASS_BRIDGE_PCI << 8) << 8;
412 writel(reg, pcie->base + PCIE_DEV_REV_OFF);
415 * mvebu uses local bus number and local device number to determinate
416 * type of config request. Type 0 is used if target bus number equals
417 * local bus number and target device number differs from local device
418 * number. Type 1 is used if target bus number differs from local bus
419 * number. And when target bus number equals local bus number and
420 * target device equals local device number then request is routed to
421 * PCI Bridge which represent local PCIe Root Port.
423 * It means that PCI primary and secondary buses shares one bus number
424 * which is configured via local bus number. Determination if config
425 * request should go to primary or secondary bus is done based on local
428 * PCIe is point-to-point bus, so at secondary bus is always exactly one
429 * device with number 0. So set local device number to 1, it would not
430 * conflict with any device on secondary bus number and will ensure that
431 * accessing secondary bus and all buses behind secondary would work
432 * automatically and correctly. Therefore this configuration of local
433 * device number implies that setting of local bus number configures
434 * secondary bus number. Set it to 0 as U-Boot CONFIG_PCI_PNP code will
435 * later configure it via config write requests to the correct value.
436 * mvebu_pcie_write_config() catches config write requests which tries
437 * to change primary/secondary bus number and correctly updates local
438 * bus number based on new secondary bus number.
440 * With this configuration is PCI Bridge available at secondary bus as
441 * device number 1. But it must be available at primary bus as device
442 * number 0. So in mvebu_pcie_read_config() and mvebu_pcie_write_config()
443 * functions rewrite address to the real one when accessing primary bus.
445 mvebu_pcie_set_local_bus_nr(pcie, 0);
446 mvebu_pcie_set_local_dev_nr(pcie, 1);
448 pcie->mem.start = (u32)mvebu_pcie_membase;
449 pcie->mem.end = pcie->mem.start + MBUS_PCI_MEM_SIZE - 1;
450 mvebu_pcie_membase += MBUS_PCI_MEM_SIZE;
452 if (mvebu_mbus_add_window_by_id(pcie->mem_target, pcie->mem_attr,
453 (phys_addr_t)pcie->mem.start,
454 resource_size(&pcie->mem))) {
455 printf("PCIe unable to add mbus window for mem at %08x+%08x\n",
456 (u32)pcie->mem.start, (unsigned)resource_size(&pcie->mem));
459 pcie->io.start = (u32)mvebu_pcie_iobase;
460 pcie->io.end = pcie->io.start + MBUS_PCI_IO_SIZE - 1;
461 mvebu_pcie_iobase += MBUS_PCI_IO_SIZE;
463 if (mvebu_mbus_add_window_by_id(pcie->io_target, pcie->io_attr,
464 (phys_addr_t)pcie->io.start,
465 resource_size(&pcie->io))) {
466 printf("PCIe unable to add mbus window for IO at %08x+%08x\n",
467 (u32)pcie->io.start, (unsigned)resource_size(&pcie->io));
470 /* Setup windows and configure host bridge */
471 mvebu_pcie_setup_wins(pcie);
473 /* PCI memory space */
474 pci_set_region(hose->regions + 0, pcie->mem.start,
475 pcie->mem.start, resource_size(&pcie->mem), PCI_REGION_MEM);
476 pci_set_region(hose->regions + 1,
479 PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
480 pci_set_region(hose->regions + 2, pcie->io.start,
481 pcie->io.start, resource_size(&pcie->io), PCI_REGION_IO);
482 hose->region_count = 3;
484 /* PCI Bridge support 32-bit I/O and 64-bit prefetch mem addressing */
485 pcie->cfgcache[(PCI_IO_BASE - 0x10) / 4] =
486 PCI_IO_RANGE_TYPE_32 | (PCI_IO_RANGE_TYPE_32 << 8);
487 pcie->cfgcache[(PCI_PREF_MEMORY_BASE - 0x10) / 4] =
488 PCI_PREF_RANGE_TYPE_64 | (PCI_PREF_RANGE_TYPE_64 << 16);
493 static int mvebu_pcie_port_parse_dt(ofnode node, struct mvebu_pcie *pcie)
498 addr = ofnode_get_property(node, "assigned-addresses", &len);
500 pr_err("property \"assigned-addresses\" not found");
501 return -FDT_ERR_NOTFOUND;
504 pcie->base = (void *)(fdt32_to_cpu(addr[2]) + SOC_REGS_PHY_BASE);
509 #define DT_FLAGS_TO_TYPE(flags) (((flags) >> 24) & 0x03)
510 #define DT_TYPE_IO 0x1
511 #define DT_TYPE_MEM32 0x2
512 #define DT_CPUADDR_TO_TARGET(cpuaddr) (((cpuaddr) >> 56) & 0xFF)
513 #define DT_CPUADDR_TO_ATTR(cpuaddr) (((cpuaddr) >> 48) & 0xFF)
515 static int mvebu_get_tgt_attr(ofnode node, int devfn,
520 const int na = 3, ns = 2;
522 int rlen, nranges, rangesz, pna, i;
527 range = ofnode_get_property(node, "ranges", &rlen);
532 * Linux uses of_n_addr_cells() to get the number of address cells
533 * here. Currently this function is only available in U-Boot when
534 * CONFIG_OF_LIVE is enabled. Until this is enabled for MVEBU in
535 * general, lets't hardcode the "pna" value in the U-Boot code.
537 pna = 2; /* hardcoded for now because of lack of of_n_addr_cells() */
538 rangesz = pna + na + ns;
539 nranges = rlen / sizeof(__be32) / rangesz;
541 for (i = 0; i < nranges; i++, range += rangesz) {
542 u32 flags = of_read_number(range, 1);
543 u32 slot = of_read_number(range + 1, 1);
544 u64 cpuaddr = of_read_number(range + na, pna);
547 if (DT_FLAGS_TO_TYPE(flags) == DT_TYPE_IO)
548 rtype = IORESOURCE_IO;
549 else if (DT_FLAGS_TO_TYPE(flags) == DT_TYPE_MEM32)
550 rtype = IORESOURCE_MEM;
555 * The Linux code used PCI_SLOT() here, which expects devfn
556 * in bits 7..0. PCI_DEV() in U-Boot is similar to PCI_SLOT(),
557 * only expects devfn in 15..8, where its saved in this driver.
559 if (slot == PCI_DEV(devfn) && type == rtype) {
560 *tgt = DT_CPUADDR_TO_TARGET(cpuaddr);
561 *attr = DT_CPUADDR_TO_ATTR(cpuaddr);
569 static int mvebu_pcie_of_to_plat(struct udevice *dev)
571 struct mvebu_pcie *pcie = dev_get_plat(dev);
574 /* Get port number, lane number and memory target / attr */
575 if (ofnode_read_u32(dev_ofnode(dev), "marvell,pcie-port",
581 if (ofnode_read_u32(dev_ofnode(dev), "marvell,pcie-lane", &pcie->lane))
584 sprintf(pcie->name, "pcie%d.%d", pcie->port, pcie->lane);
586 /* pci_get_devfn() returns devfn in bits 15..8, see PCI_DEV usage */
587 pcie->devfn = pci_get_devfn(dev);
588 if (pcie->devfn < 0) {
593 ret = mvebu_get_tgt_attr(dev_ofnode(dev->parent), pcie->devfn,
595 &pcie->mem_target, &pcie->mem_attr);
597 printf("%s: cannot get tgt/attr for mem window\n", pcie->name);
601 ret = mvebu_get_tgt_attr(dev_ofnode(dev->parent), pcie->devfn,
603 &pcie->io_target, &pcie->io_attr);
605 printf("%s: cannot get tgt/attr for IO window\n", pcie->name);
609 /* Parse PCIe controller register base from DT */
610 ret = mvebu_pcie_port_parse_dt(dev_ofnode(dev), pcie);
620 static const struct dm_pci_ops mvebu_pcie_ops = {
621 .read_config = mvebu_pcie_read_config,
622 .write_config = mvebu_pcie_write_config,
625 static struct driver pcie_mvebu_drv = {
626 .name = "pcie_mvebu",
628 .ops = &mvebu_pcie_ops,
629 .probe = mvebu_pcie_probe,
630 .of_to_plat = mvebu_pcie_of_to_plat,
631 .plat_auto = sizeof(struct mvebu_pcie),
635 * Use a MISC device to bind the n instances (child nodes) of the
636 * PCIe base controller in UCLASS_PCI.
638 static int mvebu_pcie_bind(struct udevice *parent)
640 struct mvebu_pcie *pcie;
641 struct uclass_driver *drv;
645 /* Lookup pci driver */
646 drv = lists_uclass_lookup(UCLASS_PCI);
648 puts("Cannot find PCI driver\n");
652 ofnode_for_each_subnode(subnode, dev_ofnode(parent)) {
653 if (!ofnode_is_available(subnode))
656 pcie = calloc(1, sizeof(*pcie));
660 /* Create child device UCLASS_PCI and bind it */
661 device_bind(parent, &pcie_mvebu_drv, pcie->name, pcie, subnode,
668 static const struct udevice_id mvebu_pcie_ids[] = {
669 { .compatible = "marvell,armada-xp-pcie" },
670 { .compatible = "marvell,armada-370-pcie" },
674 U_BOOT_DRIVER(pcie_mvebu_base) = {
675 .name = "pcie_mvebu_base",
677 .of_match = mvebu_pcie_ids,
678 .bind = mvebu_pcie_bind,