Vitaly Wool f105aa940e
riscv: add BUILTIN_DTB support for MMU-enabled targets
Sometimes, especially in a production system we may not want to
use a "smart bootloader" like u-boot to load kernel, ramdisk and
device tree from a filesystem on eMMC, but rather load the kernel
from a NAND partition and just run it as soon as we can, and in
this case it is convenient to have device tree compiled into the
kernel binary. Since this case is not limited to MMU-less systems,
let's support it for these which have MMU enabled too.

While at it, provide __dtb_start as a parameter to setup_vm() in
BUILTIN_DTB case, so we don't have to duplicate BUILTIN_DTB specific
processing in MMU-enabled and MMU-disabled versions of setup_vm().

Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
2021-02-18 23:17:54 -08:00
..
2021-01-14 15:09:08 -08:00
2020-03-31 11:28:30 -07:00
2020-03-31 11:28:30 -07:00
2020-10-02 14:31:28 -07:00
2020-10-02 14:30:57 -07:00
2020-06-09 19:11:24 -07:00
2021-01-14 15:09:06 -08:00
2021-01-14 15:09:12 -08:00
2021-01-14 15:09:08 -08:00
2021-01-07 19:00:50 -08:00
2021-01-14 15:09:11 -08:00