diff options
author | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2010-03-10 18:21:29 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-12 18:52:33 -0500 |
commit | 9b24b00c364bb3bfa717ba2ead258a527b20cc5f (patch) | |
tree | f59fff4dc5a4631a6d148353f7ce17c47c131984 /drivers/video/via/lcd.c | |
parent | dd73d6868b9ecb4841def0c6ff0a25da27db33ba (diff) |
viafb: remove the remaining VIA_RES_* uses
Remove the rest of the VIA_RES_* use cases. Obviously this was no longer
useful. Keep the related infrastructure/functions for later use.
No runtime impact expected.
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Joseph Chan <JosephChan@via.com.tw>
Cc: Scott Fang <ScottFang@viatech.com.cn>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/via/lcd.c')
-rw-r--r-- | drivers/video/via/lcd.c | 42 |
1 files changed, 5 insertions, 37 deletions
diff --git a/drivers/video/via/lcd.c b/drivers/video/via/lcd.c index e0ab605f0170..3a83e5bc25d9 100644 --- a/drivers/video/via/lcd.c +++ b/drivers/video/via/lcd.c | |||
@@ -61,7 +61,7 @@ static struct _lcd_scaling_factor lcd_scaling_factor_CLE = { | |||
61 | 61 | ||
62 | static int check_lvds_chip(int device_id_subaddr, int device_id); | 62 | static int check_lvds_chip(int device_id_subaddr, int device_id); |
63 | static bool lvds_identify_integratedlvds(void); | 63 | static bool lvds_identify_integratedlvds(void); |
64 | static int fp_id_to_vindex(int panel_id); | 64 | static void fp_id_to_vindex(int panel_id); |
65 | static int lvds_register_read(int index); | 65 | static int lvds_register_read(int index); |
66 | static void load_lcd_scaling(int set_hres, int set_vres, int panel_hres, | 66 | static void load_lcd_scaling(int set_hres, int set_vres, int panel_hres, |
67 | int panel_vres); | 67 | int panel_vres); |
@@ -127,33 +127,24 @@ void viafb_init_lcd_size(void) | |||
127 | break; | 127 | break; |
128 | case GET_LCD_SIZE_BY_VGA_BIOS: | 128 | case GET_LCD_SIZE_BY_VGA_BIOS: |
129 | DEBUG_MSG(KERN_INFO "Get LCD Size method by VGA BIOS !!\n"); | 129 | DEBUG_MSG(KERN_INFO "Get LCD Size method by VGA BIOS !!\n"); |
130 | viaparinfo->lvds_setting_info->lcd_panel_size = | 130 | fp_id_to_vindex(viafb_lcd_panel_id); |
131 | fp_id_to_vindex(viafb_lcd_panel_id); | ||
132 | DEBUG_MSG(KERN_INFO "LCD Panel_ID = %d\n", | 131 | DEBUG_MSG(KERN_INFO "LCD Panel_ID = %d\n", |
133 | viaparinfo->lvds_setting_info->lcd_panel_id); | 132 | viaparinfo->lvds_setting_info->lcd_panel_id); |
134 | DEBUG_MSG(KERN_INFO "LCD Panel Size = %d\n", | ||
135 | viaparinfo->lvds_setting_info->lcd_panel_size); | ||
136 | break; | 133 | break; |
137 | case GET_LCD_SIZE_BY_USER_SETTING: | 134 | case GET_LCD_SIZE_BY_USER_SETTING: |
138 | DEBUG_MSG(KERN_INFO "Get LCD Size method by user setting !!\n"); | 135 | DEBUG_MSG(KERN_INFO "Get LCD Size method by user setting !!\n"); |
139 | viaparinfo->lvds_setting_info->lcd_panel_size = | 136 | fp_id_to_vindex(viafb_lcd_panel_id); |
140 | fp_id_to_vindex(viafb_lcd_panel_id); | ||
141 | DEBUG_MSG(KERN_INFO "LCD Panel_ID = %d\n", | 137 | DEBUG_MSG(KERN_INFO "LCD Panel_ID = %d\n", |
142 | viaparinfo->lvds_setting_info->lcd_panel_id); | 138 | viaparinfo->lvds_setting_info->lcd_panel_id); |
143 | DEBUG_MSG(KERN_INFO "LCD Panel Size = %d\n", | ||
144 | viaparinfo->lvds_setting_info->lcd_panel_size); | ||
145 | break; | 139 | break; |
146 | default: | 140 | default: |
147 | DEBUG_MSG(KERN_INFO "viafb_init_lcd_size fail\n"); | 141 | DEBUG_MSG(KERN_INFO "viafb_init_lcd_size fail\n"); |
148 | viaparinfo->lvds_setting_info->lcd_panel_id = | 142 | viaparinfo->lvds_setting_info->lcd_panel_id = |
149 | LCD_PANEL_ID1_800X600; | 143 | LCD_PANEL_ID1_800X600; |
150 | viaparinfo->lvds_setting_info->lcd_panel_size = | 144 | fp_id_to_vindex(LCD_PANEL_ID1_800X600); |
151 | fp_id_to_vindex(LCD_PANEL_ID1_800X600); | ||
152 | } | 145 | } |
153 | viaparinfo->lvds_setting_info2->lcd_panel_id = | 146 | viaparinfo->lvds_setting_info2->lcd_panel_id = |
154 | viaparinfo->lvds_setting_info->lcd_panel_id; | 147 | viaparinfo->lvds_setting_info->lcd_panel_id; |
155 | viaparinfo->lvds_setting_info2->lcd_panel_size = | ||
156 | viaparinfo->lvds_setting_info->lcd_panel_size; | ||
157 | viaparinfo->lvds_setting_info2->lcd_panel_hres = | 148 | viaparinfo->lvds_setting_info2->lcd_panel_hres = |
158 | viaparinfo->lvds_setting_info->lcd_panel_hres; | 149 | viaparinfo->lvds_setting_info->lcd_panel_hres; |
159 | viaparinfo->lvds_setting_info2->lcd_panel_vres = | 150 | viaparinfo->lvds_setting_info2->lcd_panel_vres = |
@@ -250,7 +241,7 @@ int viafb_lvds_trasmitter_identify(void) | |||
250 | return FAIL; | 241 | return FAIL; |
251 | } | 242 | } |
252 | 243 | ||
253 | static int fp_id_to_vindex(int panel_id) | 244 | static void fp_id_to_vindex(int panel_id) |
254 | { | 245 | { |
255 | DEBUG_MSG(KERN_INFO "fp_get_panel_id()\n"); | 246 | DEBUG_MSG(KERN_INFO "fp_get_panel_id()\n"); |
256 | 247 | ||
@@ -266,7 +257,6 @@ static int fp_id_to_vindex(int panel_id) | |||
266 | LCD_PANEL_ID0_640X480; | 257 | LCD_PANEL_ID0_640X480; |
267 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; | 258 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; |
268 | viaparinfo->lvds_setting_info->LCDDithering = 1; | 259 | viaparinfo->lvds_setting_info->LCDDithering = 1; |
269 | return VIA_RES_640X480; | ||
270 | break; | 260 | break; |
271 | case 0x1: | 261 | case 0x1: |
272 | viaparinfo->lvds_setting_info->lcd_panel_hres = 800; | 262 | viaparinfo->lvds_setting_info->lcd_panel_hres = 800; |
@@ -275,7 +265,6 @@ static int fp_id_to_vindex(int panel_id) | |||
275 | LCD_PANEL_ID1_800X600; | 265 | LCD_PANEL_ID1_800X600; |
276 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; | 266 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; |
277 | viaparinfo->lvds_setting_info->LCDDithering = 1; | 267 | viaparinfo->lvds_setting_info->LCDDithering = 1; |
278 | return VIA_RES_800X600; | ||
279 | break; | 268 | break; |
280 | case 0x2: | 269 | case 0x2: |
281 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1024; | 270 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1024; |
@@ -284,7 +273,6 @@ static int fp_id_to_vindex(int panel_id) | |||
284 | LCD_PANEL_ID2_1024X768; | 273 | LCD_PANEL_ID2_1024X768; |
285 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; | 274 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; |
286 | viaparinfo->lvds_setting_info->LCDDithering = 1; | 275 | viaparinfo->lvds_setting_info->LCDDithering = 1; |
287 | return VIA_RES_1024X768; | ||
288 | break; | 276 | break; |
289 | case 0x3: | 277 | case 0x3: |
290 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1280; | 278 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1280; |
@@ -293,7 +281,6 @@ static int fp_id_to_vindex(int panel_id) | |||
293 | LCD_PANEL_ID3_1280X768; | 281 | LCD_PANEL_ID3_1280X768; |
294 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; | 282 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; |
295 | viaparinfo->lvds_setting_info->LCDDithering = 1; | 283 | viaparinfo->lvds_setting_info->LCDDithering = 1; |
296 | return VIA_RES_1280X768; | ||
297 | break; | 284 | break; |
298 | case 0x4: | 285 | case 0x4: |
299 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1280; | 286 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1280; |
@@ -302,7 +289,6 @@ static int fp_id_to_vindex(int panel_id) | |||
302 | LCD_PANEL_ID4_1280X1024; | 289 | LCD_PANEL_ID4_1280X1024; |
303 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 1; | 290 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 1; |
304 | viaparinfo->lvds_setting_info->LCDDithering = 1; | 291 | viaparinfo->lvds_setting_info->LCDDithering = 1; |
305 | return VIA_RES_1280X1024; | ||
306 | break; | 292 | break; |
307 | case 0x5: | 293 | case 0x5: |
308 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1400; | 294 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1400; |
@@ -311,7 +297,6 @@ static int fp_id_to_vindex(int panel_id) | |||
311 | LCD_PANEL_ID5_1400X1050; | 297 | LCD_PANEL_ID5_1400X1050; |
312 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 1; | 298 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 1; |
313 | viaparinfo->lvds_setting_info->LCDDithering = 1; | 299 | viaparinfo->lvds_setting_info->LCDDithering = 1; |
314 | return VIA_RES_1400X1050; | ||
315 | break; | 300 | break; |
316 | case 0x6: | 301 | case 0x6: |
317 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1600; | 302 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1600; |
@@ -320,7 +305,6 @@ static int fp_id_to_vindex(int panel_id) | |||
320 | LCD_PANEL_ID6_1600X1200; | 305 | LCD_PANEL_ID6_1600X1200; |
321 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 1; | 306 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 1; |
322 | viaparinfo->lvds_setting_info->LCDDithering = 1; | 307 | viaparinfo->lvds_setting_info->LCDDithering = 1; |
323 | return VIA_RES_1600X1200; | ||
324 | break; | 308 | break; |
325 | case 0x8: | 309 | case 0x8: |
326 | viaparinfo->lvds_setting_info->lcd_panel_hres = 800; | 310 | viaparinfo->lvds_setting_info->lcd_panel_hres = 800; |
@@ -329,7 +313,6 @@ static int fp_id_to_vindex(int panel_id) | |||
329 | LCD_PANEL_IDA_800X480; | 313 | LCD_PANEL_IDA_800X480; |
330 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; | 314 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; |
331 | viaparinfo->lvds_setting_info->LCDDithering = 1; | 315 | viaparinfo->lvds_setting_info->LCDDithering = 1; |
332 | return VIA_RES_800X480; | ||
333 | break; | 316 | break; |
334 | case 0x9: | 317 | case 0x9: |
335 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1024; | 318 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1024; |
@@ -338,7 +321,6 @@ static int fp_id_to_vindex(int panel_id) | |||
338 | LCD_PANEL_ID2_1024X768; | 321 | LCD_PANEL_ID2_1024X768; |
339 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 1; | 322 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 1; |
340 | viaparinfo->lvds_setting_info->LCDDithering = 1; | 323 | viaparinfo->lvds_setting_info->LCDDithering = 1; |
341 | return VIA_RES_1024X768; | ||
342 | break; | 324 | break; |
343 | case 0xA: | 325 | case 0xA: |
344 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1024; | 326 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1024; |
@@ -347,7 +329,6 @@ static int fp_id_to_vindex(int panel_id) | |||
347 | LCD_PANEL_ID2_1024X768; | 329 | LCD_PANEL_ID2_1024X768; |
348 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; | 330 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; |
349 | viaparinfo->lvds_setting_info->LCDDithering = 0; | 331 | viaparinfo->lvds_setting_info->LCDDithering = 0; |
350 | return VIA_RES_1024X768; | ||
351 | break; | 332 | break; |
352 | case 0xB: | 333 | case 0xB: |
353 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1024; | 334 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1024; |
@@ -356,7 +337,6 @@ static int fp_id_to_vindex(int panel_id) | |||
356 | LCD_PANEL_ID2_1024X768; | 337 | LCD_PANEL_ID2_1024X768; |
357 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 1; | 338 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 1; |
358 | viaparinfo->lvds_setting_info->LCDDithering = 0; | 339 | viaparinfo->lvds_setting_info->LCDDithering = 0; |
359 | return VIA_RES_1024X768; | ||
360 | break; | 340 | break; |
361 | case 0xC: | 341 | case 0xC: |
362 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1280; | 342 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1280; |
@@ -365,7 +345,6 @@ static int fp_id_to_vindex(int panel_id) | |||
365 | LCD_PANEL_ID3_1280X768; | 345 | LCD_PANEL_ID3_1280X768; |
366 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; | 346 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; |
367 | viaparinfo->lvds_setting_info->LCDDithering = 0; | 347 | viaparinfo->lvds_setting_info->LCDDithering = 0; |
368 | return VIA_RES_1280X768; | ||
369 | break; | 348 | break; |
370 | case 0xD: | 349 | case 0xD: |
371 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1280; | 350 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1280; |
@@ -374,7 +353,6 @@ static int fp_id_to_vindex(int panel_id) | |||
374 | LCD_PANEL_ID4_1280X1024; | 353 | LCD_PANEL_ID4_1280X1024; |
375 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 1; | 354 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 1; |
376 | viaparinfo->lvds_setting_info->LCDDithering = 0; | 355 | viaparinfo->lvds_setting_info->LCDDithering = 0; |
377 | return VIA_RES_1280X1024; | ||
378 | break; | 356 | break; |
379 | case 0xE: | 357 | case 0xE: |
380 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1400; | 358 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1400; |
@@ -383,7 +361,6 @@ static int fp_id_to_vindex(int panel_id) | |||
383 | LCD_PANEL_ID5_1400X1050; | 361 | LCD_PANEL_ID5_1400X1050; |
384 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 1; | 362 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 1; |
385 | viaparinfo->lvds_setting_info->LCDDithering = 0; | 363 | viaparinfo->lvds_setting_info->LCDDithering = 0; |
386 | return VIA_RES_1400X1050; | ||
387 | break; | 364 | break; |
388 | case 0xF: | 365 | case 0xF: |
389 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1600; | 366 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1600; |
@@ -392,7 +369,6 @@ static int fp_id_to_vindex(int panel_id) | |||
392 | LCD_PANEL_ID6_1600X1200; | 369 | LCD_PANEL_ID6_1600X1200; |
393 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 1; | 370 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 1; |
394 | viaparinfo->lvds_setting_info->LCDDithering = 0; | 371 | viaparinfo->lvds_setting_info->LCDDithering = 0; |
395 | return VIA_RES_1600X1200; | ||
396 | break; | 372 | break; |
397 | case 0x10: | 373 | case 0x10: |
398 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1366; | 374 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1366; |
@@ -401,7 +377,6 @@ static int fp_id_to_vindex(int panel_id) | |||
401 | LCD_PANEL_ID7_1366X768; | 377 | LCD_PANEL_ID7_1366X768; |
402 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; | 378 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; |
403 | viaparinfo->lvds_setting_info->LCDDithering = 0; | 379 | viaparinfo->lvds_setting_info->LCDDithering = 0; |
404 | return VIA_RES_1368X768; | ||
405 | break; | 380 | break; |
406 | case 0x11: | 381 | case 0x11: |
407 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1024; | 382 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1024; |
@@ -410,7 +385,6 @@ static int fp_id_to_vindex(int panel_id) | |||
410 | LCD_PANEL_ID8_1024X600; | 385 | LCD_PANEL_ID8_1024X600; |
411 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; | 386 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; |
412 | viaparinfo->lvds_setting_info->LCDDithering = 1; | 387 | viaparinfo->lvds_setting_info->LCDDithering = 1; |
413 | return VIA_RES_1024X600; | ||
414 | break; | 388 | break; |
415 | case 0x12: | 389 | case 0x12: |
416 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1280; | 390 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1280; |
@@ -419,7 +393,6 @@ static int fp_id_to_vindex(int panel_id) | |||
419 | LCD_PANEL_ID3_1280X768; | 393 | LCD_PANEL_ID3_1280X768; |
420 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 1; | 394 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 1; |
421 | viaparinfo->lvds_setting_info->LCDDithering = 1; | 395 | viaparinfo->lvds_setting_info->LCDDithering = 1; |
422 | return VIA_RES_1280X768; | ||
423 | break; | 396 | break; |
424 | case 0x13: | 397 | case 0x13: |
425 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1280; | 398 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1280; |
@@ -428,7 +401,6 @@ static int fp_id_to_vindex(int panel_id) | |||
428 | LCD_PANEL_ID9_1280X800; | 401 | LCD_PANEL_ID9_1280X800; |
429 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; | 402 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; |
430 | viaparinfo->lvds_setting_info->LCDDithering = 1; | 403 | viaparinfo->lvds_setting_info->LCDDithering = 1; |
431 | return VIA_RES_1280X800; | ||
432 | break; | 404 | break; |
433 | case 0x14: | 405 | case 0x14: |
434 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1360; | 406 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1360; |
@@ -437,7 +409,6 @@ static int fp_id_to_vindex(int panel_id) | |||
437 | LCD_PANEL_IDB_1360X768; | 409 | LCD_PANEL_IDB_1360X768; |
438 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; | 410 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; |
439 | viaparinfo->lvds_setting_info->LCDDithering = 0; | 411 | viaparinfo->lvds_setting_info->LCDDithering = 0; |
440 | return VIA_RES_1360X768; | ||
441 | break; | 412 | break; |
442 | case 0x15: | 413 | case 0x15: |
443 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1280; | 414 | viaparinfo->lvds_setting_info->lcd_panel_hres = 1280; |
@@ -446,7 +417,6 @@ static int fp_id_to_vindex(int panel_id) | |||
446 | LCD_PANEL_ID3_1280X768; | 417 | LCD_PANEL_ID3_1280X768; |
447 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 1; | 418 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 1; |
448 | viaparinfo->lvds_setting_info->LCDDithering = 0; | 419 | viaparinfo->lvds_setting_info->LCDDithering = 0; |
449 | return VIA_RES_1280X768; | ||
450 | break; | 420 | break; |
451 | case 0x16: | 421 | case 0x16: |
452 | viaparinfo->lvds_setting_info->lcd_panel_hres = 480; | 422 | viaparinfo->lvds_setting_info->lcd_panel_hres = 480; |
@@ -455,7 +425,6 @@ static int fp_id_to_vindex(int panel_id) | |||
455 | LCD_PANEL_IDC_480X640; | 425 | LCD_PANEL_IDC_480X640; |
456 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; | 426 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; |
457 | viaparinfo->lvds_setting_info->LCDDithering = 1; | 427 | viaparinfo->lvds_setting_info->LCDDithering = 1; |
458 | return VIA_RES_480X640; | ||
459 | break; | 428 | break; |
460 | default: | 429 | default: |
461 | viaparinfo->lvds_setting_info->lcd_panel_hres = 800; | 430 | viaparinfo->lvds_setting_info->lcd_panel_hres = 800; |
@@ -464,7 +433,6 @@ static int fp_id_to_vindex(int panel_id) | |||
464 | LCD_PANEL_ID1_800X600; | 433 | LCD_PANEL_ID1_800X600; |
465 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; | 434 | viaparinfo->lvds_setting_info->device_lcd_dualedge = 0; |
466 | viaparinfo->lvds_setting_info->LCDDithering = 1; | 435 | viaparinfo->lvds_setting_info->LCDDithering = 1; |
467 | return VIA_RES_800X600; | ||
468 | } | 436 | } |
469 | } | 437 | } |
470 | 438 | ||