tizen 2.4 release
[kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc8825 / adi_reg_v3.h
1 /******************************************************************************
2  ** File Name:    adi_reg_v3.h                                                *
3  ** Author:       Tim.Luo                                                     *
4  ** DATE:         03/03/2010                                                  *
5  ** Copyright:    2005 Spreatrum, Incoporated. All Rights Reserved.           *
6  ** Description:                                                              *
7  ******************************************************************************/
8 /******************************************************************************
9  **                   Edit    History                                         *
10  **---------------------------------------------------------------------------*
11  ** DATE          NAME            DESCRIPTION                                 *
12  ** 03/03/2010    Tim.Luo         Create.                                     *
13  ******************************************************************************/
14
15 #ifndef _ADI_REG_V3_H_
16 #define _ADI_REG_V3_H_
17 /*----------------------------------------------------------------------------*
18  **                         Dependencies                                      *
19  **-------------------------------------------------------------------------- */
20
21 /**---------------------------------------------------------------------------*
22  **                             Compiler Flag                                 *
23  **---------------------------------------------------------------------------*/
24 #ifdef   __cplusplus
25 extern   "C"
26 {
27 #endif
28 /**----------------------------------------------------------------------------*
29 **                               Micro Define                                 **
30 **----------------------------------------------------------------------------*/
31
32 ///#define  ADI_BASE            0x82000000
33 #define  ADI_BASE_ADDR          ADI_BASE
34 #define  ADI_CLK_DIV            (ADI_BASE + 0x0 )
35 #define  ADI_CTL_REG            (ADI_BASE + 0x4 )
36 #define  ADI_CHANNEL_PRI        (ADI_BASE + 0x8 )
37 #define  ADI_INT_EN             (ADI_BASE + 0xC )
38 #define  ADI_INT_RAW_STS        (ADI_BASE + 0x10)
39 #define  ADI_INT_MASK_STS       (ADI_BASE + 0x14)
40 #define  ADI_INT_CLR            (ADI_BASE_ADDR + 0x18)
41 //#define  RESERVED             (ADI_BASE_ADDR + 0x1C)
42 //#define  RESERVED             (ADI_BASE_ADDR + 0x20)
43 #define  ADI_ARM_RD_CMD         (ADI_BASE + 0x24)
44 #define  ADI_RD_DATA            (ADI_BASE + 0x28)
45 #define  ADI_FIFO_STS           (ADI_BASE + 0x2C)
46 #define  ADI_STS                (ADI_BASE + 0x30)
47 #define  ADI_REQ_STS            (ADI_BASE + 0x34)
48
49 //ADI_EIC
50 #define ADI_EIC_DATA    (ADI_BASE + 0x100)
51 #define ADI_EIC_MASK    (ADI_BASE + 0x104)
52
53 //ADI_CTL_REG
54 #define ANA_INT_STEAL_EN        BIT_0
55 #define ARM_SERCLK_EN           BIT_1
56 #define DSP_SERCLK_EN           BIT_2
57
58 //ADI_FIFO_STS
59 #define   ADI_FIFO_EMPTY        BIT_10
60 #define   ADI_FIFO_FULL         BIT_11
61
62
63
64 //ADI_CHANNEL_PRI bit define
65 #define    INT_STEAL_PRI        0
66 #define    STC_WR_PRI           2
67 #define    ARM_WR_PRI           4
68 #define    ARM_RD_PRI           6
69 #define    DSP_WR_PRI           8
70 #define    DSP_RD_PRI           10
71 #define    RFT_WR_PRI           12
72 #define    PD_WR_PRI            14
73
74 #define ANA_REG_ADDR_START      0x42000040
75 #define ANA_REG_ADDR_END        0x42000780
76
77 /**----------------------------------------------------------------------------*
78 **                             Data Prototype                                 **
79 **----------------------------------------------------------------------------*/
80
81 /**----------------------------------------------------------------------------*
82 **                         Local Function Prototype                           **
83 **----------------------------------------------------------------------------*/
84
85 /**----------------------------------------------------------------------------*
86 **                           Function Prototype                               **
87 **----------------------------------------------------------------------------*/
88
89
90 /**----------------------------------------------------------------------------*
91 **                         Compiler Flag                                      **
92 **----------------------------------------------------------------------------*/
93 #ifdef   __cplusplus
94 }
95 #endif
96 /**---------------------------------------------------------------------------*/
97
98 #endif  //_ADI_REG_V3_H_
99
100