• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * A V4L2 driver for nvp6324 cameras and AHD Coax protocol.
3  *
4  * Copyright (c) 2017 by Allwinnertech Co., Ltd.  http://www.allwinnertech.com
5  *
6  * Authors:  Li Huiyu <lihuiyu@allwinnertech.com>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11  */
12 
13 #ifndef _ARB_MIPI_TABLE_H_
14 #define _ARB_MIPI_TABLE_H_
15 
16 #include "jaguar1_common.h"
17 
18 /* -----------------------------------------------------------------------------
19  * arb_scale(20x01)                  : SD=2(1/4), HD=1(1/2), FHD=0(bypass)
20  * mipi_frame_opt(21x3E, 21x3F)      : SD only [TBD]
21  *-----------------------------------------------------------------------------*/
22 
23 
24 mipi_vdfmt_set_s decoder_mipi_fmtdef[NC_VIVO_CH_FORMATDEF_MAX] = {
25 
26 	[AHD20_SD_H960_2EX_Btype_NT] = {
27 		.arb_scale = 0x02,
28 		.mipi_frame_opt = 0x00,
29 	},
30 	[AHD20_SD_H960_2EX_Btype_PAL] = {
31 		.arb_scale = 0x02,
32 		.mipi_frame_opt = 0x00,
33 	},
34 	[AHD20_SD_SH720_NT] = {
35 		.arb_scale = 0x01,
36 		.mipi_frame_opt = 0x00,
37 	},
38 	[AHD20_SD_SH720_PAL] = {
39 		.arb_scale = 0x01,
40 		.mipi_frame_opt = 0x00,
41 	},
42 	[AHD20_SD_H960_NT] = {
43 		.arb_scale = 0x02,
44 		.mipi_frame_opt = 0x00,
45 	},
46 	[AHD20_SD_H960_PAL] = {
47 		.arb_scale = 0x02,
48 		.mipi_frame_opt = 0x00,
49 	},
50 	[AHD20_SD_H1280_NT] = {
51 		.arb_scale = 0x00,
52 		.mipi_frame_opt = 0x00,
53 	},
54 	[AHD20_SD_H1280_PAL] = {
55 		.arb_scale = 0x00,
56 		.mipi_frame_opt = 0x00,
57 	},
58 	[AHD20_SD_H1440_NT] = {
59 		.arb_scale = 0x00,
60 		.mipi_frame_opt = 0x00,
61 	},
62 	[AHD20_SD_H1440_PAL] = {
63 		.arb_scale = 0x00,
64 		.mipi_frame_opt = 0x00,
65 	},
66 	[AHD20_SD_H960_EX_NT] = {
67 		.arb_scale = 0x02,
68 		.mipi_frame_opt = 0x00,
69 	},
70 	[AHD20_SD_H960_EX_PAL] = {
71 		.arb_scale = 0x02,
72 		.mipi_frame_opt = 0x00,
73 	},
74 	[AHD20_SD_H960_2EX_NT] = {
75 		.arb_scale = 0x02,
76 		.mipi_frame_opt = 0x00,
77 	},
78 	[AHD20_SD_H960_2EX_PAL] = {
79 		.arb_scale = 0x02,
80 		.mipi_frame_opt = 0x00,
81 	},
82 	[AHD20_1080P_30P] = {
83 		.arb_scale = 0x00,
84 		.mipi_frame_opt = 0x00,
85 	},
86 	[AHD20_1080P_25P] = {
87 		.arb_scale = 0x00,
88 		.mipi_frame_opt = 0x00,
89 	},
90 	[AHD20_720P_60P] = {
91 		.arb_scale = 0x00,
92 		.mipi_frame_opt = 0x00,
93 	},
94 	[AHD20_720P_50P] = {
95 		.arb_scale = 0x00,
96 		.mipi_frame_opt = 0x00,
97 	},
98 	[AHD20_720P_30P] = {
99 		.arb_scale = 0x01,
100 		.mipi_frame_opt = 0x00,
101 	},
102 	[AHD20_720P_25P] = {
103 		.arb_scale = 0x01,
104 		.mipi_frame_opt = 0x00,
105 	},
106 	[AHD20_720P_30P_EX] = {
107 		.arb_scale = 0x01,
108 		.mipi_frame_opt = 0x00,
109 	},
110 	[AHD20_720P_25P_EX] = {
111 		.arb_scale = 0x01,
112 		.mipi_frame_opt = 0x00,
113 	},
114 	[AHD20_720P_30P_EX_Btype] = {
115 		.arb_scale = 0x01,
116 		.mipi_frame_opt = 0x00,
117 	},
118 	[AHD20_720P_25P_EX_Btype] = {
119 		.arb_scale = 0x01,
120 		.mipi_frame_opt = 0x00,
121 	},
122 	[AHD20_720P_960P_30P] = {
123 		.arb_scale = 0x00,
124 		.mipi_frame_opt = 0x00,
125 	},
126 	[AHD20_720P_960P_25P] = {
127 		.arb_scale = 0x00,
128 		.mipi_frame_opt = 0x00,
129 	},
130 	[AHD30_3M_30P] = {
131 		.arb_scale = 0x00,
132 		.mipi_frame_opt = 0x00,
133 	},
134 	[AHD30_3M_25P] = {
135 		.arb_scale = 0x00,
136 		.mipi_frame_opt = 0x00,
137 	},
138 	[AHD30_3M_18P] = {
139 		.arb_scale = 0x00,
140 		.mipi_frame_opt = 0x00,
141 	},
142 	[AHD30_4M_30P] = {
143 		.arb_scale = 0x00,
144 		.mipi_frame_opt = 0x00,
145 	},
146 	[AHD30_4M_25P] = {
147 		.arb_scale = 0x00,
148 		.mipi_frame_opt = 0x00,
149 	},
150 	[AHD30_4M_15P] = {
151 		.arb_scale = 0x00,
152 		.mipi_frame_opt = 0x00,
153 	},
154 	[AHD30_5M_20P] = {
155 		.arb_scale = 0x00,
156 		.mipi_frame_opt = 0x00,
157 	},
158 	[AHD30_5M_12_5P] = {
159 		.arb_scale = 0x00,
160 		.mipi_frame_opt = 0x00,
161 	},
162 	[AHD30_5_3M_20P] = {
163 		.arb_scale = 0x00,
164 		.mipi_frame_opt = 0x00,
165 	},
166 	[AHD30_6M_18P] = {
167 		.arb_scale = 0x00,
168 		.mipi_frame_opt = 0x00,
169 	},
170 	[AHD30_6M_20P] = {
171 		.arb_scale = 0x00,
172 		.mipi_frame_opt = 0x00,
173 	},
174 	[AHD30_8M_X_30P] = {
175 		.arb_scale = 0x00,
176 		.mipi_frame_opt = 0x00,
177 	},
178 	[AHD30_8M_X_25P] = {
179 		.arb_scale = 0x00,
180 		.mipi_frame_opt = 0x00,
181 	},
182 	[AHD30_8M_7_5P] = {
183 		.arb_scale = 0x00,
184 		.mipi_frame_opt = 0x00,
185 	},
186 	[AHD30_8M_12_5P] = {
187 		.arb_scale = 0x00,
188 		.mipi_frame_opt = 0x00,
189 	},
190 	[AHD30_8M_15P] = {
191 		.arb_scale = 0x00,
192 		.mipi_frame_opt = 0x00,
193 	},
194 
195 	/* TVI */
196 	[TVI_FHD_30P] = {
197 		.arb_scale = 0x00,
198 		.mipi_frame_opt = 0x00,
199 	},
200 	[TVI_FHD_25P] = {
201 		.arb_scale = 0x00,
202 		.mipi_frame_opt = 0x00,
203 	},
204 	[TVI_HD_60P] = {
205 		.arb_scale = 0x00,
206 		.mipi_frame_opt = 0x00,
207 	},
208 	[TVI_HD_50P] = {
209 		.arb_scale = 0x00,
210 		.mipi_frame_opt = 0x00,
211 	},
212 	[TVI_HD_30P] = {
213 		.arb_scale = 0x01,
214 		.mipi_frame_opt = 0x00,
215 	},
216 	[TVI_HD_25P] = {
217 		.arb_scale = 0x01,
218 		.mipi_frame_opt = 0x00,
219 	},
220 	[TVI_HD_30P_EX] = {
221 		.arb_scale = 0x01,
222 		.mipi_frame_opt = 0x00,
223 	},
224 	[TVI_HD_25P_EX] = {
225 		.arb_scale = 0x01,
226 		.mipi_frame_opt = 0x00,
227 	},
228 	[TVI_HD_B_30P] = {
229 		.arb_scale = 0x01,
230 		.mipi_frame_opt = 0x00,
231 	},
232 	[TVI_HD_B_25P] = {
233 		.arb_scale = 0x01,
234 		.mipi_frame_opt = 0x00,
235 	},
236 	[TVI_HD_B_30P_EX] = {
237 		.arb_scale = 0x01,
238 		.mipi_frame_opt = 0x00,
239 	},
240 	[TVI_HD_B_25P_EX] = {
241 		.arb_scale = 0x01,
242 		.mipi_frame_opt = 0x00,
243 	},
244 	[TVI_3M_18P] = {
245 		.arb_scale = 0x00,
246 		.mipi_frame_opt = 0x00,
247 	},
248 	[TVI_5M_12_5P] = {
249 		.arb_scale = 0x00,
250 		.mipi_frame_opt = 0x00,
251 	},
252 	[TVI_4M_30P] = {
253 		.arb_scale = 0x00,
254 		.mipi_frame_opt = 0x00,
255 	},
256 	[TVI_4M_25P] = {
257 		.arb_scale = 0x00,
258 		.mipi_frame_opt = 0x00,
259 	},
260 
261 	/* CVI */
262 	[CVI_FHD_30P] = {
263 		.arb_scale = 0x00,
264 		.mipi_frame_opt = 0x00,
265 	},
266 	[CVI_FHD_25P] = {
267 		.arb_scale = 0x00,
268 		.mipi_frame_opt = 0x00,
269 	},
270 	[CVI_HD_60P] = {
271 		.arb_scale = 0x00,
272 		.mipi_frame_opt = 0x00,
273 	},
274 	[CVI_HD_50P] = {
275 		.arb_scale = 0x00,
276 		.mipi_frame_opt = 0x00,
277 	},
278 	[CVI_HD_30P] = {
279 		.arb_scale = 0x01,
280 		.mipi_frame_opt = 0x00,
281 	},
282 	[CVI_HD_25P] = {
283 		.arb_scale = 0x01,
284 		.mipi_frame_opt = 0x00,
285 	},
286 	[CVI_HD_30P_EX] = {
287 		.arb_scale = 0x01,
288 		.mipi_frame_opt = 0x00,
289 	},
290 	[CVI_HD_25P_EX] = {
291 		.arb_scale = 0x01,
292 		.mipi_frame_opt = 0x00,
293 	},
294 	[CVI_4M_30P] = {
295 		.arb_scale = 0x00,
296 		.mipi_frame_opt = 0x00,
297 	},
298 	[CVI_4M_25P] = {
299 		.arb_scale = 0x00,
300 		.mipi_frame_opt = 0x00,
301 	},
302 	[CVI_8M_12_5P] = {
303 		.arb_scale = 0x00,
304 		.mipi_frame_opt = 0x00,
305 	},
306 	[CVI_8M_15P] = {
307 		.arb_scale = 0x00,
308 		.mipi_frame_opt = 0x00,
309 	},
310 };
311 
312 #endif /* VIDEO_DECODER_JAGUAR1_DRV_ARB_MIPI_TABLE_H_ */
313