#define RSTC_BASE (0xfffffd00)\r
\r
#define RSTC_CONTROL REG(RSTC_BASE+0x00)\r
+#define RSTC_STATUS REG(RSTC_BASE+0x04)\r
\r
#define RST_CONTROL_KEY (0xa5<<24)\r
#define RST_CONTROL_PROCESSOR_RESET (1<<0)\r
+#define RST_STATUS_TYPE_MASK (7<<8)\r
+#define RST_STATUS_TYPE_POWERUP (0<<8)\r
+#define RST_STATUS_TYPE_WATCHDOG (2<<8)\r
+#define RST_STATUS_TYPE_SOFTWARE (3<<8)\r
+#define RST_STATUS_TYPE_USER (4<<8)\r
+#define RST_STATUS_TYPE_BROWNOUT (5<<8)\r
+\r
\r
//-------------\r
// PWM Controller\r