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----------*/
33 #define WDG_BASE (SPRD_ANA_WDG_PHYS)
34 #define WDG_LOAD_LOW (WDG_BASE + 0x00)
35 #define WDG_LOAD_HIGH (WDG_BASE + 0x04)
36 #define WDG_CTRL (WDG_BASE + 0x08)
37 #define WDG_INT_CLR (WDG_BASE + 0x0C)
38 #define WDG_INT_RAW (WDG_BASE + 0x10)
39 #define WDG_INT_MSK (WDG_BASE + 0x14)
40 #define WDG_CNT_LOW (WDG_BASE + 0x18)
41 #define WDG_CNT_HIGH (WDG_BASE + 0x1C)
42 #define WDG_LOCK (WDG_BASE + 0x20)
43 #define WDG_CNT_RD_LOW (WDG_BASE + 0x24)
44 #define WDG_CNT_RD_HIGH (WDG_BASE + 0x28)
45 #define WDG_CNT_IRQV_LOW (WDG_BASE + 0x2C)
46 #define WDG_CNT_IRQV_HIGH (WDG_BASE + 0x30)
48 #define WDG_INT_EN_BIT BIT_0
49 #define WDG_CNT_EN_BIT BIT_1
50 #define WDG_RST_EN_BIT BIT_3
53 #define WDG_INT_RST_BIT BIT_3
54 #define WDG_INT_CLEAR_BIT BIT_0
56 #define WDG_LD_BUSY_BIT BIT_4
58 #define WDG_UNLOCK_KEY 0xE551
60 /**----------------------------------------------------------------------------*
62 **----------------------------------------------------------------------------*/
67 /**---------------------------------------------------------------------------*/
68 #endif //_WATCHDOG_REG_V3_H_