diff options
author | Minghuan Lian <Minghuan.Lian@nxp.com> | 2017-10-20 10:45:50 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-11-17 10:53:45 -0500 |
commit | 3977dcd559e392b9a2f3c69e317527cbe8b6ae15 (patch) | |
tree | 84c91000d21dcce79230b794f25296591157a463 /drivers/pci/pcie_dw_mvebu.c | |
parent | 9587dee937bcedc07d06af4aafd4361c8c200023 (diff) |
dm: pci: change bus number register setting compliant with Linux
This patch is to change U-Boot PCI bus assignement compliant with Linux.
It means each PCIe controller's bus number is 0, not the current maximum
PCI bus number, when start to scan this controller.
Signed-off-by: Minghuan Lian <Minghuan.Lian@nxp.com>
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/pci/pcie_dw_mvebu.c')
-rw-r--r-- | drivers/pci/pcie_dw_mvebu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/pcie_dw_mvebu.c b/drivers/pci/pcie_dw_mvebu.c index 202cfe9d03..a19885501c 100644 --- a/drivers/pci/pcie_dw_mvebu.c +++ b/drivers/pci/pcie_dw_mvebu.c @@ -162,6 +162,7 @@ static uintptr_t set_cfg_address(struct pcie_dw_mvebu *pcie, /* Accessing root port configuration space. */ va_address = (uintptr_t)pcie->ctrl_base; } else { + d = PCI_MASK_BUS(d) | (PCI_BUS(d) - pcie->first_busno); writel(d << 8, pcie->ctrl_base + PCIE_ATU_LOWER_TARGET); va_address = (uintptr_t)pcie->cfg_base; } |