1 /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ 2 /* 3 * Rockchip ISP1 Driver - Registers header 4 * 5 * Copyright (C) 2017 Rockchip Electronics Co., Ltd. 6 */ 7 8 #ifndef _RKISP1_REGS_H 9 #define _RKISP1_REGS_H 10 11 /* ISP_CTRL */ 12 #define RKISP1_CIF_ISP_CTRL_ISP_ENABLE BIT(0) 13 #define RKISP1_CIF_ISP_CTRL_ISP_MODE_RAW_PICT (0 << 1) 14 #define RKISP1_CIF_ISP_CTRL_ISP_MODE_ITU656 BIT(1) 15 #define RKISP1_CIF_ISP_CTRL_ISP_MODE_ITU601 (2 << 1) 16 #define RKISP1_CIF_ISP_CTRL_ISP_MODE_BAYER_ITU601 (3 << 1) 17 #define RKISP1_CIF_ISP_CTRL_ISP_MODE_DATA_MODE (4 << 1) 18 #define RKISP1_CIF_ISP_CTRL_ISP_MODE_BAYER_ITU656 (5 << 1) 19 #define RKISP1_CIF_ISP_CTRL_ISP_MODE_RAW_PICT_ITU656 (6 << 1) 20 #define RKISP1_CIF_ISP_CTRL_ISP_INFORM_ENABLE BIT(4) 21 #define RKISP1_CIF_ISP_CTRL_ISP_GAMMA_IN_ENA BIT(6) 22 #define RKISP1_CIF_ISP_CTRL_ISP_AWB_ENA BIT(7) 23 #define RKISP1_CIF_ISP_CTRL_ISP_CFG_UPD_PERMANENT BIT(8) 24 #define RKISP1_CIF_ISP_CTRL_ISP_CFG_UPD BIT(9) 25 #define RKISP1_CIF_ISP_CTRL_ISP_GEN_CFG_UPD BIT(10) 26 #define RKISP1_CIF_ISP_CTRL_ISP_GAMMA_OUT_ENA BIT(11) 27 #define RKISP1_CIF_ISP_CTRL_ISP_FLASH_MODE_ENA BIT(12) 28 #define RKISP1_CIF_ISP_CTRL_ISP_CSM_Y_FULL_ENA BIT(13) 29 #define RKISP1_CIF_ISP_CTRL_ISP_CSM_C_FULL_ENA BIT(14) 30 31 /* ISP_ACQ_PROP */ 32 #define RKISP1_CIF_ISP_ACQ_PROP_POS_EDGE BIT(0) 33 #define RKISP1_CIF_ISP_ACQ_PROP_HSYNC_LOW BIT(1) 34 #define RKISP1_CIF_ISP_ACQ_PROP_VSYNC_LOW BIT(2) 35 #define RKISP1_CIF_ISP_ACQ_PROP_BAYER_PAT_RGGB (0 << 3) 36 #define RKISP1_CIF_ISP_ACQ_PROP_BAYER_PAT_GRBG BIT(3) 37 #define RKISP1_CIF_ISP_ACQ_PROP_BAYER_PAT_GBRG (2 << 3) 38 #define RKISP1_CIF_ISP_ACQ_PROP_BAYER_PAT_BGGR (3 << 3) 39 #define RKISP1_CIF_ISP_ACQ_PROP_BAYER_PAT(pat) ((pat) << 3) 40 #define RKISP1_CIF_ISP_ACQ_PROP_YCBYCR (0 << 7) 41 #define RKISP1_CIF_ISP_ACQ_PROP_YCRYCB BIT(7) 42 #define RKISP1_CIF_ISP_ACQ_PROP_CBYCRY (2 << 7) 43 #define RKISP1_CIF_ISP_ACQ_PROP_CRYCBY (3 << 7) 44 #define RKISP1_CIF_ISP_ACQ_PROP_FIELD_SEL_ALL (0 << 9) 45 #define RKISP1_CIF_ISP_ACQ_PROP_FIELD_SEL_EVEN BIT(9) 46 #define RKISP1_CIF_ISP_ACQ_PROP_FIELD_SEL_ODD (2 << 9) 47 #define RKISP1_CIF_ISP_ACQ_PROP_IN_SEL_12B (0 << 12) 48 #define RKISP1_CIF_ISP_ACQ_PROP_IN_SEL_10B_ZERO BIT(12) 49 #define RKISP1_CIF_ISP_ACQ_PROP_IN_SEL_10B_MSB (2 << 12) 50 #define RKISP1_CIF_ISP_ACQ_PROP_IN_SEL_8B_ZERO (3 << 12) 51 #define RKISP1_CIF_ISP_ACQ_PROP_IN_SEL_8B_MSB (4 << 12) 52 53 /* VI_DPCL */ 54 #define RKISP1_CIF_VI_DPCL_DMA_JPEG (0 << 0) 55 #define RKISP1_CIF_VI_DPCL_MP_MUX_MRSZ_MI BIT(0) 56 #define RKISP1_CIF_VI_DPCL_MP_MUX_MRSZ_JPEG (2 << 0) 57 #define RKISP1_CIF_VI_DPCL_CHAN_MODE_MP BIT(2) 58 #define RKISP1_CIF_VI_DPCL_CHAN_MODE_SP (2 << 2) 59 #define RKISP1_CIF_VI_DPCL_CHAN_MODE_MPSP (3 << 2) 60 #define RKISP1_CIF_VI_DPCL_DMA_SW_SPMUX (0 << 4) 61 #define RKISP1_CIF_VI_DPCL_DMA_SW_SI BIT(4) 62 #define RKISP1_CIF_VI_DPCL_DMA_SW_IE (2 << 4) 63 #define RKISP1_CIF_VI_DPCL_DMA_SW_JPEG (3 << 4) 64 #define RKISP1_CIF_VI_DPCL_DMA_SW_ISP (4 << 4) 65 #define RKISP1_CIF_VI_DPCL_IF_SEL_PARALLEL (0 << 8) 66 #define RKISP1_CIF_VI_DPCL_IF_SEL_SMIA BIT(8) 67 #define RKISP1_CIF_VI_DPCL_IF_SEL_MIPI (2 << 8) 68 #define RKISP1_CIF_VI_DPCL_DMA_IE_MUX_DMA BIT(10) 69 #define RKISP1_CIF_VI_DPCL_DMA_SP_MUX_DMA BIT(11) 70 71 /* ISP_IMSC - ISP_MIS - ISP_RIS - ISP_ICR - ISP_ISR */ 72 #define RKISP1_CIF_ISP_OFF BIT(0) 73 #define RKISP1_CIF_ISP_FRAME BIT(1) 74 #define RKISP1_CIF_ISP_DATA_LOSS BIT(2) 75 #define RKISP1_CIF_ISP_PIC_SIZE_ERROR BIT(3) 76 #define RKISP1_CIF_ISP_AWB_DONE BIT(4) 77 #define RKISP1_CIF_ISP_FRAME_IN BIT(5) 78 #define RKISP1_CIF_ISP_V_START BIT(6) 79 #define RKISP1_CIF_ISP_H_START BIT(7) 80 #define RKISP1_CIF_ISP_FLASH_ON BIT(8) 81 #define RKISP1_CIF_ISP_FLASH_OFF BIT(9) 82 #define RKISP1_CIF_ISP_SHUTTER_ON BIT(10) 83 #define RKISP1_CIF_ISP_SHUTTER_OFF BIT(11) 84 #define RKISP1_CIF_ISP_AFM_SUM_OF BIT(12) 85 #define RKISP1_CIF_ISP_AFM_LUM_OF BIT(13) 86 #define RKISP1_CIF_ISP_AFM_FIN BIT(14) 87 #define RKISP1_CIF_ISP_HIST_MEASURE_RDY BIT(15) 88 #define RKISP1_CIF_ISP_FLASH_CAP BIT(17) 89 #define RKISP1_CIF_ISP_EXP_END BIT(18) 90 #define RKISP1_CIF_ISP_VSM_END BIT(19) 91 92 /* ISP_ERR */ 93 #define RKISP1_CIF_ISP_ERR_INFORM_SIZE BIT(0) 94 #define RKISP1_CIF_ISP_ERR_IS_SIZE BIT(1) 95 #define RKISP1_CIF_ISP_ERR_OUTFORM_SIZE BIT(2) 96 97 /* MI_CTRL */ 98 #define RKISP1_CIF_MI_CTRL_MP_ENABLE BIT(0) 99 #define RKISP1_CIF_MI_CTRL_SP_ENABLE (2 << 0) 100 #define RKISP1_CIF_MI_CTRL_JPEG_ENABLE (4 << 0) 101 #define RKISP1_CIF_MI_CTRL_RAW_ENABLE (8 << 0) 102 #define RKISP1_CIF_MI_CTRL_HFLIP BIT(4) 103 #define RKISP1_CIF_MI_CTRL_VFLIP BIT(5) 104 #define RKISP1_CIF_MI_CTRL_ROT BIT(6) 105 #define RKISP1_CIF_MI_BYTE_SWAP BIT(7) 106 #define RKISP1_CIF_MI_SP_Y_FULL_YUV2RGB BIT(8) 107 #define RKISP1_CIF_MI_SP_CBCR_FULL_YUV2RGB BIT(9) 108 #define RKISP1_CIF_MI_SP_422NONCOSITEED BIT(10) 109 #define RKISP1_CIF_MI_MP_PINGPONG_ENABLE BIT(11) 110 #define RKISP1_CIF_MI_SP_PINGPONG_ENABLE BIT(12) 111 #define RKISP1_CIF_MI_MP_AUTOUPDATE_ENABLE BIT(13) 112 #define RKISP1_CIF_MI_SP_AUTOUPDATE_ENABLE BIT(14) 113 #define RKISP1_CIF_MI_LAST_PIXEL_SIG_ENABLE BIT(15) 114 #define RKISP1_CIF_MI_CTRL_BURST_LEN_LUM_16 (0 << 16) 115 #define RKISP1_CIF_MI_CTRL_BURST_LEN_LUM_32 BIT(16) 116 #define RKISP1_CIF_MI_CTRL_BURST_LEN_LUM_64 (2 << 16) 117 #define RKISP1_CIF_MI_CTRL_BURST_LEN_CHROM_16 (0 << 18) 118 #define RKISP1_CIF_MI_CTRL_BURST_LEN_CHROM_32 BIT(18) 119 #define RKISP1_CIF_MI_CTRL_BURST_LEN_CHROM_64 (2 << 18) 120 #define RKISP1_CIF_MI_CTRL_INIT_BASE_EN BIT(20) 121 #define RKISP1_CIF_MI_CTRL_INIT_OFFSET_EN BIT(21) 122 #define RKISP1_MI_CTRL_MP_WRITE_YUV_PLA_OR_RAW8 (0 << 22) 123 #define RKISP1_MI_CTRL_MP_WRITE_YUV_SPLA BIT(22) 124 #define RKISP1_MI_CTRL_MP_WRITE_YUVINT (2 << 22) 125 #define RKISP1_MI_CTRL_MP_WRITE_RAW12 (2 << 22) 126 #define RKISP1_MI_CTRL_SP_WRITE_PLA (0 << 24) 127 #define RKISP1_MI_CTRL_SP_WRITE_SPLA BIT(24) 128 #define RKISP1_MI_CTRL_SP_WRITE_INT (2 << 24) 129 #define RKISP1_MI_CTRL_SP_INPUT_YUV400 (0 << 26) 130 #define RKISP1_MI_CTRL_SP_INPUT_YUV420 BIT(26) 131 #define RKISP1_MI_CTRL_SP_INPUT_YUV422 (2 << 26) 132 #define RKISP1_MI_CTRL_SP_INPUT_YUV444 (3 << 26) 133 #define RKISP1_MI_CTRL_SP_OUTPUT_YUV400 (0 << 28) 134 #define RKISP1_MI_CTRL_SP_OUTPUT_YUV420 BIT(28) 135 #define RKISP1_MI_CTRL_SP_OUTPUT_YUV422 (2 << 28) 136 #define RKISP1_MI_CTRL_SP_OUTPUT_YUV444 (3 << 28) 137 #define RKISP1_MI_CTRL_SP_OUTPUT_RGB565 (4 << 28) 138 #define RKISP1_MI_CTRL_SP_OUTPUT_RGB666 (5 << 28) 139 #define RKISP1_MI_CTRL_SP_OUTPUT_RGB888 (6 << 28) 140 141 #define RKISP1_MI_CTRL_MP_FMT_MASK GENMASK(23, 22) 142 #define RKISP1_MI_CTRL_SP_FMT_MASK GENMASK(30, 24) 143 144 /* MI_INIT */ 145 #define RKISP1_CIF_MI_INIT_SKIP BIT(2) 146 #define RKISP1_CIF_MI_INIT_SOFT_UPD BIT(4) 147 148 /* MI_CTRL_SHD */ 149 #define RKISP1_CIF_MI_CTRL_SHD_MP_IN_ENABLED BIT(0) 150 #define RKISP1_CIF_MI_CTRL_SHD_SP_IN_ENABLED BIT(1) 151 #define RKISP1_CIF_MI_CTRL_SHD_JPEG_IN_ENABLED BIT(2) 152 #define RKISP1_CIF_MI_CTRL_SHD_RAW_IN_ENABLED BIT(3) 153 #define RKISP1_CIF_MI_CTRL_SHD_MP_OUT_ENABLED BIT(16) 154 #define RKISP1_CIF_MI_CTRL_SHD_SP_OUT_ENABLED BIT(17) 155 #define RKISP1_CIF_MI_CTRL_SHD_JPEG_OUT_ENABLED BIT(18) 156 #define RKISP1_CIF_MI_CTRL_SHD_RAW_OUT_ENABLED BIT(19) 157 158 /* RSZ_CTRL */ 159 #define RKISP1_CIF_RSZ_CTRL_SCALE_HY_ENABLE BIT(0) 160 #define RKISP1_CIF_RSZ_CTRL_SCALE_HC_ENABLE BIT(1) 161 #define RKISP1_CIF_RSZ_CTRL_SCALE_VY_ENABLE BIT(2) 162 #define RKISP1_CIF_RSZ_CTRL_SCALE_VC_ENABLE BIT(3) 163 #define RKISP1_CIF_RSZ_CTRL_SCALE_HY_UP BIT(4) 164 #define RKISP1_CIF_RSZ_CTRL_SCALE_HC_UP BIT(5) 165 #define RKISP1_CIF_RSZ_CTRL_SCALE_VY_UP BIT(6) 166 #define RKISP1_CIF_RSZ_CTRL_SCALE_VC_UP BIT(7) 167 #define RKISP1_CIF_RSZ_CTRL_CFG_UPD BIT(8) 168 #define RKISP1_CIF_RSZ_CTRL_CFG_UPD_AUTO BIT(9) 169 #define RKISP1_CIF_RSZ_SCALER_FACTOR BIT(16) 170 171 /* MI_IMSC - MI_MIS - MI_RIS - MI_ICR - MI_ISR */ 172 #define RKISP1_CIF_MI_FRAME(stream) BIT((stream)->id) 173 #define RKISP1_CIF_MI_MBLK_LINE BIT(2) 174 #define RKISP1_CIF_MI_FILL_MP_Y BIT(3) 175 #define RKISP1_CIF_MI_WRAP_MP_Y BIT(4) 176 #define RKISP1_CIF_MI_WRAP_MP_CB BIT(5) 177 #define RKISP1_CIF_MI_WRAP_MP_CR BIT(6) 178 #define RKISP1_CIF_MI_WRAP_SP_Y BIT(7) 179 #define RKISP1_CIF_MI_WRAP_SP_CB BIT(8) 180 #define RKISP1_CIF_MI_WRAP_SP_CR BIT(9) 181 #define RKISP1_CIF_MI_DMA_READY BIT(11) 182 183 /* MI_STATUS */ 184 #define RKISP1_CIF_MI_STATUS_MP_Y_FIFO_FULL BIT(0) 185 #define RKISP1_CIF_MI_STATUS_SP_Y_FIFO_FULL BIT(4) 186 187 /* MI_DMA_CTRL */ 188 #define RKISP1_CIF_MI_DMA_CTRL_BURST_LEN_LUM_16 (0 << 0) 189 #define RKISP1_CIF_MI_DMA_CTRL_BURST_LEN_LUM_32 BIT(0) 190 #define RKISP1_CIF_MI_DMA_CTRL_BURST_LEN_LUM_64 (2 << 0) 191 #define RKISP1_CIF_MI_DMA_CTRL_BURST_LEN_CHROM_16 (0 << 2) 192 #define RKISP1_CIF_MI_DMA_CTRL_BURST_LEN_CHROM_32 BIT(2) 193 #define RKISP1_CIF_MI_DMA_CTRL_BURST_LEN_CHROM_64 (2 << 2) 194 #define RKISP1_CIF_MI_DMA_CTRL_READ_FMT_PLANAR (0 << 4) 195 #define RKISP1_CIF_MI_DMA_CTRL_READ_FMT_SPLANAR BIT(4) 196 #define RKISP1_CIF_MI_DMA_CTRL_FMT_YUV400 (0 << 6) 197 #define RKISP1_CIF_MI_DMA_CTRL_FMT_YUV420 BIT(6) 198 #define RKISP1_CIF_MI_DMA_CTRL_READ_FMT_PACKED (2 << 4) 199 #define RKISP1_CIF_MI_DMA_CTRL_FMT_YUV422 (2 << 6) 200 #define RKISP1_CIF_MI_DMA_CTRL_FMT_YUV444 (3 << 6) 201 #define RKISP1_CIF_MI_DMA_CTRL_BYTE_SWAP BIT(8) 202 #define RKISP1_CIF_MI_DMA_CTRL_CONTINUOUS_ENA BIT(9) 203 #define RKISP1_CIF_MI_DMA_CTRL_RGB_BAYER_NO (0 << 12) 204 #define RKISP1_CIF_MI_DMA_CTRL_RGB_BAYER_8BIT BIT(12) 205 #define RKISP1_CIF_MI_DMA_CTRL_RGB_BAYER_16BIT (2 << 12) 206 /* MI_DMA_START */ 207 #define RKISP1_CIF_MI_DMA_START_ENABLE BIT(0) 208 /* MI_XTD_FORMAT_CTRL */ 209 #define RKISP1_CIF_MI_XTD_FMT_CTRL_MP_CB_CR_SWAP BIT(0) 210 #define RKISP1_CIF_MI_XTD_FMT_CTRL_SP_CB_CR_SWAP BIT(1) 211 #define RKISP1_CIF_MI_XTD_FMT_CTRL_DMA_CB_CR_SWAP BIT(2) 212 213 /* CCL */ 214 #define RKISP1_CIF_CCL_CIF_CLK_DIS BIT(2) 215 /* ICCL */ 216 #define RKISP1_CIF_ICCL_ISP_CLK BIT(0) 217 #define RKISP1_CIF_ICCL_CP_CLK BIT(1) 218 #define RKISP1_CIF_ICCL_RES_2 BIT(2) 219 #define RKISP1_CIF_ICCL_MRSZ_CLK BIT(3) 220 #define RKISP1_CIF_ICCL_SRSZ_CLK BIT(4) 221 #define RKISP1_CIF_ICCL_JPEG_CLK BIT(5) 222 #define RKISP1_CIF_ICCL_MI_CLK BIT(6) 223 #define RKISP1_CIF_ICCL_RES_7 BIT(7) 224 #define RKISP1_CIF_ICCL_IE_CLK BIT(8) 225 #define RKISP1_CIF_ICCL_SIMP_CLK BIT(9) 226 #define RKISP1_CIF_ICCL_SMIA_CLK BIT(10) 227 #define RKISP1_CIF_ICCL_MIPI_CLK BIT(11) 228 #define RKISP1_CIF_ICCL_DCROP_CLK BIT(12) 229 /* IRCL */ 230 #define RKISP1_CIF_IRCL_ISP_SW_RST BIT(0) 231 #define RKISP1_CIF_IRCL_CP_SW_RST BIT(1) 232 #define RKISP1_CIF_IRCL_YCS_SW_RST BIT(2) 233 #define RKISP1_CIF_IRCL_MRSZ_SW_RST BIT(3) 234 #define RKISP1_CIF_IRCL_SRSZ_SW_RST BIT(4) 235 #define RKISP1_CIF_IRCL_JPEG_SW_RST BIT(5) 236 #define RKISP1_CIF_IRCL_MI_SW_RST BIT(6) 237 #define RKISP1_CIF_IRCL_CIF_SW_RST BIT(7) 238 #define RKISP1_CIF_IRCL_IE_SW_RST BIT(8) 239 #define RKISP1_CIF_IRCL_SI_SW_RST BIT(9) 240 #define RKISP1_CIF_IRCL_MIPI_SW_RST BIT(11) 241 242 /* C_PROC_CTR */ 243 #define RKISP1_CIF_C_PROC_CTR_ENABLE BIT(0) 244 #define RKISP1_CIF_C_PROC_YOUT_FULL BIT(1) 245 #define RKISP1_CIF_C_PROC_YIN_FULL BIT(2) 246 #define RKISP1_CIF_C_PROC_COUT_FULL BIT(3) 247 #define RKISP1_CIF_C_PROC_CTRL_RESERVED 0xFFFFFFFE 248 #define RKISP1_CIF_C_PROC_CONTRAST_RESERVED 0xFFFFFF00 249 #define RKISP1_CIF_C_PROC_BRIGHTNESS_RESERVED 0xFFFFFF00 250 #define RKISP1_CIF_C_PROC_HUE_RESERVED 0xFFFFFF00 251 #define RKISP1_CIF_C_PROC_SATURATION_RESERVED 0xFFFFFF00 252 #define RKISP1_CIF_C_PROC_MACC_RESERVED 0xE000E000 253 #define RKISP1_CIF_C_PROC_TONE_RESERVED 0xF000 254 /* DUAL_CROP_CTRL */ 255 #define RKISP1_CIF_DUAL_CROP_MP_MODE_BYPASS (0 << 0) 256 #define RKISP1_CIF_DUAL_CROP_MP_MODE_YUV BIT(0) 257 #define RKISP1_CIF_DUAL_CROP_MP_MODE_RAW (2 << 0) 258 #define RKISP1_CIF_DUAL_CROP_SP_MODE_BYPASS (0 << 2) 259 #define RKISP1_CIF_DUAL_CROP_SP_MODE_YUV BIT(2) 260 #define RKISP1_CIF_DUAL_CROP_SP_MODE_RAW (2 << 2) 261 #define RKISP1_CIF_DUAL_CROP_CFG_UPD_PERMANENT BIT(4) 262 #define RKISP1_CIF_DUAL_CROP_CFG_UPD BIT(5) 263 #define RKISP1_CIF_DUAL_CROP_GEN_CFG_UPD BIT(6) 264 265 /* IMG_EFF_CTRL */ 266 #define RKISP1_CIF_IMG_EFF_CTRL_ENABLE BIT(0) 267 #define RKISP1_CIF_IMG_EFF_CTRL_MODE_BLACKWHITE (0 << 1) 268 #define RKISP1_CIF_IMG_EFF_CTRL_MODE_NEGATIVE BIT(1) 269 #define RKISP1_CIF_IMG_EFF_CTRL_MODE_SEPIA (2 << 1) 270 #define RKISP1_CIF_IMG_EFF_CTRL_MODE_COLOR_SEL (3 << 1) 271 #define RKISP1_CIF_IMG_EFF_CTRL_MODE_EMBOSS (4 << 1) 272 #define RKISP1_CIF_IMG_EFF_CTRL_MODE_SKETCH (5 << 1) 273 #define RKISP1_CIF_IMG_EFF_CTRL_MODE_SHARPEN (6 << 1) 274 #define RKISP1_CIF_IMG_EFF_CTRL_CFG_UPD BIT(4) 275 #define RKISP1_CIF_IMG_EFF_CTRL_YCBCR_FULL BIT(5) 276 277 #define RKISP1_CIF_IMG_EFF_CTRL_MODE_BLACKWHITE_SHIFT 0 278 #define RKISP1_CIF_IMG_EFF_CTRL_MODE_NEGATIVE_SHIFT 1 279 #define RKISP1_CIF_IMG_EFF_CTRL_MODE_SEPIA_SHIFT 2 280 #define RKISP1_CIF_IMG_EFF_CTRL_MODE_COLOR_SEL_SHIFT 3 281 #define RKISP1_CIF_IMG_EFF_CTRL_MODE_EMBOSS_SHIFT 4 282 #define RKISP1_CIF_IMG_EFF_CTRL_MODE_SKETCH_SHIFT 5 283 #define RKISP1_CIF_IMG_EFF_CTRL_MODE_SHARPEN_SHIFT 6 284 #define RKISP1_CIF_IMG_EFF_CTRL_MODE_MASK 0xE 285 286 /* IMG_EFF_COLOR_SEL */ 287 #define RKISP1_CIF_IMG_EFF_COLOR_RGB 0 288 #define RKISP1_CIF_IMG_EFF_COLOR_B BIT(0) 289 #define RKISP1_CIF_IMG_EFF_COLOR_G (2 << 0) 290 #define RKISP1_CIF_IMG_EFF_COLOR_GB (3 << 0) 291 #define RKISP1_CIF_IMG_EFF_COLOR_R (4 << 0) 292 #define RKISP1_CIF_IMG_EFF_COLOR_RB (5 << 0) 293 #define RKISP1_CIF_IMG_EFF_COLOR_RG (6 << 0) 294 #define RKISP1_CIF_IMG_EFF_COLOR_RGB2 (7 << 0) 295 296 /* MIPI_CTRL */ 297 #define RKISP1_CIF_MIPI_CTRL_OUTPUT_ENA BIT(0) 298 #define RKISP1_CIF_MIPI_CTRL_SHUTDOWNLANES(a) (((a) & 0xF) << 8) 299 #define RKISP1_CIF_MIPI_CTRL_NUM_LANES(a) (((a) & 0x3) << 12) 300 #define RKISP1_CIF_MIPI_CTRL_ERR_SOT_HS_SKIP BIT(16) 301 #define RKISP1_CIF_MIPI_CTRL_ERR_SOT_SYNC_HS_SKIP BIT(17) 302 #define RKISP1_CIF_MIPI_CTRL_CLOCKLANE_ENA BIT(18) 303 304 /* MIPI_DATA_SEL */ 305 #define RKISP1_CIF_MIPI_DATA_SEL_VC(a) (((a) & 0x3) << 6) 306 #define RKISP1_CIF_MIPI_DATA_SEL_DT(a) (((a) & 0x3F) << 0) 307 /* MIPI DATA_TYPE */ 308 #define RKISP1_CIF_CSI2_DT_YUV420_8b 0x18 309 #define RKISP1_CIF_CSI2_DT_YUV420_10b 0x19 310 #define RKISP1_CIF_CSI2_DT_YUV422_8b 0x1E 311 #define RKISP1_CIF_CSI2_DT_YUV422_10b 0x1F 312 #define RKISP1_CIF_CSI2_DT_RGB565 0x22 313 #define RKISP1_CIF_CSI2_DT_RGB666 0x23 314 #define RKISP1_CIF_CSI2_DT_RGB888 0x24 315 #define RKISP1_CIF_CSI2_DT_RAW8 0x2A 316 #define RKISP1_CIF_CSI2_DT_RAW10 0x2B 317 #define RKISP1_CIF_CSI2_DT_RAW12 0x2C 318 319 /* MIPI_IMSC, MIPI_RIS, MIPI_MIS, MIPI_ICR, MIPI_ISR */ 320 #define RKISP1_CIF_MIPI_SYNC_FIFO_OVFLW(a) (((a) & 0xF) << 0) 321 #define RKISP1_CIF_MIPI_ERR_SOT(a) (((a) & 0xF) << 4) 322 #define RKISP1_CIF_MIPI_ERR_SOT_SYNC(a) (((a) & 0xF) << 8) 323 #define RKISP1_CIF_MIPI_ERR_EOT_SYNC(a) (((a) & 0xF) << 12) 324 #define RKISP1_CIF_MIPI_ERR_CTRL(a) (((a) & 0xF) << 16) 325 #define RKISP1_CIF_MIPI_ERR_PROTOCOL BIT(20) 326 #define RKISP1_CIF_MIPI_ERR_ECC1 BIT(21) 327 #define RKISP1_CIF_MIPI_ERR_ECC2 BIT(22) 328 #define RKISP1_CIF_MIPI_ERR_CS BIT(23) 329 #define RKISP1_CIF_MIPI_FRAME_END BIT(24) 330 #define RKISP1_CIF_MIPI_ADD_DATA_OVFLW BIT(25) 331 #define RKISP1_CIF_MIPI_ADD_DATA_WATER_MARK BIT(26) 332 333 #define RKISP1_CIF_MIPI_ERR_CSI (RKISP1_CIF_MIPI_ERR_PROTOCOL | \ 334 RKISP1_CIF_MIPI_ERR_ECC1 | \ 335 RKISP1_CIF_MIPI_ERR_ECC2 | \ 336 RKISP1_CIF_MIPI_ERR_CS) 337 338 #define RKISP1_CIF_MIPI_ERR_DPHY (RKISP1_CIF_MIPI_ERR_SOT(3) | \ 339 RKISP1_CIF_MIPI_ERR_SOT_SYNC(3) | \ 340 RKISP1_CIF_MIPI_ERR_EOT_SYNC(3) | \ 341 RKISP1_CIF_MIPI_ERR_CTRL(3)) 342 343 /* SUPER_IMPOSE */ 344 #define RKISP1_CIF_SUPER_IMP_CTRL_NORMAL_MODE BIT(0) 345 #define RKISP1_CIF_SUPER_IMP_CTRL_REF_IMG_MEM BIT(1) 346 #define RKISP1_CIF_SUPER_IMP_CTRL_TRANSP_DIS BIT(2) 347 348 /* ISP HISTOGRAM CALCULATION : ISP_HIST_PROP */ 349 #define RKISP1_CIF_ISP_HIST_PROP_MODE_DIS (0 << 0) 350 #define RKISP1_CIF_ISP_HIST_PROP_MODE_RGB BIT(0) 351 #define RKISP1_CIF_ISP_HIST_PROP_MODE_RED (2 << 0) 352 #define RKISP1_CIF_ISP_HIST_PROP_MODE_GREEN (3 << 0) 353 #define RKISP1_CIF_ISP_HIST_PROP_MODE_BLUE (4 << 0) 354 #define RKISP1_CIF_ISP_HIST_PROP_MODE_LUM (5 << 0) 355 #define RKISP1_CIF_ISP_HIST_PROP_MODE_MASK 0x7 356 #define RKISP1_CIF_ISP_HIST_PREDIV_SET(x) (((x) & 0x7F) << 3) 357 #define RKISP1_CIF_ISP_HIST_WEIGHT_SET(v0, v1, v2, v3) \ 358 (((v0) & 0x1F) | (((v1) & 0x1F) << 8) |\ 359 (((v2) & 0x1F) << 16) | \ 360 (((v3) & 0x1F) << 24)) 361 362 #define RKISP1_CIF_ISP_HIST_WINDOW_OFFSET_RESERVED 0xFFFFF000 363 #define RKISP1_CIF_ISP_HIST_WINDOW_SIZE_RESERVED 0xFFFFF800 364 #define RKISP1_CIF_ISP_HIST_WEIGHT_RESERVED 0xE0E0E0E0 365 #define RKISP1_CIF_ISP_MAX_HIST_PREDIVIDER 0x0000007F 366 #define RKISP1_CIF_ISP_HIST_ROW_NUM 5 367 #define RKISP1_CIF_ISP_HIST_COLUMN_NUM 5 368 #define RKISP1_CIF_ISP_HIST_GET_BIN(x) ((x) & 0x000FFFFF) 369 370 /* AUTO FOCUS MEASUREMENT: ISP_AFM_CTRL */ 371 #define RKISP1_ISP_AFM_CTRL_ENABLE BIT(0) 372 373 /* SHUTTER CONTROL */ 374 #define RKISP1_CIF_ISP_SH_CTRL_SH_ENA BIT(0) 375 #define RKISP1_CIF_ISP_SH_CTRL_REP_EN BIT(1) 376 #define RKISP1_CIF_ISP_SH_CTRL_SRC_SH_TRIG BIT(2) 377 #define RKISP1_CIF_ISP_SH_CTRL_EDGE_POS BIT(3) 378 #define RKISP1_CIF_ISP_SH_CTRL_POL_LOW BIT(4) 379 380 /* FLASH MODULE */ 381 /* ISP_FLASH_CMD */ 382 #define RKISP1_CIFFLASH_CMD_PRELIGHT_ON BIT(0) 383 #define RKISP1_CIFFLASH_CMD_FLASH_ON BIT(1) 384 #define RKISP1_CIFFLASH_CMD_PRE_FLASH_ON BIT(2) 385 /* ISP_FLASH_CONFIG */ 386 #define RKISP1_CIFFLASH_CONFIG_PRELIGHT_END BIT(0) 387 #define RKISP1_CIFFLASH_CONFIG_VSYNC_POS BIT(1) 388 #define RKISP1_CIFFLASH_CONFIG_PRELIGHT_LOW BIT(2) 389 #define RKISP1_CIFFLASH_CONFIG_SRC_FL_TRIG BIT(3) 390 #define RKISP1_CIFFLASH_CONFIG_DELAY(a) (((a) & 0xF) << 4) 391 392 /* Demosaic: ISP_DEMOSAIC */ 393 #define RKISP1_CIF_ISP_DEMOSAIC_BYPASS BIT(10) 394 #define RKISP1_CIF_ISP_DEMOSAIC_TH(x) ((x) & 0xFF) 395 396 /* AWB */ 397 /* ISP_AWB_PROP */ 398 #define RKISP1_CIF_ISP_AWB_YMAX_CMP_EN BIT(2) 399 #define RKISP1_CIF_ISP_AWB_YMAX_READ(x) (((x) >> 2) & 1) 400 #define RKISP1_CIF_ISP_AWB_MODE_RGB_EN ((1 << 31) | (0x2 << 0)) 401 #define RKISP1_CIF_ISP_AWB_MODE_YCBCR_EN ((0 << 31) | (0x2 << 0)) 402 #define RKISP1_CIF_ISP_AWB_MODE_MASK_NONE 0xFFFFFFFC 403 #define RKISP1_CIF_ISP_AWB_MODE_READ(x) ((x) & 3) 404 /* ISP_AWB_GAIN_RB, ISP_AWB_GAIN_G */ 405 #define RKISP1_CIF_ISP_AWB_GAIN_R_SET(x) (((x) & 0x3FF) << 16) 406 #define RKISP1_CIF_ISP_AWB_GAIN_R_READ(x) (((x) >> 16) & 0x3FF) 407 #define RKISP1_CIF_ISP_AWB_GAIN_B_SET(x) ((x) & 0x3FFF) 408 #define RKISP1_CIF_ISP_AWB_GAIN_B_READ(x) ((x) & 0x3FFF) 409 /* ISP_AWB_REF */ 410 #define RKISP1_CIF_ISP_AWB_REF_CR_SET(x) (((x) & 0xFF) << 8) 411 #define RKISP1_CIF_ISP_AWB_REF_CR_READ(x) (((x) >> 8) & 0xFF) 412 #define RKISP1_CIF_ISP_AWB_REF_CB_READ(x) ((x) & 0xFF) 413 /* ISP_AWB_THRESH */ 414 #define RKISP1_CIF_ISP_AWB_MAX_CS_SET(x) (((x) & 0xFF) << 8) 415 #define RKISP1_CIF_ISP_AWB_MAX_CS_READ(x) (((x) >> 8) & 0xFF) 416 #define RKISP1_CIF_ISP_AWB_MIN_C_READ(x) ((x) & 0xFF) 417 #define RKISP1_CIF_ISP_AWB_MIN_Y_SET(x) (((x) & 0xFF) << 16) 418 #define RKISP1_CIF_ISP_AWB_MIN_Y_READ(x) (((x) >> 16) & 0xFF) 419 #define RKISP1_CIF_ISP_AWB_MAX_Y_SET(x) (((x) & 0xFF) << 24) 420 #define RKISP1_CIF_ISP_AWB_MAX_Y_READ(x) (((x) >> 24) & 0xFF) 421 /* ISP_AWB_MEAN */ 422 #define RKISP1_CIF_ISP_AWB_GET_MEAN_CR_R(x) ((x) & 0xFF) 423 #define RKISP1_CIF_ISP_AWB_GET_MEAN_CB_B(x) (((x) >> 8) & 0xFF) 424 #define RKISP1_CIF_ISP_AWB_GET_MEAN_Y_G(x) (((x) >> 16) & 0xFF) 425 /* ISP_AWB_WHITE_CNT */ 426 #define RKISP1_CIF_ISP_AWB_GET_PIXEL_CNT(x) ((x) & 0x3FFFFFF) 427 428 #define RKISP1_CIF_ISP_AWB_GAINS_MAX_VAL 0x000003FF 429 #define RKISP1_CIF_ISP_AWB_WINDOW_OFFSET_MAX 0x00000FFF 430 #define RKISP1_CIF_ISP_AWB_WINDOW_MAX_SIZE 0x00001FFF 431 #define RKISP1_CIF_ISP_AWB_CBCR_MAX_REF 0x000000FF 432 #define RKISP1_CIF_ISP_AWB_THRES_MAX_YC 0x000000FF 433 434 /* AE */ 435 /* ISP_EXP_CTRL */ 436 #define RKISP1_CIF_ISP_EXP_ENA BIT(0) 437 #define RKISP1_CIF_ISP_EXP_CTRL_AUTOSTOP BIT(1) 438 /* 439 *'1' luminance calculation according to Y=(R+G+B) x 0.332 (85/256) 440 *'0' luminance calculation according to Y=16+0.25R+0.5G+0.1094B 441 */ 442 #define RKISP1_CIF_ISP_EXP_CTRL_MEASMODE_1 BIT(31) 443 444 /* ISP_EXP_H_SIZE */ 445 #define RKISP1_CIF_ISP_EXP_H_SIZE_SET(x) ((x) & 0x7FF) 446 #define RKISP1_CIF_ISP_EXP_HEIGHT_MASK 0x000007FF 447 /* ISP_EXP_V_SIZE : vertical size must be a multiple of 2). */ 448 #define RKISP1_CIF_ISP_EXP_V_SIZE_SET(x) ((x) & 0x7FE) 449 450 /* ISP_EXP_H_OFFSET */ 451 #define RKISP1_CIF_ISP_EXP_H_OFFSET_SET(x) ((x) & 0x1FFF) 452 #define RKISP1_CIF_ISP_EXP_MAX_HOFFS 2424 453 /* ISP_EXP_V_OFFSET */ 454 #define RKISP1_CIF_ISP_EXP_V_OFFSET_SET(x) ((x) & 0x1FFF) 455 #define RKISP1_CIF_ISP_EXP_MAX_VOFFS 1806 456 457 #define RKISP1_CIF_ISP_EXP_ROW_NUM 5 458 #define RKISP1_CIF_ISP_EXP_COLUMN_NUM 5 459 #define RKISP1_CIF_ISP_EXP_NUM_LUMA_REGS \ 460 (RKISP1_CIF_ISP_EXP_ROW_NUM * RKISP1_CIF_ISP_EXP_COLUMN_NUM) 461 #define RKISP1_CIF_ISP_EXP_BLOCK_MAX_HSIZE 516 462 #define RKISP1_CIF_ISP_EXP_BLOCK_MIN_HSIZE 35 463 #define RKISP1_CIF_ISP_EXP_BLOCK_MAX_VSIZE 390 464 #define RKISP1_CIF_ISP_EXP_BLOCK_MIN_VSIZE 28 465 #define RKISP1_CIF_ISP_EXP_MAX_HSIZE \ 466 (RKISP1_CIF_ISP_EXP_BLOCK_MAX_HSIZE * RKISP1_CIF_ISP_EXP_COLUMN_NUM + 1) 467 #define RKISP1_CIF_ISP_EXP_MIN_HSIZE \ 468 (RKISP1_CIF_ISP_EXP_BLOCK_MIN_HSIZE * RKISP1_CIF_ISP_EXP_COLUMN_NUM + 1) 469 #define RKISP1_CIF_ISP_EXP_MAX_VSIZE \ 470 (RKISP1_CIF_ISP_EXP_BLOCK_MAX_VSIZE * RKISP1_CIF_ISP_EXP_ROW_NUM + 1) 471 #define RKISP1_CIF_ISP_EXP_MIN_VSIZE \ 472 (RKISP1_CIF_ISP_EXP_BLOCK_MIN_VSIZE * RKISP1_CIF_ISP_EXP_ROW_NUM + 1) 473 474 /* LSC: ISP_LSC_CTRL */ 475 #define RKISP1_CIF_ISP_LSC_CTRL_ENA BIT(0) 476 #define RKISP1_CIF_ISP_LSC_SECT_SIZE_RESERVED 0xFC00FC00 477 #define RKISP1_CIF_ISP_LSC_GRAD_RESERVED 0xF000F000 478 #define RKISP1_CIF_ISP_LSC_SAMPLE_RESERVED 0xF000F000 479 #define RKISP1_CIF_ISP_LSC_TABLE_DATA(v0, v1) \ 480 (((v0) & 0xFFF) | (((v1) & 0xFFF) << 12)) 481 #define RKISP1_CIF_ISP_LSC_SECT_SIZE(v0, v1) \ 482 (((v0) & 0xFFF) | (((v1) & 0xFFF) << 16)) 483 #define RKISP1_CIF_ISP_LSC_GRAD_SIZE(v0, v1) \ 484 (((v0) & 0xFFF) | (((v1) & 0xFFF) << 16)) 485 486 /* LSC: ISP_LSC_TABLE_SEL */ 487 #define RKISP1_CIF_ISP_LSC_TABLE_0 0 488 #define RKISP1_CIF_ISP_LSC_TABLE_1 1 489 490 /* LSC: ISP_LSC_STATUS */ 491 #define RKISP1_CIF_ISP_LSC_ACTIVE_TABLE BIT(1) 492 #define RKISP1_CIF_ISP_LSC_TABLE_ADDRESS_0 0 493 #define RKISP1_CIF_ISP_LSC_TABLE_ADDRESS_153 153 494 495 /* FLT */ 496 /* ISP_FILT_MODE */ 497 #define RKISP1_CIF_ISP_FLT_ENA BIT(0) 498 499 /* 500 * 0: green filter static mode (active filter factor = FILT_FAC_MID) 501 * 1: dynamic noise reduction/sharpen Default 502 */ 503 #define RKISP1_CIF_ISP_FLT_MODE_DNR BIT(1) 504 #define RKISP1_CIF_ISP_FLT_MODE_MAX 1 505 #define RKISP1_CIF_ISP_FLT_CHROMA_V_MODE(x) (((x) & 0x3) << 4) 506 #define RKISP1_CIF_ISP_FLT_CHROMA_H_MODE(x) (((x) & 0x3) << 6) 507 #define RKISP1_CIF_ISP_FLT_CHROMA_MODE_MAX 3 508 #define RKISP1_CIF_ISP_FLT_GREEN_STAGE1(x) (((x) & 0xF) << 8) 509 #define RKISP1_CIF_ISP_FLT_GREEN_STAGE1_MAX 8 510 #define RKISP1_CIF_ISP_FLT_THREAD_RESERVED 0xFFFFFC00 511 #define RKISP1_CIF_ISP_FLT_FAC_RESERVED 0xFFFFFFC0 512 #define RKISP1_CIF_ISP_FLT_LUM_WEIGHT_RESERVED 0xFFF80000 513 514 #define RKISP1_CIF_ISP_CTK_COEFF_RESERVED 0xFFFFF800 515 #define RKISP1_CIF_ISP_XTALK_OFFSET_RESERVED 0xFFFFF000 516 517 /* GOC */ 518 #define RKISP1_CIF_ISP_GAMMA_OUT_MODE_EQU BIT(0) 519 #define RKISP1_CIF_ISP_GOC_MODE_MAX 1 520 #define RKISP1_CIF_ISP_GOC_RESERVED 0xFFFFF800 521 /* ISP_CTRL BIT 11*/ 522 #define RKISP1_CIF_ISP_CTRL_ISP_GAMMA_OUT_ENA_READ(x) (((x) >> 11) & 1) 523 524 /* DPCC */ 525 /* ISP_DPCC_MODE */ 526 #define RKISP1_CIF_ISP_DPCC_ENA BIT(0) 527 #define RKISP1_CIF_ISP_DPCC_MODE_MAX 0x07 528 #define RKISP1_CIF_ISP_DPCC_OUTPUTMODE_MAX 0x0F 529 #define RKISP1_CIF_ISP_DPCC_SETUSE_MAX 0x0F 530 #define RKISP1_CIF_ISP_DPCC_METHODS_SET_RESERVED 0xFFFFE000 531 #define RKISP1_CIF_ISP_DPCC_LINE_THRESH_RESERVED 0xFFFF0000 532 #define RKISP1_CIF_ISP_DPCC_LINE_MAD_FAC_RESERVED 0xFFFFC0C0 533 #define RKISP1_CIF_ISP_DPCC_PG_FAC_RESERVED 0xFFFFC0C0 534 #define RKISP1_CIF_ISP_DPCC_RND_THRESH_RESERVED 0xFFFF0000 535 #define RKISP1_CIF_ISP_DPCC_RG_FAC_RESERVED 0xFFFFC0C0 536 #define RKISP1_CIF_ISP_DPCC_RO_LIMIT_RESERVED 0xFFFFF000 537 #define RKISP1_CIF_ISP_DPCC_RND_OFFS_RESERVED 0xFFFFF000 538 539 /* BLS */ 540 /* ISP_BLS_CTRL */ 541 #define RKISP1_CIF_ISP_BLS_ENA BIT(0) 542 #define RKISP1_CIF_ISP_BLS_MODE_MEASURED BIT(1) 543 #define RKISP1_CIF_ISP_BLS_MODE_FIXED 0 544 #define RKISP1_CIF_ISP_BLS_WINDOW_1 BIT(2) 545 #define RKISP1_CIF_ISP_BLS_WINDOW_2 (2 << 2) 546 547 /* GAMMA-IN */ 548 #define RKISP1_CIFISP_DEGAMMA_X_RESERVED \ 549 ((1 << 31) | (1 << 27) | (1 << 23) | (1 << 19) |\ 550 (1 << 15) | (1 << 11) | (1 << 7) | (1 << 3)) 551 #define RKISP1_CIFISP_DEGAMMA_Y_RESERVED 0xFFFFF000 552 553 /* AFM */ 554 #define RKISP1_CIF_ISP_AFM_ENA BIT(0) 555 #define RKISP1_CIF_ISP_AFM_THRES_RESERVED 0xFFFF0000 556 #define RKISP1_CIF_ISP_AFM_VAR_SHIFT_RESERVED 0xFFF8FFF8 557 #define RKISP1_CIF_ISP_AFM_WINDOW_X_RESERVED 0xE000 558 #define RKISP1_CIF_ISP_AFM_WINDOW_Y_RESERVED 0xF000 559 #define RKISP1_CIF_ISP_AFM_WINDOW_X_MIN 0x5 560 #define RKISP1_CIF_ISP_AFM_WINDOW_Y_MIN 0x2 561 #define RKISP1_CIF_ISP_AFM_WINDOW_X(x) (((x) & 0x1FFF) << 16) 562 #define RKISP1_CIF_ISP_AFM_WINDOW_Y(x) ((x) & 0x1FFF) 563 564 /* DPF */ 565 #define RKISP1_CIF_ISP_DPF_MODE_EN BIT(0) 566 #define RKISP1_CIF_ISP_DPF_MODE_B_FLT_DIS BIT(1) 567 #define RKISP1_CIF_ISP_DPF_MODE_GB_FLT_DIS BIT(2) 568 #define RKISP1_CIF_ISP_DPF_MODE_GR_FLT_DIS BIT(3) 569 #define RKISP1_CIF_ISP_DPF_MODE_R_FLT_DIS BIT(4) 570 #define RKISP1_CIF_ISP_DPF_MODE_RB_FLTSIZE_9x9 BIT(5) 571 #define RKISP1_CIF_ISP_DPF_MODE_NLL_SEGMENTATION BIT(6) 572 #define RKISP1_CIF_ISP_DPF_MODE_AWB_GAIN_COMP BIT(7) 573 #define RKISP1_CIF_ISP_DPF_MODE_LSC_GAIN_COMP BIT(8) 574 #define RKISP1_CIF_ISP_DPF_MODE_USE_NF_GAIN BIT(9) 575 #define RKISP1_CIF_ISP_DPF_NF_GAIN_RESERVED 0xFFFFF000 576 #define RKISP1_CIF_ISP_DPF_SPATIAL_COEFF_MAX 0x1F 577 #define RKISP1_CIF_ISP_DPF_NLL_COEFF_N_MAX 0x3FF 578 579 /* =================================================================== */ 580 /* CIF Registers */ 581 /* =================================================================== */ 582 #define RKISP1_CIF_CTRL_BASE 0x00000000 583 #define RKISP1_CIF_CCL (RKISP1_CIF_CTRL_BASE + 0x00000000) 584 #define RKISP1_CIF_VI_ID (RKISP1_CIF_CTRL_BASE + 0x00000008) 585 #define RKISP1_CIF_ICCL (RKISP1_CIF_CTRL_BASE + 0x00000010) 586 #define RKISP1_CIF_IRCL (RKISP1_CIF_CTRL_BASE + 0x00000014) 587 #define RKISP1_CIF_VI_DPCL (RKISP1_CIF_CTRL_BASE + 0x00000018) 588 589 #define RKISP1_CIF_IMG_EFF_BASE 0x00000200 590 #define RKISP1_CIF_IMG_EFF_CTRL (RKISP1_CIF_IMG_EFF_BASE + 0x00000000) 591 #define RKISP1_CIF_IMG_EFF_COLOR_SEL (RKISP1_CIF_IMG_EFF_BASE + 0x00000004) 592 #define RKISP1_CIF_IMG_EFF_MAT_1 (RKISP1_CIF_IMG_EFF_BASE + 0x00000008) 593 #define RKISP1_CIF_IMG_EFF_MAT_2 (RKISP1_CIF_IMG_EFF_BASE + 0x0000000C) 594 #define RKISP1_CIF_IMG_EFF_MAT_3 (RKISP1_CIF_IMG_EFF_BASE + 0x00000010) 595 #define RKISP1_CIF_IMG_EFF_MAT_4 (RKISP1_CIF_IMG_EFF_BASE + 0x00000014) 596 #define RKISP1_CIF_IMG_EFF_MAT_5 (RKISP1_CIF_IMG_EFF_BASE + 0x00000018) 597 #define RKISP1_CIF_IMG_EFF_TINT (RKISP1_CIF_IMG_EFF_BASE + 0x0000001C) 598 #define RKISP1_CIF_IMG_EFF_CTRL_SHD (RKISP1_CIF_IMG_EFF_BASE + 0x00000020) 599 #define RKISP1_CIF_IMG_EFF_SHARPEN (RKISP1_CIF_IMG_EFF_BASE + 0x00000024) 600 601 #define RKISP1_CIF_SUPER_IMP_BASE 0x00000300 602 #define RKISP1_CIF_SUPER_IMP_CTRL (RKISP1_CIF_SUPER_IMP_BASE + 0x00000000) 603 #define RKISP1_CIF_SUPER_IMP_OFFSET_X (RKISP1_CIF_SUPER_IMP_BASE + 0x00000004) 604 #define RKISP1_CIF_SUPER_IMP_OFFSET_Y (RKISP1_CIF_SUPER_IMP_BASE + 0x00000008) 605 #define RKISP1_CIF_SUPER_IMP_COLOR_Y (RKISP1_CIF_SUPER_IMP_BASE + 0x0000000C) 606 #define RKISP1_CIF_SUPER_IMP_COLOR_CB (RKISP1_CIF_SUPER_IMP_BASE + 0x00000010) 607 #define RKISP1_CIF_SUPER_IMP_COLOR_CR (RKISP1_CIF_SUPER_IMP_BASE + 0x00000014) 608 609 #define RKISP1_CIF_ISP_BASE 0x00000400 610 #define RKISP1_CIF_ISP_CTRL (RKISP1_CIF_ISP_BASE + 0x00000000) 611 #define RKISP1_CIF_ISP_ACQ_PROP (RKISP1_CIF_ISP_BASE + 0x00000004) 612 #define RKISP1_CIF_ISP_ACQ_H_OFFS (RKISP1_CIF_ISP_BASE + 0x00000008) 613 #define RKISP1_CIF_ISP_ACQ_V_OFFS (RKISP1_CIF_ISP_BASE + 0x0000000C) 614 #define RKISP1_CIF_ISP_ACQ_H_SIZE (RKISP1_CIF_ISP_BASE + 0x00000010) 615 #define RKISP1_CIF_ISP_ACQ_V_SIZE (RKISP1_CIF_ISP_BASE + 0x00000014) 616 #define RKISP1_CIF_ISP_ACQ_NR_FRAMES (RKISP1_CIF_ISP_BASE + 0x00000018) 617 #define RKISP1_CIF_ISP_GAMMA_DX_LO (RKISP1_CIF_ISP_BASE + 0x0000001C) 618 #define RKISP1_CIF_ISP_GAMMA_DX_HI (RKISP1_CIF_ISP_BASE + 0x00000020) 619 #define RKISP1_CIF_ISP_GAMMA_R_Y0 (RKISP1_CIF_ISP_BASE + 0x00000024) 620 #define RKISP1_CIF_ISP_GAMMA_R_Y1 (RKISP1_CIF_ISP_BASE + 0x00000028) 621 #define RKISP1_CIF_ISP_GAMMA_R_Y2 (RKISP1_CIF_ISP_BASE + 0x0000002C) 622 #define RKISP1_CIF_ISP_GAMMA_R_Y3 (RKISP1_CIF_ISP_BASE + 0x00000030) 623 #define RKISP1_CIF_ISP_GAMMA_R_Y4 (RKISP1_CIF_ISP_BASE + 0x00000034) 624 #define RKISP1_CIF_ISP_GAMMA_R_Y5 (RKISP1_CIF_ISP_BASE + 0x00000038) 625 #define RKISP1_CIF_ISP_GAMMA_R_Y6 (RKISP1_CIF_ISP_BASE + 0x0000003C) 626 #define RKISP1_CIF_ISP_GAMMA_R_Y7 (RKISP1_CIF_ISP_BASE + 0x00000040) 627 #define RKISP1_CIF_ISP_GAMMA_R_Y8 (RKISP1_CIF_ISP_BASE + 0x00000044) 628 #define RKISP1_CIF_ISP_GAMMA_R_Y9 (RKISP1_CIF_ISP_BASE + 0x00000048) 629 #define RKISP1_CIF_ISP_GAMMA_R_Y10 (RKISP1_CIF_ISP_BASE + 0x0000004C) 630 #define RKISP1_CIF_ISP_GAMMA_R_Y11 (RKISP1_CIF_ISP_BASE + 0x00000050) 631 #define RKISP1_CIF_ISP_GAMMA_R_Y12 (RKISP1_CIF_ISP_BASE + 0x00000054) 632 #define RKISP1_CIF_ISP_GAMMA_R_Y13 (RKISP1_CIF_ISP_BASE + 0x00000058) 633 #define RKISP1_CIF_ISP_GAMMA_R_Y14 (RKISP1_CIF_ISP_BASE + 0x0000005C) 634 #define RKISP1_CIF_ISP_GAMMA_R_Y15 (RKISP1_CIF_ISP_BASE + 0x00000060) 635 #define RKISP1_CIF_ISP_GAMMA_R_Y16 (RKISP1_CIF_ISP_BASE + 0x00000064) 636 #define RKISP1_CIF_ISP_GAMMA_G_Y0 (RKISP1_CIF_ISP_BASE + 0x00000068) 637 #define RKISP1_CIF_ISP_GAMMA_G_Y1 (RKISP1_CIF_ISP_BASE + 0x0000006C) 638 #define RKISP1_CIF_ISP_GAMMA_G_Y2 (RKISP1_CIF_ISP_BASE + 0x00000070) 639 #define RKISP1_CIF_ISP_GAMMA_G_Y3 (RKISP1_CIF_ISP_BASE + 0x00000074) 640 #define RKISP1_CIF_ISP_GAMMA_G_Y4 (RKISP1_CIF_ISP_BASE + 0x00000078) 641 #define RKISP1_CIF_ISP_GAMMA_G_Y5 (RKISP1_CIF_ISP_BASE + 0x0000007C) 642 #define RKISP1_CIF_ISP_GAMMA_G_Y6 (RKISP1_CIF_ISP_BASE + 0x00000080) 643 #define RKISP1_CIF_ISP_GAMMA_G_Y7 (RKISP1_CIF_ISP_BASE + 0x00000084) 644 #define RKISP1_CIF_ISP_GAMMA_G_Y8 (RKISP1_CIF_ISP_BASE + 0x00000088) 645 #define RKISP1_CIF_ISP_GAMMA_G_Y9 (RKISP1_CIF_ISP_BASE + 0x0000008C) 646 #define RKISP1_CIF_ISP_GAMMA_G_Y10 (RKISP1_CIF_ISP_BASE + 0x00000090) 647 #define RKISP1_CIF_ISP_GAMMA_G_Y11 (RKISP1_CIF_ISP_BASE + 0x00000094) 648 #define RKISP1_CIF_ISP_GAMMA_G_Y12 (RKISP1_CIF_ISP_BASE + 0x00000098) 649 #define RKISP1_CIF_ISP_GAMMA_G_Y13 (RKISP1_CIF_ISP_BASE + 0x0000009C) 650 #define RKISP1_CIF_ISP_GAMMA_G_Y14 (RKISP1_CIF_ISP_BASE + 0x000000A0) 651 #define RKISP1_CIF_ISP_GAMMA_G_Y15 (RKISP1_CIF_ISP_BASE + 0x000000A4) 652 #define RKISP1_CIF_ISP_GAMMA_G_Y16 (RKISP1_CIF_ISP_BASE + 0x000000A8) 653 #define RKISP1_CIF_ISP_GAMMA_B_Y0 (RKISP1_CIF_ISP_BASE + 0x000000AC) 654 #define RKISP1_CIF_ISP_GAMMA_B_Y1 (RKISP1_CIF_ISP_BASE + 0x000000B0) 655 #define RKISP1_CIF_ISP_GAMMA_B_Y2 (RKISP1_CIF_ISP_BASE + 0x000000B4) 656 #define RKISP1_CIF_ISP_GAMMA_B_Y3 (RKISP1_CIF_ISP_BASE + 0x000000B8) 657 #define RKISP1_CIF_ISP_GAMMA_B_Y4 (RKISP1_CIF_ISP_BASE + 0x000000BC) 658 #define RKISP1_CIF_ISP_GAMMA_B_Y5 (RKISP1_CIF_ISP_BASE + 0x000000C0) 659 #define RKISP1_CIF_ISP_GAMMA_B_Y6 (RKISP1_CIF_ISP_BASE + 0x000000C4) 660 #define RKISP1_CIF_ISP_GAMMA_B_Y7 (RKISP1_CIF_ISP_BASE + 0x000000C8) 661 #define RKISP1_CIF_ISP_GAMMA_B_Y8 (RKISP1_CIF_ISP_BASE + 0x000000CC) 662 #define RKISP1_CIF_ISP_GAMMA_B_Y9 (RKISP1_CIF_ISP_BASE + 0x000000D0) 663 #define RKISP1_CIF_ISP_GAMMA_B_Y10 (RKISP1_CIF_ISP_BASE + 0x000000D4) 664 #define RKISP1_CIF_ISP_GAMMA_B_Y11 (RKISP1_CIF_ISP_BASE + 0x000000D8) 665 #define RKISP1_CIF_ISP_GAMMA_B_Y12 (RKISP1_CIF_ISP_BASE + 0x000000DC) 666 #define RKISP1_CIF_ISP_GAMMA_B_Y13 (RKISP1_CIF_ISP_BASE + 0x000000E0) 667 #define RKISP1_CIF_ISP_GAMMA_B_Y14 (RKISP1_CIF_ISP_BASE + 0x000000E4) 668 #define RKISP1_CIF_ISP_GAMMA_B_Y15 (RKISP1_CIF_ISP_BASE + 0x000000E8) 669 #define RKISP1_CIF_ISP_GAMMA_B_Y16 (RKISP1_CIF_ISP_BASE + 0x000000EC) 670 #define RKISP1_CIF_ISP_AWB_PROP (RKISP1_CIF_ISP_BASE + 0x00000110) 671 #define RKISP1_CIF_ISP_AWB_WND_H_OFFS (RKISP1_CIF_ISP_BASE + 0x00000114) 672 #define RKISP1_CIF_ISP_AWB_WND_V_OFFS (RKISP1_CIF_ISP_BASE + 0x00000118) 673 #define RKISP1_CIF_ISP_AWB_WND_H_SIZE (RKISP1_CIF_ISP_BASE + 0x0000011C) 674 #define RKISP1_CIF_ISP_AWB_WND_V_SIZE (RKISP1_CIF_ISP_BASE + 0x00000120) 675 #define RKISP1_CIF_ISP_AWB_FRAMES (RKISP1_CIF_ISP_BASE + 0x00000124) 676 #define RKISP1_CIF_ISP_AWB_REF (RKISP1_CIF_ISP_BASE + 0x00000128) 677 #define RKISP1_CIF_ISP_AWB_THRESH (RKISP1_CIF_ISP_BASE + 0x0000012C) 678 #define RKISP1_CIF_ISP_AWB_GAIN_G (RKISP1_CIF_ISP_BASE + 0x00000138) 679 #define RKISP1_CIF_ISP_AWB_GAIN_RB (RKISP1_CIF_ISP_BASE + 0x0000013C) 680 #define RKISP1_CIF_ISP_AWB_WHITE_CNT (RKISP1_CIF_ISP_BASE + 0x00000140) 681 #define RKISP1_CIF_ISP_AWB_MEAN (RKISP1_CIF_ISP_BASE + 0x00000144) 682 #define RKISP1_CIF_ISP_CC_COEFF_0 (RKISP1_CIF_ISP_BASE + 0x00000170) 683 #define RKISP1_CIF_ISP_CC_COEFF_1 (RKISP1_CIF_ISP_BASE + 0x00000174) 684 #define RKISP1_CIF_ISP_CC_COEFF_2 (RKISP1_CIF_ISP_BASE + 0x00000178) 685 #define RKISP1_CIF_ISP_CC_COEFF_3 (RKISP1_CIF_ISP_BASE + 0x0000017C) 686 #define RKISP1_CIF_ISP_CC_COEFF_4 (RKISP1_CIF_ISP_BASE + 0x00000180) 687 #define RKISP1_CIF_ISP_CC_COEFF_5 (RKISP1_CIF_ISP_BASE + 0x00000184) 688 #define RKISP1_CIF_ISP_CC_COEFF_6 (RKISP1_CIF_ISP_BASE + 0x00000188) 689 #define RKISP1_CIF_ISP_CC_COEFF_7 (RKISP1_CIF_ISP_BASE + 0x0000018C) 690 #define RKISP1_CIF_ISP_CC_COEFF_8 (RKISP1_CIF_ISP_BASE + 0x00000190) 691 #define RKISP1_CIF_ISP_OUT_H_OFFS (RKISP1_CIF_ISP_BASE + 0x00000194) 692 #define RKISP1_CIF_ISP_OUT_V_OFFS (RKISP1_CIF_ISP_BASE + 0x00000198) 693 #define RKISP1_CIF_ISP_OUT_H_SIZE (RKISP1_CIF_ISP_BASE + 0x0000019C) 694 #define RKISP1_CIF_ISP_OUT_V_SIZE (RKISP1_CIF_ISP_BASE + 0x000001A0) 695 #define RKISP1_CIF_ISP_DEMOSAIC (RKISP1_CIF_ISP_BASE + 0x000001A4) 696 #define RKISP1_CIF_ISP_FLAGS_SHD (RKISP1_CIF_ISP_BASE + 0x000001A8) 697 #define RKISP1_CIF_ISP_OUT_H_OFFS_SHD (RKISP1_CIF_ISP_BASE + 0x000001AC) 698 #define RKISP1_CIF_ISP_OUT_V_OFFS_SHD (RKISP1_CIF_ISP_BASE + 0x000001B0) 699 #define RKISP1_CIF_ISP_OUT_H_SIZE_SHD (RKISP1_CIF_ISP_BASE + 0x000001B4) 700 #define RKISP1_CIF_ISP_OUT_V_SIZE_SHD (RKISP1_CIF_ISP_BASE + 0x000001B8) 701 #define RKISP1_CIF_ISP_IMSC (RKISP1_CIF_ISP_BASE + 0x000001BC) 702 #define RKISP1_CIF_ISP_RIS (RKISP1_CIF_ISP_BASE + 0x000001C0) 703 #define RKISP1_CIF_ISP_MIS (RKISP1_CIF_ISP_BASE + 0x000001C4) 704 #define RKISP1_CIF_ISP_ICR (RKISP1_CIF_ISP_BASE + 0x000001C8) 705 #define RKISP1_CIF_ISP_ISR (RKISP1_CIF_ISP_BASE + 0x000001CC) 706 #define RKISP1_CIF_ISP_CT_COEFF_0 (RKISP1_CIF_ISP_BASE + 0x000001D0) 707 #define RKISP1_CIF_ISP_CT_COEFF_1 (RKISP1_CIF_ISP_BASE + 0x000001D4) 708 #define RKISP1_CIF_ISP_CT_COEFF_2 (RKISP1_CIF_ISP_BASE + 0x000001D8) 709 #define RKISP1_CIF_ISP_CT_COEFF_3 (RKISP1_CIF_ISP_BASE + 0x000001DC) 710 #define RKISP1_CIF_ISP_CT_COEFF_4 (RKISP1_CIF_ISP_BASE + 0x000001E0) 711 #define RKISP1_CIF_ISP_CT_COEFF_5 (RKISP1_CIF_ISP_BASE + 0x000001E4) 712 #define RKISP1_CIF_ISP_CT_COEFF_6 (RKISP1_CIF_ISP_BASE + 0x000001E8) 713 #define RKISP1_CIF_ISP_CT_COEFF_7 (RKISP1_CIF_ISP_BASE + 0x000001EC) 714 #define RKISP1_CIF_ISP_CT_COEFF_8 (RKISP1_CIF_ISP_BASE + 0x000001F0) 715 #define RKISP1_CIF_ISP_GAMMA_OUT_MODE (RKISP1_CIF_ISP_BASE + 0x000001F4) 716 #define RKISP1_CIF_ISP_GAMMA_OUT_Y_0 (RKISP1_CIF_ISP_BASE + 0x000001F8) 717 #define RKISP1_CIF_ISP_GAMMA_OUT_Y_1 (RKISP1_CIF_ISP_BASE + 0x000001FC) 718 #define RKISP1_CIF_ISP_GAMMA_OUT_Y_2 (RKISP1_CIF_ISP_BASE + 0x00000200) 719 #define RKISP1_CIF_ISP_GAMMA_OUT_Y_3 (RKISP1_CIF_ISP_BASE + 0x00000204) 720 #define RKISP1_CIF_ISP_GAMMA_OUT_Y_4 (RKISP1_CIF_ISP_BASE + 0x00000208) 721 #define RKISP1_CIF_ISP_GAMMA_OUT_Y_5 (RKISP1_CIF_ISP_BASE + 0x0000020C) 722 #define RKISP1_CIF_ISP_GAMMA_OUT_Y_6 (RKISP1_CIF_ISP_BASE + 0x00000210) 723 #define RKISP1_CIF_ISP_GAMMA_OUT_Y_7 (RKISP1_CIF_ISP_BASE + 0x00000214) 724 #define RKISP1_CIF_ISP_GAMMA_OUT_Y_8 (RKISP1_CIF_ISP_BASE + 0x00000218) 725 #define RKISP1_CIF_ISP_GAMMA_OUT_Y_9 (RKISP1_CIF_ISP_BASE + 0x0000021C) 726 #define RKISP1_CIF_ISP_GAMMA_OUT_Y_10 (RKISP1_CIF_ISP_BASE + 0x00000220) 727 #define RKISP1_CIF_ISP_GAMMA_OUT_Y_11 (RKISP1_CIF_ISP_BASE + 0x00000224) 728 #define RKISP1_CIF_ISP_GAMMA_OUT_Y_12 (RKISP1_CIF_ISP_BASE + 0x00000228) 729 #define RKISP1_CIF_ISP_GAMMA_OUT_Y_13 (RKISP1_CIF_ISP_BASE + 0x0000022C) 730 #define RKISP1_CIF_ISP_GAMMA_OUT_Y_14 (RKISP1_CIF_ISP_BASE + 0x00000230) 731 #define RKISP1_CIF_ISP_GAMMA_OUT_Y_15 (RKISP1_CIF_ISP_BASE + 0x00000234) 732 #define RKISP1_CIF_ISP_GAMMA_OUT_Y_16 (RKISP1_CIF_ISP_BASE + 0x00000238) 733 #define RKISP1_CIF_ISP_ERR (RKISP1_CIF_ISP_BASE + 0x0000023C) 734 #define RKISP1_CIF_ISP_ERR_CLR (RKISP1_CIF_ISP_BASE + 0x00000240) 735 #define RKISP1_CIF_ISP_FRAME_COUNT (RKISP1_CIF_ISP_BASE + 0x00000244) 736 #define RKISP1_CIF_ISP_CT_OFFSET_R (RKISP1_CIF_ISP_BASE + 0x00000248) 737 #define RKISP1_CIF_ISP_CT_OFFSET_G (RKISP1_CIF_ISP_BASE + 0x0000024C) 738 #define RKISP1_CIF_ISP_CT_OFFSET_B (RKISP1_CIF_ISP_BASE + 0x00000250) 739 740 #define RKISP1_CIF_ISP_FLASH_BASE 0x00000660 741 #define RKISP1_CIF_ISP_FLASH_CMD (RKISP1_CIF_ISP_FLASH_BASE + 0x00000000) 742 #define RKISP1_CIF_ISP_FLASH_CONFIG (RKISP1_CIF_ISP_FLASH_BASE + 0x00000004) 743 #define RKISP1_CIF_ISP_FLASH_PREDIV (RKISP1_CIF_ISP_FLASH_BASE + 0x00000008) 744 #define RKISP1_CIF_ISP_FLASH_DELAY (RKISP1_CIF_ISP_FLASH_BASE + 0x0000000C) 745 #define RKISP1_CIF_ISP_FLASH_TIME (RKISP1_CIF_ISP_FLASH_BASE + 0x00000010) 746 #define RKISP1_CIF_ISP_FLASH_MAXP (RKISP1_CIF_ISP_FLASH_BASE + 0x00000014) 747 748 #define RKISP1_CIF_ISP_SH_BASE 0x00000680 749 #define RKISP1_CIF_ISP_SH_CTRL (RKISP1_CIF_ISP_SH_BASE + 0x00000000) 750 #define RKISP1_CIF_ISP_SH_PREDIV (RKISP1_CIF_ISP_SH_BASE + 0x00000004) 751 #define RKISP1_CIF_ISP_SH_DELAY (RKISP1_CIF_ISP_SH_BASE + 0x00000008) 752 #define RKISP1_CIF_ISP_SH_TIME (RKISP1_CIF_ISP_SH_BASE + 0x0000000C) 753 754 #define RKISP1_CIF_C_PROC_BASE 0x00000800 755 #define RKISP1_CIF_C_PROC_CTRL (RKISP1_CIF_C_PROC_BASE + 0x00000000) 756 #define RKISP1_CIF_C_PROC_CONTRAST (RKISP1_CIF_C_PROC_BASE + 0x00000004) 757 #define RKISP1_CIF_C_PROC_BRIGHTNESS (RKISP1_CIF_C_PROC_BASE + 0x00000008) 758 #define RKISP1_CIF_C_PROC_SATURATION (RKISP1_CIF_C_PROC_BASE + 0x0000000C) 759 #define RKISP1_CIF_C_PROC_HUE (RKISP1_CIF_C_PROC_BASE + 0x00000010) 760 761 #define RKISP1_CIF_DUAL_CROP_BASE 0x00000880 762 #define RKISP1_CIF_DUAL_CROP_CTRL (RKISP1_CIF_DUAL_CROP_BASE + 0x00000000) 763 #define RKISP1_CIF_DUAL_CROP_M_H_OFFS (RKISP1_CIF_DUAL_CROP_BASE + 0x00000004) 764 #define RKISP1_CIF_DUAL_CROP_M_V_OFFS (RKISP1_CIF_DUAL_CROP_BASE + 0x00000008) 765 #define RKISP1_CIF_DUAL_CROP_M_H_SIZE (RKISP1_CIF_DUAL_CROP_BASE + 0x0000000C) 766 #define RKISP1_CIF_DUAL_CROP_M_V_SIZE (RKISP1_CIF_DUAL_CROP_BASE + 0x00000010) 767 #define RKISP1_CIF_DUAL_CROP_S_H_OFFS (RKISP1_CIF_DUAL_CROP_BASE + 0x00000014) 768 #define RKISP1_CIF_DUAL_CROP_S_V_OFFS (RKISP1_CIF_DUAL_CROP_BASE + 0x00000018) 769 #define RKISP1_CIF_DUAL_CROP_S_H_SIZE (RKISP1_CIF_DUAL_CROP_BASE + 0x0000001C) 770 #define RKISP1_CIF_DUAL_CROP_S_V_SIZE (RKISP1_CIF_DUAL_CROP_BASE + 0x00000020) 771 #define RKISP1_CIF_DUAL_CROP_M_H_OFFS_SHD (RKISP1_CIF_DUAL_CROP_BASE + 0x00000024) 772 #define RKISP1_CIF_DUAL_CROP_M_V_OFFS_SHD (RKISP1_CIF_DUAL_CROP_BASE + 0x00000028) 773 #define RKISP1_CIF_DUAL_CROP_M_H_SIZE_SHD (RKISP1_CIF_DUAL_CROP_BASE + 0x0000002C) 774 #define RKISP1_CIF_DUAL_CROP_M_V_SIZE_SHD (RKISP1_CIF_DUAL_CROP_BASE + 0x00000030) 775 #define RKISP1_CIF_DUAL_CROP_S_H_OFFS_SHD (RKISP1_CIF_DUAL_CROP_BASE + 0x00000034) 776 #define RKISP1_CIF_DUAL_CROP_S_V_OFFS_SHD (RKISP1_CIF_DUAL_CROP_BASE + 0x00000038) 777 #define RKISP1_CIF_DUAL_CROP_S_H_SIZE_SHD (RKISP1_CIF_DUAL_CROP_BASE + 0x0000003C) 778 #define RKISP1_CIF_DUAL_CROP_S_V_SIZE_SHD (RKISP1_CIF_DUAL_CROP_BASE + 0x00000040) 779 780 #define RKISP1_CIF_MRSZ_BASE 0x00000C00 781 #define RKISP1_CIF_MRSZ_CTRL (RKISP1_CIF_MRSZ_BASE + 0x00000000) 782 #define RKISP1_CIF_MRSZ_SCALE_HY (RKISP1_CIF_MRSZ_BASE + 0x00000004) 783 #define RKISP1_CIF_MRSZ_SCALE_HCB (RKISP1_CIF_MRSZ_BASE + 0x00000008) 784 #define RKISP1_CIF_MRSZ_SCALE_HCR (RKISP1_CIF_MRSZ_BASE + 0x0000000C) 785 #define RKISP1_CIF_MRSZ_SCALE_VY (RKISP1_CIF_MRSZ_BASE + 0x00000010) 786 #define RKISP1_CIF_MRSZ_SCALE_VC (RKISP1_CIF_MRSZ_BASE + 0x00000014) 787 #define RKISP1_CIF_MRSZ_PHASE_HY (RKISP1_CIF_MRSZ_BASE + 0x00000018) 788 #define RKISP1_CIF_MRSZ_PHASE_HC (RKISP1_CIF_MRSZ_BASE + 0x0000001C) 789 #define RKISP1_CIF_MRSZ_PHASE_VY (RKISP1_CIF_MRSZ_BASE + 0x00000020) 790 #define RKISP1_CIF_MRSZ_PHASE_VC (RKISP1_CIF_MRSZ_BASE + 0x00000024) 791 #define RKISP1_CIF_MRSZ_SCALE_LUT_ADDR (RKISP1_CIF_MRSZ_BASE + 0x00000028) 792 #define RKISP1_CIF_MRSZ_SCALE_LUT (RKISP1_CIF_MRSZ_BASE + 0x0000002C) 793 #define RKISP1_CIF_MRSZ_CTRL_SHD (RKISP1_CIF_MRSZ_BASE + 0x00000030) 794 #define RKISP1_CIF_MRSZ_SCALE_HY_SHD (RKISP1_CIF_MRSZ_BASE + 0x00000034) 795 #define RKISP1_CIF_MRSZ_SCALE_HCB_SHD (RKISP1_CIF_MRSZ_BASE + 0x00000038) 796 #define RKISP1_CIF_MRSZ_SCALE_HCR_SHD (RKISP1_CIF_MRSZ_BASE + 0x0000003C) 797 #define RKISP1_CIF_MRSZ_SCALE_VY_SHD (RKISP1_CIF_MRSZ_BASE + 0x00000040) 798 #define RKISP1_CIF_MRSZ_SCALE_VC_SHD (RKISP1_CIF_MRSZ_BASE + 0x00000044) 799 #define RKISP1_CIF_MRSZ_PHASE_HY_SHD (RKISP1_CIF_MRSZ_BASE + 0x00000048) 800 #define RKISP1_CIF_MRSZ_PHASE_HC_SHD (RKISP1_CIF_MRSZ_BASE + 0x0000004C) 801 #define RKISP1_CIF_MRSZ_PHASE_VY_SHD (RKISP1_CIF_MRSZ_BASE + 0x00000050) 802 #define RKISP1_CIF_MRSZ_PHASE_VC_SHD (RKISP1_CIF_MRSZ_BASE + 0x00000054) 803 804 #define RKISP1_CIF_SRSZ_BASE 0x00001000 805 #define RKISP1_CIF_SRSZ_CTRL (RKISP1_CIF_SRSZ_BASE + 0x00000000) 806 #define RKISP1_CIF_SRSZ_SCALE_HY (RKISP1_CIF_SRSZ_BASE + 0x00000004) 807 #define RKISP1_CIF_SRSZ_SCALE_HCB (RKISP1_CIF_SRSZ_BASE + 0x00000008) 808 #define RKISP1_CIF_SRSZ_SCALE_HCR (RKISP1_CIF_SRSZ_BASE + 0x0000000C) 809 #define RKISP1_CIF_SRSZ_SCALE_VY (RKISP1_CIF_SRSZ_BASE + 0x00000010) 810 #define RKISP1_CIF_SRSZ_SCALE_VC (RKISP1_CIF_SRSZ_BASE + 0x00000014) 811 #define RKISP1_CIF_SRSZ_PHASE_HY (RKISP1_CIF_SRSZ_BASE + 0x00000018) 812 #define RKISP1_CIF_SRSZ_PHASE_HC (RKISP1_CIF_SRSZ_BASE + 0x0000001C) 813 #define RKISP1_CIF_SRSZ_PHASE_VY (RKISP1_CIF_SRSZ_BASE + 0x00000020) 814 #define RKISP1_CIF_SRSZ_PHASE_VC (RKISP1_CIF_SRSZ_BASE + 0x00000024) 815 #define RKISP1_CIF_SRSZ_SCALE_LUT_ADDR (RKISP1_CIF_SRSZ_BASE + 0x00000028) 816 #define RKISP1_CIF_SRSZ_SCALE_LUT (RKISP1_CIF_SRSZ_BASE + 0x0000002C) 817 #define RKISP1_CIF_SRSZ_CTRL_SHD (RKISP1_CIF_SRSZ_BASE + 0x00000030) 818 #define RKISP1_CIF_SRSZ_SCALE_HY_SHD (RKISP1_CIF_SRSZ_BASE + 0x00000034) 819 #define RKISP1_CIF_SRSZ_SCALE_HCB_SHD (RKISP1_CIF_SRSZ_BASE + 0x00000038) 820 #define RKISP1_CIF_SRSZ_SCALE_HCR_SHD (RKISP1_CIF_SRSZ_BASE + 0x0000003C) 821 #define RKISP1_CIF_SRSZ_SCALE_VY_SHD (RKISP1_CIF_SRSZ_BASE + 0x00000040) 822 #define RKISP1_CIF_SRSZ_SCALE_VC_SHD (RKISP1_CIF_SRSZ_BASE + 0x00000044) 823 #define RKISP1_CIF_SRSZ_PHASE_HY_SHD (RKISP1_CIF_SRSZ_BASE + 0x00000048) 824 #define RKISP1_CIF_SRSZ_PHASE_HC_SHD (RKISP1_CIF_SRSZ_BASE + 0x0000004C) 825 #define RKISP1_CIF_SRSZ_PHASE_VY_SHD (RKISP1_CIF_SRSZ_BASE + 0x00000050) 826 #define RKISP1_CIF_SRSZ_PHASE_VC_SHD (RKISP1_CIF_SRSZ_BASE + 0x00000054) 827 828 #define RKISP1_CIF_MI_BASE 0x00001400 829 #define RKISP1_CIF_MI_CTRL (RKISP1_CIF_MI_BASE + 0x00000000) 830 #define RKISP1_CIF_MI_INIT (RKISP1_CIF_MI_BASE + 0x00000004) 831 #define RKISP1_CIF_MI_MP_Y_BASE_AD_INIT (RKISP1_CIF_MI_BASE + 0x00000008) 832 #define RKISP1_CIF_MI_MP_Y_SIZE_INIT (RKISP1_CIF_MI_BASE + 0x0000000C) 833 #define RKISP1_CIF_MI_MP_Y_OFFS_CNT_INIT (RKISP1_CIF_MI_BASE + 0x00000010) 834 #define RKISP1_CIF_MI_MP_Y_OFFS_CNT_START (RKISP1_CIF_MI_BASE + 0x00000014) 835 #define RKISP1_CIF_MI_MP_Y_IRQ_OFFS_INIT (RKISP1_CIF_MI_BASE + 0x00000018) 836 #define RKISP1_CIF_MI_MP_CB_BASE_AD_INIT (RKISP1_CIF_MI_BASE + 0x0000001C) 837 #define RKISP1_CIF_MI_MP_CB_SIZE_INIT (RKISP1_CIF_MI_BASE + 0x00000020) 838 #define RKISP1_CIF_MI_MP_CB_OFFS_CNT_INIT (RKISP1_CIF_MI_BASE + 0x00000024) 839 #define RKISP1_CIF_MI_MP_CB_OFFS_CNT_START (RKISP1_CIF_MI_BASE + 0x00000028) 840 #define RKISP1_CIF_MI_MP_CR_BASE_AD_INIT (RKISP1_CIF_MI_BASE + 0x0000002C) 841 #define RKISP1_CIF_MI_MP_CR_SIZE_INIT (RKISP1_CIF_MI_BASE + 0x00000030) 842 #define RKISP1_CIF_MI_MP_CR_OFFS_CNT_INIT (RKISP1_CIF_MI_BASE + 0x00000034) 843 #define RKISP1_CIF_MI_MP_CR_OFFS_CNT_START (RKISP1_CIF_MI_BASE + 0x00000038) 844 #define RKISP1_CIF_MI_SP_Y_BASE_AD_INIT (RKISP1_CIF_MI_BASE + 0x0000003C) 845 #define RKISP1_CIF_MI_SP_Y_SIZE_INIT (RKISP1_CIF_MI_BASE + 0x00000040) 846 #define RKISP1_CIF_MI_SP_Y_OFFS_CNT_INIT (RKISP1_CIF_MI_BASE + 0x00000044) 847 #define RKISP1_CIF_MI_SP_Y_OFFS_CNT_START (RKISP1_CIF_MI_BASE + 0x00000048) 848 #define RKISP1_CIF_MI_SP_Y_LLENGTH (RKISP1_CIF_MI_BASE + 0x0000004C) 849 #define RKISP1_CIF_MI_SP_CB_BASE_AD_INIT (RKISP1_CIF_MI_BASE + 0x00000050) 850 #define RKISP1_CIF_MI_SP_CB_SIZE_INIT (RKISP1_CIF_MI_BASE + 0x00000054) 851 #define RKISP1_CIF_MI_SP_CB_OFFS_CNT_INIT (RKISP1_CIF_MI_BASE + 0x00000058) 852 #define RKISP1_CIF_MI_SP_CB_OFFS_CNT_START (RKISP1_CIF_MI_BASE + 0x0000005C) 853 #define RKISP1_CIF_MI_SP_CR_BASE_AD_INIT (RKISP1_CIF_MI_BASE + 0x00000060) 854 #define RKISP1_CIF_MI_SP_CR_SIZE_INIT (RKISP1_CIF_MI_BASE + 0x00000064) 855 #define RKISP1_CIF_MI_SP_CR_OFFS_CNT_INIT (RKISP1_CIF_MI_BASE + 0x00000068) 856 #define RKISP1_CIF_MI_SP_CR_OFFS_CNT_START (RKISP1_CIF_MI_BASE + 0x0000006C) 857 #define RKISP1_CIF_MI_BYTE_CNT (RKISP1_CIF_MI_BASE + 0x00000070) 858 #define RKISP1_CIF_MI_CTRL_SHD (RKISP1_CIF_MI_BASE + 0x00000074) 859 #define RKISP1_CIF_MI_MP_Y_BASE_AD_SHD (RKISP1_CIF_MI_BASE + 0x00000078) 860 #define RKISP1_CIF_MI_MP_Y_SIZE_SHD (RKISP1_CIF_MI_BASE + 0x0000007C) 861 #define RKISP1_CIF_MI_MP_Y_OFFS_CNT_SHD (RKISP1_CIF_MI_BASE + 0x00000080) 862 #define RKISP1_CIF_MI_MP_Y_IRQ_OFFS_SHD (RKISP1_CIF_MI_BASE + 0x00000084) 863 #define RKISP1_CIF_MI_MP_CB_BASE_AD_SHD (RKISP1_CIF_MI_BASE + 0x00000088) 864 #define RKISP1_CIF_MI_MP_CB_SIZE_SHD (RKISP1_CIF_MI_BASE + 0x0000008C) 865 #define RKISP1_CIF_MI_MP_CB_OFFS_CNT_SHD (RKISP1_CIF_MI_BASE + 0x00000090) 866 #define RKISP1_CIF_MI_MP_CR_BASE_AD_SHD (RKISP1_CIF_MI_BASE + 0x00000094) 867 #define RKISP1_CIF_MI_MP_CR_SIZE_SHD (RKISP1_CIF_MI_BASE + 0x00000098) 868 #define RKISP1_CIF_MI_MP_CR_OFFS_CNT_SHD (RKISP1_CIF_MI_BASE + 0x0000009C) 869 #define RKISP1_CIF_MI_SP_Y_BASE_AD_SHD (RKISP1_CIF_MI_BASE + 0x000000A0) 870 #define RKISP1_CIF_MI_SP_Y_SIZE_SHD (RKISP1_CIF_MI_BASE + 0x000000A4) 871 #define RKISP1_CIF_MI_SP_Y_OFFS_CNT_SHD (RKISP1_CIF_MI_BASE + 0x000000A8) 872 #define RKISP1_CIF_MI_SP_CB_BASE_AD_SHD (RKISP1_CIF_MI_BASE + 0x000000B0) 873 #define RKISP1_CIF_MI_SP_CB_SIZE_SHD (RKISP1_CIF_MI_BASE + 0x000000B4) 874 #define RKISP1_CIF_MI_SP_CB_OFFS_CNT_SHD (RKISP1_CIF_MI_BASE + 0x000000B8) 875 #define RKISP1_CIF_MI_SP_CR_BASE_AD_SHD (RKISP1_CIF_MI_BASE + 0x000000BC) 876 #define RKISP1_CIF_MI_SP_CR_SIZE_SHD (RKISP1_CIF_MI_BASE + 0x000000C0) 877 #define RKISP1_CIF_MI_SP_CR_OFFS_CNT_SHD (RKISP1_CIF_MI_BASE + 0x000000C4) 878 #define RKISP1_CIF_MI_DMA_Y_PIC_START_AD (RKISP1_CIF_MI_BASE + 0x000000C8) 879 #define RKISP1_CIF_MI_DMA_Y_PIC_WIDTH (RKISP1_CIF_MI_BASE + 0x000000CC) 880 #define RKISP1_CIF_MI_DMA_Y_LLENGTH (RKISP1_CIF_MI_BASE + 0x000000D0) 881 #define RKISP1_CIF_MI_DMA_Y_PIC_SIZE (RKISP1_CIF_MI_BASE + 0x000000D4) 882 #define RKISP1_CIF_MI_DMA_CB_PIC_START_AD (RKISP1_CIF_MI_BASE + 0x000000D8) 883 #define RKISP1_CIF_MI_DMA_CR_PIC_START_AD (RKISP1_CIF_MI_BASE + 0x000000E8) 884 #define RKISP1_CIF_MI_IMSC (RKISP1_CIF_MI_BASE + 0x000000F8) 885 #define RKISP1_CIF_MI_RIS (RKISP1_CIF_MI_BASE + 0x000000FC) 886 #define RKISP1_CIF_MI_MIS (RKISP1_CIF_MI_BASE + 0x00000100) 887 #define RKISP1_CIF_MI_ICR (RKISP1_CIF_MI_BASE + 0x00000104) 888 #define RKISP1_CIF_MI_ISR (RKISP1_CIF_MI_BASE + 0x00000108) 889 #define RKISP1_CIF_MI_STATUS (RKISP1_CIF_MI_BASE + 0x0000010C) 890 #define RKISP1_CIF_MI_STATUS_CLR (RKISP1_CIF_MI_BASE + 0x00000110) 891 #define RKISP1_CIF_MI_SP_Y_PIC_WIDTH (RKISP1_CIF_MI_BASE + 0x00000114) 892 #define RKISP1_CIF_MI_SP_Y_PIC_HEIGHT (RKISP1_CIF_MI_BASE + 0x00000118) 893 #define RKISP1_CIF_MI_SP_Y_PIC_SIZE (RKISP1_CIF_MI_BASE + 0x0000011C) 894 #define RKISP1_CIF_MI_DMA_CTRL (RKISP1_CIF_MI_BASE + 0x00000120) 895 #define RKISP1_CIF_MI_DMA_START (RKISP1_CIF_MI_BASE + 0x00000124) 896 #define RKISP1_CIF_MI_DMA_STATUS (RKISP1_CIF_MI_BASE + 0x00000128) 897 #define RKISP1_CIF_MI_PIXEL_COUNT (RKISP1_CIF_MI_BASE + 0x0000012C) 898 #define RKISP1_CIF_MI_MP_Y_BASE_AD_INIT2 (RKISP1_CIF_MI_BASE + 0x00000130) 899 #define RKISP1_CIF_MI_MP_CB_BASE_AD_INIT2 (RKISP1_CIF_MI_BASE + 0x00000134) 900 #define RKISP1_CIF_MI_MP_CR_BASE_AD_INIT2 (RKISP1_CIF_MI_BASE + 0x00000138) 901 #define RKISP1_CIF_MI_SP_Y_BASE_AD_INIT2 (RKISP1_CIF_MI_BASE + 0x0000013C) 902 #define RKISP1_CIF_MI_SP_CB_BASE_AD_INIT2 (RKISP1_CIF_MI_BASE + 0x00000140) 903 #define RKISP1_CIF_MI_SP_CR_BASE_AD_INIT2 (RKISP1_CIF_MI_BASE + 0x00000144) 904 #define RKISP1_CIF_MI_XTD_FORMAT_CTRL (RKISP1_CIF_MI_BASE + 0x00000148) 905 906 #define RKISP1_CIF_SMIA_BASE 0x00001A00 907 #define RKISP1_CIF_SMIA_CTRL (RKISP1_CIF_SMIA_BASE + 0x00000000) 908 #define RKISP1_CIF_SMIA_STATUS (RKISP1_CIF_SMIA_BASE + 0x00000004) 909 #define RKISP1_CIF_SMIA_IMSC (RKISP1_CIF_SMIA_BASE + 0x00000008) 910 #define RKISP1_CIF_SMIA_RIS (RKISP1_CIF_SMIA_BASE + 0x0000000C) 911 #define RKISP1_CIF_SMIA_MIS (RKISP1_CIF_SMIA_BASE + 0x00000010) 912 #define RKISP1_CIF_SMIA_ICR (RKISP1_CIF_SMIA_BASE + 0x00000014) 913 #define RKISP1_CIF_SMIA_ISR (RKISP1_CIF_SMIA_BASE + 0x00000018) 914 #define RKISP1_CIF_SMIA_DATA_FORMAT_SEL (RKISP1_CIF_SMIA_BASE + 0x0000001C) 915 #define RKISP1_CIF_SMIA_SOF_EMB_DATA_LINES (RKISP1_CIF_SMIA_BASE + 0x00000020) 916 #define RKISP1_CIF_SMIA_EMB_HSTART (RKISP1_CIF_SMIA_BASE + 0x00000024) 917 #define RKISP1_CIF_SMIA_EMB_HSIZE (RKISP1_CIF_SMIA_BASE + 0x00000028) 918 #define RKISP1_CIF_SMIA_EMB_VSTART (RKISP1_CIF_SMIA_BASE + 0x0000002c) 919 #define RKISP1_CIF_SMIA_NUM_LINES (RKISP1_CIF_SMIA_BASE + 0x00000030) 920 #define RKISP1_CIF_SMIA_EMB_DATA_FIFO (RKISP1_CIF_SMIA_BASE + 0x00000034) 921 #define RKISP1_CIF_SMIA_EMB_DATA_WATERMARK (RKISP1_CIF_SMIA_BASE + 0x00000038) 922 923 #define RKISP1_CIF_MIPI_BASE 0x00001C00 924 #define RKISP1_CIF_MIPI_CTRL (RKISP1_CIF_MIPI_BASE + 0x00000000) 925 #define RKISP1_CIF_MIPI_STATUS (RKISP1_CIF_MIPI_BASE + 0x00000004) 926 #define RKISP1_CIF_MIPI_IMSC (RKISP1_CIF_MIPI_BASE + 0x00000008) 927 #define RKISP1_CIF_MIPI_RIS (RKISP1_CIF_MIPI_BASE + 0x0000000C) 928 #define RKISP1_CIF_MIPI_MIS (RKISP1_CIF_MIPI_BASE + 0x00000010) 929 #define RKISP1_CIF_MIPI_ICR (RKISP1_CIF_MIPI_BASE + 0x00000014) 930 #define RKISP1_CIF_MIPI_ISR (RKISP1_CIF_MIPI_BASE + 0x00000018) 931 #define RKISP1_CIF_MIPI_CUR_DATA_ID (RKISP1_CIF_MIPI_BASE + 0x0000001C) 932 #define RKISP1_CIF_MIPI_IMG_DATA_SEL (RKISP1_CIF_MIPI_BASE + 0x00000020) 933 #define RKISP1_CIF_MIPI_ADD_DATA_SEL_1 (RKISP1_CIF_MIPI_BASE + 0x00000024) 934 #define RKISP1_CIF_MIPI_ADD_DATA_SEL_2 (RKISP1_CIF_MIPI_BASE + 0x00000028) 935 #define RKISP1_CIF_MIPI_ADD_DATA_SEL_3 (RKISP1_CIF_MIPI_BASE + 0x0000002C) 936 #define RKISP1_CIF_MIPI_ADD_DATA_SEL_4 (RKISP1_CIF_MIPI_BASE + 0x00000030) 937 #define RKISP1_CIF_MIPI_ADD_DATA_FIFO (RKISP1_CIF_MIPI_BASE + 0x00000034) 938 #define RKISP1_CIF_MIPI_FIFO_FILL_LEVEL (RKISP1_CIF_MIPI_BASE + 0x00000038) 939 #define RKISP1_CIF_MIPI_COMPRESSED_MODE (RKISP1_CIF_MIPI_BASE + 0x0000003C) 940 #define RKISP1_CIF_MIPI_FRAME (RKISP1_CIF_MIPI_BASE + 0x00000040) 941 #define RKISP1_CIF_MIPI_GEN_SHORT_DT (RKISP1_CIF_MIPI_BASE + 0x00000044) 942 #define RKISP1_CIF_MIPI_GEN_SHORT_8_9 (RKISP1_CIF_MIPI_BASE + 0x00000048) 943 #define RKISP1_CIF_MIPI_GEN_SHORT_A_B (RKISP1_CIF_MIPI_BASE + 0x0000004C) 944 #define RKISP1_CIF_MIPI_GEN_SHORT_C_D (RKISP1_CIF_MIPI_BASE + 0x00000050) 945 #define RKISP1_CIF_MIPI_GEN_SHORT_E_F (RKISP1_CIF_MIPI_BASE + 0x00000054) 946 947 #define RKISP1_CIF_ISP_AFM_BASE 0x00002000 948 #define RKISP1_CIF_ISP_AFM_CTRL (RKISP1_CIF_ISP_AFM_BASE + 0x00000000) 949 #define RKISP1_CIF_ISP_AFM_LT_A (RKISP1_CIF_ISP_AFM_BASE + 0x00000004) 950 #define RKISP1_CIF_ISP_AFM_RB_A (RKISP1_CIF_ISP_AFM_BASE + 0x00000008) 951 #define RKISP1_CIF_ISP_AFM_LT_B (RKISP1_CIF_ISP_AFM_BASE + 0x0000000C) 952 #define RKISP1_CIF_ISP_AFM_RB_B (RKISP1_CIF_ISP_AFM_BASE + 0x00000010) 953 #define RKISP1_CIF_ISP_AFM_LT_C (RKISP1_CIF_ISP_AFM_BASE + 0x00000014) 954 #define RKISP1_CIF_ISP_AFM_RB_C (RKISP1_CIF_ISP_AFM_BASE + 0x00000018) 955 #define RKISP1_CIF_ISP_AFM_THRES (RKISP1_CIF_ISP_AFM_BASE + 0x0000001C) 956 #define RKISP1_CIF_ISP_AFM_VAR_SHIFT (RKISP1_CIF_ISP_AFM_BASE + 0x00000020) 957 #define RKISP1_CIF_ISP_AFM_SUM_A (RKISP1_CIF_ISP_AFM_BASE + 0x00000024) 958 #define RKISP1_CIF_ISP_AFM_SUM_B (RKISP1_CIF_ISP_AFM_BASE + 0x00000028) 959 #define RKISP1_CIF_ISP_AFM_SUM_C (RKISP1_CIF_ISP_AFM_BASE + 0x0000002C) 960 #define RKISP1_CIF_ISP_AFM_LUM_A (RKISP1_CIF_ISP_AFM_BASE + 0x00000030) 961 #define RKISP1_CIF_ISP_AFM_LUM_B (RKISP1_CIF_ISP_AFM_BASE + 0x00000034) 962 #define RKISP1_CIF_ISP_AFM_LUM_C (RKISP1_CIF_ISP_AFM_BASE + 0x00000038) 963 964 #define RKISP1_CIF_ISP_LSC_BASE 0x00002200 965 #define RKISP1_CIF_ISP_LSC_CTRL (RKISP1_CIF_ISP_LSC_BASE + 0x00000000) 966 #define RKISP1_CIF_ISP_LSC_R_TABLE_ADDR (RKISP1_CIF_ISP_LSC_BASE + 0x00000004) 967 #define RKISP1_CIF_ISP_LSC_GR_TABLE_ADDR (RKISP1_CIF_ISP_LSC_BASE + 0x00000008) 968 #define RKISP1_CIF_ISP_LSC_B_TABLE_ADDR (RKISP1_CIF_ISP_LSC_BASE + 0x0000000C) 969 #define RKISP1_CIF_ISP_LSC_GB_TABLE_ADDR (RKISP1_CIF_ISP_LSC_BASE + 0x00000010) 970 #define RKISP1_CIF_ISP_LSC_R_TABLE_DATA (RKISP1_CIF_ISP_LSC_BASE + 0x00000014) 971 #define RKISP1_CIF_ISP_LSC_GR_TABLE_DATA (RKISP1_CIF_ISP_LSC_BASE + 0x00000018) 972 #define RKISP1_CIF_ISP_LSC_B_TABLE_DATA (RKISP1_CIF_ISP_LSC_BASE + 0x0000001C) 973 #define RKISP1_CIF_ISP_LSC_GB_TABLE_DATA (RKISP1_CIF_ISP_LSC_BASE + 0x00000020) 974 #define RKISP1_CIF_ISP_LSC_XGRAD_01 (RKISP1_CIF_ISP_LSC_BASE + 0x00000024) 975 #define RKISP1_CIF_ISP_LSC_XGRAD_23 (RKISP1_CIF_ISP_LSC_BASE + 0x00000028) 976 #define RKISP1_CIF_ISP_LSC_XGRAD_45 (RKISP1_CIF_ISP_LSC_BASE + 0x0000002C) 977 #define RKISP1_CIF_ISP_LSC_XGRAD_67 (RKISP1_CIF_ISP_LSC_BASE + 0x00000030) 978 #define RKISP1_CIF_ISP_LSC_YGRAD_01 (RKISP1_CIF_ISP_LSC_BASE + 0x00000034) 979 #define RKISP1_CIF_ISP_LSC_YGRAD_23 (RKISP1_CIF_ISP_LSC_BASE + 0x00000038) 980 #define RKISP1_CIF_ISP_LSC_YGRAD_45 (RKISP1_CIF_ISP_LSC_BASE + 0x0000003C) 981 #define RKISP1_CIF_ISP_LSC_YGRAD_67 (RKISP1_CIF_ISP_LSC_BASE + 0x00000040) 982 #define RKISP1_CIF_ISP_LSC_XSIZE_01 (RKISP1_CIF_ISP_LSC_BASE + 0x00000044) 983 #define RKISP1_CIF_ISP_LSC_XSIZE_23 (RKISP1_CIF_ISP_LSC_BASE + 0x00000048) 984 #define RKISP1_CIF_ISP_LSC_XSIZE_45 (RKISP1_CIF_ISP_LSC_BASE + 0x0000004C) 985 #define RKISP1_CIF_ISP_LSC_XSIZE_67 (RKISP1_CIF_ISP_LSC_BASE + 0x00000050) 986 #define RKISP1_CIF_ISP_LSC_YSIZE_01 (RKISP1_CIF_ISP_LSC_BASE + 0x00000054) 987 #define RKISP1_CIF_ISP_LSC_YSIZE_23 (RKISP1_CIF_ISP_LSC_BASE + 0x00000058) 988 #define RKISP1_CIF_ISP_LSC_YSIZE_45 (RKISP1_CIF_ISP_LSC_BASE + 0x0000005C) 989 #define RKISP1_CIF_ISP_LSC_YSIZE_67 (RKISP1_CIF_ISP_LSC_BASE + 0x00000060) 990 #define RKISP1_CIF_ISP_LSC_TABLE_SEL (RKISP1_CIF_ISP_LSC_BASE + 0x00000064) 991 #define RKISP1_CIF_ISP_LSC_STATUS (RKISP1_CIF_ISP_LSC_BASE + 0x00000068) 992 993 #define RKISP1_CIF_ISP_IS_BASE 0x00002300 994 #define RKISP1_CIF_ISP_IS_CTRL (RKISP1_CIF_ISP_IS_BASE + 0x00000000) 995 #define RKISP1_CIF_ISP_IS_RECENTER (RKISP1_CIF_ISP_IS_BASE + 0x00000004) 996 #define RKISP1_CIF_ISP_IS_H_OFFS (RKISP1_CIF_ISP_IS_BASE + 0x00000008) 997 #define RKISP1_CIF_ISP_IS_V_OFFS (RKISP1_CIF_ISP_IS_BASE + 0x0000000C) 998 #define RKISP1_CIF_ISP_IS_H_SIZE (RKISP1_CIF_ISP_IS_BASE + 0x00000010) 999 #define RKISP1_CIF_ISP_IS_V_SIZE (RKISP1_CIF_ISP_IS_BASE + 0x00000014) 1000 #define RKISP1_CIF_ISP_IS_MAX_DX (RKISP1_CIF_ISP_IS_BASE + 0x00000018) 1001 #define RKISP1_CIF_ISP_IS_MAX_DY (RKISP1_CIF_ISP_IS_BASE + 0x0000001C) 1002 #define RKISP1_CIF_ISP_IS_DISPLACE (RKISP1_CIF_ISP_IS_BASE + 0x00000020) 1003 #define RKISP1_CIF_ISP_IS_H_OFFS_SHD (RKISP1_CIF_ISP_IS_BASE + 0x00000024) 1004 #define RKISP1_CIF_ISP_IS_V_OFFS_SHD (RKISP1_CIF_ISP_IS_BASE + 0x00000028) 1005 #define RKISP1_CIF_ISP_IS_H_SIZE_SHD (RKISP1_CIF_ISP_IS_BASE + 0x0000002C) 1006 #define RKISP1_CIF_ISP_IS_V_SIZE_SHD (RKISP1_CIF_ISP_IS_BASE + 0x00000030) 1007 1008 #define RKISP1_CIF_ISP_HIST_BASE 0x00002400 1009 1010 #define RKISP1_CIF_ISP_HIST_PROP (RKISP1_CIF_ISP_HIST_BASE + 0x00000000) 1011 #define RKISP1_CIF_ISP_HIST_H_OFFS (RKISP1_CIF_ISP_HIST_BASE + 0x00000004) 1012 #define RKISP1_CIF_ISP_HIST_V_OFFS (RKISP1_CIF_ISP_HIST_BASE + 0x00000008) 1013 #define RKISP1_CIF_ISP_HIST_H_SIZE (RKISP1_CIF_ISP_HIST_BASE + 0x0000000C) 1014 #define RKISP1_CIF_ISP_HIST_V_SIZE (RKISP1_CIF_ISP_HIST_BASE + 0x00000010) 1015 #define RKISP1_CIF_ISP_HIST_BIN_0 (RKISP1_CIF_ISP_HIST_BASE + 0x00000014) 1016 #define RKISP1_CIF_ISP_HIST_BIN_1 (RKISP1_CIF_ISP_HIST_BASE + 0x00000018) 1017 #define RKISP1_CIF_ISP_HIST_BIN_2 (RKISP1_CIF_ISP_HIST_BASE + 0x0000001C) 1018 #define RKISP1_CIF_ISP_HIST_BIN_3 (RKISP1_CIF_ISP_HIST_BASE + 0x00000020) 1019 #define RKISP1_CIF_ISP_HIST_BIN_4 (RKISP1_CIF_ISP_HIST_BASE + 0x00000024) 1020 #define RKISP1_CIF_ISP_HIST_BIN_5 (RKISP1_CIF_ISP_HIST_BASE + 0x00000028) 1021 #define RKISP1_CIF_ISP_HIST_BIN_6 (RKISP1_CIF_ISP_HIST_BASE + 0x0000002C) 1022 #define RKISP1_CIF_ISP_HIST_BIN_7 (RKISP1_CIF_ISP_HIST_BASE + 0x00000030) 1023 #define RKISP1_CIF_ISP_HIST_BIN_8 (RKISP1_CIF_ISP_HIST_BASE + 0x00000034) 1024 #define RKISP1_CIF_ISP_HIST_BIN_9 (RKISP1_CIF_ISP_HIST_BASE + 0x00000038) 1025 #define RKISP1_CIF_ISP_HIST_BIN_10 (RKISP1_CIF_ISP_HIST_BASE + 0x0000003C) 1026 #define RKISP1_CIF_ISP_HIST_BIN_11 (RKISP1_CIF_ISP_HIST_BASE + 0x00000040) 1027 #define RKISP1_CIF_ISP_HIST_BIN_12 (RKISP1_CIF_ISP_HIST_BASE + 0x00000044) 1028 #define RKISP1_CIF_ISP_HIST_BIN_13 (RKISP1_CIF_ISP_HIST_BASE + 0x00000048) 1029 #define RKISP1_CIF_ISP_HIST_BIN_14 (RKISP1_CIF_ISP_HIST_BASE + 0x0000004C) 1030 #define RKISP1_CIF_ISP_HIST_BIN_15 (RKISP1_CIF_ISP_HIST_BASE + 0x00000050) 1031 #define RKISP1_CIF_ISP_HIST_WEIGHT_00TO30 (RKISP1_CIF_ISP_HIST_BASE + 0x00000054) 1032 #define RKISP1_CIF_ISP_HIST_WEIGHT_40TO21 (RKISP1_CIF_ISP_HIST_BASE + 0x00000058) 1033 #define RKISP1_CIF_ISP_HIST_WEIGHT_31TO12 (RKISP1_CIF_ISP_HIST_BASE + 0x0000005C) 1034 #define RKISP1_CIF_ISP_HIST_WEIGHT_22TO03 (RKISP1_CIF_ISP_HIST_BASE + 0x00000060) 1035 #define RKISP1_CIF_ISP_HIST_WEIGHT_13TO43 (RKISP1_CIF_ISP_HIST_BASE + 0x00000064) 1036 #define RKISP1_CIF_ISP_HIST_WEIGHT_04TO34 (RKISP1_CIF_ISP_HIST_BASE + 0x00000068) 1037 #define RKISP1_CIF_ISP_HIST_WEIGHT_44 (RKISP1_CIF_ISP_HIST_BASE + 0x0000006C) 1038 1039 #define RKISP1_CIF_ISP_FILT_BASE 0x00002500 1040 #define RKISP1_CIF_ISP_FILT_MODE (RKISP1_CIF_ISP_FILT_BASE + 0x00000000) 1041 #define RKISP1_CIF_ISP_FILT_THRESH_BL0 (RKISP1_CIF_ISP_FILT_BASE + 0x00000028) 1042 #define RKISP1_CIF_ISP_FILT_THRESH_BL1 (RKISP1_CIF_ISP_FILT_BASE + 0x0000002c) 1043 #define RKISP1_CIF_ISP_FILT_THRESH_SH0 (RKISP1_CIF_ISP_FILT_BASE + 0x00000030) 1044 #define RKISP1_CIF_ISP_FILT_THRESH_SH1 (RKISP1_CIF_ISP_FILT_BASE + 0x00000034) 1045 #define RKISP1_CIF_ISP_FILT_LUM_WEIGHT (RKISP1_CIF_ISP_FILT_BASE + 0x00000038) 1046 #define RKISP1_CIF_ISP_FILT_FAC_SH1 (RKISP1_CIF_ISP_FILT_BASE + 0x0000003c) 1047 #define RKISP1_CIF_ISP_FILT_FAC_SH0 (RKISP1_CIF_ISP_FILT_BASE + 0x00000040) 1048 #define RKISP1_CIF_ISP_FILT_FAC_MID (RKISP1_CIF_ISP_FILT_BASE + 0x00000044) 1049 #define RKISP1_CIF_ISP_FILT_FAC_BL0 (RKISP1_CIF_ISP_FILT_BASE + 0x00000048) 1050 #define RKISP1_CIF_ISP_FILT_FAC_BL1 (RKISP1_CIF_ISP_FILT_BASE + 0x0000004C) 1051 1052 #define RKISP1_CIF_ISP_CAC_BASE 0x00002580 1053 #define RKISP1_CIF_ISP_CAC_CTRL (RKISP1_CIF_ISP_CAC_BASE + 0x00000000) 1054 #define RKISP1_CIF_ISP_CAC_COUNT_START (RKISP1_CIF_ISP_CAC_BASE + 0x00000004) 1055 #define RKISP1_CIF_ISP_CAC_A (RKISP1_CIF_ISP_CAC_BASE + 0x00000008) 1056 #define RKISP1_CIF_ISP_CAC_B (RKISP1_CIF_ISP_CAC_BASE + 0x0000000C) 1057 #define RKISP1_CIF_ISP_CAC_C (RKISP1_CIF_ISP_CAC_BASE + 0x00000010) 1058 #define RKISP1_CIF_ISP_X_NORM (RKISP1_CIF_ISP_CAC_BASE + 0x00000014) 1059 #define RKISP1_CIF_ISP_Y_NORM (RKISP1_CIF_ISP_CAC_BASE + 0x00000018) 1060 1061 #define RKISP1_CIF_ISP_EXP_BASE 0x00002600 1062 #define RKISP1_CIF_ISP_EXP_CTRL (RKISP1_CIF_ISP_EXP_BASE + 0x00000000) 1063 #define RKISP1_CIF_ISP_EXP_H_OFFSET (RKISP1_CIF_ISP_EXP_BASE + 0x00000004) 1064 #define RKISP1_CIF_ISP_EXP_V_OFFSET (RKISP1_CIF_ISP_EXP_BASE + 0x00000008) 1065 #define RKISP1_CIF_ISP_EXP_H_SIZE (RKISP1_CIF_ISP_EXP_BASE + 0x0000000C) 1066 #define RKISP1_CIF_ISP_EXP_V_SIZE (RKISP1_CIF_ISP_EXP_BASE + 0x00000010) 1067 #define RKISP1_CIF_ISP_EXP_MEAN_00 (RKISP1_CIF_ISP_EXP_BASE + 0x00000014) 1068 #define RKISP1_CIF_ISP_EXP_MEAN_10 (RKISP1_CIF_ISP_EXP_BASE + 0x00000018) 1069 #define RKISP1_CIF_ISP_EXP_MEAN_20 (RKISP1_CIF_ISP_EXP_BASE + 0x0000001c) 1070 #define RKISP1_CIF_ISP_EXP_MEAN_30 (RKISP1_CIF_ISP_EXP_BASE + 0x00000020) 1071 #define RKISP1_CIF_ISP_EXP_MEAN_40 (RKISP1_CIF_ISP_EXP_BASE + 0x00000024) 1072 #define RKISP1_CIF_ISP_EXP_MEAN_01 (RKISP1_CIF_ISP_EXP_BASE + 0x00000028) 1073 #define RKISP1_CIF_ISP_EXP_MEAN_11 (RKISP1_CIF_ISP_EXP_BASE + 0x0000002c) 1074 #define RKISP1_CIF_ISP_EXP_MEAN_21 (RKISP1_CIF_ISP_EXP_BASE + 0x00000030) 1075 #define RKISP1_CIF_ISP_EXP_MEAN_31 (RKISP1_CIF_ISP_EXP_BASE + 0x00000034) 1076 #define RKISP1_CIF_ISP_EXP_MEAN_41 (RKISP1_CIF_ISP_EXP_BASE + 0x00000038) 1077 #define RKISP1_CIF_ISP_EXP_MEAN_02 (RKISP1_CIF_ISP_EXP_BASE + 0x0000003c) 1078 #define RKISP1_CIF_ISP_EXP_MEAN_12 (RKISP1_CIF_ISP_EXP_BASE + 0x00000040) 1079 #define RKISP1_CIF_ISP_EXP_MEAN_22 (RKISP1_CIF_ISP_EXP_BASE + 0x00000044) 1080 #define RKISP1_CIF_ISP_EXP_MEAN_32 (RKISP1_CIF_ISP_EXP_BASE + 0x00000048) 1081 #define RKISP1_CIF_ISP_EXP_MEAN_42 (RKISP1_CIF_ISP_EXP_BASE + 0x0000004c) 1082 #define RKISP1_CIF_ISP_EXP_MEAN_03 (RKISP1_CIF_ISP_EXP_BASE + 0x00000050) 1083 #define RKISP1_CIF_ISP_EXP_MEAN_13 (RKISP1_CIF_ISP_EXP_BASE + 0x00000054) 1084 #define RKISP1_CIF_ISP_EXP_MEAN_23 (RKISP1_CIF_ISP_EXP_BASE + 0x00000058) 1085 #define RKISP1_CIF_ISP_EXP_MEAN_33 (RKISP1_CIF_ISP_EXP_BASE + 0x0000005c) 1086 #define RKISP1_CIF_ISP_EXP_MEAN_43 (RKISP1_CIF_ISP_EXP_BASE + 0x00000060) 1087 #define RKISP1_CIF_ISP_EXP_MEAN_04 (RKISP1_CIF_ISP_EXP_BASE + 0x00000064) 1088 #define RKISP1_CIF_ISP_EXP_MEAN_14 (RKISP1_CIF_ISP_EXP_BASE + 0x00000068) 1089 #define RKISP1_CIF_ISP_EXP_MEAN_24 (RKISP1_CIF_ISP_EXP_BASE + 0x0000006c) 1090 #define RKISP1_CIF_ISP_EXP_MEAN_34 (RKISP1_CIF_ISP_EXP_BASE + 0x00000070) 1091 #define RKISP1_CIF_ISP_EXP_MEAN_44 (RKISP1_CIF_ISP_EXP_BASE + 0x00000074) 1092 1093 #define RKISP1_CIF_ISP_BLS_BASE 0x00002700 1094 #define RKISP1_CIF_ISP_BLS_CTRL (RKISP1_CIF_ISP_BLS_BASE + 0x00000000) 1095 #define RKISP1_CIF_ISP_BLS_SAMPLES (RKISP1_CIF_ISP_BLS_BASE + 0x00000004) 1096 #define RKISP1_CIF_ISP_BLS_H1_START (RKISP1_CIF_ISP_BLS_BASE + 0x00000008) 1097 #define RKISP1_CIF_ISP_BLS_H1_STOP (RKISP1_CIF_ISP_BLS_BASE + 0x0000000c) 1098 #define RKISP1_CIF_ISP_BLS_V1_START (RKISP1_CIF_ISP_BLS_BASE + 0x00000010) 1099 #define RKISP1_CIF_ISP_BLS_V1_STOP (RKISP1_CIF_ISP_BLS_BASE + 0x00000014) 1100 #define RKISP1_CIF_ISP_BLS_H2_START (RKISP1_CIF_ISP_BLS_BASE + 0x00000018) 1101 #define RKISP1_CIF_ISP_BLS_H2_STOP (RKISP1_CIF_ISP_BLS_BASE + 0x0000001c) 1102 #define RKISP1_CIF_ISP_BLS_V2_START (RKISP1_CIF_ISP_BLS_BASE + 0x00000020) 1103 #define RKISP1_CIF_ISP_BLS_V2_STOP (RKISP1_CIF_ISP_BLS_BASE + 0x00000024) 1104 #define RKISP1_CIF_ISP_BLS_A_FIXED (RKISP1_CIF_ISP_BLS_BASE + 0x00000028) 1105 #define RKISP1_CIF_ISP_BLS_B_FIXED (RKISP1_CIF_ISP_BLS_BASE + 0x0000002c) 1106 #define RKISP1_CIF_ISP_BLS_C_FIXED (RKISP1_CIF_ISP_BLS_BASE + 0x00000030) 1107 #define RKISP1_CIF_ISP_BLS_D_FIXED (RKISP1_CIF_ISP_BLS_BASE + 0x00000034) 1108 #define RKISP1_CIF_ISP_BLS_A_MEASURED (RKISP1_CIF_ISP_BLS_BASE + 0x00000038) 1109 #define RKISP1_CIF_ISP_BLS_B_MEASURED (RKISP1_CIF_ISP_BLS_BASE + 0x0000003c) 1110 #define RKISP1_CIF_ISP_BLS_C_MEASURED (RKISP1_CIF_ISP_BLS_BASE + 0x00000040) 1111 #define RKISP1_CIF_ISP_BLS_D_MEASURED (RKISP1_CIF_ISP_BLS_BASE + 0x00000044) 1112 1113 #define RKISP1_CIF_ISP_DPF_BASE 0x00002800 1114 #define RKISP1_CIF_ISP_DPF_MODE (RKISP1_CIF_ISP_DPF_BASE + 0x00000000) 1115 #define RKISP1_CIF_ISP_DPF_STRENGTH_R (RKISP1_CIF_ISP_DPF_BASE + 0x00000004) 1116 #define RKISP1_CIF_ISP_DPF_STRENGTH_G (RKISP1_CIF_ISP_DPF_BASE + 0x00000008) 1117 #define RKISP1_CIF_ISP_DPF_STRENGTH_B (RKISP1_CIF_ISP_DPF_BASE + 0x0000000C) 1118 #define RKISP1_CIF_ISP_DPF_S_WEIGHT_G_1_4 (RKISP1_CIF_ISP_DPF_BASE + 0x00000010) 1119 #define RKISP1_CIF_ISP_DPF_S_WEIGHT_G_5_6 (RKISP1_CIF_ISP_DPF_BASE + 0x00000014) 1120 #define RKISP1_CIF_ISP_DPF_S_WEIGHT_RB_1_4 (RKISP1_CIF_ISP_DPF_BASE + 0x00000018) 1121 #define RKISP1_CIF_ISP_DPF_S_WEIGHT_RB_5_6 (RKISP1_CIF_ISP_DPF_BASE + 0x0000001C) 1122 #define RKISP1_CIF_ISP_DPF_NULL_COEFF_0 (RKISP1_CIF_ISP_DPF_BASE + 0x00000020) 1123 #define RKISP1_CIF_ISP_DPF_NULL_COEFF_1 (RKISP1_CIF_ISP_DPF_BASE + 0x00000024) 1124 #define RKISP1_CIF_ISP_DPF_NULL_COEFF_2 (RKISP1_CIF_ISP_DPF_BASE + 0x00000028) 1125 #define RKISP1_CIF_ISP_DPF_NULL_COEFF_3 (RKISP1_CIF_ISP_DPF_BASE + 0x0000002C) 1126 #define RKISP1_CIF_ISP_DPF_NULL_COEFF_4 (RKISP1_CIF_ISP_DPF_BASE + 0x00000030) 1127 #define RKISP1_CIF_ISP_DPF_NULL_COEFF_5 (RKISP1_CIF_ISP_DPF_BASE + 0x00000034) 1128 #define RKISP1_CIF_ISP_DPF_NULL_COEFF_6 (RKISP1_CIF_ISP_DPF_BASE + 0x00000038) 1129 #define RKISP1_CIF_ISP_DPF_NULL_COEFF_7 (RKISP1_CIF_ISP_DPF_BASE + 0x0000003C) 1130 #define RKISP1_CIF_ISP_DPF_NULL_COEFF_8 (RKISP1_CIF_ISP_DPF_BASE + 0x00000040) 1131 #define RKISP1_CIF_ISP_DPF_NULL_COEFF_9 (RKISP1_CIF_ISP_DPF_BASE + 0x00000044) 1132 #define RKISP1_CIF_ISP_DPF_NULL_COEFF_10 (RKISP1_CIF_ISP_DPF_BASE + 0x00000048) 1133 #define RKISP1_CIF_ISP_DPF_NULL_COEFF_11 (RKISP1_CIF_ISP_DPF_BASE + 0x0000004C) 1134 #define RKISP1_CIF_ISP_DPF_NULL_COEFF_12 (RKISP1_CIF_ISP_DPF_BASE + 0x00000050) 1135 #define RKISP1_CIF_ISP_DPF_NULL_COEFF_13 (RKISP1_CIF_ISP_DPF_BASE + 0x00000054) 1136 #define RKISP1_CIF_ISP_DPF_NULL_COEFF_14 (RKISP1_CIF_ISP_DPF_BASE + 0x00000058) 1137 #define RKISP1_CIF_ISP_DPF_NULL_COEFF_15 (RKISP1_CIF_ISP_DPF_BASE + 0x0000005C) 1138 #define RKISP1_CIF_ISP_DPF_NULL_COEFF_16 (RKISP1_CIF_ISP_DPF_BASE + 0x00000060) 1139 #define RKISP1_CIF_ISP_DPF_NF_GAIN_R (RKISP1_CIF_ISP_DPF_BASE + 0x00000064) 1140 #define RKISP1_CIF_ISP_DPF_NF_GAIN_GR (RKISP1_CIF_ISP_DPF_BASE + 0x00000068) 1141 #define RKISP1_CIF_ISP_DPF_NF_GAIN_GB (RKISP1_CIF_ISP_DPF_BASE + 0x0000006C) 1142 #define RKISP1_CIF_ISP_DPF_NF_GAIN_B (RKISP1_CIF_ISP_DPF_BASE + 0x00000070) 1143 1144 #define RKISP1_CIF_ISP_DPCC_BASE 0x00002900 1145 #define RKISP1_CIF_ISP_DPCC_MODE (RKISP1_CIF_ISP_DPCC_BASE + 0x00000000) 1146 #define RKISP1_CIF_ISP_DPCC_OUTPUT_MODE (RKISP1_CIF_ISP_DPCC_BASE + 0x00000004) 1147 #define RKISP1_CIF_ISP_DPCC_SET_USE (RKISP1_CIF_ISP_DPCC_BASE + 0x00000008) 1148 #define RKISP1_CIF_ISP_DPCC_METHODS_SET_1 (RKISP1_CIF_ISP_DPCC_BASE + 0x0000000C) 1149 #define RKISP1_CIF_ISP_DPCC_METHODS_SET_2 (RKISP1_CIF_ISP_DPCC_BASE + 0x00000010) 1150 #define RKISP1_CIF_ISP_DPCC_METHODS_SET_3 (RKISP1_CIF_ISP_DPCC_BASE + 0x00000014) 1151 #define RKISP1_CIF_ISP_DPCC_LINE_THRESH_1 (RKISP1_CIF_ISP_DPCC_BASE + 0x00000018) 1152 #define RKISP1_CIF_ISP_DPCC_LINE_MAD_FAC_1 (RKISP1_CIF_ISP_DPCC_BASE + 0x0000001C) 1153 #define RKISP1_CIF_ISP_DPCC_PG_FAC_1 (RKISP1_CIF_ISP_DPCC_BASE + 0x00000020) 1154 #define RKISP1_CIF_ISP_DPCC_RND_THRESH_1 (RKISP1_CIF_ISP_DPCC_BASE + 0x00000024) 1155 #define RKISP1_CIF_ISP_DPCC_RG_FAC_1 (RKISP1_CIF_ISP_DPCC_BASE + 0x00000028) 1156 #define RKISP1_CIF_ISP_DPCC_LINE_THRESH_2 (RKISP1_CIF_ISP_DPCC_BASE + 0x0000002C) 1157 #define RKISP1_CIF_ISP_DPCC_LINE_MAD_FAC_2 (RKISP1_CIF_ISP_DPCC_BASE + 0x00000030) 1158 #define RKISP1_CIF_ISP_DPCC_PG_FAC_2 (RKISP1_CIF_ISP_DPCC_BASE + 0x00000034) 1159 #define RKISP1_CIF_ISP_DPCC_RND_THRESH_2 (RKISP1_CIF_ISP_DPCC_BASE + 0x00000038) 1160 #define RKISP1_CIF_ISP_DPCC_RG_FAC_2 (RKISP1_CIF_ISP_DPCC_BASE + 0x0000003C) 1161 #define RKISP1_CIF_ISP_DPCC_LINE_THRESH_3 (RKISP1_CIF_ISP_DPCC_BASE + 0x00000040) 1162 #define RKISP1_CIF_ISP_DPCC_LINE_MAD_FAC_3 (RKISP1_CIF_ISP_DPCC_BASE + 0x00000044) 1163 #define RKISP1_CIF_ISP_DPCC_PG_FAC_3 (RKISP1_CIF_ISP_DPCC_BASE + 0x00000048) 1164 #define RKISP1_CIF_ISP_DPCC_RND_THRESH_3 (RKISP1_CIF_ISP_DPCC_BASE + 0x0000004C) 1165 #define RKISP1_CIF_ISP_DPCC_RG_FAC_3 (RKISP1_CIF_ISP_DPCC_BASE + 0x00000050) 1166 #define RKISP1_CIF_ISP_DPCC_RO_LIMITS (RKISP1_CIF_ISP_DPCC_BASE + 0x00000054) 1167 #define RKISP1_CIF_ISP_DPCC_RND_OFFS (RKISP1_CIF_ISP_DPCC_BASE + 0x00000058) 1168 #define RKISP1_CIF_ISP_DPCC_BPT_CTRL (RKISP1_CIF_ISP_DPCC_BASE + 0x0000005C) 1169 #define RKISP1_CIF_ISP_DPCC_BPT_NUMBER (RKISP1_CIF_ISP_DPCC_BASE + 0x00000060) 1170 #define RKISP1_CIF_ISP_DPCC_BPT_ADDR (RKISP1_CIF_ISP_DPCC_BASE + 0x00000064) 1171 #define RKISP1_CIF_ISP_DPCC_BPT_DATA (RKISP1_CIF_ISP_DPCC_BASE + 0x00000068) 1172 1173 #define RKISP1_CIF_ISP_WDR_BASE 0x00002A00 1174 #define RKISP1_CIF_ISP_WDR_CTRL (RKISP1_CIF_ISP_WDR_BASE + 0x00000000) 1175 #define RKISP1_CIF_ISP_WDR_TONECURVE_1 (RKISP1_CIF_ISP_WDR_BASE + 0x00000004) 1176 #define RKISP1_CIF_ISP_WDR_TONECURVE_2 (RKISP1_CIF_ISP_WDR_BASE + 0x00000008) 1177 #define RKISP1_CIF_ISP_WDR_TONECURVE_3 (RKISP1_CIF_ISP_WDR_BASE + 0x0000000C) 1178 #define RKISP1_CIF_ISP_WDR_TONECURVE_4 (RKISP1_CIF_ISP_WDR_BASE + 0x00000010) 1179 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_0 (RKISP1_CIF_ISP_WDR_BASE + 0x00000014) 1180 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_1 (RKISP1_CIF_ISP_WDR_BASE + 0x00000018) 1181 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_2 (RKISP1_CIF_ISP_WDR_BASE + 0x0000001C) 1182 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_3 (RKISP1_CIF_ISP_WDR_BASE + 0x00000020) 1183 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_4 (RKISP1_CIF_ISP_WDR_BASE + 0x00000024) 1184 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_5 (RKISP1_CIF_ISP_WDR_BASE + 0x00000028) 1185 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_6 (RKISP1_CIF_ISP_WDR_BASE + 0x0000002C) 1186 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_7 (RKISP1_CIF_ISP_WDR_BASE + 0x00000030) 1187 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_8 (RKISP1_CIF_ISP_WDR_BASE + 0x00000034) 1188 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_9 (RKISP1_CIF_ISP_WDR_BASE + 0x00000038) 1189 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_10 (RKISP1_CIF_ISP_WDR_BASE + 0x0000003C) 1190 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_11 (RKISP1_CIF_ISP_WDR_BASE + 0x00000040) 1191 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_12 (RKISP1_CIF_ISP_WDR_BASE + 0x00000044) 1192 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_13 (RKISP1_CIF_ISP_WDR_BASE + 0x00000048) 1193 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_14 (RKISP1_CIF_ISP_WDR_BASE + 0x0000004C) 1194 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_15 (RKISP1_CIF_ISP_WDR_BASE + 0x00000050) 1195 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_16 (RKISP1_CIF_ISP_WDR_BASE + 0x00000054) 1196 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_17 (RKISP1_CIF_ISP_WDR_BASE + 0x00000058) 1197 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_18 (RKISP1_CIF_ISP_WDR_BASE + 0x0000005C) 1198 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_19 (RKISP1_CIF_ISP_WDR_BASE + 0x00000060) 1199 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_20 (RKISP1_CIF_ISP_WDR_BASE + 0x00000064) 1200 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_21 (RKISP1_CIF_ISP_WDR_BASE + 0x00000068) 1201 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_22 (RKISP1_CIF_ISP_WDR_BASE + 0x0000006C) 1202 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_23 (RKISP1_CIF_ISP_WDR_BASE + 0x00000070) 1203 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_24 (RKISP1_CIF_ISP_WDR_BASE + 0x00000074) 1204 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_25 (RKISP1_CIF_ISP_WDR_BASE + 0x00000078) 1205 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_26 (RKISP1_CIF_ISP_WDR_BASE + 0x0000007C) 1206 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_27 (RKISP1_CIF_ISP_WDR_BASE + 0x00000080) 1207 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_28 (RKISP1_CIF_ISP_WDR_BASE + 0x00000084) 1208 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_29 (RKISP1_CIF_ISP_WDR_BASE + 0x00000088) 1209 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_30 (RKISP1_CIF_ISP_WDR_BASE + 0x0000008C) 1210 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_31 (RKISP1_CIF_ISP_WDR_BASE + 0x00000090) 1211 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_32 (RKISP1_CIF_ISP_WDR_BASE + 0x00000094) 1212 #define RKISP1_CIF_ISP_WDR_OFFSET (RKISP1_CIF_ISP_WDR_BASE + 0x00000098) 1213 #define RKISP1_CIF_ISP_WDR_DELTAMIN (RKISP1_CIF_ISP_WDR_BASE + 0x0000009C) 1214 #define RKISP1_CIF_ISP_WDR_TONECURVE_1_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000A0) 1215 #define RKISP1_CIF_ISP_WDR_TONECURVE_2_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000A4) 1216 #define RKISP1_CIF_ISP_WDR_TONECURVE_3_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000A8) 1217 #define RKISP1_CIF_ISP_WDR_TONECURVE_4_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000AC) 1218 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_0_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000B0) 1219 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_1_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000B4) 1220 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_2_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000B8) 1221 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_3_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000BC) 1222 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_4_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000C0) 1223 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_5_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000C4) 1224 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_6_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000C8) 1225 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_7_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000CC) 1226 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_8_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000D0) 1227 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_9_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000D4) 1228 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_10_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000D8) 1229 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_11_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000DC) 1230 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_12_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000E0) 1231 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_13_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000E4) 1232 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_14_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000E8) 1233 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_15_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000EC) 1234 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_16_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000F0) 1235 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_17_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000F4) 1236 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_18_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000F8) 1237 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_19_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x000000FC) 1238 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_20_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x00000100) 1239 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_21_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x00000104) 1240 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_22_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x00000108) 1241 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_23_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x0000010C) 1242 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_24_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x00000110) 1243 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_25_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x00000114) 1244 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_26_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x00000118) 1245 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_27_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x0000011C) 1246 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_28_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x00000120) 1247 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_29_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x00000124) 1248 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_30_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x00000128) 1249 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_31_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x0000012C) 1250 #define RKISP1_CIF_ISP_WDR_TONECURVE_YM_32_SHD (RKISP1_CIF_ISP_WDR_BASE + 0x00000130) 1251 1252 #define RKISP1_CIF_ISP_VSM_BASE 0x00002F00 1253 #define RKISP1_CIF_ISP_VSM_MODE (RKISP1_CIF_ISP_VSM_BASE + 0x00000000) 1254 #define RKISP1_CIF_ISP_VSM_H_OFFS (RKISP1_CIF_ISP_VSM_BASE + 0x00000004) 1255 #define RKISP1_CIF_ISP_VSM_V_OFFS (RKISP1_CIF_ISP_VSM_BASE + 0x00000008) 1256 #define RKISP1_CIF_ISP_VSM_H_SIZE (RKISP1_CIF_ISP_VSM_BASE + 0x0000000C) 1257 #define RKISP1_CIF_ISP_VSM_V_SIZE (RKISP1_CIF_ISP_VSM_BASE + 0x00000010) 1258 #define RKISP1_CIF_ISP_VSM_H_SEGMENTS (RKISP1_CIF_ISP_VSM_BASE + 0x00000014) 1259 #define RKISP1_CIF_ISP_VSM_V_SEGMENTS (RKISP1_CIF_ISP_VSM_BASE + 0x00000018) 1260 #define RKISP1_CIF_ISP_VSM_DELTA_H (RKISP1_CIF_ISP_VSM_BASE + 0x0000001C) 1261 #define RKISP1_CIF_ISP_VSM_DELTA_V (RKISP1_CIF_ISP_VSM_BASE + 0x00000020) 1262 1263 #endif /* _RKISP1_REGS_H */ 1264