summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoão Paulo Gonçalves <[email protected]>2025-06-23 14:39:54 -0300
committerTom Rini <[email protected]>2025-07-09 08:40:03 -0600
commit2b7c6b6f3ca34970be61c5189d263f94f0c94917 (patch)
treeaaa76cd8eee3a6fdd0881e618505ecc72b8ab895 /include
parentdbf7fd557a73ded3141db3c2cf5c572989378825 (diff)
boot: Make ft_board_setup_ex() generic
In some use cases, board-specific device tree changes must not be overwritten by system fixups. Although U-Boot provides ft_board_setup_ex() for this purpose, it is currently only used on TI Keystone. Make ft_board_setup_ex() to be a generic option, allowing its use by other architectures/boards. To maintain backward compatibility, enable it by default on TI Keystone. Signed-off-by: João Paulo Gonçalves <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/fdt_support.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h
index 049190cf3d7..47b8b63d13d 100644
--- a/include/fdt_support.h
+++ b/include/fdt_support.h
@@ -240,11 +240,16 @@ int board_rng_seed(struct abuf *buf);
*/
const char *board_fdt_chosen_bootargs(const struct fdt_property *fdt_ba);
-/*
- * The keystone2 SOC requires all 32 bit aliased addresses to be converted
- * to their 36 physical format. This has to happen after all fdt nodes
- * are added or modified by the image_setup_libfdt(). The ft_board_setup_ex()
- * called at the end of the image_setup_libfdt() is to do that convertion.
+/**
+ * ft_board_setup_ex() - Latest board-specific FDT changes
+ *
+ * @blob: FDT blob to update
+ * @bd: Pointer to board data
+ *
+ * Execute board-specific device tree modifications that must be the latest FDT
+ * changes and cannot be overwritten by other system fixups.
+ *
+ * This function is called if CONFIG_OF_BOARD_SETUP_EXTENDED is defined.
*/
void ft_board_setup_ex(void *blob, struct bd_info *bd);