]> git.baikalelectronics.ru Git - uboot.git/commit
riscv: Add boot hartid to device tree
authorAtish Patra <atish.patra@wdc.com>
Tue, 21 Apr 2020 18:14:59 +0000 (11:14 -0700)
committerAndes <uboot@andestech.com>
Thu, 23 Apr 2020 02:14:16 +0000 (10:14 +0800)
commitdca9a8b4cf0f0a63c6b9df40f18c5d6ca82e3e60
treece82a93610acdd6250c6c3d7cb687cde5042b852
parentc2174f13c87eb18f7e61db2eb979e20e708a42f0
riscv: Add boot hartid to device tree

Linux booting protocol mandates that register "a0" contains the hartid.
However, U-Boot can not pass the hartid via a0 during standard UEFI
protocol. DT nodes are commonly used to pass such information to the OS.

Add a DT node under chosen node to indicate the boot hartid. EFI stub
in Linux kernel will parse this node and pass it to the real kernel
in "a0" before jumping to it.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Rick Chen <rick@andestech.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
arch/riscv/lib/bootm.c