diff options
author | Michal Simek <michal.simek@xilinx.com> | 2020-03-04 08:48:16 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2020-04-06 12:52:45 +0200 |
commit | 66ef85da61b719a73754855b9707ecdd27f0bea2 (patch) | |
tree | be8f738e3e00340573ef3560c1927f753ec73e07 /board/xilinx | |
parent | 36cd899c0cf9b985748aed7a83121b81c232af4f (diff) | |
download | u-boot-66ef85da61b719a73754855b9707ecdd27f0bea2.tar.gz u-boot-66ef85da61b719a73754855b9707ecdd27f0bea2.tar.bz2 u-boot-66ef85da61b719a73754855b9707ecdd27f0bea2.zip |
arm64: zynqmp: Check firmware node when driver is enabled
ZynqMP mini configurations works without PMU firmware that's why there is
no reason to enable the driver and check if it was probed properly.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board/xilinx')
-rw-r--r-- | board/xilinx/zynqmp/zynqmp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index ba1a126fbf..c6c55caa1c 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -341,11 +341,13 @@ static int multi_boot(void) int board_init(void) { +#if defined(CONFIG_ZYNQMP_FIRMWARE) struct udevice *dev; uclass_get_device_by_name(UCLASS_FIRMWARE, "zynqmp-power", &dev); if (!dev) panic("PMU Firmware device not found - Enable it"); +#endif #if defined(CONFIG_SPL_BUILD) /* Check *at build time* if the filename is an non-empty string */ |