diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2017-02-16 21:45:24 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-02-27 22:12:27 -0500 |
commit | 22acdbb1bdbd56cc9939e18516dfcf214a9d835b (patch) | |
tree | 7bb14855c7f1316b6826d8d209fdb04e6fe442cb | |
parent | 71f677a91046599ece96ebab21df956ce909c456 (diff) |
drm/ast: const'ify mode setting tables
And fix some comment alignment & space/tabs while at it
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/ast/ast_drv.h | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/ast/ast_mode.c | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/ast/ast_tables.h | 106 |
3 files changed, 59 insertions, 59 deletions
diff --git a/drivers/gpu/drm/ast/ast_drv.h b/drivers/gpu/drm/ast/ast_drv.h index 3b0be9ea4191..8fcd55c0e63d 100644 --- a/drivers/gpu/drm/ast/ast_drv.h +++ b/drivers/gpu/drm/ast/ast_drv.h | |||
@@ -305,8 +305,8 @@ struct ast_vbios_dclk_info { | |||
305 | }; | 305 | }; |
306 | 306 | ||
307 | struct ast_vbios_mode_info { | 307 | struct ast_vbios_mode_info { |
308 | struct ast_vbios_stdtable *std_table; | 308 | const struct ast_vbios_stdtable *std_table; |
309 | struct ast_vbios_enhtable *enh_table; | 309 | const struct ast_vbios_enhtable *enh_table; |
310 | }; | 310 | }; |
311 | 311 | ||
312 | extern int ast_mode_init(struct drm_device *dev); | 312 | extern int ast_mode_init(struct drm_device *dev); |
diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c index 606cb40f6c7c..c25b8b06d55a 100644 --- a/drivers/gpu/drm/ast/ast_mode.c +++ b/drivers/gpu/drm/ast/ast_mode.c | |||
@@ -81,9 +81,9 @@ static bool ast_get_vbios_mode_info(struct drm_crtc *crtc, struct drm_display_mo | |||
81 | struct ast_private *ast = crtc->dev->dev_private; | 81 | struct ast_private *ast = crtc->dev->dev_private; |
82 | const struct drm_framebuffer *fb = crtc->primary->fb; | 82 | const struct drm_framebuffer *fb = crtc->primary->fb; |
83 | u32 refresh_rate_index = 0, mode_id, color_index, refresh_rate; | 83 | u32 refresh_rate_index = 0, mode_id, color_index, refresh_rate; |
84 | const struct ast_vbios_enhtable *best = NULL; | ||
84 | u32 hborder, vborder; | 85 | u32 hborder, vborder; |
85 | bool check_sync; | 86 | bool check_sync; |
86 | struct ast_vbios_enhtable *best = NULL; | ||
87 | 87 | ||
88 | switch (fb->format->cpp[0] * 8) { | 88 | switch (fb->format->cpp[0] * 8) { |
89 | case 8: | 89 | case 8: |
@@ -147,7 +147,7 @@ static bool ast_get_vbios_mode_info(struct drm_crtc *crtc, struct drm_display_mo | |||
147 | refresh_rate = drm_mode_vrefresh(mode); | 147 | refresh_rate = drm_mode_vrefresh(mode); |
148 | check_sync = vbios_mode->enh_table->flags & WideScreenMode; | 148 | check_sync = vbios_mode->enh_table->flags & WideScreenMode; |
149 | do { | 149 | do { |
150 | struct ast_vbios_enhtable *loop = vbios_mode->enh_table; | 150 | const struct ast_vbios_enhtable *loop = vbios_mode->enh_table; |
151 | 151 | ||
152 | while (loop->refresh_rate != 0xff) { | 152 | while (loop->refresh_rate != 0xff) { |
153 | if ((check_sync) && | 153 | if ((check_sync) && |
@@ -227,7 +227,7 @@ static void ast_set_std_reg(struct drm_crtc *crtc, struct drm_display_mode *mode | |||
227 | struct ast_vbios_mode_info *vbios_mode) | 227 | struct ast_vbios_mode_info *vbios_mode) |
228 | { | 228 | { |
229 | struct ast_private *ast = crtc->dev->dev_private; | 229 | struct ast_private *ast = crtc->dev->dev_private; |
230 | struct ast_vbios_stdtable *stdtable; | 230 | const struct ast_vbios_stdtable *stdtable; |
231 | u32 i; | 231 | u32 i; |
232 | u8 jreg; | 232 | u8 jreg; |
233 | 233 | ||
@@ -384,7 +384,7 @@ static void ast_set_dclk_reg(struct drm_device *dev, struct drm_display_mode *mo | |||
384 | struct ast_vbios_mode_info *vbios_mode) | 384 | struct ast_vbios_mode_info *vbios_mode) |
385 | { | 385 | { |
386 | struct ast_private *ast = dev->dev_private; | 386 | struct ast_private *ast = dev->dev_private; |
387 | struct ast_vbios_dclk_info *clk_info; | 387 | const struct ast_vbios_dclk_info *clk_info; |
388 | 388 | ||
389 | clk_info = &dclk_table[vbios_mode->enh_table->dclk_index]; | 389 | clk_info = &dclk_table[vbios_mode->enh_table->dclk_index]; |
390 | 390 | ||
diff --git a/drivers/gpu/drm/ast/ast_tables.h b/drivers/gpu/drm/ast/ast_tables.h index 3608d5aa7451..a4ddf901a54f 100644 --- a/drivers/gpu/drm/ast/ast_tables.h +++ b/drivers/gpu/drm/ast/ast_tables.h | |||
@@ -78,37 +78,37 @@ | |||
78 | #define VCLK97_75 0x19 | 78 | #define VCLK97_75 0x19 |
79 | #define VCLK118_25 0x1A | 79 | #define VCLK118_25 0x1A |
80 | 80 | ||
81 | static struct ast_vbios_dclk_info dclk_table[] = { | 81 | static const struct ast_vbios_dclk_info dclk_table[] = { |
82 | {0x2C, 0xE7, 0x03}, /* 00: VCLK25_175 */ | 82 | {0x2C, 0xE7, 0x03}, /* 00: VCLK25_175 */ |
83 | {0x95, 0x62, 0x03}, /* 01: VCLK28_322 */ | 83 | {0x95, 0x62, 0x03}, /* 01: VCLK28_322 */ |
84 | {0x67, 0x63, 0x01}, /* 02: VCLK31_5 */ | 84 | {0x67, 0x63, 0x01}, /* 02: VCLK31_5 */ |
85 | {0x76, 0x63, 0x01}, /* 03: VCLK36 */ | 85 | {0x76, 0x63, 0x01}, /* 03: VCLK36 */ |
86 | {0xEE, 0x67, 0x01}, /* 04: VCLK40 */ | 86 | {0xEE, 0x67, 0x01}, /* 04: VCLK40 */ |
87 | {0x82, 0x62, 0x01}, /* 05: VCLK49_5 */ | 87 | {0x82, 0x62, 0x01}, /* 05: VCLK49_5 */ |
88 | {0xC6, 0x64, 0x01}, /* 06: VCLK50 */ | 88 | {0xC6, 0x64, 0x01}, /* 06: VCLK50 */ |
89 | {0x94, 0x62, 0x01}, /* 07: VCLK56_25 */ | 89 | {0x94, 0x62, 0x01}, /* 07: VCLK56_25 */ |
90 | {0x80, 0x64, 0x00}, /* 08: VCLK65 */ | 90 | {0x80, 0x64, 0x00}, /* 08: VCLK65 */ |
91 | {0x7B, 0x63, 0x00}, /* 09: VCLK75 */ | 91 | {0x7B, 0x63, 0x00}, /* 09: VCLK75 */ |
92 | {0x67, 0x62, 0x00}, /* 0A: VCLK78_75 */ | 92 | {0x67, 0x62, 0x00}, /* 0A: VCLK78_75 */ |
93 | {0x7C, 0x62, 0x00}, /* 0B: VCLK94_5 */ | 93 | {0x7C, 0x62, 0x00}, /* 0B: VCLK94_5 */ |
94 | {0x8E, 0x62, 0x00}, /* 0C: VCLK108 */ | 94 | {0x8E, 0x62, 0x00}, /* 0C: VCLK108 */ |
95 | {0x85, 0x24, 0x00}, /* 0D: VCLK135 */ | 95 | {0x85, 0x24, 0x00}, /* 0D: VCLK135 */ |
96 | {0x67, 0x22, 0x00}, /* 0E: VCLK157_5 */ | 96 | {0x67, 0x22, 0x00}, /* 0E: VCLK157_5 */ |
97 | {0x6A, 0x22, 0x00}, /* 0F: VCLK162 */ | 97 | {0x6A, 0x22, 0x00}, /* 0F: VCLK162 */ |
98 | {0x4d, 0x4c, 0x80}, /* 10: VCLK154 */ | 98 | {0x4d, 0x4c, 0x80}, /* 10: VCLK154 */ |
99 | {0xa7, 0x78, 0x80}, /* 11: VCLK83.5 */ | 99 | {0xa7, 0x78, 0x80}, /* 11: VCLK83.5 */ |
100 | {0x28, 0x49, 0x80}, /* 12: VCLK106.5 */ | 100 | {0x28, 0x49, 0x80}, /* 12: VCLK106.5 */ |
101 | {0x37, 0x49, 0x80}, /* 13: VCLK146.25 */ | 101 | {0x37, 0x49, 0x80}, /* 13: VCLK146.25 */ |
102 | {0x1f, 0x45, 0x80}, /* 14: VCLK148.5 */ | 102 | {0x1f, 0x45, 0x80}, /* 14: VCLK148.5 */ |
103 | {0x47, 0x6c, 0x80}, /* 15: VCLK71 */ | 103 | {0x47, 0x6c, 0x80}, /* 15: VCLK71 */ |
104 | {0x25, 0x65, 0x80}, /* 16: VCLK88.75 */ | 104 | {0x25, 0x65, 0x80}, /* 16: VCLK88.75 */ |
105 | {0x77, 0x58, 0x80}, /* 17: VCLK119 */ | 105 | {0x77, 0x58, 0x80}, /* 17: VCLK119 */ |
106 | {0x32, 0x67, 0x80}, /* 18: VCLK85_5 */ | 106 | {0x32, 0x67, 0x80}, /* 18: VCLK85_5 */ |
107 | {0x6a, 0x6d, 0x80}, /* 19: VCLK97_75 */ | 107 | {0x6a, 0x6d, 0x80}, /* 19: VCLK97_75 */ |
108 | {0x3b, 0x2c, 0x81}, /* 1A: VCLK118_25 */ | 108 | {0x3b, 0x2c, 0x81}, /* 1A: VCLK118_25 */ |
109 | }; | 109 | }; |
110 | 110 | ||
111 | static struct ast_vbios_stdtable vbios_stdtable[] = { | 111 | static const struct ast_vbios_stdtable vbios_stdtable[] = { |
112 | /* MD_2_3_400 */ | 112 | /* MD_2_3_400 */ |
113 | { | 113 | { |
114 | 0x67, | 114 | 0x67, |
@@ -181,21 +181,21 @@ static struct ast_vbios_stdtable vbios_stdtable[] = { | |||
181 | }, | 181 | }, |
182 | }; | 182 | }; |
183 | 183 | ||
184 | static struct ast_vbios_enhtable res_640x480[] = { | 184 | static const struct ast_vbios_enhtable res_640x480[] = { |
185 | { 800, 640, 8, 96, 525, 480, 2, 2, VCLK25_175, /* 60Hz */ | 185 | { 800, 640, 8, 96, 525, 480, 2, 2, VCLK25_175, /* 60Hz */ |
186 | (SyncNN | HBorder | VBorder | Charx8Dot), 60, 1, 0x2E }, | 186 | (SyncNN | HBorder | VBorder | Charx8Dot), 60, 1, 0x2E }, |
187 | { 832, 640, 16, 40, 520, 480, 1, 3, VCLK31_5, /* 72Hz */ | 187 | { 832, 640, 16, 40, 520, 480, 1, 3, VCLK31_5, /* 72Hz */ |
188 | (SyncNN | HBorder | VBorder | Charx8Dot), 72, 2, 0x2E }, | 188 | (SyncNN | HBorder | VBorder | Charx8Dot), 72, 2, 0x2E }, |
189 | { 840, 640, 16, 64, 500, 480, 1, 3, VCLK31_5, /* 75Hz */ | 189 | { 840, 640, 16, 64, 500, 480, 1, 3, VCLK31_5, /* 75Hz */ |
190 | (SyncNN | Charx8Dot) , 75, 3, 0x2E }, | 190 | (SyncNN | Charx8Dot) , 75, 3, 0x2E }, |
191 | { 832, 640, 56, 56, 509, 480, 1, 3, VCLK36, /* 85Hz */ | 191 | { 832, 640, 56, 56, 509, 480, 1, 3, VCLK36, /* 85Hz */ |
192 | (SyncNN | Charx8Dot) , 85, 4, 0x2E }, | 192 | (SyncNN | Charx8Dot) , 85, 4, 0x2E }, |
193 | { 832, 640, 56, 56, 509, 480, 1, 3, VCLK36, /* end */ | 193 | { 832, 640, 56, 56, 509, 480, 1, 3, VCLK36, /* end */ |
194 | (SyncNN | Charx8Dot) , 0xFF, 4, 0x2E }, | 194 | (SyncNN | Charx8Dot) , 0xFF, 4, 0x2E }, |
195 | }; | 195 | }; |
196 | 196 | ||
197 | static struct ast_vbios_enhtable res_800x600[] = { | 197 | static const struct ast_vbios_enhtable res_800x600[] = { |
198 | {1024, 800, 24, 72, 625, 600, 1, 2, VCLK36, /* 56Hz */ | 198 | {1024, 800, 24, 72, 625, 600, 1, 2, VCLK36, /* 56Hz */ |
199 | (SyncPP | Charx8Dot), 56, 1, 0x30 }, | 199 | (SyncPP | Charx8Dot), 56, 1, 0x30 }, |
200 | {1056, 800, 40, 128, 628, 600, 1, 4, VCLK40, /* 60Hz */ | 200 | {1056, 800, 40, 128, 628, 600, 1, 4, VCLK40, /* 60Hz */ |
201 | (SyncPP | Charx8Dot), 60, 2, 0x30 }, | 201 | (SyncPP | Charx8Dot), 60, 2, 0x30 }, |
@@ -210,7 +210,7 @@ static struct ast_vbios_enhtable res_800x600[] = { | |||
210 | }; | 210 | }; |
211 | 211 | ||
212 | 212 | ||
213 | static struct ast_vbios_enhtable res_1024x768[] = { | 213 | static const struct ast_vbios_enhtable res_1024x768[] = { |
214 | {1344, 1024, 24, 136, 806, 768, 3, 6, VCLK65, /* 60Hz */ | 214 | {1344, 1024, 24, 136, 806, 768, 3, 6, VCLK65, /* 60Hz */ |
215 | (SyncNN | Charx8Dot), 60, 1, 0x31 }, | 215 | (SyncNN | Charx8Dot), 60, 1, 0x31 }, |
216 | {1328, 1024, 24, 136, 806, 768, 3, 6, VCLK75, /* 70Hz */ | 216 | {1328, 1024, 24, 136, 806, 768, 3, 6, VCLK75, /* 70Hz */ |
@@ -223,7 +223,7 @@ static struct ast_vbios_enhtable res_1024x768[] = { | |||
223 | (SyncPP | Charx8Dot), 0xFF, 4, 0x31 }, | 223 | (SyncPP | Charx8Dot), 0xFF, 4, 0x31 }, |
224 | }; | 224 | }; |
225 | 225 | ||
226 | static struct ast_vbios_enhtable res_1280x1024[] = { | 226 | static const struct ast_vbios_enhtable res_1280x1024[] = { |
227 | {1688, 1280, 48, 112, 1066, 1024, 1, 3, VCLK108, /* 60Hz */ | 227 | {1688, 1280, 48, 112, 1066, 1024, 1, 3, VCLK108, /* 60Hz */ |
228 | (SyncPP | Charx8Dot), 60, 1, 0x32 }, | 228 | (SyncPP | Charx8Dot), 60, 1, 0x32 }, |
229 | {1688, 1280, 16, 144, 1066, 1024, 1, 3, VCLK135, /* 75Hz */ | 229 | {1688, 1280, 16, 144, 1066, 1024, 1, 3, VCLK135, /* 75Hz */ |
@@ -234,7 +234,7 @@ static struct ast_vbios_enhtable res_1280x1024[] = { | |||
234 | (SyncPP | Charx8Dot), 0xFF, 3, 0x32 }, | 234 | (SyncPP | Charx8Dot), 0xFF, 3, 0x32 }, |
235 | }; | 235 | }; |
236 | 236 | ||
237 | static struct ast_vbios_enhtable res_1600x1200[] = { | 237 | static const struct ast_vbios_enhtable res_1600x1200[] = { |
238 | {2160, 1600, 64, 192, 1250, 1200, 1, 3, VCLK162, /* 60Hz */ | 238 | {2160, 1600, 64, 192, 1250, 1200, 1, 3, VCLK162, /* 60Hz */ |
239 | (SyncPP | Charx8Dot), 60, 1, 0x33 }, | 239 | (SyncPP | Charx8Dot), 60, 1, 0x33 }, |
240 | {2160, 1600, 64, 192, 1250, 1200, 1, 3, VCLK162, /* end */ | 240 | {2160, 1600, 64, 192, 1250, 1200, 1, 3, VCLK162, /* end */ |
@@ -242,23 +242,23 @@ static struct ast_vbios_enhtable res_1600x1200[] = { | |||
242 | }; | 242 | }; |
243 | 243 | ||
244 | /* 16:9 */ | 244 | /* 16:9 */ |
245 | static struct ast_vbios_enhtable res_1360x768[] = { | 245 | static const struct ast_vbios_enhtable res_1360x768[] = { |
246 | {1792, 1360, 64,112, 795, 768, 3, 6, VCLK85_5, /* 60Hz */ | 246 | {1792, 1360, 64, 112, 795, 768, 3, 6, VCLK85_5, /* 60Hz */ |
247 | (SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x39 }, | 247 | (SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x39 }, |
248 | {1792, 1360, 64,112, 795, 768, 3, 6, VCLK85_5, /* end */ | 248 | {1792, 1360, 64, 112, 795, 768, 3, 6, VCLK85_5, /* end */ |
249 | (SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 1, 0x39 }, | 249 | (SyncPP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 1, 0x39 }, |
250 | }; | 250 | }; |
251 | 251 | ||
252 | static struct ast_vbios_enhtable res_1600x900[] = { | 252 | static const struct ast_vbios_enhtable res_1600x900[] = { |
253 | {1760, 1600, 48, 32, 926, 900, 3, 5, VCLK97_75, /* 60Hz CVT RB */ | 253 | {1760, 1600, 48, 32, 926, 900, 3, 5, VCLK97_75, /* 60Hz CVT RB */ |
254 | (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x3A }, | 254 | (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x3A }, |
255 | {2112, 1600, 88,168, 934, 900, 3, 5, VCLK118_25, /* 60Hz CVT */ | 255 | {2112, 1600, 88, 168, 934, 900, 3, 5, VCLK118_25, /* 60Hz CVT */ |
256 | (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x3A }, | 256 | (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x3A }, |
257 | {2112, 1600, 88,168, 934, 900, 3, 5, VCLK118_25, /* 60Hz CVT */ | 257 | {2112, 1600, 88, 168, 934, 900, 3, 5, VCLK118_25, /* 60Hz CVT */ |
258 | (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 0x3A }, | 258 | (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 0x3A }, |
259 | }; | 259 | }; |
260 | 260 | ||
261 | static struct ast_vbios_enhtable res_1920x1080[] = { | 261 | static const struct ast_vbios_enhtable res_1920x1080[] = { |
262 | {2200, 1920, 88, 44, 1125, 1080, 4, 5, VCLK148_5, /* 60Hz */ | 262 | {2200, 1920, 88, 44, 1125, 1080, 4, 5, VCLK148_5, /* 60Hz */ |
263 | (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x38 }, | 263 | (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x38 }, |
264 | {2200, 1920, 88, 44, 1125, 1080, 4, 5, VCLK148_5, /* 60Hz */ | 264 | {2200, 1920, 88, 44, 1125, 1080, 4, 5, VCLK148_5, /* 60Hz */ |
@@ -267,8 +267,8 @@ static struct ast_vbios_enhtable res_1920x1080[] = { | |||
267 | 267 | ||
268 | 268 | ||
269 | /* 16:10 */ | 269 | /* 16:10 */ |
270 | static struct ast_vbios_enhtable res_1280x800[] = { | 270 | static const struct ast_vbios_enhtable res_1280x800[] = { |
271 | {1440, 1280, 48, 32, 823, 800, 3, 6, VCLK71, /* 60Hz RB */ | 271 | {1440, 1280, 48, 32, 823, 800, 3, 6, VCLK71, /* 60Hz RB */ |
272 | (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x35 }, | 272 | (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x35 }, |
273 | {1680, 1280, 72,128, 831, 800, 3, 6, VCLK83_5, /* 60Hz */ | 273 | {1680, 1280, 72,128, 831, 800, 3, 6, VCLK83_5, /* 60Hz */ |
274 | (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x35 }, | 274 | (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x35 }, |
@@ -277,7 +277,7 @@ static struct ast_vbios_enhtable res_1280x800[] = { | |||
277 | 277 | ||
278 | }; | 278 | }; |
279 | 279 | ||
280 | static struct ast_vbios_enhtable res_1440x900[] = { | 280 | static const struct ast_vbios_enhtable res_1440x900[] = { |
281 | {1600, 1440, 48, 32, 926, 900, 3, 6, VCLK88_75, /* 60Hz RB */ | 281 | {1600, 1440, 48, 32, 926, 900, 3, 6, VCLK88_75, /* 60Hz RB */ |
282 | (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x36 }, | 282 | (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x36 }, |
283 | {1904, 1440, 80,152, 934, 900, 3, 6, VCLK106_5, /* 60Hz */ | 283 | {1904, 1440, 80,152, 934, 900, 3, 6, VCLK106_5, /* 60Hz */ |
@@ -286,8 +286,8 @@ static struct ast_vbios_enhtable res_1440x900[] = { | |||
286 | (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 0x36 }, | 286 | (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 0x36 }, |
287 | }; | 287 | }; |
288 | 288 | ||
289 | static struct ast_vbios_enhtable res_1680x1050[] = { | 289 | static const struct ast_vbios_enhtable res_1680x1050[] = { |
290 | {1840, 1680, 48, 32, 1080, 1050, 3, 6, VCLK119, /* 60Hz RB */ | 290 | {1840, 1680, 48, 32, 1080, 1050, 3, 6, VCLK119, /* 60Hz RB */ |
291 | (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x37 }, | 291 | (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x37 }, |
292 | {2240, 1680,104,176, 1089, 1050, 3, 6, VCLK146_25, /* 60Hz */ | 292 | {2240, 1680,104,176, 1089, 1050, 3, 6, VCLK146_25, /* 60Hz */ |
293 | (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x37 }, | 293 | (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 2, 0x37 }, |
@@ -295,10 +295,10 @@ static struct ast_vbios_enhtable res_1680x1050[] = { | |||
295 | (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 0x37 }, | 295 | (SyncPN | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 2, 0x37 }, |
296 | }; | 296 | }; |
297 | 297 | ||
298 | static struct ast_vbios_enhtable res_1920x1200[] = { | 298 | static const struct ast_vbios_enhtable res_1920x1200[] = { |
299 | {2080, 1920, 48, 32, 1235, 1200, 3, 6, VCLK154, /* 60Hz RB*/ | 299 | {2080, 1920, 48, 32, 1235, 1200, 3, 6, VCLK154, /* 60Hz RB*/ |
300 | (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x34 }, | 300 | (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 60, 1, 0x34 }, |
301 | {2080, 1920, 48, 32, 1235, 1200, 3, 6, VCLK154, /* 60Hz RB */ | 301 | {2080, 1920, 48, 32, 1235, 1200, 3, 6, VCLK154, /* 60Hz RB */ |
302 | (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 1, 0x34 }, | 302 | (SyncNP | Charx8Dot | LineCompareOff | WideScreenMode | NewModeInfo), 0xFF, 1, 0x34 }, |
303 | }; | 303 | }; |
304 | 304 | ||