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) 509f93c8b3SY.C. Chen #define AST2500PreCatchCRT 0x00004000 51312fec14SDave Airlie 52312fec14SDave Airlie /* DCLK Index */ 53312fec14SDave Airlie #define VCLK25_175 0x00 54312fec14SDave Airlie #define VCLK28_322 0x01 55312fec14SDave Airlie #define VCLK31_5 0x02 56312fec14SDave Airlie #define VCLK36 0x03 57312fec14SDave Airlie #define VCLK40 0x04 58312fec14SDave Airlie #define VCLK49_5 0x05 59312fec14SDave Airlie #define VCLK50 0x06 60312fec14SDave Airlie #define VCLK56_25 0x07 61312fec14SDave Airlie #define VCLK65 0x08 62312fec14SDave Airlie #define VCLK75 0x09 63312fec14SDave Airlie #define VCLK78_75 0x0A 64312fec14SDave Airlie #define VCLK94_5 0x0B 65312fec14SDave Airlie #define VCLK108 0x0C 66312fec14SDave Airlie #define VCLK135 0x0D 67312fec14SDave Airlie #define VCLK157_5 0x0E 68312fec14SDave Airlie #define VCLK162 0x0F 69312fec14SDave Airlie /* #define VCLK193_25 0x10 */ 70312fec14SDave Airlie #define VCLK154 0x10 71312fec14SDave Airlie #define VCLK83_5 0x11 72312fec14SDave Airlie #define VCLK106_5 0x12 73312fec14SDave Airlie #define VCLK146_25 0x13 74312fec14SDave Airlie #define VCLK148_5 0x14 75f1f62f2cSDave Airlie #define VCLK71 0x15 76f1f62f2cSDave Airlie #define VCLK88_75 0x16 77f1f62f2cSDave Airlie #define VCLK119 0x17 78f1f62f2cSDave Airlie #define VCLK85_5 0x18 79f1f62f2cSDave Airlie #define VCLK97_75 0x19 8094d12b13SY.C. Chen #define VCLK118_25 0x1A 81312fec14SDave Airlie 8222acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_dclk_info dclk_table[] = { 83312fec14SDave Airlie {0x2C, 0xE7, 0x03}, /* 00: VCLK25_175 */ 84312fec14SDave Airlie {0x95, 0x62, 0x03}, /* 01: VCLK28_322 */ 85312fec14SDave Airlie {0x67, 0x63, 0x01}, /* 02: VCLK31_5 */ 86312fec14SDave Airlie {0x76, 0x63, 0x01}, /* 03: VCLK36 */ 87312fec14SDave Airlie {0xEE, 0x67, 0x01}, /* 04: VCLK40 */ 88312fec14SDave Airlie {0x82, 0x62, 0x01}, /* 05: VCLK49_5 */ 89312fec14SDave Airlie {0xC6, 0x64, 0x01}, /* 06: VCLK50 */ 90312fec14SDave Airlie {0x94, 0x62, 0x01}, /* 07: VCLK56_25 */ 91312fec14SDave Airlie {0x80, 0x64, 0x00}, /* 08: VCLK65 */ 92312fec14SDave Airlie {0x7B, 0x63, 0x00}, /* 09: VCLK75 */ 93312fec14SDave Airlie {0x67, 0x62, 0x00}, /* 0A: VCLK78_75 */ 94312fec14SDave Airlie {0x7C, 0x62, 0x00}, /* 0B: VCLK94_5 */ 95312fec14SDave Airlie {0x8E, 0x62, 0x00}, /* 0C: VCLK108 */ 96312fec14SDave Airlie {0x85, 0x24, 0x00}, /* 0D: VCLK135 */ 97312fec14SDave Airlie {0x67, 0x22, 0x00}, /* 0E: VCLK157_5 */ 98312fec14SDave Airlie {0x6A, 0x22, 0x00}, /* 0F: VCLK162 */ 99312fec14SDave Airlie {0x4d, 0x4c, 0x80}, /* 10: VCLK154 */ 1005a9f698fSY.C. Chen {0x68, 0x6f, 0x80}, /* 11: VCLK83.5 */ 101312fec14SDave Airlie {0x28, 0x49, 0x80}, /* 12: VCLK106.5 */ 102312fec14SDave Airlie {0x37, 0x49, 0x80}, /* 13: VCLK146.25 */ 103312fec14SDave Airlie {0x1f, 0x45, 0x80}, /* 14: VCLK148.5 */ 104f1f62f2cSDave Airlie {0x47, 0x6c, 0x80}, /* 15: VCLK71 */ 105f1f62f2cSDave Airlie {0x25, 0x65, 0x80}, /* 16: VCLK88.75 */ 106f1f62f2cSDave Airlie {0x77, 0x58, 0x80}, /* 17: VCLK119 */ 107f1f62f2cSDave Airlie {0x32, 0x67, 0x80}, /* 18: VCLK85_5 */ 108b8d758d2SY.C. Chen {0x6a, 0x6d, 0x80}, /* 19: VCLK97_75 */ 10994d12b13SY.C. Chen {0x3b, 0x2c, 0x81}, /* 1A: VCLK118_25 */ 110312fec14SDave Airlie }; 111312fec14SDave Airlie 1129f93c8b3SY.C. Chen static const struct ast_vbios_dclk_info dclk_table_ast2500[] = { 1139f93c8b3SY.C. Chen {0x2C, 0xE7, 0x03}, /* 00: VCLK25_175 */ 1149f93c8b3SY.C. Chen {0x95, 0x62, 0x03}, /* 01: VCLK28_322 */ 1159f93c8b3SY.C. Chen {0x67, 0x63, 0x01}, /* 02: VCLK31_5 */ 1169f93c8b3SY.C. Chen {0x76, 0x63, 0x01}, /* 03: VCLK36 */ 1179f93c8b3SY.C. Chen {0xEE, 0x67, 0x01}, /* 04: VCLK40 */ 1189f93c8b3SY.C. Chen {0x82, 0x62, 0x01}, /* 05: VCLK49_5 */ 1199f93c8b3SY.C. Chen {0xC6, 0x64, 0x01}, /* 06: VCLK50 */ 1209f93c8b3SY.C. Chen {0x94, 0x62, 0x01}, /* 07: VCLK56_25 */ 1219f93c8b3SY.C. Chen {0x80, 0x64, 0x00}, /* 08: VCLK65 */ 1229f93c8b3SY.C. Chen {0x7B, 0x63, 0x00}, /* 09: VCLK75 */ 1239f93c8b3SY.C. Chen {0x67, 0x62, 0x00}, /* 0A: VCLK78_75 */ 1249f93c8b3SY.C. Chen {0x7C, 0x62, 0x00}, /* 0B: VCLK94_5 */ 1259f93c8b3SY.C. Chen {0x8E, 0x62, 0x00}, /* 0C: VCLK108 */ 1269f93c8b3SY.C. Chen {0x85, 0x24, 0x00}, /* 0D: VCLK135 */ 1279f93c8b3SY.C. Chen {0x67, 0x22, 0x00}, /* 0E: VCLK157_5 */ 1289f93c8b3SY.C. Chen {0x6A, 0x22, 0x00}, /* 0F: VCLK162 */ 1299f93c8b3SY.C. Chen {0x4d, 0x4c, 0x80}, /* 10: VCLK154 */ 1305a9f698fSY.C. Chen {0x68, 0x6f, 0x80}, /* 11: VCLK83.5 */ 1319f93c8b3SY.C. Chen {0x28, 0x49, 0x80}, /* 12: VCLK106.5 */ 1329f93c8b3SY.C. Chen {0x37, 0x49, 0x80}, /* 13: VCLK146.25 */ 1339f93c8b3SY.C. Chen {0x1f, 0x45, 0x80}, /* 14: VCLK148.5 */ 1349f93c8b3SY.C. Chen {0x47, 0x6c, 0x80}, /* 15: VCLK71 */ 1359f93c8b3SY.C. Chen {0x25, 0x65, 0x80}, /* 16: VCLK88.75 */ 1369f93c8b3SY.C. Chen {0x58, 0x01, 0x42}, /* 17: VCLK119 */ 1379f93c8b3SY.C. Chen {0x32, 0x67, 0x80}, /* 18: VCLK85_5 */ 1389f93c8b3SY.C. Chen {0x6a, 0x6d, 0x80}, /* 19: VCLK97_75 */ 1399f93c8b3SY.C. Chen {0x44, 0x20, 0x43}, /* 1A: VCLK118_25 */ 1409f93c8b3SY.C. Chen }; 1419f93c8b3SY.C. Chen 14222acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_stdtable vbios_stdtable[] = { 143312fec14SDave Airlie /* MD_2_3_400 */ 144312fec14SDave Airlie { 145312fec14SDave Airlie 0x67, 146312fec14SDave Airlie {0x00,0x03,0x00,0x02}, 147312fec14SDave Airlie {0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f, 148312fec14SDave Airlie 0x00,0x4f,0x0d,0x0e,0x00,0x00,0x00,0x00, 149312fec14SDave Airlie 0x9c,0x8e,0x8f,0x28,0x1f,0x96,0xb9,0xa3, 150312fec14SDave Airlie 0xff}, 151312fec14SDave Airlie {0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07, 152312fec14SDave Airlie 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 153312fec14SDave Airlie 0x0c,0x00,0x0f,0x08}, 154312fec14SDave Airlie {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00, 155312fec14SDave Airlie 0xff} 156312fec14SDave Airlie }, 157312fec14SDave Airlie /* Mode12/ExtEGATable */ 158312fec14SDave Airlie { 159312fec14SDave Airlie 0xe3, 160312fec14SDave Airlie {0x01,0x0f,0x00,0x06}, 161312fec14SDave Airlie {0x5f,0x4f,0x50,0x82,0x55,0x81,0x0b,0x3e, 162312fec14SDave Airlie 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00, 163312fec14SDave Airlie 0xe9,0x8b,0xdf,0x28,0x00,0xe7,0x04,0xe3, 164312fec14SDave Airlie 0xff}, 165312fec14SDave Airlie {0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07, 166312fec14SDave Airlie 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 167312fec14SDave Airlie 0x01,0x00,0x0f,0x00}, 168312fec14SDave Airlie {0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x0f, 169312fec14SDave Airlie 0xff} 170312fec14SDave Airlie }, 171312fec14SDave Airlie /* ExtVGATable */ 172312fec14SDave Airlie { 173312fec14SDave Airlie 0x2f, 174312fec14SDave Airlie {0x01,0x0f,0x00,0x0e}, 175312fec14SDave Airlie {0x5f,0x4f,0x50,0x82,0x54,0x80,0x0b,0x3e, 176312fec14SDave Airlie 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00, 177312fec14SDave Airlie 0xea,0x8c,0xdf,0x28,0x40,0xe7,0x04,0xa3, 178312fec14SDave Airlie 0xff}, 179312fec14SDave Airlie {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07, 180312fec14SDave Airlie 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 181312fec14SDave Airlie 0x01,0x00,0x00,0x00}, 182312fec14SDave Airlie {0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0f, 183312fec14SDave Airlie 0xff} 184312fec14SDave Airlie }, 185312fec14SDave Airlie /* ExtHiCTable */ 186312fec14SDave Airlie { 187312fec14SDave Airlie 0x2f, 188312fec14SDave Airlie {0x01,0x0f,0x00,0x0e}, 189312fec14SDave Airlie {0x5f,0x4f,0x50,0x82,0x54,0x80,0x0b,0x3e, 190312fec14SDave Airlie 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00, 191312fec14SDave Airlie 0xea,0x8c,0xdf,0x28,0x40,0xe7,0x04,0xa3, 192312fec14SDave Airlie 0xff}, 193312fec14SDave Airlie {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07, 194312fec14SDave Airlie 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 195312fec14SDave Airlie 0x01,0x00,0x00,0x00}, 196312fec14SDave Airlie {0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x0f, 197312fec14SDave Airlie 0xff} 198312fec14SDave Airlie }, 199312fec14SDave Airlie /* ExtTrueCTable */ 200312fec14SDave Airlie { 201312fec14SDave Airlie 0x2f, 202312fec14SDave Airlie {0x01,0x0f,0x00,0x0e}, 203312fec14SDave Airlie {0x5f,0x4f,0x50,0x82,0x54,0x80,0x0b,0x3e, 204312fec14SDave Airlie 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00, 205312fec14SDave Airlie 0xea,0x8c,0xdf,0x28,0x40,0xe7,0x04,0xa3, 206312fec14SDave Airlie 0xff}, 207312fec14SDave Airlie {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07, 208312fec14SDave Airlie 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 209312fec14SDave Airlie 0x01,0x00,0x00,0x00}, 210312fec14SDave Airlie {0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x0f, 211312fec14SDave Airlie 0xff} 212312fec14SDave Airlie }, 213312fec14SDave Airlie }; 214312fec14SDave Airlie 21522acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_640x480[] = { 216312fec14SDave Airlie { 800, 640, 8, 96, 525, 480, 2, 2, VCLK25_175, /* 60Hz */ 217312fec14SDave Airlie (SyncNN | HBorder | VBorder | Charx8Dot), 60, 1, 0x2E }, 218312fec14SDave Airlie { 832, 640, 16, 40, 520, 480, 1, 3, VCLK31_5, /* 72Hz */ 219312fec14SDave Airlie (SyncNN | HBorder | VBorder | Charx8Dot), 72, 2, 0x2E }, 220312fec14SDave Airlie { 840, 640, 16, 64, 500, 480, 1, 3, VCLK31_5, /* 75Hz */ 221312fec14SDave Airlie (SyncNN | Charx8Dot) , 75, 3, 0x2E }, 222312fec14SDave Airlie { 832, 640, 56, 56, 509, 480, 1, 3, VCLK36, /* 85Hz */ 223312fec14SDave Airlie (SyncNN | Charx8Dot) , 85, 4, 0x2E }, 224312fec14SDave Airlie { 832, 640, 56, 56, 509, 480, 1, 3, VCLK36, /* end */ 225312fec14SDave Airlie (SyncNN | Charx8Dot) , 0xFF, 4, 0x2E }, 226312fec14SDave Airlie }; 227312fec14SDave Airlie 22822acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_800x600[] = { 229312fec14SDave Airlie {1024, 800, 24, 72, 625, 600, 1, 2, VCLK36, /* 56Hz */ 230312fec14SDave Airlie (SyncPP | Charx8Dot), 56, 1, 0x30 }, 231312fec14SDave Airlie {1056, 800, 40, 128, 628, 600, 1, 4, VCLK40, /* 60Hz */ 232312fec14SDave Airlie (SyncPP | Charx8Dot), 60, 2, 0x30 }, 233312fec14SDave Airlie {1040, 800, 56, 120, 666, 600, 37, 6, VCLK50, /* 72Hz */ 234312fec14SDave Airlie (SyncPP | Charx8Dot), 72, 3, 0x30 }, 235312fec14SDave Airlie {1056, 800, 16, 80, 625, 600, 1, 3, VCLK49_5, /* 75Hz */ 236312fec14SDave Airlie (SyncPP | Charx8Dot), 75, 4, 0x30 }, 237312fec14SDave Airlie {1048, 800, 32, 64, 631, 600, 1, 3, VCLK56_25, /* 85Hz */ 238312fec14SDave Airlie (SyncPP | Charx8Dot), 84, 5, 0x30 }, 239312fec14SDave Airlie {1048, 800, 32, 64, 631, 600, 1, 3, VCLK56_25, /* end */ 240312fec14SDave Airlie (SyncPP | Charx8Dot), 0xFF, 5, 0x30 }, 241312fec14SDave Airlie }; 242312fec14SDave Airlie 243312fec14SDave Airlie 24422acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_1024x768[] = { 245312fec14SDave Airlie {1344, 1024, 24, 136, 806, 768, 3, 6, VCLK65, /* 60Hz */ 246312fec14SDave Airlie (SyncNN | Charx8Dot), 60, 1, 0x31 }, 247312fec14SDave Airlie {1328, 1024, 24, 136, 806, 768, 3, 6, VCLK75, /* 70Hz */ 248312fec14SDave Airlie (SyncNN | Charx8Dot), 70, 2, 0x31 }, 249312fec14SDave Airlie {1312, 1024, 16, 96, 800, 768, 1, 3, VCLK78_75, /* 75Hz */ 250312fec14SDave Airlie (SyncPP | Charx8Dot), 75, 3, 0x31 }, 251312fec14SDave Airlie {1376, 1024, 48, 96, 808, 768, 1, 3, VCLK94_5, /* 85Hz */ 252312fec14SDave Airlie (SyncPP | Charx8Dot), 84, 4, 0x31 }, 253312fec14SDave Airlie {1376, 1024, 48, 96, 808, 768, 1, 3, VCLK94_5, /* end */ 254312fec14SDave Airlie (SyncPP | Charx8Dot), 0xFF, 4, 0x31 }, 255312fec14SDave Airlie }; 256312fec14SDave Airlie 25722acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_1280x1024[] = { 258312fec14SDave Airlie {1688, 1280, 48, 112, 1066, 1024, 1, 3, VCLK108, /* 60Hz */ 259312fec14SDave Airlie (SyncPP | Charx8Dot), 60, 1, 0x32 }, 260312fec14SDave Airlie {1688, 1280, 16, 144, 1066, 1024, 1, 3, VCLK135, /* 75Hz */ 261312fec14SDave Airlie (SyncPP | Charx8Dot), 75, 2, 0x32 }, 262312fec14SDave Airlie {1728, 1280, 64, 160, 1072, 1024, 1, 3, VCLK157_5, /* 85Hz */ 263312fec14SDave Airlie (SyncPP | Charx8Dot), 85, 3, 0x32 }, 264312fec14SDave Airlie {1728, 1280, 64, 160, 1072, 1024, 1, 3, VCLK157_5, /* end */ 265312fec14SDave Airlie (SyncPP | Charx8Dot), 0xFF, 3, 0x32 }, 266312fec14SDave Airlie }; 267312fec14SDave Airlie 26822acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_1600x1200[] = { 269312fec14SDave Airlie {2160, 1600, 64, 192, 1250, 1200, 1, 3, VCLK162, /* 60Hz */ 270312fec14SDave Airlie (SyncPP | Charx8Dot), 60, 1, 0x33 }, 271312fec14SDave Airlie {2160, 1600, 64, 192, 1250, 1200, 1, 3, VCLK162, /* end */ 272312fec14SDave Airlie (SyncPP | Charx8Dot), 0xFF, 1, 0x33 }, 273312fec14SDave Airlie }; 274312fec14SDave Airlie 275*71dee036SJammy Huang static const struct ast_vbios_enhtable res_1152x864[] = { 276*71dee036SJammy Huang {1600, 1152, 64, 128, 900, 864, 1, 3, VCLK108, /* 75Hz */ 277*71dee036SJammy Huang (SyncPP | Charx8Dot | NewModeInfo), 75, 1, 0x3B }, 278*71dee036SJammy Huang {1600, 1152, 64, 128, 900, 864, 1, 3, VCLK108, /* end */ 279*71dee036SJammy Huang (SyncPP | Charx8Dot | NewModeInfo), 0xFF, 1, 0x3B }, 280*71dee036SJammy Huang }; 281*71dee036SJammy Huang 282f1f62f2cSDave Airlie /* 16:9 */ 28322acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_1360x768[] = { 284f1f62f2cSDave Airlie {1792, 1360, 64, 112, 795, 768, 3, 6, VCLK85_5, /* 60Hz */ 285f1f62f2cSDave Airlie (SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x39 }, 286f1f62f2cSDave Airlie {1792, 1360, 64, 112, 795, 768, 3, 6, VCLK85_5, /* end */ 2879f93c8b3SY.C. Chen (SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo | 2889f93c8b3SY.C. Chen AST2500PreCatchCRT), 0xFF, 1, 0x39 }, 289312fec14SDave Airlie }; 290312fec14SDave Airlie 29122acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_1600x900[] = { 292f1f62f2cSDave Airlie {1760, 1600, 48, 32, 926, 900, 3, 5, VCLK97_75, /* 60Hz CVT RB */ 2939f93c8b3SY.C. Chen (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo | 2949f93c8b3SY.C. Chen AST2500PreCatchCRT), 60, 1, 0x3A }, 29594d12b13SY.C. Chen {2112, 1600, 88, 168, 934, 900, 3, 5, VCLK118_25, /* 60Hz CVT */ 29694d12b13SY.C. Chen (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x3A }, 29794d12b13SY.C. Chen {2112, 1600, 88, 168, 934, 900, 3, 5, VCLK118_25, /* 60Hz CVT */ 29894d12b13SY.C. Chen (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 0x3A }, 299f1f62f2cSDave Airlie }; 300f1f62f2cSDave Airlie 30122acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_1920x1080[] = { 302f1f62f2cSDave Airlie {2200, 1920, 88, 44, 1125, 1080, 4, 5, VCLK148_5, /* 60Hz */ 3032d26123dSKuoHsiang Chou (SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo | 3049f93c8b3SY.C. Chen AST2500PreCatchCRT), 60, 1, 0x38 }, 305f1f62f2cSDave Airlie {2200, 1920, 88, 44, 1125, 1080, 4, 5, VCLK148_5, /* 60Hz */ 3062d26123dSKuoHsiang Chou (SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo | 3079f93c8b3SY.C. Chen AST2500PreCatchCRT), 0xFF, 1, 0x38 }, 308f1f62f2cSDave Airlie }; 309f1f62f2cSDave Airlie 310f1f62f2cSDave Airlie 311312fec14SDave Airlie /* 16:10 */ 31222acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_1280x800[] = { 313f1f62f2cSDave Airlie {1440, 1280, 48, 32, 823, 800, 3, 6, VCLK71, /* 60Hz RB */ 3149f93c8b3SY.C. Chen (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo | 3159f93c8b3SY.C. Chen AST2500PreCatchCRT), 60, 1, 0x35 }, 316312fec14SDave Airlie {1680, 1280, 72,128, 831, 800, 3, 6, VCLK83_5, /* 60Hz */ 31794d12b13SY.C. Chen (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x35 }, 318312fec14SDave Airlie {1680, 1280, 72,128, 831, 800, 3, 6, VCLK83_5, /* 60Hz */ 31994d12b13SY.C. Chen (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 0x35 }, 320312fec14SDave Airlie 321312fec14SDave Airlie }; 322312fec14SDave Airlie 32322acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_1440x900[] = { 324f1f62f2cSDave Airlie {1600, 1440, 48, 32, 926, 900, 3, 6, VCLK88_75, /* 60Hz RB */ 3259f93c8b3SY.C. Chen (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo | 3269f93c8b3SY.C. Chen AST2500PreCatchCRT), 60, 1, 0x36 }, 327312fec14SDave Airlie {1904, 1440, 80,152, 934, 900, 3, 6, VCLK106_5, /* 60Hz */ 32894d12b13SY.C. Chen (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x36 }, 329312fec14SDave Airlie {1904, 1440, 80,152, 934, 900, 3, 6, VCLK106_5, /* 60Hz */ 33094d12b13SY.C. Chen (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 0x36 }, 331312fec14SDave Airlie }; 332312fec14SDave Airlie 33322acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_1680x1050[] = { 334f1f62f2cSDave Airlie {1840, 1680, 48, 32, 1080, 1050, 3, 6, VCLK119, /* 60Hz RB */ 3359f93c8b3SY.C. Chen (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo | 3369f93c8b3SY.C. Chen AST2500PreCatchCRT), 60, 1, 0x37 }, 337312fec14SDave Airlie {2240, 1680,104,176, 1089, 1050, 3, 6, VCLK146_25, /* 60Hz */ 33894d12b13SY.C. Chen (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x37 }, 339312fec14SDave Airlie {2240, 1680,104,176, 1089, 1050, 3, 6, VCLK146_25, /* 60Hz */ 34094d12b13SY.C. Chen (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 0x37 }, 341312fec14SDave Airlie }; 342312fec14SDave Airlie 34322acdbb1SBenjamin Herrenschmidt static const struct ast_vbios_enhtable res_1920x1200[] = { 34494d12b13SY.C. Chen {2080, 1920, 48, 32, 1235, 1200, 3, 6, VCLK154, /* 60Hz RB*/ 3459f93c8b3SY.C. Chen (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo | 3469f93c8b3SY.C. Chen AST2500PreCatchCRT), 60, 1, 0x34 }, 34794d12b13SY.C. Chen {2080, 1920, 48, 32, 1235, 1200, 3, 6, VCLK154, /* 60Hz RB */ 3489f93c8b3SY.C. Chen (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo | 3499f93c8b3SY.C. Chen AST2500PreCatchCRT), 0xFF, 1, 0x34 }, 350312fec14SDave Airlie }; 351f1f62f2cSDave Airlie 352312fec14SDave Airlie #endif 353