MLK-14938-17 pcie: Add support for i.MX8QM/QXP PCIe
authorYe Li <ye.li@nxp.com>
Mon, 27 Mar 2017 07:46:55 +0000 (15:46 +0800)
committerJason Liu <jason.hui.liu@nxp.com>
Thu, 2 Nov 2017 18:36:50 +0000 (02:36 +0800)
commit03141c2b955ce6034f06e701126aea1493dc2b4b
tree3e80b2a6c1cac01245c330d4deed66912b5a5e3b
parent2a47ebbccb95e8482360813d6dff5288429f1248
MLK-14938-17 pcie: Add support for i.MX8QM/QXP PCIe

- one lane pcie gen2 link is okay, the cfg space
  of the rc/ep can be accessed.
  rc cfg base 0x5f00_0000. ep cfg base 0x6000_0000
- limit to gen2 speed
- mask the wait of eq3 finish, because it is used
  for gen3.
- use pcie_ctrla_init_rc() to do the initialization
  of the pciea controller
- setup the common pcie codes in pcie_imx8x.c, separate
  the different soc speicifed initialization codes into
  their own pcie/board codes, move the macro definitions
  into the new header file imx8_hsio.h.
- i.MX8QXP only have PCIe Control B. Enable PORT B at default.
  i.MX8QM needs to set CONFIG_IMX_PCIEB to enable PORT B.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
drivers/pci/Makefile
drivers/pci/pcie_imx8qm.c [new file with mode: 0644]
drivers/pci/pcie_imx8x.c [new file with mode: 0644]
include/imx8_hsio.h [new file with mode: 0644]
scripts/config_whitelist.txt