diff options
Diffstat (limited to 'include/soc/sprd/chip_x30g/__regs_mm_ahb_rf_tshark2.h')
| -rw-r--r-- | include/soc/sprd/chip_x30g/__regs_mm_ahb_rf_tshark2.h | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/include/soc/sprd/chip_x30g/__regs_mm_ahb_rf_tshark2.h b/include/soc/sprd/chip_x30g/__regs_mm_ahb_rf_tshark2.h new file mode 100644 index 00000000..db3ef54c --- /dev/null +++ b/include/soc/sprd/chip_x30g/__regs_mm_ahb_rf_tshark2.h @@ -0,0 +1,105 @@ +/* the head file modifier: ang 2015-01-21 14:37:26*/ + +/* +* Copyright (C) 2013 Spreadtrum Communications Inc. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +************************************************* +* Automatically generated C header: do not edit * +************************************************* +*/ + +#ifndef __SCI_GLB_REGS_H__ +#error "Don't include this file directly, Pls include sci_glb_regs.h" +#endif + + +#ifndef __H_REGS_MM_AHB_HEADFILE_H__ +#define __H_REGS_MM_AHB_HEADFILE_H__ __FILE__ + +#define REGS_MM_AHB + +/* registers definitions for MM_AHB */ +#define REG_MM_AHB_AHB_EB SCI_ADDR(REGS_MM_AHB_BASE, 0x0000)/*AHB_EB*/ +#define REG_MM_AHB_AHB_RST SCI_ADDR(REGS_MM_AHB_BASE, 0x0004)/*AHB_RST*/ +#define REG_MM_AHB_GEN_CKG_CFG SCI_ADDR(REGS_MM_AHB_BASE, 0x0008)/*GEN_CKG_CFG*/ +#define REG_MM_AHB_MIPI_CSI2_CTRL SCI_ADDR(REGS_MM_AHB_BASE, 0x000C)/*MIPI_CSI2_CTRL*/ +#define REG_MM_AHB_MM_QOS_CFG SCI_ADDR(REGS_MM_AHB_BASE, 0x0010)/*MM_QOS_CFG*/ +#define REG_MM_AHB_MM_QOS_CFG_1 SCI_ADDR(REGS_MM_AHB_BASE, 0x0014)/*MM_QOS_CFG_1*/ + + + +/* bits definitions for register REG_MM_AHB_AHB_EB */ +#define BIT_VPP_EB (BIT(8)) +#define BIT_MMU_EB (BIT(7)) +#define BIT_MM_CKG_EB (BIT(6)) +#define BIT_JPG_EB (BIT(5)) +#define BIT_CSI_EB (BIT(4)) +#define BIT_VSP_EB (BIT(3)) +#define BIT_ISP_EB (BIT(2)) +#define BIT_CCIR_EB (BIT(1)) +#define BIT_DCAM_EB (BIT(0)) + +/* bits definitions for register REG_MM_AHB_AHB_RST */ +#define BIT_VPP_SOFT_RST (BIT(15)) +#define BIT_MMU_SOFT_RST (BIT(14)) +#define BIT_MM_CKG_SOFT_RST (BIT(13)) +#define BIT_MM_MTX_SOFT_RST (BIT(12)) +#define BIT_OR1200_SOFT_RST (BIT(11)) +#define BIT_ROT_SOFT_RST (BIT(10)) +#define BIT_CAM2_SOFT_RST (BIT(9)) +#define BIT_CAM1_SOFT_RST (BIT(8)) +#define BIT_CAM0_SOFT_RST (BIT(7)) +#define BIT_JPG_SOFT_RST (BIT(6)) +#define BIT_CSI_SOFT_RST (BIT(5)) +#define BIT_VSP_SOFT_RST (BIT(4)) +#define BIT_ISP_CFG_SOFT_RST (BIT(3)) +#define BIT_ISP_LOG_SOFT_RST (BIT(2)) +#define BIT_CCIR_SOFT_RST (BIT(1)) +#define BIT_DCAM_SOFT_RST (BIT(0)) + +/* bits definitions for register REG_MM_AHB_GEN_CKG_CFG */ +#define BIT_VPP_AXI_CKG_EN (BIT(9)) +#define BIT_MM_MTX_AXI_CKG_EN (BIT(8)) +#define BIT_MM_AXI_CKG_EN (BIT(7)) +#define BIT_JPG_AXI_CKG_EN (BIT(6)) +#define BIT_VSP_AXI_CKG_EN (BIT(5)) +#define BIT_ISP_AXI_CKG_EN (BIT(4)) +#define BIT_DCAM_AXI_CKG_EN (BIT(3)) +#define BIT_SENSOR_CKG_EN (BIT(2)) +#define BIT_MIPI_CSI_CKG_EN (BIT(1)) +#define BIT_CPHY_CFG_CKG_EN (BIT(0)) + +/* bits definitions for register REG_MM_AHB_MIPI_CSI2_CTRL */ +#define BIT_MIPI_CPHY_SEL_AB_C (BIT(5)) +#define BITS_MIPI_CPHY_SAMPLE_SEL(_X_) ((_X_) << 3 & (BIT(3)|BIT(4))) +#define BIT_MIPI_CPHY_SYNC_MODE (BIT(2)) +#define BIT_MIPI_CPHY_TEST_CTL (BIT(1)) +#define BIT_MIPI_CPHY_SEL (BIT(0)) + +/* bits definitions for register REG_MM_AHB_MM_QOS_CFG */ +#define BITS_QOS_R_DCAM(_X_) ((_X_) << 28 & (BIT(28)|BIT(29)|BIT(30)|BIT(31))) +#define BITS_QOS_W_DCAM(_X_) ((_X_) << 24 & (BIT(24)|BIT(25)|BIT(26)|BIT(27))) +#define BITS_QOS_R_JPG(_X_) ((_X_) << 20 & (BIT(20)|BIT(21)|BIT(22)|BIT(23))) +#define BITS_QOS_W_JPG(_X_) ((_X_) << 16 & (BIT(16)|BIT(17)|BIT(18)|BIT(19))) +#define BITS_QOS_R_ISP(_X_) ((_X_) << 12 & (BIT(12)|BIT(13)|BIT(14)|BIT(15))) +#define BITS_QOS_W_ISP(_X_) ((_X_) << 8 & (BIT(8)|BIT(9)|BIT(10)|BIT(11))) +#define BITS_QOS_R_VSP(_X_) ((_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7))) +#define BITS_QOS_W_VSP(_X_) ((_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3))) + +/* bits definitions for register REG_MM_AHB_MM_QOS_CFG_1 */ +#define BITS_QOS_R_VPP(_X_) ((_X_) << 12 & (BIT(12)|BIT(13)|BIT(14)|BIT(15))) +#define BITS_QOS_W_VPP(_X_) ((_X_) << 8 & (BIT(8)|BIT(9)|BIT(10)|BIT(11))) +#define BITS_QOS_R_CODEC(_X_) ((_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7))) +#define BITS_QOS_W_CODEC(_X_) ((_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3))) + +#endif |
