riscv: lib: Add a default implementation of board_fdt_blob_setup
authorYao Zi <ziyao@disroot.org>
Fri, 7 Mar 2025 13:13:41 +0000 (13:13 +0000)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Fri, 25 Apr 2025 08:30:54 +0000 (16:30 +0800)
commitd0969a6b64edca8f1bf85ef14c186ff7a4db3f8d
tree7f6a664667fa4493d046716af71c2b48ea33a59e
parent10f48365112b164bee6564033ab682747efcb483
riscv: lib: Add a default implementation of board_fdt_blob_setup

It's common for S-Mode proper U-Boot to retrieve a FDT blob along with
taking control from SBI firmware. Add a weak version of
board_fdt_blob_setup to make use of it by default, avoiding copy-pasting
similar functions among boards.

Signed-off-by: Yao Zi <ziyao@disroot.org>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/lib/Makefile
arch/riscv/lib/board.c [new file with mode: 0644]