summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@amd.com>2024-01-05 10:55:51 +0100
committerMichal Simek <michal.simek@amd.com>2024-01-10 09:17:41 +0100
commita93e09f058d67ea0254d9ddd6eb1e9b98e349531 (patch)
treeae6b445ea2b5f2b655c48f3c6a1eaf22042d6e29
parente5d9df95713c5378aeec79f93410174a5116d923 (diff)
arm64: zynqmp: Add support for new power-management node name
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@amd.com> Link: https://lore.kernel.org/r/967aa76f9f72604c874b580476aa85f5260ccd65.1704448544.git.michal.simek@amd.com
-rw-r--r--board/xilinx/zynqmp/zynqmp.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index e3700f076bc..9f500907202 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)