[PATCH 1/2] arm64: versal: Do not define do_reset() if sysreset is enabled

Michal Simek michal.simek at amd.com
Fri Oct 25 13:56:07 CEST 2024


If sysreset is enabled reset_cpu is defined in sysreset uclass that's why
it can't be in platform/board code.
The same change was done by commit f1bc214b0024 ("arm64: zynqmp: Do not
define do_reset() if sysreset is enabled").

Signed-off-by: Michal Simek <michal.simek at amd.com>
---

 board/xilinx/versal/board.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/board/xilinx/versal/board.c b/board/xilinx/versal/board.c
index 39474674cca2..27c1cfc6558a 100644
--- a/board/xilinx/versal/board.c
+++ b/board/xilinx/versal/board.c
@@ -301,9 +301,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)
-- 
2.43.0



More information about the U-Boot mailing list