lib: sbi: Optimize probe of srst/susp
authorXiang W <wxjstz@126.com>
Mon, 15 May 2023 11:12:38 +0000 (13:12 +0200)
committerAnup Patel <anup@brainfault.org>
Sun, 21 May 2023 11:23:38 +0000 (16:53 +0530)
commit767b5fc4180a883497c081a95bb861a68651e9a6
tree6ea6ed3a7fe920dcc3d4ce100ecd28c34cc2748d
parent8b952d4fcd4e1341ed7061bd01b8b12802031ea1
lib: sbi: Optimize probe of srst/susp

No need to do a fully comprehensive count, just find a supported reset
or suspend type

Signed-off-by: Xiang W <wxjstz@126.com>
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
lib/sbi/sbi_ecall_srst.c
lib/sbi/sbi_ecall_susp.c