• L
    PCI: imx: Add PME_Turn_Off support · f4e833ba
    Leonard Crestez 提交于
    When the root complex suspends it must send a PME_Turn_Off TLP.
    Implement this by asserting the "turnoff" reset.
    
    On imx7d this functionality is part of the System Reset Controller (SRC)
    and is exposed through the linux reset-controller subsystem.
    
    On imx6 equivalent bits are in the IOMUXC pinmux controller General
    Purpose Register (GPR) area which the imx6-pcie driver accesses
    directly.
    
    This is only for imx7d right now but it's deliberately implemented as an
    optional reset, ignoring the chip variant:
    * Older dtbs won't have this reset so it will be ignored.
    * Future chips might also expose this as a reset controller.
    
    For example imx8m (not yet supported) has the exact same
    PCIE_CTRL_APPS_TURNOFF bit in the same location.
    Signed-off-by: NLeonard Crestez <leonard.crestez@nxp.com>
    [lorenzo.pieralisi@arm.com: updated commit log]
    Signed-off-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
    Reviewed-by: NLucas Stach <l.stach@pengutronix.de>
    f4e833ba
pci-imx6.c 26.5 KB