platform: fpga/common: Add a fdt parsing helper functions
authorAtish Patra <atish.patra@wdc.com>
Mon, 23 Mar 2020 19:48:57 +0000 (12:48 -0700)
committerAnup Patel <anup@brainfault.org>
Tue, 24 Mar 2020 07:59:07 +0000 (13:29 +0530)
commitd1d6560a878200679e6e12e77032d06add8847a5
tree7635f0cc2d56ca8d2b116368ce428beacf61cc18
parentfb84879e66bc5a26241bcf0472688851f7240acb
platform: fpga/common: Add a fdt parsing helper functions

Different DT based platforms from the sam family may reuse IP blocks with
different configurations. These different configurations can be obtained
by parsing the device tree.

Add a FDT parser framework that can parse various device configurations from
device tree. Currently, the parsing algorithms doesn't cover all the use cases
or possible combination of DT configurations. It will be improved over time.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
include/sbi_utils/fdt/fdt_helper.h
lib/utils/fdt/fdt_helper.c