Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/ast: Declare helpers for POST in header

Provide POST helpers in header file before splitting up the AST
POST code.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://lore.kernel.org/r/20250706162816.211552-2-tzimmermann@suse.de

+21 -5
+5 -5
drivers/gpu/drm/ast/ast_post.c
··· 33 33 34 34 #include "ast_dram_tables.h" 35 35 #include "ast_drv.h" 36 + #include "ast_post.h" 36 37 37 38 static void ast_post_chip_2300(struct ast_device *ast); 38 39 static void ast_post_chip_2500(struct ast_device *ast); ··· 76 75 ast_set_index_reg_mask(ast, AST_IO_VGACRI, 0xb6, 0xff, reg); 77 76 } 78 77 79 - static u32 __ast_mindwm(void __iomem *regs, u32 r) 78 + u32 __ast_mindwm(void __iomem *regs, u32 r) 80 79 { 81 80 u32 data; 82 81 ··· 90 89 return __ast_read32(regs, 0x10000 + (r & 0x0000ffff)); 91 90 } 92 91 93 - static void __ast_moutdwm(void __iomem *regs, u32 r, u32 v) 92 + void __ast_moutdwm(void __iomem *regs, u32 r, u32 v) 94 93 { 95 94 u32 data; 96 95 ··· 439 438 0x7C61D253 440 439 }; 441 440 442 - static bool mmc_test(struct ast_device *ast, u32 datagen, u8 test_ctl) 441 + bool mmc_test(struct ast_device *ast, u32 datagen, u8 test_ctl) 443 442 { 444 443 u32 data, timeout; 445 444 ··· 479 478 return data; 480 479 } 481 480 482 - 483 - static bool mmc_test_burst(struct ast_device *ast, u32 datagen) 481 + bool mmc_test_burst(struct ast_device *ast, u32 datagen) 484 482 { 485 483 return mmc_test(ast, datagen, 0xc1); 486 484 }
+16
drivers/gpu/drm/ast/ast_post.h
··· 1 + /* SPDX-License-Identifier: MIT */ 2 + 3 + #ifndef AST_POST_H 4 + #define AST_POST_H 5 + 6 + #include <linux/types.h> 7 + 8 + struct ast_device; 9 + 10 + u32 __ast_mindwm(void __iomem *regs, u32 r); 11 + void __ast_moutdwm(void __iomem *regs, u32 r, u32 v); 12 + 13 + bool mmc_test(struct ast_device *ast, u32 datagen, u8 test_ctl); 14 + bool mmc_test_burst(struct ast_device *ast, u32 datagen); 15 + 16 + #endif