tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc8810 / watchdog_reg_v3.h
1 /******************************************************************************
2  ** File Name:    watchdog_reg_v3.h                                            *
3  ** Author:       mingwei.zhang                                                 *
4  ** DATE:         06/11/2010                                                  *
5  ** Copyright:    2010 Spreatrum, Incoporated. All Rights Reserved.           *
6  ** Description:                                                              *
7  ******************************************************************************/
8 /******************************************************************************
9  **                   Edit    History                                         *
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 /*----------------------------------------------------------------------------*
17  **                         Dependencies                                      *
18  **------------------------------------------------------------------------- */
19
20 /**---------------------------------------------------------------------------*
21  **                             Compiler Flag                                 *
22  **--------------------------------------------------------------------------*/
23 #ifdef   __cplusplus
24 extern   "C"
25 {
26 #endif
27 /**---------------------------------------------------------------------------*
28 **                               Micro Define                                **
29 **---------------------------------------------------------------------------*/
30 /*----------Watchdog Timer Counter Register----------*/
31 ///
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)
42
43 #define WDG_INT_EN_BIT          BIT_0
44 #define WDG_CNT_EN_BIT          BIT_1
45
46 #define WDG_RST_EN              BIT_3
47 #define WDG_INT_CLEAR_BIT       BIT_0
48
49 #define WDG_LD_BUSY_BIT         BIT_4
50
51 #define WDG_UNLOCK_KEY          0xE551
52
53 /**----------------------------------------------------------------------------*
54 **                         Compiler Flag                                      **
55 **----------------------------------------------------------------------------*/
56
57 #ifdef   __cplusplus
58 }
59 #endif
60 /**---------------------------------------------------------------------------*/
61 #endif //_WATCHDOG_REG_V3_H_
62
63