]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/ast: Move Gen2+ and Gen1 POST code to separate source files
authorThomas Zimmermann <tzimmermann@suse.de>
Sun, 6 Jul 2025 16:26:40 +0000 (18:26 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 9 Jul 2025 12:36:18 +0000 (14:36 +0200)
commit1be08550e6e72e8ab29e909db266130b59a47277
treede841e8a3c66a9966ce7e4fa6d56a93eef2ebb83
parent0f336e9cffeef3c0655aca400a4574e0a140deeb
drm/ast: Move Gen2+ and Gen1 POST code to separate source files

Move POST code for Gen2+ and Gen1 to separate source files and
hide it in ast_2100_post() ans ast_2000_post(). With P2A
configuration, the POST logic for these chip generations has
been mingled in ast_init_dram_reg(). Hence, handle all generations
in a single change. The split simplifies both cases. Also move
the DRAM init tables for each Gen into the respective source
file. No changes to the overall logic.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://lore.kernel.org/r/20250706162816.211552-6-tzimmermann@suse.de
drivers/gpu/drm/ast/Makefile
drivers/gpu/drm/ast/ast_2000.c [new file with mode: 0644]
drivers/gpu/drm/ast/ast_2100.c [new file with mode: 0644]
drivers/gpu/drm/ast/ast_dram_tables.h
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_post.c