diff options
author | Kishon Vijay Abraham I <kishon@ti.com> | 2019-01-14 06:15:01 -0500 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2019-02-14 11:09:47 -0500 |
commit | 3b4322e589a630fe35944ced5852655fcc4a5d24 (patch) | |
tree | e991074f46698e138b82f7200514b63b1e080d79 /drivers/pci/controller/dwc | |
parent | fee35cb76a54c87985410ea6aa12002e5d38b367 (diff) |
PCI: designware-plat: Populate ->get_features() dw_pcie_ep_ops
Populate ->get_features() dw_pcie_ep_ops to return the EPC features
supported by Designware PCIe endpoint controller.
Tested-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Diffstat (limited to 'drivers/pci/controller/dwc')
-rw-r--r-- | drivers/pci/controller/dwc/pcie-designware-plat.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/pci/controller/dwc/pcie-designware-plat.c b/drivers/pci/controller/dwc/pcie-designware-plat.c index c12bf794d69c..bd0516afc86f 100644 --- a/drivers/pci/controller/dwc/pcie-designware-plat.c +++ b/drivers/pci/controller/dwc/pcie-designware-plat.c | |||
@@ -100,9 +100,22 @@ static int dw_plat_pcie_ep_raise_irq(struct dw_pcie_ep *ep, u8 func_no, | |||
100 | return 0; | 100 | return 0; |
101 | } | 101 | } |
102 | 102 | ||
103 | static const struct pci_epc_features dw_plat_pcie_epc_features = { | ||
104 | .linkup_notifier = false, | ||
105 | .msi_capable = true, | ||
106 | .msix_capable = true, | ||
107 | }; | ||
108 | |||
109 | static const struct pci_epc_features* | ||
110 | dw_plat_pcie_get_features(struct dw_pcie_ep *ep) | ||
111 | { | ||
112 | return &dw_plat_pcie_epc_features; | ||
113 | } | ||
114 | |||
103 | static struct dw_pcie_ep_ops pcie_ep_ops = { | 115 | static struct dw_pcie_ep_ops pcie_ep_ops = { |
104 | .ep_init = dw_plat_pcie_ep_init, | 116 | .ep_init = dw_plat_pcie_ep_init, |
105 | .raise_irq = dw_plat_pcie_ep_raise_irq, | 117 | .raise_irq = dw_plat_pcie_ep_raise_irq, |
118 | .get_features = dw_plat_pcie_get_features, | ||
106 | }; | 119 | }; |
107 | 120 | ||
108 | static int dw_plat_add_pcie_port(struct dw_plat_pcie *dw_plat_pcie, | 121 | static int dw_plat_add_pcie_port(struct dw_plat_pcie *dw_plat_pcie, |