riscv: Clean up initialization in Andes PLIC
authorSean Anderson <seanga2@gmail.com>
Mon, 28 Sep 2020 14:52:25 +0000 (10:52 -0400)
committerAndes <uboot@andestech.com>
Wed, 30 Sep 2020 00:54:46 +0000 (08:54 +0800)
commit15943bb558d2fef6ae6d2713e252db17754d207d
tree9345b19fd7184cb7824e6dbb7eb439d16c054dfd
parente86463f8e3a5006b43985c474ac74d0caabd0fd4
riscv: Clean up initialization in Andes PLIC

This merges the PLIC initialization code from two functions into one.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Bin Meng <bin.meng@windriver.com>
arch/riscv/lib/andes_plic.c