Messages in this thread Patch in this message | | | From | "Z.q. Hou" <> | Subject | [PATCH 14/23] PCI: mobiveil: initialize Primary/Secondary/Subordinate bus number | Date | Tue, 6 Nov 2018 13:20:35 +0000 |
| |
From: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
The reset value is all zero, so set a workable value for Primary, Secondary and Subordinate bus numbers.
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> --- drivers/pci/controller/pcie-mobiveil.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controller/pcie-mobiveil.c index 3da924bb6b3c..8d6a1e98f655 100644 --- a/drivers/pci/controller/pcie-mobiveil.c +++ b/drivers/pci/controller/pcie-mobiveil.c @@ -581,6 +581,12 @@ static int mobiveil_host_init(struct mobiveil_pcie *pcie) u32 value, pab_ctrl, type; struct resource_entry *win; + /* setup bus numbers */ + value = csr_readl(pcie, PCI_PRIMARY_BUS); + value &= 0xff000000; + value |= 0x00ff0100; + csr_writel(pcie, value, PCI_PRIMARY_BUS); + /* * program Bus Master Enable Bit in Command Register in PAB Config * Space -- 2.17.1
| |