mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
bdinfo: Export some basic printing functions
At present the functions to print a number and a frequency are static. We want to move some of the code in here to an arch-specific file. For consistency that code should use these same functions. So export them with an appropriate name. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
@@ -261,6 +261,12 @@ void relocate_code(ulong start_addr_sp, struct global_data *new_gd,
|
||||
__attribute__ ((noreturn));
|
||||
#endif
|
||||
|
||||
/* Print a numeric value (for use in arch_print_bdinfo()) */
|
||||
void bdinfo_print_num(const char *name, ulong value);
|
||||
|
||||
/* Print a clock speed in MHz */
|
||||
void bdinfo_print_mhz(const char *name, unsigned long hz);
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
/* Put only stuff here that the assembler can digest */
|
||||
|
||||
|
Reference in New Issue
Block a user