]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: add RISC-V fields to bdinfo command
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 7 Jun 2024 08:41:17 +0000 (10:41 +0200)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Mon, 22 Jul 2024 03:15:11 +0000 (11:15 +0800)
commit66b5ee9c558ea5a4360a9bfe0bf894098ff69f7e
tree5d1c6136468779f2f668c4a6175389e97b4bbd39
parent5024a96db8ea6ff2e814f4599af9e5faf09296b7
riscv: add RISC-V fields to bdinfo command

The firmware invoking main U-Boot uses

* a0 to pass the boot hart
* a1 to pass a device-tree

Let the bdinfo command print this information, e.g.

    boot hart   = 0x000000000000001b
    firmware fdt= 0x0000000087e00000

The firmware fdt field will only be printed if it is non-zero.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/lib/Makefile
arch/riscv/lib/bdinfo.c [new file with mode: 0644]