diff options
Diffstat (limited to 'drivers/video/via/viamode.c')
-rw-r--r-- | drivers/video/via/viamode.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/video/via/viamode.c b/drivers/video/via/viamode.c index af50e244016c..2dbad3c0f679 100644 --- a/drivers/video/via/viamode.c +++ b/drivers/video/via/viamode.c | |||
@@ -19,6 +19,7 @@ | |||
19 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 19 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <linux/via-core.h> | ||
22 | #include "global.h" | 23 | #include "global.h" |
23 | struct res_map_refresh res_map_refresh_tbl[] = { | 24 | struct res_map_refresh res_map_refresh_tbl[] = { |
24 | /*hres, vres, vclock, vmode_refresh*/ | 25 | /*hres, vres, vclock, vmode_refresh*/ |
@@ -66,6 +67,7 @@ struct res_map_refresh res_map_refresh_tbl[] = { | |||
66 | {1088, 612, RES_1088X612_60HZ_PIXCLOCK, 60}, | 67 | {1088, 612, RES_1088X612_60HZ_PIXCLOCK, 60}, |
67 | {1152, 720, RES_1152X720_60HZ_PIXCLOCK, 60}, | 68 | {1152, 720, RES_1152X720_60HZ_PIXCLOCK, 60}, |
68 | {1200, 720, RES_1200X720_60HZ_PIXCLOCK, 60}, | 69 | {1200, 720, RES_1200X720_60HZ_PIXCLOCK, 60}, |
70 | {1200, 900, RES_1200X900_60HZ_PIXCLOCK, 60}, | ||
69 | {1280, 600, RES_1280X600_60HZ_PIXCLOCK, 60}, | 71 | {1280, 600, RES_1280X600_60HZ_PIXCLOCK, 60}, |
70 | {1280, 720, RES_1280X720_50HZ_PIXCLOCK, 50}, | 72 | {1280, 720, RES_1280X720_50HZ_PIXCLOCK, 50}, |
71 | {1280, 768, RES_1280X768_50HZ_PIXCLOCK, 50}, | 73 | {1280, 768, RES_1280X768_50HZ_PIXCLOCK, 50}, |
@@ -759,6 +761,16 @@ struct crt_mode_table CRTM1200x720[] = { | |||
759 | {1568, 1200, 1200, 368, 1256, 128, 746, 720, 720, 26, 721, 3} } | 761 | {1568, 1200, 1200, 368, 1256, 128, 746, 720, 720, 26, 721, 3} } |
760 | }; | 762 | }; |
761 | 763 | ||
764 | /* 1200x900 (DCON) */ | ||
765 | struct crt_mode_table DCON1200x900[] = { | ||
766 | /* r_rate, vclk, hsp, vsp */ | ||
767 | {REFRESH_60, CLK_57_275M, M1200X900_R60_HSP, M1200X900_R60_VSP, | ||
768 | /* The correct htotal is 1240, but this doesn't raster on VX855. */ | ||
769 | /* Via suggested changing to a multiple of 16, hence 1264. */ | ||
770 | /* HT, HA, HBS, HBE, HSS, HSE, VT, VA, VBS, VBE, VSS, VSE */ | ||
771 | {1264, 1200, 1200, 64, 1211, 32, 912, 900, 900, 12, 901, 10} } | ||
772 | }; | ||
773 | |||
762 | /* 1280x600 (GTF) */ | 774 | /* 1280x600 (GTF) */ |
763 | struct crt_mode_table CRTM1280x600[] = { | 775 | struct crt_mode_table CRTM1280x600[] = { |
764 | /* r_rate, vclk, hsp, vsp */ | 776 | /* r_rate, vclk, hsp, vsp */ |
@@ -937,6 +949,9 @@ struct VideoModeTable viafb_modes[] = { | |||
937 | /* Display : 1200x720 (GTF) */ | 949 | /* Display : 1200x720 (GTF) */ |
938 | {CRTM1200x720, ARRAY_SIZE(CRTM1200x720)}, | 950 | {CRTM1200x720, ARRAY_SIZE(CRTM1200x720)}, |
939 | 951 | ||
952 | /* Display : 1200x900 (DCON) */ | ||
953 | {DCON1200x900, ARRAY_SIZE(DCON1200x900)}, | ||
954 | |||
940 | /* Display : 1280x600 (GTF) */ | 955 | /* Display : 1280x600 (GTF) */ |
941 | {CRTM1280x600, ARRAY_SIZE(CRTM1280x600)}, | 956 | {CRTM1280x600, ARRAY_SIZE(CRTM1280x600)}, |
942 | 957 | ||