]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/ast: Move DRAM info next to its only user
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 26 Aug 2025 06:49:24 +0000 (08:49 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 4 Sep 2025 10:29:41 +0000 (12:29 +0200)
commit6d580cf8093fc640e6e4cef3932ef176f1ea1c87
tree61129b0add19a3e772b7ddeacb65ca4780a3927f
parentdb216056a63b9ca415b72963605defad8107d6fc
drm/ast: Move DRAM info next to its only user

The only place in the ast driver that uses the DRAM type is the
P2A DRAM initialization for Gen2 and Gen3 of the chip. Condense
the code in ast_get_dram_info() to exactly this use case and move
it into the Gen's custom source file. Remove the field dram_type
from struct ast_device.

The AST_DRAM_ constants are also used in Gen4 POST helpers, but
independently from the dram_type field. No changes there.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://lore.kernel.org/r/20250826065032.344412-6-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_2100.c
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_main.c