aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorBin Meng <bin.meng@windriver.com>2021-01-31 20:36:05 +0800
committerSimon Glass <sjg@chromium.org>2021-02-03 03:38:41 -0700
commit98592c7509278e73b2d56c5e307015d6f33c0f34 (patch)
tree809adad6c46716e8d0cf73e25b679298e3b45b2f /arch/powerpc
parent86c915628d582a36029ff1f6c4443b6e81e0d51f (diff)
downloadu-boot-98592c7509278e73b2d56c5e307015d6f33c0f34.zip
u-boot-98592c7509278e73b2d56c5e307015d6f33c0f34.tar.gz
u-boot-98592c7509278e73b2d56c5e307015d6f33c0f34.tar.bz2
bdinfo: Rename function names to be clearer
At present we have bdinfo_print_num() to print unsigned long numbers. We also have print_phys_addr() which accept numbers that might be 64-bit on a 32-bit platform. Rename these 2 functions to be clearer: bdinfo_print_num() => bdinfo_print_num_l() print_phys_addr() => bdinfo_print_num_ll() While we are here, make bdinfo_print_num_ll() public so that it can be used outside cmd/bdinfo.c in the future. Signed-off-by: Bin Meng <bin.meng@windriver.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/lib/bdinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/lib/bdinfo.c b/arch/powerpc/lib/bdinfo.c
index 36c9c99..b14e75b 100644
--- a/arch/powerpc/lib/bdinfo.c
+++ b/arch/powerpc/lib/bdinfo.c
@@ -47,9 +47,9 @@ void arch_print_bdinfo(void)
bdinfo_print_mhz("busfreq", bd->bi_busfreq);
#if defined(CONFIG_MPC8xx) || defined(CONFIG_E500)
- bdinfo_print_num("immr_base", bd->bi_immr_base);
+ bdinfo_print_num_l("immr_base", bd->bi_immr_base);
#endif
- bdinfo_print_num("bootflags", bd->bi_bootflags);
+ bdinfo_print_num_l("bootflags", bd->bi_bootflags);
bdinfo_print_mhz("intfreq", bd->bi_intfreq);
#ifdef CONFIG_ENABLE_36BIT_PHYS
if (IS_ENABLED(CONFIG_PHYS_64BIT))