]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm64: versal2: Do not define do_reset() if sysreset is enabled
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Mon, 7 Jul 2025 04:06:07 +0000 (09:36 +0530)
committerMichal Simek <michal.simek@amd.com>
Tue, 8 Jul 2025 12:58:44 +0000 (14:58 +0200)
If sysreset is enabled reset_cpu is defined in sysreset uclass
that's why it can't be in platform/board code.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Link: https://lore.kernel.org/r/20250707040607.758919-3-venkatesh.abbarapu@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
board/amd/versal2/board.c

index 72967e69a84f778626e6f5e16d4304ae2db2daf5..7d91d288d2edcd1aafd86524c541bb8493c3e761 100644 (file)
@@ -365,9 +365,11 @@ int dram_init(void)
        return 0;
 }
 
+#if !CONFIG_IS_ENABLED(SYSRESET)
 void reset_cpu(void)
 {
 }
+#endif
 
 #if defined(CONFIG_ENV_IS_NOWHERE)
 enum env_location env_get_location(enum env_operation op, int prio)