]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
clear the reset status flags in reset_cpu()
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 24 Jun 2013 09:04:00 +0000 (11:04 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 24 Jun 2013 09:04:00 +0000 (11:04 +0200)
arch/arm/cpu/armv7/omap-common/reset.c

index 587bb47745a14eed7fcf42e8f648329b7ff70915..e20ecbe3eabb6509a27ff17f87bc068c6e2ff370 100644 (file)
@@ -25,6 +25,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  * MA 02111-1307 USA
  */
+#include <common.h>
 #include <config.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
@@ -32,6 +33,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);
 }