km/common: fix for CPUWD reset reason
[oweals/u-boot.git] / board / keymile / common / qrio.c
index 0641ffa8b27a853737df2a41e0cd031f716d2e9e..0cb33663aaa899a7031a16dd4fee6090c062b8d3 100644 (file)
@@ -199,10 +199,9 @@ void qrio_cpuwd_flag(bool flag)
 #define REASON0_KBRST  0x02
 #define REASON0_POWUP  0x01
 #define UNIT_RESET\
-       ((REASON1_CPUWD << 8) |\
-       REASON0_POWUP | REASON0_COPRST | REASON0_KBRST |\
-       REASON0_BPRST | REASON0_SWURST | REASON0_WDRST)
-#define CORE_RESET      REASON0_SWCRST
+       (REASON0_POWUP | REASON0_COPRST | REASON0_KBRST |\
+        REASON0_BPRST | REASON0_SWURST | REASON0_WDRST)
+#define CORE_RESET      ((REASON1_CPUWD << 8) | REASON0_SWCRST)
 
 bool qrio_reason_unitrst(void)
 {