drm/ast: Move Gen4+ POST code to separate source file

Move POST code for Gen4+ to separate source file and hide it in
ast_2300_post(). With P2A configuration, it performs a full board
POST and enables the transmitter chip; otherwise it only enables the
transmitter chip.

Also fix coding style in several places. 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-5-tzimmermann@suse.de
This commit is contained in:
Thomas Zimmermann
2025-07-06 18:26:39 +02:00
parent 3c1ec4e8cb
commit 0f336e9cff
4 changed files with 1302 additions and 1262 deletions

View File

@@ -4,6 +4,7 @@
# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
ast-y := \
ast_2300.o \
ast_2500.o \
ast_2600.o \
ast_cursor.o \

File diff suppressed because it is too large Load Diff

View File

@@ -417,6 +417,9 @@ struct ast_crtc_state {
int ast_mm_init(struct ast_device *ast);
/* ast_2300.c */
int ast_2300_post(struct ast_device *ast);
/* ast_2500.c */
void ast_2500_patch_ahb(void __iomem *regs);
int ast_2500_post(struct ast_device *ast);

File diff suppressed because it is too large Load Diff