aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2021-07-13 16:39:26 +0200
committerMichal Simek <michal.simek@xilinx.com>2021-07-26 09:18:45 +0200
commitf1bc214b0024b8d9585d83a42999a40980728303 (patch)
treec98b349db91ac69ba25716931053b7592fa9d903
parentbfc05d7e2af334c5907c38a94eddb18b5e92faaf (diff)
downloadu-boot-f1bc214b0024b8d9585d83a42999a40980728303.zip
u-boot-f1bc214b0024b8d9585d83a42999a40980728303.tar.gz
u-boot-f1bc214b0024b8d9585d83a42999a40980728303.tar.bz2
arm64: zynqmp: Do not define do_reset() if sysreset is enabled
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>
-rw-r--r--board/xilinx/zynqmp/zynqmp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index 18d5c51..38c910f 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)
{