diff options
| author | João Paulo Gonçalves <[email protected]> | 2025-06-23 14:39:54 -0300 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-07-09 08:40:03 -0600 |
| commit | 2b7c6b6f3ca34970be61c5189d263f94f0c94917 (patch) | |
| tree | aaa76cd8eee3a6fdd0881e618505ecc72b8ab895 /cmd | |
| parent | dbf7fd557a73ded3141db3c2cf5c572989378825 (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 'cmd')
| -rw-r--r-- | cmd/fdt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/fdt.c b/cmd/fdt.c index d16b141ce32..a67c30b21d5 100644 --- a/cmd/fdt.c +++ b/cmd/fdt.c @@ -691,9 +691,9 @@ static int do_fdt(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) fdt_strerror(err)); return CMD_RET_FAILURE; } -#ifdef CONFIG_ARCH_KEYSTONE - ft_board_setup_ex(working_fdt, gd->bd); -#endif + + if (IS_ENABLED(CONFIG_OF_BOARD_SETUP_EXTENDED)) + ft_board_setup_ex(working_fdt, gd->bd); } #endif /* Create a chosen node */ |
