arm64: zynqmp: Check firmware node when driver is enabled
authorMichal Simek <michal.simek@xilinx.com>
Wed, 4 Mar 2020 07:48:16 +0000 (08:48 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 6 Apr 2020 10:52:45 +0000 (12:52 +0200)
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>
board/xilinx/zynqmp/zynqmp.c

index ba1a126fbf887b6b45a01190e6f87b49c33bc83b..c6c55caa1ce026340c5bc1b5f2e705dae9567cf2 100644 (file)
@@ -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 */