libfdt: Export overlay_apply_node() as fdt_overlay_apply_node()
This function is useful to merge a subset of DT into another DT, for example if some prior-stage firmware passes a DT fragment to U-Boot and U-Boot needs to merge it into its own DT. Export this function to permit implementing such functionality. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
c2279d784e
commit
c1bde2378a
@ -879,3 +879,8 @@ err:
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int fdt_overlay_apply_node(void *fdt, int target, void *fdto, int node)
|
||||
{
|
||||
return overlay_apply_node(fdt, target, fdto, node);
|
||||
}
|
||||
|
@ -2032,6 +2032,13 @@ int fdt_del_node(void *fdt, int nodeoffset);
|
||||
*/
|
||||
int fdt_overlay_apply(void *fdt, void *fdto);
|
||||
|
||||
/**
|
||||
* fdt_overlay_apply_node - Merges a node into the base device tree
|
||||
*
|
||||
* See overlay_apply_node() for details.
|
||||
*/
|
||||
int fdt_overlay_apply_node(void *fdt, int target, void *fdto, int node);
|
||||
|
||||
/**********************************************************************/
|
||||
/* Debugging / informational functions */
|
||||
/**********************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user