Commit d95618ef authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Dave Airlie

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: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: default avatarJoel Stanley <joel@jms.id.au>
Tested-by: default avatarY.C. Chen <yc_chen@aspeedtech.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent b368e53a
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include "ast_dram_tables.h" #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) void ast_enable_vga(struct drm_device *dev)
{ {
...@@ -381,7 +381,7 @@ void ast_post_gpu(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->config_mode == ast_use_p2a) {
if (ast->chip == AST2300 || ast->chip == AST2400) if (ast->chip == AST2300 || ast->chip == AST2400)
ast_init_dram_2300(dev); ast_post_chip_2300(dev);
else else
ast_init_dram_reg(dev); ast_init_dram_reg(dev);
...@@ -1589,7 +1589,7 @@ static void ddr2_init(struct ast_private *ast, struct ast2300_dram_param *param) ...@@ -1589,7 +1589,7 @@ static void ddr2_init(struct ast_private *ast, struct ast2300_dram_param *param)
} }
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 ast_private *ast = dev->dev_private;
struct ast2300_dram_param param; struct ast2300_dram_param param;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment