summaryrefslogtreecommitdiffstats
path: root/include/fdt_support.h
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2011-08-01 00:25:20 -0500
committerKumar Gala <galak@kernel.crashing.org>2011-09-29 19:01:05 -0500
commit10aeabd18657edf6d65e45bd4c63a48cc794fef0 (patch)
treeffd9f9baa5b9664eefc92e0882109fb29275781f /include/fdt_support.h
parentf117c0f0731e99a5e468a300a71b34afa337e133 (diff)
downloadblackbird-obmc-uboot-10aeabd18657edf6d65e45bd4c63a48cc794fef0.tar.gz
blackbird-obmc-uboot-10aeabd18657edf6d65e45bd4c63a48cc794fef0.zip
fdt: Add new fdt_create_phandle helper
Add a helper function that will return a phandle value for the given node. If the node doesn't have a phandle already one will be created. Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Acked-by: Gerald Van Baren <vanbaren@cideas.com>
Diffstat (limited to 'include/fdt_support.h')
-rw-r--r--include/fdt_support.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h
index fdb9307703..8f06aacf7a 100644
--- a/include/fdt_support.h
+++ b/include/fdt_support.h
@@ -90,6 +90,7 @@ int fdt_node_offset_by_compat_reg(void *blob, const char *compat,
phys_addr_t compat_off);
int fdt_alloc_phandle(void *blob);
int fdt_set_phandle(void *fdt, int nodeoffset, uint32_t phandle);
+int fdt_create_phandle(void *fdt, int nodeoffset);
int fdt_add_edid(void *blob, const char *compat, unsigned char *buf);
int fdt_verify_alias_address(void *fdt, int anode, const char *alias,
OpenPOWER on IntegriCloud