riscv: Move all SMP related SBI calls to SBI_v01
authorAtish Patra <atish.patra@wdc.com>
Tue, 21 Apr 2020 21:51:57 +0000 (14:51 -0700)
committerAndes <uboot@andestech.com>
Tue, 26 May 2020 07:50:08 +0000 (15:50 +0800)
commit7e249bc13aaf204a08e70044ebba04f404f6cf85
treee4adc0b5ff49db7064a82713bd9048378e8ce9dc
parent8c48bb21bd6a1778d1f299de30ff62c07929702b
riscv: Move all SMP related SBI calls to SBI_v01

SMP support for S-mode U-Boot is enabled only if SBI_V01 is enabled.
There is no point in supporting SMP related (IPI and fences) SBI calls
when SBI_V02 is enabled.

Modify all the SMP related SBI calls to be defined only for SBI_V01.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/riscv/include/asm/sbi.h
arch/riscv/lib/sbi.c