PCI: imx: Add multi-pd support
authorLeonard Crestez <leonard.crestez@nxp.com>
Mon, 8 Oct 2018 18:06:21 +0000 (18:06 +0000)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 18 Dec 2018 12:01:08 +0000 (12:01 +0000)
commit3f7cceeab895fcc17ac8db0d9a5e8ca2954b4661
tree9db4a171779ee9f9c15633ca221a943d64154293
parente24b6b513e747727ee56b77ad46f04dff36cee53
PCI: imx: Add multi-pd support

On some chips the PCIe and PCIE_PHY blocks are in separate power domains
which can be power-gated independently. The PCI driver needs to handle
this by keeping both domain active.

This is intended for imx6sx where PCIe is in DISPLAY and PCIE_PHY in
its own domain. Defining the DISPLAY domain requires a way for PCIe to
keep it active or it will break when displays are off.

The power-domains on imx6sx are meant to look like this:
power-domains = <&pd_disp>, <&pd_pci>;
power-domain-names = "pcie", "pcie_phy";

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pci/controller/dwc/pci-imx6.c