riscv: Remove OF_PRIOR_STAGE from RISC-V boards
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Mon, 11 Oct 2021 21:00:13 +0000 (00:00 +0300)
committerTom Rini <trini@konsulko.com>
Mon, 18 Oct 2021 17:19:50 +0000 (13:19 -0400)
commit2e8d2f88439d7437f04a6af1d206270f9a2240d3
tree696b2966fe4df48f0f2a0fcdc76713f4f17644ec
parentd990f7d75d3dcf45a9220abc900495f00792f414
riscv: Remove OF_PRIOR_STAGE from RISC-V boards

At some point back in 2018 prior_stage_fdt_address and OF_PRIOR_STAGE got
introduced,  in order to support a DTB handed over by an earlier stage boo
loader.  However we have another option in the Kconfig (OF_BOARD) which has
identical semantics.

On RISC-V some of the boards pick up the DTB from a1 and copy it in their
private gd_t.  Apart from that they copy it to prior_stage_fdt_address,  if
the Kconfig option is selected, which is unnecessary.

So let's switch the config option for those boards to OF_BOARD and define
the required board_fdt_blob_setup() for them.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
16 files changed:
arch/riscv/cpu/cpu.c
arch/riscv/cpu/start.S
arch/riscv/dts/binman.dtsi
board/AndesTech/ax25-ae350/ax25-ae350.c
board/emulation/qemu-riscv/qemu-riscv.c
configs/ae350_rv32_defconfig
configs/ae350_rv32_spl_defconfig
configs/ae350_rv64_defconfig
configs/ae350_rv64_spl_defconfig
configs/qemu-riscv32_defconfig
configs/qemu-riscv32_smode_defconfig
configs/qemu-riscv32_spl_defconfig
configs/qemu-riscv64_defconfig
configs/qemu-riscv64_smode_defconfig
configs/qemu-riscv64_spl_defconfig
dts/Kconfig