diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2013-08-26 16:41:56 +0400 |
---|---|---|
committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2013-08-27 11:18:32 +0400 |
commit | 57d74bcf3072b65bde5aa540cedc976a75c48e5c (patch) | |
tree | 1a3fde01f9ca700e606509c7a12647946c9ac30b /include/linux/of_fdt.h | |
parent | a2547380393ac82c659b40182b0da8d05a8365f3 (diff) | |
download | linux-57d74bcf3072b65bde5aa540cedc976a75c48e5c.tar.xz |
drivers: of: add function to scan fdt nodes given by path
Add a function to scan the flattened device-tree starting from the
node given by the path. It is used to extract information (like reserved
memory), which is required on early boot before we can unflatten the tree.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Tomasz Figa <t.figa@samsung.com>
Reviewed-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'include/linux/of_fdt.h')
-rw-r--r-- | include/linux/of_fdt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h index ed136ad698ce..19f26f8d2202 100644 --- a/include/linux/of_fdt.h +++ b/include/linux/of_fdt.h @@ -90,6 +90,9 @@ extern void *of_get_flat_dt_prop(unsigned long node, const char *name, extern int of_flat_dt_is_compatible(unsigned long node, const char *name); extern int of_flat_dt_match(unsigned long node, const char *const *matches); extern unsigned long of_get_flat_dt_root(void); +extern int of_scan_flat_dt_by_path(const char *path, + int (*it)(unsigned long node, const char *name, int depth, void *data), + void *data); extern int early_init_dt_scan_chosen(unsigned long node, const char *uname, int depth, void *data); |