diff options
author | Rob Herring <robh@kernel.org> | 2014-12-10 14:43:04 -0600 |
---|---|---|
committer | Lukasz Majewski <l.majewski@samsung.com> | 2014-12-18 12:26:06 +0100 |
commit | 267abc626da609560aecab83e06b187954974ba6 (patch) | |
tree | c9ba44bf6299876d23b1f5b0dde5c612c55d6ace /common | |
parent | fe1b28c9f0954047f20b20253596b5ca9aef4a32 (diff) | |
download | talos-obmc-uboot-267abc626da609560aecab83e06b187954974ba6.tar.gz talos-obmc-uboot-267abc626da609560aecab83e06b187954974ba6.zip |
fastboot: add support for continue command
The fastboot continue command is defined to exit fastboot and continue
autoboot. This commit implements the continue command and the exiting of
fastboot only. Subsequent u-boot commands can be processed after exiting
fastboot. Autoboot should implement a boot script such as "fastboot; mmc
read <...>; bootm" to fully implement the fastboot continue function.
Signed-off-by: Rob Herring <robh@kernel.org>
Tested-by: Lukasz Majewski <l.majewski@samsung.com>
[TestHW: Exynos4412-Trats2]
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_fastboot.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c index 909616dcb7..b72f4f310d 100644 --- a/common/cmd_fastboot.c +++ b/common/cmd_fastboot.c @@ -15,17 +15,21 @@ static int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) { int ret; + g_dnl_clear_detach(); ret = g_dnl_register("usb_dnl_fastboot"); if (ret) return ret; while (1) { + if (g_dnl_detach()) + break; if (ctrlc()) break; usb_gadget_handle_interrupts(); } g_dnl_unregister(); + g_dnl_clear_detach(); return CMD_RET_SUCCESS; } |