• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2  *
3  * Copyright (C) 2021 Rockchip Electronics Co., Ltd.
4  */
5 
6 #ifndef _RKISP_REGS_ISP3X_H
7 #define _RKISP_REGS_ISP3X_H
8 
9 #define ISP3X_CTRL_BASE				0x00000000
10 #define ISP3X_VI_ISP_EN				(ISP3X_CTRL_BASE + 0x00000)
11 #define ISP3X_VI_ISP_PATH			(ISP3X_CTRL_BASE + 0x00004)
12 #define ISP3X_VI_ID				(ISP3X_CTRL_BASE + 0x00008)
13 #define ISP3X_VI_ISP_CLK_CTRL			(ISP3X_CTRL_BASE + 0x0000c)
14 #define ISP3X_VI_ICCL				(ISP3X_CTRL_BASE + 0x00010)
15 #define ISP3X_VI_IRCL				(ISP3X_CTRL_BASE + 0x00014)
16 #define ISP3X_VI_DPCL				(ISP3X_CTRL_BASE + 0x00018)
17 #define ISP3X_SWS_CFG				(ISP3X_CTRL_BASE + 0x0001c)
18 
19 #define ISP3X_IMG_EFF_BASE			0x00000200
20 #define ISP3X_IMG_EFF_CTRL			(ISP3X_IMG_EFF_BASE + 0x00000)
21 #define ISP3X_IMG_EFF_COLOR_SEL			(ISP3X_IMG_EFF_BASE + 0x00004)
22 #define ISP3X_IMG_EFF_TINT			(ISP3X_IMG_EFF_BASE + 0x0001c)
23 #define ISP3X_IMG_EFF_CTRL_SHD			(ISP3X_IMG_EFF_BASE + 0x00020)
24 
25 #define ISP3X_CMSK_BASE				0x00000230
26 #define ISP3X_CMSK_CTRL0			(ISP3X_CMSK_BASE + 0x00000)
27 #define ISP3X_CMSK_CTRL1			(ISP3X_CMSK_BASE + 0x00004)
28 #define ISP3X_CMSK_CTRL2			(ISP3X_CMSK_BASE + 0x00008)
29 #define ISP3X_CMSK_CTRL3			(ISP3X_CMSK_BASE + 0x0000c)
30 #define ISP3X_CMSK_CTRL4			(ISP3X_CMSK_BASE + 0x00010)
31 #define ISP3X_CMSK_CTRL5			(ISP3X_CMSK_BASE + 0x00014)
32 #define ISP3X_CMSK_CTRL6			(ISP3X_CMSK_BASE + 0x00018)
33 #define ISP3X_CMSK_PIC_SIZE			(ISP3X_CMSK_BASE + 0x0001c)
34 #define ISP3X_CMSK_YUV0				(ISP3X_CMSK_BASE + 0x00020)
35 #define ISP3X_CMSK_YUV1				(ISP3X_CMSK_BASE + 0x00024)
36 #define ISP3X_CMSK_YUV2				(ISP3X_CMSK_BASE + 0x00028)
37 #define ISP3X_CMSK_YUV3				(ISP3X_CMSK_BASE + 0x0002c)
38 #define ISP3X_CMSK_YUV4				(ISP3X_CMSK_BASE + 0x00030)
39 #define ISP3X_CMSK_YUV5				(ISP3X_CMSK_BASE + 0x00034)
40 #define ISP3X_CMSK_YUV6				(ISP3X_CMSK_BASE + 0x00038)
41 #define ISP3X_CMSK_YUV7				(ISP3X_CMSK_BASE + 0x0003c)
42 #define ISP3X_CMSK_OFFS0			(ISP3X_CMSK_BASE + 0x00050)
43 #define ISP3X_CMSK_SIZE0			(ISP3X_CMSK_BASE + 0x00054)
44 #define ISP3X_CMSK_OFFS1			(ISP3X_CMSK_BASE + 0x00058)
45 #define ISP3X_CMSK_SIZE1			(ISP3X_CMSK_BASE + 0x0005c)
46 #define ISP3X_CMSK_OFFS2			(ISP3X_CMSK_BASE + 0x00060)
47 #define ISP3X_CMSK_SIZE2			(ISP3X_CMSK_BASE + 0x00064)
48 #define ISP3X_CMSK_OFFS3			(ISP3X_CMSK_BASE + 0x00068)
49 #define ISP3X_CMSK_SIZE3			(ISP3X_CMSK_BASE + 0x0006c)
50 #define ISP3X_CMSK_OFFS4			(ISP3X_CMSK_BASE + 0x00070)
51 #define ISP3X_CMSK_SIZE4			(ISP3X_CMSK_BASE + 0x00074)
52 #define ISP3X_CMSK_OFFS5			(ISP3X_CMSK_BASE + 0x00078)
53 #define ISP3X_CMSK_SIZE5			(ISP3X_CMSK_BASE + 0x0007c)
54 #define ISP3X_CMSK_OFFS6			(ISP3X_CMSK_BASE + 0x00080)
55 #define ISP3X_CMSK_SIZE6			(ISP3X_CMSK_BASE + 0x00084)
56 #define ISP3X_CMSK_OFFS7			(ISP3X_CMSK_BASE + 0x00088)
57 #define ISP3X_CMSK_SIZE7			(ISP3X_CMSK_BASE + 0x0008c)
58 
59 #define ISP3X_SUPER_IMP_BASE			0x00000300
60 #define ISP3X_SUPER_IMP_CTRL			(ISP3X_SUPER_IMP_BASE + 0x00000)
61 #define ISP3X_SUPER_IMP_OFFSET_X		(ISP3X_SUPER_IMP_BASE + 0x00004)
62 #define ISP3X_SUPER_IMP_OFFSET_Y		(ISP3X_SUPER_IMP_BASE + 0x00008)
63 #define ISP3X_SUPER_IMP_COLOR_Y			(ISP3X_SUPER_IMP_BASE + 0x0000c)
64 #define ISP3X_SUPER_IMP_COLOR_CB		(ISP3X_SUPER_IMP_BASE + 0x00010)
65 #define ISP3X_SUPER_IMP_COLOR_CR		(ISP3X_SUPER_IMP_BASE + 0x00014)
66 
67 #define ISP3X_ISP_BASE				0x00000400
68 #define ISP3X_ISP_CTRL0				(ISP3X_ISP_BASE + 0x00000)
69 #define ISP3X_ISP_CTRL1				(ISP3X_ISP_BASE + 0x00004)
70 #define ISP3X_ISP_ACQ_H_OFFS			(ISP3X_ISP_BASE + 0x00008)
71 #define ISP3X_ISP_ACQ_V_OFFS			(ISP3X_ISP_BASE + 0x0000c)
72 #define ISP3X_ISP_ACQ_H_SIZE			(ISP3X_ISP_BASE + 0x00010)
73 #define ISP3X_ISP_ACQ_V_SIZE			(ISP3X_ISP_BASE + 0x00014)
74 #define ISP3X_ISP_ACQ_NR_FRAMES			(ISP3X_ISP_BASE + 0x00018)
75 #define ISP3X_ISP_GAMMA_DX_LO			(ISP3X_ISP_BASE + 0x0001c)
76 #define ISP3X_ISP_GAMMA_DX_HI			(ISP3X_ISP_BASE + 0x00020)
77 #define ISP3X_ISP_GAMMA_R_Y_0			(ISP3X_ISP_BASE + 0x00024)
78 #define ISP3X_ISP_GAMMA_R_Y_1			(ISP3X_ISP_BASE + 0x00028)
79 #define ISP3X_ISP_GAMMA_R_Y_2			(ISP3X_ISP_BASE + 0x0002c)
80 #define ISP3X_ISP_GAMMA_R_Y_3			(ISP3X_ISP_BASE + 0x00030)
81 #define ISP3X_ISP_GAMMA_R_Y_4			(ISP3X_ISP_BASE + 0x00034)
82 #define ISP3X_ISP_GAMMA_R_Y_5			(ISP3X_ISP_BASE + 0x00038)
83 #define ISP3X_ISP_GAMMA_R_Y_6			(ISP3X_ISP_BASE + 0x0003c)
84 #define ISP3X_ISP_GAMMA_R_Y_7			(ISP3X_ISP_BASE + 0x00040)
85 #define ISP3X_ISP_GAMMA_R_Y_8			(ISP3X_ISP_BASE + 0x00044)
86 #define ISP3X_ISP_GAMMA_R_Y_9			(ISP3X_ISP_BASE + 0x00048)
87 #define ISP3X_ISP_GAMMA_R_Y_10			(ISP3X_ISP_BASE + 0x0004c)
88 #define ISP3X_ISP_GAMMA_R_Y_11			(ISP3X_ISP_BASE + 0x00050)
89 #define ISP3X_ISP_GAMMA_R_Y_12			(ISP3X_ISP_BASE + 0x00054)
90 #define ISP3X_ISP_GAMMA_R_Y_13			(ISP3X_ISP_BASE + 0x00058)
91 #define ISP3X_ISP_GAMMA_R_Y_14			(ISP3X_ISP_BASE + 0x0005c)
92 #define ISP3X_ISP_GAMMA_R_Y_15			(ISP3X_ISP_BASE + 0x00060)
93 #define ISP3X_ISP_GAMMA_R_Y_16			(ISP3X_ISP_BASE + 0x00064)
94 #define ISP3X_ISP_GAMMA_G_Y_0			(ISP3X_ISP_BASE + 0x00068)
95 #define ISP3X_ISP_GAMMA_G_Y_1			(ISP3X_ISP_BASE + 0x0006c)
96 #define ISP3X_ISP_GAMMA_G_Y_2			(ISP3X_ISP_BASE + 0x00070)
97 #define ISP3X_ISP_GAMMA_G_Y_3			(ISP3X_ISP_BASE + 0x00074)
98 #define ISP3X_ISP_GAMMA_G_Y_4			(ISP3X_ISP_BASE + 0x00078)
99 #define ISP3X_ISP_GAMMA_G_Y_5			(ISP3X_ISP_BASE + 0x0007c)
100 #define ISP3X_ISP_GAMMA_G_Y_6			(ISP3X_ISP_BASE + 0x00080)
101 #define ISP3X_ISP_GAMMA_G_Y_7			(ISP3X_ISP_BASE + 0x00084)
102 #define ISP3X_ISP_GAMMA_G_Y_8			(ISP3X_ISP_BASE + 0x00088)
103 #define ISP3X_ISP_GAMMA_G_Y_9			(ISP3X_ISP_BASE + 0x0008c)
104 #define ISP3X_ISP_GAMMA_G_Y_10			(ISP3X_ISP_BASE + 0x00090)
105 #define ISP3X_ISP_GAMMA_G_Y_11			(ISP3X_ISP_BASE + 0x00094)
106 #define ISP3X_ISP_GAMMA_G_Y_12			(ISP3X_ISP_BASE + 0x00098)
107 #define ISP3X_ISP_GAMMA_G_Y_13			(ISP3X_ISP_BASE + 0x0009c)
108 #define ISP3X_ISP_GAMMA_G_Y_14			(ISP3X_ISP_BASE + 0x000a0)
109 #define ISP3X_ISP_GAMMA_G_Y_15			(ISP3X_ISP_BASE + 0x000a4)
110 #define ISP3X_ISP_GAMMA_G_Y_16			(ISP3X_ISP_BASE + 0x000a8)
111 #define ISP3X_ISP_GAMMA_B_Y_0			(ISP3X_ISP_BASE + 0x000ac)
112 #define ISP3X_ISP_GAMMA_B_Y_1			(ISP3X_ISP_BASE + 0x000b0)
113 #define ISP3X_ISP_GAMMA_B_Y_2			(ISP3X_ISP_BASE + 0x000b4)
114 #define ISP3X_ISP_GAMMA_B_Y_3			(ISP3X_ISP_BASE + 0x000b8)
115 #define ISP3X_ISP_GAMMA_B_Y_4			(ISP3X_ISP_BASE + 0x000bc)
116 #define ISP3X_ISP_GAMMA_B_Y_5			(ISP3X_ISP_BASE + 0x000c0)
117 #define ISP3X_ISP_GAMMA_B_Y_6			(ISP3X_ISP_BASE + 0x000c4)
118 #define ISP3X_ISP_GAMMA_B_Y_7			(ISP3X_ISP_BASE + 0x000c8)
119 #define ISP3X_ISP_GAMMA_B_Y_8			(ISP3X_ISP_BASE + 0x000cc)
120 #define ISP3X_ISP_GAMMA_B_Y_9			(ISP3X_ISP_BASE + 0x000d0)
121 #define ISP3X_ISP_GAMMA_B_Y_10			(ISP3X_ISP_BASE + 0x000d4)
122 #define ISP3X_ISP_GAMMA_B_Y_11			(ISP3X_ISP_BASE + 0x000d8)
123 #define ISP3X_ISP_GAMMA_B_Y_12			(ISP3X_ISP_BASE + 0x000dc)
124 #define ISP3X_ISP_GAMMA_B_Y_13			(ISP3X_ISP_BASE + 0x000e0)
125 #define ISP3X_ISP_GAMMA_B_Y_14			(ISP3X_ISP_BASE + 0x000e4)
126 #define ISP3X_ISP_GAMMA_B_Y_15			(ISP3X_ISP_BASE + 0x000e8)
127 #define ISP3X_ISP_GAMMA_B_Y_16			(ISP3X_ISP_BASE + 0x000ec)
128 #define ISP3X_ISP_AWB_GAIN0_G			(ISP3X_ISP_BASE + 0x00138)
129 #define ISP3X_ISP_AWB_GAIN0_RB			(ISP3X_ISP_BASE + 0x0013c)
130 #define ISP3X_ISP_AWB_GAIN1_G			(ISP3X_ISP_BASE + 0x00140)
131 #define ISP3X_ISP_AWB_GAIN1_RB			(ISP3X_ISP_BASE + 0x00144)
132 #define ISP3X_ISP_AWB_GAIN2_G			(ISP3X_ISP_BASE + 0x00148)
133 #define ISP3X_ISP_AWB_GAIN2_RB			(ISP3X_ISP_BASE + 0x0014C)
134 #define ISP3X_ISP_HURRY_CTRL			(ISP3X_ISP_BASE + 0x00158)
135 #define ISP3X_ISP_AWQOS_CTRL			(ISP3X_ISP_BASE + 0x0015C)
136 #define ISP3X_ISP_ARQOS_CTRL			(ISP3X_ISP_BASE + 0x00160)
137 #define ISP3X_ISP_CC_COEFF_0			(ISP3X_ISP_BASE + 0x00170)
138 #define ISP3X_ISP_CC_COEFF_1			(ISP3X_ISP_BASE + 0x00174)
139 #define ISP3X_ISP_CC_COEFF_2			(ISP3X_ISP_BASE + 0x00178)
140 #define ISP3X_ISP_CC_COEFF_3			(ISP3X_ISP_BASE + 0x0017c)
141 #define ISP3X_ISP_CC_COEFF_4			(ISP3X_ISP_BASE + 0x00180)
142 #define ISP3X_ISP_CC_COEFF_5			(ISP3X_ISP_BASE + 0x00184)
143 #define ISP3X_ISP_CC_COEFF_6			(ISP3X_ISP_BASE + 0x00188)
144 #define ISP3X_ISP_CC_COEFF_7			(ISP3X_ISP_BASE + 0x0018c)
145 #define ISP3X_ISP_CC_COEFF_8			(ISP3X_ISP_BASE + 0x00190)
146 #define ISP3X_ISP_OUT_H_OFFS			(ISP3X_ISP_BASE + 0x00194)
147 #define ISP3X_ISP_OUT_V_OFFS			(ISP3X_ISP_BASE + 0x00198)
148 #define ISP3X_ISP_OUT_H_SIZE			(ISP3X_ISP_BASE + 0x0019c)
149 #define ISP3X_ISP_OUT_V_SIZE			(ISP3X_ISP_BASE + 0x001a0)
150 #define ISP3X_ISP_FLAGS_SHD			(ISP3X_ISP_BASE + 0x001a8)
151 #define ISP3X_ISP_OUT_H_OFFS_SHD		(ISP3X_ISP_BASE + 0x001ac)
152 #define ISP3X_ISP_OUT_V_OFFS_SHD		(ISP3X_ISP_BASE + 0x001b0)
153 #define ISP3X_ISP_OUT_H_SIZE_SHD		(ISP3X_ISP_BASE + 0x001b4)
154 #define ISP3X_ISP_OUT_V_SIZE_SHD		(ISP3X_ISP_BASE + 0x001b8)
155 #define ISP3X_ISP_IMSC				(ISP3X_ISP_BASE + 0x001bc)
156 #define ISP3X_ISP_RIS				(ISP3X_ISP_BASE + 0x001c0)
157 #define ISP3X_ISP_MIS				(ISP3X_ISP_BASE + 0x001c4)
158 #define ISP3X_ISP_ICR				(ISP3X_ISP_BASE + 0x001c8)
159 #define ISP3X_ISP_ISR				(ISP3X_ISP_BASE + 0x001cc)
160 #define ISP3X_ISP_3A_IMSC			(ISP3X_ISP_BASE + 0x001d0)
161 #define ISP3X_ISP_3A_RIS			(ISP3X_ISP_BASE + 0x001d4)
162 #define ISP3X_ISP_3A_MIS			(ISP3X_ISP_BASE + 0x001d8)
163 #define ISP3X_ISP_3A_ICR			(ISP3X_ISP_BASE + 0x001dc)
164 #define ISP3X_ISP_ERR				(ISP3X_ISP_BASE + 0x0023c)
165 #define ISP3X_ISP_ERR_CLR			(ISP3X_ISP_BASE + 0x00240)
166 #define ISP3X_ISP_FRAME_COUNT			(ISP3X_ISP_BASE + 0x00244)
167 #define ISP3X_ISP_DEBUG1			(ISP3X_ISP_BASE + 0x00248)
168 #define ISP3X_ISP_DEBUG2			(ISP3X_ISP_BASE + 0x0024C)
169 #define ISP3X_ISP_DEBUG3			(ISP3X_ISP_BASE + 0x00250)
170 
171 #define ISP3X_FLASH_BASE			0x00000660
172 #define ISP3X_FLASH_CMD				(ISP3X_FLASH_BASE + 0x00000)
173 #define ISP3X_FLASH_CONFIG			(ISP3X_FLASH_BASE + 0x00004)
174 #define ISP3X_FLASH_PREDIV			(ISP3X_FLASH_BASE + 0x00008)
175 #define ISP3X_FLASH_DELAY			(ISP3X_FLASH_BASE + 0x0000c)
176 #define ISP3X_FLASH_TIME			(ISP3X_FLASH_BASE + 0x00010)
177 #define ISP3X_FLASH_MAXP			(ISP3X_FLASH_BASE + 0x00014)
178 
179 #define ISP3X_SHUTTER_BASE			0x00000680
180 #define ISP3X_SHUTTER_CTRL			(ISP3X_SHUTTER_BASE + 0x00000)
181 #define ISP3X_SHUTTER_PREDIV			(ISP3X_SHUTTER_BASE + 0x00004)
182 #define ISP3X_SHUTTER_DELAY			(ISP3X_SHUTTER_BASE + 0x00008)
183 #define ISP3X_SHUTTER_TIME			(ISP3X_SHUTTER_BASE + 0x0000c)
184 
185 #define ISP3X_CCM_BASE				0x00000700
186 #define ISP3X_CCM_CTRL				(ISP3X_CCM_BASE + 0x00000)
187 #define ISP3X_CCM_COEFF0_R			(ISP3X_CCM_BASE + 0x00004)
188 #define ISP3X_CCM_COEFF1_R			(ISP3X_CCM_BASE + 0x00008)
189 #define ISP3X_CCM_COEFF0_G			(ISP3X_CCM_BASE + 0x0000c)
190 #define ISP3X_CCM_COEFF1_G			(ISP3X_CCM_BASE + 0x00010)
191 #define ISP3X_CCM_COEFF0_B			(ISP3X_CCM_BASE + 0x00014)
192 #define ISP3X_CCM_COEFF1_B			(ISP3X_CCM_BASE + 0x00018)
193 #define ISP3X_CCM_COEFF0_Y			(ISP3X_CCM_BASE + 0x0001c)
194 #define ISP3X_CCM_COEFF1_Y			(ISP3X_CCM_BASE + 0x00020)
195 #define ISP3X_CCM_ALP_Y0			(ISP3X_CCM_BASE + 0x00024)
196 #define ISP3X_CCM_ALP_Y1			(ISP3X_CCM_BASE + 0x00028)
197 #define ISP3X_CCM_ALP_Y2			(ISP3X_CCM_BASE + 0x0002c)
198 #define ISP3X_CCM_ALP_Y3			(ISP3X_CCM_BASE + 0x00030)
199 #define ISP3X_CCM_ALP_Y4			(ISP3X_CCM_BASE + 0x00034)
200 #define ISP3X_CCM_ALP_Y5			(ISP3X_CCM_BASE + 0x00038)
201 #define ISP3X_CCM_ALP_Y6			(ISP3X_CCM_BASE + 0x0003c)
202 #define ISP3X_CCM_ALP_Y7			(ISP3X_CCM_BASE + 0x00040)
203 #define ISP3X_CCM_ALP_Y8			(ISP3X_CCM_BASE + 0x00044)
204 #define ISP3X_CCM_BOUND_BIT			(ISP3X_CCM_BASE + 0x00048)
205 
206 #define ISP3X_CPROC_BASE			0x00000800
207 #define ISP3X_CPROC_CTRL			(ISP3X_CPROC_BASE + 0x00000)
208 #define ISP3X_CPROC_CONTRAST			(ISP3X_CPROC_BASE + 0x00004)
209 #define ISP3X_CPROC_BRIGHTNESS			(ISP3X_CPROC_BASE + 0x00008)
210 #define ISP3X_CPROC_SATURATION			(ISP3X_CPROC_BASE + 0x0000c)
211 #define ISP3X_CPROC_HUE				(ISP3X_CPROC_BASE + 0x00010)
212 
213 #define ISP3X_DUAL_CROP_BASE			0x00000880
214 #define ISP3X_DUAL_CROP_CTRL			(ISP3X_DUAL_CROP_BASE + 0x00000)
215 #define ISP3X_DUAL_CROP_M_H_OFFS		(ISP3X_DUAL_CROP_BASE + 0x00004)
216 #define ISP3X_DUAL_CROP_M_V_OFFS		(ISP3X_DUAL_CROP_BASE + 0x00008)
217 #define ISP3X_DUAL_CROP_M_H_SIZE		(ISP3X_DUAL_CROP_BASE + 0x0000c)
218 #define ISP3X_DUAL_CROP_M_V_SIZE		(ISP3X_DUAL_CROP_BASE + 0x00010)
219 #define ISP3X_DUAL_CROP_S_H_OFFS		(ISP3X_DUAL_CROP_BASE + 0x00014)
220 #define ISP3X_DUAL_CROP_S_V_OFFS		(ISP3X_DUAL_CROP_BASE + 0x00018)
221 #define ISP3X_DUAL_CROP_S_H_SIZE		(ISP3X_DUAL_CROP_BASE + 0x0001c)
222 #define ISP3X_DUAL_CROP_S_V_SIZE		(ISP3X_DUAL_CROP_BASE + 0x00020)
223 #define ISP3X_DUAL_CROP_M_H_OFFS_SHD		(ISP3X_DUAL_CROP_BASE + 0x00024)
224 #define ISP3X_DUAL_CROP_M_V_OFFS_SHD		(ISP3X_DUAL_CROP_BASE + 0x00028)
225 #define ISP3X_DUAL_CROP_M_H_SIZE_SHD		(ISP3X_DUAL_CROP_BASE + 0x0002c)
226 #define ISP3X_DUAL_CROP_M_V_SIZE_SHD		(ISP3X_DUAL_CROP_BASE + 0x00030)
227 #define ISP3X_DUAL_CROP_S_H_OFFS_SHD		(ISP3X_DUAL_CROP_BASE + 0x00034)
228 #define ISP3X_DUAL_CROP_S_V_OFFS_SHD		(ISP3X_DUAL_CROP_BASE + 0x00038)
229 #define ISP3X_DUAL_CROP_S_H_SIZE_SHD		(ISP3X_DUAL_CROP_BASE + 0x0003c)
230 #define ISP3X_DUAL_CROP_S_V_SIZE_SHD		(ISP3X_DUAL_CROP_BASE + 0x00040)
231 #define ISP3X_DUAL_CROP_FBC_H_OFFS		(ISP3X_DUAL_CROP_BASE + 0x00044)
232 #define ISP3X_DUAL_CROP_FBC_V_OFFS		(ISP3X_DUAL_CROP_BASE + 0x00048)
233 #define ISP3X_DUAL_CROP_FBC_H_SIZE		(ISP3X_DUAL_CROP_BASE + 0x0004C)
234 #define ISP3X_DUAL_CROP_FBC_V_SIZE		(ISP3X_DUAL_CROP_BASE + 0x00050)
235 #define ISP3X_DUAL_CROP_FBC_H_OFFS_SHD		(ISP3X_DUAL_CROP_BASE + 0x00054)
236 #define ISP3X_DUAL_CROP_FBC_V_OFFS_SHD		(ISP3X_DUAL_CROP_BASE + 0x00058)
237 #define ISP3X_DUAL_CROP_FBC_H_SIZE_SHD		(ISP3X_DUAL_CROP_BASE + 0x0005C)
238 #define ISP3X_DUAL_CROP_FBC_V_SIZE_SHD		(ISP3X_DUAL_CROP_BASE + 0x00060)
239 
240 #define ISP3X_GAMMA_OUT_BASE			0x00000900
241 #define ISP3X_GAMMA_OUT_CTRL			(ISP3X_GAMMA_OUT_BASE + 0x00000)
242 #define ISP3X_GAMMA_OUT_OFFSET			(ISP3X_GAMMA_OUT_BASE + 0x00004)
243 #define ISP3X_GAMMA_OUT_Y0			(ISP3X_GAMMA_OUT_BASE + 0x00010)
244 #define ISP3X_GAMMA_OUT_Y1			(ISP3X_GAMMA_OUT_BASE + 0x00014)
245 #define ISP3X_GAMMA_OUT_Y2			(ISP3X_GAMMA_OUT_BASE + 0x00018)
246 #define ISP3X_GAMMA_OUT_Y3			(ISP3X_GAMMA_OUT_BASE + 0x0001c)
247 #define ISP3X_GAMMA_OUT_Y4			(ISP3X_GAMMA_OUT_BASE + 0x00020)
248 #define ISP3X_GAMMA_OUT_Y5			(ISP3X_GAMMA_OUT_BASE + 0x00024)
249 #define ISP3X_GAMMA_OUT_Y6			(ISP3X_GAMMA_OUT_BASE + 0x00028)
250 #define ISP3X_GAMMA_OUT_Y7			(ISP3X_GAMMA_OUT_BASE + 0x0002c)
251 #define ISP3X_GAMMA_OUT_Y8			(ISP3X_GAMMA_OUT_BASE + 0x00030)
252 #define ISP3X_GAMMA_OUT_Y9			(ISP3X_GAMMA_OUT_BASE + 0x00034)
253 #define ISP3X_GAMMA_OUT_Y10			(ISP3X_GAMMA_OUT_BASE + 0x00038)
254 #define ISP3X_GAMMA_OUT_Y11			(ISP3X_GAMMA_OUT_BASE + 0x0003c)
255 #define ISP3X_GAMMA_OUT_Y12			(ISP3X_GAMMA_OUT_BASE + 0x00040)
256 #define ISP3X_GAMMA_OUT_Y13			(ISP3X_GAMMA_OUT_BASE + 0x00044)
257 #define ISP3X_GAMMA_OUT_Y14			(ISP3X_GAMMA_OUT_BASE + 0x00048)
258 #define ISP3X_GAMMA_OUT_Y15			(ISP3X_GAMMA_OUT_BASE + 0x0004c)
259 #define ISP3X_GAMMA_OUT_Y16			(ISP3X_GAMMA_OUT_BASE + 0x00050)
260 #define ISP3X_GAMMA_OUT_Y17			(ISP3X_GAMMA_OUT_BASE + 0x00054)
261 #define ISP3X_GAMMA_OUT_Y18			(ISP3X_GAMMA_OUT_BASE + 0x00058)
262 #define ISP3X_GAMMA_OUT_Y19			(ISP3X_GAMMA_OUT_BASE + 0x0005c)
263 #define ISP3X_GAMMA_OUT_Y20			(ISP3X_GAMMA_OUT_BASE + 0x00060)
264 #define ISP3X_GAMMA_OUT_Y21			(ISP3X_GAMMA_OUT_BASE + 0x00064)
265 #define ISP3X_GAMMA_OUT_Y22			(ISP3X_GAMMA_OUT_BASE + 0x00068)
266 #define ISP3X_GAMMA_OUT_Y23			(ISP3X_GAMMA_OUT_BASE + 0x0006c)
267 #define ISP3X_GAMMA_OUT_Y24			(ISP3X_GAMMA_OUT_BASE + 0x00070)
268 
269 #define ISP3X_MAIN_RESIZE_BASE			0x00000C00
270 #define ISP3X_MAIN_RESIZE_CTRL			(ISP3X_MAIN_RESIZE_BASE + 0x00000)
271 #define ISP3X_MAIN_RESIZE_SCALE_HY		(ISP3X_MAIN_RESIZE_BASE + 0x00004)
272 #define ISP3X_MAIN_RESIZE_SCALE_HCB		(ISP3X_MAIN_RESIZE_BASE + 0x00008)
273 #define ISP3X_MAIN_RESIZE_SCALE_HCR		(ISP3X_MAIN_RESIZE_BASE + 0x0000c)
274 #define ISP3X_MAIN_RESIZE_SCALE_VY		(ISP3X_MAIN_RESIZE_BASE + 0x00010)
275 #define ISP3X_MAIN_RESIZE_SCALE_VC		(ISP3X_MAIN_RESIZE_BASE + 0x00014)
276 #define ISP3X_MAIN_RESIZE_PHASE_HY		(ISP3X_MAIN_RESIZE_BASE + 0x00018)
277 #define ISP3X_MAIN_RESIZE_PHASE_HC		(ISP3X_MAIN_RESIZE_BASE + 0x0001c)
278 #define ISP3X_MAIN_RESIZE_PHASE_VY		(ISP3X_MAIN_RESIZE_BASE + 0x00020)
279 #define ISP3X_MAIN_RESIZE_PHASE_VC		(ISP3X_MAIN_RESIZE_BASE + 0x00024)
280 #define ISP3X_MAIN_RESIZE_SCALE_LUT_ADDR	(ISP3X_MAIN_RESIZE_BASE + 0x00028)
281 #define ISP3X_MAIN_RESIZE_SCALE_LUT		(ISP3X_MAIN_RESIZE_BASE + 0x0002c)
282 #define ISP3X_MAIN_RESIZE_CTRL_SHD		(ISP3X_MAIN_RESIZE_BASE + 0x00030)
283 #define ISP3X_MAIN_RESIZE_SCALE_HY_SHD		(ISP3X_MAIN_RESIZE_BASE + 0x00034)
284 #define ISP3X_MAIN_RESIZE_SCALE_HCB_SHD		(ISP3X_MAIN_RESIZE_BASE + 0x00038)
285 #define ISP3X_MAIN_RESIZE_SCALE_HCR_SHD		(ISP3X_MAIN_RESIZE_BASE + 0x0003c)
286 #define ISP3X_MAIN_RESIZE_SCALE_VY_SHD		(ISP3X_MAIN_RESIZE_BASE + 0x00040)
287 #define ISP3X_MAIN_RESIZE_SCALE_VC_SHD		(ISP3X_MAIN_RESIZE_BASE + 0x00044)
288 #define ISP3X_MAIN_RESIZE_PHASE_HY_SHD		(ISP3X_MAIN_RESIZE_BASE + 0x00048)
289 #define ISP3X_MAIN_RESIZE_PHASE_HC_SHD		(ISP3X_MAIN_RESIZE_BASE + 0x0004c)
290 #define ISP3X_MAIN_RESIZE_PHASE_VY_SHD		(ISP3X_MAIN_RESIZE_BASE + 0x00050)
291 #define ISP3X_MAIN_RESIZE_PHASE_VC_SHD		(ISP3X_MAIN_RESIZE_BASE + 0x00054)
292 #define ISP3X_MAIN_RESIZE_HY_SIZE		(ISP3X_MAIN_RESIZE_BASE + 0x00058)
293 #define ISP3X_MAIN_RESIZE_HC_SIZE		(ISP3X_MAIN_RESIZE_BASE + 0x0005C)
294 #define ISP3X_MAIN_RESIZE_HY_OFFS_MI		(ISP3X_MAIN_RESIZE_BASE + 0x00060)
295 #define ISP3X_MAIN_RESIZE_HC_OFFS_MI		(ISP3X_MAIN_RESIZE_BASE + 0x00064)
296 #define ISP3X_MAIN_RESIZE_HY_SIZE_SHD		(ISP3X_MAIN_RESIZE_BASE + 0x00068)
297 #define ISP3X_MAIN_RESIZE_HC_SIZE_SHD		(ISP3X_MAIN_RESIZE_BASE + 0x0006C)
298 #define ISP3X_MAIN_RESIZE_HY_OFFS_MI_SHD	(ISP3X_MAIN_RESIZE_BASE + 0x00070)
299 #define ISP3X_MAIN_RESIZE_HC_OFFS_MI_SHD	(ISP3X_MAIN_RESIZE_BASE + 0x00074)
300 #define ISP3X_MAIN_RESIZE_IN_CROP_OFFSET	(ISP3X_MAIN_RESIZE_BASE + 0x00078)
301 
302 #define ISP3X_SELF_RESIZE_BASE			0x00001000
303 #define ISP3X_SELF_RESIZE_CTRL			(ISP3X_SELF_RESIZE_BASE + 0x00000)
304 #define ISP3X_SELF_RESIZE_SCALE_HY		(ISP3X_SELF_RESIZE_BASE + 0x00004)
305 #define ISP3X_SELF_RESIZE_SCALE_HCB		(ISP3X_SELF_RESIZE_BASE + 0x00008)
306 #define ISP3X_SELF_RESIZE_SCALE_HCR		(ISP3X_SELF_RESIZE_BASE + 0x0000c)
307 #define ISP3X_SELF_RESIZE_SCALE_VY		(ISP3X_SELF_RESIZE_BASE + 0x00010)
308 #define ISP3X_SELF_RESIZE_SCALE_VC		(ISP3X_SELF_RESIZE_BASE + 0x00014)
309 #define ISP3X_SELF_RESIZE_PHASE_HY		(ISP3X_SELF_RESIZE_BASE + 0x00018)
310 #define ISP3X_SELF_RESIZE_PHASE_HC		(ISP3X_SELF_RESIZE_BASE + 0x0001c)
311 #define ISP3X_SELF_RESIZE_PHASE_VY		(ISP3X_SELF_RESIZE_BASE + 0x00020)
312 #define ISP3X_SELF_RESIZE_PHASE_VC		(ISP3X_SELF_RESIZE_BASE + 0x00024)
313 #define ISP3X_SELF_RESIZE_SCALE_LUT_ADDR	(ISP3X_SELF_RESIZE_BASE + 0x00028)
314 #define ISP3X_SELF_RESIZE_SCALE_LUT		(ISP3X_SELF_RESIZE_BASE + 0x0002c)
315 #define ISP3X_SELF_RESIZE_CTRL_SHD		(ISP3X_SELF_RESIZE_BASE + 0x00030)
316 #define ISP3X_SELF_RESIZE_SCALE_HY_SHD		(ISP3X_SELF_RESIZE_BASE + 0x00034)
317 #define ISP3X_SELF_RESIZE_SCALE_HCB_SHD		(ISP3X_SELF_RESIZE_BASE + 0x00038)
318 #define ISP3X_SELF_RESIZE_SCALE_HCR_SHD		(ISP3X_SELF_RESIZE_BASE + 0x0003c)
319 #define ISP3X_SELF_RESIZE_SCALE_VY_SHD		(ISP3X_SELF_RESIZE_BASE + 0x00040)
320 #define ISP3X_SELF_RESIZE_SCALE_VC_SHD		(ISP3X_SELF_RESIZE_BASE + 0x00044)
321 #define ISP3X_SELF_RESIZE_PHASE_HY_SHD		(ISP3X_SELF_RESIZE_BASE + 0x00048)
322 #define ISP3X_SELF_RESIZE_PHASE_HC_SHD		(ISP3X_SELF_RESIZE_BASE + 0x0004c)
323 #define ISP3X_SELF_RESIZE_PHASE_VY_SHD		(ISP3X_SELF_RESIZE_BASE + 0x00050)
324 #define ISP3X_SELF_RESIZE_PHASE_VC_SHD		(ISP3X_SELF_RESIZE_BASE + 0x00054)
325 #define ISP3X_SELF_RESIZE_HY_SIZE		(ISP3X_SELF_RESIZE_BASE + 0x00058)
326 #define ISP3X_SELF_RESIZE_HC_SIZE		(ISP3X_SELF_RESIZE_BASE + 0x0005C)
327 #define ISP3X_SELF_RESIZE_HY_OFFS_MI		(ISP3X_SELF_RESIZE_BASE + 0x00060)
328 #define ISP3X_SELF_RESIZE_HC_OFFS_MI		(ISP3X_SELF_RESIZE_BASE + 0x00064)
329 #define ISP3X_SELF_RESIZE_HY_SIZE_SHD		(ISP3X_SELF_RESIZE_BASE + 0x00068)
330 #define ISP3X_SELF_RESIZE_HC_SIZE_SHD		(ISP3X_SELF_RESIZE_BASE + 0x0006C)
331 #define ISP3X_SELF_RESIZE_HY_OFFS_MI_SHD	(ISP3X_SELF_RESIZE_BASE + 0x00070)
332 #define ISP3X_SELF_RESIZE_HC_OFFS_MI_SHD	(ISP3X_SELF_RESIZE_BASE + 0x00074)
333 #define ISP3X_SELF_RESIZE_IN_CROP_OFFSET	(ISP3X_SELF_RESIZE_BASE + 0x00078)
334 
335 #define ISP3X_MI_BASE				0x00001400
336 #define ISP3X_MI_WR_CTRL			(ISP3X_MI_BASE + 0x00000)
337 #define ISP3X_MI_WR_INIT			(ISP3X_MI_BASE + 0x00004)
338 #define ISP3X_MI_MP_WR_Y_BASE			(ISP3X_MI_BASE + 0x00008)
339 #define ISP3X_MI_MP_WR_Y_SIZE			(ISP3X_MI_BASE + 0x0000c)
340 #define ISP3X_MI_MP_WR_Y_OFFS_CNT		(ISP3X_MI_BASE + 0x00010)
341 #define ISP3X_MI_MP_WR_Y_OFFS_CNT_START		(ISP3X_MI_BASE + 0x00014)
342 #define ISP3X_MI_MP_WR_Y_IRQ_OFFS		(ISP3X_MI_BASE + 0x00018)
343 #define ISP3X_MI_MP_WR_CB_BASE			(ISP3X_MI_BASE + 0x0001c)
344 #define ISP3X_MI_MP_WR_CB_SIZE			(ISP3X_MI_BASE + 0x00020)
345 #define ISP3X_MI_MP_WR_CB_OFFS_CNT		(ISP3X_MI_BASE + 0x00024)
346 #define ISP3X_MI_MP_WR_CB_OFFS_CNT_START	(ISP3X_MI_BASE + 0x00028)
347 #define ISP3X_MI_MP_WR_CR_BASE			(ISP3X_MI_BASE + 0x0002c)
348 #define ISP3X_MI_MP_WR_CR_SIZE			(ISP3X_MI_BASE + 0x00030)
349 #define ISP3X_MI_MP_WR_CR_OFFS_CNT		(ISP3X_MI_BASE + 0x00034)
350 #define ISP3X_MI_MP_WR_CR_OFFS_CNT_START	(ISP3X_MI_BASE + 0x00038)
351 #define ISP3X_MI_SP_WR_Y_BASE			(ISP3X_MI_BASE + 0x0003c)
352 #define ISP3X_MI_SP_WR_Y_SIZE			(ISP3X_MI_BASE + 0x00040)
353 #define ISP3X_MI_SP_WR_Y_OFFS_CNT		(ISP3X_MI_BASE + 0x00044)
354 #define ISP3X_MI_SP_WR_Y_OFFS_CNT_START		(ISP3X_MI_BASE + 0x00048)
355 #define ISP3X_MI_SP_WR_Y_LLENGTH		(ISP3X_MI_BASE + 0x0004c)
356 #define ISP3X_MI_SP_WR_CB_BASE			(ISP3X_MI_BASE + 0x00050)
357 #define ISP3X_MI_SP_WR_CB_SIZE			(ISP3X_MI_BASE + 0x00054)
358 #define ISP3X_MI_SP_WR_CB_OFFS_CNT		(ISP3X_MI_BASE + 0x00058)
359 #define ISP3X_MI_SP_WR_CB_OFFS_CNT_START	(ISP3X_MI_BASE + 0x0005c)
360 #define ISP3X_MI_SP_WR_CR_BASE			(ISP3X_MI_BASE + 0x00060)
361 #define ISP3X_MI_SP_WR_CR_SIZE			(ISP3X_MI_BASE + 0x00064)
362 #define ISP3X_MI_SP_WR_CR_OFFS_CNT		(ISP3X_MI_BASE + 0x00068)
363 #define ISP3X_MI_SP_WR_CR_OFFS_CNT_START	(ISP3X_MI_BASE + 0x0006c)
364 #define ISP3X_MI_WR_BYTE_CNT			(ISP3X_MI_BASE + 0x00070)
365 #define ISP3X_MI_WR_CTRL_SHD			(ISP3X_MI_BASE + 0x00074)
366 #define ISP3X_MI_MP_WR_Y_BASE_SHD		(ISP3X_MI_BASE + 0x00078)
367 #define ISP3X_MI_MP_WR_Y_SIZE_SHD		(ISP3X_MI_BASE + 0x0007c)
368 #define ISP3X_MI_MP_WR_Y_OFFS_CNT_SHD		(ISP3X_MI_BASE + 0x00080)
369 #define ISP3X_MI_MP_WR_Y_IRQ_OFFS_SHD		(ISP3X_MI_BASE + 0x00084)
370 #define ISP3X_MI_MP_WR_CB_BASE_SHD		(ISP3X_MI_BASE + 0x00088)
371 #define ISP3X_MI_MP_WR_CB_SIZE_SHD		(ISP3X_MI_BASE + 0x0008c)
372 #define ISP3X_MI_MP_WR_CB_OFFS_CNT_SHD		(ISP3X_MI_BASE + 0x00090)
373 #define ISP3X_MI_MP_WR_CR_BASE_SHD		(ISP3X_MI_BASE + 0x00094)
374 #define ISP3X_MI_MP_WR_CR_SIZE_SHD		(ISP3X_MI_BASE + 0x00098)
375 #define ISP3X_MI_MP_WR_CR_OFFS_CNT_SHD		(ISP3X_MI_BASE + 0x0009c)
376 #define ISP3X_MI_SP_WR_Y_BASE_SHD		(ISP3X_MI_BASE + 0x000a0)
377 #define ISP3X_MI_SP_WR_Y_SIZE_SHD		(ISP3X_MI_BASE + 0x000a4)
378 #define ISP3X_MI_SP_WR_Y_OFFS_CNT_SHD		(ISP3X_MI_BASE + 0x000a8)
379 #define ISP3X_MI_SP_WR_CB_BASE_AD_SHD		(ISP3X_MI_BASE + 0x000b0)
380 #define ISP3X_MI_SP_WR_CB_SIZE_SHD		(ISP3X_MI_BASE + 0x000b4)
381 #define ISP3X_MI_SP_WR_CB_OFFS_CNT_SHD		(ISP3X_MI_BASE + 0x000b8)
382 #define ISP3X_MI_SP_WR_CR_BASE_AD_SHD		(ISP3X_MI_BASE + 0x000bc)
383 #define ISP3X_MI_SP_WR_CR_SIZE_SHD		(ISP3X_MI_BASE + 0x000c0)
384 #define ISP3X_MI_SP_WR_CR_OFFS_CNT_SHD		(ISP3X_MI_BASE + 0x000c4)
385 #define ISP3X_MI_IMSC				(ISP3X_MI_BASE + 0x000f8)
386 #define ISP3X_MI_RIS				(ISP3X_MI_BASE + 0x000fc)
387 #define ISP3X_MI_MIS				(ISP3X_MI_BASE + 0x00100)
388 #define ISP3X_MI_ICR				(ISP3X_MI_BASE + 0x00104)
389 #define ISP3X_MI_ISR				(ISP3X_MI_BASE + 0x00108)
390 #define ISP3X_MI_STATUS				(ISP3X_MI_BASE + 0x0010c)
391 #define ISP3X_MI_STATUS_CLR			(ISP3X_MI_BASE + 0x00110)
392 #define ISP3X_MI_SP_WR_Y_PIC_WIDTH		(ISP3X_MI_BASE + 0x00114)
393 #define ISP3X_MI_SP_WR_Y_PIC_HEIGHT		(ISP3X_MI_BASE + 0x00118)
394 #define ISP3X_MI_SP_WR_Y_PIC_SIZE		(ISP3X_MI_BASE + 0x0011c)
395 #define ISP3X_MI_WR_PIXEL_CNT			(ISP3X_MI_BASE + 0x0012c)
396 #define ISP3X_MI_MP_WR_Y_BASE2			(ISP3X_MI_BASE + 0x00130)
397 #define ISP3X_MI_MP_WR_CB_BASE2			(ISP3X_MI_BASE + 0x00134)
398 #define ISP3X_MI_MP_WR_CR_BASE2			(ISP3X_MI_BASE + 0x00138)
399 #define ISP3X_MI_SP_WR_Y_BASE2			(ISP3X_MI_BASE + 0x0013C)
400 #define ISP3X_MI_SP_WR_CB_BASE2			(ISP3X_MI_BASE + 0x00140)
401 #define ISP3X_MI_SP_WR_CR_BASE2			(ISP3X_MI_BASE + 0x00144)
402 #define ISP3X_MI_WR_XTD_FORMAT_CTRL		(ISP3X_MI_BASE + 0x00148)
403 #define ISP3X_MI_WR_ID				(ISP3X_MI_BASE + 0x00154)
404 #define ISP3X_MI_MP_WR_Y_IRQ_OFFS2		(ISP3X_MI_BASE + 0x001E0)
405 #define ISP3X_MI_MP_WR_Y_IRQ_OFFS2_SHD		(ISP3X_MI_BASE + 0x001E4)
406 #define ISP3X_MI_MP_WR_Y_LLENGTH		(ISP3X_MI_BASE + 0x001E8)
407 #define ISP3X_MI_MP_WR_Y_PIC_WIDTH		(ISP3X_MI_BASE + 0x001EC)
408 #define ISP3X_MI_MP_WR_Y_PIC_HEIGHT		(ISP3X_MI_BASE + 0x001F0)
409 #define ISP3X_MI_MP_WR_Y_PIC_SIZE		(ISP3X_MI_BASE + 0x001F4)
410 #define ISP3X_MI_BP_WR_CTRL			(ISP3X_MI_BASE + 0x00200)
411 #define ISP3X_MI_BP_WR_Y_BASE			(ISP3X_MI_BASE + 0x00204)
412 #define ISP3X_MI_BP_WR_Y_SIZE			(ISP3X_MI_BASE + 0x00208)
413 #define ISP3X_MI_BP_WR_Y_OFFS_CNT		(ISP3X_MI_BASE + 0x0020C)
414 #define ISP3X_MI_BP_WR_Y_OFFS_CNT_START		(ISP3X_MI_BASE + 0x00210)
415 #define ISP3X_MI_BP_WR_Y_LLENGTH		(ISP3X_MI_BASE + 0x00214)
416 #define ISP3X_MI_BP_WR_Y_PIC_WIDTH		(ISP3X_MI_BASE + 0x00218)
417 #define ISP3X_MI_BP_WR_Y_PIC_HEIGHT		(ISP3X_MI_BASE + 0x0021C)
418 #define ISP3X_MI_BP_WR_Y_PIC_SIZE		(ISP3X_MI_BASE + 0x00220)
419 #define ISP3X_MI_BP_WR_CB_BASE			(ISP3X_MI_BASE + 0x00224)
420 #define ISP3X_MI_BP_WR_CB_SIZE			(ISP3X_MI_BASE + 0x00228)
421 #define ISP3X_MI_BP_WR_CB_OFFS_CNT		(ISP3X_MI_BASE + 0x0022C)
422 #define ISP3X_MI_BP_WR_CB_OFFS_CNT_START	(ISP3X_MI_BASE + 0x00230)
423 #define ISP3X_MI_BP_WR_Y_BASE_SHD		(ISP3X_MI_BASE + 0x00234)
424 #define ISP3X_MI_BP_WR_Y_SIZE_SHD		(ISP3X_MI_BASE + 0x00238)
425 #define ISP3X_MI_BP_WR_Y_OFFS_CNT_SHD		(ISP3X_MI_BASE + 0x0023C)
426 #define ISP3X_MI_BP_WR_CB_BASE_SHD		(ISP3X_MI_BASE + 0x00240)
427 #define ISP3X_MI_BP_WR_CB_SIZE_SHD		(ISP3X_MI_BASE + 0x00244)
428 #define ISP3X_MI_BP_WR_CB_OFFS_CNT_SHD		(ISP3X_MI_BASE + 0x00248)
429 #define ISP3X_MI_BP_WR_Y_BASE2			(ISP3X_MI_BASE + 0x0024C)
430 #define ISP3X_MI_BP_WR_CB_BASE2			(ISP3X_MI_BASE + 0x00250)
431 #define ISP3X_MI_WR_CTRL2			(ISP3X_MI_BASE + 0x00400)
432 #define ISP3X_MI_WR_ID2				(ISP3X_MI_BASE + 0x00404)
433 #define ISP3X_MI_RD_CTRL2			(ISP3X_MI_BASE + 0x00408)
434 #define ISP3X_MI_RD_ID				(ISP3X_MI_BASE + 0x0040c)
435 #define ISP3X_MI_RAW0_RD_BASE			(ISP3X_MI_BASE + 0x00470)
436 #define ISP3X_MI_RAW0_RD_LENGTH			(ISP3X_MI_BASE + 0x00474)
437 #define ISP3X_MI_RAW0_RD_BASE_SHD		(ISP3X_MI_BASE + 0x00478)
438 #define ISP3X_MI_RAW1_RD_BASE			(ISP3X_MI_BASE + 0x00480)
439 #define ISP3X_MI_RAW1_RD_LENGTH			(ISP3X_MI_BASE + 0x00484)
440 #define ISP3X_MI_RAW1_RD_BASE_SHD		(ISP3X_MI_BASE + 0x00488)
441 #define ISP3X_MI_RAWS_RD_BASE			(ISP3X_MI_BASE + 0x00490)
442 #define ISP3X_MI_RAWS_RD_LENGTH			(ISP3X_MI_BASE + 0x00494)
443 #define ISP3X_MI_RAWS_RD_BASE_SHD		(ISP3X_MI_BASE + 0x00498)
444 #define ISP3X_MI_LUT_CAC_RD_BASE		(ISP3X_MI_BASE + 0x00530)
445 #define ISP3X_MI_LUT_CAC_RD_H_WSIZE		(ISP3X_MI_BASE + 0x00534)
446 #define ISP3X_MI_LUT_CAC_RD_V_SIZE		(ISP3X_MI_BASE + 0x00538)
447 #define ISP3X_MI_LUT_3D_RD_BASE			(ISP3X_MI_BASE + 0x00540)
448 #define ISP3X_MI_LUT_LSC_RD_BASE		(ISP3X_MI_BASE + 0x00544)
449 #define ISP3X_MI_LUT_LDCH_RD_BASE		(ISP3X_MI_BASE + 0x00548)
450 #define ISP3X_MI_LUT_3D_RD_WSIZE		(ISP3X_MI_BASE + 0x00550)
451 #define ISP3X_MI_LUT_LSC_RD_WSIZE		(ISP3X_MI_BASE + 0x00554)
452 #define ISP3X_MI_LUT_LDCH_RD_H_WSIZE		(ISP3X_MI_BASE + 0x00558)
453 #define ISP3X_MI_LUT_LDCH_RD_V_SIZE		(ISP3X_MI_BASE + 0x0055C)
454 #define ISP3X_MI_DBR_WR_BASE			(ISP3X_MI_BASE + 0x00560)
455 #define ISP3X_MI_DBR_WR_SIZE			(ISP3X_MI_BASE + 0x00564)
456 #define ISP3X_MI_DBR_WR_LENGTH			(ISP3X_MI_BASE + 0x00568)
457 #define ISP3X_MI_DBR_WR_BASE_SHD		(ISP3X_MI_BASE + 0x0056C)
458 #define ISP3X_MI_DBR_RD_BASE			(ISP3X_MI_BASE + 0x00570)
459 #define ISP3X_MI_DBR_RD_LENGTH			(ISP3X_MI_BASE + 0x00574)
460 #define ISP3X_MI_DBR_RD_BASE_SHD		(ISP3X_MI_BASE + 0x00578)
461 #define ISP3X_MI_3A_WR_BASE			(ISP3X_MI_BASE + 0x0057C)
462 #define ISP3X_MI_GAIN_WR_BASE			(ISP3X_MI_BASE + 0x00580)
463 #define ISP3X_MI_GAIN_WR_SIZE			(ISP3X_MI_BASE + 0x00584)
464 #define ISP3X_MI_GAIN_WR_LENGTH			(ISP3X_MI_BASE + 0x00588)
465 #define ISP3X_MI_GAIN_WR_BASE2			(ISP3X_MI_BASE + 0x0058C)
466 #define ISP3X_MI_GAIN_WR_BASE_SHD		(ISP3X_MI_BASE + 0x00590)
467 #define ISP3X_MI_BAY3D_IIR_WR_BASE		(ISP3X_MI_BASE + 0x005A0)
468 #define ISP3X_MI_BAY3D_IIR_WR_SIZE		(ISP3X_MI_BASE + 0x005A4)
469 #define ISP3X_MI_BAY3D_IIR_WR_LENGTH		(ISP3X_MI_BASE + 0x005A8)
470 #define ISP3X_MI_BAY3D_IIR_WR_BASE_SHD		(ISP3X_MI_BASE + 0x005AC)
471 #define ISP3X_MI_BAY3D_IIR_RD_BASE		(ISP3X_MI_BASE + 0x005B0)
472 #define ISP3X_MI_BAY3D_IIR_RD_LENGTH		(ISP3X_MI_BASE + 0x005B4)
473 #define ISP3X_MI_BAY3D_IIR_RD_BASE_SHD		(ISP3X_MI_BASE + 0x005B8)
474 #define ISP3X_MI_BAY3D_CUR_WR_BASE		(ISP3X_MI_BASE + 0x005C0)
475 #define ISP3X_MI_BAY3D_CUR_WR_SIZE		(ISP3X_MI_BASE + 0x005C4)
476 #define ISP3X_MI_BAY3D_CUR_WR_LENGTH		(ISP3X_MI_BASE + 0x005C8)
477 #define ISP3X_MI_BAY3D_CUR_WR_BASE_SHD		(ISP3X_MI_BASE + 0x005CC)
478 #define ISP3X_MI_BAY3D_CUR_RD_BASE		(ISP3X_MI_BASE + 0x005D0)
479 #define ISP3X_MI_BAY3D_CUR_RD_LENGTH		(ISP3X_MI_BASE + 0x005D4)
480 #define ISP3X_MI_BAY3D_CUR_RD_BASE_SHD		(ISP3X_MI_BASE + 0x005D8)
481 #define ISP3X_MI_BAY3D_DS_WR_BASE		(ISP3X_MI_BASE + 0x005E0)
482 #define ISP3X_MI_BAY3D_DS_WR_SIZE		(ISP3X_MI_BASE + 0x005E4)
483 #define ISP3X_MI_BAY3D_DS_WR_LENGTH		(ISP3X_MI_BASE + 0x005E8)
484 #define ISP3X_MI_BAY3D_DS_WR_BASE_SHD		(ISP3X_MI_BASE + 0x005EC)
485 #define ISP3X_MI_BAY3D_DS_RD_BASE		(ISP3X_MI_BASE + 0x005F0)
486 #define ISP3X_MI_BAY3D_DS_RD_LENGTH		(ISP3X_MI_BASE + 0x005F4)
487 #define ISP3X_MI_BAY3D_DS_RD_BASE_SHD		(ISP3X_MI_BASE + 0x005F8)
488 
489 #define ISP3X_MPFBC_BASE			0x000018C0
490 #define ISP3X_MPFBC_CTRL			(ISP3X_MPFBC_BASE + 0x00000)
491 #define ISP3X_MPFBC_VIR_WIDTH			(ISP3X_MPFBC_BASE + 0x00004)
492 #define ISP3X_MPFBC_VIR_HEIGHT			(ISP3X_MPFBC_BASE + 0x00008)
493 #define ISP3X_MPFBC_HEAD_PTR			(ISP3X_MPFBC_BASE + 0x0000c)
494 #define ISP3X_MPFBC_PAYL_PTR			(ISP3X_MPFBC_BASE + 0x00010)
495 #define ISP3X_MPFBC_HEAD_PTR2			(ISP3X_MPFBC_BASE + 0x00014)
496 #define ISP3X_MPFBC_PAYL_PTR2			(ISP3X_MPFBC_BASE + 0x00018)
497 #define ISP3X_MPFBC_PAYL_WIDTH			(ISP3X_MPFBC_BASE + 0x0001c)
498 #define ISP3X_MPFBC_HEAD_OFFSET			(ISP3X_MPFBC_BASE + 0x00020)
499 #define ISP3X_MPFBC_ENC_POS			(ISP3X_MPFBC_BASE + 0x00030)
500 #define ISP3X_MPFBC_DEBUG			(ISP3X_MPFBC_BASE + 0x00034)
501 
502 #define ISP3X_CSI2RX_BASE			0x00001C00
503 #define ISP3X_CSI2RX_CTRL0			(ISP3X_CSI2RX_BASE + 0x00000)
504 #define ISP3X_CSI2RX_CTRL1			(ISP3X_CSI2RX_BASE + 0x00004)
505 #define ISP3X_CSI2RX_CTRL2			(ISP3X_CSI2RX_BASE + 0x00008)
506 #define ISP3X_CSI2RX_CSI2_RESETN		(ISP3X_CSI2RX_BASE + 0x00010)
507 #define ISP3X_CSI2RX_PHY_STATE_RO		(ISP3X_CSI2RX_BASE + 0x00014)
508 #define ISP3X_CSI2RX_DATA_IDS_1			(ISP3X_CSI2RX_BASE + 0x00018)
509 #define ISP3X_CSI2RX_DATA_IDS_2			(ISP3X_CSI2RX_BASE + 0x0001c)
510 #define ISP3X_CSI2RX_ERR_PHY			(ISP3X_CSI2RX_BASE + 0x00020)
511 #define ISP3X_CSI2RX_ERR_PACKET			(ISP3X_CSI2RX_BASE + 0x00024)
512 #define ISP3X_CSI2RX_ERR_OVERFLOW		(ISP3X_CSI2RX_BASE + 0x00028)
513 #define ISP3X_CSI2RX_ERR_STAT			(ISP3X_CSI2RX_BASE + 0x0002c)
514 #define ISP3X_CSI2RX_MASK_PHY			(ISP3X_CSI2RX_BASE + 0x00030)
515 #define ISP3X_CSI2RX_MASK_PACKET		(ISP3X_CSI2RX_BASE + 0x00034)
516 #define ISP3X_CSI2RX_MASK_OVERFLOW		(ISP3X_CSI2RX_BASE + 0x00038)
517 #define ISP3X_CSI2RX_MASK_STAT			(ISP3X_CSI2RX_BASE + 0x0003c)
518 #define ISP3X_CSI2RX_RAW_RD_CTRL		(ISP3X_CSI2RX_BASE + 0x00080)
519 #define ISP3X_CSI2RX_RAW_RD_LINECNT_RO		(ISP3X_CSI2RX_BASE + 0x00084)
520 #define ISP3X_CSI2RX_RAW_RD_PIC_SIZE		(ISP3X_CSI2RX_BASE + 0x00088)
521 #define ISP3X_CSI2RX_RAW2_RD_LINECNT_RO		(ISP3X_CSI2RX_BASE + 0x0008c)
522 #define ISP3X_CSI2RX_ISP_LINECNT_RO		(ISP3X_CSI2RX_BASE + 0x000b0)
523 #define ISP3X_CSI2RX_VERSION			(ISP3X_CSI2RX_BASE + 0x000fc)
524 
525 #define ISP3X_LSC_BASE				0x00002200
526 #define ISP3X_LSC_CTRL				(ISP3X_LSC_BASE + 0x00000)
527 #define ISP3X_LSC_R_TABLE_ADDR			(ISP3X_LSC_BASE + 0x00004)
528 #define ISP3X_LSC_GR_TABLE_ADDR			(ISP3X_LSC_BASE + 0x00008)
529 #define ISP3X_LSC_B_TABLE_ADDR			(ISP3X_LSC_BASE + 0x0000c)
530 #define ISP3X_LSC_GB_TABLE_ADDR			(ISP3X_LSC_BASE + 0x00010)
531 #define ISP3X_LSC_R_TABLE_DATA			(ISP3X_LSC_BASE + 0x00014)
532 #define ISP3X_LSC_GR_TABLE_DATA			(ISP3X_LSC_BASE + 0x00018)
533 #define ISP3X_LSC_B_TABLE_DATA			(ISP3X_LSC_BASE + 0x0001c)
534 #define ISP3X_LSC_GB_TABLE_DATA			(ISP3X_LSC_BASE + 0x00020)
535 #define ISP3X_LSC_XGRAD_01			(ISP3X_LSC_BASE + 0x00024)
536 #define ISP3X_LSC_XGRAD_23			(ISP3X_LSC_BASE + 0x00028)
537 #define ISP3X_LSC_XGRAD_45			(ISP3X_LSC_BASE + 0x0002c)
538 #define ISP3X_LSC_XGRAD_67			(ISP3X_LSC_BASE + 0x00030)
539 #define ISP3X_LSC_YGRAD_01			(ISP3X_LSC_BASE + 0x00034)
540 #define ISP3X_LSC_YGRAD_23			(ISP3X_LSC_BASE + 0x00038)
541 #define ISP3X_LSC_YGRAD_45			(ISP3X_LSC_BASE + 0x0003c)
542 #define ISP3X_LSC_YGRAD_67			(ISP3X_LSC_BASE + 0x00040)
543 #define ISP3X_LSC_XSIZE_01			(ISP3X_LSC_BASE + 0x00044)
544 #define ISP3X_LSC_XSIZE_23			(ISP3X_LSC_BASE + 0x00048)
545 #define ISP3X_LSC_XSIZE_45			(ISP3X_LSC_BASE + 0x0004c)
546 #define ISP3X_LSC_XSIZE_67			(ISP3X_LSC_BASE + 0x00050)
547 #define ISP3X_LSC_YSIZE_01			(ISP3X_LSC_BASE + 0x00054)
548 #define ISP3X_LSC_YSIZE_23			(ISP3X_LSC_BASE + 0x00058)
549 #define ISP3X_LSC_YSIZE_45			(ISP3X_LSC_BASE + 0x0005c)
550 #define ISP3X_LSC_YSIZE_67			(ISP3X_LSC_BASE + 0x00060)
551 #define ISP3X_LSC_TABLE_SEL			(ISP3X_LSC_BASE + 0x00064)
552 #define ISP3X_LSC_STATUS			(ISP3X_LSC_BASE + 0x00068)
553 #define ISP3X_LSC_XGRAD_89			(ISP3X_LSC_BASE + 0x00070)
554 #define ISP3X_LSC_XGRAD_AB			(ISP3X_LSC_BASE + 0x00074)
555 #define ISP3X_LSC_XGRAD_CD			(ISP3X_LSC_BASE + 0x00078)
556 #define ISP3X_LSC_XGRAD_EF			(ISP3X_LSC_BASE + 0x0007C)
557 #define ISP3X_LSC_YGRAD_89			(ISP3X_LSC_BASE + 0x00080)
558 #define ISP3X_LSC_YGRAD_AB			(ISP3X_LSC_BASE + 0x00084)
559 #define ISP3X_LSC_YGRAD_CD			(ISP3X_LSC_BASE + 0x00088)
560 #define ISP3X_LSC_YGRAD_EF			(ISP3X_LSC_BASE + 0x0008C)
561 #define ISP3X_LSC_XSIZE_89			(ISP3X_LSC_BASE + 0x00090)
562 #define ISP3X_LSC_XSIZE_AB			(ISP3X_LSC_BASE + 0x00094)
563 #define ISP3X_LSC_XSIZE_CD			(ISP3X_LSC_BASE + 0x00098)
564 #define ISP3X_LSC_XSIZE_EF			(ISP3X_LSC_BASE + 0x0009C)
565 #define ISP3X_LSC_YSIZE_89			(ISP3X_LSC_BASE + 0x000A0)
566 #define ISP3X_LSC_YSIZE_AB			(ISP3X_LSC_BASE + 0x000A4)
567 #define ISP3X_LSC_YSIZE_CD			(ISP3X_LSC_BASE + 0x000A8)
568 #define ISP3X_LSC_YSIZE_EF			(ISP3X_LSC_BASE + 0x000AC)
569 
570 #define ISP3X_DEBAYER_BASE			0x00002500
571 #define ISP3X_DEBAYER_CONTROL			(ISP3X_DEBAYER_BASE + 0x00000)
572 #define ISP3X_DEBAYER_G_INTERP			(ISP3X_DEBAYER_BASE + 0x00004)
573 #define ISP3X_DEBAYER_G_INTERP_FILTER1		(ISP3X_DEBAYER_BASE + 0x00008)
574 #define ISP3X_DEBAYER_G_INTERP_FILTER2		(ISP3X_DEBAYER_BASE + 0x0000c)
575 #define ISP3X_DEBAYER_OFFSET			(ISP3X_DEBAYER_BASE + 0x00010)
576 #define ISP3X_DEBAYER_C_FILTER			(ISP3X_DEBAYER_BASE + 0x00014)
577 
578 #define ISP3X_CAC_BASE				0x00002600
579 #define ISP3X_CAC_CTRL				(ISP3X_CAC_BASE + 0x00000)
580 #define ISP3X_CAC_PSF_PARA			(ISP3X_CAC_BASE + 0x00004)
581 #define ISP3X_CAC_STRENGTH_CENTER		(ISP3X_CAC_BASE + 0x00008)
582 #define ISP3X_CAC_STRENGTH0			(ISP3X_CAC_BASE + 0x0000C)
583 #define ISP3X_CAC_STRENGTH1			(ISP3X_CAC_BASE + 0x00010)
584 #define ISP3X_CAC_STRENGTH2			(ISP3X_CAC_BASE + 0x00014)
585 #define ISP3X_CAC_STRENGTH3			(ISP3X_CAC_BASE + 0x00018)
586 #define ISP3X_CAC_STRENGTH4			(ISP3X_CAC_BASE + 0x0001C)
587 #define ISP3X_CAC_STRENGTH5			(ISP3X_CAC_BASE + 0x00020)
588 #define ISP3X_CAC_STRENGTH6			(ISP3X_CAC_BASE + 0x00024)
589 #define ISP3X_CAC_STRENGTH7			(ISP3X_CAC_BASE + 0x00028)
590 #define ISP3X_CAC_STRENGTH8			(ISP3X_CAC_BASE + 0x0002C)
591 #define ISP3X_CAC_STRENGTH9			(ISP3X_CAC_BASE + 0x00030)
592 #define ISP3X_CAC_STRENGTH10			(ISP3X_CAC_BASE + 0x00034)
593 #define ISP3X_CAC_PSF_CFG0			(ISP3X_CAC_BASE + 0x00040)
594 #define ISP3X_CAC_PSF_CFG1			(ISP3X_CAC_BASE + 0x00044)
595 #define ISP3X_CAC_PSF_CFG2			(ISP3X_CAC_BASE + 0x00048)
596 #define ISP3X_CAC_PSF_CFG3			(ISP3X_CAC_BASE + 0x0004C)
597 #define ISP3X_CAC_PSF_CFG4			(ISP3X_CAC_BASE + 0x00050)
598 #define ISP3X_CAC_PSF_CFG5			(ISP3X_CAC_BASE + 0x00054)
599 #define ISP3X_CAC_PSF_CFG6			(ISP3X_CAC_BASE + 0x00058)
600 #define ISP3X_CAC_PSF_CFG7			(ISP3X_CAC_BASE + 0x0005C)
601 #define ISP3X_CAC_PSF_CFG8			(ISP3X_CAC_BASE + 0x00060)
602 #define ISP3X_CAC_PSF_CFG9			(ISP3X_CAC_BASE + 0x00064)
603 #define ISP3X_CAC_PSF_CFG10			(ISP3X_CAC_BASE + 0x00068)
604 #define ISP3X_CAC_PSF_CFG11			(ISP3X_CAC_BASE + 0x0006C)
605 #define ISP3X_CAC_PSF_CFG12			(ISP3X_CAC_BASE + 0x00070)
606 #define ISP3X_CAC_PSF_CFG13			(ISP3X_CAC_BASE + 0x00074)
607 #define ISP3X_CAC_PSF_CFG14			(ISP3X_CAC_BASE + 0x00078)
608 #define ISP3X_CAC_PSF_CFG15			(ISP3X_CAC_BASE + 0x0007C)
609 #define ISP3X_CAC_RO_CNT			(ISP3X_CAC_BASE + 0x00080)
610 
611 #define ISP3X_YNR_BASE				0x00002700
612 #define ISP3X_YNR_GLOBAL_CTRL			(ISP3X_YNR_BASE + 0x00000)
613 #define ISP3X_YNR_RNR_MAX_R			(ISP3X_YNR_BASE + 0x00004)
614 #define ISP3X_YNR_RNR_CENTER_COOR		(ISP3X_YNR_BASE + 0x00008)
615 #define ISP3X_YNR_LOCAL_GAIN_CTRL		(ISP3X_YNR_BASE + 0x0000C)
616 #define ISP3X_YNR_LOWNR_CTRL0			(ISP3X_YNR_BASE + 0x00010)
617 #define ISP3X_YNR_LOWNR_CTRL1			(ISP3X_YNR_BASE + 0x00014)
618 #define ISP3X_YNR_LOWNR_CTRL2			(ISP3X_YNR_BASE + 0x00018)
619 #define ISP3X_YNR_LOWNR_CTRL3			(ISP3X_YNR_BASE + 0x0001c)
620 #define ISP3X_YNR_HIGHNR_CTRL0			(ISP3X_YNR_BASE + 0x00020)
621 #define ISP3X_YNR_HIGHNR_CTRL1			(ISP3X_YNR_BASE + 0x00024)
622 #define ISP3X_YNR_HIGHNR_BASE_FILTER_WEIGHT	(ISP3X_YNR_BASE + 0x00028)
623 #define ISP3X_YNR_LOWNR_CTRL4			(ISP3X_YNR_BASE + 0x0002c)
624 #define ISP3X_YNR_GAUSS1_COEFF			(ISP3X_YNR_BASE + 0x00030)
625 #define ISP3X_YNR_GAUSS2_COEFF			(ISP3X_YNR_BASE + 0x00034)
626 #define ISP3X_YNR_DIRECTION_W_0_3		(ISP3X_YNR_BASE + 0x00038)
627 #define ISP3X_YNR_DIRECTION_W_4_7		(ISP3X_YNR_BASE + 0x0003c)
628 #define ISP3X_YNR_SGM_DX_0_1			(ISP3X_YNR_BASE + 0x00040)
629 #define ISP3X_YNR_SGM_DX_2_3			(ISP3X_YNR_BASE + 0x00044)
630 #define ISP3X_YNR_SGM_DX_4_5			(ISP3X_YNR_BASE + 0x00048)
631 #define ISP3X_YNR_SGM_DX_6_7			(ISP3X_YNR_BASE + 0x0004c)
632 #define ISP3X_YNR_SGM_DX_8_9			(ISP3X_YNR_BASE + 0x00050)
633 #define ISP3X_YNR_SGM_DX_10_11			(ISP3X_YNR_BASE + 0x00055)
634 #define ISP3X_YNR_SGM_DX_12_13			(ISP3X_YNR_BASE + 0x00058)
635 #define ISP3X_YNR_SGM_DX_14_15			(ISP3X_YNR_BASE + 0x0005c)
636 #define ISP3X_YNR_SGM_DX_16			(ISP3X_YNR_BASE + 0x00060)
637 #define ISP3X_YNR_LSGM_Y_0_1			(ISP3X_YNR_BASE + 0x00070)
638 #define ISP3X_YNR_LSGM_Y_2_3			(ISP3X_YNR_BASE + 0x00074)
639 #define ISP3X_YNR_LSGM_Y_4_5			(ISP3X_YNR_BASE + 0x00078)
640 #define ISP3X_YNR_LSGM_Y_6_7			(ISP3X_YNR_BASE + 0x0007c)
641 #define ISP3X_YNR_LSGM_Y_8_9			(ISP3X_YNR_BASE + 0x00080)
642 #define ISP3X_YNR_LSGM_Y_10_11			(ISP3X_YNR_BASE + 0x00084)
643 #define ISP3X_YNR_LSGM_Y_12_13			(ISP3X_YNR_BASE + 0x00088)
644 #define ISP3X_YNR_LSGM_Y_14_15			(ISP3X_YNR_BASE + 0x0008c)
645 #define ISP3X_YNR_LSGM_Y_16			(ISP3X_YNR_BASE + 0x00090)
646 #define ISP3X_YNR_HSGM_Y_0_1			(ISP3X_YNR_BASE + 0x000a0)
647 #define ISP3X_YNR_HSGM_Y_2_3			(ISP3X_YNR_BASE + 0x000a4)
648 #define ISP3X_YNR_HSGM_Y_4_5			(ISP3X_YNR_BASE + 0x000a8)
649 #define ISP3X_YNR_HSGM_Y_6_7			(ISP3X_YNR_BASE + 0x000ac)
650 #define ISP3X_YNR_HSGM_Y_8_9			(ISP3X_YNR_BASE + 0x000b0)
651 #define ISP3X_YNR_HSGM_Y_10_11			(ISP3X_YNR_BASE + 0x000b4)
652 #define ISP3X_YNR_HSGM_Y_12_13			(ISP3X_YNR_BASE + 0x000b8)
653 #define ISP3X_YNR_HSGM_Y_14_15			(ISP3X_YNR_BASE + 0x000bc)
654 #define ISP3X_YNR_HSGM_Y_16			(ISP3X_YNR_BASE + 0x000c0)
655 #define ISP3X_YNR_RNR_STRENGTH03		(ISP3X_YNR_BASE + 0x000d0)
656 #define ISP3X_YNR_RNR_STRENGTH47		(ISP3X_YNR_BASE + 0x000d4)
657 #define ISP3X_YNR_RNR_STRENGTH8B		(ISP3X_YNR_BASE + 0x000d8)
658 #define ISP3X_YNR_RNR_STRENGTHCF		(ISP3X_YNR_BASE + 0x000dc)
659 #define ISP3X_YNR_RNR_STRENGTH16		(ISP3X_YNR_BASE + 0x000e0)
660 
661 #define ISP3X_CNR_BASE				0x00002800
662 #define ISP3X_CNR_CTRL				(ISP3X_CNR_BASE + 0x00000)
663 #define ISP3X_CNR_EXGAIN			(ISP3X_CNR_BASE + 0x00004)
664 #define ISP3X_CNR_GAIN_PARA			(ISP3X_CNR_BASE + 0x00008)
665 #define ISP3X_CNR_GAIN_UV_PARA			(ISP3X_CNR_BASE + 0x0000c)
666 #define ISP3X_CNR_LMED3				(ISP3X_CNR_BASE + 0x00010)
667 #define ISP3X_CNR_LBF5_GAIN			(ISP3X_CNR_BASE + 0x00014)
668 #define ISP3X_CNR_LBF5_WEITD0_3			(ISP3X_CNR_BASE + 0x00018)
669 #define ISP3X_CNR_LBF5_WEITD4			(ISP3X_CNR_BASE + 0x0001c)
670 #define ISP3X_CNR_HMED3				(ISP3X_CNR_BASE + 0x00020)
671 #define ISP3X_CNR_HBF5				(ISP3X_CNR_BASE + 0x00024)
672 #define ISP3X_CNR_LBF3				(ISP3X_CNR_BASE + 0x00028)
673 #define ISP3X_CNR_SIGMA0			(ISP3X_CNR_BASE + 0x0002C)
674 #define ISP3X_CNR_SIGMA1			(ISP3X_CNR_BASE + 0x00030)
675 #define ISP3X_CNR_SIGMA2			(ISP3X_CNR_BASE + 0x00034)
676 #define ISP3X_CNR_SIGMA3			(ISP3X_CNR_BASE + 0x00038)
677 
678 #define ISP3X_SHARP_BASE			0x00002900
679 #define ISP3X_SHARP_EN				(ISP3X_SHARP_BASE + 0x00000)
680 #define ISP3X_SHARP_RATIO			(ISP3X_SHARP_BASE + 0x00004)
681 #define ISP3X_SHARP_LUMA_DX			(ISP3X_SHARP_BASE + 0x00008)
682 #define ISP3X_SHARP_PBF_SIGMA_INV_0		(ISP3X_SHARP_BASE + 0x0000c)
683 #define ISP3X_SHARP_PBF_SIGMA_INV_1		(ISP3X_SHARP_BASE + 0x00010)
684 #define ISP3X_SHARP_PBF_SIGMA_INV_2		(ISP3X_SHARP_BASE + 0x00014)
685 #define ISP3X_SHARP_BF_SIGMA_INV_0		(ISP3X_SHARP_BASE + 0x00018)
686 #define ISP3X_SHARP_BF_SIGMA_INV_1		(ISP3X_SHARP_BASE + 0x0001c)
687 #define ISP3X_SHARP_BF_SIGMA_INV_2		(ISP3X_SHARP_BASE + 0x00020)
688 #define ISP3X_SHARP_SIGMA_SHIFT			(ISP3X_SHARP_BASE + 0x00024)
689 #define ISP3X_SHARP_EHF_TH_0			(ISP3X_SHARP_BASE + 0x00028)
690 #define ISP3X_SHARP_EHF_TH_1			(ISP3X_SHARP_BASE + 0x0002c)
691 #define ISP3X_SHARP_EHF_TH_2			(ISP3X_SHARP_BASE + 0x00030)
692 #define ISP3X_SHARP_CLIP_HF_0			(ISP3X_SHARP_BASE + 0x00034)
693 #define ISP3X_SHARP_CLIP_HF_1			(ISP3X_SHARP_BASE + 0x00038)
694 #define ISP3X_SHARP_CLIP_HF_2			(ISP3X_SHARP_BASE + 0x0003c)
695 #define ISP3X_SHARP_PBF_COEF			(ISP3X_SHARP_BASE + 0x00040)
696 #define ISP3X_SHARP_BF_COEF			(ISP3X_SHARP_BASE + 0x00044)
697 #define ISP3X_SHARP_GAUS_COEF0			(ISP3X_SHARP_BASE + 0x00048)
698 #define ISP3X_SHARP_GAUS_COEF1			(ISP3X_SHARP_BASE + 0x0004C)
699 
700 #define ISP3X_BAY3D_BASE			0x00002C00
701 #define ISP3X_BAY3D_CTRL			(ISP3X_BAY3D_BASE + 0x00000)
702 #define ISP3X_BAY3D_KALRATIO			(ISP3X_BAY3D_BASE + 0x00004)
703 #define ISP3X_BAY3D_GLBPK2			(ISP3X_BAY3D_BASE + 0x00008)
704 #define ISP3X_BAY3D_WGTLMT			(ISP3X_BAY3D_BASE + 0x00010)
705 #define ISP3X_BAY3D_SIG0_X0			(ISP3X_BAY3D_BASE + 0x00014)
706 #define ISP3X_BAY3D_SIG0_X1			(ISP3X_BAY3D_BASE + 0x00018)
707 #define ISP3X_BAY3D_SIG0_X2			(ISP3X_BAY3D_BASE + 0x0001C)
708 #define ISP3X_BAY3D_SIG0_X3			(ISP3X_BAY3D_BASE + 0x00020)
709 #define ISP3X_BAY3D_SIG0_X4			(ISP3X_BAY3D_BASE + 0x00024)
710 #define ISP3X_BAY3D_SIG0_X5			(ISP3X_BAY3D_BASE + 0x00028)
711 #define ISP3X_BAY3D_SIG0_X6			(ISP3X_BAY3D_BASE + 0x0002C)
712 #define ISP3X_BAY3D_SIG0_X7			(ISP3X_BAY3D_BASE + 0x00030)
713 #define ISP3X_BAY3D_SIG0_Y0			(ISP3X_BAY3D_BASE + 0x00034)
714 #define ISP3X_BAY3D_SIG0_Y1			(ISP3X_BAY3D_BASE + 0x00038)
715 #define ISP3X_BAY3D_SIG0_Y2			(ISP3X_BAY3D_BASE + 0x0003C)
716 #define ISP3X_BAY3D_SIG0_Y3			(ISP3X_BAY3D_BASE + 0x00040)
717 #define ISP3X_BAY3D_SIG0_Y4			(ISP3X_BAY3D_BASE + 0x00044)
718 #define ISP3X_BAY3D_SIG0_Y5			(ISP3X_BAY3D_BASE + 0x00048)
719 #define ISP3X_BAY3D_SIG0_Y6			(ISP3X_BAY3D_BASE + 0x0004C)
720 #define ISP3X_BAY3D_SIG0_Y7			(ISP3X_BAY3D_BASE + 0x00050)
721 #define ISP3X_BAY3D_SIG1_X0			(ISP3X_BAY3D_BASE + 0x00054)
722 #define ISP3X_BAY3D_SIG1_X1			(ISP3X_BAY3D_BASE + 0x00058)
723 #define ISP3X_BAY3D_SIG1_X2			(ISP3X_BAY3D_BASE + 0x0005C)
724 #define ISP3X_BAY3D_SIG1_X3			(ISP3X_BAY3D_BASE + 0x00060)
725 #define ISP3X_BAY3D_SIG1_X4			(ISP3X_BAY3D_BASE + 0x00064)
726 #define ISP3X_BAY3D_SIG1_X5			(ISP3X_BAY3D_BASE + 0x00068)
727 #define ISP3X_BAY3D_SIG1_X6			(ISP3X_BAY3D_BASE + 0x0006C)
728 #define ISP3X_BAY3D_SIG1_X7			(ISP3X_BAY3D_BASE + 0x00070)
729 #define ISP3X_BAY3D_SIG1_Y0			(ISP3X_BAY3D_BASE + 0x00074)
730 #define ISP3X_BAY3D_SIG1_Y1			(ISP3X_BAY3D_BASE + 0x00078)
731 #define ISP3X_BAY3D_SIG1_Y2			(ISP3X_BAY3D_BASE + 0x0007C)
732 #define ISP3X_BAY3D_SIG1_Y3			(ISP3X_BAY3D_BASE + 0x00080)
733 #define ISP3X_BAY3D_SIG1_Y4			(ISP3X_BAY3D_BASE + 0x00084)
734 #define ISP3X_BAY3D_SIG1_Y5			(ISP3X_BAY3D_BASE + 0x00088)
735 #define ISP3X_BAY3D_SIG1_Y6			(ISP3X_BAY3D_BASE + 0x0008C)
736 #define ISP3X_BAY3D_SIG1_Y7			(ISP3X_BAY3D_BASE + 0x00090)
737 #define ISP3X_BAY3D_SIG2_Y0			(ISP3X_BAY3D_BASE + 0x00094)
738 #define ISP3X_BAY3D_SIG2_Y1			(ISP3X_BAY3D_BASE + 0x00098)
739 #define ISP3X_BAY3D_SIG2_Y2			(ISP3X_BAY3D_BASE + 0x0009C)
740 #define ISP3X_BAY3D_SIG2_Y3			(ISP3X_BAY3D_BASE + 0x000A0)
741 #define ISP3X_BAY3D_SIG2_Y4			(ISP3X_BAY3D_BASE + 0x000A4)
742 #define ISP3X_BAY3D_SIG2_Y5			(ISP3X_BAY3D_BASE + 0x000A8)
743 #define ISP3X_BAY3D_SIG2_Y6			(ISP3X_BAY3D_BASE + 0x000AC)
744 #define ISP3X_BAY3D_SIG2_Y7			(ISP3X_BAY3D_BASE + 0x000B0)
745 #define ISP3X_BAY3D_LODIF_STAT0			(ISP3X_BAY3D_BASE + 0x000B4)
746 #define ISP3X_BAY3D_LODIF_STAT1			(ISP3X_BAY3D_BASE + 0x000B8)
747 #define ISP3X_BAY3D_HIDIF_STAT0			(ISP3X_BAY3D_BASE + 0x000BC)
748 #define ISP3X_BAY3D_HIDIF_STAT1			(ISP3X_BAY3D_BASE + 0x000C0)
749 #define ISP3X_BAY3D_MI_ST			(ISP3X_BAY3D_BASE + 0x000C8)
750 #define ISP3X_BAY3D_RO_CNT			(ISP3X_BAY3D_BASE + 0x000CC)
751 #define ISP3X_BAY3D_RO_FIFO_CUR			(ISP3X_BAY3D_BASE + 0x000D0)
752 #define ISP3X_BAY3D_RO_FIFO_IIR			(ISP3X_BAY3D_BASE + 0x000D4)
753 #define ISP3X_BAY3D_RO_FIFO_DS			(ISP3X_BAY3D_BASE + 0x000D8)
754 #define ISP3X_BAY3D_RO_FIFO_STATE		(ISP3X_BAY3D_BASE + 0x000DC)
755 #define ISP3X_BAY3D_IN_IRQ_LINECNT		(ISP3X_BAY3D_BASE + 0x000E0)
756 
757 #define ISP3X_GIC_BASE				0x00002F00
758 #define ISP3X_GIC_CONTROL			(ISP3X_GIC_BASE + 0x00000)
759 #define ISP3X_GIC_DIFF_PARA1			(ISP3X_GIC_BASE + 0x00004)
760 #define ISP3X_GIC_DIFF_PARA2			(ISP3X_GIC_BASE + 0x00008)
761 #define ISP3X_GIC_DIFF_PARA3			(ISP3X_GIC_BASE + 0x0000c)
762 #define ISP3X_GIC_DIFF_PARA4			(ISP3X_GIC_BASE + 0x00010)
763 #define ISP3X_GIC_NOISE_PARA1			(ISP3X_GIC_BASE + 0x00014)
764 #define ISP3X_GIC_NOISE_PARA2			(ISP3X_GIC_BASE + 0x00018)
765 #define ISP3X_GIC_NOISE_PARA3			(ISP3X_GIC_BASE + 0x0001c)
766 #define ISP3X_GIC_SIGMA_VALUE0			(ISP3X_GIC_BASE + 0x00020)
767 #define ISP3X_GIC_SIGMA_VALUE1			(ISP3X_GIC_BASE + 0x00024)
768 #define ISP3X_GIC_SIGMA_VALUE2			(ISP3X_GIC_BASE + 0x00028)
769 #define ISP3X_GIC_SIGMA_VALUE3			(ISP3X_GIC_BASE + 0x0002c)
770 #define ISP3X_GIC_SIGMA_VALUE4			(ISP3X_GIC_BASE + 0x00030)
771 #define ISP3X_GIC_SIGMA_VALUE5			(ISP3X_GIC_BASE + 0x00034)
772 #define ISP3X_GIC_SIGMA_VALUE6			(ISP3X_GIC_BASE + 0x00038)
773 #define ISP3X_GIC_SIGMA_VALUE7			(ISP3X_GIC_BASE + 0x0003c)
774 
775 #define ISP3X_BLS_BASE				0x00003000
776 #define ISP3X_BLS_CTRL				(ISP3X_BLS_BASE + 0x00000)
777 #define ISP3X_BLS_SAMPLES			(ISP3X_BLS_BASE + 0x00004)
778 #define ISP3X_BLS_H1_START			(ISP3X_BLS_BASE + 0x00008)
779 #define ISP3X_BLS_H1_STOP			(ISP3X_BLS_BASE + 0x0000c)
780 #define ISP3X_BLS_V1_START			(ISP3X_BLS_BASE + 0x00010)
781 #define ISP3X_BLS_V1_STOP			(ISP3X_BLS_BASE + 0x00014)
782 #define ISP3X_BLS_H2_START			(ISP3X_BLS_BASE + 0x00018)
783 #define ISP3X_BLS_H2_STOP			(ISP3X_BLS_BASE + 0x0001c)
784 #define ISP3X_BLS_V2_START			(ISP3X_BLS_BASE + 0x00020)
785 #define ISP3X_BLS_V2_STOP			(ISP3X_BLS_BASE + 0x00024)
786 #define ISP3X_BLS_A_FIXED			(ISP3X_BLS_BASE + 0x00028)
787 #define ISP3X_BLS_B_FIXED			(ISP3X_BLS_BASE + 0x0002c)
788 #define ISP3X_BLS_C_FIXED			(ISP3X_BLS_BASE + 0x00030)
789 #define ISP3X_BLS_D_FIXED			(ISP3X_BLS_BASE + 0x00034)
790 #define ISP3X_BLS_A_MEASURED			(ISP3X_BLS_BASE + 0x00038)
791 #define ISP3X_BLS_B_MEASURED			(ISP3X_BLS_BASE + 0x0003c)
792 #define ISP3X_BLS_C_MEASURED			(ISP3X_BLS_BASE + 0x00040)
793 #define ISP3X_BLS_D_MEASURED			(ISP3X_BLS_BASE + 0x00044)
794 #define ISP3X_BLS1_A_FIXED			(ISP3X_BLS_BASE + 0x00048)
795 #define ISP3X_BLS1_B_FIXED			(ISP3X_BLS_BASE + 0x0004c)
796 #define ISP3X_BLS1_C_FIXED			(ISP3X_BLS_BASE + 0x00050)
797 #define ISP3X_BLS1_D_FIXED			(ISP3X_BLS_BASE + 0x00054)
798 
799 #define ISP3X_DPCC0_BASE			0x00003400
800 #define ISP3X_DPCC1_BASE			0x00003500
801 #define ISP3X_DPCC2_BASE			0x00003600
802 #define ISP3X_DPCC0_MODE			(ISP3X_DPCC0_BASE + 0x00000)
803 #define ISP3X_DPCC0_OUTPUT_MODE			(ISP3X_DPCC0_BASE + 0x00004)
804 #define ISP3X_DPCC0_SET_USE			(ISP3X_DPCC0_BASE + 0x00008)
805 #define ISP3X_DPCC0_METHODS_SET_1		(ISP3X_DPCC0_BASE + 0x0000c)
806 #define ISP3X_DPCC0_METHODS_SET_2		(ISP3X_DPCC0_BASE + 0x00010)
807 #define ISP3X_DPCC0_METHODS_SET_3		(ISP3X_DPCC0_BASE + 0x00014)
808 #define ISP3X_DPCC0_LINE_THRESH_1		(ISP3X_DPCC0_BASE + 0x00018)
809 #define ISP3X_DPCC0_LINE_MAD_FAC_1		(ISP3X_DPCC0_BASE + 0x0001c)
810 #define ISP3X_DPCC0_PG_FAC_1			(ISP3X_DPCC0_BASE + 0x00020)
811 #define ISP3X_DPCC0_RND_THRESH_1		(ISP3X_DPCC0_BASE + 0x00024)
812 #define ISP3X_DPCC0_RG_FAC_1			(ISP3X_DPCC0_BASE + 0x00028)
813 #define ISP3X_DPCC0_LINE_THRESH_2		(ISP3X_DPCC0_BASE + 0x0002c)
814 #define ISP3X_DPCC0_LINE_MAD_FAC_2		(ISP3X_DPCC0_BASE + 0x00030)
815 #define ISP3X_DPCC0_PG_FAC_2			(ISP3X_DPCC0_BASE + 0x00034)
816 #define ISP3X_DPCC0_RND_THRESH_2		(ISP3X_DPCC0_BASE + 0x00038)
817 #define ISP3X_DPCC0_RG_FAC_2			(ISP3X_DPCC0_BASE + 0x0003c)
818 #define ISP3X_DPCC0_LINE_THRESH_3		(ISP3X_DPCC0_BASE + 0x00040)
819 #define ISP3X_DPCC0_LINE_MAD_FAC_3		(ISP3X_DPCC0_BASE + 0x00044)
820 #define ISP3X_DPCC0_PG_FAC_3			(ISP3X_DPCC0_BASE + 0x00048)
821 #define ISP3X_DPCC0_RND_THRESH_3		(ISP3X_DPCC0_BASE + 0x0004c)
822 #define ISP3X_DPCC0_RG_FAC_3			(ISP3X_DPCC0_BASE + 0x00050)
823 #define ISP3X_DPCC0_RO_LIMITS			(ISP3X_DPCC0_BASE + 0x00054)
824 #define ISP3X_DPCC0_RND_OFFS			(ISP3X_DPCC0_BASE + 0x00058)
825 #define ISP3X_DPCC0_BPT_CTRL			(ISP3X_DPCC0_BASE + 0x0005c)
826 #define ISP3X_DPCC0_BPT_NUMBER			(ISP3X_DPCC0_BASE + 0x00060)
827 #define ISP3X_DPCC0_BPT_ADDR			(ISP3X_DPCC0_BASE + 0x00064)
828 #define ISP3X_DPCC0_BPT_DATA			(ISP3X_DPCC0_BASE + 0x00068)
829 #define ISP3X_DPCC0_BP_CNT			(ISP3X_DPCC0_BASE + 0x0006c)
830 #define ISP3X_DPCC0_PDAF_EN			(ISP3X_DPCC0_BASE + 0x00070)
831 #define ISP3X_DPCC0_PDAF_POINT_EN		(ISP3X_DPCC0_BASE + 0x00074)
832 #define ISP3X_DPCC0_PDAF_OFFSET			(ISP3X_DPCC0_BASE + 0x00078)
833 #define ISP3X_DPCC0_PDAF_WRAP			(ISP3X_DPCC0_BASE + 0x0007c)
834 #define ISP3X_DPCC0_PDAF_SCOPE			(ISP3X_DPCC0_BASE + 0x00080)
835 #define ISP3X_DPCC0_PDAF_POINT_0		(ISP3X_DPCC0_BASE + 0x00084)
836 #define ISP3X_DPCC0_PDAF_POINT_1		(ISP3X_DPCC0_BASE + 0x00088)
837 #define ISP3X_DPCC0_PDAF_POINT_2		(ISP3X_DPCC0_BASE + 0x0008c)
838 #define ISP3X_DPCC0_PDAF_POINT_3		(ISP3X_DPCC0_BASE + 0x00090)
839 #define ISP3X_DPCC0_PDAF_POINT_4		(ISP3X_DPCC0_BASE + 0x00094)
840 #define ISP3X_DPCC0_PDAF_POINT_5		(ISP3X_DPCC0_BASE + 0x00098)
841 #define ISP3X_DPCC0_PDAF_POINT_6		(ISP3X_DPCC0_BASE + 0x0009c)
842 #define ISP3X_DPCC0_PDAF_POINT_7		(ISP3X_DPCC0_BASE + 0x000a0)
843 #define ISP3X_DPCC0_PDAF_FORWARD_MED		(ISP3X_DPCC0_BASE + 0x000a4)
844 
845 #define ISP3X_DPCC1_MODE			(ISP3X_DPCC1_BASE + 0x00000)
846 #define ISP3X_DPCC1_OUTPUT_MODE			(ISP3X_DPCC1_BASE + 0x00004)
847 #define ISP3X_DPCC1_SET_USE			(ISP3X_DPCC1_BASE + 0x00008)
848 #define ISP3X_DPCC1_METHODS_SET_1		(ISP3X_DPCC1_BASE + 0x0000c)
849 #define ISP3X_DPCC1_METHODS_SET_2		(ISP3X_DPCC1_BASE + 0x00010)
850 #define ISP3X_DPCC1_METHODS_SET_3		(ISP3X_DPCC1_BASE + 0x00014)
851 #define ISP3X_DPCC1_LINE_THRESH_1		(ISP3X_DPCC1_BASE + 0x00018)
852 #define ISP3X_DPCC1_LINE_MAD_FAC_1		(ISP3X_DPCC1_BASE + 0x0001c)
853 #define ISP3X_DPCC1_PG_FAC_1			(ISP3X_DPCC1_BASE + 0x00020)
854 #define ISP3X_DPCC1_RND_THRESH_1		(ISP3X_DPCC1_BASE + 0x00024)
855 #define ISP3X_DPCC1_RG_FAC_1			(ISP3X_DPCC1_BASE + 0x00028)
856 #define ISP3X_DPCC1_LINE_THRESH_2		(ISP3X_DPCC1_BASE + 0x0002c)
857 #define ISP3X_DPCC1_LINE_MAD_FAC_2		(ISP3X_DPCC1_BASE + 0x00030)
858 #define ISP3X_DPCC1_PG_FAC_2			(ISP3X_DPCC1_BASE + 0x00034)
859 #define ISP3X_DPCC1_RND_THRESH_2		(ISP3X_DPCC1_BASE + 0x00038)
860 #define ISP3X_DPCC1_RG_FAC_2			(ISP3X_DPCC1_BASE + 0x0003c)
861 #define ISP3X_DPCC1_LINE_THRESH_3		(ISP3X_DPCC1_BASE + 0x00040)
862 #define ISP3X_DPCC1_LINE_MAD_FAC_3		(ISP3X_DPCC1_BASE + 0x00044)
863 #define ISP3X_DPCC1_PG_FAC_3			(ISP3X_DPCC1_BASE + 0x00048)
864 #define ISP3X_DPCC1_RND_THRESH_3		(ISP3X_DPCC1_BASE + 0x0004c)
865 #define ISP3X_DPCC1_RG_FAC_3			(ISP3X_DPCC1_BASE + 0x00050)
866 #define ISP3X_DPCC1_RO_LIMITS			(ISP3X_DPCC1_BASE + 0x00054)
867 #define ISP3X_DPCC1_RND_OFFS			(ISP3X_DPCC1_BASE + 0x00058)
868 #define ISP3X_DPCC1_BPT_CTRL			(ISP3X_DPCC1_BASE + 0x0005c)
869 #define ISP3X_DPCC1_BPT_NUMBER			(ISP3X_DPCC1_BASE + 0x00060)
870 #define ISP3X_DPCC1_BPT_ADDR			(ISP3X_DPCC1_BASE + 0x00064)
871 #define ISP3X_DPCC1_BPT_DATA			(ISP3X_DPCC1_BASE + 0x00068)
872 #define ISP3X_DPCC1_BP_CNT			(ISP3X_DPCC1_BASE + 0x0006c)
873 #define ISP3X_DPCC1_PDAF_EN			(ISP3X_DPCC1_BASE + 0x00070)
874 #define ISP3X_DPCC1_PDAF_POINT_EN		(ISP3X_DPCC1_BASE + 0x00074)
875 #define ISP3X_DPCC1_PDAF_OFFSET			(ISP3X_DPCC1_BASE + 0x00078)
876 #define ISP3X_DPCC1_PDAF_WRAP			(ISP3X_DPCC1_BASE + 0x0007c)
877 #define ISP3X_DPCC1_PDAF_SCOPE			(ISP3X_DPCC1_BASE + 0x00080)
878 #define ISP3X_DPCC1_PDAF_POINT_0		(ISP3X_DPCC1_BASE + 0x00084)
879 #define ISP3X_DPCC1_PDAF_POINT_1		(ISP3X_DPCC1_BASE + 0x00088)
880 #define ISP3X_DPCC1_PDAF_POINT_2		(ISP3X_DPCC1_BASE + 0x0008c)
881 #define ISP3X_DPCC1_PDAF_POINT_3		(ISP3X_DPCC1_BASE + 0x00090)
882 #define ISP3X_DPCC1_PDAF_POINT_4		(ISP3X_DPCC1_BASE + 0x00094)
883 #define ISP3X_DPCC1_PDAF_POINT_5		(ISP3X_DPCC1_BASE + 0x00098)
884 #define ISP3X_DPCC1_PDAF_POINT_6		(ISP3X_DPCC1_BASE + 0x0009c)
885 #define ISP3X_DPCC1_PDAF_POINT_7		(ISP3X_DPCC1_BASE + 0x000a0)
886 #define ISP3X_DPCC1_PDAF_FORWARD_MED		(ISP3X_DPCC1_BASE + 0x000a4)
887 
888 #define ISP3X_DPCC2_MODE			(ISP3X_DPCC2_BASE + 0x00000)
889 #define ISP3X_DPCC2_OUTPUT_MODE			(ISP3X_DPCC2_BASE + 0x00004)
890 #define ISP3X_DPCC2_SET_USE			(ISP3X_DPCC2_BASE + 0x00008)
891 #define ISP3X_DPCC2_METHODS_SET_1		(ISP3X_DPCC2_BASE + 0x0000c)
892 #define ISP3X_DPCC2_METHODS_SET_2		(ISP3X_DPCC2_BASE + 0x00010)
893 #define ISP3X_DPCC2_METHODS_SET_3		(ISP3X_DPCC2_BASE + 0x00014)
894 #define ISP3X_DPCC2_LINE_THRESH_1		(ISP3X_DPCC2_BASE + 0x00018)
895 #define ISP3X_DPCC2_LINE_MAD_FAC_1		(ISP3X_DPCC2_BASE + 0x0001c)
896 #define ISP3X_DPCC2_PG_FAC_1			(ISP3X_DPCC2_BASE + 0x00020)
897 #define ISP3X_DPCC2_RND_THRESH_1		(ISP3X_DPCC2_BASE + 0x00024)
898 #define ISP3X_DPCC2_RG_FAC_1			(ISP3X_DPCC2_BASE + 0x00028)
899 #define ISP3X_DPCC2_LINE_THRESH_2		(ISP3X_DPCC2_BASE + 0x0002c)
900 #define ISP3X_DPCC2_LINE_MAD_FAC_2		(ISP3X_DPCC2_BASE + 0x00030)
901 #define ISP3X_DPCC2_PG_FAC_2			(ISP3X_DPCC2_BASE + 0x00034)
902 #define ISP3X_DPCC2_RND_THRESH_2		(ISP3X_DPCC2_BASE + 0x00038)
903 #define ISP3X_DPCC2_RG_FAC_2			(ISP3X_DPCC2_BASE + 0x0003c)
904 #define ISP3X_DPCC2_LINE_THRESH_3		(ISP3X_DPCC2_BASE + 0x00040)
905 #define ISP3X_DPCC2_LINE_MAD_FAC_3		(ISP3X_DPCC2_BASE + 0x00044)
906 #define ISP3X_DPCC2_PG_FAC_3			(ISP3X_DPCC2_BASE + 0x00048)
907 #define ISP3X_DPCC2_RND_THRESH_3		(ISP3X_DPCC2_BASE + 0x0004c)
908 #define ISP3X_DPCC2_RG_FAC_3			(ISP3X_DPCC2_BASE + 0x00050)
909 #define ISP3X_DPCC2_RO_LIMITS			(ISP3X_DPCC2_BASE + 0x00054)
910 #define ISP3X_DPCC2_RND_OFFS			(ISP3X_DPCC2_BASE + 0x00058)
911 #define ISP3X_DPCC2_BPT_CTRL			(ISP3X_DPCC2_BASE + 0x0005c)
912 #define ISP3X_DPCC2_BPT_NUMBER			(ISP3X_DPCC2_BASE + 0x00060)
913 #define ISP3X_DPCC2_BPT_ADDR			(ISP3X_DPCC2_BASE + 0x00064)
914 #define ISP3X_DPCC2_BPT_DATA			(ISP3X_DPCC2_BASE + 0x00068)
915 #define ISP3X_DPCC2_BP_CNT			(ISP3X_DPCC2_BASE + 0x0006c)
916 #define ISP3X_DPCC2_PDAF_EN			(ISP3X_DPCC2_BASE + 0x00070)
917 #define ISP3X_DPCC2_PDAF_POINT_EN		(ISP3X_DPCC2_BASE + 0x00074)
918 #define ISP3X_DPCC2_PDAF_OFFSET			(ISP3X_DPCC2_BASE + 0x00078)
919 #define ISP3X_DPCC2_PDAF_WRAP			(ISP3X_DPCC2_BASE + 0x0007c)
920 #define ISP3X_DPCC2_PDAF_SCOPE			(ISP3X_DPCC2_BASE + 0x00080)
921 #define ISP3X_DPCC2_PDAF_POINT_0		(ISP3X_DPCC2_BASE + 0x00084)
922 #define ISP3X_DPCC2_PDAF_POINT_1		(ISP3X_DPCC2_BASE + 0x00088)
923 #define ISP3X_DPCC2_PDAF_POINT_2		(ISP3X_DPCC2_BASE + 0x0008c)
924 #define ISP3X_DPCC2_PDAF_POINT_3		(ISP3X_DPCC2_BASE + 0x00090)
925 #define ISP3X_DPCC2_PDAF_POINT_4		(ISP3X_DPCC2_BASE + 0x00094)
926 #define ISP3X_DPCC2_PDAF_POINT_5		(ISP3X_DPCC2_BASE + 0x00098)
927 #define ISP3X_DPCC2_PDAF_POINT_6		(ISP3X_DPCC2_BASE + 0x0009c)
928 #define ISP3X_DPCC2_PDAF_POINT_7		(ISP3X_DPCC2_BASE + 0x000a0)
929 #define ISP3X_DPCC2_PDAF_FORWARD_MED		(ISP3X_DPCC2_BASE + 0x000a4)
930 
931 #define ISP3X_HDRMGE_BASE			0x00003800
932 #define ISP3X_HDRMGE_CTRL			(ISP3X_HDRMGE_BASE + 0x00000)
933 #define ISP3X_HDRMGE_GAIN0			(ISP3X_HDRMGE_BASE + 0x00008)
934 #define ISP3X_HDRMGE_GAIN1			(ISP3X_HDRMGE_BASE + 0x0000c)
935 #define ISP3X_HDRMGE_GAIN2			(ISP3X_HDRMGE_BASE + 0x00010)
936 #define ISP3X_HDRMGE_LIGHTZ			(ISP3X_HDRMGE_BASE + 0x00014)
937 #define ISP3X_HDRMGE_MS_DIFF			(ISP3X_HDRMGE_BASE + 0x00018)
938 #define ISP3X_HDRMGE_LM_DIFF			(ISP3X_HDRMGE_BASE + 0x0001C)
939 #define ISP3X_HDRMGE_DIFF_Y0			(ISP3X_HDRMGE_BASE + 0x00020)
940 #define ISP3X_HDRMGE_DIFF_Y1			(ISP3X_HDRMGE_BASE + 0x00024)
941 #define ISP3X_HDRMGE_DIFF_Y2			(ISP3X_HDRMGE_BASE + 0x00028)
942 #define ISP3X_HDRMGE_DIFF_Y3			(ISP3X_HDRMGE_BASE + 0x0002c)
943 #define ISP3X_HDRMGE_DIFF_Y4			(ISP3X_HDRMGE_BASE + 0x00030)
944 #define ISP3X_HDRMGE_DIFF_Y5			(ISP3X_HDRMGE_BASE + 0x00034)
945 #define ISP3X_HDRMGE_DIFF_Y6			(ISP3X_HDRMGE_BASE + 0x00038)
946 #define ISP3X_HDRMGE_DIFF_Y7			(ISP3X_HDRMGE_BASE + 0x0003c)
947 #define ISP3X_HDRMGE_DIFF_Y8			(ISP3X_HDRMGE_BASE + 0x00040)
948 #define ISP3X_HDRMGE_DIFF_Y9			(ISP3X_HDRMGE_BASE + 0x00044)
949 #define ISP3X_HDRMGE_DIFF_Y10			(ISP3X_HDRMGE_BASE + 0x00048)
950 #define ISP3X_HDRMGE_DIFF_Y11			(ISP3X_HDRMGE_BASE + 0x0004c)
951 #define ISP3X_HDRMGE_DIFF_Y12			(ISP3X_HDRMGE_BASE + 0x00050)
952 #define ISP3X_HDRMGE_DIFF_Y13			(ISP3X_HDRMGE_BASE + 0x00054)
953 #define ISP3X_HDRMGE_DIFF_Y14			(ISP3X_HDRMGE_BASE + 0x00058)
954 #define ISP3X_HDRMGE_DIFF_Y15			(ISP3X_HDRMGE_BASE + 0x0005c)
955 #define ISP3X_HDRMGE_DIFF_Y16			(ISP3X_HDRMGE_BASE + 0x00060)
956 #define ISP3X_HDRMGE_OVER_Y0			(ISP3X_HDRMGE_BASE + 0x00070)
957 #define ISP3X_HDRMGE_OVER_Y1			(ISP3X_HDRMGE_BASE + 0x00074)
958 #define ISP3X_HDRMGE_OVER_Y2			(ISP3X_HDRMGE_BASE + 0x00078)
959 #define ISP3X_HDRMGE_OVER_Y3			(ISP3X_HDRMGE_BASE + 0x0007c)
960 #define ISP3X_HDRMGE_OVER_Y4			(ISP3X_HDRMGE_BASE + 0x00080)
961 #define ISP3X_HDRMGE_OVER_Y5			(ISP3X_HDRMGE_BASE + 0x00084)
962 #define ISP3X_HDRMGE_OVER_Y6			(ISP3X_HDRMGE_BASE + 0x00088)
963 #define ISP3X_HDRMGE_OVER_Y7			(ISP3X_HDRMGE_BASE + 0x0008c)
964 #define ISP3X_HDRMGE_OVER_Y8			(ISP3X_HDRMGE_BASE + 0x00090)
965 #define ISP3X_HDRMGE_OVER_Y9			(ISP3X_HDRMGE_BASE + 0x00094)
966 #define ISP3X_HDRMGE_OVER_Y10			(ISP3X_HDRMGE_BASE + 0x00098)
967 #define ISP3X_HDRMGE_OVER_Y11			(ISP3X_HDRMGE_BASE + 0x0009c)
968 #define ISP3X_HDRMGE_OVER_Y12			(ISP3X_HDRMGE_BASE + 0x000a0)
969 #define ISP3X_HDRMGE_OVER_Y13			(ISP3X_HDRMGE_BASE + 0x000a4)
970 #define ISP3X_HDRMGE_OVER_Y14			(ISP3X_HDRMGE_BASE + 0x000a8)
971 #define ISP3X_HDRMGE_OVER_Y15			(ISP3X_HDRMGE_BASE + 0x000ac)
972 #define ISP3X_HDRMGE_OVER_Y16			(ISP3X_HDRMGE_BASE + 0x000b0)
973 
974 #define ISP3X_DRC_BASE				0x00003900
975 #define ISP3X_DRC_CTRL0				(ISP3X_DRC_BASE + 0x00000)
976 #define ISP3X_DRC_CTRL1				(ISP3X_DRC_BASE + 0x00004)
977 #define ISP3X_DRC_LPRATIO			(ISP3X_DRC_BASE + 0x00008)
978 #define ISP3X_DRC_EXPLRATIO			(ISP3X_DRC_BASE + 0x0000c)
979 #define ISP3X_DRC_SIGMA				(ISP3X_DRC_BASE + 0x00010)
980 #define ISP3X_DRC_SPACESGM			(ISP3X_DRC_BASE + 0x00014)
981 #define ISP3X_DRC_RANESGM			(ISP3X_DRC_BASE + 0x00018)
982 #define ISP3X_DRC_BILAT				(ISP3X_DRC_BASE + 0x0001c)
983 #define ISP3X_DRC_GAIN_Y0			(ISP3X_DRC_BASE + 0x00020)
984 #define ISP3X_DRC_GAIN_Y1			(ISP3X_DRC_BASE + 0x00024)
985 #define ISP3X_DRC_GAIN_Y2			(ISP3X_DRC_BASE + 0x00028)
986 #define ISP3X_DRC_GAIN_Y3			(ISP3X_DRC_BASE + 0x0002c)
987 #define ISP3X_DRC_GAIN_Y4			(ISP3X_DRC_BASE + 0x00030)
988 #define ISP3X_DRC_GAIN_Y5			(ISP3X_DRC_BASE + 0x00034)
989 #define ISP3X_DRC_GAIN_Y6			(ISP3X_DRC_BASE + 0x00038)
990 #define ISP3X_DRC_GAIN_Y7			(ISP3X_DRC_BASE + 0x0003c)
991 #define ISP3X_DRC_GAIN_Y8			(ISP3X_DRC_BASE + 0x00040)
992 #define ISP3X_DRC_COMPRES_Y0			(ISP3X_DRC_BASE + 0x00044)
993 #define ISP3X_DRC_COMPRES_Y1			(ISP3X_DRC_BASE + 0x00048)
994 #define ISP3X_DRC_COMPRES_Y2			(ISP3X_DRC_BASE + 0x0004c)
995 #define ISP3X_DRC_COMPRES_Y3			(ISP3X_DRC_BASE + 0x00050)
996 #define ISP3X_DRC_COMPRES_Y4			(ISP3X_DRC_BASE + 0x00054)
997 #define ISP3X_DRC_COMPRES_Y5			(ISP3X_DRC_BASE + 0x00058)
998 #define ISP3X_DRC_COMPRES_Y6			(ISP3X_DRC_BASE + 0x0005c)
999 #define ISP3X_DRC_COMPRES_Y7			(ISP3X_DRC_BASE + 0x00060)
1000 #define ISP3X_DRC_COMPRES_Y8			(ISP3X_DRC_BASE + 0x00064)
1001 #define ISP3X_DRC_SCALE_Y0			(ISP3X_DRC_BASE + 0x00068)
1002 #define ISP3X_DRC_SCALE_Y1			(ISP3X_DRC_BASE + 0x0006c)
1003 #define ISP3X_DRC_SCALE_Y2			(ISP3X_DRC_BASE + 0x00070)
1004 #define ISP3X_DRC_SCALE_Y3			(ISP3X_DRC_BASE + 0x00074)
1005 #define ISP3X_DRC_SCALE_Y4			(ISP3X_DRC_BASE + 0x00078)
1006 #define ISP3X_DRC_SCALE_Y5			(ISP3X_DRC_BASE + 0x0007c)
1007 #define ISP3X_DRC_SCALE_Y6			(ISP3X_DRC_BASE + 0x00080)
1008 #define ISP3X_DRC_SCALE_Y7			(ISP3X_DRC_BASE + 0x00084)
1009 #define ISP3X_DRC_SCALE_Y8			(ISP3X_DRC_BASE + 0x00088)
1010 #define ISP3X_DRC_IIRWG_GAIN			(ISP3X_DRC_BASE + 0x0008c)
1011 
1012 #define ISP3X_BAYNR_BASE			0x00003A00
1013 #define ISP3X_BAYNR_CTRL			(ISP3X_BAYNR_BASE + 0x00000)
1014 #define ISP3X_BAYNR_DGAIN0			(ISP3X_BAYNR_BASE + 0x00004)
1015 #define ISP3X_BAYNR_DGAIN1			(ISP3X_BAYNR_BASE + 0x00008)
1016 #define ISP3X_BAYNR_PIXDIFF			(ISP3X_BAYNR_BASE + 0x0000c)
1017 #define ISP3X_BAYNR_THLD			(ISP3X_BAYNR_BASE + 0x00010)
1018 #define ISP3X_BAYNR_W1_STRENG			(ISP3X_BAYNR_BASE + 0x00014)
1019 #define ISP3X_BAYNR_SIGMAX01			(ISP3X_BAYNR_BASE + 0x00018)
1020 #define ISP3X_BAYNR_SIGMAX23			(ISP3X_BAYNR_BASE + 0x0001c)
1021 #define ISP3X_BAYNR_SIGMAX45			(ISP3X_BAYNR_BASE + 0x00020)
1022 #define ISP3X_BAYNR_SIGMAX67			(ISP3X_BAYNR_BASE + 0x00024)
1023 #define ISP3X_BAYNR_SIGMAX89			(ISP3X_BAYNR_BASE + 0x00028)
1024 #define ISP3X_BAYNR_SIGMAX1011			(ISP3X_BAYNR_BASE + 0x0002c)
1025 #define ISP3X_BAYNR_SIGMAX1213			(ISP3X_BAYNR_BASE + 0x00030)
1026 #define ISP3X_BAYNR_SIGMAX1415			(ISP3X_BAYNR_BASE + 0x00034)
1027 #define ISP3X_BAYNR_SIGMAY01			(ISP3X_BAYNR_BASE + 0x00038)
1028 #define ISP3X_BAYNR_SIGMAY23			(ISP3X_BAYNR_BASE + 0x0003c)
1029 #define ISP3X_BAYNR_SIGMAY45			(ISP3X_BAYNR_BASE + 0x00040)
1030 #define ISP3X_BAYNR_SIGMAY67			(ISP3X_BAYNR_BASE + 0x00044)
1031 #define ISP3X_BAYNR_SIGMAY89			(ISP3X_BAYNR_BASE + 0x00048)
1032 #define ISP3X_BAYNR_SIGMAY1011			(ISP3X_BAYNR_BASE + 0x0004c)
1033 #define ISP3X_BAYNR_SIGMAY1213			(ISP3X_BAYNR_BASE + 0x00050)
1034 #define ISP3X_BAYNR_SIGMAY1415			(ISP3X_BAYNR_BASE + 0x00054)
1035 #define ISP3X_BAYNR_WRIT_D			(ISP3X_BAYNR_BASE + 0x00058)
1036 #define ISP3X_BAYNR_LG_OFF			(ISP3X_BAYNR_BASE + 0x0005c)
1037 #define ISP3X_BAYNR_DAT_MAX			(ISP3X_BAYNR_BASE + 0x00060)
1038 
1039 #define ISP3X_LDCH_BASE				0x00003B00
1040 #define ISP3X_LDCH_STS				(ISP3X_LDCH_BASE + 0x00000)
1041 
1042 #define ISP3X_DHAZ_BASE				0x00003C00
1043 #define ISP3X_DHAZ_CTRL				(ISP3X_DHAZ_BASE + 0x00000)
1044 #define ISP3X_DHAZ_ADP0				(ISP3X_DHAZ_BASE + 0x00004)
1045 #define ISP3X_DHAZ_ADP1				(ISP3X_DHAZ_BASE + 0x00008)
1046 #define ISP3X_DHAZ_ADP2				(ISP3X_DHAZ_BASE + 0x0000c)
1047 #define ISP3X_DHAZ_ADP_TMAX			(ISP3X_DHAZ_BASE + 0x00010)
1048 #define ISP3X_DHAZ_ADP_HIST0			(ISP3X_DHAZ_BASE + 0x00014)
1049 #define ISP3X_DHAZ_ADP_HIST1			(ISP3X_DHAZ_BASE + 0x00018)
1050 #define ISP3X_DHAZ_ENHANCE			(ISP3X_DHAZ_BASE + 0x0001c)
1051 #define ISP3X_DHAZ_IIR0				(ISP3X_DHAZ_BASE + 0x00020)
1052 #define ISP3X_DHAZ_IIR1				(ISP3X_DHAZ_BASE + 0x00024)
1053 #define ISP3X_DHAZ_SOFT_CFG0			(ISP3X_DHAZ_BASE + 0x00028)
1054 #define ISP3X_DHAZ_SOFT_CFG1			(ISP3X_DHAZ_BASE + 0x0002c)
1055 #define ISP3X_DHAZ_BF_SIGMA			(ISP3X_DHAZ_BASE + 0x00030)
1056 #define ISP3X_DHAZ_BF_WET			(ISP3X_DHAZ_BASE + 0x00034)
1057 #define ISP3X_DHAZ_ENH_CURVE0			(ISP3X_DHAZ_BASE + 0x00038)
1058 #define ISP3X_DHAZ_ENH_CURVE1			(ISP3X_DHAZ_BASE + 0x0003c)
1059 #define ISP3X_DHAZ_ENH_CURVE2			(ISP3X_DHAZ_BASE + 0x00040)
1060 #define ISP3X_DHAZ_ENH_CURVE3			(ISP3X_DHAZ_BASE + 0x00044)
1061 #define ISP3X_DHAZ_ENH_CURVE4			(ISP3X_DHAZ_BASE + 0x00048)
1062 #define ISP3X_DHAZ_ENH_CURVE5			(ISP3X_DHAZ_BASE + 0x0004c)
1063 #define ISP3X_DHAZ_ENH_CURVE6			(ISP3X_DHAZ_BASE + 0x00050)
1064 #define ISP3X_DHAZ_ENH_CURVE7			(ISP3X_DHAZ_BASE + 0x00054)
1065 #define ISP3X_DHAZ_ENH_CURVE8			(ISP3X_DHAZ_BASE + 0x00058)
1066 #define ISP3X_DHAZ_GAUS				(ISP3X_DHAZ_BASE + 0x0005c)
1067 #define ISP3X_DHAZ_GAIN_IDX0			(ISP3X_DHAZ_BASE + 0x00060)
1068 #define ISP3X_DHAZ_GAIN_IDX1			(ISP3X_DHAZ_BASE + 0x00064)
1069 #define ISP3X_DHAZ_GAIN_IDX2			(ISP3X_DHAZ_BASE + 0x00068)
1070 #define ISP3X_DHAZ_GAIN_IDX3			(ISP3X_DHAZ_BASE + 0x0006C)
1071 #define ISP3X_DHAZ_GAIN_LUT0			(ISP3X_DHAZ_BASE + 0x00070)
1072 #define ISP3X_DHAZ_GAIN_LUT1			(ISP3X_DHAZ_BASE + 0x00074)
1073 #define ISP3X_DHAZ_GAIN_LUT2			(ISP3X_DHAZ_BASE + 0x00078)
1074 #define ISP3X_DHAZ_GAIN_LUT3			(ISP3X_DHAZ_BASE + 0x0007C)
1075 #define ISP3X_DHAZ_GAIN_LUT4			(ISP3X_DHAZ_BASE + 0x00080)
1076 #define ISP3X_DHAZ_GAIN_LUT5			(ISP3X_DHAZ_BASE + 0x00084)
1077 #define ISP3X_DHAZ_GAIN_LUT6			(ISP3X_DHAZ_BASE + 0x00088)
1078 #define ISP3X_DHAZ_GAIN_LUT7			(ISP3X_DHAZ_BASE + 0x0008C)
1079 #define ISP3X_DHAZ_GAIN_LUT8			(ISP3X_DHAZ_BASE + 0x00090)
1080 #define ISP3X_DHAZ_SUMH_RD			(ISP3X_DHAZ_BASE + 0x0009C)
1081 #define ISP3X_DHAZ_ADT_WR0			(ISP3X_DHAZ_BASE + 0x000A0)
1082 #define ISP3X_DHAZ_ADT_WR1			(ISP3X_DHAZ_BASE + 0x000A4)
1083 #define ISP3X_DHAZ_HIST_WR0			(ISP3X_DHAZ_BASE + 0x000A8)
1084 #define ISP3X_DHAZ_HIST_WR1			(ISP3X_DHAZ_BASE + 0x000AC)
1085 #define ISP3X_DHAZ_HIST_WR2			(ISP3X_DHAZ_BASE + 0x000B0)
1086 #define ISP3X_DHAZ_HIST_WR3			(ISP3X_DHAZ_BASE + 0x000B4)
1087 #define ISP3X_DHAZ_HIST_WR4			(ISP3X_DHAZ_BASE + 0x000B8)
1088 #define ISP3X_DHAZ_HIST_WR5			(ISP3X_DHAZ_BASE + 0x000BC)
1089 #define ISP3X_DHAZ_HIST_WR6			(ISP3X_DHAZ_BASE + 0x000C0)
1090 #define ISP3X_DHAZ_HIST_WR7			(ISP3X_DHAZ_BASE + 0x000C4)
1091 #define ISP3X_DHAZ_HIST_WR8			(ISP3X_DHAZ_BASE + 0x000C8)
1092 #define ISP3X_DHAZ_HIST_WR9			(ISP3X_DHAZ_BASE + 0x000CC)
1093 #define ISP3X_DHAZ_HIST_WR10			(ISP3X_DHAZ_BASE + 0x000D0)
1094 #define ISP3X_DHAZ_HIST_WR11			(ISP3X_DHAZ_BASE + 0x000D4)
1095 #define ISP3X_DHAZ_HIST_WR12			(ISP3X_DHAZ_BASE + 0x000D8)
1096 #define ISP3X_DHAZ_HIST_WR13			(ISP3X_DHAZ_BASE + 0x000DC)
1097 #define ISP3X_DHAZ_HIST_WR14			(ISP3X_DHAZ_BASE + 0x000E0)
1098 #define ISP3X_DHAZ_HIST_WR15			(ISP3X_DHAZ_BASE + 0x000E4)
1099 #define ISP3X_DHAZ_HIST_WR16			(ISP3X_DHAZ_BASE + 0x000E8)
1100 #define ISP3X_DHAZ_HIST_WR17			(ISP3X_DHAZ_BASE + 0x000EC)
1101 #define ISP3X_DHAZ_HIST_WR18			(ISP3X_DHAZ_BASE + 0x000F0)
1102 #define ISP3X_DHAZ_HIST_WR19			(ISP3X_DHAZ_BASE + 0x000F4)
1103 #define ISP3X_DHAZ_HIST_WR20			(ISP3X_DHAZ_BASE + 0x000F8)
1104 #define ISP3X_DHAZ_HIST_WR21			(ISP3X_DHAZ_BASE + 0x000FC)
1105 #define ISP3X_DHAZ_CTRL_SHD			(ISP3X_DHAZ_BASE + 0x00100)
1106 #define ISP3X_DHAZ_ADP_RD0			(ISP3X_DHAZ_BASE + 0x00104)
1107 #define ISP3X_DHAZ_ADP_RD1			(ISP3X_DHAZ_BASE + 0x00108)
1108 #define ISP3X_DHAZ_HIST_REG0			(ISP3X_DHAZ_BASE + 0x00110)
1109 #define ISP3X_DHAZ_HIST_REG1			(ISP3X_DHAZ_BASE + 0x00114)
1110 #define ISP3X_DHAZ_HIST_REG2			(ISP3X_DHAZ_BASE + 0x00118)
1111 #define ISP3X_DHAZ_HIST_REG3			(ISP3X_DHAZ_BASE + 0x0011C)
1112 #define ISP3X_DHAZ_HIST_REG4			(ISP3X_DHAZ_BASE + 0x00120)
1113 #define ISP3X_DHAZ_HIST_REG5			(ISP3X_DHAZ_BASE + 0x00124)
1114 #define ISP3X_DHAZ_HIST_REG6			(ISP3X_DHAZ_BASE + 0x00128)
1115 #define ISP3X_DHAZ_HIST_REG7			(ISP3X_DHAZ_BASE + 0x0012C)
1116 #define ISP3X_DHAZ_HIST_REG8			(ISP3X_DHAZ_BASE + 0x00130)
1117 #define ISP3X_DHAZ_HIST_REG9			(ISP3X_DHAZ_BASE + 0x00134)
1118 #define ISP3X_DHAZ_HIST_REG10			(ISP3X_DHAZ_BASE + 0x00138)
1119 #define ISP3X_DHAZ_HIST_REG11			(ISP3X_DHAZ_BASE + 0x0013C)
1120 #define ISP3X_DHAZ_HIST_REG12			(ISP3X_DHAZ_BASE + 0x00140)
1121 #define ISP3X_DHAZ_HIST_REG13			(ISP3X_DHAZ_BASE + 0x00144)
1122 #define ISP3X_DHAZ_HIST_REG14			(ISP3X_DHAZ_BASE + 0x00148)
1123 #define ISP3X_DHAZ_HIST_REG15			(ISP3X_DHAZ_BASE + 0x0014C)
1124 #define ISP3X_DHAZ_HIST_REG16			(ISP3X_DHAZ_BASE + 0x00150)
1125 #define ISP3X_DHAZ_HIST_REG17			(ISP3X_DHAZ_BASE + 0x00154)
1126 #define ISP3X_DHAZ_HIST_REG18			(ISP3X_DHAZ_BASE + 0x00158)
1127 #define ISP3X_DHAZ_HIST_REG19			(ISP3X_DHAZ_BASE + 0x0015C)
1128 #define ISP3X_DHAZ_HIST_REG20			(ISP3X_DHAZ_BASE + 0x00160)
1129 #define ISP3X_DHAZ_HIST_REG21			(ISP3X_DHAZ_BASE + 0x00164)
1130 #define ISP3X_DHAZ_HIST_REG22			(ISP3X_DHAZ_BASE + 0x00168)
1131 #define ISP3X_DHAZ_HIST_REG23			(ISP3X_DHAZ_BASE + 0x0016C)
1132 #define ISP3X_DHAZ_HIST_REG24			(ISP3X_DHAZ_BASE + 0x00170)
1133 #define ISP3X_DHAZ_HIST_REG25			(ISP3X_DHAZ_BASE + 0x00174)
1134 #define ISP3X_DHAZ_HIST_REG26			(ISP3X_DHAZ_BASE + 0x00178)
1135 #define ISP3X_DHAZ_HIST_REG27			(ISP3X_DHAZ_BASE + 0x0017C)
1136 #define ISP3X_DHAZ_HIST_REG28			(ISP3X_DHAZ_BASE + 0x00180)
1137 #define ISP3X_DHAZ_HIST_REG29			(ISP3X_DHAZ_BASE + 0x00184)
1138 #define ISP3X_DHAZ_HIST_REG30			(ISP3X_DHAZ_BASE + 0x00188)
1139 #define ISP3X_DHAZ_HIST_REG31			(ISP3X_DHAZ_BASE + 0x0018C)
1140 
1141 #define ISP3X_3DLUT_BASE			0x00003E00
1142 #define ISP3X_3DLUT_CTRL			(ISP3X_3DLUT_BASE + 0x00000)
1143 #define ISP3X_3DLUT_UPDATE			(ISP3X_3DLUT_BASE + 0x00004)
1144 
1145 #define ISP3X_GAIN_BASE				0x00003F00
1146 #define ISP3X_GAIN_CTRL				(ISP3X_GAIN_BASE + 0x00000)
1147 #define ISP3X_GAIN_G0				(ISP3X_GAIN_BASE + 0x00004)
1148 #define ISP3X_GAIN_G1_G2			(ISP3X_GAIN_BASE + 0x00008)
1149 #define ISP3X_GAIN_FIFO_STATUS			(ISP3X_GAIN_BASE + 0x0000C)
1150 
1151 #define ISP3X_RAWAE_LITE_BASE			0x00004500
1152 #define ISP3X_RAWAE_LITE_CTRL			(ISP3X_RAWAE_LITE_BASE + 0x00000)
1153 #define ISP3X_RAWAE_LITE_BLK_SIZ		(ISP3X_RAWAE_LITE_BASE + 0x00004)
1154 #define ISP3X_RAWAE_LITE_OFFSET			(ISP3X_RAWAE_LITE_BASE + 0x00008)
1155 #define ISP3X_RAWAE_LITE_RO_MEAN		(ISP3X_RAWAE_LITE_BASE + 0x00010)
1156 #define ISP3X_RAWAE_LITE_RO_DBG1		(ISP3X_RAWAE_LITE_BASE + 0x00074)
1157 #define ISP3X_RAWAE_LITE_RO_DBG2		(ISP3X_RAWAE_LITE_BASE + 0x00078)
1158 
1159 #define ISP3X_RAWAE_BIG1_BASE			0x00004400
1160 #define ISP3X_RAWAE_BIG2_BASE			0x00004600
1161 #define ISP3X_RAWAE_BIG3_BASE			0x00004700
1162 #define ISP3X_RAWAE_BIG_CTRL			0x00000
1163 #define ISP3X_RAWAE_BIG_BLK_SIZE		0x00004
1164 #define ISP3X_RAWAE_BIG_OFFSET			0x00008
1165 #define ISP3X_RAWAE_BIG_RAM_CTRL		0x0000c
1166 #define ISP3X_RAWAE_BIG_WND1_SIZE		0x00010
1167 #define ISP3X_RAWAE_BIG_WND1_OFFSET		0x00014
1168 #define ISP3X_RAWAE_BIG_WND2_SIZE		0x00018
1169 #define ISP3X_RAWAE_BIG_WND2_OFFSET		0x0001c
1170 #define ISP3X_RAWAE_BIG_WND3_SIZE		0x00020
1171 #define ISP3X_RAWAE_BIG_WND3_OFFSET		0x00024
1172 #define ISP3X_RAWAE_BIG_WND4_SIZE		0x00028
1173 #define ISP3X_RAWAE_BIG_WND4_OFFSET		0x0002c
1174 #define ISP3X_RAWAE_BIG_WND1_SUMR		0x00030
1175 #define ISP3X_RAWAE_BIG_WND2_SUMR		0x00034
1176 #define ISP3X_RAWAE_BIG_WND3_SUMR		0x00038
1177 #define ISP3X_RAWAE_BIG_WND4_SUMR		0x0003c
1178 #define ISP3X_RAWAE_BIG_WND1_SUMG		0x00040
1179 #define ISP3X_RAWAE_BIG_WND2_SUMG		0x00044
1180 #define ISP3X_RAWAE_BIG_WND3_SUMG		0x00048
1181 #define ISP3X_RAWAE_BIG_WND4_SUMG		0x0004c
1182 #define ISP3X_RAWAE_BIG_WND1_SUMB		0x00050
1183 #define ISP3X_RAWAE_BIG_WND2_SUMB		0x00054
1184 #define ISP3X_RAWAE_BIG_WND3_SUMB		0x00058
1185 #define ISP3X_RAWAE_BIG_WND4_SUMB		0x0005c
1186 #define ISP3X_RAWAE_BIG_RO_DBG1			0x00060
1187 #define ISP3X_RAWAE_BIG_RO_DBG2			0x00064
1188 #define ISP3X_RAWAE_BIG_RO_DBG3			0x00068
1189 #define ISP3X_RAWAE_BIG_RO_MEAN_BASE_ADDR	0x00080
1190 
1191 #define ISP3X_RAWHIST_LITE_BASE			0x00004900
1192 #define ISP3X_RAWHIST_LITE_CTRL			(ISP3X_RAWHIST_LITE_BASE + 0x00000)
1193 #define ISP3X_RAWHIST_LITE_SIZE			(ISP3X_RAWHIST_LITE_BASE + 0x00004)
1194 #define ISP3X_RAWHIST_LITE_OFFS			(ISP3X_RAWHIST_LITE_BASE + 0x00008)
1195 #define ISP3X_RAWHIST_LITE_RAM_CTRL		(ISP3X_RAWHIST_LITE_BASE + 0x0000c)
1196 #define ISP3X_RAWHIST_LITE_RAW2Y_CC		(ISP3X_RAWHIST_LITE_BASE + 0x00010)
1197 #define ISP3X_RAWHIST_LITE_DBG1			(ISP3X_RAWHIST_LITE_BASE + 0x00020)
1198 #define ISP3X_RAWHIST_LITE_DBG2			(ISP3X_RAWHIST_LITE_BASE + 0x00024)
1199 #define ISP3X_RAWHIST_LITE_DBG3			(ISP3X_RAWHIST_LITE_BASE + 0x00028)
1200 #define ISP3X_RAWHIST_LITE_WEIGHT		(ISP3X_RAWHIST_LITE_BASE + 0x00040)
1201 #define ISP3X_RAWHIST_LITE_RO_BASE_BIN		(ISP3X_RAWHIST_LITE_BASE + 0x00080)
1202 
1203 #define ISP3X_RAWHIST_BIG1_BASE			0x00004800
1204 #define ISP3X_RAWHIST_BIG2_BASE			0x00004A00
1205 #define ISP3X_RAWHIST_BIG3_BASE			0x00004B00
1206 #define ISP3X_RAWHIST_BIG_CTRL			0x00000
1207 #define ISP3X_RAWHIST_BIG_SIZE			0x00004
1208 #define ISP3X_RAWHIST_BIG_OFFS			0x00008
1209 #define ISP3X_RAWHIST_BIG_HRAM_CTRL		0x0000C
1210 #define ISP3X_RAWHIST_BIG_RAW2Y_CC		0x00010
1211 #define ISP3X_RAWHIST_BIG_WRAM_CTRL		0x00014
1212 #define ISP3X_RAWHIST_BIG_DBG1			0x00020
1213 #define ISP3X_RAWHIST_BIG_DBG2			0x00024
1214 #define ISP3X_RAWHIST_BIG_DBG3			0x00028
1215 #define ISP3X_RAWHIST_BIG_WEIGHT_BASE		0x00040
1216 #define ISP3X_RAWHIST_BIG_RO_BASE_BIN		0x00080
1217 
1218 #define ISP3X_RAWAF_BASE			0x00004D00
1219 #define ISP3X_RAWAF_CTRL			(ISP3X_RAWAF_BASE + 0x00000)
1220 #define ISP3X_RAWAF_OFFSET_WINA			(ISP3X_RAWAF_BASE + 0x00004)
1221 #define ISP3X_RAWAF_SIZE_WINA			(ISP3X_RAWAF_BASE + 0x00008)
1222 #define ISP3X_RAWAF_OFFSET_WINB			(ISP3X_RAWAF_BASE + 0x0000c)
1223 #define ISP3X_RAWAF_SIZE_WINB			(ISP3X_RAWAF_BASE + 0x00010)
1224 #define ISP3X_RAWAF_INT_LINE			(ISP3X_RAWAF_BASE + 0x00014)
1225 #define ISP3X_RAWAF_THRES			(ISP3X_RAWAF_BASE + 0x0001c)
1226 #define ISP3X_RAWAF_VAR_SHIFT			(ISP3X_RAWAF_BASE + 0x00020)
1227 #define ISP3X_RAWAF_HVIIR_VAR_SHIFT		(ISP3X_RAWAF_BASE + 0x00024)
1228 #define ISP3X_RAWAF_SUM_B			(ISP3X_RAWAF_BASE + 0x00028)
1229 #define ISP3X_RAWAF_LUM_B			(ISP3X_RAWAF_BASE + 0x00030)
1230 #define ISP3X_RAWAF_GAMMA_Y0			(ISP3X_RAWAF_BASE + 0x00034)
1231 #define ISP3X_RAWAF_GAMMA_Y1			(ISP3X_RAWAF_BASE + 0x00038)
1232 #define ISP3X_RAWAF_GAMMA_Y2			(ISP3X_RAWAF_BASE + 0x0003c)
1233 #define ISP3X_RAWAF_GAMMA_Y3			(ISP3X_RAWAF_BASE + 0x00040)
1234 #define ISP3X_RAWAF_GAMMA_Y4			(ISP3X_RAWAF_BASE + 0x00044)
1235 #define ISP3X_RAWAF_GAMMA_Y5			(ISP3X_RAWAF_BASE + 0x00048)
1236 #define ISP3X_RAWAF_GAMMA_Y6			(ISP3X_RAWAF_BASE + 0x0004c)
1237 #define ISP3X_RAWAF_GAMMA_Y7			(ISP3X_RAWAF_BASE + 0x00050)
1238 #define ISP3X_RAWAF_GAMMA_Y8			(ISP3X_RAWAF_BASE + 0x00054)
1239 #define ISP3X_RAWAF_INT_STATE			(ISP3X_RAWAF_BASE + 0x00058)
1240 #define ISP3X_RAWAF_HIIR_THRESH			(ISP3X_RAWAF_BASE + 0x0005c)
1241 #define ISP3X_RAWAF_H1_IIR1_COE01		(ISP3X_RAWAF_BASE + 0x00060)
1242 #define ISP3X_RAWAF_H1_IIR1_COE23		(ISP3X_RAWAF_BASE + 0x00064)
1243 #define ISP3X_RAWAF_H1_IIR1_COE45		(ISP3X_RAWAF_BASE + 0x00068)
1244 #define ISP3X_RAWAF_H_CURVEL			(ISP3X_RAWAF_BASE + 0x0006C)
1245 #define ISP3X_RAWAF_H1_IIR2_COE01		(ISP3X_RAWAF_BASE + 0x00070)
1246 #define ISP3X_RAWAF_H1_IIR2_COE23		(ISP3X_RAWAF_BASE + 0x00074)
1247 #define ISP3X_RAWAF_H1_IIR2_COE45		(ISP3X_RAWAF_BASE + 0x00078)
1248 #define ISP3X_RAWAF_H_CURVEH			(ISP3X_RAWAF_BASE + 0x0007C)
1249 #define ISP3X_RAWAF_H2_IIR1_COE01		(ISP3X_RAWAF_BASE + 0x00080)
1250 #define ISP3X_RAWAF_H2_IIR1_COE23		(ISP3X_RAWAF_BASE + 0x00084)
1251 #define ISP3X_RAWAF_H2_IIR1_COE45		(ISP3X_RAWAF_BASE + 0x00088)
1252 #define ISP3X_RAWAF_V_CURVEL			(ISP3X_RAWAF_BASE + 0x0008C)
1253 #define ISP3X_RAWAF_H2_IIR2_COE01		(ISP3X_RAWAF_BASE + 0x00090)
1254 #define ISP3X_RAWAF_H2_IIR2_COE23		(ISP3X_RAWAF_BASE + 0x00094)
1255 #define ISP3X_RAWAF_H2_IIR2_COE45		(ISP3X_RAWAF_BASE + 0x00098)
1256 #define ISP3X_RAWAF_V_CURVEH			(ISP3X_RAWAF_BASE + 0x0009C)
1257 #define ISP3X_RAWAF_V_IIR_COE0			(ISP3X_RAWAF_BASE + 0x000A0)
1258 #define ISP3X_RAWAF_V_IIR_COE1			(ISP3X_RAWAF_BASE + 0x000A4)
1259 #define ISP3X_RAWAF_V_IIR_COE2			(ISP3X_RAWAF_BASE + 0x000A8)
1260 #define ISP3X_RAWAF_V_IIR_COE3			(ISP3X_RAWAF_BASE + 0x000AC)
1261 #define ISP3X_RAWAF_V_IIR_COE4			(ISP3X_RAWAF_BASE + 0x000B0)
1262 #define ISP3X_RAWAF_V_IIR_COE5			(ISP3X_RAWAF_BASE + 0x000B4)
1263 #define ISP3X_RAWAF_V_IIR_COE6			(ISP3X_RAWAF_BASE + 0x000B8)
1264 #define ISP3X_RAWAF_V_IIR_COE7			(ISP3X_RAWAF_BASE + 0x000BC)
1265 #define ISP3X_RAWAF_V_IIR_COE8			(ISP3X_RAWAF_BASE + 0x000C0)
1266 #define ISP3X_RAWAF_V_FIR_COE0			(ISP3X_RAWAF_BASE + 0x000C4)
1267 #define ISP3X_RAWAF_V_FIR_COE1			(ISP3X_RAWAF_BASE + 0x000C8)
1268 #define ISP3X_RAWAF_V_FIR_COE2			(ISP3X_RAWAF_BASE + 0x000CC)
1269 #define ISP3X_RAWAF_HIGHLIT_THRESH		(ISP3X_RAWAF_BASE + 0x000D0)
1270 #define ISP3X_RAWAF_HIGHLIT_CNT_WINB		(ISP3X_RAWAF_BASE + 0x000D8)
1271 #define ISP3X_RAWAF_RAM_DATA			(ISP3X_RAWAF_BASE + 0x000E0)
1272 
1273 #define ISP3X_RAWAWB_BASE                        0x00005000
1274 #define ISP3X_RAWAWB_CTRL                        (ISP3X_RAWAWB_BASE + 0x0000)
1275 #define ISP3X_RAWAWB_BLK_CTRL                    (ISP3X_RAWAWB_BASE + 0x0004)
1276 #define ISP3X_RAWAWB_WIN_OFFS                    (ISP3X_RAWAWB_BASE + 0x0008)
1277 #define ISP3X_RAWAWB_WIN_SIZE                    (ISP3X_RAWAWB_BASE + 0x000c)
1278 #define ISP3X_RAWAWB_LIMIT_RG_MAX                (ISP3X_RAWAWB_BASE + 0x0010)
1279 #define ISP3X_RAWAWB_LIMIT_BY_MAX                (ISP3X_RAWAWB_BASE + 0x0014)
1280 #define ISP3X_RAWAWB_LIMIT_RG_MIN                (ISP3X_RAWAWB_BASE + 0x0018)
1281 #define ISP3X_RAWAWB_LIMIT_BY_MIN                (ISP3X_RAWAWB_BASE + 0x001c)
1282 #define ISP3X_RAWAWB_WEIGHT_CURVE_CTRL           (ISP3X_RAWAWB_BASE + 0x0020)
1283 #define ISP3X_RAWAWB_YWEIGHT_CURVE_XCOOR03       (ISP3X_RAWAWB_BASE + 0x0024)
1284 #define ISP3X_RAWAWB_YWEIGHT_CURVE_XCOOR47       (ISP3X_RAWAWB_BASE + 0x0028)
1285 #define ISP3X_RAWAWB_YWEIGHT_CURVE_XCOOR8        (ISP3X_RAWAWB_BASE + 0x002c)
1286 #define ISP3X_RAWAWB_YWEIGHT_CURVE_YCOOR03       (ISP3X_RAWAWB_BASE + 0x0030)
1287 #define ISP3X_RAWAWB_YWEIGHT_CURVE_YCOOR47       (ISP3X_RAWAWB_BASE + 0x0034)
1288 #define ISP3X_RAWAWB_YWEIGHT_CURVE_YCOOR8        (ISP3X_RAWAWB_BASE + 0x0038)
1289 #define ISP3X_RAWAWB_PRE_WBGAIN_INV              (ISP3X_RAWAWB_BASE + 0x003c)
1290 #define ISP3X_RAWAWB_UV_DETC_VERTEX0_0           (ISP3X_RAWAWB_BASE + 0x0040)
1291 #define ISP3X_RAWAWB_UV_DETC_VERTEX1_0           (ISP3X_RAWAWB_BASE + 0x0044)
1292 #define ISP3X_RAWAWB_UV_DETC_VERTEX2_0           (ISP3X_RAWAWB_BASE + 0x0048)
1293 #define ISP3X_RAWAWB_UV_DETC_VERTEX3_0           (ISP3X_RAWAWB_BASE + 0x004c)
1294 #define ISP3X_RAWAWB_UV_DETC_ISLOPE01_0          (ISP3X_RAWAWB_BASE + 0x0050)
1295 #define ISP3X_RAWAWB_UV_DETC_ISLOPE12_0          (ISP3X_RAWAWB_BASE + 0x0054)
1296 #define ISP3X_RAWAWB_UV_DETC_ISLOPE23_0          (ISP3X_RAWAWB_BASE + 0x0058)
1297 #define ISP3X_RAWAWB_UV_DETC_ISLOPE30_0          (ISP3X_RAWAWB_BASE + 0x005c)
1298 #define ISP3X_RAWAWB_UV_DETC_VERTEX0_1           (ISP3X_RAWAWB_BASE + 0x0060)
1299 #define ISP3X_RAWAWB_UV_DETC_VERTEX1_1           (ISP3X_RAWAWB_BASE + 0x0064)
1300 #define ISP3X_RAWAWB_UV_DETC_VERTEX2_1           (ISP3X_RAWAWB_BASE + 0x0068)
1301 #define ISP3X_RAWAWB_UV_DETC_VERTEX3_1           (ISP3X_RAWAWB_BASE + 0x006c)
1302 #define ISP3X_RAWAWB_UV_DETC_ISLOPE01_1          (ISP3X_RAWAWB_BASE + 0x0070)
1303 #define ISP3X_RAWAWB_UV_DETC_ISLOPE12_1          (ISP3X_RAWAWB_BASE + 0x0074)
1304 #define ISP3X_RAWAWB_UV_DETC_ISLOPE23_1          (ISP3X_RAWAWB_BASE + 0x0078)
1305 #define ISP3X_RAWAWB_UV_DETC_ISLOPE30_1          (ISP3X_RAWAWB_BASE + 0x007c)
1306 #define ISP3X_RAWAWB_UV_DETC_VERTEX0_2           (ISP3X_RAWAWB_BASE + 0x0080)
1307 #define ISP3X_RAWAWB_UV_DETC_VERTEX1_2           (ISP3X_RAWAWB_BASE + 0x0084)
1308 #define ISP3X_RAWAWB_UV_DETC_VERTEX2_2           (ISP3X_RAWAWB_BASE + 0x0088)
1309 #define ISP3X_RAWAWB_UV_DETC_VERTEX3_2           (ISP3X_RAWAWB_BASE + 0x008c)
1310 #define ISP3X_RAWAWB_UV_DETC_ISLOPE01_2          (ISP3X_RAWAWB_BASE + 0x0090)
1311 #define ISP3X_RAWAWB_UV_DETC_ISLOPE12_2          (ISP3X_RAWAWB_BASE + 0x0094)
1312 #define ISP3X_RAWAWB_UV_DETC_ISLOPE23_2          (ISP3X_RAWAWB_BASE + 0x0098)
1313 #define ISP3X_RAWAWB_UV_DETC_ISLOPE30_2          (ISP3X_RAWAWB_BASE + 0x009c)
1314 #define ISP3X_RAWAWB_UV_DETC_VERTEX0_3           (ISP3X_RAWAWB_BASE + 0x00a0)
1315 #define ISP3X_RAWAWB_UV_DETC_VERTEX1_3           (ISP3X_RAWAWB_BASE + 0x00a4)
1316 #define ISP3X_RAWAWB_UV_DETC_VERTEX2_3           (ISP3X_RAWAWB_BASE + 0x00a8)
1317 #define ISP3X_RAWAWB_UV_DETC_VERTEX3_3           (ISP3X_RAWAWB_BASE + 0x00ac)
1318 #define ISP3X_RAWAWB_UV_DETC_ISLOPE01_3          (ISP3X_RAWAWB_BASE + 0x00b0)
1319 #define ISP3X_RAWAWB_UV_DETC_ISLOPE12_3          (ISP3X_RAWAWB_BASE + 0x00b4)
1320 #define ISP3X_RAWAWB_UV_DETC_ISLOPE23_3          (ISP3X_RAWAWB_BASE + 0x00b8)
1321 #define ISP3X_RAWAWB_UV_DETC_ISLOPE30_3          (ISP3X_RAWAWB_BASE + 0x00bc)
1322 #define ISP3X_RAWAWB_UV_DETC_VERTEX0_4           (ISP3X_RAWAWB_BASE + 0x00c0)
1323 #define ISP3X_RAWAWB_UV_DETC_VERTEX1_4           (ISP3X_RAWAWB_BASE + 0x00c4)
1324 #define ISP3X_RAWAWB_UV_DETC_VERTEX2_4           (ISP3X_RAWAWB_BASE + 0x00c8)
1325 #define ISP3X_RAWAWB_UV_DETC_VERTEX3_4           (ISP3X_RAWAWB_BASE + 0x00cc)
1326 #define ISP3X_RAWAWB_UV_DETC_ISLOPE01_4          (ISP3X_RAWAWB_BASE + 0x00d0)
1327 #define ISP3X_RAWAWB_UV_DETC_ISLOPE12_4          (ISP3X_RAWAWB_BASE + 0x00d4)
1328 #define ISP3X_RAWAWB_UV_DETC_ISLOPE23_4          (ISP3X_RAWAWB_BASE + 0x00d8)
1329 #define ISP3X_RAWAWB_UV_DETC_ISLOPE30_4          (ISP3X_RAWAWB_BASE + 0x00dc)
1330 #define ISP3X_RAWAWB_UV_DETC_VERTEX0_5           (ISP3X_RAWAWB_BASE + 0x00e0)
1331 #define ISP3X_RAWAWB_UV_DETC_VERTEX1_5           (ISP3X_RAWAWB_BASE + 0x00e4)
1332 #define ISP3X_RAWAWB_UV_DETC_VERTEX2_5           (ISP3X_RAWAWB_BASE + 0x00e8)
1333 #define ISP3X_RAWAWB_UV_DETC_VERTEX3_5           (ISP3X_RAWAWB_BASE + 0x00ec)
1334 #define ISP3X_RAWAWB_UV_DETC_ISLOPE01_5          (ISP3X_RAWAWB_BASE + 0x00f0)
1335 #define ISP3X_RAWAWB_UV_DETC_ISLOPE10_5          (ISP3X_RAWAWB_BASE + 0x00f4)
1336 #define ISP3X_RAWAWB_UV_DETC_ISLOPE23_5          (ISP3X_RAWAWB_BASE + 0x00f8)
1337 #define ISP3X_RAWAWB_UV_DETC_ISLOPE30_5          (ISP3X_RAWAWB_BASE + 0x00fc)
1338 #define ISP3X_RAWAWB_UV_DETC_VERTEX0_6           (ISP3X_RAWAWB_BASE + 0x0100)
1339 #define ISP3X_RAWAWB_UV_DETC_VERTEX1_6           (ISP3X_RAWAWB_BASE + 0x0104)
1340 #define ISP3X_RAWAWB_UV_DETC_VERTEX2_6           (ISP3X_RAWAWB_BASE + 0x0108)
1341 #define ISP3X_RAWAWB_UV_DETC_VERTEX3_6           (ISP3X_RAWAWB_BASE + 0x010c)
1342 #define ISP3X_RAWAWB_UV_DETC_ISLOPE01_6          (ISP3X_RAWAWB_BASE + 0x0110)
1343 #define ISP3X_RAWAWB_UV_DETC_ISLOPE10_6          (ISP3X_RAWAWB_BASE + 0x0114)
1344 #define ISP3X_RAWAWB_UV_DETC_ISLOPE23_6          (ISP3X_RAWAWB_BASE + 0x0118)
1345 #define ISP3X_RAWAWB_UV_DETC_ISLOPE30_6          (ISP3X_RAWAWB_BASE + 0x011c)
1346 #define ISP3X_RAWAWB_YUV_RGB2ROTY_0              (ISP3X_RAWAWB_BASE + 0x0120)
1347 #define ISP3X_RAWAWB_YUV_RGB2ROTY_1              (ISP3X_RAWAWB_BASE + 0x0124)
1348 #define ISP3X_RAWAWB_YUV_RGB2ROTU_0              (ISP3X_RAWAWB_BASE + 0x0128)
1349 #define ISP3X_RAWAWB_YUV_RGB2ROTU_1              (ISP3X_RAWAWB_BASE + 0x012c)
1350 #define ISP3X_RAWAWB_YUV_RGB2ROTV_0              (ISP3X_RAWAWB_BASE + 0x0130)
1351 #define ISP3X_RAWAWB_YUV_RGB2ROTV_1              (ISP3X_RAWAWB_BASE + 0x0134)
1352 #define ISP3X_RAWAWB_YUV_X_COOR_Y_0              (ISP3X_RAWAWB_BASE + 0x0140)
1353 #define ISP3X_RAWAWB_YUV_X_COOR_U_0              (ISP3X_RAWAWB_BASE + 0x0144)
1354 #define ISP3X_RAWAWB_YUV_X_COOR_V_0              (ISP3X_RAWAWB_BASE + 0x0148)
1355 #define ISP3X_RAWAWB_YUV_X1X2_DIS_0              (ISP3X_RAWAWB_BASE + 0x014c)
1356 #define ISP3X_RAWAWB_YUV_INTERP_CURVE_UCOOR_0    (ISP3X_RAWAWB_BASE + 0x0150)
1357 #define ISP3X_RAWAWB_YUV_INTERP_CURVE_TH0_0      (ISP3X_RAWAWB_BASE + 0x0154)
1358 #define ISP3X_RAWAWB_YUV_INTERP_CURVE_TH1_0      (ISP3X_RAWAWB_BASE + 0x0158)
1359 #define ISP3X_RAWAWB_YUV_INTERP_CURVE_TH2_0      (ISP3X_RAWAWB_BASE + 0x015c)
1360 #define ISP3X_RAWAWB_YUV_X_COOR_Y_1              (ISP3X_RAWAWB_BASE + 0x0160)
1361 #define ISP3X_RAWAWB_YUV_X_COOR_U_1              (ISP3X_RAWAWB_BASE + 0x0164)
1362 #define ISP3X_RAWAWB_YUV_X_COOR_V_1              (ISP3X_RAWAWB_BASE + 0x0168)
1363 #define ISP3X_RAWAWB_YUV_X1X2_DIS_1              (ISP3X_RAWAWB_BASE + 0x016c)
1364 #define ISP3X_RAWAWB_YUV_INTERP_CURVE_UCOOR_1    (ISP3X_RAWAWB_BASE + 0x0170)
1365 #define ISP3X_RAWAWB_YUV_INTERP_CURVE_TH0_1      (ISP3X_RAWAWB_BASE + 0x0174)
1366 #define ISP3X_RAWAWB_YUV_INTERP_CURVE_TH1_1      (ISP3X_RAWAWB_BASE + 0x0178)
1367 #define ISP3X_RAWAWB_YUV_INTERP_CURVE_TH2_1      (ISP3X_RAWAWB_BASE + 0x017c)
1368 #define ISP3X_RAWAWB_YUV_X_COOR_Y_2              (ISP3X_RAWAWB_BASE + 0x0180)
1369 #define ISP3X_RAWAWB_YUV_X_COOR_U_2              (ISP3X_RAWAWB_BASE + 0x0184)
1370 #define ISP3X_RAWAWB_YUV_X_COOR_V_2              (ISP3X_RAWAWB_BASE + 0x0188)
1371 #define ISP3X_RAWAWB_YUV_X1X2_DIS_2              (ISP3X_RAWAWB_BASE + 0x018c)
1372 #define ISP3X_RAWAWB_YUV_INTERP_CURVE_UCOOR_2    (ISP3X_RAWAWB_BASE + 0x0190)
1373 #define ISP3X_RAWAWB_YUV_INTERP_CURVE_TH0_2      (ISP3X_RAWAWB_BASE + 0x0194)
1374 #define ISP3X_RAWAWB_YUV_INTERP_CURVE_TH1_2      (ISP3X_RAWAWB_BASE + 0x0198)
1375 #define ISP3X_RAWAWB_YUV_INTERP_CURVE_TH2_2      (ISP3X_RAWAWB_BASE + 0x019c)
1376 #define ISP3X_RAWAWB_YUV_X_COOR_Y_3              (ISP3X_RAWAWB_BASE + 0x01a0)
1377 #define ISP3X_RAWAWB_YUV_X_COOR_U_3              (ISP3X_RAWAWB_BASE + 0x01a4)
1378 #define ISP3X_RAWAWB_YUV_X_COOR_V_3              (ISP3X_RAWAWB_BASE + 0x01a8)
1379 #define ISP3X_RAWAWB_YUV_X1X2_DIS_3              (ISP3X_RAWAWB_BASE + 0x01ac)
1380 #define ISP3X_RAWAWB_YUV_INTERP_CURVE_UCOOR_3    (ISP3X_RAWAWB_BASE + 0x01b0)
1381 #define ISP3X_RAWAWB_YUV_INTERP_CURVE_TH0_3      (ISP3X_RAWAWB_BASE + 0x01b4)
1382 #define ISP3X_RAWAWB_YUV_INTERP_CURVE_TH1_3      (ISP3X_RAWAWB_BASE + 0x01b8)
1383 #define ISP3X_RAWAWB_YUV_INTERP_CURVE_TH2_3      (ISP3X_RAWAWB_BASE + 0x01bc)
1384 #define ISP3X_RAWAWB_RGB2XY_WT01                 (ISP3X_RAWAWB_BASE + 0x01fc)
1385 #define ISP3X_RAWAWB_RGB2XY_WT2                  (ISP3X_RAWAWB_BASE + 0x0200)
1386 #define ISP3X_RAWAWB_RGB2XY_MAT0_XY              (ISP3X_RAWAWB_BASE + 0x0204)
1387 #define ISP3X_RAWAWB_RGB2XY_MAT1_XY              (ISP3X_RAWAWB_BASE + 0x0208)
1388 #define ISP3X_RAWAWB_RGB2XY_MAT2_XY              (ISP3X_RAWAWB_BASE + 0x020c)
1389 #define ISP3X_RAWAWB_XY_DETC_NOR_X_0             (ISP3X_RAWAWB_BASE + 0x0210)
1390 #define ISP3X_RAWAWB_XY_DETC_NOR_Y_0             (ISP3X_RAWAWB_BASE + 0x0214)
1391 #define ISP3X_RAWAWB_XY_DETC_BIG_X_0             (ISP3X_RAWAWB_BASE + 0x0218)
1392 #define ISP3X_RAWAWB_XY_DETC_BIG_Y_0             (ISP3X_RAWAWB_BASE + 0x021c)
1393 #define ISP3X_RAWAWB_XY_DETC_NOR_X_1             (ISP3X_RAWAWB_BASE + 0x0228)
1394 #define ISP3X_RAWAWB_XY_DETC_NOR_Y_1             (ISP3X_RAWAWB_BASE + 0x022c)
1395 #define ISP3X_RAWAWB_XY_DETC_BIG_X_1             (ISP3X_RAWAWB_BASE + 0x0230)
1396 #define ISP3X_RAWAWB_XY_DETC_BIG_Y_1             (ISP3X_RAWAWB_BASE + 0x0234)
1397 #define ISP3X_RAWAWB_XY_DETC_NOR_X_2             (ISP3X_RAWAWB_BASE + 0x0240)
1398 #define ISP3X_RAWAWB_XY_DETC_NOR_Y_2             (ISP3X_RAWAWB_BASE + 0x0244)
1399 #define ISP3X_RAWAWB_XY_DETC_BIG_X_2             (ISP3X_RAWAWB_BASE + 0x0248)
1400 #define ISP3X_RAWAWB_XY_DETC_BIG_Y_2             (ISP3X_RAWAWB_BASE + 0x024c)
1401 #define ISP3X_RAWAWB_XY_DETC_NOR_X_3             (ISP3X_RAWAWB_BASE + 0x0258)
1402 #define ISP3X_RAWAWB_XY_DETC_NOR_Y_3             (ISP3X_RAWAWB_BASE + 0x025c)
1403 #define ISP3X_RAWAWB_XY_DETC_BIG_X_3             (ISP3X_RAWAWB_BASE + 0x0260)
1404 #define ISP3X_RAWAWB_XY_DETC_BIG_Y_3             (ISP3X_RAWAWB_BASE + 0x0264)
1405 #define ISP3X_RAWAWB_XY_DETC_NOR_X_4             (ISP3X_RAWAWB_BASE + 0x0270)
1406 #define ISP3X_RAWAWB_XY_DETC_NOR_Y_4             (ISP3X_RAWAWB_BASE + 0x0274)
1407 #define ISP3X_RAWAWB_XY_DETC_BIG_X_4             (ISP3X_RAWAWB_BASE + 0x0278)
1408 #define ISP3X_RAWAWB_XY_DETC_BIG_Y_4             (ISP3X_RAWAWB_BASE + 0x027c)
1409 #define ISP3X_RAWAWB_XY_DETC_NOR_X_5             (ISP3X_RAWAWB_BASE + 0x0288)
1410 #define ISP3X_RAWAWB_XY_DETC_NOR_Y_5             (ISP3X_RAWAWB_BASE + 0x028c)
1411 #define ISP3X_RAWAWB_XY_DETC_BIG_X_5             (ISP3X_RAWAWB_BASE + 0x0290)
1412 #define ISP3X_RAWAWB_XY_DETC_BIG_Y_5             (ISP3X_RAWAWB_BASE + 0x0294)
1413 #define ISP3X_RAWAWB_XY_DETC_NOR_X_6             (ISP3X_RAWAWB_BASE + 0x02a0)
1414 #define ISP3X_RAWAWB_XY_DETC_NOR_Y_6             (ISP3X_RAWAWB_BASE + 0x02a4)
1415 #define ISP3X_RAWAWB_XY_DETC_BIG_X_6             (ISP3X_RAWAWB_BASE + 0x02a8)
1416 #define ISP3X_RAWAWB_XY_DETC_BIG_Y_6             (ISP3X_RAWAWB_BASE + 0x02ac)
1417 #define ISP3X_RAWAWB_MULTIWINDOW_EXC_CTRL        (ISP3X_RAWAWB_BASE + 0x02b8)
1418 #define ISP3X_RAWAWB_MULTIWINDOW0_OFFS           (ISP3X_RAWAWB_BASE + 0x02bc)
1419 #define ISP3X_RAWAWB_MULTIWINDOW0_SIZE           (ISP3X_RAWAWB_BASE + 0x02c0)
1420 #define ISP3X_RAWAWB_MULTIWINDOW1_OFFS           (ISP3X_RAWAWB_BASE + 0x02c4)
1421 #define ISP3X_RAWAWB_MULTIWINDOW1_SIZE           (ISP3X_RAWAWB_BASE + 0x02c8)
1422 #define ISP3X_RAWAWB_MULTIWINDOW2_OFFS           (ISP3X_RAWAWB_BASE + 0x02cc)
1423 #define ISP3X_RAWAWB_MULTIWINDOW2_SIZE           (ISP3X_RAWAWB_BASE + 0x02d0)
1424 #define ISP3X_RAWAWB_MULTIWINDOW3_OFFS           (ISP3X_RAWAWB_BASE + 0x02d4)
1425 #define ISP3X_RAWAWB_MULTIWINDOW3_SIZE           (ISP3X_RAWAWB_BASE + 0x02d8)
1426 #define ISP3X_RAWAWB_EXC_WP_REGION0_XU           (ISP3X_RAWAWB_BASE + 0x02fc)
1427 #define ISP3X_RAWAWB_EXC_WP_REGION0_YV           (ISP3X_RAWAWB_BASE + 0x0300)
1428 #define ISP3X_RAWAWB_EXC_WP_REGION1_XU           (ISP3X_RAWAWB_BASE + 0x0304)
1429 #define ISP3X_RAWAWB_EXC_WP_REGION1_YV           (ISP3X_RAWAWB_BASE + 0x0308)
1430 #define ISP3X_RAWAWB_EXC_WP_REGION2_XU           (ISP3X_RAWAWB_BASE + 0x030c)
1431 #define ISP3X_RAWAWB_EXC_WP_REGION2_YV           (ISP3X_RAWAWB_BASE + 0x0310)
1432 #define ISP3X_RAWAWB_EXC_WP_REGION3_XU           (ISP3X_RAWAWB_BASE + 0x0314)
1433 #define ISP3X_RAWAWB_EXC_WP_REGION3_YV           (ISP3X_RAWAWB_BASE + 0x0318)
1434 #define ISP3X_RAWAWB_EXC_WP_REGION4_XU           (ISP3X_RAWAWB_BASE + 0x031c)
1435 #define ISP3X_RAWAWB_EXC_WP_REGION4_YV           (ISP3X_RAWAWB_BASE + 0x0320)
1436 #define ISP3X_RAWAWB_EXC_WP_REGION5_XU           (ISP3X_RAWAWB_BASE + 0x0324)
1437 #define ISP3X_RAWAWB_EXC_WP_REGION5_YV           (ISP3X_RAWAWB_BASE + 0x0328)
1438 #define ISP3X_RAWAWB_EXC_WP_REGION6_XU           (ISP3X_RAWAWB_BASE + 0x032c)
1439 #define ISP3X_RAWAWB_EXC_WP_REGION6_YV           (ISP3X_RAWAWB_BASE + 0x0330)
1440 #define ISP3X_RAWAWB_SUM_RGAIN_NOR_0             (ISP3X_RAWAWB_BASE + 0x0340)
1441 #define ISP3X_RAWAWB_SUM_BGAIN_NOR_0             (ISP3X_RAWAWB_BASE + 0x0348)
1442 #define ISP3X_RAWAWB_WP_NUM_NOR_0                (ISP3X_RAWAWB_BASE + 0x034c)
1443 #define ISP3X_RAWAWB_SUM_RGAIN_BIG_0             (ISP3X_RAWAWB_BASE + 0x0350)
1444 #define ISP3X_RAWAWB_SUM_BGAIN_BIG_0             (ISP3X_RAWAWB_BASE + 0x0358)
1445 #define ISP3X_RAWAWB_WP_NUM_BIG_0                (ISP3X_RAWAWB_BASE + 0x035c)
1446 #define ISP3X_RAWAWB_SUM_RGAIN_NOR_1             (ISP3X_RAWAWB_BASE + 0x0370)
1447 #define ISP3X_RAWAWB_SUM_BGAIN_NOR_1             (ISP3X_RAWAWB_BASE + 0x0378)
1448 #define ISP3X_RAWAWB_WP_NUM_NOR_1                (ISP3X_RAWAWB_BASE + 0x037c)
1449 #define ISP3X_RAWAWB_SUM_RGAIN_BIG_1             (ISP3X_RAWAWB_BASE + 0x0380)
1450 #define ISP3X_RAWAWB_SUM_BGAIN_BIG_1             (ISP3X_RAWAWB_BASE + 0x0388)
1451 #define ISP3X_RAWAWB_WP_NUM_BIG_1                (ISP3X_RAWAWB_BASE + 0x038c)
1452 #define ISP3X_RAWAWB_SUM_RGAIN_NOR_2             (ISP3X_RAWAWB_BASE + 0x03a0)
1453 #define ISP3X_RAWAWB_SUM_BGAIN_NOR_2             (ISP3X_RAWAWB_BASE + 0x03a8)
1454 #define ISP3X_RAWAWB_WP_NUM_NOR_2                (ISP3X_RAWAWB_BASE + 0x03ac)
1455 #define ISP3X_RAWAWB_SUM_RGAIN_BIG_2             (ISP3X_RAWAWB_BASE + 0x03b0)
1456 #define ISP3X_RAWAWB_SUM_BGAIN_BIG_2             (ISP3X_RAWAWB_BASE + 0x03b8)
1457 #define ISP3X_RAWAWB_WP_NUM_BIG_2                (ISP3X_RAWAWB_BASE + 0x03bc)
1458 #define ISP3X_RAWAWB_SUM_RGAIN_NOR_3             (ISP3X_RAWAWB_BASE + 0x03d0)
1459 #define ISP3X_RAWAWB_SUM_BGAIN_NOR_3             (ISP3X_RAWAWB_BASE + 0x03d8)
1460 #define ISP3X_RAWAWB_WP_NUM_NOR_3                (ISP3X_RAWAWB_BASE + 0x03dc)
1461 #define ISP3X_RAWAWB_SUM_RGAIN_BIG_3             (ISP3X_RAWAWB_BASE + 0x03e0)
1462 #define ISP3X_RAWAWB_SUM_BGAIN_BIG_3             (ISP3X_RAWAWB_BASE + 0x03e8)
1463 #define ISP3X_RAWAWB_WP_NUM_BIG_3                (ISP3X_RAWAWB_BASE + 0x03ec)
1464 #define ISP3X_RAWAWB_SUM_RGAIN_NOR_4             (ISP3X_RAWAWB_BASE + 0x0400)
1465 #define ISP3X_RAWAWB_SUM_BGAIN_NOR_4             (ISP3X_RAWAWB_BASE + 0x0408)
1466 #define ISP3X_RAWAWB_WP_NUM_NOR_4                (ISP3X_RAWAWB_BASE + 0x040c)
1467 #define ISP3X_RAWAWB_SUM_RGAIN_BIG_4             (ISP3X_RAWAWB_BASE + 0x0410)
1468 #define ISP3X_RAWAWB_SUM_BGAIN_BIG_4             (ISP3X_RAWAWB_BASE + 0x0418)
1469 #define ISP3X_RAWAWB_WP_NUM_BIG_4                (ISP3X_RAWAWB_BASE + 0x041c)
1470 #define ISP3X_RAWAWB_SUM_RGAIN_NOR_5             (ISP3X_RAWAWB_BASE + 0x0430)
1471 #define ISP3X_RAWAWB_SUM_BGAIN_NOR_5             (ISP3X_RAWAWB_BASE + 0x0438)
1472 #define ISP3X_RAWAWB_WP_NUM_NOR_5                (ISP3X_RAWAWB_BASE + 0x043c)
1473 #define ISP3X_RAWAWB_SUM_RGAIN_BIG_5             (ISP3X_RAWAWB_BASE + 0x0440)
1474 #define ISP3X_RAWAWB_SUM_BGAIN_BIG_5             (ISP3X_RAWAWB_BASE + 0x0448)
1475 #define ISP3X_RAWAWB_WP_NUM_BIG_5                (ISP3X_RAWAWB_BASE + 0x044c)
1476 #define ISP3X_RAWAWB_SUM_RGAIN_NOR_6             (ISP3X_RAWAWB_BASE + 0x0460)
1477 #define ISP3X_RAWAWB_SUM_BGAIN_NOR_6             (ISP3X_RAWAWB_BASE + 0x0468)
1478 #define ISP3X_RAWAWB_WP_NUM_NOR_6                (ISP3X_RAWAWB_BASE + 0x046c)
1479 #define ISP3X_RAWAWB_SUM_RGAIN_BIG_6             (ISP3X_RAWAWB_BASE + 0x0470)
1480 #define ISP3X_RAWAWB_SUM_BGAIN_BIG_6             (ISP3X_RAWAWB_BASE + 0x0478)
1481 #define ISP3X_RAWAWB_WP_NUM_BIG_6                (ISP3X_RAWAWB_BASE + 0x047c)
1482 #define ISP3X_RAWAWB_SUM_R_NOR_MULTIWINDOW0      (ISP3X_RAWAWB_BASE + 0x0490)
1483 #define ISP3X_RAWAWB_SUM_B_NOR_MULTIWINDOW0      (ISP3X_RAWAWB_BASE + 0x0498)
1484 #define ISP3X_RAWAWB_WP_NM_NOR_MULTIWINDOW0      (ISP3X_RAWAWB_BASE + 0x049c)
1485 #define ISP3X_RAWAWB_SUM_R_BIG_MULTIWINDOW0      (ISP3X_RAWAWB_BASE + 0x04a0)
1486 #define ISP3X_RAWAWB_SUM_B_BIG_MULTIWINDOW0      (ISP3X_RAWAWB_BASE + 0x04a8)
1487 #define ISP3X_RAWAWB_WP_NM_BIG_MULTIWINDOW0      (ISP3X_RAWAWB_BASE + 0x04ac)
1488 #define ISP3X_RAWAWB_SUM_R_NOR_MULTIWINDOW1      (ISP3X_RAWAWB_BASE + 0x04c0)
1489 #define ISP3X_RAWAWB_SUM_B_NOR_MULTIWINDOW1      (ISP3X_RAWAWB_BASE + 0x04c8)
1490 #define ISP3X_RAWAWB_WP_NM_NOR_MULTIWINDOW1      (ISP3X_RAWAWB_BASE + 0x04cc)
1491 #define ISP3X_RAWAWB_SUM_R_BIG_MULTIWINDOW1      (ISP3X_RAWAWB_BASE + 0x04d0)
1492 #define ISP3X_RAWAWB_SUM_B_BIG_MULTIWINDOW1      (ISP3X_RAWAWB_BASE + 0x04d8)
1493 #define ISP3X_RAWAWB_WP_NM_BIG_MULTIWINDOW1      (ISP3X_RAWAWB_BASE + 0x04dc)
1494 #define ISP3X_RAWAWB_SUM_R_NOR_MULTIWINDOW2      (ISP3X_RAWAWB_BASE + 0x04f0)
1495 #define ISP3X_RAWAWB_SUM_B_NOR_MULTIWINDOW2      (ISP3X_RAWAWB_BASE + 0x04f8)
1496 #define ISP3X_RAWAWB_WP_NM_NOR_MULTIWINDOW2      (ISP3X_RAWAWB_BASE + 0x04fc)
1497 #define ISP3X_RAWAWB_SUM_R_BIG_MULTIWINDOW2      (ISP3X_RAWAWB_BASE + 0x0500)
1498 #define ISP3X_RAWAWB_SUM_B_BIG_MULTIWINDOW2      (ISP3X_RAWAWB_BASE + 0x0508)
1499 #define ISP3X_RAWAWB_WP_NM_BIG_MULTIWINDOW2      (ISP3X_RAWAWB_BASE + 0x050c)
1500 #define ISP3X_RAWAWB_SUM_R_NOR_MULTIWINDOW3      (ISP3X_RAWAWB_BASE + 0x0520)
1501 #define ISP3X_RAWAWB_SUM_B_NOR_MULTIWINDOW3      (ISP3X_RAWAWB_BASE + 0x0528)
1502 #define ISP3X_RAWAWB_WP_NM_NOR_MULTIWINDOW3      (ISP3X_RAWAWB_BASE + 0x052c)
1503 #define ISP3X_RAWAWB_SUM_R_BIG_MULTIWINDOW3      (ISP3X_RAWAWB_BASE + 0x0530)
1504 #define ISP3X_RAWAWB_SUM_B_BIG_MULTIWINDOW3      (ISP3X_RAWAWB_BASE + 0x0538)
1505 #define ISP3X_RAWAWB_WP_NM_BIG_MULTIWINDOW3      (ISP3X_RAWAWB_BASE + 0x053c)
1506 #define ISP3X_RAWAWB_SUM_R_EXC0                  (ISP3X_RAWAWB_BASE + 0x05e0)
1507 #define ISP3X_RAWAWB_SUM_B_EXC0                  (ISP3X_RAWAWB_BASE + 0x05e8)
1508 #define ISP3X_RAWAWB_WP_NM_EXC0                  (ISP3X_RAWAWB_BASE + 0x05ec)
1509 #define ISP3X_RAWAWB_SUM_R_EXC1                  (ISP3X_RAWAWB_BASE + 0x05f0)
1510 #define ISP3X_RAWAWB_SUM_B_EXC1                  (ISP3X_RAWAWB_BASE + 0x05f8)
1511 #define ISP3X_RAWAWB_WP_NM_EXC1                  (ISP3X_RAWAWB_BASE + 0x05fc)
1512 #define ISP3X_RAWAWB_SUM_R_EXC2                  (ISP3X_RAWAWB_BASE + 0x0600)
1513 #define ISP3X_RAWAWB_SUM_B_EXC2                  (ISP3X_RAWAWB_BASE + 0x0608)
1514 #define ISP3X_RAWAWB_WP_NM_EXC2                  (ISP3X_RAWAWB_BASE + 0x060c)
1515 #define ISP3X_RAWAWB_SUM_R_EXC3                  (ISP3X_RAWAWB_BASE + 0x0610)
1516 #define ISP3X_RAWAWB_SUM_B_EXC3                  (ISP3X_RAWAWB_BASE + 0x0618)
1517 #define ISP3X_RAWAWB_WP_NM_EXC3                  (ISP3X_RAWAWB_BASE + 0x061c)
1518 #define ISP3X_RAWAWB_Y_HIST01                    (ISP3X_RAWAWB_BASE + 0x0620)
1519 #define ISP3X_RAWAWB_Y_HIST23                    (ISP3X_RAWAWB_BASE + 0x0624)
1520 #define ISP3X_RAWAWB_Y_HIST45                    (ISP3X_RAWAWB_BASE + 0x0628)
1521 #define ISP3X_RAWAWB_Y_HIST67                    (ISP3X_RAWAWB_BASE + 0x062c)
1522 #define ISP3X_RAWAWB_WPNUM2_0                    (ISP3X_RAWAWB_BASE + 0x0630)
1523 #define ISP3X_RAWAWB_WPNUM2_1                    (ISP3X_RAWAWB_BASE + 0x0634)
1524 #define ISP3X_RAWAWB_WPNUM2_2                    (ISP3X_RAWAWB_BASE + 0x0638)
1525 #define ISP3X_RAWAWB_WPNUM2_3                    (ISP3X_RAWAWB_BASE + 0x063c)
1526 #define ISP3X_RAWAWB_WPNUM2_4                    (ISP3X_RAWAWB_BASE + 0x0640)
1527 #define ISP3X_RAWAWB_WPNUM2_5                    (ISP3X_RAWAWB_BASE + 0x0644)
1528 #define ISP3X_RAWAWB_WPNUM2_6                    (ISP3X_RAWAWB_BASE + 0x0648)
1529 #define ISP3X_RAWAWB_RAM_CTRL                    (ISP3X_RAWAWB_BASE + 0x0650)
1530 #define ISP3X_RAWAWB_WRAM_CTRL                   (ISP3X_RAWAWB_BASE + 0x0654)
1531 #define ISP3X_RAWAWB_WRAM_DATA_BASE              (ISP3X_RAWAWB_BASE + 0x0660)
1532 #define ISP3X_RAWAWB_RAM_DATA_BASE               (ISP3X_RAWAWB_BASE + 0x0700)
1533 
1534 /* VI_ISP_PATH */
1535 #define ISP3X_RAWAE3_SEL(x)		(((x) & 3) << 16)
1536 #define ISP3X_RAWAF_SEL(x)		(((x) & 3) << 18)
1537 #define ISP3X_RAWAWB_SEL(x)		(((x) & 3) << 20)
1538 #define ISP3X_RAWAE012_SEL(x)		(((x) & 3) << 22)
1539 
1540 /* SWS_CFG */
1541 #define ISP3X_SW_ACK_FRM_PRO_DIS	BIT(3)
1542 #define ISP3X_3A_DDR_WRITE_EN		BIT(24)
1543 #define ISP3X_SW_MIPI2ISP_FIFO_DIS	BIT(25)
1544 #define ISP3X_SW_3D_DBR_START_MODE	BIT(26)
1545 
1546 /* CMSK */
1547 #define ISP3X_SW_CMSK_EN		BIT(0)
1548 #define ISP3X_SW_CMSK_EN_MP		BIT(1)
1549 #define ISP3X_SW_CMSK_EN_SP		BIT(2)
1550 #define ISP3X_SW_CMSK_EN_BP		BIT(3)
1551 #define ISP3X_SW_CMSK_BLKSIZE(x)	(((x) & 3) << 4)
1552 #define ISP3X_SW_CMSK_ORDER_MODE	BIT(1)
1553 
1554 #define ISP3X_SW_CMSK_YUV(x, y, z)	(((x) & 0xff) | ((y) & 0xff) << 8 | ((z) & 0xff) << 16)
1555 
1556 /* ISP CTRL0 */
1557 #define ISP3X_SW_CGC_YUV_LIMIT		BIT(28)
1558 #define ISP3X_SW_CGC_RATIO_EN		BIT(29)
1559 
1560 /* ISP CTRL1 */
1561 #define ISP3X_YNR_FST_FRAME		BIT(23)
1562 #define ISP3X_ADRC_FST_FRAME		BIT(24)
1563 #define ISP3X_DHAZ_FST_FRAME		BIT(25)
1564 #define ISP3X_CNR_FST_FRAME		BIT(26)
1565 #define ISP3X_RAW3D_FST_FRAME		BIT(27)
1566 #define ISP3X_BIGMODE_FORCE_EN		BIT(28)
1567 #define ISP3X_BIGMODE_MANUAL		BIT(29)
1568 
1569 /* ISP ACQ_H_OFFS */
1570 #define ISP3X_SENSOR_MODE(x)		(((x) & 3) << 30)
1571 #define ISP3X_SENSOR_INDEX(x)		(((x) & 3) << 28)
1572 #define ISP3X_ACQ_H_OFFS(x)		((x) & 0x7fff)
1573 
1574 /* isp interrupt */
1575 #define ISP3X_OFF			BIT(0)
1576 #define ISP3X_FRAME			BIT(1)
1577 #define ISP3X_DATA_LOSS			BIT(2)
1578 #define ISP3X_PIC_SIZE_ERROR		BIT(3)
1579 #define ISP3X_SIAWB_DONE		BIT(4)
1580 #define ISP3X_FRAME_IN			BIT(5)
1581 #define ISP3X_V_START			BIT(6)
1582 #define ISP3X_H_START			BIT(7)
1583 #define ISP3X_FLASH_ON			BIT(8)
1584 #define ISP3X_FLASH_OFF			BIT(9)
1585 #define ISP3X_SHUTTER_ON		BIT(10)
1586 #define ISP3X_SHUTTER_OFF		BIT(11)
1587 #define ISP3X_AFM_SUM_OF		BIT(12)
1588 #define ISP3X_AFM_LUM_OF		BIT(13)
1589 #define ISP3X_SIAF_FIN			BIT(14)
1590 #define ISP3X_SIHST_RDY			BIT(15)
1591 #define ISP3X_LSC_LUT_ERR		BIT(16)
1592 #define ISP3X_FLASH_CAP			BIT(17)
1593 #define ISP3X_EXP_END			BIT(18)
1594 #define ISP3X_HDR_DONE			BIT(20)
1595 #define ISP3X_DHAZ_DONE			BIT(21)
1596 #define ISP3X_GIAN_ERR			BIT(22)
1597 #define ISP3X_OUT_FRM_END		BIT(23)
1598 #define ISP3X_OUT_FRM_HALF		BIT(24)
1599 #define ISP3X_OUT_FRM_QUARTER		BIT(25)
1600 #define ISP3X_BAY3D_IN_DONE		BIT(26)
1601 #define ISP3X_BAY3D_IN_LINECNT_DONE	BIT(27)
1602 #define ISP3X_BAY3D_POST_ST		BIT(28)
1603 #define ISP3X_BAY3D_FRM_END		BIT(29)
1604 #define ISP3X_FETCH_LUT_END		BIT(30)
1605 
1606 /* isp3a interrupt */
1607 #define ISP3X_3A_RAWAE_BIG		BIT(0)
1608 #define ISP3X_3A_RAWAE_CH0		BIT(1)
1609 #define ISP3X_3A_RAWAE_CH1		BIT(2)
1610 #define ISP3X_3A_RAWAE_CH2		BIT(3)
1611 #define ISP3X_3A_RAWHIST_BIG		BIT(4)
1612 #define ISP3X_3A_RAWHIST_CH0		BIT(5)
1613 #define ISP3X_3A_RAWHIST_CH1		BIT(6)
1614 #define ISP3X_3A_RAWHIST_CH2		BIT(7)
1615 #define ISP3X_3A_RAWAF_SUM		BIT(8)
1616 #define ISP3X_3A_RAWAF_LUM		BIT(9)
1617 #define ISP3X_3A_RAWAF			BIT(10)
1618 #define ISP3X_3A_RAWAWB			BIT(11)
1619 #define ISP3X_3A_DDR_DONE		BIT(12)
1620 
1621 /* DUAL CROP */
1622 #define ISP3X_DUAL_CROP_FBC_MODE	BIT(8)
1623 
1624 /* GAMMA OUT */
1625 #define ISP3X_GAMMA_OUT_EN		BIT(0)
1626 #define ISP3X_GAMMA_OUT_EQU_SEGM	BIT(1)
1627 #define ISP3X_GAMMA_OUT_FINALX4_DENSE	BIT(2)
1628 
1629 /* RESIZE */
1630 #define ISP3X_SCL_HPHASE_EN		BIT(10)
1631 #define ISP3X_SCL_CLIP_EN		BIT(11)
1632 #define ISP3X_SCL_IN_CLIP_EN		BIT(12)
1633 
1634 /* mi interrupt */
1635 #define ISP3X_MI_MP_FRAME		BIT(0)
1636 #define ISP3X_MI_SP_FRAME		BIT(1)
1637 #define ISP3X_MI_MBLK_LINE		BIT(2)
1638 #define ISP3X_MI_FILL_MP_Y		BIT(3)
1639 #define ISP3X_MI_WRAP_MP_Y		BIT(4)
1640 #define ISP3X_MI_WRAP_MP_CB		BIT(5)
1641 #define ISP3X_MI_WRAP_MP_CR		BIT(6)
1642 #define ISP3X_MI_WRAP_SP_Y		BIT(7)
1643 #define ISP3X_MI_WRAP_SP_CB		BIT(8)
1644 #define ISP3X_MI_WARP_SP_CR		BIT(9)
1645 #define ISP3X_MI_FILL_MP_Y2		BIT(10)
1646 #define ISP3X_MI_DMA_READY		BIT(11)
1647 #define ISP3X_MI_Y12Y_FRAME		BIT(12)
1648 #define ISP3X_MI_Y12C_FRAME		BIT(13)
1649 #define ISP3X_MI_ALL_FRAME		BIT(14)
1650 #define ISP3X_MI_DBR_WR_FRAME		BIT(20)
1651 #define ISP3X_MI_GAIN_WR_FRAME		BIT(21)
1652 #define ISP3X_MI_BAY3D_IIR_FRAME	BIT(22)
1653 #define ISP3X_MI_BAY3D_CUR_FRAME	BIT(23)
1654 #define ISP3X_MI_BAY3D_DS_FRAME		BIT(24)
1655 #define ISP3X_MI_BP_FRAME		BIT(25)
1656 #define ISP3X_MI_WRAP_BP_Y		BIT(26)
1657 #define ISP3X_MI_WRAP_BP_CB		BIT(27)
1658 #define ISP3X_MI_BUS_ERR		BIT(30)
1659 #define ISP3X_MI_MPFBC_FRAME		BIT(31)
1660 
1661 /* MI_WR_XTD_FORMAT_CTRL */
1662 #define ISP3X_MI_XTD_FORMAT_MP_UV_SWAP	BIT(0)
1663 #define ISP3X_MI_XTD_FORMAT_SP_UV_SWAP	BIT(1)
1664 
1665 /* MI_WR_CTRL2 */
1666 #define ISP3X_MPSELF_UPD		BIT(4)
1667 #define ISP3X_SPSELF_UPD		BIT(5)
1668 #define ISP3X_BPSELF_UPD		BIT(6)
1669 #define ISP3X_BAY3D_RDSELF_UPD		BIT(7)
1670 #define ISP3X_DBR_ENABLE		BIT(8)
1671 #define ISP3X_MIMUX_RAW_ALIGN		BIT(9)
1672 #define ISP3X_DBR_WR_AUTO_UPD		BIT(10)
1673 #define ISP3X_DBR_RDSELF_UPD		BIT(11)
1674 #define ISP3X_GAIN_WR_PINGPONG		BIT(12)
1675 #define ISP3X_GAIN_WR_AUTO_UPD		BIT(13)
1676 #define ISP3X_BAY3D_IIR_WR_AUTO_UPD	BIT(16)
1677 #define ISP3X_BAY3D_CUR_WR_AUTO_UPD	BIT(17)
1678 #define ISP3X_BAY3D_DS_WR_AUTO_UPD	BIT(18)
1679 #define ISP3X_DBR_WRSELF_UPD		BIT(20)
1680 #define ISP3X_GAINSELF_UPD		BIT(21)
1681 #define ISP3X_BAY3D_IIRSELF_UPD		BIT(22)
1682 #define ISP3X_BAY3D_CURSELF_UPD		BIT(23)
1683 #define ISP3X_BAY3D_DSSELF_UPD		BIT(24)
1684 #define ISP3X_DBR_ST_MODE		BIT(30)
1685 #define ISP3X_DBR_ST			BIT(31)
1686 
1687 /* BP_WR_CTRL */
1688 #define ISP3X_BP_ENABLE			BIT(0)
1689 #define ISP3X_BP_AUTO_UPD		BIT(1)
1690 #define ISP3X_BP_PINGPONG		BIT(2)
1691 #define ISP3X_BP_FORMAT_PLA		0
1692 #define ISP3X_BP_FORMAT_SPLA		BIT(4)
1693 #define ISP3X_BP_FORMAT_INT		BIT(5)
1694 #define ISP3X_BP_FORMAT_MASK		GENMASK(5, 4)
1695 
1696 /* MPFBC */
1697 #define ISP3X_MPFBC_YUV_MASK		GENMASK(2, 1)
1698 #define ISP3X_MPFBC_EN			BIT(0)
1699 #define ISP3X_MPFBC_YUV420		0
1700 #define ISP3X_MPFBC_YUV422		BIT(1)
1701 #define ISP3X_MPFBC_PINGPONG_EN		BIT(4)
1702 #define ISP3X_MPFBC_UNCOMPRESSED	BIT(5)
1703 #define ISP3X_MPFBC_SPARSE_MODE		BIT(6)
1704 #define ISP3X_MPFBC_FROM_SCL		BIT(7)
1705 #define ISP3X_SEPERATE_YUV_CFG		BIT(8)
1706 #define ISP3X_MP_YUV_MODE		BIT(9)
1707 #define ISP3X_SP_YUV_MODE		BIT(10)
1708 #define ISP3X_BP_YUV_MODE		BIT(11)
1709 #define ISP3X_HEAD_OFFSET_EN		BIT(12)
1710 #define ISP3X_HEAD_OUT_OPT_DIS		BIT(29)
1711 #define ISP3X_MPFBC_WORKING		BIT(30)
1712 #define ISP3X_MPFBC_FORCE_UPD		BIT(31)
1713 #define ISP3X_MPFBC_EN_SHD		BIT(31)
1714 
1715 /* CSI2RX */
1716 
1717 /* DEBAYER */
1718 
1719 /* CAC */
1720 #define ISP3X_CAC_EN			BIT(0)
1721 #define ISP3X_CAC_BYPASS		BIT(1)
1722 #define ISP3X_CAC_CLEAR			BIT(2)
1723 #define ISP3X_CAC_CENTER_EN		BIT(3)
1724 #define ISP3X_CAC_LUT_EN		BIT(4)
1725 #define ISP3X_CAC_LUT_MODE(x)		(((x) & 0x3) << 24)
1726 
1727 /* CNR */
1728 
1729 /* YNR */
1730 
1731 /* BLS */
1732 
1733 /* GIC */
1734 
1735 /* LDCH */
1736 #define ISP3X_LDCH_EN			BIT(0)
1737 #define ISP3X_LDCH_LUT_MODE(x)		(((x) & 0x3) << 24)
1738 #define ISP3X_LDCH_MAP_ERR		BIT(29)
1739 
1740 /* DHAZ */
1741 #define ISP3X_DHAZ_ENMUX		BIT(0)
1742 #define ISP3X_DHAZ_DC_EN		BIT(4)
1743 #define ISP3X_DHAZ_HIST_EN		BIT(8)
1744 #define ISP3X_DHAZ_HPARA_EN		BIT(12)
1745 #define ISP3X_DHAZ_AIR_LC_EN		BIT(16)
1746 #define ISP3X_DHAZ_ENHANCE_EN		BIT(20)
1747 #define ISP3X_DHAZ_CKG_DIS		BIT(24)
1748 #define ISP3X_DHAZ_SOFT_WR_EN		BIT(25)
1749 #define ISP3X_DHAZ_ROUND_EN		BIT(26)
1750 
1751 /* HDRTMO */
1752 
1753 /* HDRDRC */
1754 
1755 /* HDRMGE */
1756 
1757 /* RAWNR */
1758 
1759 /* DPCC */
1760 
1761 /* CCM */
1762 
1763 /* 3DLUT */
1764 #define ISP3X_3DLUT_EN			BIT(0)
1765 #define ISP3X_3DLUT_LUT_MODE(x)		(((x) & 0x3) << 24)
1766 #define ISP3X_3DLUT_LUT_ERR		BIT(29)
1767 
1768 /* DEBAYER */
1769 
1770 /* LSC */
1771 #define ISP3X_LSC_ACTIVE_TABLE		BIT(1)
1772 #define ISP3X_LSC_TABLE_ADDRESS_0	0
1773 #define ISP3X_LSC_TABLE_ADDRESS_153	153
1774 
1775 /* RAWAE */
1776 #define ISP3X_RAWAE_LITE_EN		BIT(0)
1777 #define ISP3X_RAWAE_LITE_WNDNUM		BIT(1)
1778 
1779 #define ISP3X_RAWAE_BIG_EN		BIT(0)
1780 #define ISP3X_RAWAE_BIG_WND0_NUM(x)	(((x) & 0x3) << 1)
1781 #define ISP3X_RAWAE_BIG_WND1_EN		BIT(4)
1782 #define ISP3X_RAWAE_BIG_WND2_EN		BIT(5)
1783 #define ISP3X_RAWAE_BIG_WND3_EN		BIT(6)
1784 #define ISP3X_RAWAE_BIG_WND4_EN		BIT(7)
1785 
1786 /* RAWHIST */
1787 #define ISP3X_RAWHIST_EN		BIT(0)
1788 #define ISP3X_RAWHIST_STEPSIZE(x)	(((x) & 0x7) << 1)
1789 #define ISP3X_RAWHIST_MODE(x)		(((x) & 0x7) << 8)
1790 #define ISP3X_RAWHIST_WATERLINE(x)	(((x) & 0xfff) << 12)
1791 #define ISP3X_RAWHIST_DATASEL(x)	(((x) & 0x7) << 24)
1792 #define ISP3X_RAWHIST_WND_NUM(x)	(((x) & 0x3) << 28)
1793 
1794 #define ISP3X_RAWHIST_RAM_EN		BIT(31)
1795 
1796 /* RAWAF */
1797 #define ISP3X_RAWAF_EN			BIT(0)
1798 #define ISP3X_RAWAF_GAMMA_EN		BIT(1)
1799 #define ISP3X_RAWAF_GAUS_EN		BIT(2)
1800 #define ISP3X_RAWAF_V1_FIR		BIT(3)
1801 #define ISP3X_RAWAF_HIIR_EN		BIT(4)
1802 #define ISP3X_RAWAF_VIIR_EN		BIT(5)
1803 #define ISP3X_RAWAF_ACCU_8BIT		BIT(6)
1804 #define ISP3X_RAWAF_LDG_EN		BIT(7)
1805 #define ISP3X_RAWAF_H1_FV		BIT(8)
1806 #define ISP3X_RAWAF_H2_FV		BIT(9)
1807 #define ISP3X_RAWAF_V1_FV		BIT(10)
1808 #define ISP3X_RAWAF_V2_FV		BIT(11)
1809 #define ISP3X_RAWAF_AE_MODE		BIT(12)
1810 #define ISP3X_RAWAF_Y_MODE		BIT(13)
1811 
1812 #define ISP3X_RAWAF_INELINE0(x)		((x) & 0xf)
1813 #define ISP3X_RAWAF_INTLINE0_EN		BIT(27)
1814 
is_bp_stream_stopped(void __iomem * base)1815 static inline bool is_bp_stream_stopped(void __iomem *base)
1816 {
1817 	u32 ret = readl(base + ISP3X_MI_BP_WR_CTRL);
1818 
1819 	return !(ret & ISP3X_BP_ENABLE);
1820 }
1821 
1822 #endif /* _RKISP_REGS_V3X_H */
1823