lib: sbi: Add sbi_domain_root_add_memrange() API
authorYu Chien Peter Lin <peterlin@andestech.com>
Fri, 14 Oct 2022 00:32:42 +0000 (08:32 +0800)
committerAnup Patel <anup@brainfault.org>
Sun, 23 Oct 2022 04:51:21 +0000 (10:21 +0530)
commitdcdaf3027489cadd513767eda6dcaa0c1ecd2d29
treebe58d2b9242725c70f1ebd1377f20c40c36947a7
parent60b78fee9225155ac6e9d4733bf3dc0f7a8a9933
lib: sbi: Add sbi_domain_root_add_memrange() API

This patch generalizes the logic to add a memory range with desired
alignment and flags of consecutive regions to the root domain.

Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
include/sbi/sbi_domain.h
include/sbi_utils/timer/aclint_mtimer.h
lib/sbi/sbi_domain.c
lib/utils/timer/aclint_mtimer.c