MLK-22398-1 pcie_imx: Update PCIE IMX driver
authorYe Li <ye.li@nxp.com>
Tue, 30 Jul 2019 08:34:07 +0000 (01:34 -0700)
committerYe Li <ye.li@nxp.com>
Fri, 9 Aug 2019 09:26:24 +0000 (02:26 -0700)
commiteb0959cbf2118342a544440f124e0c81eeba70e3
treee672b8625deacafe5c78936b47f25acbb296f427
parent57f120797c9c794c2788a2712fae5e49f93024b6
MLK-22398-1 pcie_imx: Update PCIE IMX driver

Update PCIE IMX DM driver supports iMX8QM/QXP and
iMX6QDL/QP/SX. Non-DM driver supports iMX6QDL/QP/SX.
The changes in DM parses cfg/mem/io ranges, gpios, regulators and
clocks (imx8 only) from DTS for RC mode, and set iATU mapping for
each regions.

The original iATU mapping sets full PCI region to CFG space. iATU
translates MEM/IO TLP to CFG TLP when the address is falled into
the region.
The new mapping sets CFG/IO/MEM spaces to align with kernel like below
   ATU region 0 for MEM access
   ATU region 1 for CFG0 or CFG1 access by bus id
   ATU region 2 for IO access

Signed-off-by: Ye Li <ye.li@nxp.com>
drivers/pci/pcie_imx.c