summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2014-04-11 17:09:40 +0200
committerYork Sun <yorksun@freescale.com>2014-04-22 17:58:45 -0700
commit94fb182cdf5f39befc822cd5a1110a1ca3b6631d (patch)
tree5f5b083753288cdcb54178c3076d21743e330790 /include
parentb149c4c399b111cec1ff7505ca9fabbeeb4fe394 (diff)
downloadu-boot-imx-94fb182cdf5f39befc822cd5a1110a1ca3b6631d.zip
u-boot-imx-94fb182cdf5f39befc822cd5a1110a1ca3b6631d.tar.gz
u-boot-imx-94fb182cdf5f39befc822cd5a1110a1ca3b6631d.tar.bz2
fdt_support: split fdt_getprop_u32_default
We already have a nice helper to give us a property cell value with default fall back from a path. Split that into two helpers - one for the old path based lookup and one to give us a value based on a node offset. Signed-off-by: Alexander Graf <agraf@suse.de> Acked-by: Scott Wood <scottwood@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/fdt_support.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h
index 76c9b2e..61383dd 100644
--- a/include/fdt_support.h
+++ b/include/fdt_support.h
@@ -12,6 +12,8 @@
#include <libfdt.h>
+u32 fdt_getprop_u32_default_node(const void *fdt, int off, int cell,
+ const char *prop, const u32 dflt);
u32 fdt_getprop_u32_default(const void *fdt, const char *path,
const char *prop, const u32 dflt);
int fdt_chosen(void *fdt, int force);