diff options
author | Pankaj Bansal <pankaj.bansal@nxp.com> | 2019-11-30 13:14:10 +0000 |
---|---|---|
committer | Priyanka Jain <priyanka.jain@nxp.com> | 2020-01-02 14:36:57 +0530 |
commit | 63618e71e89b3fc669d56bcb4389e70a6b3a4ea8 (patch) | |
tree | a0e6f0bd143fa9baefe2c927b7fe089ebe8d51d7 /drivers/pci/pcie_layerscape_gen4_fixup.c | |
parent | ba7c966c0fdf1d53b1b30d2c566161236d2e4007 (diff) | |
download | u-boot-63618e71e89b3fc669d56bcb4389e70a6b3a4ea8.tar.gz |
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_gen4_fixup.c')
-rw-r--r-- | drivers/pci/pcie_layerscape_gen4_fixup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pcie_layerscape_gen4_fixup.c b/drivers/pci/pcie_layerscape_gen4_fixup.c index b58ddd55cd..da9817159f 100644 --- a/drivers/pci/pcie_layerscape_gen4_fixup.c +++ b/drivers/pci/pcie_layerscape_gen4_fixup.c @@ -191,7 +191,7 @@ static void ft_pcie_ep_layerscape_gen4_fix(void *blob, struct ls_pcie_g4 *pcie) { int off; - off = fdt_node_offset_by_compat_reg(blob, "fsl,lx2160a-pcie-ep", + off = fdt_node_offset_by_compat_reg(blob, CONFIG_FSL_PCIE_EP_COMPAT, pcie->ccsr_res.start); if (off < 0) { |