|
|
@@ -565,6 +565,12 @@ static int mobiveil_host_init(struct mobiveil_pcie *pcie)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /* fixup for PCIe class register */
|
|
|
+ value = csr_readl(pcie, PAB_INTP_AXI_PIO_CLASS);
|
|
|
+ value &= 0xff;
|
|
|
+ value |= (PCI_CLASS_BRIDGE_PCI << 16);
|
|
|
+ csr_writel(pcie, value, PAB_INTP_AXI_PIO_CLASS);
|
|
|
+
|
|
|
/* setup MSI hardware registers */
|
|
|
mobiveil_pcie_enable_msi(pcie);
|
|
|
|
|
|
@@ -805,9 +811,6 @@ static int mobiveil_pcie_probe(struct platform_device *pdev)
|
|
|
goto error;
|
|
|
}
|
|
|
|
|
|
- /* fixup for PCIe class register */
|
|
|
- csr_writel(pcie, 0x060402ab, PAB_INTP_AXI_PIO_CLASS);
|
|
|
-
|
|
|
/* initialize the IRQ domains */
|
|
|
ret = mobiveil_pcie_init_irq_domain(pcie);
|
|
|
if (ret) {
|