Heinrich Schuchardt | 946c3fc | 2024-06-07 10:41:17 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
2 | /* | ||||
3 | * RISC-V-specific information for the 'bdinfo' command | ||||
4 | */ | ||||
5 | |||||
6 | #include <init.h> | ||||
7 | #include <asm/global_data.h> | ||||
8 | |||||
9 | DECLARE_GLOBAL_DATA_PTR; | ||||
10 | |||||
11 | void arch_print_bdinfo(void) | ||||
12 | { | ||||
13 | bdinfo_print_num_l("boot hart", gd->arch.boot_hart); | ||||
14 | |||||
15 | if (gd->arch.firmware_fdt_addr) | ||||
16 | bdinfo_print_num_ll("firmware fdt", | ||||
17 | (long long)gd->arch.firmware_fdt_addr); | ||||
18 | } |