[U-Boot] [PATCH] ARM: zynq: Add function to get reboot status register value.

Moritz Fischer moritz.fischer at ettus.com
Wed Jan 27 12:22:34 CET 2016


Signed-off-by: Moritz Fischer <moritz.fischer at ettus.com>
---
Hi Michal,

   I was planning to use this in future to boot into recovery mode.
   The change is small enough I feel that we could directly take it.
   If you want to hold off until there's a user that's fine for me, too.

   Cheers,

   Moritz
---
 arch/arm/mach-zynq/slcr.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/mach-zynq/slcr.c b/arch/arm/mach-zynq/slcr.c
index 05f4099..709711a 100644
--- a/arch/arm/mach-zynq/slcr.c
+++ b/arch/arm/mach-zynq/slcr.c
@@ -166,6 +166,11 @@ u32 zynq_slcr_get_boot_mode(void)
 	return readl(&slcr_base->boot_mode);
 }
 
+u32 zynq_slcr_get_reboot_status(void)
+{
+	return readl(&slcr_base->reboot_status);
+}
+
 u32 zynq_slcr_get_idcode(void)
 {
 	return (readl(&slcr_base->pss_idcode) & SLCR_IDCODE_MASK) >>
-- 
2.7.0



More information about the U-Boot mailing list