Commit 0f336e9c authored by Thomas Zimmermann's avatar Thomas Zimmermann
Browse files

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: default avatarThomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: default avatarJocelyn Falempe <jfalempe@redhat.com>
Link: https://lore.kernel.org/r/20250706162816.211552-5-tzimmermann@suse.de
parent 3c1ec4e8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 \
+1295 −0

File added.

Preview size limit exceeded, changes collapsed.

+3 −0
Original line number Diff line number Diff line
@@ -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);
+3 −1262

File changed.

Preview size limit exceeded, changes collapsed.