riscv: Introduce CONFIG_XIP to support booting from flash
authorRick Chen <rick@andestech.com>
Tue, 30 Apr 2019 05:49:33 +0000 (13:49 +0800)
committerAndes <uboot@andestech.com>
Thu, 9 May 2019 08:46:46 +0000 (16:46 +0800)
commitbdce38965e79143ed58bf1c6d39c650ff3dfefd1
treedfb6c4288f22c176838ace87fed0949dd747a7dc
parent8aa278df0a338dfc05c731589051ab80373925c5
riscv: Introduce CONFIG_XIP to support booting from flash

When U-Boot boots from flash, during the boot process,
hart_lottery and available_harts_lock variable addresses
point to flash which is not writable. This causes boot
failures on AE350. Introduce a config option CONFIG_XIP
to support such configuration.

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