summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Van Baren <vanbaren@cideas.com>2008-06-07 12:25:05 -0400
committerGerald Van Baren <vanbaren@cideas.com>2008-06-09 21:13:44 -0400
commit47abe8ab290d2721a8eeadff65b939e6af8c01b0 (patch)
treec4e2dd7e3221a34c84fda5db1412ed99de74f299
parent2f08bfa9526bae4f461e043530cfb903fec0d273 (diff)
downloadu-boot-imx-47abe8ab290d2721a8eeadff65b939e6af8c01b0.zip
u-boot-imx-47abe8ab290d2721a8eeadff65b939e6af8c01b0.tar.gz
u-boot-imx-47abe8ab290d2721a8eeadff65b939e6af8c01b0.tar.bz2
The fdt boardsetup command criteria was not unique
It was checking just for "b", which is not unique with respect to the "boot" command. Change to check for "boa"[rdsetup]. Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
-rw-r--r--common/cmd_fdt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c
index ede65ae..8592128 100644
--- a/common/cmd_fdt.c
+++ b/common/cmd_fdt.c
@@ -403,7 +403,8 @@ int do_fdt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
}
#ifdef CONFIG_OF_BOARD_SETUP
/* Call the board-specific fixup routine */
- else if (argv[1][0] == 'b')
+ else if ((argv[1][0] == 'b') && (argv[1][1] == 'o') &&
+ (argv[1][2] == 'a'))
ft_board_setup(fdt, gd->bd);
#endif
/* Create a chosen node */