tizen 2.4 release
[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 #define SYSTIMER_BASE                   (SPRD_SYSCNT_PHYS)
34
35 #define SYS_ALM                         (SYSTIMER_BASE + 0x0000)
36 #define SYS_CNT0                        (SYSTIMER_BASE + 0x0004)
37 #define SYS_CTL                         (SYSTIMER_BASE + 0x0008)
38
39 #define SYSTEM_CURRENT_CLOCK (*((volatile uint32 *)SYS_CNT0) & 0xFFFFFFFF)
40 /**----------------------------------------------------------------------------*
41 **                         Local Function Prototype                           **
42 **----------------------------------------------------------------------------*/
43
44
45 /**----------------------------------------------------------------------------*
46 **                           Function Prototype                               **
47 **----------------------------------------------------------------------------*/
48
49
50 /**----------------------------------------------------------------------------*
51 **                         Compiler Flag                                      **
52 **----------------------------------------------------------------------------*/
53 #ifdef   __cplusplus
54 }
55 #endif
56 /**---------------------------------------------------------------------------*/
57 #endif
58 // End