]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: imx6: Add regulator support
authorQuentin Schulz <quentin.schulz@free-electrons.com>
Thu, 8 Jun 2017 08:07:42 +0000 (10:07 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Sun, 2 Jul 2017 23:43:39 +0000 (18:43 -0500)
commit91c03160ed3b98228ec0b2fe807ee1ed6344dc89
tree5af5b1c5aa475d9d3c7f35e86c210c4940bc5f18
parent408bffa960bf9470082160f5b04a7b0c84db4521
PCI: imx6: Add regulator support

Some boards might require to control a regulator to power the PCIe port.

Add support for an optional regulator defined in Device Tree linked in the
PCIe controller under `vpcie-supply`.  If present, the regulator will be
disabled and then enabled as part of the PCIe host initialization process
and will be disabled when shutting down.

Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
[bhelgaas: use dev_err() instead of pr_err() in
imx6_pcie_assert_core_reset()]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Richard Zhu <hongxing.zhu@nxp.com>
Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt
drivers/pci/dwc/pci-imx6.c