summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2013-06-27 10:32:15 +0200
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:42:30 +0900
commitebeb950298b69d5459888f581fbb76fd881ed0e7 (patch)
tree0a4d713417d95ae629b299d35fa228bbe1a1b407 /include
parentff8a8bb306a7b61ce7e2a4df981f65796d6fe9f0 (diff)
downloadlinux-3.10-ebeb950298b69d5459888f581fbb76fd881ed0e7.tar.gz
linux-3.10-ebeb950298b69d5459888f581fbb76fd881ed0e7.tar.bz2
linux-3.10-ebeb950298b69d5459888f581fbb76fd881ed0e7.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/of_fdt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h
index ed136ad698c..19f26f8d220 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);