diff options
Diffstat (limited to 'drivers/gpu/drm/ast/ast_post.c')
-rw-r--r-- | drivers/gpu/drm/ast/ast_post.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/drivers/gpu/drm/ast/ast_post.c b/drivers/gpu/drm/ast/ast_post.c index 810c51d92b99..5331ee1df086 100644 --- a/drivers/gpu/drm/ast/ast_post.c +++ b/drivers/gpu/drm/ast/ast_post.c | |||
@@ -379,12 +379,20 @@ void ast_post_gpu(struct drm_device *dev) | |||
379 | ast_open_key(ast); | 379 | ast_open_key(ast); |
380 | ast_set_def_ext_reg(dev); | 380 | ast_set_def_ext_reg(dev); |
381 | 381 | ||
382 | if (ast->chip == AST2300 || ast->chip == AST2400) | 382 | if (ast->DisableP2A == false) |
383 | ast_init_dram_2300(dev); | 383 | { |
384 | else | 384 | if (ast->chip == AST2300 || ast->chip == AST2400) |
385 | ast_init_dram_reg(dev); | 385 | ast_init_dram_2300(dev); |
386 | else | ||
387 | ast_init_dram_reg(dev); | ||
386 | 388 | ||
387 | ast_init_3rdtx(dev); | 389 | ast_init_3rdtx(dev); |
390 | } | ||
391 | else | ||
392 | { | ||
393 | if (ast->tx_chip_type != AST_TX_NONE) | ||
394 | ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xa3, 0xcf, 0x80); /* Enable DVO */ | ||
395 | } | ||
388 | } | 396 | } |
389 | 397 | ||
390 | /* AST 2300 DRAM settings */ | 398 | /* AST 2300 DRAM settings */ |