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 static const unsigned char SiS310_LCDDelayCompensation_301[] =
54 {
55 0x00,0x00,0x00,
56 0x0b,0x0b,0x0b,
57 0x08,0x08,0x08,
58 0x00,0x00,0x00,
59 0x00,0x00,0x00,
60 0x00,0x00,0x00,
61 0x08,0x08,0x08,
62 0x00,0x00,0x00,
63 0x08,0x08,0x08,
64 0x08,0x08,0x08,
65 0x00,0x00,0x00,
66 0x00,0x00,0x00,
67 0x00,0x00,0x00,
68 0x00,0x00,0x00,
69 0x00,0x00,0x00
70 };
71
72
73 static const unsigned char SiS310_LCDDelayCompensation_650301LV[] =
74 {
75 0x01,0x01,0x01,
76 0x01,0x01,0x01,
77 0x01,0x01,0x01,
78 0x01,0x01,0x01,
79 0x01,0x01,0x01,
80 0x01,0x01,0x01,
81 0x01,0x01,0x01,
82 0x01,0x01,0x01,
83 0x01,0x01,0x01,
84 0x01,0x01,0x01,
85 0x01,0x01,0x01,
86 0x02,0x02,0x02,
87 0x02,0x02,0x02,
88 0x02,0x02,0x02,
89 0x02,0x02,0x02
90 };
91
92 static const unsigned char SiS310_LCDDelayCompensation_651301LV[] =
93 {
94 0x33,0x33,0x33,
95 0x33,0x33,0x33,
96 0x33,0x33,0x33,
97 0x33,0x33,0x33,
98 0x33,0x33,0x33,
99 0x33,0x33,0x33,
100 0x33,0x33,0x33,
101 0x33,0x33,0x33,
102 0x33,0x33,0x33,
103 0x33,0x33,0x33,
104 0x33,0x33,0x33,
105 0x33,0x33,0x33,
106 0x33,0x33,0x33,
107 0x33,0x33,0x33,
108 0x33,0x33,0x33
109 };
110
111 static const unsigned char SiS310_LCDDelayCompensation_651302LV[] =
112 {
113 0x33,0x33,0x33,
114 0x33,0x33,0x33,
115 0x33,0x33,0x33,
116 0x33,0x33,0x33,
117 0x33,0x33,0x33,
118 0x33,0x33,0x33,
119 0x33,0x33,0x33,
120 0x33,0x33,0x33,
121 0x33,0x33,0x33,
122 0x33,0x33,0x33,
123 0x33,0x33,0x33,
124 0x33,0x33,0x33,
125 0x33,0x33,0x33,
126 0x33,0x33,0x33,
127 0x33,0x33,0x33
128 };
129
130 static const unsigned char SiS310_LCDDelayCompensation_3xx301B[] =
131 {
132 0x01,0x01,0x01,
133 0x0C,0x0C,0x0C,
134 0x0C,0x0C,0x0C,
135 0x08,0x08,0x08,
136 0x0C,0x0C,0x0C,
137 0x0C,0x0C,0x0C,
138 0x0C,0x0C,0x0C,
139 0x0C,0x0C,0x0C,
140 0x0C,0x0C,0x0C,
141 0x0C,0x0C,0x0C,
142 0x0C,0x0C,0x0C,
143 0x02,0x02,0x02,
144 0x02,0x02,0x02,
145 0x02,0x02,0x02,
146 0x02,0x02,0x02
147 };
148
149 static const unsigned char SiS310_LCDDelayCompensation_3xx301LV[] =
150 {
151 0x01,0x01,0x01,
152 0x04,0x04,0x04,
153 0x0C,0x0C,0x0C,
154 0x08,0x08,0x08,
155 0x0C,0x0C,0x0C,
156 0x0C,0x0C,0x0C,
157 0x0C,0x0C,0x0C,
158 0x0C,0x0C,0x0C,
159 0x0C,0x0C,0x0C,
160 0x0C,0x0C,0x0C,
161 0x0C,0x0C,0x0C,
162 0x02,0x02,0x02,
163 0x02,0x02,0x02,
164 0x02,0x02,0x02,
165 0x02,0x02,0x02
166 };
167
168 static const unsigned char SiS310_TVDelayCompensation_301[] =
169 {
170 0x02,0x02,
171 0x02,0x02,
172 0x08,0x0b
173 };
174
175 static const unsigned char SiS310_TVDelayCompensation_301B[] =
176 {
177 0x03,0x03,
178 0x03,0x03,
179 0x03,0x03
180 };
181
182 static const unsigned char SiS310_TVDelayCompensation_740301B[] =
183 {
184 0x05,0x05,
185 0x05,0x05,
186 0x05,0x05
187 };
188
189 static const unsigned char SiS310_TVDelayCompensation_651301LV[] =
190 {
191 0x33,0x33,
192 0x33,0x33,
193 0x33,0x33
194 };
195
196 static const unsigned char SiS310_TVDelayCompensation_651302LV[] =
197 {
198 0x33,0x33,
199 0x33,0x33,
200 0x33,0x33
201 };
202
203 static const unsigned char SiS_TVDelay661_301[] =
204 {
205 0x44,0x44,
206 0x44,0x44,
207 0x00,0x00,
208 0x44,0x44,
209 0x44,0x44,
210 0x44,0x44
211 };
212
213 static const unsigned char SiS_TVDelay661_301B[] =
214 {
215 0x44,0x44,
216 0x44,0x44,
217 0x00,0x00,
218 0x44,0x44,
219 0x44,0x44,
220 0x44,0x44
221 };
222
223 static const unsigned char SiS310_TVDelayCompensation_LVDS[] =
224 {
225 0x0a,0x0a,
226 0x0a,0x0a,
227 0x0a,0x0a
228 };
229
230 static const unsigned char SiS310_TVAntiFlick1[6][2] =
231 {
232 {0x4,0x0},
233 {0x4,0x8},
234 {0x0,0x0},
235 {0x0,0x0},
236 {0x0,0x0},
237 {0x0,0x0}
238 };
239
240 static const unsigned char SiS310_TVEdge1[6][2] =
241 {
242 {0x0,0x4},
243 {0x0,0x4},
244 {0x0,0x0},
245 {0x0,0x0},
246 {0x0,0x0},
247 {0x0,0x0}
248 };
249
250 static const unsigned char SiS310_TVYFilter1[5][8][4] =
251 {
252 {
253 {0x00,0xf4,0x10,0x38},
254 {0x00,0xf4,0x10,0x38},
255 {0xeb,0x04,0x25,0x18},
256 {0xf1,0x04,0x1f,0x18},
257 {0x00,0xf4,0x10,0x38},
258 {0xeb,0x04,0x25,0x18},
259 {0xee,0x0c,0x22,0x08},
260 {0xeb,0x15,0x25,0xf6}
261 },
262 {
263 {0x00,0xf4,0x10,0x38},
264 {0x00,0xf4,0x10,0x38},
265 {0xf1,0xf7,0x1f,0x32},
266 {0xf3,0x00,0x1d,0x20},
267 {0x00,0xf4,0x10,0x38},
268 {0xf1,0xf7,0x1f,0x32},
269 {0xf3,0x00,0x1d,0x20},
270 {0xfc,0xfb,0x14,0x2a}
271 },
272 {
273 {0x00,0x00,0x00,0x00},
274 {0x00,0xf4,0x10,0x38},
275 {0x00,0xf4,0x10,0x38},
276 {0xeb,0x04,0x25,0x18},
277 {0xf7,0x06,0x19,0x14},
278 {0x00,0xf4,0x10,0x38},
279 {0xeb,0x04,0x25,0x18},
280 {0xee,0x0c,0x22,0x08}
281 },
282 {
283 {0x00,0xf4,0x10,0x38},
284 {0x00,0xf4,0x10,0x38},
285 {0xeb,0x04,0x10,0x18},
286 {0xf7,0x06,0x19,0x14},
287 {0x00,0xf4,0x10,0x38},
288 {0xeb,0x04,0x25,0x18},
289 {0xeb,0x04,0x25,0x18},
290 {0xeb,0x15,0x25,0xf6}
291 },
292 {
293 {0x00,0xf4,0x10,0x38},
294 {0x00,0xf4,0x10,0x38},
295 {0xeb,0x04,0x10,0x18},
296 {0xf7,0x06,0x19,0x14},
297 {0x00,0xf4,0x10,0x38},
298 {0xeb,0x04,0x25,0x18},
299 {0xeb,0x04,0x25,0x18},
300 {0xeb,0x15,0x25,0xf6}
301 }
302 };
303
304 static const unsigned char SiS310_TVYFilter2[5][9][7] =
305 {
306 {
307 {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
308 {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
309 {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
310 {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
311 {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
312 {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
313 {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
314 {0x01,0x01,0xFC,0xF8,0x08,0x26,0x38},
315 {0xFF,0xFF,0xFC,0x00,0x0F,0x22,0x28}
316 },
317 {
318 {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
319 {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
320 {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
321 {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
322 {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
323 {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
324 {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
325 {0x01,0x01,0xFC,0xF8,0x08,0x26,0x38},
326 {0xFF,0xFF,0xFC,0x00,0x0F,0x22,0x28}
327 },
328 {
329 {0x00,0x00,0x00,0xF4,0xFF,0x1C,0x22},
330 {0x00,0x00,0x00,0xF4,0xFF,0x1C,0x22},
331 {0x00,0x00,0x00,0xF4,0xFF,0x1C,0x22},
332 {0x00,0x00,0x00,0xF4,0xFF,0x1C,0x22},
333 {0x00,0x00,0x00,0xF4,0xFF,0x1C,0x22},
334 {0x00,0x00,0x00,0xF4,0xFF,0x1C,0x22},
335 {0x00,0x00,0x00,0xF4,0xFF,0x1C,0x22},
336 {0x00,0x00,0x00,0xF4,0xFF,0x1C,0x22},
337 {0x00,0x00,0x00,0xF4,0xFF,0x1C,0x22}
338 },
339 {
340 {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
341 {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
342 {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
343 {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
344 {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
345 {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
346 {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
347 {0x01,0x01,0xFC,0xF8,0x08,0x26,0x38},
348 {0xFF,0xFF,0xFC,0x00,0x0F,0x22,0x28}
349 },
350 {
351 {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
352 {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
353 {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
354 {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
355 {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
356 {0xFF,0x03,0x02,0xF6,0xFC,0x27,0x46},
357 {0x01,0x02,0xFE,0xF7,0x03,0x27,0x3C},
358 {0x01,0x01,0xFC,0xF8,0x08,0x26,0x38},
359 {0xFF,0xFF,0xFC,0x00,0x0F,0x22,0x28}
360 }
361 };
362
363 static const unsigned char SiS310_TVPhaseIncr1[3][2][4] =
364 {
365 {
366 {0x21,0xed,0xba,0x08},
367 {0x21,0xed,0xba,0x08}
368 },
369 {
370 {0x2a,0x05,0xe3,0x00},
371 {0x2a,0x05,0xe3,0x00}
372 },
373 {
374 {0x2a,0x05,0xd3,0x00},
375 {0x2a,0x05,0xd3,0x00}
376 }
377 };
378
379 static const unsigned char SiS310_TVPhaseIncr2[3][2][4] =
380 {
381 {
382 {0x21,0xf0,0x7b,0xd6},
383 {0x21,0xf0,0x7b,0xd6}
384 },
385 {
386 {0x2a,0x0a,0x41,0xe9},
387 {0x2a,0x0a,0x41,0xe9}
388 },
389 {
390 {0x2a,0x05,0xd3,0x00},
391 {0x2a,0x05,0xd3,0x00}
392 }
393 };
394
395
396
397
398
399
400
401 static const struct SiS_LCDData SiS310_ExtCompaq1280x1024Data[] =
402 {
403 { 211, 60,1024, 501,1688,1066},
404 { 211, 60,1024, 508,1688,1066},
405 { 211, 60,1024, 501,1688,1066},
406 { 211, 60,1024, 508,1688,1066},
407 { 32, 15,1696, 501,1696,1066},
408 { 212, 75,1024, 621,1696,1066},
409 { 4, 3,1696, 810,1696,1066},
410 { 1, 1,1696,1066,1696,1066}
411 };
412
413
414
415 static const struct SiS_Part2PortTbl SiS310_CRT2Part2_Asus1024x768_3[] =
416 {
417 {{0x25,0x13,0xc9,0x25,0xff,0x59,0x45,0x09,0x07,0xf9,0x09,0x24}},
418 {{0x2c,0x13,0x9a,0x25,0xff,0x59,0x45,0x09,0x07,0xf9,0x09,0x24}},
419 {{0x25,0x13,0xc9,0x25,0xff,0x59,0x45,0x09,0x07,0xf9,0x09,0x24}},
420 {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}},
421 {{0x38,0x13,0x13,0x25,0xff,0x59,0x45,0x09,0x07,0xf9,0x09,0x24}},
422 {{0x38,0x13,0x16,0x25,0xff,0x5a,0x45,0x0a,0x07,0xfa,0x0a,0x24}},
423 {{0x36,0x13,0x13,0x25,0xff,0x5a,0x45,0x0a,0x07,0xfa,0x0a,0x24}},
424 {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}},
425 {{0x25,0x13,0xc9,0x25,0xff,0x59,0x45,0x09,0x07,0xf9,0x09,0x24}}
426 };
427
428
429
430