riscv: Move do_reset() to a common place
authorBin Meng <bmeng.cn@gmail.com>
Wed, 26 Sep 2018 13:55:22 +0000 (06:55 -0700)
committerAndes <uboot@andestech.com>
Wed, 3 Oct 2018 09:48:43 +0000 (17:48 +0800)
commitb984ddc2dd332117ef1345255a99dc248c826b74
tree9bf0672db4110fb98a81b3450b5deab784ed5a51
parent510e379c49ba8e0d90960d8cbc2ffb91091e229a
riscv: Move do_reset() to a common place

We don't have a reset method on any RISC-V board yet. Instead of
adding the same 'unsupported' message for each CPU variant it might
make more sense to add a generic do_reset function for all CPU
variants to lib/, similar to the one for ARM (arch/arm/lib/reset.c).

Suggested-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
arch/riscv/cpu/ax25/cpu.c
arch/riscv/cpu/qemu/cpu.c
arch/riscv/lib/Makefile
arch/riscv/lib/reset.c [new file with mode: 0644]