aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/samsung_duallcd/aid_s6e8aa0.h
blob: cf8058a4244bd36f9ca2894288775f6858877118 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
#ifndef __AID_S6E8AA0_H__
#define __AID_S6E8AA0_H__

#include "smart_dimming.h"

#define aid_300nit_260nit_F8_1st	0x19
#define aid_300nit_260nit_F8_18th	0x04
#define aid_250nit_190nit_F8_1st	0x19
#define aid_250nit_190nit_F8_18th	0x04
#define aid_188nit_182nit_F8_1st	0x59
#define aid_188nit_F8_18th		0x0D
#define aid_186nit_F8_18th		0x1A
#define aid_184nit_F8_18th		0x27
#define aid_182nit_F8_18th		0x34
#define aid_180nit_110nit_F8_18th	0x42
#define aid_180nit_110nit_F8_1st	0x59
#define aid_100nit_20nit_F8_1st	0x59
#define aid_100nit_F8_18th		0x12
#define aid_90nit_F8_18th		0x22
#define aid_80nit_F8_18th		0x32
#define aid_70nit_F8_18th		0x41
#define aid_60nit_F8_18th		0x50
#define aid_50nit_F8_18th		0x5E
#define aid_40nit_F8_18th		0x6C
#define aid_30nit_F8_18th		0x7A
#define aid_20nit_F8_18th		0x88
#define AOR40_BASE_188		201
#define AOR40_BASE_186		214
#define AOR40_BASE_184		234
#define AOR40_BASE_182		250
#define AOR40_BASE_180		273
#define AOR40_BASE_170		258
#define AOR40_BASE_160		244
#define AOR40_BASE_150		229
#define AOR40_BASE_140		215
#define AOR40_BASE_130		200
#define AOR40_BASE_120		186
#define AOR40_BASE_110		171
#define base_20to100			110

const struct rgb_offset_info aid_rgb_fix_table[] = {
	{GAMMA_180CD, IV_15, CI_RED, 1}, {GAMMA_180CD, IV_15, CI_GREEN, -1}, {GAMMA_180CD, IV_15, CI_BLUE, 5},
	{GAMMA_170CD, IV_15, CI_RED, 1}, {GAMMA_170CD, IV_15, CI_GREEN, -1}, {GAMMA_170CD, IV_15, CI_BLUE, 5},
	{GAMMA_160CD, IV_15, CI_RED, 1}, {GAMMA_160CD, IV_15, CI_GREEN, -1}, {GAMMA_160CD, IV_15, CI_BLUE, 5},
	{GAMMA_150CD, IV_15, CI_RED, 1}, {GAMMA_150CD, IV_15, CI_GREEN, -1}, {GAMMA_150CD, IV_15, CI_BLUE, 5},
	{GAMMA_140CD, IV_15, CI_RED, 1}, {GAMMA_140CD, IV_15, CI_GREEN, -1}, {GAMMA_140CD, IV_15, CI_BLUE, 5},
	{GAMMA_130CD, IV_15, CI_RED, 1}, {GAMMA_130CD, IV_15, CI_GREEN, -1}, {GAMMA_130CD, IV_15, CI_BLUE, 5},
	{GAMMA_120CD, IV_15, CI_RED, 1}, {GAMMA_120CD, IV_15, CI_GREEN, -1}, {GAMMA_120CD, IV_15, CI_BLUE, 5},
	{GAMMA_110CD, IV_15, CI_RED, 1}, {GAMMA_110CD, IV_15, CI_GREEN, -1}, {GAMMA_110CD, IV_15, CI_BLUE, 5},
	{GAMMA_100CD, IV_15, CI_RED, -2}, {GAMMA_100CD, IV_15, CI_GREEN, -3},
	{GAMMA_90CD, IV_15, CI_RED, -6}, {GAMMA_90CD, IV_15, CI_GREEN, -7},
	{GAMMA_80CD, IV_15, CI_RED, -10}, {GAMMA_80CD, IV_15, CI_GREEN, -12},
	{GAMMA_70CD, IV_15, CI_RED, -17}, {GAMMA_70CD, IV_15, CI_GREEN, -20},
	{GAMMA_60CD, IV_15, CI_RED, -27}, {GAMMA_60CD, IV_15, CI_GREEN, -32},
	{GAMMA_50CD, IV_15, CI_RED, -44}, {GAMMA_50CD, IV_15, CI_GREEN, -53},
	{GAMMA_40CD, IV_15, CI_RED, -44}, {GAMMA_40CD, IV_15, CI_GREEN, -53}, {GAMMA_40CD, IV_15, CI_BLUE, 14},
	{GAMMA_30CD, IV_15, CI_RED, -44}, {GAMMA_30CD, IV_15, CI_GREEN, -53}, {GAMMA_30CD, IV_15, CI_BLUE, 32},
	{GAMMA_20CD, IV_15, CI_RED, -33}, {GAMMA_20CD, IV_15, CI_GREEN, -53}, {GAMMA_20CD, IV_15, CI_BLUE, 62},
	{GAMMA_20CD, IV_35, CI_RED, -15}, {GAMMA_20CD, IV_35, CI_GREEN, -12},
};

