]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: imx: Add imx6sx suspend/resume support
authorLeonard Crestez <leonard.crestez@nxp.com>
Wed, 7 Nov 2018 13:57:03 +0000 (13:57 +0000)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 18 Dec 2018 12:01:16 +0000 (12:01 +0000)
commit82703cc01b12788c89d2328b2092e40d9a00f3a0
tree003b7f8b7fd62585978928192b120ee7e401b2c7
parent6fd1cc7b762f0d3351bc94d5cf727217a2ff6f72
PCI: imx: Add imx6sx suspend/resume support

Enable PCI suspend/resume support on imx6sx SOCs. This is similar to
imx7d with a few differences:

* The PM_Turn_Off bit is exposed through an IOMUX GPR, like all other
pcie control bits on 6sx.
* The pcie_inbound_axi clk needs to be turned off in suspend. On resume
it is restored via resume -> deassert_core_reset -> enable_ref_clk.

Most of the resume logic is shared with the initial reset after probe.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Acked-by: Lucas Stach <l.stach@pengutronix.de>
drivers/pci/controller/dwc/pci-imx6.c
include/linux/mfd/syscon/imx6q-iomuxc-gpr.h