diff options
author | Simon Glass | 2020-05-10 14:16:46 -0600 |
---|---|---|
committer | Tom Rini | 2020-06-25 13:24:12 -0400 |
commit | 3e1cca2a2f6245a98b86e23222908dee234542e2 (patch) | |
tree | 9b776b0910581868203a01584dfafc47857303ff | |
parent | 9e24e10b7bfe1fc7ca3971dbb5c8e3e781dd6db3 (diff) |
bdinfo: ppc: Drop arch-specific print_baudrate()
This function outputs the same basic info. Since the baud rate is commonly
115200 these is often no difference. Drop the arch-specific code and
inline it to avoid a one-line function.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
-rw-r--r-- | cmd/bdinfo.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 77a0cf14e08..60bfb4e1da9 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -139,15 +139,6 @@ static void print_eth_ip_addr(void) #endif } -static void print_baudrate(void) -{ -#if defined(CONFIG_PPC) - printf("baudrate = %6u bps\n", gd->baudrate); -#else - printf("baudrate = %u bps\n", gd->baudrate); -#endif -} - void __weak board_detail(void) { /* Please define board_detail() for your PPC platform */ @@ -167,7 +158,7 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) print_bi_mem(bd); print_bi_flash(bd); print_eth_ip_addr(); - print_baudrate(); + printf("baudrate = %u bps\n", gd->baudrate); print_num("relocaddr", gd->relocaddr); print_num("reloc off", gd->reloc_off); print_cpu_word_size(); |