fdt: Add resource parsing functions
authorThierry Reding <treding@nvidia.com>
Tue, 26 Aug 2014 15:33:53 +0000 (17:33 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 22 Oct 2014 22:56:41 +0000 (16:56 -0600)
commit56f42242f020254ea1c383694edb072e3a5ca6d6
tree7a2b6410c681a09ce033217507b4c75d011fe85e
parent5094eb408a5de69cce8e6bc5564fda10eb79eba0
fdt: Add resource parsing functions

Add the fdt_get_resource() and fdt_get_named_resource() functions which
can be used to parse resources (memory regions) from an FDT. A helper to
compute the size of a region is also provided.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
include/fdtdec.h
lib/fdtdec.c