本篇章主要图解PCIe EP驱动初始化流程
MDM PCIe EP
驱动初始化的时序图如下:
The MHI performs initialization after the system boots up.
The PCIe default parameters are set; this includes setting the device type to EP mode.
The PCIe EP core is configured so that BAR0 points to base address of the MHI register interface
The link training and status state machine (LTSSM) is enabled.
Once the host programs BAR0, the device is enabled as the bus master.
其中,在上图右侧,当ep_pcie_probe()
被调用后,具体将执行