diff options
author | Gerald Van Baren <gvb@unssw.com> | 2011-07-14 21:40:10 -0400 |
---|---|---|
committer | Gerald Van Baren <gvb@unssw.com> | 2011-07-14 21:43:45 -0400 |
commit | a8d2a75d729ef0a701258a4b5bfcaf121fa30463 (patch) | |
tree | f0d94cc0ffde9c4268d2779fb0190f0d3fc3e7d9 /include/fdt_support.h | |
parent | b3606f141e56df972b5caf5e2316d652f0089ee6 (diff) | |
download | u-boot-imx-a8d2a75d729ef0a701258a4b5bfcaf121fa30463.zip u-boot-imx-a8d2a75d729ef0a701258a4b5bfcaf121fa30463.tar.gz u-boot-imx-a8d2a75d729ef0a701258a4b5bfcaf121fa30463.tar.bz2 |
fdt: introduce fdt_create_phandle()
The ePAPR specification says that phandle properties should be called
"phandle", and not "linux,phandle". To facilitate the migration from
"linux,phandle" to "phandle", introduce function fdt_create_phandle(),
which creates a phandle in a given node. For now, we create both the
"phandle" and "linux,phandle" properties. A later version of this
function will remove support for "linux,phandle".
Signed-off-by: Timur Tabi <timur@freescale.com>
Diffstat (limited to 'include/fdt_support.h')
-rw-r--r-- | include/fdt_support.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h index 382f632..863024f 100644 --- a/include/fdt_support.h +++ b/include/fdt_support.h @@ -89,6 +89,7 @@ u64 fdt_translate_address(void *blob, int node_offset, const u32 *in_addr); 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_create_phandle(void *fdt, int nodeoffset, uint32_t phandle); int fdt_add_edid(void *blob, const char *compat, unsigned char *buf); int fdt_verify_alias_address(void *fdt, int anode, const char *alias, |