summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2007-11-21 13:30:15 -0600
committerKumar Gala <galak@kernel.crashing.org>2007-11-21 15:11:58 -0600
commit9eb77cea1fa12d5969eb26a1d1d81da381bd6b1c (patch)
tree989e4f66372f19f1faf905e0cc863649c0e00a59 /include
parentab544633abdd14f4dd5d92e500b73eb59ef57e67 (diff)
downloadu-boot-imx-9eb77cea1fa12d5969eb26a1d1d81da381bd6b1c.zip
u-boot-imx-9eb77cea1fa12d5969eb26a1d1d81da381bd6b1c.tar.gz
u-boot-imx-9eb77cea1fa12d5969eb26a1d1d81da381bd6b1c.tar.bz2
Add additional fdt fixup helper functions
Added the following fdt fixup helpers: * do_fixup_by_prop{_u32} - Find matching nodes by property name/value * do_fixup_by_compat{_u32} - Find matching nodes by compat The _u32 variants work the same only the property they are setting is know to be a 32-bit integer instead of a byte buffer. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include')
-rw-r--r--include/fdt_support.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h
index 150dd2b..8f781d4 100644
--- a/include/fdt_support.h
+++ b/include/fdt_support.h
@@ -33,6 +33,17 @@ void do_fixup_by_path(void *fdt, const char *path, const char *prop,
const void *val, int len, int create);
void do_fixup_by_path_u32(void *fdt, const char *path, const char *prop,
u32 val, int create);
+void do_fixup_by_prop(void *fdt,
+ const char *pname, const void *pval, int plen,
+ const char *prop, const void *val, int len,
+ int create);
+void do_fixup_by_prop_u32(void *fdt,
+ const char *pname, const void *pval, int plen,
+ const char *prop, u32 val, int create);
+void do_fixup_by_compat(void *fdt, const char *compat,
+ const char *prop, const void *val, int len, int create);
+void do_fixup_by_compat_u32(void *fdt, const char *compat,
+ const char *prop, u32 val, int create);
void fdt_fixup_ethernet(void *fdt, bd_t *bd);
#ifdef CONFIG_OF_HAS_UBOOT_ENV