[PATCH] arm64: zynqmp: Add support for new power-management node name
Michal Simek
michal.simek at amd.com
Mon Jan 15 10:28:57 CET 2024
On 1/5/24 10:55, Michal Simek wrote:
> zynqmp-power node is going to be renamed to power-management which should
> be generic enough. New name came from dt-binding review that's why there is
> no way around. Add support new name but also at the same time check old
> name just in case older dt binding is used.
>
> Signed-off-by: Michal Simek <michal.simek at amd.com>
> ---
>
> DT patch is available here:
> https://lore.kernel.org/all/a2f7fe30e3630c262c2773a595b7a0c8918573a0.1704359569.git.michal.simek@amd.com/
> ---
> board/xilinx/zynqmp/zynqmp.c | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
> index e3700f076bc1..9f5009072025 100644
> --- a/board/xilinx/zynqmp/zynqmp.c
> +++ b/board/xilinx/zynqmp/zynqmp.c
> @@ -156,9 +156,12 @@ 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");
> + uclass_get_device_by_name(UCLASS_FIRMWARE, "power-management", &dev);
> + if (!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)
Applied.
M
More information about the U-Boot
mailing list