summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/ast/ast_main.c
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2025-08-26 09:49:23 +0300
committerThomas Zimmermann <tzimmermann@suse.de>2025-09-04 13:29:41 +0300
commitdb216056a63b9ca415b72963605defad8107d6fc (patch)
tree348b49e402d71ff3037662a7621cd7665dab087a /drivers/gpu/drm/ast/ast_main.c
parente91153028ddba13ec545afcf9b6b350191ee4bf7 (diff)
downloadlinux-db216056a63b9ca415b72963605defad8107d6fc.tar.xz
drm/ast: Remove unused SCU-MPLL and SCU-STRAP values
The ast driver used SCU-MPLL and SCU-STRAP to compute the memory clock. Remove the now unused values. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com> Link: https://lore.kernel.org/r/20250826065032.344412-5-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/ast/ast_main.c')
-rw-r--r--drivers/gpu/drm/ast/ast_main.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/gpu/drm/ast/ast_main.c b/drivers/gpu/drm/ast/ast_main.c
index 492cc8461eb0..41ff880cfdec 100644
--- a/drivers/gpu/drm/ast/ast_main.c
+++ b/drivers/gpu/drm/ast/ast_main.c
@@ -214,7 +214,7 @@ 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 mcr_cfg;
switch (ast->config_mode) {
case ast_use_dt:
@@ -222,22 +222,13 @@ static int ast_get_dram_info(struct ast_device *ast)
* If some properties are missing, use reasonable
* defaults for GEN5
*/
- if (of_property_read_u32(np, "aspeed,mcr-configuration",
- &mcr_cfg))
+ if (of_property_read_u32(np, "aspeed,mcr-configuration", &mcr_cfg))
mcr_cfg = 0x00000577;
- if (of_property_read_u32(np, "aspeed,mcr-scu-mpll",
- &mcr_scu_mpll))
- mcr_scu_mpll = 0x000050C0;
- if (of_property_read_u32(np, "aspeed,mcr-scu-strap",
- &mcr_scu_strap))
- mcr_scu_strap = 0;
break;
case ast_use_p2a:
ast_write32(ast, 0xf004, 0x1e6e0000);
ast_write32(ast, 0xf000, 0x1);
mcr_cfg = ast_read32(ast, 0x10004);
- mcr_scu_mpll = ast_read32(ast, 0x10120);
- mcr_scu_strap = ast_read32(ast, 0x10170);
break;
case ast_use_defaults:
default: