Lines Matching +full:designware +full:- +full:pcie

1 // SPDX-License-Identifier: GPL-2.0
3 * PCIe RC driver for Synopsys DesignWare Core
5 * Copyright (C) 2015-2016 Synopsys, Inc. (www.synopsys.com)
21 #include "pcie-designware.h"
58 dev_err(pci->dev, "UNKNOWN IRQ type\n"); in dw_plat_pcie_ep_raise_irq()
85 struct dw_pcie *pci = dw_plat_pcie->pci; in dw_plat_add_pcie_port()
86 struct dw_pcie_rp *pp = &pci->pp; in dw_plat_add_pcie_port()
87 struct device *dev = &pdev->dev; in dw_plat_add_pcie_port()
90 pp->irq = platform_get_irq(pdev, 1); in dw_plat_add_pcie_port()
91 if (pp->irq < 0) in dw_plat_add_pcie_port()
92 return pp->irq; in dw_plat_add_pcie_port()
94 pp->num_vectors = MAX_MSI_IRQS; in dw_plat_add_pcie_port()
95 pp->ops = &dw_plat_pcie_host_ops; in dw_plat_add_pcie_port()
108 struct device *dev = &pdev->dev; in dw_plat_pcie_probe()
117 return -EINVAL; in dw_plat_pcie_probe()
119 mode = (enum dw_pcie_device_mode)data->mode; in dw_plat_pcie_probe()
123 return -ENOMEM; in dw_plat_pcie_probe()
127 return -ENOMEM; in dw_plat_pcie_probe()
129 pci->dev = dev; in dw_plat_pcie_probe()
131 dw_plat_pcie->pci = pci; in dw_plat_pcie_probe()
132 dw_plat_pcie->mode = mode; in dw_plat_pcie_probe()
136 switch (dw_plat_pcie->mode) { in dw_plat_pcie_probe()
139 return -ENODEV; in dw_plat_pcie_probe()
145 return -ENODEV; in dw_plat_pcie_probe()
147 pci->ep.ops = &pcie_ep_ops; in dw_plat_pcie_probe()
148 ret = dw_pcie_ep_init(&pci->ep); in dw_plat_pcie_probe()
151 dev_err(dev, "INVALID device type %d\n", dw_plat_pcie->mode); in dw_plat_pcie_probe()
152 ret = -EINVAL; in dw_plat_pcie_probe()
169 .compatible = "snps,dw-pcie",
173 .compatible = "snps,dw-pcie-ep",
181 .name = "dw-pcie",