2 * pcie-dra7xx - PCIe controller driver for TI DRA7xx SoCs
4 * Copyright (C) 2013-2014 Texas Instruments Incorporated - http://www.ti.com
6 * Authors: Kishon Vijay Abraham I <kishon@ti.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #include <linux/delay.h>
14 #include <linux/err.h>
15 #include <linux/interrupt.h>
16 #include <linux/irq.h>
17 #include <linux/irqdomain.h>
18 #include <linux/kernel.h>
19 #include <linux/init.h>
20 #include <linux/of_device.h>
21 #include <linux/of_gpio.h>
22 #include <linux/of_pci.h>
23 #include <linux/pci.h>
24 #include <linux/phy/phy.h>
25 #include <linux/platform_device.h>
26 #include <linux/pm_runtime.h>
27 #include <linux/resource.h>
28 #include <linux/types.h>
29 #include <linux/mfd/syscon.h>
30 #include <linux/regmap.h>
32 #include "pcie-designware.h"
34 /* PCIe controller wrapper DRA7XX configuration registers */
36 #define PCIECTRL_DRA7XX_CONF_IRQSTATUS_MAIN 0x0024
37 #define PCIECTRL_DRA7XX_CONF_IRQENABLE_SET_MAIN 0x0028
38 #define ERR_SYS BIT(0)
39 #define ERR_FATAL BIT(1)
40 #define ERR_NONFATAL BIT(2)
41 #define ERR_COR BIT(3)
42 #define ERR_AXI BIT(4)
43 #define ERR_ECRC BIT(5)
44 #define PME_TURN_OFF BIT(8)
45 #define PME_TO_ACK BIT(9)
46 #define PM_PME BIT(10)
47 #define LINK_REQ_RST BIT(11)
48 #define LINK_UP_EVT BIT(12)
49 #define CFG_BME_EVT BIT(13)
50 #define CFG_MSE_EVT BIT(14)
51 #define INTERRUPTS (ERR_SYS | ERR_FATAL | ERR_NONFATAL | ERR_COR | ERR_AXI | \
52 ERR_ECRC | PME_TURN_OFF | PME_TO_ACK | PM_PME | \
53 LINK_REQ_RST | LINK_UP_EVT | CFG_BME_EVT | CFG_MSE_EVT)
55 #define PCIECTRL_DRA7XX_CONF_IRQSTATUS_MSI 0x0034
56 #define PCIECTRL_DRA7XX_CONF_IRQENABLE_SET_MSI 0x0038
62 #define LEG_EP_INTERRUPTS (INTA | INTB | INTC | INTD)
64 #define PCIECTRL_TI_CONF_DEVICE_TYPE 0x0100
65 #define DEVICE_TYPE_EP 0x0
66 #define DEVICE_TYPE_LEG_EP 0x1
67 #define DEVICE_TYPE_RC 0x4
69 #define PCIECTRL_DRA7XX_CONF_DEVICE_CMD 0x0104
72 #define PCIECTRL_DRA7XX_CONF_PHY_CS 0x010C
73 #define LINK_UP BIT(16)
74 #define DRA7XX_CPU_TO_BUS_ADDR 0x0FFFFFFF
76 #define EXP_CAP_ID_OFFSET 0x70
78 #define PCIECTRL_TI_CONF_INTX_ASSERT 0x0124
79 #define PCIECTRL_TI_CONF_INTX_DEASSERT 0x0128
81 #define PCIECTRL_TI_CONF_MSI_XMT 0x012c
82 #define MSI_REQ_GRANT BIT(0)
83 #define MSI_VECTOR_SHIFT 7
87 void __iomem *base; /* DT ti_conf */
88 int phy_count; /* DT phy-names count */
91 struct irq_domain *irq_domain;
92 enum dw_pcie_device_mode mode;
95 struct dra7xx_pcie_of_data {
96 enum dw_pcie_device_mode mode;
99 #define to_dra7xx_pcie(x) dev_get_drvdata((x)->dev)
101 static inline u32 dra7xx_pcie_readl(struct dra7xx_pcie *pcie, u32 offset)
103 return readl(pcie->base + offset);
106 static inline void dra7xx_pcie_writel(struct dra7xx_pcie *pcie, u32 offset,
109 writel(value, pcie->base + offset);
112 static u64 dra7xx_pcie_cpu_addr_fixup(u64 pci_addr)
114 return pci_addr & DRA7XX_CPU_TO_BUS_ADDR;
117 static int dra7xx_pcie_link_up(struct dw_pcie *pci)
119 struct dra7xx_pcie *dra7xx = to_dra7xx_pcie(pci);
120 u32 reg = dra7xx_pcie_readl(dra7xx, PCIECTRL_DRA7XX_CONF_PHY_CS);
122 return !!(reg & LINK_UP);
125 static void dra7xx_pcie_stop_link(struct dw_pcie *pci)
127 struct dra7xx_pcie *dra7xx = to_dra7xx_pcie(pci);
130 reg = dra7xx_pcie_readl(dra7xx, PCIECTRL_DRA7XX_CONF_DEVICE_CMD);
132 dra7xx_pcie_writel(dra7xx, PCIECTRL_DRA7XX_CONF_DEVICE_CMD, reg);
135 static int dra7xx_pcie_establish_link(struct dw_pcie *pci)
137 struct dra7xx_pcie *dra7xx = to_dra7xx_pcie(pci);
138 struct device *dev = pci->dev;
140 u32 exp_cap_off = EXP_CAP_ID_OFFSET;
142 if (dw_pcie_link_up(pci)) {
143 dev_err(dev, "link is already up\n");
147 if (dra7xx->link_gen == 1) {
148 dw_pcie_read(pci->dbi_base + exp_cap_off + PCI_EXP_LNKCAP,
150 if ((reg & PCI_EXP_LNKCAP_SLS) != PCI_EXP_LNKCAP_SLS_2_5GB) {
151 reg &= ~((u32)PCI_EXP_LNKCAP_SLS);
152 reg |= PCI_EXP_LNKCAP_SLS_2_5GB;
153 dw_pcie_write(pci->dbi_base + exp_cap_off +
154 PCI_EXP_LNKCAP, 4, reg);
157 dw_pcie_read(pci->dbi_base + exp_cap_off + PCI_EXP_LNKCTL2,
159 if ((reg & PCI_EXP_LNKCAP_SLS) != PCI_EXP_LNKCAP_SLS_2_5GB) {
160 reg &= ~((u32)PCI_EXP_LNKCAP_SLS);
161 reg |= PCI_EXP_LNKCAP_SLS_2_5GB;
162 dw_pcie_write(pci->dbi_base + exp_cap_off +
163 PCI_EXP_LNKCTL2, 2, reg);
167 reg = dra7xx_pcie_readl(dra7xx, PCIECTRL_DRA7XX_CONF_DEVICE_CMD);
169 dra7xx_pcie_writel(dra7xx, PCIECTRL_DRA7XX_CONF_DEVICE_CMD, reg);
174 static void dra7xx_pcie_enable_msi_interrupts(struct dra7xx_pcie *dra7xx)
176 dra7xx_pcie_writel(dra7xx, PCIECTRL_DRA7XX_CONF_IRQSTATUS_MSI,
177 ~LEG_EP_INTERRUPTS & ~MSI);
179 dra7xx_pcie_writel(dra7xx,
180 PCIECTRL_DRA7XX_CONF_IRQENABLE_SET_MSI,
181 MSI | LEG_EP_INTERRUPTS);
184 static void dra7xx_pcie_enable_wrapper_interrupts(struct dra7xx_pcie *dra7xx)
186 dra7xx_pcie_writel(dra7xx, PCIECTRL_DRA7XX_CONF_IRQSTATUS_MAIN,
188 dra7xx_pcie_writel(dra7xx, PCIECTRL_DRA7XX_CONF_IRQENABLE_SET_MAIN,
192 static void dra7xx_pcie_enable_interrupts(struct dra7xx_pcie *dra7xx)
194 dra7xx_pcie_enable_wrapper_interrupts(dra7xx);
195 dra7xx_pcie_enable_msi_interrupts(dra7xx);
198 static void dra7xx_pcie_host_init(struct pcie_port *pp)
200 struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
201 struct dra7xx_pcie *dra7xx = to_dra7xx_pcie(pci);
203 dw_pcie_setup_rc(pp);
205 dra7xx_pcie_establish_link(pci);
206 dw_pcie_wait_for_link(pci);
207 dw_pcie_msi_init(pp);
208 dra7xx_pcie_enable_interrupts(dra7xx);
211 static struct dw_pcie_host_ops dra7xx_pcie_host_ops = {
212 .host_init = dra7xx_pcie_host_init,
215 static int dra7xx_pcie_intx_map(struct irq_domain *domain, unsigned int irq,
216 irq_hw_number_t hwirq)
218 irq_set_chip_and_handler(irq, &dummy_irq_chip, handle_simple_irq);
219 irq_set_chip_data(irq, domain->host_data);
224 static const struct irq_domain_ops intx_domain_ops = {
225 .map = dra7xx_pcie_intx_map,
228 static int dra7xx_pcie_init_irq_domain(struct pcie_port *pp)
230 struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
231 struct device *dev = pci->dev;
232 struct dra7xx_pcie *dra7xx = to_dra7xx_pcie(pci);
233 struct device_node *node = dev->of_node;
234 struct device_node *pcie_intc_node = of_get_next_child(node, NULL);
236 if (!pcie_intc_node) {
237 dev_err(dev, "No PCIe Intc node found\n");
241 dra7xx->irq_domain = irq_domain_add_linear(pcie_intc_node, 4,
242 &intx_domain_ops, pp);
243 if (!dra7xx->irq_domain) {
244 dev_err(dev, "Failed to get a INTx IRQ domain\n");
251 static irqreturn_t dra7xx_pcie_msi_irq_handler(int irq, void *arg)
253 struct dra7xx_pcie *dra7xx = arg;
254 struct dw_pcie *pci = dra7xx->pci;
255 struct pcie_port *pp = &pci->pp;
258 reg = dra7xx_pcie_readl(dra7xx, PCIECTRL_DRA7XX_CONF_IRQSTATUS_MSI);
262 dw_handle_msi_irq(pp);
268 generic_handle_irq(irq_find_mapping(dra7xx->irq_domain,
273 dra7xx_pcie_writel(dra7xx, PCIECTRL_DRA7XX_CONF_IRQSTATUS_MSI, reg);
279 static irqreturn_t dra7xx_pcie_irq_handler(int irq, void *arg)
281 struct dra7xx_pcie *dra7xx = arg;
282 struct dw_pcie *pci = dra7xx->pci;
283 struct device *dev = pci->dev;
284 struct dw_pcie_ep *ep = &pci->ep;
287 reg = dra7xx_pcie_readl(dra7xx, PCIECTRL_DRA7XX_CONF_IRQSTATUS_MAIN);
290 dev_dbg(dev, "System Error\n");
293 dev_dbg(dev, "Fatal Error\n");
295 if (reg & ERR_NONFATAL)
296 dev_dbg(dev, "Non Fatal Error\n");
299 dev_dbg(dev, "Correctable Error\n");
302 dev_dbg(dev, "AXI tag lookup fatal Error\n");
305 dev_dbg(dev, "ECRC Error\n");
307 if (reg & PME_TURN_OFF)
309 "Power Management Event Turn-Off message received\n");
311 if (reg & PME_TO_ACK)
313 "Power Management Turn-Off Ack message received\n");
316 dev_dbg(dev, "PM Power Management Event message received\n");
318 if (reg & LINK_REQ_RST)
319 dev_dbg(dev, "Link Request Reset\n");
321 if (reg & LINK_UP_EVT) {
322 if (dra7xx->mode == DW_PCIE_EP_TYPE)
323 dw_pcie_ep_linkup(ep);
324 dev_dbg(dev, "Link-up state change\n");
327 if (reg & CFG_BME_EVT)
328 dev_dbg(dev, "CFG 'Bus Master Enable' change\n");
330 if (reg & CFG_MSE_EVT)
331 dev_dbg(dev, "CFG 'Memory Space Enable' change\n");
333 dra7xx_pcie_writel(dra7xx, PCIECTRL_DRA7XX_CONF_IRQSTATUS_MAIN, reg);
338 static void dra7xx_pcie_ep_init(struct dw_pcie_ep *ep)
340 struct dw_pcie *pci = to_dw_pcie_from_ep(ep);
341 struct dra7xx_pcie *dra7xx = to_dra7xx_pcie(pci);
343 dra7xx_pcie_enable_wrapper_interrupts(dra7xx);
346 static void dra7xx_pcie_raise_legacy_irq(struct dra7xx_pcie *dra7xx)
348 dra7xx_pcie_writel(dra7xx, PCIECTRL_TI_CONF_INTX_ASSERT, 0x1);
350 dra7xx_pcie_writel(dra7xx, PCIECTRL_TI_CONF_INTX_DEASSERT, 0x1);
353 static void dra7xx_pcie_raise_msi_irq(struct dra7xx_pcie *dra7xx,
358 reg = (interrupt_num - 1) << MSI_VECTOR_SHIFT;
359 reg |= MSI_REQ_GRANT;
360 dra7xx_pcie_writel(dra7xx, PCIECTRL_TI_CONF_MSI_XMT, reg);
363 static int dra7xx_pcie_raise_irq(struct dw_pcie_ep *ep,
364 enum pci_epc_irq_type type, u8 interrupt_num)
366 struct dw_pcie *pci = to_dw_pcie_from_ep(ep);
367 struct dra7xx_pcie *dra7xx = to_dra7xx_pcie(pci);
370 case PCI_EPC_IRQ_LEGACY:
371 dra7xx_pcie_raise_legacy_irq(dra7xx);
373 case PCI_EPC_IRQ_MSI:
374 dra7xx_pcie_raise_msi_irq(dra7xx, interrupt_num);
377 dev_err(pci->dev, "UNKNOWN IRQ type\n");
383 static struct dw_pcie_ep_ops pcie_ep_ops = {
384 .ep_init = dra7xx_pcie_ep_init,
385 .raise_irq = dra7xx_pcie_raise_irq,
388 static int __init dra7xx_add_pcie_ep(struct dra7xx_pcie *dra7xx,
389 struct platform_device *pdev)
392 struct dw_pcie_ep *ep;
393 struct resource *res;
394 struct device *dev = &pdev->dev;
395 struct dw_pcie *pci = dra7xx->pci;
398 ep->ops = &pcie_ep_ops;
400 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "ep_dbics");
401 pci->dbi_base = devm_ioremap(dev, res->start, resource_size(res));
405 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "ep_dbics2");
406 pci->dbi_base2 = devm_ioremap(dev, res->start, resource_size(res));
410 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "addr_space");
414 ep->phys_base = res->start;
415 ep->addr_size = resource_size(res);
417 ret = dw_pcie_ep_init(ep);
419 dev_err(dev, "failed to initialize endpoint\n");
426 static int __init dra7xx_add_pcie_port(struct dra7xx_pcie *dra7xx,
427 struct platform_device *pdev)
430 struct dw_pcie *pci = dra7xx->pci;
431 struct pcie_port *pp = &pci->pp;
432 struct device *dev = pci->dev;
433 struct resource *res;
435 pp->irq = platform_get_irq(pdev, 1);
437 dev_err(dev, "missing IRQ resource\n");
441 ret = devm_request_irq(dev, pp->irq, dra7xx_pcie_msi_irq_handler,
442 IRQF_SHARED | IRQF_NO_THREAD,
443 "dra7-pcie-msi", dra7xx);
445 dev_err(dev, "failed to request irq\n");
449 ret = dra7xx_pcie_init_irq_domain(pp);
453 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rc_dbics");
454 pci->dbi_base = devm_ioremap(dev, res->start, resource_size(res));
458 ret = dw_pcie_host_init(pp);
460 dev_err(dev, "failed to initialize host\n");
467 static const struct dw_pcie_ops dw_pcie_ops = {
468 .cpu_addr_fixup = dra7xx_pcie_cpu_addr_fixup,
469 .start_link = dra7xx_pcie_establish_link,
470 .stop_link = dra7xx_pcie_stop_link,
471 .link_up = dra7xx_pcie_link_up,
474 static void dra7xx_pcie_disable_phy(struct dra7xx_pcie *dra7xx)
476 int phy_count = dra7xx->phy_count;
478 while (phy_count--) {
479 phy_power_off(dra7xx->phy[phy_count]);
480 phy_exit(dra7xx->phy[phy_count]);
484 static int dra7xx_pcie_enable_phy(struct dra7xx_pcie *dra7xx)
486 int phy_count = dra7xx->phy_count;
490 for (i = 0; i < phy_count; i++) {
491 ret = phy_init(dra7xx->phy[i]);
495 ret = phy_power_on(dra7xx->phy[i]);
497 phy_exit(dra7xx->phy[i]);
506 phy_power_off(dra7xx->phy[i]);
507 phy_exit(dra7xx->phy[i]);
513 static const struct dra7xx_pcie_of_data dra7xx_pcie_rc_of_data = {
514 .mode = DW_PCIE_RC_TYPE,
517 static const struct dra7xx_pcie_of_data dra7xx_pcie_ep_of_data = {
518 .mode = DW_PCIE_EP_TYPE,
521 static const struct of_device_id of_dra7xx_pcie_match[] = {
523 .compatible = "ti,dra7-pcie",
524 .data = &dra7xx_pcie_rc_of_data,
527 .compatible = "ti,dra7-pcie-ep",
528 .data = &dra7xx_pcie_ep_of_data,
534 * dra7xx_pcie_ep_unaligned_memaccess: workaround for AM572x/AM571x Errata i870
535 * @dra7xx: the dra7xx device where the workaround should be applied
537 * Access to the PCIe slave port that are not 32-bit aligned will result
538 * in incorrect mapping to TLP Address and Byte enable fields. Therefore,
539 * byte and half-word accesses are not possible to byte offset 0x1, 0x2, or
542 * To avoid this issue set PCIE_SS1_AXI2OCP_LEGACY_MODE_ENABLE to 1.
544 static int dra7xx_pcie_ep_unaligned_memaccess(struct device *dev)
547 struct device_node *np = dev->of_node;
548 struct of_phandle_args args;
549 struct regmap *regmap;
551 regmap = syscon_regmap_lookup_by_phandle(np,
552 "ti,syscon-unaligned-access");
553 if (IS_ERR(regmap)) {
554 dev_dbg(dev, "can't get ti,syscon-unaligned-access\n");
558 ret = of_parse_phandle_with_fixed_args(np, "ti,syscon-unaligned-access",
561 dev_err(dev, "failed to parse ti,syscon-unaligned-access\n");
565 ret = regmap_update_bits(regmap, args.args[0], args.args[1],
568 dev_err(dev, "failed to enable unaligned access\n");
570 of_node_put(args.np);
575 static int __init dra7xx_pcie_probe(struct platform_device *pdev)
584 struct resource *res;
586 struct pcie_port *pp;
587 struct dra7xx_pcie *dra7xx;
588 struct device *dev = &pdev->dev;
589 struct device_node *np = dev->of_node;
591 struct gpio_desc *reset;
592 const struct of_device_id *match;
593 const struct dra7xx_pcie_of_data *data;
594 enum dw_pcie_device_mode mode;
596 match = of_match_device(of_match_ptr(of_dra7xx_pcie_match), dev);
600 data = (struct dra7xx_pcie_of_data *)match->data;
601 mode = (enum dw_pcie_device_mode)data->mode;
603 dra7xx = devm_kzalloc(dev, sizeof(*dra7xx), GFP_KERNEL);
607 pci = devm_kzalloc(dev, sizeof(*pci), GFP_KERNEL);
612 pci->ops = &dw_pcie_ops;
615 pp->ops = &dra7xx_pcie_host_ops;
617 irq = platform_get_irq(pdev, 0);
619 dev_err(dev, "missing IRQ resource\n");
623 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "ti_conf");
624 base = devm_ioremap_nocache(dev, res->start, resource_size(res));
628 phy_count = of_property_count_strings(np, "phy-names");
630 dev_err(dev, "unable to find the strings\n");
634 phy = devm_kzalloc(dev, sizeof(*phy) * phy_count, GFP_KERNEL);
638 for (i = 0; i < phy_count; i++) {
639 snprintf(name, sizeof(name), "pcie-phy%d", i);
640 phy[i] = devm_phy_get(dev, name);
642 return PTR_ERR(phy[i]);
648 dra7xx->phy_count = phy_count;
650 ret = dra7xx_pcie_enable_phy(dra7xx);
652 dev_err(dev, "failed to enable phy\n");
656 platform_set_drvdata(pdev, dra7xx);
658 pm_runtime_enable(dev);
659 ret = pm_runtime_get_sync(dev);
661 dev_err(dev, "pm_runtime_get_sync failed\n");
665 reset = devm_gpiod_get_optional(dev, NULL, GPIOD_OUT_HIGH);
667 ret = PTR_ERR(reset);
668 dev_err(&pdev->dev, "gpio request failed, ret %d\n", ret);
672 reg = dra7xx_pcie_readl(dra7xx, PCIECTRL_DRA7XX_CONF_DEVICE_CMD);
674 dra7xx_pcie_writel(dra7xx, PCIECTRL_DRA7XX_CONF_DEVICE_CMD, reg);
676 dra7xx->link_gen = of_pci_get_max_link_speed(np);
677 if (dra7xx->link_gen < 0 || dra7xx->link_gen > 2)
678 dra7xx->link_gen = 2;
681 case DW_PCIE_RC_TYPE:
682 dra7xx_pcie_writel(dra7xx, PCIECTRL_TI_CONF_DEVICE_TYPE,
684 ret = dra7xx_add_pcie_port(dra7xx, pdev);
688 case DW_PCIE_EP_TYPE:
689 dra7xx_pcie_writel(dra7xx, PCIECTRL_TI_CONF_DEVICE_TYPE,
692 ret = dra7xx_pcie_ep_unaligned_memaccess(dev);
696 ret = dra7xx_add_pcie_ep(dra7xx, pdev);
701 dev_err(dev, "INVALID device type %d\n", mode);
705 ret = devm_request_irq(dev, irq, dra7xx_pcie_irq_handler,
706 IRQF_SHARED, "dra7xx-pcie-main", dra7xx);
708 dev_err(dev, "failed to request irq\n");
718 pm_runtime_disable(dev);
719 dra7xx_pcie_disable_phy(dra7xx);
724 #ifdef CONFIG_PM_SLEEP
725 static int dra7xx_pcie_suspend(struct device *dev)
727 struct dra7xx_pcie *dra7xx = dev_get_drvdata(dev);
728 struct dw_pcie *pci = dra7xx->pci;
731 if (dra7xx->mode != DW_PCIE_RC_TYPE)
735 val = dw_pcie_readl_dbi(pci, PCI_COMMAND);
736 val &= ~PCI_COMMAND_MEMORY;
737 dw_pcie_writel_dbi(pci, PCI_COMMAND, val);
742 static int dra7xx_pcie_resume(struct device *dev)
744 struct dra7xx_pcie *dra7xx = dev_get_drvdata(dev);
745 struct dw_pcie *pci = dra7xx->pci;
748 if (dra7xx->mode != DW_PCIE_RC_TYPE)
752 val = dw_pcie_readl_dbi(pci, PCI_COMMAND);
753 val |= PCI_COMMAND_MEMORY;
754 dw_pcie_writel_dbi(pci, PCI_COMMAND, val);
759 static int dra7xx_pcie_suspend_noirq(struct device *dev)
761 struct dra7xx_pcie *dra7xx = dev_get_drvdata(dev);
763 dra7xx_pcie_disable_phy(dra7xx);
768 static int dra7xx_pcie_resume_noirq(struct device *dev)
770 struct dra7xx_pcie *dra7xx = dev_get_drvdata(dev);
773 ret = dra7xx_pcie_enable_phy(dra7xx);
775 dev_err(dev, "failed to enable phy\n");
783 static const struct dev_pm_ops dra7xx_pcie_pm_ops = {
784 SET_SYSTEM_SLEEP_PM_OPS(dra7xx_pcie_suspend, dra7xx_pcie_resume)
785 SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(dra7xx_pcie_suspend_noirq,
786 dra7xx_pcie_resume_noirq)
789 static struct platform_driver dra7xx_pcie_driver = {
792 .of_match_table = of_dra7xx_pcie_match,
793 .suppress_bind_attrs = true,
794 .pm = &dra7xx_pcie_pm_ops,
797 builtin_platform_driver_probe(dra7xx_pcie_driver, dra7xx_pcie_probe);