1 /******************************************************************************
2 ** File Name: watchdog_reg_v3.h *
3 ** Author: mingwei.zhang *
5 ** Copyright: 2010 Spreatrum, Incoporated. All Rights Reserved. *
7 ******************************************************************************/
8 /******************************************************************************
10 **---------------------------------------------------------------------------*
11 ** DATE NAME DESCRIPTION *
12 ** 06/11/2010 mingwei.zhang Create. *
13 ******************************************************************************/
14 #ifndef _WATCHDOG_REG_V3_H_
15 #define _WATCHDOG_REG_V3_H_
16 /*----------------------------------------------------------------------------*
18 **------------------------------------------------------------------------- */
20 /**---------------------------------------------------------------------------*
22 **--------------------------------------------------------------------------*/
27 /**---------------------------------------------------------------------------*
29 **---------------------------------------------------------------------------*/
30 /*----------Watchdog Timer Counter Register----------*/
32 ///#define WDG_BASE 0x82000040
33 #define WDG_LOAD_LOW (WDG_BASE + 0x00)
34 #define WDG_LOAD_HIGH (WDG_BASE + 0x04)
35 #define WDG_CTRL (WDG_BASE + 0x08)
36 #define WDG_INT_CLR (WDG_BASE + 0x0C)
37 #define WDG_INT_RAW (WDG_BASE + 0x10)
38 #define WDG_INT_MSK (WDG_BASE + 0x14)
39 #define WDG_CNT_LOW (WDG_BASE + 0x18)
40 #define WDG_CNT_HIGH (WDG_BASE + 0x1C)
41 #define WDG_LOCK (WDG_BASE + 0x20)
43 #define WDG_INT_EN_BIT BIT_0
44 #define WDG_CNT_EN_BIT BIT_1
46 #define WDG_RST_EN BIT_3
47 #define WDG_INT_CLEAR_BIT BIT_0
49 #define WDG_LD_BUSY_BIT BIT_4
51 #define WDG_UNLOCK_KEY 0xE551
53 /**----------------------------------------------------------------------------*
55 **----------------------------------------------------------------------------*/
60 /**---------------------------------------------------------------------------*/
61 #endif //_WATCHDOG_REG_V3_H_