pci: imx: use vpcie-supply if defined by device-tree
authorTim Harvey <tharvey@gateworks.com>
Wed, 13 Apr 2022 22:54:37 +0000 (15:54 -0700)
committerStefano Babic <sbabic@denx.de>
Thu, 21 Apr 2022 12:38:03 +0000 (14:38 +0200)
commit6f6e069ca3dc76ce8b613e8a9860da573df42dd2
tree2878bcfc8d94087c8e6f31a154f7bed5e8b2d9df
parentfc102c87c11dfd52039326534ff831d3edd8340d
pci: imx: use vpcie-supply if defined by device-tree

If vpcie-supply is defined by device-tree use that if
CONFIG_PCIE_IMX_POWER_GPIO is not defined.

Note that after this the following boards which define
CONFIG_PCIE_IMX_POWER_GPIO in their board header file as well as their
device-tree should be able to remove CONFIG_PCIE_IMX_PERST_GPIO without
consequence:
 - mx6sabresd
 - mx6sxsabresd
 - novena

Note that the ge_bx50v3 board uses CONFIG_PCIE_IMX_POWER_GPIO and does
not have vpcie-supply defined in it's pcie node in the dt thus removing
CONFIG_PCIE_IMX_POWER_GPIO globally can't be done until that board adds
vpcie-supply.

Cc: Ian Ray <ian.ray@ge.com> (maintainer:GE BX50V3 BOARD)
Cc: Sebastian Reichel <sebastian.reichel@collabora.com> (maintainer:GE BX50V3 BOARD)
Cc: Fabio Estevam <festevam@gmail.com> (maintainer:MX6SABRESD BOARD)
Cc: Marek Vasut <marex@denx.de> (maintainer:NOVENA BOARD)
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
arch/arm/include/asm/arch-mx6/sys_proto.h
drivers/pci/pcie_imx.c