drm/ast: Remove unused mclk field

The memory clock is not necessary for the driver. In default for
AST2600 is event incorrect; should be 800 MHz. Remove it.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://lore.kernel.org/r/20250826065032.344412-4-tzimmermann@suse.de
This commit is contained in:
Thomas Zimmermann
2025-08-26 08:49:22 +02:00
parent dc2a40f44e
commit e91153028d
2 changed files with 0 additions and 27 deletions
-1
View File
@@ -173,7 +173,6 @@ struct ast_device {
enum ast_chip chip;
uint32_t dram_type;
uint32_t mclk;
void __iomem *vram;
unsigned long vram_base;
-26
View File
@@ -215,7 +215,6 @@ static int ast_get_dram_info(struct ast_device *ast)
struct drm_device *dev = &ast->base;
struct device_node *np = dev->dev->of_node;
uint32_t mcr_cfg, mcr_scu_mpll, mcr_scu_strap;
uint32_t denum, num, div, ref_pll, dsel;
switch (ast->config_mode) {
case ast_use_dt:
@@ -243,10 +242,6 @@ static int ast_get_dram_info(struct ast_device *ast)
case ast_use_defaults:
default:
ast->dram_type = AST_DRAM_1Gx16;
if (IS_AST_GEN6(ast))
ast->mclk = 800;
else
ast->mclk = 396;
return 0;
}
@@ -300,27 +295,6 @@ static int ast_get_dram_info(struct ast_device *ast)
}
}
if (mcr_scu_strap & 0x2000)
ref_pll = 14318;
else
ref_pll = 12000;
denum = mcr_scu_mpll & 0x1f;
num = (mcr_scu_mpll & 0x3fe0) >> 5;
dsel = (mcr_scu_mpll & 0xc000) >> 14;
switch (dsel) {
case 3:
div = 0x4;
break;
case 2:
case 1:
div = 0x2;
break;
default:
div = 0x1;
break;
}
ast->mclk = ref_pll * (num + 2) / ((denum + 2) * (div * 1000));
return 0;
}