tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc8800g / busmonitor_reg_v3.h
1 /******************************************************************************
2  ** File Name:      busmonitor_reg_v0.h                                                 *
3  ** Author:         liuhao                                                   *
4  ** DATE:           07/29/2010                                                *
5  ** Copyright:      2010 Spreatrum, Incoporated. All Rights Reserved.         *
6  ** Description:    This file define the basic hw interfaces of I2C device.      *
7  ******************************************************************************
8
9  ******************************************************************************
10  **                        Edit History                                       *
11  ** ------------------------------------------------------------------------- *
12  ** DATE           NAME             DESCRIPTION                               *
13  ** 07/29/2010     liuhao     Create.                                   *
14  ******************************************************************************/
15 #ifndef _BUSMONITOR_REG_V3_H_
16 #define _BUSMONITOR_REG_V3_H_
17 /*----------------------------------------------------------------------------*
18  **                         Dependencies                                      *
19  **------------------------------------------------------------------------- */
20
21 /**---------------------------------------------------------------------------*
22  **                             Compiler Flag                                 *
23  **--------------------------------------------------------------------------*/
24 #ifdef   __cplusplus
25 extern   "C"
26 {
27 #endif
28
29 /**---------------------------------------------------------------------------*
30 **                               Micro Define                                **
31 **---------------------------------------------------------------------------*/
32 #define BM_ACCESS_BURST_Single      0
33 #define BM_ACCESS_BURST_INCR        1
34 #define BM_ACCESS_BURST_WRAP4       2
35 #define BM_ACCESS_BURST_INCR4       3
36 #define BM_ACCESS_BURST_WRAP8       4
37 #define BM_ACCESS_BURST_INCR8       5
38 #define BM_ACCESS_BURST_WRAP16      6
39 #define BM_ACCESS_BURST_INCR16      7
40
41 #define BM_CHANEL_ARM_DATA      0
42 #define BM_CHANEL_ARM_INSTRUCTION   1
43 #define BM_CHANEL_LCDC          0
44 #define BM_CHANEL_DCAM          1
45 #define BM_CHANEL_SD_DMA_INTERNAL   0
46 #define BM_CHANEL_SD_DMA_EXTERNAL   1
47
48 #define CHN_INT(x)                      (BUS_MONx_CTL_BASE + x*0x1000 + 0x0000)
49 #define CHN_CFG(x)                      (BUS_MONx_CTL_BASE + x*0x1000 + 0x0004)
50 #define ADDR_MIN(x)                     (BUS_MONx_CTL_BASE + x*0x1000 + 0x0008)
51 #define ADDR_MAX(x)                     (BUS_MONx_CTL_BASE + x*0x1000 + 0x000c)
52 #define DATA_MIN(x)                     (BUS_MONx_CTL_BASE + x*0x1000 + 0x0010)
53 #define DATA_MAX(x)                     (BUS_MONx_CTL_BASE + x*0x1000 + 0x0014)
54 #define DATA_MASK(x)                    (BUS_MONx_CTL_BASE + x*0x1000 + 0x0018)
55 #define MATCH_ADDR(x)                   (BUS_MONx_CTL_BASE + x*0x1000 + 0x001c)
56 #define MATCH_DATA(x)                   (BUS_MONx_CTL_BASE + x*0x1000 + 0x0020)
57 #define BUSMON_CNT(x)                   (BUS_MONx_CTL_BASE + x*0x1000 + 0x0024)
58
59 typedef struct _BM_POINT_REG
60 {
61     volatile unsigned long bm_int;
62     volatile unsigned long bm_cfg;
63     volatile unsigned long bm_addr_min;
64     volatile unsigned long bm_addr_max;
65     volatile unsigned long bm_data_min;
66     volatile unsigned long bm_data_max;
67     volatile unsigned long bm_data_mask;
68     volatile unsigned long bm_addr_match;
69     volatile unsigned long bm_data_match;
70     volatile unsigned long bm_cnt;
71 } BM_POINT_REG;
72
73 /**----------------------------------------------------------------------------*
74 **                         Compiler Flag                                      **
75 **----------------------------------------------------------------------------*/
76 #ifdef   __cplusplus
77 }
78 #endif
79 /**---------------------------------------------------------------------------*/
80 #endif
81 // End