summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-zynqmp/Makefile
diff options
context:
space:
mode:
authorMichael Tretter <m.tretter@pengutronix.de>2021-06-24 17:00:48 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-06-25 09:39:19 +0200
commit4d5b70a55c389b8f3ca85aec8d39fc480d766330 (patch)
tree864673a40dbacaf636c103d1b1f48053c41e7baa /arch/arm/mach-zynqmp/Makefile
parent30a5e60e7d23fba9c5c12ff93c022a6c236dd01f (diff)
downloadbarebox-4d5b70a55c389b8f3ca85aec8d39fc480d766330.tar.gz
barebox-4d5b70a55c389b8f3ca85aec8d39fc480d766330.tar.xz
ARM: zynqmp: set reset source
The reset reason is available in the APB register set on the ZynqMP. Read the reset reason and set the reset source accordingly. There might be multiple bits set in the APB register. Use the MSB for determining the actual reset source. Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Link: https://lore.barebox.org/20210624150054.1205422-2-m.tretter@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-zynqmp/Makefile')
-rw-r--r--arch/arm/mach-zynqmp/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-zynqmp/Makefile b/arch/arm/mach-zynqmp/Makefile
index 021efc94af..14b8a4e46b 100644
--- a/arch/arm/mach-zynqmp/Makefile
+++ b/arch/arm/mach-zynqmp/Makefile
@@ -1,2 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-or-later
obj-y += firmware-zynqmp.o
+obj-y += zynqmp.o