[PATCH] arm64: zynqmp: Check firmware node when driver is enabled

Michal Simek monstr at monstr.eu
Mon Apr 6 13:02:42 CEST 2020


st 4. 3. 2020 v 8:58 odesílatel Michal Simek <michal.simek at xilinx.com> napsal:
>
> 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 at xilinx.com>
> ---
>
>  board/xilinx/zynqmp/zynqmp.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
> index ba1a126fbf88..c6c55caa1ce0 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 */
> --
> 2.25.1
>

Applied.
M

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs


More information about the U-Boot mailing list