提交 fe30a354 编写于 作者: K Kumar Gala 提交者: Gerald Van Baren

Fix fdt boardsetup command parsing

The introduciton of the 'fdt bootcpu' broke parsing for 'fdt boardsetup'.
Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
上级 804887e6
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册