]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drm/ast: Rename ast_init_dram_2300 to ast_post_chip_2300
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 17 Feb 2017 02:51:34 +0000 (13:51 +1100)
committerDave Airlie <airlied@redhat.com>
Tue, 28 Feb 2017 03:18:06 +0000 (13:18 +1000)
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>
drivers/gpu/drm/ast/ast_post.c

index c55067ccb0b140da808117fbe78a41cad77d036f..561fd7d3a0cf34d2e1a9be2ce4041262311a58a4 100644 (file)
@@ -31,7 +31,7 @@
 
 #include "ast_dram_tables.h"
 
-static void ast_init_dram_2300(struct drm_device *dev);
+static void ast_post_chip_2300(struct drm_device *dev);
 
 void ast_enable_vga(struct drm_device *dev)
 {
@@ -381,7 +381,7 @@ void ast_post_gpu(struct drm_device *dev)
 
        if (ast->config_mode == ast_use_p2a) {
                if (ast->chip == AST2300 || ast->chip == AST2400)
-                       ast_init_dram_2300(dev);
+                       ast_post_chip_2300(dev);
                else
                        ast_init_dram_reg(dev);
 
@@ -1589,7 +1589,7 @@ ddr2_init_start:
 
 }
 
-static void ast_init_dram_2300(struct drm_device *dev)
+static void ast_post_chip_2300(struct drm_device *dev)
 {
        struct ast_private *ast = dev->dev_private;
        struct ast2300_dram_param param;