From: Kumar Gala <galak@kernel.crashing.org>
Date: Wed, 20 Feb 2008 20:32:36 +0000 (-0600)
Subject: Fix fdt boardsetup command parsing
X-Git-Tag: v2025.01-rc5-pxa1908~22314^2~7
X-Git-Url: http://git.dujemihanovic.xyz/repo?a=commitdiff_plain;h=fe30a354cdbb808b5f15366a935b151a4ccee74f;p=u-boot.git

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>
---

diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c
index c31560bd65..14c3fa022e 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);