diff options
author | Chris Ball <cjb@laptop.org> | 2009-06-07 13:59:51 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2010-04-20 16:23:20 -0400 |
commit | c205d932530719d2a6ddb9152650e5bbe80c9400 (patch) | |
tree | 0946b0b5ed99c0e3c7ddea3850cc02fe85452417 /drivers/video/via/viamode.c | |
parent | 1317824376482781200980c6f026ef576d7ed1dd (diff) |
viafb: Add 1200x900 DCON/LCD panel modes for OLPC XO-1.5
[jc: extensive merge conflict fixes]
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: ScottFang@viatech.com.cn
Cc: JosephChan@via.com.tw
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/video/via/viamode.c')
-rw-r--r-- | drivers/video/via/viamode.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/video/via/viamode.c b/drivers/video/via/viamode.c index af50e244016c..6f3bcda8cb47 100644 --- a/drivers/video/via/viamode.c +++ b/drivers/video/via/viamode.c | |||
@@ -66,6 +66,7 @@ struct res_map_refresh res_map_refresh_tbl[] = { | |||
66 | {1088, 612, RES_1088X612_60HZ_PIXCLOCK, 60}, | 66 | {1088, 612, RES_1088X612_60HZ_PIXCLOCK, 60}, |
67 | {1152, 720, RES_1152X720_60HZ_PIXCLOCK, 60}, | 67 | {1152, 720, RES_1152X720_60HZ_PIXCLOCK, 60}, |
68 | {1200, 720, RES_1200X720_60HZ_PIXCLOCK, 60}, | 68 | {1200, 720, RES_1200X720_60HZ_PIXCLOCK, 60}, |
69 | {1200, 900, RES_1200X900_60HZ_PIXCLOCK, 60}, | ||
69 | {1280, 600, RES_1280X600_60HZ_PIXCLOCK, 60}, | 70 | {1280, 600, RES_1280X600_60HZ_PIXCLOCK, 60}, |
70 | {1280, 720, RES_1280X720_50HZ_PIXCLOCK, 50}, | 71 | {1280, 720, RES_1280X720_50HZ_PIXCLOCK, 50}, |
71 | {1280, 768, RES_1280X768_50HZ_PIXCLOCK, 50}, | 72 | {1280, 768, RES_1280X768_50HZ_PIXCLOCK, 50}, |
@@ -759,6 +760,16 @@ struct crt_mode_table CRTM1200x720[] = { | |||
759 | {1568, 1200, 1200, 368, 1256, 128, 746, 720, 720, 26, 721, 3} } | 760 | {1568, 1200, 1200, 368, 1256, 128, 746, 720, 720, 26, 721, 3} } |
760 | }; | 761 | }; |
761 | 762 | ||
763 | /* 1200x900 (DCON) */ | ||
764 | struct crt_mode_table DCON1200x900[] = { | ||
765 | /* r_rate, vclk, hsp, vsp */ | ||
766 | {REFRESH_60, CLK_57_275M, M1200X900_R60_HSP, M1200X900_R60_VSP, | ||
767 | /* The correct htotal is 1240, but this doesn't raster on VX855. */ | ||
768 | /* Via suggested changing to a multiple of 16, hence 1264. */ | ||
769 | /* HT, HA, HBS, HBE, HSS, HSE, VT, VA, VBS, VBE, VSS, VSE */ | ||
770 | {1264, 1200, 1200, 64, 1211, 32, 912, 900, 900, 12, 901, 10} } | ||
771 | }; | ||
772 | |||
762 | /* 1280x600 (GTF) */ | 773 | /* 1280x600 (GTF) */ |
763 | struct crt_mode_table CRTM1280x600[] = { | 774 | struct crt_mode_table CRTM1280x600[] = { |
764 | /* r_rate, vclk, hsp, vsp */ | 775 | /* r_rate, vclk, hsp, vsp */ |
@@ -937,6 +948,9 @@ struct VideoModeTable viafb_modes[] = { | |||
937 | /* Display : 1200x720 (GTF) */ | 948 | /* Display : 1200x720 (GTF) */ |
938 | {CRTM1200x720, ARRAY_SIZE(CRTM1200x720)}, | 949 | {CRTM1200x720, ARRAY_SIZE(CRTM1200x720)}, |
939 | 950 | ||
951 | /* Display : 1200x900 (DCON) */ | ||
952 | {DCON1200x900, ARRAY_SIZE(DCON1200x900)}, | ||
953 | |||
940 | /* Display : 1280x600 (GTF) */ | 954 | /* Display : 1280x600 (GTF) */ |
941 | {CRTM1280x600, ARRAY_SIZE(CRTM1280x600)}, | 955 | {CRTM1280x600, ARRAY_SIZE(CRTM1280x600)}, |
942 | 956 | ||