Skip to content
Snippets Groups Projects
Commit ecee68a9 authored by Richard Zhu's avatar Richard Zhu Committed by Jason Liu
Browse files

MLK-15343-3 PCI: imx: enable the DBI_RO_WR_EN of PCIEB


The DBI_RO_WR_EN of PCIEB should be asserted,
otherwise the CLASS_DEVICE can't be configured
correctly, then PCIEB RC doesn't work at all.

Signed-off-by: default avatarRichard Zhu <hongxing.zhu@nxp.com>
parent 5e3cf769
No related branches found
No related tags found
No related merge requests found
......@@ -129,6 +129,9 @@ struct imx6_pcie {
#define PCIE_LINK_WIDTH_SPEED_CONTROL 0x80C
#define PORT_LOGIC_SPEED_CHANGE (0x1 << 17)
#define PCIE_MISC_CTRL (PL_OFFSET + 0x1BC)
#define PCIE_MISC_DBI_RO_WR_EN BIT(0)
/* PHY registers (not memory-mapped) */
#define PCIE_PHY_RX_ASIC_OUT 0x100D
#define PCIE_PHY_RX_ASIC_OUT_VALID (1 << 0)
......@@ -1306,6 +1309,12 @@ static int imx6_pcie_host_init(struct pcie_port *pp)
else
pp->cpu_addr_offset = 0;
if (imx6_pcie->variant == IMX8QM) {
if (dw_pcie_readl_dbi(pci, PCIE_MISC_CTRL) == 0)
dw_pcie_writel_dbi(pci, PCIE_MISC_CTRL,
PCIE_MISC_DBI_RO_WR_EN);
}
dw_pcie_setup_rc(pp);
ret = imx6_pcie_establish_link(imx6_pcie);
if (ret < 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment