diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2025-07-06 18:26:43 +0200 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2025-07-09 14:36:21 +0200 |
commit | b1ce4ab06f70fa1dea6b4b6a372aa43989c55897 (patch) | |
tree | 4950ce4e98353f14d53d99211174cdbeb7aeb1a8 /drivers/gpu/drm/ast/ast_post.h | |
parent | eb104c69db707ce0208f753a897dadd39f51342f (diff) |
drm/ast: Split ast_set_def_ext_reg() by chip generation
Duplicate ast_set_def_ext_reg() for individual chip generations
and move call it into per-chip source files. Remove the original
code. AST2100 and AST2500 reuse the function from earlier chips.
AST2600 appears to be incorrect as it uses an older function. Keep
this behavior for now.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://lore.kernel.org/r/20250706162816.211552-9-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/ast/ast_post.h')
-rw-r--r-- | drivers/gpu/drm/ast/ast_post.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/ast/ast_post.h b/drivers/gpu/drm/ast/ast_post.h index 44136856952f..9f3108ddeae8 100644 --- a/drivers/gpu/drm/ast/ast_post.h +++ b/drivers/gpu/drm/ast/ast_post.h @@ -41,4 +41,13 @@ void __ast_moutdwm(void __iomem *regs, u32 r, u32 v); bool mmc_test(struct ast_device *ast, u32 datagen, u8 test_ctl); bool mmc_test_burst(struct ast_device *ast, u32 datagen); +/* ast_2000.c */ +void ast_2000_set_def_ext_reg(struct ast_device *ast); + +/* ast_2300.c */ +void ast_2300_set_def_ext_reg(struct ast_device *ast); + +/* ast_2600.c */ +void ast_2600_set_def_ext_reg(struct ast_device *ast); + #endif |