Skip to content
Permalink
Browse files
MA-17597-5 pci: controller: dwc: support module build
Support build PCI_IMX6 as module.

Also export the dw_pcie_link_up() function to be able to build drivers

Signed-off-by: Jindong <jindong.yue@nxp.com>
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
  • Loading branch information
JDYue committed Oct 20, 2020
1 parent f558657 commit 61b7aecf354c8e55cffc466be937c184b8aaadb0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
@@ -89,7 +89,7 @@ config PCI_EXYNOS
select PCIE_DW_HOST

config PCI_IMX6
bool
tristate "Freescale i.MX6/7/8 PCIe driver"

config PCI_IMX6_HOST
bool "Freescale i.MX6/7/8 PCIe controller host mode"
@@ -2084,7 +2084,7 @@ static const struct dw_pcie_ep_ops pcie_ep_ops = {
.get_features = imx_pcie_ep_get_features,
};

static int __init imx_add_pcie_ep(struct imx6_pcie *imx6_pcie,
static int imx_add_pcie_ep(struct imx6_pcie *imx6_pcie,
struct platform_device *pdev)
{
int ret;
@@ -2942,3 +2942,4 @@ static int __init imx6_pcie_init(void)
return platform_driver_register(&imx6_pcie_driver);
}
device_initcall(imx6_pcie_init);
MODULE_LICENSE("GPL v2");
@@ -473,6 +473,7 @@ int dw_pcie_link_up(struct dw_pcie *pci)
return ((val & PCIE_PORT_DEBUG1_LINK_UP) &&
(!(val & PCIE_PORT_DEBUG1_LINK_IN_TRAINING)));
}
EXPORT_SYMBOL_GPL(dw_pcie_link_up);

static u8 dw_pcie_iatu_unroll_enabled(struct dw_pcie *pci)
{

0 comments on commit 61b7aec

Please sign in to comment.