Initial commit
[kernel/linux-3.0.git] / drivers / video / samsung_duallcd / mdnie_table_c1m0.h
1 #ifndef __MDNIE_TABLE_H__
2 #define __MDNIE_TABLE_H__
3
4 #include "mdnie.h"
5
6
7 static const unsigned short tune_dynamic_gallery[] = {
8         0x0000, 0x0000, /*BANK 0*/
9         0x0008, 0x008c, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
10         0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/
11         0x0092, 0x0080, /*DE pe*/
12         0x0093, 0x0080, /*DE pf*/
13         0x0094, 0x0080, /*DE pb*/
14         0x0095, 0x0080, /*DE ne*/
15         0x0096, 0x0080, /*DE nf*/
16         0x0097, 0x0080, /*DE nb*/
17         0x0098, 0x1000, /*DE max ratio*/
18         0x0099, 0x0100, /*DE min ratio*/
19         0x00b0, 0x1010, /*CS hg ry*/
20         0x00b1, 0x1010, /*CS hg gc*/
21         0x00b2, 0x1010, /*CS hg bm*/
22         0x00b3, 0x1404, /*CS weight grayTH*/
23         0x0000, 0x0001, /*BANK 1*/
24         0x001f, 0x0080, /*CC chsel strength*/
25         0x0020, 0x0000, /*CC lut r       0*/
26         0x0021, 0x0293, /*CC lut r      16 144*/
27         0x0022, 0x1aa5, /*CC lut r      32 160*/
28         0x0023, 0x29b7, /*CC lut r      48 176*/
29         0x0024, 0x39c8, /*CC lut r      64 192*/
30         0x0025, 0x4bd8, /*CC lut r      80 208*/
31         0x0026, 0x5de6, /*CC lut r      96 224*/
32         0x0027, 0x6ff4, /*CC lut r 112 240*/
33         0x0028, 0x81ff, /*CC lut r 128 255*/
34         0x00ff, 0x0000, /*Mask Release*/
35         END_SEQ, 0x0000,
36 };
37
38 static const unsigned short tune_dynamic_ui[] = {
39         0x0000, 0x0000, /*BANK 0*/
40         0x0008, 0x008c, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
41         0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/
42         0x0092, 0x0040, /*DE pe*/
43         0x0093, 0x0040, /*DE pf*/
44         0x0094, 0x0040, /*DE pb*/
45         0x0095, 0x0040, /*DE ne*/
46         0x0096, 0x0040, /*DE nf*/
47         0x0097, 0x0040, /*DE nb*/
48         0x0098, 0x1000, /*DE max ratio*/
49         0x0099, 0x0100, /*DE min ratio*/
50         0x00b0, 0x1010, /*CS hg ry*/
51         0x00b1, 0x1010, /*CS hg gc*/
52         0x00b2, 0x1010, /*CS hg bm*/
53         0x00b3, 0x1804, /*CS weight grayTH*/
54         0x0000, 0x0001, /*BANK 1*/
55         0x001f, 0x0080, /*CC chsel strength*/
56         0x0020, 0x0000, /*CC lut r       0*/
57         0x0021, 0x0293, /*CC lut r      16 144*/
58         0x0022, 0x1aa5, /*CC lut r      32 160*/
59         0x0023, 0x29b7, /*CC lut r      48 176*/
60         0x0024, 0x39c8, /*CC lut r      64 192*/
61         0x0025, 0x4bd8, /*CC lut r      80 208*/
62         0x0026, 0x5de6, /*CC lut r      96 224*/
63         0x0027, 0x6ff4, /*CC lut r 112 240*/
64         0x0028, 0x81ff, /*CC lut r 128 255*/
65         0x00ff, 0x0000, /*Mask Release*/
66         END_SEQ, 0x0000,
67 };
68
69 static const unsigned short tune_dynamic_video[] = {
70         0x0000, 0x0000, /*BANK 0*/
71         0x0008, 0x008c, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
72         0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/
73         0x0092, 0x0080, /*DE pe*/
74         0x0093, 0x0080, /*DE pf*/
75         0x0094, 0x0080, /*DE pb*/
76         0x0095, 0x0080, /*DE ne*/
77         0x0096, 0x0080, /*DE nf*/
78         0x0097, 0x0080, /*DE nb*/
79         0x0098, 0x1000, /*DE max ratio*/
80         0x0099, 0x0100, /*DE min ratio*/
81         0x00b0, 0x1010, /*CS hg ry*/
82         0x00b1, 0x1010, /*CS hg gc*/
83         0x00b2, 0x1010, /*CS hg bm*/
84         0x00b3, 0x1404, /*CS weight grayTH*/
85         0x00e1, 0xff00, /*SCR RrCr*/
86         0x00e2, 0x00ff, /*SCR RgCg*/
87         0x00e3, 0x00ff, /*SCR RbCb*/
88         0x00e4, 0x00ff, /*SCR GrMr*/
89         0x00e5, 0xff00, /*SCR GgMg*/
90         0x00e6, 0x00ff, /*SCR GbMb*/
91         0x00e7, 0x00ff, /*SCR BrYr*/
92         0x00e8, 0x00ff, /*SCR BgYg*/
93         0x00e9, 0xff00, /*SCR BbYb*/
94         0x00ea, 0x00ff, /*SCR KrWr*/
95         0x00eb, 0x00ff, /*SCR KgWg*/
96         0x00ec, 0x00ff, /*SCR KbWb*/
97         0x0000, 0x0001, /*BANK 1*/
98         0x001f, 0x0080, /*CC chsel strength*/
99         0x0020, 0x0000, /*CC lut r       0*/
100         0x0021, 0x0293, /*CC lut r      16 144*/
101         0x0022, 0x1aa5, /*CC lut r      32 160*/
102         0x0023, 0x29b7, /*CC lut r      48 176*/
103         0x0024, 0x39c8, /*CC lut r      64 192*/
104         0x0025, 0x4bd8, /*CC lut r      80 208*/
105         0x0026, 0x5de6, /*CC lut r      96 224*/
106         0x0027, 0x6ff4, /*CC lut r 112 240*/
107         0x0028, 0x81ff, /*CC lut r 128 255*/
108         0x00ff, 0x0000, /*Mask Release*/
109         END_SEQ, 0x0000,
110 };
111
112 static const unsigned short tune_dynamic_vtcall[] = {
113         0x0000, 0x0000, /*BANK 0*/
114         0x0008, 0x008e, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
115         0x0030, 0x0005, /*FA cs1 | de8 dnr4 hdr2 fa1*/
116         0x0039, 0x0080, /*FA dnrWeight*/
117         0x0080, 0x0fff, /*DNR dirTh*/
118         0x0081, 0x19ff, /*DNR dirnumTh decon7Th*/
119         0x0082, 0xff16, /*DNR decon5Th maskTh*/
120         0x0083, 0x0000, /*DNR blTh*/
121         0x0092, 0x00e0, /*DE pe*/
122         0x0093, 0x00e0, /*DE pf*/
123         0x0094, 0x00e0, /*DE pb*/
124         0x0095, 0x00e0, /*DE ne*/
125         0x0096, 0x00e0, /*DE nf*/
126         0x0097, 0x00e0, /*DE nb*/
127         0x0098, 0x1000, /*DE max ratio*/
128         0x0099, 0x0010, /*DE min ratio*/
129         0x00b0, 0x1010, /*CS hg ry*/
130         0x00b1, 0x1010, /*CS hg gc*/
131         0x00b2, 0x1010, /*CS hg bm*/
132         0x00b3, 0x1a04, /*CS weight grayTH*/
133         0x0000, 0x0001, /*BANK 1*/
134         0x001f, 0x0080, /*CC chsel strength*/
135         0x0020, 0x0000, /*CC lut r      0*/
136         0x0021, 0x0293, /*CC lut r      16 144*/
137         0x0022, 0x1aa5, /*CC lut r      32 160*/
138         0x0023, 0x29b7, /*CC lut r      48 176*/
139         0x0024, 0x39c8, /*CC lut r      64 192*/
140         0x0025, 0x4bd8, /*CC lut r      80 208*/
141         0x0026, 0x5de6, /*CC lut r      96 224*/
142         0x0027, 0x6ff4, /*CC lut r 112 240*/
143         0x0028, 0x81ff, /*CC lut r 128 255*/
144         0x00ff, 0x0000, /*Mask Release*/
145         END_SEQ, 0x0000,
146 };
147
148 static const unsigned short tune_movie_gallery[] = {
149         0x0000, 0x0000, /*BANK 0*/
150         0x0008, 0x00a0, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
151         0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/
152         0x00e1, 0xd6ac, /*SCR RrCr*/
153         0x00e2, 0x32ff, /*SCR RgCg*/
154         0x00e3, 0x2ef0, /*SCR RbCb*/
155         0x00e4, 0xa5fa, /*SCR GrMr*/
156         0x00e5, 0xff4d, /*SCR GgMg*/
157         0x00e6, 0x59ff, /*SCR GbMb*/
158         0x00e7, 0x00ff, /*SCR BrYr*/
159         0x00e8, 0x00fb, /*SCR BgYg*/
160         0x00e9, 0xff61, /*SCR BbYb*/
161         0x00ea, 0x00ff, /*SCR KrWr*/
162         0x00eb, 0x00f8, /*SCR KgWg*/
163         0x00ec, 0x00f1, /*SCR KbWb*/
164         0x0000, 0x0001, /*BANK 1*/
165         0x001f, 0x0080, /*CC chsel strength*/
166         0x0020, 0x0000, /*CC lut r       0*/
167         0x0021, 0x0290, /*CC lut r      16 144*/
168         0x0022, 0x20a0, /*CC lut r      32 160*/
169         0x0023, 0x30b0, /*CC lut r      48 176*/
170         0x0024, 0x40c0, /*CC lut r      64 192*/
171         0x0025, 0x50d0, /*CC lut r      80 208*/
172         0x0026, 0x60e0, /*CC lut r      96 224*/
173         0x0027, 0x70f0, /*CC lut r 112 240*/
174         0x0028, 0x80ff, /*CC lut r 128 255*/
175         0x00ff, 0x0000, /*Mask Release*/
176         END_SEQ, 0x0000,
177 };
178
179 static const unsigned short tune_movie_ui[] = {
180         0x0000, 0x0000, /*BANK 0*/
181         0x0008, 0x00a0, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
182         0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/
183         0x00e1, 0xd6ac, /*SCR RrCr*/
184         0x00e2, 0x32ff, /*SCR RgCg*/
185         0x00e3, 0x2ef0, /*SCR RbCb*/
186         0x00e4, 0xa5fa, /*SCR GrMr*/
187         0x00e5, 0xff4d, /*SCR GgMg*/
188         0x00e6, 0x59ff, /*SCR GbMb*/
189         0x00e7, 0x00ff, /*SCR BrYr*/
190         0x00e8, 0x00fb, /*SCR BgYg*/
191         0x00e9, 0xff61, /*SCR BbYb*/
192         0x00ea, 0x00ff, /*SCR KrWr*/
193         0x00eb, 0x00f8, /*SCR KgWg*/
194         0x00ec, 0x00f1, /*SCR KbWb*/
195         0x0000, 0x0001, /*BANK 1*/
196         0x001f, 0x0080, /*CC chsel strength*/
197         0x0020, 0x0000, /*CC lut r       0*/
198         0x0021, 0x0290, /*CC lut r      16 144*/
199         0x0022, 0x20a0, /*CC lut r      32 160*/
200         0x0023, 0x30b0, /*CC lut r      48 176*/
201         0x0024, 0x40c0, /*CC lut r      64 192*/
202         0x0025, 0x50d0, /*CC lut r      80 208*/
203         0x0026, 0x60e0, /*CC lut r      96 224*/
204         0x0027, 0x70f0, /*CC lut r 112 240*/
205         0x0028, 0x80ff, /*CC lut r 128 255*/
206         0x00ff, 0x0000, /*Mask Release*/
207         END_SEQ, 0x0000,
208 };
209
210 static const unsigned short tune_movie_video[] = {
211         0x0000, 0x0000, /*BANK 0*/
212         0x0008, 0x00a0, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
213         0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/
214         0x0092, 0x0000, /*DE pe*/
215         0x0093, 0x0000, /*DE pf*/
216         0x0094, 0x0000, /*DE pb*/
217         0x0095, 0x0000, /*DE ne*/
218         0x0096, 0x0000, /*DE nf*/
219         0x0097, 0x0000, /*DE nb*/
220         0x00b0, 0x1010, /*CS hg ry*/
221         0x00b1, 0x1010, /*CS hg gc*/
222         0x00b2, 0x1010, /*CS hg bm*/
223         0x00b3, 0x1004, /*CS weight grayTH*/
224         0x00e1, 0xd6ac, /*SCR RrCr*/
225         0x00e2, 0x32ff, /*SCR RgCg*/
226         0x00e3, 0x2ef0, /*SCR RbCb*/
227         0x00e4, 0xa5fa, /*SCR GrMr*/
228         0x00e5, 0xff4d, /*SCR GgMg*/
229         0x00e6, 0x59ff, /*SCR GbMb*/
230         0x00e7, 0x00ff, /*SCR BrYr*/
231         0x00e8, 0x00fb, /*SCR BgYg*/
232         0x00e9, 0xff61, /*SCR BbYb*/
233         0x00ea, 0x00ff, /*SCR KrWr*/
234         0x00eb, 0x00f8, /*SCR KgWg*/
235         0x00ec, 0x00f1, /*SCR KbWb*/
236         0x0000, 0x0001, /*BANK 1*/
237         0x001f, 0x0080, /*CC chsel strength*/
238         0x0020, 0x0000, /*CC lut r       0*/
239         0x0021, 0x0290, /*CC lut r      16 144*/
240         0x0022, 0x20a0, /*CC lut r      32 160*/
241         0x0023, 0x30b0, /*CC lut r      48 176*/
242         0x0024, 0x40c0, /*CC lut r      64 192*/
243         0x0025, 0x50d0, /*CC lut r      80 208*/
244         0x0026, 0x60e0, /*CC lut r      96 224*/
245         0x0027, 0x70f0, /*CC lut r 112 240*/
246         0x0028, 0x80ff, /*CC lut r 128 255*/
247         0x00ff, 0x0000, /*Mask Release*/
248         END_SEQ, 0x0000,
249 };
250
251 static const unsigned short tune_movie_vtcall[] = {
252         0x0000, 0x0000, /*BANK 0*/
253         0x0008, 0x00ae, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
254         0x0030, 0x0005, /*FA cs1 | de8 dnr4 hdr2 fa1*/
255         0x0039, 0x0080, /*FA dnrWeight*/
256         0x0080, 0x0fff, /*DNR dirTh*/
257         0x0081, 0x19ff, /*DNR dirnumTh decon7Th*/
258         0x0082, 0xff16, /*DNR decon5Th maskTh*/
259         0x0083, 0x0000, /*DNR blTh*/
260         0x0092, 0x0040, /*DE pe*/
261         0x0093, 0x0040, /*DE pf*/
262         0x0094, 0x0040, /*DE pb*/
263         0x0095, 0x0040, /*DE ne*/
264         0x0096, 0x0040, /*DE nf*/
265         0x0097, 0x0040, /*DE nb*/
266         0x0098, 0x1000, /*DE max ratio*/
267         0x0099, 0x0010, /*DE min ratio*/
268         0x00b0, 0x1010, /*CS hg ry*/
269         0x00b1, 0x1010, /*CS hg gc*/
270         0x00b2, 0x1010, /*CS hg bm*/
271         0x00b3, 0x1204, /*CS weight grayTH*/
272         0x00e1, 0xd6ac, /*SCR RrCr*/
273         0x00e2, 0x32ff, /*SCR RgCg*/
274         0x00e3, 0x2ef0, /*SCR RbCb*/
275         0x00e4, 0xa5fa, /*SCR GrMr*/
276         0x00e5, 0xff4d, /*SCR GgMg*/
277         0x00e6, 0x59ff, /*SCR GbMb*/
278         0x00e7, 0x00ff, /*SCR BrYr*/
279         0x00e8, 0x00fb, /*SCR BgYg*/
280         0x00e9, 0xff61, /*SCR BbYb*/
281         0x00ea, 0x00ff, /*SCR KrWr*/
282         0x00eb, 0x00f8, /*SCR KgWg*/
283         0x00ec, 0x00f1, /*SCR KbWb*/
284         0x0000, 0x0001, /*BANK 1*/
285         0x001f, 0x0080, /*CC chsel strength*/
286         0x0020, 0x0000, /*CC lut r       0*/
287         0x0021, 0x0290, /*CC lut r      16 144*/
288         0x0022, 0x20a0, /*CC lut r      32 160*/
289         0x0023, 0x30b0, /*CC lut r      48 176*/
290         0x0024, 0x40c0, /*CC lut r      64 192*/
291         0x0025, 0x50d0, /*CC lut r      80 208*/
292         0x0026, 0x60e0, /*CC lut r      96 224*/
293         0x0027, 0x70f0, /*CC lut r 112 240*/
294         0x0028, 0x80ff, /*CC lut r 128 255*/
295         0x00ff, 0x0000, /*Mask Release*/
296         END_SEQ, 0x0000,
297 };
298
299 static const unsigned short tune_standard_gallery[] = {
300         0x0000, 0x0000, /*BANK 0*/
301         0x0008, 0x008c, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
302         0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/
303         0x0092, 0x0060, /*DE pe*/
304         0x0093, 0x0060, /*DE pf*/
305         0x0094, 0x0060, /*DE pb*/
306         0x0095, 0x0060, /*DE ne*/
307         0x0096, 0x0060, /*DE nf*/
308         0x0097, 0x0060, /*DE nb*/
309         0x0098, 0x1000, /*DE max ratio*/
310         0x0099, 0x0100, /*DE min ratio*/
311         0x00b0, 0x1010, /*CS hg ry*/
312         0x00b1, 0x1010, /*CS hg gc*/
313         0x00b2, 0x1010, /*CS hg bm*/
314         0x00b3, 0x1204, /*CS weight grayTH*/
315         0x0000, 0x0001, /*BANK 1*/
316         0x001f, 0x0080, /*CC chsel strength*/
317         0x0020, 0x0000, /*CC lut r       0*/
318         0x0021, 0x0290, /*CC lut r      16 144*/
319         0x0022, 0x20a0, /*CC lut r      32 160*/
320         0x0023, 0x30b0, /*CC lut r      48 176*/
321         0x0024, 0x40c0, /*CC lut r      64 192*/
322         0x0025, 0x50d0, /*CC lut r      80 208*/
323         0x0026, 0x60e0, /*CC lut r      96 224*/
324         0x0027, 0x70f0, /*CC lut r 112 240*/
325         0x0028, 0x80ff, /*CC lut r 128 255*/
326         0x00ff, 0x0000, /*Mask Release*/
327         END_SEQ, 0x0000,
328 };
329
330 static const unsigned short tune_standard_ui[] = {
331         0x0000, 0x0000, /*BANK 0*/
332         0x0008, 0x008c, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
333         0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/
334         0x0092, 0x0020, /*DE pe*/
335         0x0093, 0x0020, /*DE pf*/
336         0x0094, 0x0020, /*DE pb*/
337         0x0095, 0x0020, /*DE ne*/
338         0x0096, 0x0020, /*DE nf*/
339         0x0097, 0x0020, /*DE nb*/
340         0x0098, 0x1000, /*DE max ratio*/
341         0x0099, 0x0100, /*DE min ratio*/
342         0x00b0, 0x1010, /*CS hg ry*/
343         0x00b1, 0x1010, /*CS hg gc*/
344         0x00b2, 0x1010, /*CS hg bm*/
345         0x00b3, 0x1604, /*CS weight grayTH*/
346         0x0000, 0x0001, /*BANK 1*/
347         0x001f, 0x0080, /*CC chsel strength*/
348         0x0020, 0x0000, /*CC lut r       0*/
349         0x0021, 0x0290, /*CC lut r      16 144*/
350         0x0022, 0x20a0, /*CC lut r      32 160*/
351         0x0023, 0x30b0, /*CC lut r      48 176*/
352         0x0024, 0x40c0, /*CC lut r      64 192*/
353         0x0025, 0x50d0, /*CC lut r      80 208*/
354         0x0026, 0x60e0, /*CC lut r      96 224*/
355         0x0027, 0x70f0, /*CC lut r 112 240*/
356         0x0028, 0x80ff, /*CC lut r 128 255*/
357         0x00ff, 0x0000, /*Mask Release*/
358         END_SEQ, 0x0000,
359 };
360
361 static const unsigned short tune_standard_video[] = {
362         0x0000, 0x0000, /*BANK 0*/
363         0x0008, 0x008c, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
364         0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/
365         0x0092, 0x0060, /*DE pe*/
366         0x0093, 0x0060, /*DE pf*/
367         0x0094, 0x0060, /*DE pb*/
368         0x0095, 0x0060, /*DE ne*/
369         0x0096, 0x0060, /*DE nf*/
370         0x0097, 0x0060, /*DE nb*/
371         0x0098, 0x1000, /*DE max ratio*/
372         0x0099, 0x0100, /*DE min ratio*/
373         0x00b0, 0x1010, /*CS hg ry*/
374         0x00b1, 0x1010, /*CS hg gc*/
375         0x00b2, 0x1010, /*CS hg bm*/
376         0x00b3, 0x1204, /*CS weight grayTH*/
377         0x00e1, 0xff00, /*SCR RrCr*/
378         0x00e2, 0x00ff, /*SCR RgCg*/
379         0x00e3, 0x00ff, /*SCR RbCb*/
380         0x00e4, 0x00ff, /*SCR GrMr*/
381         0x00e5, 0xff00, /*SCR GgMg*/
382         0x00e6, 0x00ff, /*SCR GbMb*/
383         0x00e7, 0x00ff, /*SCR BrYr*/
384         0x00e8, 0x00ff, /*SCR BgYg*/
385         0x00e9, 0xff00, /*SCR BbYb*/
386         0x00ea, 0x00ff, /*SCR KrWr*/
387         0x00eb, 0x00ff, /*SCR KgWg*/
388         0x00ec, 0x00ff, /*SCR KbWb*/
389         0x0000, 0x0001, /*BANK 1*/
390         0x001f, 0x0080, /*CC chsel strength*/
391         0x0020, 0x0000, /*CC lut r       0*/
392         0x0021, 0x0290, /*CC lut r      16 144*/
393         0x0022, 0x20a0, /*CC lut r      32 160*/
394         0x0023, 0x30b0, /*CC lut r      48 176*/
395         0x0024, 0x40c0, /*CC lut r      64 192*/
396         0x0025, 0x50d0, /*CC lut r      80 208*/
397         0x0026, 0x60e0, /*CC lut r      96 224*/
398         0x0027, 0x70f0, /*CC lut r 112 240*/
399         0x0028, 0x80ff, /*CC lut r 128 255*/
400         0x00ff, 0x0000, /*Mask Release*/
401         END_SEQ, 0x0000,
402 };
403
404 static const unsigned short tune_standard_vtcall[] = {
405         0x0000, 0x0000, /*BANK 0*/
406         0x0008, 0x008e, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
407         0x0030, 0x0005, /*FA cs1 | de8 dnr4 hdr2 fa1*/
408         0x0039, 0x0080, /*FA dnrWeight*/
409         0x0080, 0x0fff, /*DNR dirTh*/
410         0x0081, 0x19ff, /*DNR dirnumTh decon7Th*/
411         0x0082, 0xff16, /*DNR decon5Th maskTh*/
412         0x0083, 0x0000, /*DNR blTh*/
413         0x0092, 0x00c0, /*DE pe*/
414         0x0093, 0x00c0, /*DE pf*/
415         0x0094, 0x00c0, /*DE pb*/
416         0x0095, 0x00c0, /*DE ne*/
417         0x0096, 0x00c0, /*DE nf*/
418         0x0097, 0x00c0, /*DE nb*/
419         0x0098, 0x1000, /*DE max ratio*/
420         0x0099, 0x0010, /*DE min ratio*/
421         0x00b0, 0x1010, /*CS hg ry*/
422         0x00b1, 0x1010, /*CS hg gc*/
423         0x00b2, 0x1010, /*CS hg bm*/
424         0x00b3, 0x1804, /*CS weight grayTH*/
425         0x0000, 0x0001, /*BANK 1*/
426         0x001f, 0x0080, /*CC chsel strength*/
427         0x0020, 0x0000, /*CC lut r       0*/
428         0x0021, 0x0290, /*CC lut r      16 144*/
429         0x0022, 0x20a0, /*CC lut r      32 160*/
430         0x0023, 0x30b0, /*CC lut r      48 176*/
431         0x0024, 0x40c0, /*CC lut r      64 192*/
432         0x0025, 0x50d0, /*CC lut r      80 208*/
433         0x0026, 0x60e0, /*CC lut r      96 224*/
434         0x0027, 0x70f0, /*CC lut r 112 240*/
435         0x0028, 0x80ff, /*CC lut r 128 255*/
436         0x00ff, 0x0000, /*Mask Release*/
437         END_SEQ, 0x0000,
438 };
439
440 static const unsigned short tune_natural_gallery[] = {
441         0x0000, 0x0000, /*BANK 0*/
442         0x0008, 0x00ac, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
443         0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/
444         0x0092, 0x0060, /*DE pe*/
445         0x0093, 0x0060, /*DE pf*/
446         0x0094, 0x0060, /*DE pb*/
447         0x0095, 0x0060, /*DE ne*/
448         0x0096, 0x0060, /*DE nf*/
449         0x0097, 0x0060, /*DE nb*/
450         0x0098, 0x1000, /*DE max ratio*/
451         0x0099, 0x0100, /*DE min ratio*/
452         0x00b0, 0x1010, /*CS hg ry*/
453         0x00b1, 0x1010, /*CS hg gc*/
454         0x00b2, 0x1010, /*CS hg bm*/
455         0x00b3, 0x1804, /*CS weight grayTH*/
456         0x00e1, 0xd6ac, /*SCR RrCr*/
457         0x00e2, 0x32ff, /*SCR RgCg*/
458         0x00e3, 0x2ef0, /*SCR RbCb*/
459         0x00e4, 0xa5fa, /*SCR GrMr*/
460         0x00e5, 0xff4d, /*SCR GgMg*/
461         0x00e6, 0x59ff, /*SCR GbMb*/
462         0x00e7, 0x00ff, /*SCR BrYr*/
463         0x00e8, 0x00fb, /*SCR BgYg*/
464         0x00e9, 0xff61, /*SCR BbYb*/
465         0x00ea, 0x00ff, /*SCR KrWr*/
466         0x00eb, 0x00fa, /*SCR KgWg*/
467         0x00ec, 0x00f8, /*SCR KbWb*/
468         0x0000, 0x0001, /*BANK 1*/
469         0x001f, 0x0080, /*CC chsel strength*/
470         0x0020, 0x0000, /*CC lut r       0*/
471         0x0021, 0x0290, /*CC lut r      16 144*/
472         0x0022, 0x20a0, /*CC lut r      32 160*/
473         0x0023, 0x30b0, /*CC lut r      48 176*/
474         0x0024, 0x40c0, /*CC lut r      64 192*/
475         0x0025, 0x50d0, /*CC lut r      80 208*/
476         0x0026, 0x60e0, /*CC lut r      96 224*/
477         0x0027, 0x70f0, /*CC lut r 112 240*/
478         0x0028, 0x80ff, /*CC lut r 128 255*/
479         0x00ff, 0x0000, /*Mask Release*/
480         END_SEQ, 0x0000,
481 };
482
483 static const unsigned short tune_natural_ui[] = {
484         0x0000, 0x0000, /*BANK 0*/
485         0x0008, 0x00ac, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
486         0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/
487         0x0092, 0x0020, /*DE pe*/
488         0x0093, 0x0020, /*DE pf*/
489         0x0094, 0x0020, /*DE pb*/
490         0x0095, 0x0020, /*DE ne*/
491         0x0096, 0x0020, /*DE nf*/
492         0x0097, 0x0020, /*DE nb*/
493         0x0098, 0x1000, /*DE max ratio*/
494         0x0099, 0x0100, /*DE min ratio*/
495         0x00b0, 0x1010, /*CS hg ry*/
496         0x00b1, 0x1010, /*CS hg gc*/
497         0x00b2, 0x1010, /*CS hg bm*/
498         0x00b3, 0x1804, /*CS weight grayTH*/
499         0x00e1, 0xd6ac, /*SCR RrCr*/
500         0x00e2, 0x32ff, /*SCR RgCg*/
501         0x00e3, 0x2ef0, /*SCR RbCb*/
502         0x00e4, 0xa5fa, /*SCR GrMr*/
503         0x00e5, 0xff4d, /*SCR GgMg*/
504         0x00e6, 0x59ff, /*SCR GbMb*/
505         0x00e7, 0x00ff, /*SCR BrYr*/
506         0x00e8, 0x00fb, /*SCR BgYg*/
507         0x00e9, 0xff61, /*SCR BbYb*/
508         0x00ea, 0x00ff, /*SCR KrWr*/
509         0x00eb, 0x00fa, /*SCR KgWg*/
510         0x00ec, 0x00f8, /*SCR KbWb*/
511         0x0000, 0x0001, /*BANK 1*/
512         0x001f, 0x0080, /*CC chsel strength*/
513         0x0020, 0x0000, /*CC lut r       0*/
514         0x0021, 0x0290, /*CC lut r      16 144*/
515         0x0022, 0x20a0, /*CC lut r      32 160*/
516         0x0023, 0x30b0, /*CC lut r      48 176*/
517         0x0024, 0x40c0, /*CC lut r      64 192*/
518         0x0025, 0x50d0, /*CC lut r      80 208*/
519         0x0026, 0x60e0, /*CC lut r      96 224*/
520         0x0027, 0x70f0, /*CC lut r 112 240*/
521         0x0028, 0x80ff, /*CC lut r 128 255*/
522         0x00ff, 0x0000, /*Mask Release*/
523         END_SEQ, 0x0000,
524 };
525
526 static const unsigned short tune_natural_video[] = {
527         0x0000, 0x0000, /*BANK 0*/
528         0x0008, 0x00ac, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
529         0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/
530         0x0092, 0x0060, /*DE pe*/
531         0x0093, 0x0060, /*DE pf*/
532         0x0094, 0x0060, /*DE pb*/
533         0x0095, 0x0060, /*DE ne*/
534         0x0096, 0x0060, /*DE nf*/
535         0x0097, 0x0060, /*DE nb*/
536         0x0098, 0x1000, /*DE max ratio*/
537         0x0099, 0x0100, /*DE min ratio*/
538         0x00b0, 0x1010, /*CS hg ry*/
539         0x00b1, 0x1010, /*CS hg gc*/
540         0x00b2, 0x1010, /*CS hg bm*/
541         0x00b3, 0x1804, /*CS weight grayTH*/
542         0x00e1, 0xd6ac, /*SCR RrCr*/
543         0x00e2, 0x32ff, /*SCR RgCg*/
544         0x00e3, 0x2ef0, /*SCR RbCb*/
545         0x00e4, 0xa5fa, /*SCR GrMr*/
546         0x00e5, 0xff4d, /*SCR GgMg*/
547         0x00e6, 0x59ff, /*SCR GbMb*/
548         0x00e7, 0x00ff, /*SCR BrYr*/
549         0x00e8, 0x00fb, /*SCR BgYg*/
550         0x00e9, 0xff61, /*SCR BbYb*/
551         0x00ea, 0x00ff, /*SCR KrWr*/
552         0x00eb, 0x00fa, /*SCR KgWg*/
553         0x00ec, 0x00f8, /*SCR KbWb*/
554         0x0000, 0x0001, /*BANK 1*/
555         0x001f, 0x0080, /*CC chsel strength*/
556         0x0020, 0x0000, /*CC lut r       0*/
557         0x0021, 0x0290, /*CC lut r      16 144*/
558         0x0022, 0x20a0, /*CC lut r      32 160*/
559         0x0023, 0x30b0, /*CC lut r      48 176*/
560         0x0024, 0x40c0, /*CC lut r      64 192*/
561         0x0025, 0x50d0, /*CC lut r      80 208*/
562         0x0026, 0x60e0, /*CC lut r      96 224*/
563         0x0027, 0x70f0, /*CC lut r 112 240*/
564         0x0028, 0x80ff, /*CC lut r 128 255*/
565         0x00ff, 0x0000, /*Mask Release*/
566         END_SEQ, 0x0000,
567 };
568
569 static const unsigned short tune_natural_vtcall[] = {
570         0x0000, 0x0000, /*BANK 0*/
571         0x0008, 0x00ae, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
572         0x0030, 0x0005, /*FA cs1 | de8 dnr4 hdr2 fa1*/
573         0x0039, 0x0080, /*FA dnrWeight*/
574         0x0080, 0x0fff, /*DNR dirTh*/
575         0x0081, 0x19ff, /*DNR dirnumTh decon7Th*/
576         0x0082, 0xff16, /*DNR decon5Th maskTh*/
577         0x0083, 0x0000, /*DNR blTh*/
578         0x0092, 0x00c0, /*DE pe*/
579         0x0093, 0x00c0, /*DE pf*/
580         0x0094, 0x00c0, /*DE pb*/
581         0x0095, 0x00c0, /*DE ne*/
582         0x0096, 0x00c0, /*DE nf*/
583         0x0097, 0x00c0, /*DE nb*/
584         0x0098, 0x1000, /*DE max ratio*/
585         0x0099, 0x0010, /*DE min ratio*/
586         0x00b0, 0x1010, /*CS hg ry*/
587         0x00b1, 0x1010, /*CS hg gc*/
588         0x00b2, 0x1010, /*CS hg bm*/
589         0x00b3, 0x1804, /*CS weight grayTH*/
590         0x00e1, 0xd6ac, /*SCR RrCr*/
591         0x00e2, 0x32ff, /*SCR RgCg*/
592         0x00e3, 0x2ef0, /*SCR RbCb*/
593         0x00e4, 0xa5fa, /*SCR GrMr*/
594         0x00e5, 0xff4d, /*SCR GgMg*/
595         0x00e6, 0x59ff, /*SCR GbMb*/
596         0x00e7, 0x00ff, /*SCR BrYr*/
597         0x00e8, 0x00fb, /*SCR BgYg*/
598         0x00e9, 0xff61, /*SCR BbYb*/
599         0x00ea, 0x00ff, /*SCR KrWr*/
600         0x00eb, 0x00fa, /*SCR KgWg*/
601         0x00ec, 0x00f8, /*SCR KbWb*/
602         0x0000, 0x0001, /*BANK 1*/
603         0x001f, 0x0080, /*CC chsel strength*/
604         0x0020, 0x0000, /*CC lut r       0*/
605         0x0021, 0x0290, /*CC lut r      16 144*/
606         0x0022, 0x20a0, /*CC lut r      32 160*/
607         0x0023, 0x30b0, /*CC lut r      48 176*/
608         0x0024, 0x40c0, /*CC lut r      64 192*/
609         0x0025, 0x50d0, /*CC lut r      80 208*/
610         0x0026, 0x60e0, /*CC lut r      96 224*/
611         0x0027, 0x70f0, /*CC lut r 112 240*/
612         0x0028, 0x80ff, /*CC lut r 128 255*/
613         0x00ff, 0x0000, /*Mask Release*/
614         END_SEQ, 0x0000,
615 };
616
617 static const unsigned short tune_camera[] = {
618         0x0000, 0x0000, /*BANK 0*/
619         0x0008, 0x000c, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
620         0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/
621         0x0092, 0x0060, /*DE pe*/
622         0x0093, 0x0060, /*DE pf*/
623         0x0094, 0x0060, /*DE pb*/
624         0x0095, 0x0060, /*DE ne*/
625         0x0096, 0x0060, /*DE nf*/
626         0x0097, 0x0060, /*DE nb*/
627         0x0098, 0x1000, /*DE max ratio*/
628         0x0099, 0x0100, /*DE min ratio*/
629         0x00b0, 0x1010, /*CS hg ry*/
630         0x00b1, 0x1010, /*CS hg gc*/
631         0x00b2, 0x1010, /*CS hg bm*/
632         0x00b3, 0x1204, /*CS weight grayTH*/
633         0x00ff, 0x0000, /*Mask Release*/
634         END_SEQ, 0x0000,
635 };
636
637 static const unsigned short tune_camera_outdoor[] = {
638         0x0000, 0x0000, /*BANK 0*/
639         0x0008, 0x040c, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
640         0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/
641         0x0092, 0x0060, /*DE pe*/
642         0x0093, 0x0060, /*DE pf*/
643         0x0094, 0x0060, /*DE pb*/
644         0x0095, 0x0060, /*DE ne*/
645         0x0096, 0x0060, /*DE nf*/
646         0x0097, 0x0060, /*DE nb*/
647         0x0098, 0x1000, /*DE max ratio*/
648         0x0099, 0x0100, /*DE min ratio*/
649         0x00b0, 0x1010, /*CS hg RY*/
650         0x00b1, 0x1010, /*CS hg GC*/
651         0x00b2, 0x1010, /*CS hg BM*/
652         0x00b3, 0x1204, /*CS weight grayTH*/
653         0x0000, 0x0001, /*BANK 1*/
654         0x00d0, 0x01c0, /*UC y*/
655         0x00d1, 0x01ff, /*UC cs*/
656         0x00ff, 0x0000, /*Mask Release*/
657         END_SEQ, 0x0000,
658 };
659
660 static const unsigned short tune_cold[] = {
661         0x0000, 0x0000, /*BANK 0*/
662         0x0008, 0x00ec, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
663         0x0000, 0x0001, /*BANK 1*/
664         0x0001, 0x0064, /*MCM 10000K*/
665         0x0009, 0xa08b, /*MCM 5cb 1cr W*/
666         0x000b, 0x7a7a, /*MCM 4cr 5cr W*/
667         0x00ff, 0x0000, /*Mask Release*/
668         END_SEQ, 0x0000,
669 };
670
671 static const unsigned short tune_cold_outdoor[] = {
672         0x0000, 0x0000, /*BANK 0*/
673         0x0008, 0x04ec, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
674         0x0000, 0x0001, /*BANK 1*/
675         0x0001, 0x0064, /*MCM 10000K*/
676         0x0009, 0xa08b, /*MCM 5cb 1cr W*/
677         0x000b, 0x7a7a, /*MCM 4cr 5cr W*/
678         0x00d0, 0x01c0, /*UC y*/
679         0x00d1, 0x01ff, /*UC cs*/
680         0x00ff, 0x0000, /*Mask Release*/
681         END_SEQ, 0x0000,
682 };
683
684 static const unsigned short tune_outdoor[] = {
685         0x0000, 0x0000, /*BANK 0*/
686         0x0008, 0x04ac, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
687         0x0000, 0x0001, /*BANK 1*/
688         0x00d0, 0x01c0, /*UC y*/
689         0x00d1, 0x01ff, /*UC cs*/
690         0x00ff, 0x0000, /*Mask Release*/
691         END_SEQ, 0x0000,
692 };
693
694 static const unsigned short tune_warm[] = {
695         0x0000, 0x0000, /*BANK 0*/
696         0x0008, 0x00ec, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
697         0x0000, 0x0001, /*BANK 1*/
698         0x0001, 0x0028, /*MCM 4000K*/
699         0x0007, 0x7878, /*MCM 1cb 2cb W*/
700         0x0009, 0xa08b, /*MCM 5cb 1cr W*/
701         0x00ff, 0x0000, /*Mask Release*/
702         END_SEQ, 0x0000,
703 };
704
705 static const unsigned short tune_warm_outdoor[] = {
706         0x0000, 0x0000, /*BANK 0*/
707         0x0008, 0x04ec, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/
708         0x0000, 0x0001, /*BANK 1*/
709         0x0001, 0x0028, /*MCM 4000K*/
710         0x0007, 0x7878, /*MCM 1cb 2cb W*/
711         0x0009, 0xa08b, /*MCM 5cb 1cr W*/
712         0x00d0, 0x01c0, /*UC y*/
713         0x00d1, 0x01ff, /*UC cs*/
714         0x00ff, 0x0000, /*Mask Release*/
715         END_SEQ, 0x0000,
716 };
717
718 struct mdnie_tunning_info etc_table[CABC_MAX][OUTDOOR_MAX][TONE_MAX] = {
719         {
720                 {
721                         {"NORMAL",              NULL},
722                         {"WARM",                tune_warm},
723                         {"COLD",                tune_cold},
724                 },
725                 {
726                         {"NORMAL_OUTDOOR",      tune_outdoor},
727                         {"WARM_OUTDOOR",        tune_warm_outdoor},
728                         {"COLD_OUTDOOR",        tune_cold_outdoor},
729                 },
730         }
731 };
732
733 struct mdnie_tunning_info tunning_table[CABC_MAX][MODE_MAX][SCENARIO_MAX] = {
734         {
735                 {
736                         {"DYNAMIC_UI",                  tune_dynamic_ui},
737                         {"DYNAMIC_VIDEO_NORMAL",        tune_dynamic_video},
738                         {"DYNAMIC_VIDEO_WARM",          tune_dynamic_video},
739                         {"DYNAMIC_VIDEO_COLD",          tune_dynamic_video},
740                         {"CAMERA",                      tune_camera},
741                         {"DYNAMIC_UI",                  tune_dynamic_ui},
742                         {"DYNAMIC_GALLERY",             tune_dynamic_gallery},
743                         {"DYNAMIC_VT",                  tune_dynamic_vtcall},
744                 }, {
745                         {"STANDARD_UI",                 tune_standard_ui},
746                         {"STANDARD_VIDEO_NORMAL",       tune_standard_video},
747                         {"STANDARD_VIDEO_WARM",         tune_standard_video},
748                         {"STANDARD_VIDEO_COLD",         tune_standard_video},
749                         {"CAMERA",                      tune_camera},
750                         {"STANDARD_UI",                 tune_standard_ui},
751                         {"STANDARD_GALLERY",            tune_standard_gallery},
752                         {"STANDARD_VT",                 tune_standard_vtcall},
753                 }, {
754                         {"NATURAL_UI",                  tune_natural_ui},
755                         {"NATURAL_VIDEO_NORMAL",        tune_natural_video},
756                         {"NATURAL_VIDEO_WARM",          tune_natural_video},
757                         {"NATURAL_VIDEO_COLD",          tune_natural_video},
758                         {"CAMERA",                      tune_camera},
759                         {"NATURAL_UI",                  tune_natural_ui},
760                         {"NATURAL_GALLERY",             tune_natural_gallery},
761                         {"NATURAL_VT",                  tune_natural_vtcall},
762                 }, {
763                         {"MOVIE_UI",                    tune_movie_ui},
764                         {"MOVIE_VIDEO_NORMAL",          tune_movie_video},
765                         {"MOVIE_VIDEO_WARM",            tune_movie_video},
766                         {"MOVIE_VIDEO_COLD",            tune_movie_video},
767                         {"CAMERA",                      tune_camera},
768                         {"MOVIE_UI",                    tune_movie_ui},
769                         {"MOVIE_GALLERY",               tune_movie_gallery},
770                         {"MOVIE_VT",                    tune_movie_vtcall},
771                 },
772         }
773 };
774
775 #endif/* __MDNIE_TABLE_H__ */