static unsigned char aid_command_20[] = {
	aid_20nit_F8_18th,
	aid_100nit_20nit_F8_1st,
};

static unsigned char aid_command_30[] = {
	aid_30nit_F8_18th,
	aid_100nit_20nit_F8_1st,
};

static unsigned char aid_command_40[] = {
	aid_40nit_F8_18th,
	aid_100nit_20nit_F8_1st,
};

static unsigned char aid_command_50[] = {
	aid_50nit_F8_18th,
	aid_100nit_20nit_F8_1st,
};

static unsigned char aid_command_60[] = {
	aid_60nit_F8_18th,
	aid_100nit_20nit_F8_1st,
};

static unsigned char aid_command_70[] = {
	aid_70nit_F8_18th,
	aid_100nit_20nit_F8_1st,
};

static unsigned char aid_command_80[] = {
	aid_80nit_F8_18th,
	aid_100nit_20nit_F8_1st,
};

static unsigned char aid_command_90[] = {
	aid_90nit_F8_18th,
	aid_100nit_20nit_F8_1st,
};

static unsigned char aid_command_100[] = {
	aid_100nit_F8_18th,
	aid_100nit_20nit_F8_1st,
};

static unsigned char aid_command_110[] = {
	aid_180nit_110nit_F8_18th,
	aid_180nit_110nit_F8_1st,
};

static unsigned char aid_command_120[] = {
	aid_180nit_110nit_F8_18th,
	aid_180nit_110nit_F8_1st,
};

static unsigned char aid_command_130[] = {
	aid_180nit_110nit_F8_18th,
	aid_180nit_110nit_F8_1st,
};

static unsigned char aid_command_140[] = {
	aid_180nit_110nit_F8_18th,
	aid_180nit_110nit_F8_1st,
};

static unsigned char aid_command_150[] = {
	aid_180nit_110nit_F8_18th,
	aid_180nit_110nit_F8_1st,
};

static unsigned char aid_command_160[] = {
	aid_180nit_110nit_F8_18th,
	aid_180nit_110nit_F8_1st,
};

static unsigned char aid_command_170[] = {
	aid_180nit_110nit_F8_18th,
	aid_180nit_110nit_F8_1st,
};

static unsigned char aid_command_180[] = {
	aid_180nit_110nit_F8_18th,
	aid_180nit_110nit_F8_1st,
};

static unsigned char aid_command_182[] = {
	aid_182nit_F8_18th,
	aid_188nit_182nit_F8_1st,
};

static unsigned char aid_command_184[] = {
	aid_184nit_F8_18th,
	aid_188nit_182nit_F8_1st,
};

static unsigned char aid_command_186[] = {
	aid_186nit_F8_18th,
	aid_188nit_182nit_F8_1st,
};

static unsigned char aid_command_188[] = {
	aid_188nit_F8_18th,
	aid_188nit_182nit_F8_1st,
};

static unsigned char aid_command_190[] = {
	aid_250nit_190nit_F8_18th,
	aid_250nit_190nit_F8_1st,
};

static unsigned char aid_command_200[] = {
	aid_250nit_190nit_F8_18th,
	aid_250nit_190nit_F8_1st,
};

static unsigned char aid_command_210[] = {
	aid_250nit_190nit_F8_18th,
	aid_250nit_190nit_F8_1st,
};

static unsigned char aid_command_220[] = {
	aid_250nit_190nit_F8_18th,
	aid_250nit_190nit_F8_1st,
};

static unsigned char aid_command_230[] = {
	aid_250nit_190nit_F8_18th,
	aid_250nit_190nit_F8_1st,
};

static unsigned char aid_command_240[] = {
	aid_250nit_190nit_F8_18th,
	aid_250nit_190nit_F8_1st,
};

static unsigned char aid_command_250[] = {
	aid_250nit_190nit_F8_18th,
	aid_250nit_190nit_F8_1st,
};

static unsigned char aid_command_300[] = {
	aid_300nit_260nit_F8_18th,
	aid_300nit_260nit_F8_1st,
};

static unsigned char *aid_command_table[GAMMA_MAX] = {
	aid_command_20,
	aid_command_30,
	aid_command_40,
	aid_command_50,
	aid_command_60,
	aid_command_70,
	aid_command_80,
	aid_command_90,
	aid_command_100,
	aid_command_110,
	aid_command_120,
	aid_command_130,
	aid_command_140,
	aid_command_150,
	aid_command_160,
	aid_command_170,
	aid_command_180,
	aid_command_182,
	aid_command_184,
	aid_command_186,
	aid_command_188,
	aid_command_190,
	aid_command_200,
	aid_command_210,
	aid_command_220,
	aid_command_230,
	aid_command_240,
	aid_command_250,
	aid_command_300
};

#endif