mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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>
This commit is contained in:
parent
f117c0f073
commit
10aeabd186
2 changed files with 21 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue