lib: sbi: Add sbi_hart_reinit() function
authorAnup Patel <anup.patel@wdc.com>
Fri, 5 Feb 2021 12:02:30 +0000 (17:32 +0530)
committerAnup Patel <anup@brainfault.org>
Wed, 3 Mar 2021 04:49:18 +0000 (10:19 +0530)
commit4b05df6700adbc71cfa5f681bf9263447c9140c4
tree21a3cfb8d461016f2595a0a12d4d2b0f148e7a0a
parent6290a22e3428ffe79266310a3a10072efc198e97
lib: sbi: Add sbi_hart_reinit() function

We add sbi_hart_reinit() function which will re-initialize HART CSRs
assuming HART features are already detected. This new function will
be useful in re-initializing HART after it resumes from HSM SUSPENDED
state.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
include/sbi/sbi_hart.h
lib/sbi/sbi_hart.c