]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: prior_stage_fdt_address should only be used when OF_PRIOR_STAGE is enabled
authorRick Chen <rick@andestech.com>
Tue, 30 Apr 2019 05:49:35 +0000 (13:49 +0800)
committerAndes <uboot@andestech.com>
Thu, 9 May 2019 08:46:46 +0000 (16:46 +0800)
commitf9281b8905d50d1f284df92f53534ffb8d2558a8
tree83505bfad6d301945a8e3e4d740fc0c8e3712a83
parente7e47f6391d13bd7e6d5dd705c548d0260a88c55
riscv: prior_stage_fdt_address should only be used when OF_PRIOR_STAGE is enabled

This patch will fix prior_stage_fdt_address write failure problem, when
AE350 boots from flash.

When AE350 boots from flash, prior_stage_fdt_address will be flash
address, we shall avoid it to be written.

Signed-off-by: Rick Chen <rick@andestech.com>
Cc: Greentime Hu <greentime@andestech.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
arch/riscv/cpu/cpu.c
arch/riscv/cpu/start.S