diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2023-06-08 17:16:38 +0200 |
---|---|---|
committer | Patrice Chotard <patrice.chotard@foss.st.com> | 2023-06-16 11:01:15 +0200 |
commit | 163c5f60ebb492eb3bab75e299cb43e6d022653d (patch) | |
tree | c7119803507060872cde7feffd917297f905776b /include | |
parent | 0e7cc08320f7dd3dce33c14cb506525f378b5f8e (diff) | |
download | u-boot-163c5f60ebb492eb3bab75e299cb43e6d022653d.zip u-boot-163c5f60ebb492eb3bab75e299cb43e6d022653d.tar.gz u-boot-163c5f60ebb492eb3bab75e299cb43e6d022653d.tar.bz2 |
fdt_support: add fdt_copy_fixed_partitions function
Add a new function fdt_copy_fixed_partitions to copy the fixed
partition nodes from U-Boot device tree to Linux kernel
device tree and to dynamically configure the MTD partitions.
This function fdt_copy_fixed_partitions is only based on device tree
with livetree compatible function and replace the function
fdt_fixup_mtdparts based on mtdparts variable.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/fdt_support.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h index eeb83e6..2cd8366 100644 --- a/include/fdt_support.h +++ b/include/fdt_support.h @@ -256,6 +256,14 @@ static inline void fdt_fixup_mtdparts(void *fdt, } #endif +/** + * copy the fixed-partition nodes from U-Boot device tree to external blob + * + * @param blob FDT blob to update + * Return: 0 if ok, or non-zero on error + */ +int fdt_copy_fixed_partitions(void *blob); + void fdt_del_node_and_alias(void *blob, const char *alias); /** |