tizen 2.4 release
[kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc9630 / chip_x20l / __regs_mm_ahb_rf.h
1 /*\r
2  * Copyright (C) 2014-2015 Spreadtrum Communications Inc.\r
3  *\r
4  * This file is dual-licensed: you can use it either under the terms\r
5  * of the GPL or the X11 license, at your option. Note that this dual\r
6  * licensing only applies to this file, and not this project as a\r
7  * whole.\r
8  *\r
9  */\r
10 \r
11 #ifndef __H_REGS_MM_AHB_RF_HEADFILE_H__\r
12 #define __H_REGS_MM_AHB_RF_HEADFILE_H__ __FILE__\r
13 \r
14 #define REGS_MM_AHB_RF\r
15 \r
16 /* registers definitions for MM_AHB_RF */\r
17 #define REG_MM_AHB_RF_AHB_EB                              SCI_ADDR(REGS_MM_AHB_BASE, 0x0000)\r
18 #define REG_MM_AHB_RF_AHB_RST                             SCI_ADDR(REGS_MM_AHB_BASE, 0x0004)\r
19 #define REG_MM_AHB_RF_GEN_CKG_CFG                         SCI_ADDR(REGS_MM_AHB_BASE, 0x0008)\r
20 #define REG_MM_AHB_RF_MIPI_CSI2_CTRL                      SCI_ADDR(REGS_MM_AHB_BASE, 0x000C)\r
21 #define REG_MM_AHB_RF_MM_QOS_CFG                          SCI_ADDR(REGS_MM_AHB_BASE, 0x0010)\r
22 \r
23 \r
24 \r
25 /* bits definitions for register REG_MM_AHB_RF_AHB_EB */\r
26 #define BIT_MMU_EB                                        ( BIT(7) )\r
27 #define BIT_CKG_EB                                        ( BIT(6) )\r
28 #define BIT_JPG_EB                                        ( BIT(5) )\r
29 #define BIT_CSI_EB                                        ( BIT(4) )\r
30 #define BIT_VSP_EB                                        ( BIT(3) )\r
31 #define BIT_ISP_EB                                        ( BIT(2) )\r
32 #define BIT_CCIR_EB                                       ( BIT(1) )\r
33 #define BIT_DCAM_EB                                       ( BIT(0) )\r
34 \r
35 /* bits definitions for register REG_MM_AHB_RF_AHB_RST */\r
36 #define BIT_MMU_SOFT_RST                                  ( BIT(14) )\r
37 #define BIT_CKG_SOFT_RST                                  ( BIT(13) )\r
38 #define BIT_MM_MTX_SOFT_RST                               ( BIT(12) )\r
39 #define BIT_OR1200_SOFT_RST                               ( BIT(11) )\r
40 #define BIT_ROT_SOFT_RST                                  ( BIT(10) )\r
41 #define BIT_CAM2_SOFT_RST                                 ( BIT(9) )\r
42 #define BIT_CAM1_SOFT_RST                                 ( BIT(8) )\r
43 #define BIT_CAM0_SOFT_RST                                 ( BIT(7) )\r
44 #define BIT_JPG_SOFT_RST                                  ( BIT(6) )\r
45 #define BIT_CSI_SOFT_RST                                  ( BIT(5) )\r
46 #define BIT_VSP_SOFT_RST                                  ( BIT(4) )\r
47 #define BIT_ISP_CFG_SOFT_RST                              ( BIT(3) )\r
48 #define BIT_ISP_LOG_SOFT_RST                              ( BIT(2) )\r
49 #define BIT_CCIR_SOFT_RST                                 ( BIT(1) )\r
50 #define BIT_DCAM_SOFT_RST                                 ( BIT(0) )\r
51 \r
52 /* bits definitions for register REG_MM_AHB_RF_GEN_CKG_CFG */\r
53 #define BIT_MM_MTX_AXI_CKG_EN                             ( BIT(8) )\r
54 #define BIT_MM_AXI_CKG_EN                                 ( BIT(7) )\r
55 #define BIT_JPG_AXI_CKG_EN                                ( BIT(6) )\r
56 #define BIT_VSP_AXI_CKG_EN                                ( BIT(5) )\r
57 #define BIT_ISP_AXI_CKG_EN                                ( BIT(4) )\r
58 #define BIT_DCAM_AXI_CKG_EN                               ( BIT(3) )\r
59 #define BIT_SENSOR_CKG_EN                                 ( BIT(2) )\r
60 #define BIT_MIPI_CSI_CKG_EN                               ( BIT(1) )\r
61 #define BIT_CPHY_CFG_CKG_EN                               ( BIT(0) )\r
62 \r
63 /* bits definitions for register REG_MM_AHB_RF_MIPI_CSI2_CTRL */\r
64 #define BITS_MIPI_CPHY_SAMPLE_SEL(_X_)                    ( (_X_) << 3 & (BIT(3)|BIT(4)) )\r
65 #define BIT_MIPI_CPHY_SYNC_MODE                           ( BIT(2) )\r
66 #define BIT_MIPI_CPHY_TEST_CTL                            ( BIT(1) )\r
67 #define BIT_MIPI_CPHY_SEL                                 ( BIT(0) )\r
68 \r
69 /* bits definitions for register REG_MM_AHB_RF_MM_QOS_CFG */\r
70 #define BITS_QOS_R_DCAM(_X_)                              ( (_X_) << 28 & (BIT(28)|BIT(29)|BIT(30)|BIT(31)) )\r
71 #define BITS_QOS_W_DCAM(_X_)                              ( (_X_) << 24 & (BIT(24)|BIT(25)|BIT(26)|BIT(27)) )\r
72 #define BITS_QOS_R_JPG(_X_)                               ( (_X_) << 20 & (BIT(20)|BIT(21)|BIT(22)|BIT(23)) )\r
73 #define BITS_QOS_W_JPG(_X_)                               ( (_X_) << 16 & (BIT(16)|BIT(17)|BIT(18)|BIT(19)) )\r
74 #define BITS_QOS_R_ISP(_X_)                               ( (_X_) << 12 & (BIT(12)|BIT(13)|BIT(14)|BIT(15)) )\r
75 #define BITS_QOS_W_ISP(_X_)                               ( (_X_) << 8 & (BIT(8)|BIT(9)|BIT(10)|BIT(11)) )\r
76 #define BITS_QOS_R_VSP(_X_)                               ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) )\r
77 #define BITS_QOS_W_VSP(_X_)                               ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) )\r
78 \r
79 #endif\r