lib: utils: Add helper routines to populate domains from FDT
authorAnup Patel <anup.patel@wdc.com>
Wed, 18 Nov 2020 11:10:21 +0000 (16:40 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 4 Dec 2020 15:40:44 +0000 (21:10 +0530)
commitba741ea0ad01314be916f9095384c31c6ccfa363
tree2cd0318b82c3bddd8ee84157b32a6f10cb70f254
parentc0d2baa8c0be532ff0ce77946cc44cdf4de92669
lib: utils: Add helper routines to populate domains from FDT

We add various helper routines to populate domains, iterate domains,
iterate domain memregions, and parse HART to domain assignment from
the FDT.

These helper routines can be used by platform support code and FDT
fixup code.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
include/sbi_utils/fdt/fdt_domain.h [new file with mode: 0644]
lib/utils/fdt/fdt_domain.c [new file with mode: 0644]
lib/utils/fdt/objects.mk