summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-02-20 14:32:36 -0600
committerGerald Van Baren <vanbaren@cideas.com>2008-03-18 21:03:45 -0400
commitfe30a354cdbb808b5f15366a935b151a4ccee74f (patch)
tree49de243fe237bd2b26283ffc7c19230d48960470 /common
parent804887e6001e2f00bea11431bf34d6d472512cda (diff)
downloadu-boot-imx-fe30a354cdbb808b5f15366a935b151a4ccee74f.zip
u-boot-imx-fe30a354cdbb808b5f15366a935b151a4ccee74f.tar.gz
u-boot-imx-fe30a354cdbb808b5f15366a935b151a4ccee74f.tar.bz2
Fix fdt boardsetup command parsing
The introduciton of the 'fdt bootcpu' broke parsing for 'fdt boardsetup'. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'common')
-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 c31560b..14c3fa0 100644
--- a/common/cmd_fdt.c
+++ b/common/cmd_fdt.c
@@ -324,7 +324,8 @@ int do_fdt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
/********************************************************************
* Set boot cpu id
********************************************************************/
- } else if ((argv[1][0] == 'b') && (argv[1][1] == 'o')) {
+ } else if ((argv[1][0] == 'b') && (argv[1][1] == 'o') &&
+ (argv[1][2] == 'o')) {
unsigned long tmp = simple_strtoul(argv[2], NULL, 16);
fdt_set_boot_cpuid_phys(fdt, tmp);