]> git.baikalelectronics.ru Git - uboot.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)
commit649f5232075e3707c8fe43eee02d8fe44d162f11
tree83505bfad6d301945a8e3e4d740fc0c8e3712a83
parent839eb5b7f6b34fb53b7f79516b5a873f39f8c932
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