]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/armv7/omap-common/reset.c
merged tx6dl-devel into denx master branch
[karo-tx-uboot.git] / arch / arm / cpu / armv7 / omap-common / reset.c
index 91ad031ddd33a035ded80d3b3406132a6e096044..4145e37c3f52c96cc7e254fe9305c9d3a03bc891 100644 (file)
@@ -9,6 +9,7 @@
  *
  * SPDX-License-Identifier:    GPL-2.0+
  */
+#include <common.h>
 #include <config.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
@@ -16,6 +17,8 @@
 
 void __weak reset_cpu(unsigned long ignored)
 {
+       /* clear the reset status flags */
+       writel(readl(PRM_RSTST), PRM_RSTST);
        writel(PRM_RSTCTRL_RESET, PRM_RSTCTRL);
 }