]> git.ipfire.org Git - thirdparty/u-boot.git/commit
riscv: qemu: use device tree passed by prior boot stage
authorLukas Auer <lukas.auer@aisec.fraunhofer.de>
Thu, 22 Nov 2018 10:26:30 +0000 (11:26 +0100)
committerAndes <uboot@andestech.com>
Mon, 26 Nov 2018 05:57:32 +0000 (13:57 +0800)
commit6e10e94ff7f5b88cba036564b7d8ce7b99265157
tree6ecba6a0c087c058d81fac9b702f0aa6d94f7070
parent5d8b2e77119ff85420e3074e5c1ac1f5939a1b75
riscv: qemu: use device tree passed by prior boot stage

QEMU provides a device tree, which is passed to U-Boot using register
a1. We are now able to directly select the device tree with the
configuration CONFIG_OF_PRIOR_STAGE. Replace the hard-coded address in
qemu-riscv with it.

Signed-off-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Rick Chen <rick@andestech.com>
board/emulation/qemu-riscv/qemu-riscv.c
configs/qemu-riscv32_defconfig
configs/qemu-riscv64_defconfig