After I compile the XHCI to modul ,the kernel Hung up when boot up to xhci_gen_setup->HC_LENGTH(readl(&xhci->cap_regs->hc_capbase));
who can tell me why ? when I build in it is no problem .
Please refer to Chapter 42 (i.MX 6 PCI Express Root Complex Driver) of "i.MX_6_Linux_Reference_Manual.pdf" in Linux documentation. Also You may try using the recent (L4.1.15) Linux BSP.
The following thread may be useful. “i.MX6Q PCIe EP/RC Validation System”
When building RC image, make sure that
# CONFIG_IMX_PCIE_EP_MODE_IN_EP_RC_SYS is not set
* When build EP image, make sure that
# CONFIG_IMX_PCIE_RC_MODE_IN_EP_RC_SYS is not set
Hope this helps