diff options
author | Simon Glass <sjg@chromium.org> | 2020-05-10 14:16:55 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-06-25 13:24:12 -0400 |
commit | 655f17ff7d8631ca9344a4bff5918243e5bfed37 (patch) | |
tree | 712d421f44af057ac44c0cc9adca026e530b5cfa /include | |
parent | 8a2ba581dc27d2ae1f22eae9d6fee0ec45e075f7 (diff) | |
download | u-boot-655f17ff7d8631ca9344a4bff5918243e5bfed37.tar.gz u-boot-655f17ff7d8631ca9344a4bff5918243e5bfed37.tar.xz u-boot-655f17ff7d8631ca9344a4bff5918243e5bfed37.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/init.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/init.h b/include/init.h index b5a167b6ed..af4deed566 100644 --- a/include/init.h +++ b/include/init.h @@ -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 */ |