xref: /openbmc/linux/drivers/gpu/drm/ast/ast_tables.h (revision 22acdbb1bdbd56cc9939e18516dfcf214a9d835b)
1312fec14SDave Airlie /*
2312fec14SDave Airlie  * Copyright (c) 2005 ASPEED Technology Inc.
3312fec14SDave Airlie  *
4312fec14SDave Airlie  * Permission to use, copy, modify, distribute, and sell this software and its
5312fec14SDave Airlie  * documentation for any purpose is hereby granted without fee, provided that
6312fec14SDave Airlie  * the above copyright notice appear in all copies and that both that
7312fec14SDave Airlie  * copyright notice and this permission notice appear in supporting
8312fec14SDave Airlie  * documentation, and that the name of the authors not be used in
9312fec14SDave Airlie  * advertising or publicity pertaining to distribution of the software without
10312fec14SDave Airlie  * specific, written prior permission.  The authors makes no representations
11312fec14SDave Airlie  * about the suitability of this software for any purpose.  It is provided
12312fec14SDave Airlie  * "as is" without express or implied warranty.
13312fec14SDave Airlie  *
14312fec14SDave Airlie  * THE AUTHORS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15312fec14SDave Airlie  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16312fec14SDave Airlie  * EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17312fec14SDave Airlie  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18312fec14SDave Airlie  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19312fec14SDave Airlie  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20312fec14SDave Airlie  * PERFORMANCE OF THIS SOFTWARE.
21312fec14SDave Airlie  */
22312fec14SDave Airlie /* Ported from xf86-video-ast driver */
23312fec14SDave Airlie 
24312fec14SDave Airlie #ifndef AST_TABLES_H
25312fec14SDave Airlie #define AST_TABLES_H
26312fec14SDave Airlie 
27312fec14SDave Airlie /* Std. Table Index Definition */
28312fec14SDave Airlie #define TextModeIndex		0
29312fec14SDave Airlie #define EGAModeIndex		1
30312fec14SDave Airlie #define VGAModeIndex		2
31312fec14SDave Airlie #define HiCModeIndex		3
32312fec14SDave Airlie #define TrueCModeIndex		4
33312fec14SDave Airlie 
34312fec14SDave Airlie #define Charx8Dot               0x00000001
35312fec14SDave Airlie #define HalfDCLK                0x00000002
36312fec14SDave Airlie #define DoubleScanMode          0x00000004
37312fec14SDave Airlie #define LineCompareOff          0x00000008
38312fec14SDave Airlie #define HBorder                 0x00000020
39312fec14SDave Airlie #define VBorder                 0x00000010
40312fec14SDave Airlie #define WideScreenMode		0x00000100
41f1f62f2cSDave Airlie #define NewModeInfo		0x00000200
4294d12b13SY.C. Chen #define NHSync			0x00000400
4394d12b13SY.C. Chen #define PHSync			0x00000800
4494d12b13SY.C. Chen #define NVSync			0x00001000
4594d12b13SY.C. Chen #define PVSync			0x00002000
4694d12b13SY.C. Chen #define SyncPP			(PVSync | PHSync)
4794d12b13SY.C. Chen #define SyncPN			(PVSync | NHSync)
4894d12b13SY.C. Chen #define SyncNP			(NVSync | PHSync)
4994d12b13SY.C. Chen #define SyncNN			(NVSync | NHSync)
50312fec14SDave Airlie 
51312fec14SDave Airlie /* DCLK Index */
52312fec14SDave Airlie #define VCLK25_175     		0x00
53312fec14SDave Airlie #define VCLK28_322     		0x01
54312fec14SDave Airlie #define VCLK31_5       		0x02
55312fec14SDave Airlie #define VCLK36         		0x03
56312fec14SDave Airlie #define VCLK40         		0x04
57312fec14SDave Airlie #define VCLK49_5       		0x05
58312fec14SDave Airlie #define VCLK50         		0x06
59312fec14SDave Airlie #define VCLK56_25      		0x07
60312fec14SDave Airlie #define VCLK65		 	0x08
61312fec14SDave Airlie #define VCLK75	        	0x09
62312fec14SDave Airlie #define VCLK78_75      		0x0A
63312fec14SDave Airlie #define VCLK94_5       		0x0B
64312fec14SDave Airlie #define VCLK108        		0x0C
65312fec14SDave Airlie #define VCLK135        		0x0D
66312fec14SDave Airlie #define VCLK157_5      		0x0E
67312fec14SDave Airlie #define VCLK162        		0x0F
68312fec14SDave Airlie /* #define VCLK193_25     		0x10 */
69312fec14SDave Airlie #define VCLK154     		0x10
70312fec14SDave Airlie #define VCLK83_5    		0x11
71312fec14SDave Airlie #define VCLK106_5   		0x12
72312fec14SDave Airlie #define VCLK146_25  		0x13
73312fec14SDave Airlie #define VCLK148_5   		0x14
74f1f62f2cSDave Airlie #define VCLK71      		0x15
75f1f62f2cSDave Airlie #define VCLK88_75   		0x16
76f1f62f2cSDave Airlie #define VCLK119     		0x17
77f1f62f2cSDave Airlie #define VCLK85_5     		0x18
78f1f62f2cSDave Airlie #define VCLK97_75     		0x19
7994d12b13SY.C. Chen #define VCLK118_25			0x1A
80312fec14SDave Airlie 
81*22acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_dclk_info dclk_table[] = {
82312fec14SDave Airlie 	{0x2C, 0xE7, 0x03},			/* 00: VCLK25_175	*/
83312fec14SDave Airlie 	{0x95, 0x62, 0x03},			/* 01: VCLK28_322	*/
84312fec14SDave Airlie 	{0x67, 0x63, 0x01},			/* 02: VCLK31_5		*/
85312fec14SDave Airlie 	{0x76, 0x63, 0x01},			/* 03: VCLK36		*/
86312fec14SDave Airlie 	{0xEE, 0x67, 0x01},			/* 04: VCLK40		*/
87312fec14SDave Airlie 	{0x82, 0x62, 0x01},			/* 05: VCLK49_5		*/
88312fec14SDave Airlie 	{0xC6, 0x64, 0x01},			/* 06: VCLK50		*/
89312fec14SDave Airlie 	{0x94, 0x62, 0x01},			/* 07: VCLK56_25	*/
90312fec14SDave Airlie 	{0x80, 0x64, 0x00},			/* 08: VCLK65		*/
91312fec14SDave Airlie 	{0x7B, 0x63, 0x00},			/* 09: VCLK75		*/
92312fec14SDave Airlie 	{0x67, 0x62, 0x00},			/* 0A: VCLK78_75	*/
93312fec14SDave Airlie 	{0x7C, 0x62, 0x00},			/* 0B: VCLK94_5		*/
94312fec14SDave Airlie 	{0x8E, 0x62, 0x00},			/* 0C: VCLK108		*/
95312fec14SDave Airlie 	{0x85, 0x24, 0x00},			/* 0D: VCLK135		*/
96312fec14SDave Airlie 	{0x67, 0x22, 0x00},			/* 0E: VCLK157_5	*/
97312fec14SDave Airlie 	{0x6A, 0x22, 0x00},			/* 0F: VCLK162		*/
98312fec14SDave Airlie 	{0x4d, 0x4c, 0x80},			/* 10: VCLK154		*/
99312fec14SDave Airlie 	{0xa7, 0x78, 0x80},			/* 11: VCLK83.5		*/
100312fec14SDave Airlie 	{0x28, 0x49, 0x80},			/* 12: VCLK106.5	*/
101312fec14SDave Airlie 	{0x37, 0x49, 0x80},			/* 13: VCLK146.25	*/
102312fec14SDave Airlie 	{0x1f, 0x45, 0x80},			/* 14: VCLK148.5	*/
103f1f62f2cSDave Airlie 	{0x47, 0x6c, 0x80},			/* 15: VCLK71		*/
104f1f62f2cSDave Airlie 	{0x25, 0x65, 0x80},			/* 16: VCLK88.75	*/
105f1f62f2cSDave Airlie 	{0x77, 0x58, 0x80},			/* 17: VCLK119		*/
106f1f62f2cSDave Airlie 	{0x32, 0x67, 0x80},			/* 18: VCLK85_5		*/
107b8d758d2SY.C. Chen 	{0x6a, 0x6d, 0x80},			/* 19: VCLK97_75	*/
10894d12b13SY.C. Chen 	{0x3b, 0x2c, 0x81},			/* 1A: VCLK118_25	*/
109312fec14SDave Airlie };
110312fec14SDave Airlie 
111*22acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_stdtable vbios_stdtable[] = {
112312fec14SDave Airlie 	/* MD_2_3_400 */
113312fec14SDave Airlie 	{
114312fec14SDave Airlie 		0x67,
115312fec14SDave Airlie 		{0x00,0x03,0x00,0x02},
116312fec14SDave Airlie 		{0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f,
117312fec14SDave Airlie 		 0x00,0x4f,0x0d,0x0e,0x00,0x00,0x00,0x00,
118312fec14SDave Airlie 		 0x9c,0x8e,0x8f,0x28,0x1f,0x96,0xb9,0xa3,
119312fec14SDave Airlie 		 0xff},
120312fec14SDave Airlie 		{0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07,
121312fec14SDave Airlie 		 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,
122312fec14SDave Airlie 		 0x0c,0x00,0x0f,0x08},
123312fec14SDave Airlie 		{0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00,
124312fec14SDave Airlie 		 0xff}
125312fec14SDave Airlie 	},
126312fec14SDave Airlie 	/* Mode12/ExtEGATable */
127312fec14SDave Airlie 	{
128312fec14SDave Airlie 		0xe3,
129312fec14SDave Airlie 		{0x01,0x0f,0x00,0x06},
130312fec14SDave Airlie 		{0x5f,0x4f,0x50,0x82,0x55,0x81,0x0b,0x3e,
131312fec14SDave Airlie 		 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,
132312fec14SDave Airlie 		 0xe9,0x8b,0xdf,0x28,0x00,0xe7,0x04,0xe3,
133312fec14SDave Airlie 		 0xff},
134312fec14SDave Airlie 		{0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07,
135312fec14SDave Airlie 		 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,
136312fec14SDave Airlie 		 0x01,0x00,0x0f,0x00},
137312fec14SDave Airlie 		{0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x0f,
138312fec14SDave Airlie 		 0xff}
139312fec14SDave Airlie 	},
140312fec14SDave Airlie 	/* ExtVGATable */
141312fec14SDave Airlie 	{
142312fec14SDave Airlie 		0x2f,
143312fec14SDave Airlie 		{0x01,0x0f,0x00,0x0e},
144312fec14SDave Airlie 		{0x5f,0x4f,0x50,0x82,0x54,0x80,0x0b,0x3e,
145312fec14SDave Airlie 		 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,
146312fec14SDave Airlie 		 0xea,0x8c,0xdf,0x28,0x40,0xe7,0x04,0xa3,
147312fec14SDave Airlie 		 0xff},
148312fec14SDave Airlie 		{0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
149312fec14SDave Airlie 		 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,
150312fec14SDave Airlie 		 0x01,0x00,0x00,0x00},
151312fec14SDave Airlie 		{0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0f,
152312fec14SDave Airlie 		 0xff}
153312fec14SDave Airlie 	},
154312fec14SDave Airlie 	/* ExtHiCTable */
155312fec14SDave Airlie 	{
156312fec14SDave Airlie 		0x2f,
157312fec14SDave Airlie 		{0x01,0x0f,0x00,0x0e},
158312fec14SDave Airlie 		{0x5f,0x4f,0x50,0x82,0x54,0x80,0x0b,0x3e,
159312fec14SDave Airlie 		 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,
160312fec14SDave Airlie 		 0xea,0x8c,0xdf,0x28,0x40,0xe7,0x04,0xa3,
161312fec14SDave Airlie 		 0xff},
162312fec14SDave Airlie 		{0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
163312fec14SDave Airlie 		 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,
164312fec14SDave Airlie 		 0x01,0x00,0x00,0x00},
165312fec14SDave Airlie 		{0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x0f,
166312fec14SDave Airlie 		 0xff}
167312fec14SDave Airlie 	},
168312fec14SDave Airlie 	/* ExtTrueCTable */
169312fec14SDave Airlie 	{
170312fec14SDave Airlie 		0x2f,
171312fec14SDave Airlie 		{0x01,0x0f,0x00,0x0e},
172312fec14SDave Airlie 		{0x5f,0x4f,0x50,0x82,0x54,0x80,0x0b,0x3e,
173312fec14SDave Airlie 		 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,
174312fec14SDave Airlie 		 0xea,0x8c,0xdf,0x28,0x40,0xe7,0x04,0xa3,
175312fec14SDave Airlie 		 0xff},
176312fec14SDave Airlie 		{0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
177312fec14SDave Airlie 		 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,
178312fec14SDave Airlie 		 0x01,0x00,0x00,0x00},
179312fec14SDave Airlie 		{0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x0f,
180312fec14SDave Airlie 		 0xff}
181312fec14SDave Airlie 	},
182312fec14SDave Airlie };
183312fec14SDave Airlie 
184*22acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_640x480[] = {
185312fec14SDave Airlie 	{ 800, 640, 8, 96, 525, 480, 2, 2, VCLK25_175,	/* 60Hz */
186312fec14SDave Airlie 	  (SyncNN | HBorder | VBorder | Charx8Dot), 60, 1, 0x2E },
187312fec14SDave Airlie 	{ 832, 640, 16, 40, 520, 480, 1, 3, VCLK31_5,	/* 72Hz */
188312fec14SDave Airlie 	  (SyncNN | HBorder | VBorder | Charx8Dot), 72, 2, 0x2E  },
189312fec14SDave Airlie 	{ 840, 640, 16, 64, 500, 480, 1, 3, VCLK31_5,	/* 75Hz */
190312fec14SDave Airlie 	  (SyncNN | Charx8Dot) , 75, 3, 0x2E },
191312fec14SDave Airlie 	{ 832, 640, 56, 56, 509, 480, 1, 3, VCLK36,	/* 85Hz */
192312fec14SDave Airlie 	  (SyncNN | Charx8Dot) , 85, 4, 0x2E },
193312fec14SDave Airlie 	{ 832, 640, 56, 56, 509, 480, 1, 3, VCLK36,	/* end */
194312fec14SDave Airlie 	  (SyncNN | Charx8Dot) , 0xFF, 4, 0x2E },
195312fec14SDave Airlie };
196312fec14SDave Airlie 
197*22acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_800x600[] = {
198312fec14SDave Airlie 	{1024, 800, 24, 72, 625, 600, 1, 2, VCLK36,	/* 56Hz */
199312fec14SDave Airlie 	 (SyncPP | Charx8Dot), 56, 1, 0x30 },
200312fec14SDave Airlie 	{1056, 800, 40, 128, 628, 600, 1, 4, VCLK40,	/* 60Hz */
201312fec14SDave Airlie 	 (SyncPP | Charx8Dot), 60, 2, 0x30 },
202312fec14SDave Airlie 	{1040, 800, 56, 120, 666, 600, 37, 6, VCLK50,	/* 72Hz */
203312fec14SDave Airlie 	 (SyncPP | Charx8Dot), 72, 3, 0x30 },
204312fec14SDave Airlie 	{1056, 800, 16, 80, 625, 600, 1, 3, VCLK49_5,	/* 75Hz */
205312fec14SDave Airlie 	 (SyncPP | Charx8Dot), 75, 4, 0x30 },
206312fec14SDave Airlie 	{1048, 800, 32, 64, 631, 600, 1, 3, VCLK56_25,	/* 85Hz */
207312fec14SDave Airlie 	 (SyncPP | Charx8Dot), 84, 5, 0x30 },
208312fec14SDave Airlie 	{1048, 800, 32, 64, 631, 600, 1, 3, VCLK56_25,	/* end */
209312fec14SDave Airlie 	 (SyncPP | Charx8Dot), 0xFF, 5, 0x30 },
210312fec14SDave Airlie };
211312fec14SDave Airlie 
212312fec14SDave Airlie 
213*22acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_1024x768[] = {
214312fec14SDave Airlie 	{1344, 1024, 24, 136, 806, 768, 3, 6, VCLK65,	/* 60Hz */
215312fec14SDave Airlie 	 (SyncNN | Charx8Dot), 60, 1, 0x31 },
216312fec14SDave Airlie 	{1328, 1024, 24, 136, 806, 768, 3, 6, VCLK75,	/* 70Hz */
217312fec14SDave Airlie 	 (SyncNN | Charx8Dot), 70, 2, 0x31 },
218312fec14SDave Airlie 	{1312, 1024, 16, 96, 800, 768, 1, 3, VCLK78_75,	/* 75Hz */
219312fec14SDave Airlie 	 (SyncPP | Charx8Dot), 75, 3, 0x31 },
220312fec14SDave Airlie 	{1376, 1024, 48, 96, 808, 768, 1, 3, VCLK94_5,	/* 85Hz */
221312fec14SDave Airlie 	 (SyncPP | Charx8Dot), 84, 4, 0x31 },
222312fec14SDave Airlie 	{1376, 1024, 48, 96, 808, 768, 1, 3, VCLK94_5,	/* end */
223312fec14SDave Airlie 	 (SyncPP | Charx8Dot), 0xFF, 4, 0x31 },
224312fec14SDave Airlie };
225312fec14SDave Airlie 
226*22acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_1280x1024[] = {
227312fec14SDave Airlie 	{1688, 1280, 48, 112, 1066, 1024, 1, 3, VCLK108,	/* 60Hz */
228312fec14SDave Airlie 	 (SyncPP | Charx8Dot), 60, 1, 0x32 },
229312fec14SDave Airlie 	{1688, 1280, 16, 144, 1066, 1024, 1, 3, VCLK135,	/* 75Hz */
230312fec14SDave Airlie 	 (SyncPP | Charx8Dot), 75, 2, 0x32 },
231312fec14SDave Airlie 	{1728, 1280, 64, 160, 1072, 1024, 1, 3, VCLK157_5,	/* 85Hz */
232312fec14SDave Airlie 	 (SyncPP | Charx8Dot), 85, 3, 0x32 },
233312fec14SDave Airlie 	{1728, 1280, 64, 160, 1072, 1024, 1, 3, VCLK157_5,	/* end */
234312fec14SDave Airlie 	 (SyncPP | Charx8Dot), 0xFF, 3, 0x32 },
235312fec14SDave Airlie };
236312fec14SDave Airlie 
237*22acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_1600x1200[] = {
238312fec14SDave Airlie 	{2160, 1600, 64, 192, 1250, 1200, 1, 3, VCLK162,	/* 60Hz */
239312fec14SDave Airlie 	 (SyncPP | Charx8Dot), 60, 1, 0x33 },
240312fec14SDave Airlie 	{2160, 1600, 64, 192, 1250, 1200, 1, 3, VCLK162,	/* end */
241312fec14SDave Airlie 	 (SyncPP | Charx8Dot), 0xFF, 1, 0x33 },
242312fec14SDave Airlie };
243312fec14SDave Airlie 
244f1f62f2cSDave Airlie /* 16:9 */
245*22acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_1360x768[] = {
246f1f62f2cSDave Airlie 	{1792, 1360, 64, 112, 795, 768, 3, 6, VCLK85_5,		/* 60Hz */
247f1f62f2cSDave Airlie 	 (SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x39 },
248f1f62f2cSDave Airlie 	{1792, 1360, 64, 112, 795, 768, 3, 6, VCLK85_5,	         /* end */
249f1f62f2cSDave Airlie 	 (SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 1, 0x39 },
250312fec14SDave Airlie };
251312fec14SDave Airlie 
252*22acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_1600x900[] = {
253f1f62f2cSDave Airlie 	{1760, 1600, 48, 32, 926, 900, 3, 5, VCLK97_75,		/* 60Hz CVT RB */
254f1f62f2cSDave Airlie 	 (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x3A },
25594d12b13SY.C. Chen 	{2112, 1600, 88, 168, 934, 900, 3, 5, VCLK118_25,	/* 60Hz CVT */
25694d12b13SY.C. Chen 	 (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x3A },
25794d12b13SY.C. Chen 	{2112, 1600, 88, 168, 934, 900, 3, 5, VCLK118_25,	/* 60Hz CVT */
25894d12b13SY.C. Chen 	 (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 0x3A },
259f1f62f2cSDave Airlie };
260f1f62f2cSDave Airlie 
261*22acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_1920x1080[] = {
262f1f62f2cSDave Airlie 	{2200, 1920, 88, 44, 1125, 1080, 4, 5, VCLK148_5,	/* 60Hz */
263f1f62f2cSDave Airlie 	 (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x38 },
264f1f62f2cSDave Airlie 	{2200, 1920, 88, 44, 1125, 1080, 4, 5, VCLK148_5,	/* 60Hz */
265f1f62f2cSDave Airlie 	 (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 1, 0x38 },
266f1f62f2cSDave Airlie };
267f1f62f2cSDave Airlie 
268f1f62f2cSDave Airlie 
269312fec14SDave Airlie /* 16:10 */
270*22acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_1280x800[] = {
271f1f62f2cSDave Airlie 	{1440, 1280, 48, 32,  823,  800, 3, 6, VCLK71,		/* 60Hz RB */
27294d12b13SY.C. Chen 	 (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x35 },
273312fec14SDave Airlie 	{1680, 1280, 72,128,  831,  800, 3, 6, VCLK83_5,	/* 60Hz */
27494d12b13SY.C. Chen 	 (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x35 },
275312fec14SDave Airlie 	{1680, 1280, 72,128,  831,  800, 3, 6, VCLK83_5,	/* 60Hz */
27694d12b13SY.C. Chen 	 (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 0x35 },
277312fec14SDave Airlie 
278312fec14SDave Airlie };
279312fec14SDave Airlie 
280*22acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_1440x900[] = {
281f1f62f2cSDave Airlie 	{1600, 1440, 48, 32,  926,  900, 3, 6, VCLK88_75,	/* 60Hz RB */
282f1f62f2cSDave Airlie 	 (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x36 },
283312fec14SDave Airlie 	{1904, 1440, 80,152,  934,  900, 3, 6, VCLK106_5,	/* 60Hz */
28494d12b13SY.C. Chen 	 (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x36 },
285312fec14SDave Airlie 	{1904, 1440, 80,152,  934,  900, 3, 6, VCLK106_5,	/* 60Hz */
28694d12b13SY.C. Chen 	 (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 0x36 },
287312fec14SDave Airlie };
288312fec14SDave Airlie 
289*22acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_1680x1050[] = {
290f1f62f2cSDave Airlie 	{1840, 1680, 48, 32, 1080, 1050, 3, 6, VCLK119,		/* 60Hz RB */
291f1f62f2cSDave Airlie 	 (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x37 },
292312fec14SDave Airlie 	{2240, 1680,104,176, 1089, 1050, 3, 6, VCLK146_25,	/* 60Hz */
29394d12b13SY.C. Chen 	 (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x37 },
294312fec14SDave Airlie 	{2240, 1680,104,176, 1089, 1050, 3, 6, VCLK146_25,	/* 60Hz */
29594d12b13SY.C. Chen 	 (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 0x37 },
296312fec14SDave Airlie };
297312fec14SDave Airlie 
298*22acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_1920x1200[] = {
29994d12b13SY.C. Chen 	{2080, 1920, 48, 32, 1235, 1200, 3, 6, VCLK154,		/* 60Hz RB*/
300f1f62f2cSDave Airlie 	 (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x34 },
30194d12b13SY.C. Chen 	{2080, 1920, 48, 32, 1235, 1200, 3, 6, VCLK154,		/* 60Hz RB */
302f1f62f2cSDave Airlie 	 (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 1, 0x34 },
303312fec14SDave Airlie };
304f1f62f2cSDave Airlie 
305312fec14SDave Airlie #endif
306