Browse Source

fdt: do board setup based on fdt address specified on bootm line

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>
Kim Phillips 18 năm trước cách đây
mục cha
commit
91148bf7ae
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      common/cmd_bootm.c

+ 1 - 1
common/cmd_bootm.c

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