arm: sc8830: fix redefined macro warnings
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc8830 / sys_timer_reg_v0.h
1 /******************************************************************************
2  ** File Name:    sys_timer_reg_v0.h                                            *
3  ** Author:       Steve.Zhan                                                 *
4  ** DATE:         06/05/2010                                                  *
5  ** Copyright:    2010 Spreatrum, Incoporated. All Rights Reserved.           *
6  ** Description:                                                              *
7  ******************************************************************************/
8 /******************************************************************************
9  **                   Edit    History                                         *
10  **---------------------------------------------------------------------------*
11  ** DATE          NAME            DESCRIPTION                                 *
12  ** 06/12/2010    hao.liu    Create.                                     *
13  ******************************************************************************/
14 #ifndef _SYS_TIMER_REG_V0_H_
15 #define _SYS_TIMER_REG_V0_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 /*----------System Count----------*/
31 #include "sprd_reg.h"
32
33 #ifdef SYSTIMER_BASE
34 #undef SYSTIMER_BASE
35 #endif
36 #define SYSTIMER_BASE                   (SPRD_SYSCNT_PHYS)
37
38 #define SYS_ALM                         (SYSTIMER_BASE + 0x0000)
39 #define SYS_CNT0                        (SYSTIMER_BASE + 0x0004)
40 #define SYS_CTL                         (SYSTIMER_BASE + 0x0008)
41
42 #define SYSTEM_CURRENT_CLOCK (*((volatile uint32 *)SYS_CNT0) & 0xFFFFFFFF)
43 /**----------------------------------------------------------------------------*
44 **                         Local Function Prototype                           **
45 **----------------------------------------------------------------------------*/
46
47
48 /**----------------------------------------------------------------------------*
49 **                           Function Prototype                               **
50 **----------------------------------------------------------------------------*/
51
52
53 /**----------------------------------------------------------------------------*
54 **                         Compiler Flag                                      **
55 **----------------------------------------------------------------------------*/
56 #ifdef   __cplusplus
57 }
58 #endif
59 /**---------------------------------------------------------------------------*/
60 #endif
61 // End