Files
u-boot/arch/riscv/lib/bdinfo.c
Simon Glass 0f640f96c8 Make the bdinfo printing-functions more generic
The bdinfo command makes use of quite a few functions which show a label
followed by a value, on a single line.

This sort of thing is generally useful outside of bdinfo, so move it to
a generic place. Use 'l' (for label) as the prefix.

The margin is still hard-coded to 12, which seems a reasonable limit for
a label.

Signed-off-by: Simon Glass <sjg@chromium.org>
2025-07-09 23:26:02 +02:00

20 lines
408 B
C

// SPDX-License-Identifier: GPL-2.0-or-later
/*
* RISC-V-specific information for the 'bdinfo' command
*/
#include <display_options.h>
#include <init.h>
#include <asm/global_data.h>
DECLARE_GLOBAL_DATA_PTR;
void arch_print_bdinfo(void)
{
lprint_num_l("boot hart", gd->arch.boot_hart);
if (gd->arch.firmware_fdt_addr)
lprint_num_ll("firmware fdt",
(long long)gd->arch.firmware_fdt_addr);
}