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)
commit9e56f0df3684bd752347e7c3df5e8ed1fc55d139
tree003b7f8b7fd62585978928192b120ee7e401b2c7
parent3d71746c420c1c1c27cf5c4e48f8fa0a6cfdc185
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