lib: sbi: Add function to register new domain
authorAnup Patel <anup.patel@wdc.com>
Sun, 13 Dec 2020 09:39:42 +0000 (15:09 +0530)
committerAnup Patel <anup@brainfault.org>
Wed, 16 Dec 2020 04:40:22 +0000 (10:10 +0530)
commit7baccfca790c429b85cf30ae83d06c6e8b934e86
tree4e9db35f5001707a349c348a1e8c0e3e65bf8bd5
parent2179777364cae3726c0e612f64b97a9bff05fc5b
lib: sbi: Add function to register new domain

We add sbi_domain_register() function to help platform code register
a new domain explicitly instead of depending on domain_get() platform
callback. This function will eventually help us completely remove the
domain_get() platform callback.

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