blob: d9eb353a4bf09b6055c675064ec05695b22dcd0e [file] [log] [blame]
Dave Airlie312fec12012-02-29 13:40:04 +00001/*
2 * Copyright (c) 2005 ASPEED Technology Inc.
3 *
4 * Permission to use, copy, modify, distribute, and sell this software and its
5 * documentation for any purpose is hereby granted without fee, provided that
6 * the above copyright notice appear in all copies and that both that
7 * copyright notice and this permission notice appear in supporting
8 * documentation, and that the name of the authors not be used in
9 * advertising or publicity pertaining to distribution of the software without
10 * specific, written prior permission. The authors makes no representations
11 * about the suitability of this software for any purpose. It is provided
12 * "as is" without express or implied warranty.
13 *
14 * THE AUTHORS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16 * EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20 * PERFORMANCE OF THIS SOFTWARE.
21 */
22/* Ported from xf86-video-ast driver */
23
24#ifndef AST_TABLES_H
25#define AST_TABLES_H
26
27/* Std. Table Index Definition */
28#define TextModeIndex 0
29#define EGAModeIndex 1
30#define VGAModeIndex 2
31#define HiCModeIndex 3
32#define TrueCModeIndex 4
33
34#define Charx8Dot 0x00000001
35#define HalfDCLK 0x00000002
36#define DoubleScanMode 0x00000004
37#define LineCompareOff 0x00000008
Dave Airlie312fec12012-02-29 13:40:04 +000038#define HBorder 0x00000020
39#define VBorder 0x00000010
40#define WideScreenMode 0x00000100
Dave Airlief1f62f22014-01-17 10:56:09 +100041#define NewModeInfo 0x00000200
Y.C. Chen94d12b12014-08-28 17:11:04 +080042#define NHSync 0x00000400
43#define PHSync 0x00000800
44#define NVSync 0x00001000
45#define PVSync 0x00002000
46#define SyncPP (PVSync | PHSync)
47#define SyncPN (PVSync | NHSync)
48#define SyncNP (NVSync | PHSync)
49#define SyncNN (NVSync | NHSync)
Y.C. Chen9f93c8b2017-02-17 14:36:46 +110050#define AST2500PreCatchCRT 0x00004000
Dave Airlie312fec12012-02-29 13:40:04 +000051
52/* DCLK Index */
53#define VCLK25_175 0x00
54#define VCLK28_322 0x01
55#define VCLK31_5 0x02
56#define VCLK36 0x03
57#define VCLK40 0x04
58#define VCLK49_5 0x05
59#define VCLK50 0x06
60#define VCLK56_25 0x07
61#define VCLK65 0x08
62#define VCLK75 0x09
63#define VCLK78_75 0x0A
64#define VCLK94_5 0x0B
65#define VCLK108 0x0C
66#define VCLK135 0x0D
67#define VCLK157_5 0x0E
68#define VCLK162 0x0F
69/* #define VCLK193_25 0x10 */
70#define VCLK154 0x10
71#define VCLK83_5 0x11
72#define VCLK106_5 0x12
73#define VCLK146_25 0x13
74#define VCLK148_5 0x14
Dave Airlief1f62f22014-01-17 10:56:09 +100075#define VCLK71 0x15
76#define VCLK88_75 0x16
77#define VCLK119 0x17
78#define VCLK85_5 0x18
79#define VCLK97_75 0x19
Y.C. Chen94d12b12014-08-28 17:11:04 +080080#define VCLK118_25 0x1A
Dave Airlie312fec12012-02-29 13:40:04 +000081
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +110082static const struct ast_vbios_dclk_info dclk_table[] = {
83 {0x2C, 0xE7, 0x03}, /* 00: VCLK25_175 */
84 {0x95, 0x62, 0x03}, /* 01: VCLK28_322 */
85 {0x67, 0x63, 0x01}, /* 02: VCLK31_5 */
86 {0x76, 0x63, 0x01}, /* 03: VCLK36 */
87 {0xEE, 0x67, 0x01}, /* 04: VCLK40 */
88 {0x82, 0x62, 0x01}, /* 05: VCLK49_5 */
89 {0xC6, 0x64, 0x01}, /* 06: VCLK50 */
90 {0x94, 0x62, 0x01}, /* 07: VCLK56_25 */
91 {0x80, 0x64, 0x00}, /* 08: VCLK65 */
92 {0x7B, 0x63, 0x00}, /* 09: VCLK75 */
93 {0x67, 0x62, 0x00}, /* 0A: VCLK78_75 */
94 {0x7C, 0x62, 0x00}, /* 0B: VCLK94_5 */
95 {0x8E, 0x62, 0x00}, /* 0C: VCLK108 */
96 {0x85, 0x24, 0x00}, /* 0D: VCLK135 */
97 {0x67, 0x22, 0x00}, /* 0E: VCLK157_5 */
98 {0x6A, 0x22, 0x00}, /* 0F: VCLK162 */
99 {0x4d, 0x4c, 0x80}, /* 10: VCLK154 */
Y.C. Chen5a9f6982018-03-12 11:40:23 +0800100 {0x68, 0x6f, 0x80}, /* 11: VCLK83.5 */
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +1100101 {0x28, 0x49, 0x80}, /* 12: VCLK106.5 */
102 {0x37, 0x49, 0x80}, /* 13: VCLK146.25 */
103 {0x1f, 0x45, 0x80}, /* 14: VCLK148.5 */
104 {0x47, 0x6c, 0x80}, /* 15: VCLK71 */
105 {0x25, 0x65, 0x80}, /* 16: VCLK88.75 */
106 {0x77, 0x58, 0x80}, /* 17: VCLK119 */
107 {0x32, 0x67, 0x80}, /* 18: VCLK85_5 */
108 {0x6a, 0x6d, 0x80}, /* 19: VCLK97_75 */
109 {0x3b, 0x2c, 0x81}, /* 1A: VCLK118_25 */
Dave Airlie312fec12012-02-29 13:40:04 +0000110};
111
Y.C. Chen9f93c8b2017-02-17 14:36:46 +1100112static const struct ast_vbios_dclk_info dclk_table_ast2500[] = {
113 {0x2C, 0xE7, 0x03}, /* 00: VCLK25_175 */
114 {0x95, 0x62, 0x03}, /* 01: VCLK28_322 */
115 {0x67, 0x63, 0x01}, /* 02: VCLK31_5 */
116 {0x76, 0x63, 0x01}, /* 03: VCLK36 */
117 {0xEE, 0x67, 0x01}, /* 04: VCLK40 */
118 {0x82, 0x62, 0x01}, /* 05: VCLK49_5 */
119 {0xC6, 0x64, 0x01}, /* 06: VCLK50 */
120 {0x94, 0x62, 0x01}, /* 07: VCLK56_25 */
121 {0x80, 0x64, 0x00}, /* 08: VCLK65 */
122 {0x7B, 0x63, 0x00}, /* 09: VCLK75 */
123 {0x67, 0x62, 0x00}, /* 0A: VCLK78_75 */
124 {0x7C, 0x62, 0x00}, /* 0B: VCLK94_5 */
125 {0x8E, 0x62, 0x00}, /* 0C: VCLK108 */
126 {0x85, 0x24, 0x00}, /* 0D: VCLK135 */
127 {0x67, 0x22, 0x00}, /* 0E: VCLK157_5 */
128 {0x6A, 0x22, 0x00}, /* 0F: VCLK162 */
129 {0x4d, 0x4c, 0x80}, /* 10: VCLK154 */
Y.C. Chen5a9f6982018-03-12 11:40:23 +0800130 {0x68, 0x6f, 0x80}, /* 11: VCLK83.5 */
Y.C. Chen9f93c8b2017-02-17 14:36:46 +1100131 {0x28, 0x49, 0x80}, /* 12: VCLK106.5 */
132 {0x37, 0x49, 0x80}, /* 13: VCLK146.25 */
133 {0x1f, 0x45, 0x80}, /* 14: VCLK148.5 */
134 {0x47, 0x6c, 0x80}, /* 15: VCLK71 */
135 {0x25, 0x65, 0x80}, /* 16: VCLK88.75 */
136 {0x58, 0x01, 0x42}, /* 17: VCLK119 */
137 {0x32, 0x67, 0x80}, /* 18: VCLK85_5 */
138 {0x6a, 0x6d, 0x80}, /* 19: VCLK97_75 */
139 {0x44, 0x20, 0x43}, /* 1A: VCLK118_25 */
140};
141
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +1100142static const struct ast_vbios_stdtable vbios_stdtable[] = {
Dave Airlie312fec12012-02-29 13:40:04 +0000143 /* MD_2_3_400 */
144 {
145 0x67,
146 {0x00,0x03,0x00,0x02},
147 {0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f,
148 0x00,0x4f,0x0d,0x0e,0x00,0x00,0x00,0x00,
149 0x9c,0x8e,0x8f,0x28,0x1f,0x96,0xb9,0xa3,
150 0xff},
151 {0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07,
152 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,
153 0x0c,0x00,0x0f,0x08},
154 {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00,
155 0xff}
156 },
157 /* Mode12/ExtEGATable */
158 {
159 0xe3,
160 {0x01,0x0f,0x00,0x06},
161 {0x5f,0x4f,0x50,0x82,0x55,0x81,0x0b,0x3e,
162 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,
163 0xe9,0x8b,0xdf,0x28,0x00,0xe7,0x04,0xe3,
164 0xff},
165 {0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07,
166 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,
167 0x01,0x00,0x0f,0x00},
168 {0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x0f,
169 0xff}
170 },
171 /* ExtVGATable */
172 {
173 0x2f,
174 {0x01,0x0f,0x00,0x0e},
175 {0x5f,0x4f,0x50,0x82,0x54,0x80,0x0b,0x3e,
176 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,
177 0xea,0x8c,0xdf,0x28,0x40,0xe7,0x04,0xa3,
178 0xff},
179 {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
180 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,
181 0x01,0x00,0x00,0x00},
182 {0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0f,
183 0xff}
184 },
185 /* ExtHiCTable */
186 {
187 0x2f,
188 {0x01,0x0f,0x00,0x0e},
189 {0x5f,0x4f,0x50,0x82,0x54,0x80,0x0b,0x3e,
190 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,
191 0xea,0x8c,0xdf,0x28,0x40,0xe7,0x04,0xa3,
192 0xff},
193 {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
194 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,
195 0x01,0x00,0x00,0x00},
196 {0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x0f,
197 0xff}
198 },
199 /* ExtTrueCTable */
200 {
201 0x2f,
202 {0x01,0x0f,0x00,0x0e},
203 {0x5f,0x4f,0x50,0x82,0x54,0x80,0x0b,0x3e,
204 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,
205 0xea,0x8c,0xdf,0x28,0x40,0xe7,0x04,0xa3,
206 0xff},
207 {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
208 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,
209 0x01,0x00,0x00,0x00},
210 {0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x0f,
211 0xff}
212 },
213};
214
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +1100215static const struct ast_vbios_enhtable res_640x480[] = {
Dave Airlie312fec12012-02-29 13:40:04 +0000216 { 800, 640, 8, 96, 525, 480, 2, 2, VCLK25_175, /* 60Hz */
217 (SyncNN | HBorder | VBorder | Charx8Dot), 60, 1, 0x2E },
218 { 832, 640, 16, 40, 520, 480, 1, 3, VCLK31_5, /* 72Hz */
219 (SyncNN | HBorder | VBorder | Charx8Dot), 72, 2, 0x2E },
220 { 840, 640, 16, 64, 500, 480, 1, 3, VCLK31_5, /* 75Hz */
221 (SyncNN | Charx8Dot) , 75, 3, 0x2E },
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +1100222 { 832, 640, 56, 56, 509, 480, 1, 3, VCLK36, /* 85Hz */
Dave Airlie312fec12012-02-29 13:40:04 +0000223 (SyncNN | Charx8Dot) , 85, 4, 0x2E },
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +1100224 { 832, 640, 56, 56, 509, 480, 1, 3, VCLK36, /* end */
Dave Airlie312fec12012-02-29 13:40:04 +0000225 (SyncNN | Charx8Dot) , 0xFF, 4, 0x2E },
226};
227
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +1100228static const struct ast_vbios_enhtable res_800x600[] = {
229 {1024, 800, 24, 72, 625, 600, 1, 2, VCLK36, /* 56Hz */
Dave Airlie312fec12012-02-29 13:40:04 +0000230 (SyncPP | Charx8Dot), 56, 1, 0x30 },
231 {1056, 800, 40, 128, 628, 600, 1, 4, VCLK40, /* 60Hz */
232 (SyncPP | Charx8Dot), 60, 2, 0x30 },
233 {1040, 800, 56, 120, 666, 600, 37, 6, VCLK50, /* 72Hz */
234 (SyncPP | Charx8Dot), 72, 3, 0x30 },
235 {1056, 800, 16, 80, 625, 600, 1, 3, VCLK49_5, /* 75Hz */
236 (SyncPP | Charx8Dot), 75, 4, 0x30 },
237 {1048, 800, 32, 64, 631, 600, 1, 3, VCLK56_25, /* 85Hz */
238 (SyncPP | Charx8Dot), 84, 5, 0x30 },
239 {1048, 800, 32, 64, 631, 600, 1, 3, VCLK56_25, /* end */
240 (SyncPP | Charx8Dot), 0xFF, 5, 0x30 },
241};
242
243
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +1100244static const struct ast_vbios_enhtable res_1024x768[] = {
Dave Airlie312fec12012-02-29 13:40:04 +0000245 {1344, 1024, 24, 136, 806, 768, 3, 6, VCLK65, /* 60Hz */
246 (SyncNN | Charx8Dot), 60, 1, 0x31 },
247 {1328, 1024, 24, 136, 806, 768, 3, 6, VCLK75, /* 70Hz */
248 (SyncNN | Charx8Dot), 70, 2, 0x31 },
249 {1312, 1024, 16, 96, 800, 768, 1, 3, VCLK78_75, /* 75Hz */
250 (SyncPP | Charx8Dot), 75, 3, 0x31 },
251 {1376, 1024, 48, 96, 808, 768, 1, 3, VCLK94_5, /* 85Hz */
252 (SyncPP | Charx8Dot), 84, 4, 0x31 },
253 {1376, 1024, 48, 96, 808, 768, 1, 3, VCLK94_5, /* end */
254 (SyncPP | Charx8Dot), 0xFF, 4, 0x31 },
255};
256
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +1100257static const struct ast_vbios_enhtable res_1280x1024[] = {
Dave Airlie312fec12012-02-29 13:40:04 +0000258 {1688, 1280, 48, 112, 1066, 1024, 1, 3, VCLK108, /* 60Hz */
259 (SyncPP | Charx8Dot), 60, 1, 0x32 },
260 {1688, 1280, 16, 144, 1066, 1024, 1, 3, VCLK135, /* 75Hz */
261 (SyncPP | Charx8Dot), 75, 2, 0x32 },
262 {1728, 1280, 64, 160, 1072, 1024, 1, 3, VCLK157_5, /* 85Hz */
263 (SyncPP | Charx8Dot), 85, 3, 0x32 },
264 {1728, 1280, 64, 160, 1072, 1024, 1, 3, VCLK157_5, /* end */
265 (SyncPP | Charx8Dot), 0xFF, 3, 0x32 },
266};
267
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +1100268static const struct ast_vbios_enhtable res_1600x1200[] = {
Dave Airlie312fec12012-02-29 13:40:04 +0000269 {2160, 1600, 64, 192, 1250, 1200, 1, 3, VCLK162, /* 60Hz */
270 (SyncPP | Charx8Dot), 60, 1, 0x33 },
271 {2160, 1600, 64, 192, 1250, 1200, 1, 3, VCLK162, /* end */
272 (SyncPP | Charx8Dot), 0xFF, 1, 0x33 },
273};
274
Dave Airlief1f62f22014-01-17 10:56:09 +1000275/* 16:9 */
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +1100276static const struct ast_vbios_enhtable res_1360x768[] = {
277 {1792, 1360, 64, 112, 795, 768, 3, 6, VCLK85_5, /* 60Hz */
Dave Airlief1f62f22014-01-17 10:56:09 +1000278 (SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x39 },
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +1100279 {1792, 1360, 64, 112, 795, 768, 3, 6, VCLK85_5, /* end */
Y.C. Chen9f93c8b2017-02-17 14:36:46 +1100280 (SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo |
281 AST2500PreCatchCRT), 0xFF, 1, 0x39 },
Dave Airlie312fec12012-02-29 13:40:04 +0000282};
283
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +1100284static const struct ast_vbios_enhtable res_1600x900[] = {
KuoHsiang Chou9bb7b682020-10-30 15:42:12 +0800285 {1800, 1600, 24, 80, 1000, 900, 1, 3, VCLK108, /* 60Hz */
286 (SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 3, 0x3A },
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +1100287 {1760, 1600, 48, 32, 926, 900, 3, 5, VCLK97_75, /* 60Hz CVT RB */
Y.C. Chen9f93c8b2017-02-17 14:36:46 +1100288 (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo |
289 AST2500PreCatchCRT), 60, 1, 0x3A },
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +1100290 {2112, 1600, 88, 168, 934, 900, 3, 5, VCLK118_25, /* 60Hz CVT */
Y.C. Chen94d12b12014-08-28 17:11:04 +0800291 (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x3A },
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +1100292 {2112, 1600, 88, 168, 934, 900, 3, 5, VCLK118_25, /* 60Hz CVT */
Y.C. Chen94d12b12014-08-28 17:11:04 +0800293 (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 0x3A },
Dave Airlief1f62f22014-01-17 10:56:09 +1000294};
295
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +1100296static const struct ast_vbios_enhtable res_1920x1080[] = {
Dave Airlief1f62f22014-01-17 10:56:09 +1000297 {2200, 1920, 88, 44, 1125, 1080, 4, 5, VCLK148_5, /* 60Hz */
KuoHsiang Chou2d261232020-11-05 17:47:29 +0800298 (SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo |
Y.C. Chen9f93c8b2017-02-17 14:36:46 +1100299 AST2500PreCatchCRT), 60, 1, 0x38 },
Dave Airlief1f62f22014-01-17 10:56:09 +1000300 {2200, 1920, 88, 44, 1125, 1080, 4, 5, VCLK148_5, /* 60Hz */
KuoHsiang Chou2d261232020-11-05 17:47:29 +0800301 (SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo |
Y.C. Chen9f93c8b2017-02-17 14:36:46 +1100302 AST2500PreCatchCRT), 0xFF, 1, 0x38 },
Dave Airlief1f62f22014-01-17 10:56:09 +1000303};
304
305
Dave Airlie312fec12012-02-29 13:40:04 +0000306/* 16:10 */
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +1100307static const struct ast_vbios_enhtable res_1280x800[] = {
308 {1440, 1280, 48, 32, 823, 800, 3, 6, VCLK71, /* 60Hz RB */
Y.C. Chen9f93c8b2017-02-17 14:36:46 +1100309 (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo |
310 AST2500PreCatchCRT), 60, 1, 0x35 },
Dave Airlie312fec12012-02-29 13:40:04 +0000311 {1680, 1280, 72,128, 831, 800, 3, 6, VCLK83_5, /* 60Hz */
Y.C. Chen94d12b12014-08-28 17:11:04 +0800312 (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x35 },
Dave Airlie312fec12012-02-29 13:40:04 +0000313 {1680, 1280, 72,128, 831, 800, 3, 6, VCLK83_5, /* 60Hz */
Y.C. Chen94d12b12014-08-28 17:11:04 +0800314 (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 0x35 },
Dave Airlie312fec12012-02-29 13:40:04 +0000315
316};
317
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +1100318static const struct ast_vbios_enhtable res_1440x900[] = {
Dave Airlief1f62f22014-01-17 10:56:09 +1000319 {1600, 1440, 48, 32, 926, 900, 3, 6, VCLK88_75, /* 60Hz RB */
Y.C. Chen9f93c8b2017-02-17 14:36:46 +1100320 (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo |
321 AST2500PreCatchCRT), 60, 1, 0x36 },
Dave Airlie312fec12012-02-29 13:40:04 +0000322 {1904, 1440, 80,152, 934, 900, 3, 6, VCLK106_5, /* 60Hz */
Y.C. Chen94d12b12014-08-28 17:11:04 +0800323 (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x36 },
Dave Airlie312fec12012-02-29 13:40:04 +0000324 {1904, 1440, 80,152, 934, 900, 3, 6, VCLK106_5, /* 60Hz */
Y.C. Chen94d12b12014-08-28 17:11:04 +0800325 (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 0x36 },
Dave Airlie312fec12012-02-29 13:40:04 +0000326};
327
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +1100328static const struct ast_vbios_enhtable res_1680x1050[] = {
329 {1840, 1680, 48, 32, 1080, 1050, 3, 6, VCLK119, /* 60Hz RB */
Y.C. Chen9f93c8b2017-02-17 14:36:46 +1100330 (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo |
331 AST2500PreCatchCRT), 60, 1, 0x37 },
Dave Airlie312fec12012-02-29 13:40:04 +0000332 {2240, 1680,104,176, 1089, 1050, 3, 6, VCLK146_25, /* 60Hz */
Y.C. Chen94d12b12014-08-28 17:11:04 +0800333 (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x37 },
Dave Airlie312fec12012-02-29 13:40:04 +0000334 {2240, 1680,104,176, 1089, 1050, 3, 6, VCLK146_25, /* 60Hz */
Y.C. Chen94d12b12014-08-28 17:11:04 +0800335 (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 0x37 },
Dave Airlie312fec12012-02-29 13:40:04 +0000336};
337
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +1100338static const struct ast_vbios_enhtable res_1920x1200[] = {
339 {2080, 1920, 48, 32, 1235, 1200, 3, 6, VCLK154, /* 60Hz RB*/
Y.C. Chen9f93c8b2017-02-17 14:36:46 +1100340 (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo |
341 AST2500PreCatchCRT), 60, 1, 0x34 },
Benjamin Herrenschmidt22acdbb2017-02-17 13:45:24 +1100342 {2080, 1920, 48, 32, 1235, 1200, 3, 6, VCLK154, /* 60Hz RB */
Y.C. Chen9f93c8b2017-02-17 14:36:46 +1100343 (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo |
344 AST2500PreCatchCRT), 0xFF, 1, 0x34 },
Dave Airlie312fec12012-02-29 13:40:04 +0000345};
Dave Airlief1f62f22014-01-17 10:56:09 +1000346
Dave Airlie312fec12012-02-29 13:40:04 +0000347#endif