aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2017-02-16 21:51:34 -0500
committerDave Airlie <airlied@redhat.com>2017-02-27 22:18:06 -0500
commitd95618ef0a05236a2642d1a829fffd90de88e5f0 (patch)
tree170501dd31c4f76f82e8004e7dc64ef55f288743 /drivers/gpu
parentb368e53aae7694e0fb2bdec9667c9acc5108b629 (diff)
drm/ast: Rename ast_init_dram_2300 to ast_post_chip_2300
The function does more than initializing the DRAM and in turns calls other functions to do the actual init. This will keeping things more consistent with the upcoming AST2500 POST code. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: Joel Stanley <joel@jms.id.au> Tested-by: Y.C. Chen <yc_chen@aspeedtech.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/ast/ast_post.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/ast/ast_post.c b/drivers/gpu/drm/ast/ast_post.c
index c55067ccb0b1..561fd7d3a0cf 100644
--- a/drivers/gpu/drm/ast/ast_post.c
+++ b/drivers/gpu/drm/ast/ast_post.c
@@ -31,7 +31,7 @@
31 31
32#include "ast_dram_tables.h" 32#include "ast_dram_tables.h"
33 33
34static void ast_init_dram_2300(struct drm_device *dev); 34static void ast_post_chip_2300(struct drm_device *dev);
35 35
36void ast_enable_vga(struct drm_device *dev) 36void ast_enable_vga(struct drm_device *dev)
37{ 37{
@@ -381,7 +381,7 @@ void ast_post_gpu(struct drm_device *dev)
381 381
382 if (ast->config_mode == ast_use_p2a) { 382 if (ast->config_mode == ast_use_p2a) {
383 if (ast->chip == AST2300 || ast->chip == AST2400) 383 if (ast->chip == AST2300 || ast->chip == AST2400)
384 ast_init_dram_2300(dev); 384 ast_post_chip_2300(dev);
385 else 385 else
386 ast_init_dram_reg(dev); 386 ast_init_dram_reg(dev);
387 387
@@ -1589,7 +1589,7 @@ ddr2_init_start:
1589 1589
1590} 1590}
1591 1591
1592static void ast_init_dram_2300(struct drm_device *dev) 1592static void ast_post_chip_2300(struct drm_device *dev)
1593{ 1593{
1594 struct ast_private *ast = dev->dev_private; 1594 struct ast_private *ast = dev->dev_private;
1595 struct ast2300_dram_param param; 1595 struct ast2300_dram_param param;