tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc9630 / common.h
1 /******************************************************************************
2  ** File Name:    common.h                                                    *
3  ** Author:       Daniel.Ding                                                 *
4  ** DATE:         3/9/2005                                                    *
5  ** Copyright:    2005 Spreatrum, Incoporated. All Rights Reserved.           *
6  ** Description:                                                              *
7  ******************************************************************************/
8 /******************************************************************************
9  **                   Edit    History                                         *
10  **---------------------------------------------------------------------------*
11  ** DATE          NAME            DESCRIPTION                                 *
12  ** 9/1/2003      Daniel.Ding     Create.                                     *
13  ******************************************************************************/
14 #ifndef _COMMON_H_
15 #define _COMMON_H_
16 /*----------------------------------------------------------------------------*
17  **                         Dependencies                                      *
18  **-------------------------------------------------------------------------- */
19
20 //#include "stdio.h"
21 #include "stdarg.h"
22 #include "linux/string.h"
23 #include "sci_types.h"
24 #include "sc_fdl_reg.h"
25 /**---------------------------------------------------------------------------*
26  **                             Compiler Flag                                 *
27  **---------------------------------------------------------------------------*/
28 #ifdef   __cplusplus
29 extern   "C"
30 {
31 #endif
32 /**----------------------------------------------------------------------------*
33 **                               Micro Define                                 **
34 **----------------------------------------------------------------------------*/
35 #define ENABLE   1
36 #define DISABLE  0
37
38 //#define REG32(x)                                    (*((volatile uint32 *)(x)))
39 /*
40     Bit define
41 */
42 #define BIT_0               0x00000001
43 #define BIT_1               0x00000002
44 #define BIT_2               0x00000004
45 #define BIT_3               0x00000008
46 #define BIT_4               0x00000010
47 #define BIT_5               0x00000020
48 #define BIT_6               0x00000040
49 #define BIT_7               0x00000080
50 #define BIT_8               0x00000100
51 #define BIT_9               0x00000200
52 #define BIT_10              0x00000400
53 #define BIT_11              0x00000800
54 #define BIT_12              0x00001000
55 #define BIT_13              0x00002000
56 #define BIT_14              0x00004000
57 #define BIT_15              0x00008000
58 #define BIT_16              0x00010000
59 #define BIT_17              0x00020000
60 #define BIT_18              0x00040000
61 #define BIT_19              0x00080000
62 #define BIT_20              0x00100000
63 #define BIT_21              0x00200000
64 #define BIT_22              0x00400000
65 #define BIT_23              0x00800000
66 #define BIT_24              0x01000000
67 #define BIT_25              0x02000000
68 #define BIT_26              0x04000000
69 #define BIT_27              0x08000000
70 #define BIT_28              0x10000000
71 #define BIT_29              0x20000000
72 #define BIT_30              0x40000000
73 #define BIT_31              0x80000000
74 /**----------------------------------------------------------------------------*
75 **                             Data Prototype                                 **
76 **----------------------------------------------------------------------------*/
77
78 /**----------------------------------------------------------------------------*
79 **                         Local Function Prototype                           **
80 **----------------------------------------------------------------------------*/
81
82 /**----------------------------------------------------------------------------*
83 **                           Function Prototype                               **
84 **----------------------------------------------------------------------------*/
85
86 /**----------------------------------------------------------------------------*
87 **                         Compiler Flag                                      **
88 **----------------------------------------------------------------------------*/
89 #ifdef   __cplusplus
90 }
91 #endif
92 /**---------------------------------------------------------------------------*/
93 #endif
94 // End
95