u-boot/arch
Bin Meng a0018fc820 riscv: Make SiFive HiFive Unleashed board boot again
Commit 40686c394e ("riscv: Clean up IPI initialization code")
caused U-Boot failed to boot on SiFive HiFive Unleashed board.

The codes inside arch_cpu_init_dm() may call U-Boot timer APIs
before the call to riscv_init_ipi(). At that time the timer register
base (e.g.: the SiFive CLINT device in this case) is unknown yet.

It might be the name riscv_init_ipi() that misleads people to only
consider it is related to IPI, but in fact the timer capability is
provided by the same SiFive CLINT device that provides the IPI.
Timer capability is needed for both UP and SMP.

Considering that the original refactor does have benefits, that it
makes the IPI code more similar to U-Boot initialization idioms.
It also removes some quite ugly macros. Let's do the minimal revert
instead of a complete revert, plus a fixes to arch_cpu_init_dm() to
consider the SPL case.

Fixes: 40686c394e ("riscv: Clean up IPI initialization code")
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Tested-by: Leo Liang <ycliang@andestech.com>
2020-07-24 14:55:04 +08:00
..
arc common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
arm binman support for FIT 2020-07-23 15:56:06 -04:00
m68k treewide: convert bd_t to struct bd_info manually 2020-07-17 10:46:44 -04:00
microblaze Remove CROSS_COMPILE default from arch/*/config.mk 2020-07-01 10:11:03 -04:00
mips mips: octeon: Add minimal Octeon 3 EBB7304 EVK support 2020-07-18 15:47:50 +02:00
nds32 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
nios2 cpu: Convert the methods to use a const udevice * 2020-07-20 11:37:47 -06:00
powerpc treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
riscv riscv: Make SiFive HiFive Unleashed board boot again 2020-07-24 14:55:04 +08:00
sandbox test: Add tests for SOC uclass 2020-07-20 11:37:47 -06:00
sh treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
x86 cpu: Convert the methods to use a const udevice * 2020-07-20 11:37:47 -06:00
xtensa Remove CROSS_COMPILE default from arch/*/config.mk 2020-07-01 10:11:03 -04:00
.gitignore
Kconfig acpi: Enable ACPI table generation by default on x86 2020-07-17 14:32:24 +08:00
u-boot-elf.lds arch: Add explicit linker script for u-boot-elf 2020-04-03 11:52:55 -04:00