u-boot-brain/arch/riscv/lib
Atish Patra 5370478d1c 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>
2020-04-23 10:14:16 +08:00
..
andes_plic.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
andes_plmt.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
asm-offsets.c riscv: Introduce CONFIG_XIP to support booting from flash 2019-05-09 16:46:46 +08:00
boot.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bootm.c riscv: Add boot hartid to device tree 2020-04-23 10:14:16 +08:00
cache.c common: Move some cache and MMU functions out of common.h 2019-12-02 18:23:55 -05:00
crt0_riscv_efi.S efi_loader: use predefined constants in crt0_*_efi.S 2019-07-16 22:17:14 +00:00
elf_riscv32_efi.lds SPDX: Convert single license tags to Linux Kernel style 2018-05-29 14:44:21 +08:00
elf_riscv64_efi.lds SPDX: Convert single license tags to Linux Kernel style 2018-05-29 14:44:21 +08:00
image.c RISC-V: Align boot image header with Linux 2019-10-18 09:04:19 +08:00
interrupts.c riscv: Add option to print registers on exception 2020-02-10 14:51:08 +08:00
Makefile riscv: Introduce SPL_SMP Kconfig option for U-Boot SPL 2020-04-23 10:14:06 +08:00
mkimage_fit_opensbi.sh riscv: add a generic FIT generator script 2019-08-26 16:07:42 +08:00
rdtime.c riscv: Implement riscv_get_time() API using rdtime instruction 2018-12-18 09:56:27 +08:00
reloc_riscv_efi.c riscv: Remove unused _relocate arguments 2018-07-19 16:31:37 -04:00
reset.c common: Move hang() to the same header as panic() 2020-01-17 17:53:40 -05:00
sbi_ipi.c riscv: Avoid calling sbi_clear_ipi() 2020-03-17 11:29:40 +08:00
sbi.c riscv: Implement new SBI v0.2 extensions 2020-03-17 11:29:54 +08:00
setjmp.S riscv: rename CPU_RISCV_32/64 to match architecture names ARCH_RV32I/64I 2018-11-26 13:57:29 +08:00
sifive_clint.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
smp.c riscv: add option to wait for ack from secondary harts in smp functions 2019-12-10 08:23:10 +08:00
spl.c riscv: Introduce SPL_SMP Kconfig option for U-Boot SPL 2020-04-23 10:14:06 +08:00