Skip to content

Commit 71dee03

Browse files
jammyaspeedThomas Zimmermann
authored andcommitted
drm/ast: Add resolution support for 1152x864@75
Add 1152x864 into support list. Signed-off-by: Jammy Huang <[email protected]> Signed-off-by: Thomas Zimmermann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 02d6f9a commit 71dee03

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

drivers/gpu/drm/ast/ast_mode.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ static bool ast_get_vbios_mode_info(const struct drm_format_info *format,
113113
case 1024:
114114
vbios_mode->enh_table = &res_1024x768[refresh_rate_index];
115115
break;
116+
case 1152:
117+
vbios_mode->enh_table = &res_1152x864[refresh_rate_index];
118+
break;
116119
case 1280:
117120
if (mode->crtc_vdisplay == 800)
118121
vbios_mode->enh_table = &res_1280x800[refresh_rate_index];
@@ -1057,6 +1060,8 @@ ast_crtc_helper_mode_valid(struct drm_crtc *crtc, const struct drm_display_mode
10571060
return MODE_OK;
10581061
if ((mode->hdisplay == 1600) && (mode->vdisplay == 900))
10591062
return MODE_OK;
1063+
if ((mode->hdisplay == 1152) && (mode->vdisplay == 864))
1064+
return MODE_OK;
10601065

10611066
if ((ast->chip == AST2100) || (ast->chip == AST2200) ||
10621067
(ast->chip == AST2300) || (ast->chip == AST2400) ||
@@ -1089,6 +1094,10 @@ ast_crtc_helper_mode_valid(struct drm_crtc *crtc, const struct drm_display_mode
10891094
if (mode->vdisplay == 768)
10901095
status = MODE_OK;
10911096
break;
1097+
case 1152:
1098+
if (mode->vdisplay == 864)
1099+
status = MODE_OK;
1100+
break;
10921101
case 1280:
10931102
if (mode->vdisplay == 1024)
10941103
status = MODE_OK;

drivers/gpu/drm/ast/ast_tables.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,13 @@ static const struct ast_vbios_enhtable res_1600x1200[] = {
272272
(SyncPP | Charx8Dot), 0xFF, 1, 0x33 },
273273
};
274274

275+
static const struct ast_vbios_enhtable res_1152x864[] = {
276+
{1600, 1152, 64, 128, 900, 864, 1, 3, VCLK108, /* 75Hz */
277+
(SyncPP | Charx8Dot | NewModeInfo), 75, 1, 0x3B },
278+
{1600, 1152, 64, 128, 900, 864, 1, 3, VCLK108, /* end */
279+
(SyncPP | Charx8Dot | NewModeInfo), 0xFF, 1, 0x3B },
280+
};
281+
275282
/* 16:9 */
276283
static const struct ast_vbios_enhtable res_1360x768[] = {
277284
{1792, 1360, 64, 112, 795, 768, 3, 6, VCLK85_5, /* 60Hz */

0 commit comments

Comments
 (0)