PCI: tegra: Add support to enable slot regulators
authorVidya Sagar <vidyas@nvidia.com>
Thu, 5 Sep 2019 10:45:51 +0000 (16:15 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 20 Sep 2019 19:24:34 +0000 (14:24 -0500)
commit0a901f2130802fdcabcd6f1cfabf4f62fa0d3cde
tree8809c7b80100074e3898358ad8ba7018d62f532a
parentf4ff4faf894d36b4aa243e241d4d47b4b8ba3c84
PCI: tegra: Add support to enable slot regulators

Add support to get regulator information of 3.3V and 12V supplies of a PCIe
slot from the respective controller's device-tree node and enable those
supplies. This is required in platforms like p2972-0000 where the supplies
to x16 slot owned by C5 controller need to be enabled before attempting to
enumerate the devices.

Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Andrew Murray <andrew.murray@arm.com>
Acked-by: Thierry Reding <treding@nvidia.com>
drivers/pci/controller/dwc/pcie-tegra194.c