bb5b1e1ddd17df92d00ea7c6bcee720afd85b086
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc8825 / regs_adi.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 #include <asm/arch/bits.h>
19 #include <asm/arch/regs_global.h>
20
21 #define SPRD_ADI_BASE   0x42000000
22 #define SPRD_ADI_PHYS    0x42000000
23
24 #define  ADI_BASE            0x42000000
25
26 #define  ADI_BASE_ADDR          ADI_BASE
27 #define  ADI_CLK_DIV            (ADI_BASE + 0x0 )
28 #define  ADI_CTL_REG            (ADI_BASE + 0x4 )
29 #define  ADI_CHANNEL_PRI        (ADI_BASE + 0x8 )
30 #define  ADI_INT_EN             (ADI_BASE + 0xC )
31 #define  ADI_INT_RAW_STS        (ADI_BASE + 0x10)
32 #define  ADI_INT_MASK_STS       (ADI_BASE + 0x14)
33 #define  ADI_INT_CLR            (ADI_BASE_ADDR + 0x18)
34 //#define  RESERVED             (ADI_BASE_ADDR + 0x1C)
35 //#define  RESERVED             (ADI_BASE_ADDR + 0x20)
36 #define  ADI_ARM_RD_CMD         (ADI_BASE + 0x24)
37 #define  ADI_RD_DATA            (ADI_BASE + 0x28)
38 #define  ADI_FIFO_STS           (ADI_BASE + 0x2C)
39 #define  ADI_STS                (ADI_BASE + 0x30)
40 #define  ADI_REQ_STS            (ADI_BASE + 0x34)
41
42 //ADI_CTL_REG
43 #define ANA_INT_STEAL_EN        BIT_0
44 #define ARM_SERCLK_EN           BIT_1
45 #define DSP_SERCLK_EN           BIT_2
46
47 //ADI_FIFO_STS
48 #define   ADI_FIFO_EMPTY        BIT_10
49 #define   ADI_FIFO_FULL         BIT_11
50
51
52
53 //ADI_CHANNEL_PRI bit define
54 #define    INT_STEAL_PRI        0
55 #define    STC_WR_PRI           2
56 #define    ARM_WR_PRI           4
57 #define    ARM_RD_PRI           6
58 #define    DSP_WR_PRI           8
59 #define    DSP_RD_PRI           10
60 #define    RFT_WR_PRI           12
61 #define    PD_WR_PRI            14
62
63 #define ANA_REG_ADDR_START      (ADI_BASE + 0x40) //0x82000040
64 #define ANA_REG_ADDR_END        (ADI_BASE + 0x800) //0x82000800
65
66 #endif  //_ADI_REG_V3_H_
67
68