lib: sbi: Extend sbi_hsm_hart_started_mask() for domains
authorAnup Patel <anup.patel@wdc.com>
Thu, 24 Sep 2020 12:19:27 +0000 (17:49 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 20 Oct 2020 06:02:40 +0000 (11:32 +0530)
commite73b92d8623e9599245c6921025cfe0b40141f07
tree0b0d25c7e5032c385c73f99a6fed8a174098d6b2
parentb1678af210dc4b4e6d586d6d96617e9641618994
lib: sbi: Extend sbi_hsm_hart_started_mask() for domains

The sbi_hsm_hart_started_mask() API should take one more parameter
to allow caller specify domain under which started_mask is being
generated. Further, the sbi_hsm_hart_started_mask() depends on
sbi_hsm_hart_get_state() which also should return HART state under
specified domain.

This patch updates both sbi_hsm_hart_started_mask() and
sbi_hsm_hart_get_state() as-per above.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
include/sbi/sbi_hsm.h
lib/sbi/sbi_ecall_hsm.c
lib/sbi/sbi_ecall_legacy.c
lib/sbi/sbi_hsm.c
lib/sbi/sbi_ipi.c
lib/sbi/sbi_system.c