diff options
Diffstat (limited to 'libfdt/libfdt.h')
-rw-r--r-- | libfdt/libfdt.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libfdt/libfdt.h b/libfdt/libfdt.h index d0a2ed2..8576aef 100644 --- a/libfdt/libfdt.h +++ b/libfdt/libfdt.h @@ -2141,6 +2141,24 @@ int fdt_overlay_apply(void *fdt, void *fdto); int fdt_overlay_target_offset(const void *fdt, const void *fdto, int fragment_offset, char const **pathp); +/** + * fdt_overlay_merge - Merge two overlays into one + * @fdt: pointer to the first device tree overlay blob + * @fdto: pointer to the second device tree overlay blob + * @fdto_nospace: indicates if FDT_ERR_NOSPACE error code applies to @fdto + * + * fdt_overlay_merge() will merge second overlay blob into first overlay blob. + * + * Expect the first device tree to be modified, even if the function + * returns an error. + * + * returns: + * 0, on success + * -FDT_ERR_NOSPACE, there's not enough space in first device tree blob + * -FDT_ERR_BADVALUE + */ +int fdt_overlay_merge(void *fdt, void *fdto, int *fdto_nospace); + /**********************************************************************/ /* Debugging / informational functions */ /**********************************************************************/ |