]> git.dujemihanovic.xyz Git - u-boot.git/commit
pci: Make Rockchip PCIe voltage regulators optional
authorMark Kettenis <kettenis@openbsd.org>
Sun, 24 May 2020 20:32:51 +0000 (22:32 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 29 May 2020 09:59:49 +0000 (17:59 +0800)
commitdbc5e2860400fb826e5e49bb595c5b7cc2dcc827
tree83b49e6bb02c703e495602d60cfb7ce846900534
parent7e01363df32c7fafde97670fff41be9e615bb3be
pci: Make Rockchip PCIe voltage regulators optional

The vpcie*-supply properties are optional and these are absent on
boards like the ROCKPro64 and Firefly RK3399 where the voltage is
supplied by always-on regulators that are already enabled upon
boot.  Make these regulators optional and properly check their
presence before attempting to enable them.

Makes PCIe work on un U-Boot on the boards mentioned above.

Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
drivers/pci/pcie_rockchip.c