summaryrefslogtreecommitdiff
path: root/drivers/pci/pcie_layerscape_fixup.c
diff options
context:
space:
mode:
authorPankaj Bansal <pankaj.bansal@nxp.com>2019-11-30 16:14:10 +0300
committerPriyanka Jain <priyanka.jain@nxp.com>2020-01-02 12:06:57 +0300
commit63618e71e89b3fc669d56bcb4389e70a6b3a4ea8 (patch)
treea0e6f0bd143fa9baefe2c927b7fe089ebe8d51d7 /drivers/pci/pcie_layerscape_fixup.c
parentba7c966c0fdf1d53b1b30d2c566161236d2e4007 (diff)
downloadu-boot-63618e71e89b3fc669d56bcb4389e70a6b3a4ea8.tar.xz
pci: layerscape: Manage PCIe EP compatible string via Kconfig
The ep node device tree name is governed by these bindings: https://github.com/torvalds/linux/blob/master/Documentation/ devicetree/bindings/pci/layerscape-pci.txt#L24 As per above the ep compatible node contains platform name. Therefore, define the ep node compatible as CONFIG to find the pcie ep node in device tree during device tree fixup. Signed-off-by: Pankaj Bansal <pankaj.bansal@nxp.com> Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'drivers/pci/pcie_layerscape_fixup.c')
-rw-r--r--drivers/pci/pcie_layerscape_fixup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pcie_layerscape_fixup.c b/drivers/pci/pcie_layerscape_fixup.c
index 3d238403f1..27ef20d4c3 100644
--- a/drivers/pci/pcie_layerscape_fixup.c
+++ b/drivers/pci/pcie_layerscape_fixup.c
@@ -253,7 +253,7 @@ static void ft_pcie_ep_fix(void *blob, struct ls_pcie *pcie)
{
int off;
- off = fdt_node_offset_by_compat_reg(blob, "fsl,ls-pcie-ep",
+ off = fdt_node_offset_by_compat_reg(blob, CONFIG_FSL_PCIE_EP_COMPAT,
pcie->dbi_res.start);
if (off < 0)
return;