diff mbox series

[2/3] arm64: zynqmp: Do not define do_reset() if sysreset is enabled

Message ID 959e614a79ae4e0bf0c04aa0b8a19799fab2f002.1626188686.git.michal.simek@xilinx.com
State Accepted
Commit f1bc214b0024b8d9585d83a42999a40980728303
Delegated to: Michal Simek
Headers show
Series arm64: zynqmp: Use sysreset framework for reset and poweroff | expand

Commit Message

Michal Simek July 13, 2021, 3:04 p.m. UTC
The SPL can also be compiled with sysreset drivers just fine, so
update the condition to cater for that option.
The same change was done by commit efa1a62ad2dd ("ARM: imx8m: Do not define
do_reset() if sysreset is enabled").

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 board/xilinx/zynqmp/zynqmp.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index 18d5c515def1..38c910fa5bab 100644
--- a/board/xilinx/zynqmp/zynqmp.c
+++ b/board/xilinx/zynqmp/zynqmp.c
@@ -499,9 +499,11 @@  int dram_init(void)
 }
 #endif
 
+#if !CONFIG_IS_ENABLED(SYSRESET)
 void reset_cpu(void)
 {
 }
+#endif
 
 static u8 __maybe_unused zynqmp_get_bootmode(void)
 {