]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fdt: do board setup based on fdt address specified on bootm line
authorKim Phillips <kim.phillips@freescale.com>
Tue, 17 Jul 2007 18:56:53 +0000 (13:56 -0500)
committerGerald Van Baren <vanbaren@cideas.com>
Fri, 10 Aug 2007 23:21:36 +0000 (19:21 -0400)
The last fdt patch to bootm did board setup based on the address
specified by a prior fdt address command invocation.  The bootm
code, as its call to fdt_chosen does, should use the fdt specified
by the user on the bootm command.  Note this restores full
functionality for the 8360's existing default boot environment
values, e.g. 'run nfsboot' (i.e. no having to 'fdt addr $fdtaddr'
before booting a kernel).

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
common/cmd_bootm.c

index 981ffc50005f463fb18dff08107f271be3dbfba3..e19f83e48aab1e4e9b2c90cd592cca05c6edd62f 100644 (file)
@@ -975,7 +975,7 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
 #endif
 #ifdef CONFIG_OF_BOARD_SETUP
        /* Call the board-specific fixup routine */
-       ft_board_setup(fdt, gd->bd);
+       ft_board_setup(of_flat_tree, gd->bd);
 #endif
 #endif /* CONFIG_OF_LIBFDT */
 #if defined(CONFIG_OF_FLAT_TREE)