include: sbi: Add domains_init() platform operation
authorAnup Patel <anup.patel@wdc.com>
Fri, 20 Nov 2020 11:12:15 +0000 (16:42 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 4 Dec 2020 12:31:00 +0000 (18:01 +0530)
commit9b65dcaedd737b36c21cd9ff585585c188a92b41
treee3a0f3e8bc45b447b9b4208626d2a17d30f9354c
parent555e73778add1f1bc85011f98b3210c7103d60a5
include: sbi: Add domains_init() platform operation

We introduce domains_init() platform operation which can be used by
platform support to initialize/populate domains in the coldboot path.

The domains_init() is called late in the coldboot sequence from the
sbi_domain_finalize() so sbi_printf() can be used by platform support
to print errors/warnings at time of populating domains.

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_platform.h
lib/sbi/sbi_domain.c