1 /******************************************************************************
2 ** File Name: adi_reg_v3.h *
5 ** Copyright: 2005 Spreatrum, Incoporated. All Rights Reserved. *
7 ******************************************************************************/
8 /******************************************************************************
10 **---------------------------------------------------------------------------*
11 ** DATE NAME DESCRIPTION *
12 ** 03/03/2010 Tim.Luo Create. *
13 ******************************************************************************/
15 #ifndef _ADI_REG_V3_H_
16 #define _ADI_REG_V3_H_
17 /*----------------------------------------------------------------------------*
19 **-------------------------------------------------------------------------- */
21 /**---------------------------------------------------------------------------*
23 **---------------------------------------------------------------------------*/
28 /**----------------------------------------------------------------------------*
30 **----------------------------------------------------------------------------*/
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)
50 #define ANA_INT_STEAL_EN BIT_0
51 #define ARM_SERCLK_EN BIT_1
52 #define DSP_SERCLK_EN BIT_2
55 #define ADI_FIFO_EMPTY BIT_10
56 #define ADI_FIFO_FULL BIT_11
60 //ADI_CHANNEL_PRI bit define
61 #define INT_STEAL_PRI 0
70 #define ANA_REG_ADDR_START 0x82000040
71 #define ANA_REG_ADDR_END 0x82000780
73 /**----------------------------------------------------------------------------*
75 **----------------------------------------------------------------------------*/
77 /**----------------------------------------------------------------------------*
78 ** Local Function Prototype **
79 **----------------------------------------------------------------------------*/
81 /**----------------------------------------------------------------------------*
82 ** Function Prototype **
83 **----------------------------------------------------------------------------*/
86 /**----------------------------------------------------------------------------*
88 **----------------------------------------------------------------------------*/
92 /**---------------------------------------------------------------------------*/
94 #endif //_ADI_REG_V3_H_