diff options
author | Dave Airlie <airlied@redhat.com> | 2014-03-27 19:18:45 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-05-18 21:13:55 -0400 |
commit | 1453bf4c48952c249071c965c61932ac9c5450f6 (patch) | |
tree | 3ab9eddccccdf2bab1d465dab880eeb2a2f2bf4b /drivers/gpu/drm/ast/ast_mode.c | |
parent | f1f62f2ccba0967c493ac9ad31c9b04d29688aaa (diff) |
drm/ast: add AST 2400 support.
This is ported from the userspace driver.
Untested on any ast2400 hw so far.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/ast/ast_mode.c')
-rw-r--r-- | drivers/gpu/drm/ast/ast_mode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c index 72bec23b66f4..e9a14a14a029 100644 --- a/drivers/gpu/drm/ast/ast_mode.c +++ b/drivers/gpu/drm/ast/ast_mode.c | |||
@@ -398,7 +398,7 @@ static void ast_set_ext_reg(struct drm_crtc *crtc, struct drm_display_mode *mode | |||
398 | ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xa8, 0xfd, jregA8); | 398 | ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xa8, 0xfd, jregA8); |
399 | 399 | ||
400 | /* Set Threshold */ | 400 | /* Set Threshold */ |
401 | if (ast->chip == AST2300) { | 401 | if (ast->chip == AST2300 || ast->chip == AST2400) { |
402 | ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa7, 0x78); | 402 | ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa7, 0x78); |
403 | ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa6, 0x60); | 403 | ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa6, 0x60); |
404 | } else if (ast->chip == AST2100 || | 404 | } else if (ast->chip == AST2100 || |
@@ -771,7 +771,7 @@ static int ast_mode_valid(struct drm_connector *connector, | |||
771 | if ((mode->hdisplay == 1600) && (mode->vdisplay == 900)) | 771 | if ((mode->hdisplay == 1600) && (mode->vdisplay == 900)) |
772 | return MODE_OK; | 772 | return MODE_OK; |
773 | 773 | ||
774 | if ((ast->chip == AST2100) || (ast->chip == AST2200) || (ast->chip == AST2300) || (ast->chip == AST1180)) { | 774 | if ((ast->chip == AST2100) || (ast->chip == AST2200) || (ast->chip == AST2300) || (ast->chip == AST2400) || (ast->chip == AST1180)) { |
775 | if ((mode->hdisplay == 1920) && (mode->vdisplay == 1080)) | 775 | if ((mode->hdisplay == 1920) && (mode->vdisplay == 1080)) |
776 | return MODE_OK; | 776 | return MODE_OK; |
777 | 777 | ||