summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-10-23 00:05:47 -0500
committerAndrew Fleming-AFLEMING <afleming@freescale.com>2008-10-24 17:34:52 -0500
commit3bed2aaf2d50fd13273c14d17d4fd40ef42e0d0f (patch)
tree96ab5e57491f5aaacf45291f067aeb08f75937e6 /include
parent8ba93f68a1bae89e033527ce67b41b4a87aa5b7f (diff)
downloadu-boot-imx-3bed2aaf2d50fd13273c14d17d4fd40ef42e0d0f.zip
u-boot-imx-3bed2aaf2d50fd13273c14d17d4fd40ef42e0d0f.tar.gz
u-boot-imx-3bed2aaf2d50fd13273c14d17d4fd40ef42e0d0f.tar.bz2
fdt: Add fdt_getprop_u32_default helpers
Add helper functions to return find a node and return it's property or a default value. Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Andrew Fleming-AFLEMING <afleming@freescale.com> Acked-by: Gerald Van Baren <vanbaren@cideas.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 ceaadc2..816c9d0 100644
--- a/include/fdt_support.h
+++ b/include/fdt_support.h
@@ -28,6 +28,8 @@
#include <fdt.h>
+u32 fdt_getprop_u32_default(void *fdt, const char *path, const char *prop,
+ const u32 dflt);
int fdt_chosen(void *fdt, int force);
int fdt_initrd(void *fdt, ulong initrd_start, ulong initrd_end, int force);
void do_fixup_by_path(void *fdt, const char *path, const char *prop,