summaryrefslogtreecommitdiff
path: root/board/phytec/common/k3/board.c
diff options
context:
space:
mode:
authorWadim Egorov <w.egorov@phytec.de>2024-06-10 15:33:42 +0200
committerTom Rini <trini@konsulko.com>2024-06-18 10:28:59 -0600
commite9c4448f809e1f48701c25711ef926bbeb7addc5 (patch)
tree662b0167ef0d62fa71289408ef84d4760031e2dd /board/phytec/common/k3/board.c
parent43f078ca83fc8977cd1b8d753bbbcd78b03b6ee2 (diff)
board: phytec: common: k3: Copy fixed partitions to OS device tree
Copy fixed-partitions nodes from U-Boot device tree to OS device tree. Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Reviewed-by: Daniel Schultz <d.schultz@phytec.de>
Diffstat (limited to 'board/phytec/common/k3/board.c')
-rw-r--r--board/phytec/common/k3/board.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/phytec/common/k3/board.c b/board/phytec/common/k3/board.c
index f21e154d4fe..3d7e090ccaa 100644
--- a/board/phytec/common/k3/board.c
+++ b/board/phytec/common/k3/board.c
@@ -5,6 +5,7 @@
*/
#include <env_internal.h>
+#include <fdt_support.h>
#include <spl.h>
#include <asm/arch/hardware.h>
@@ -94,3 +95,12 @@ int board_late_init(void)
return 0;
}
#endif
+
+#if IS_ENABLED(CONFIG_OF_LIBFDT) && IS_ENABLED(CONFIG_OF_BOARD_SETUP)
+int ft_board_setup(void *blob, struct bd_info *bd)
+{
+ fdt_copy_fixed_partitions(blob);
+
+ return 0;
+}
+#endif