arm: sc8830: fix redefined macro warnings
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc8830 / 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 #include "sprd_reg.h"
32
33 #ifdef WDG_BASE
34 #undef WDG_BASE
35 #endif
36 #define WDG_BASE            (SPRD_ANA_WDG_PHYS)
37 #define WDG_LOAD_LOW        (WDG_BASE + 0x00)
38 #define WDG_LOAD_HIGH       (WDG_BASE + 0x04)
39 #define WDG_CTRL            (WDG_BASE + 0x08)
40 #define WDG_INT_CLR         (WDG_BASE + 0x0C)
41 #define WDG_INT_RAW         (WDG_BASE + 0x10)
42 #define WDG_INT_MSK         (WDG_BASE + 0x14)
43 #define WDG_CNT_LOW         (WDG_BASE + 0x18)
44 #define WDG_CNT_HIGH        (WDG_BASE + 0x1C)
45 #define WDG_LOCK            (WDG_BASE + 0x20)
46 #define WDG_CNT_RD_LOW      (WDG_BASE + 0x24)
47 #define WDG_CNT_RD_HIGH     (WDG_BASE + 0x28)
48 #define WDG_CNT_IRQV_LOW    (WDG_BASE + 0x2C)
49 #define WDG_CNT_IRQV_HIGH   (WDG_BASE + 0x30)
50
51 #define WDG_INT_EN_BIT          BIT_0
52 #define WDG_CNT_EN_BIT          BIT_1
53 #define WDG_RST_EN_BIT          BIT_3
54
55
56 #define WDG_INT_RST_BIT           BIT_3
57 #define WDG_INT_CLEAR_BIT       BIT_0
58
59 #define WDG_LD_BUSY_BIT         BIT_4
60
61 #define WDG_UNLOCK_KEY          0xE551
62
63 /**----------------------------------------------------------------------------*
64 **                         Compiler Flag                                      **
65 **----------------------------------------------------------------------------*/
66
67 #ifdef   __cplusplus
68 }
69 #endif
70 /**---------------------------------------------------------------------------*/
71 #endif //_WATCHDOG_REG_V3_H_
72
73