cmd: boot: add mode args for "reset"

- Add "reboot" command as alias of "reset";
- Support command like: reboot loader/bootloader/recovery, etc.

Change-Id: I9748664aeca052a775a3f88f7fdf9b3923941026
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2019-10-29 21:10:52 +08:00 committed by Jianhong Chen
parent bcb84b5d64
commit f501ba4438
1 changed files with 7 additions and 1 deletions

View File

@ -73,11 +73,17 @@ U_BOOT_CMD(
#endif
U_BOOT_CMD(
reset, 1, 0, do_reset,
reset, 2, 0, do_reset,
"Perform RESET of the CPU",
""
);
U_BOOT_CMD(
reboot, 2, 0, do_reset,
"Perform RESET of the CPU, alias of 'reset'",
""
);
#ifdef CONFIG_CMD_POWEROFF
U_BOOT_CMD(
poweroff, 1, 0, do_poweroff,