tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc8830 / chip_x35 / sprd_reg_mm_ahb.h
1 /*
2  * Copyright (C) 2014-2015 Spreadtrum Communications Inc.
3  *
4  * This file is dual-licensed: you can use it either under the terms
5  * of the GPL or the X11 license, at your option. Note that this dual
6  * licensing only applies to this file, and not this project as a
7  * whole.
8  *
9  */
10
11 #ifndef __REGS_MM_AHB_H__
12 #define __REGS_MM_AHB_H__
13
14 #define REGS_MM_AHB
15
16 /* registers definitions for controller REGS_MM_AHB */
17 #define REG_MM_AHB_AHB_EB               SCI_ADDR(REGS_MM_AHB_BASE, 0x0000)
18 #define REG_MM_AHB_AHB_RST              SCI_ADDR(REGS_MM_AHB_BASE, 0x0004)
19 #define REG_MM_AHB_GEN_CKG_CFG          SCI_ADDR(REGS_MM_AHB_BASE, 0x0008)
20
21 /* bits definitions for register REG_MM_AHB_AHB_EB */
22 #define BIT_MM_CKG_EB                   ( BIT(6) )
23 #define BIT_JPG_EB                      ( BIT(5) )
24 #define BIT_CSI_EB                      ( BIT(4) )
25 #define BIT_VSP_EB                      ( BIT(3) )
26 #define BIT_ISP_EB                      ( BIT(2) )
27 #define BIT_CCIR_EB                     ( BIT(1) )
28 #define BIT_DCAM_EB                     ( BIT(0) )
29
30 /* bits definitions for register REG_MM_AHB_AHB_RST */
31 #define BIT_MM_CKG_SOFT_RST             ( BIT(13) )
32 #define BIT_MM_MTX_SOFT_RST             ( BIT(12) )
33 #define BIT_OR1200_SOFT_RST             ( BIT(11) )
34 #define BIT_ROT_SOFT_RST                ( BIT(10) )
35 #define BIT_CAM2_SOFT_RST               ( BIT(9) )
36 #define BIT_CAM1_SOFT_RST               ( BIT(8) )
37 #define BIT_CAM0_SOFT_RST               ( BIT(7) )
38 #define BIT_JPG_SOFT_RST                ( BIT(6) )
39 #define BIT_CSI_SOFT_RST                ( BIT(5) )
40 #define BIT_VSP_SOFT_RST                ( BIT(4) )
41 #define BIT_ISP_CFG_SOFT_RST            ( BIT(3) )
42 #define BIT_ISP_LOG_SOFT_RST            ( BIT(2) )
43 #define BIT_CCIR_SOFT_RST               ( BIT(1) )
44 #define BIT_DCAM_SOFT_RST               ( BIT(0) )
45
46 /* bits definitions for register REG_MM_AHB_GEN_CKG_CFG */
47 #define BIT_MM_MTX_AXI_CKG_EN           ( BIT(8) )
48 #define BIT_MM_AXI_CKG_EN               ( BIT(7) )
49 #define BIT_JPG_AXI_CKG_EN              ( BIT(6) )
50 #define BIT_VSP_AXI_CKG_EN              ( BIT(5) )
51 #define BIT_ISP_AXI_CKG_EN              ( BIT(4) )
52 #define BIT_DCAM_AXI_CKG_EN             ( BIT(3) )
53 #define BIT_SENSOR_CKG_EN               ( BIT(2) )
54 #define BIT_MIPI_CSI_CKG_EN             ( BIT(1) )
55 #define BIT_CPHY_CFG_CKG_EN             ( BIT(0) )
56
57 /* vars definitions for controller REGS_MM_AHB */
58
59 #endif //__REGS_MM_AHB_H__