tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-tiger / 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 #define SYS_ALM                         (SYSTIMER_BASE + 0x0000)
32 #define SYS_CNT0                        (SYSTIMER_BASE + 0x0004)
33 #define SYS_CTL                         (SYSTIMER_BASE + 0x0008)
34
35 #define SYSTEM_CURRENT_CLOCK (*((volatile uint32 *)SYS_CNT0) & 0xFFFFFFFF)
36 /**----------------------------------------------------------------------------*
37 **                         Local Function Prototype                           **
38 **----------------------------------------------------------------------------*/
39
40
41 /**----------------------------------------------------------------------------*
42 **                           Function Prototype                               **
43 **----------------------------------------------------------------------------*/
44
45
46 /**----------------------------------------------------------------------------*
47 **                         Compiler Flag                                      **
48 **----------------------------------------------------------------------------*/
49 #ifdef   __cplusplus
50 }
51 #endif
52 /**---------------------------------------------------------------------------*/
53 #endif
54 // End