From: Joonyoung Shim Date: Wed, 17 Feb 2016 05:00:53 +0000 (+0900) Subject: tizen: tm1: support thordown command from console X-Git-Tag: accepted/tizen/3.0.m2/mobile/20170105.025928~3 X-Git-Url: http://review.tizen.org/git/?p=profile%2Fmobile%2Fplatform%2Fkernel%2Fu-boot-tm1.git;a=commitdiff_plain;h=05d9345db95a9ec0e9d070f729a276c17dbf701d tizen: tm1: support thordown command from console This will enable u-boot console mode with any key input from console and support thordown command, then LITMUS auto test system can use thordown command from u-boot prompt. Change-Id: I4f0b98e60d7dcee74ceabc1d0de70cc22c7bf0d0 Signed-off-by: Joonyoung Shim --- diff --git a/property/cmd_cboot.c b/property/cmd_cboot.c index 968bbfe..d184fd8 100755 --- a/property/cmd_cboot.c +++ b/property/cmd_cboot.c @@ -319,6 +319,9 @@ int do_cboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) cmd_mode_regist(boot_mode_array); if((bootmode > CMD_POWER_DOWN_DEVICE) && (0 != boot_mode_array[bootmode])){ + /* goto main_loop() if any input is hit from console */ + if (tstc()) + return 0; DBG("do_cboot: enter boot mode\n"); boot_mode_array[bootmode](); }else{ diff --git a/property/thor_mode.c b/property/thor_mode.c index 80eb5e6..4845b16 100644 --- a/property/thor_mode.c +++ b/property/thor_mode.c @@ -334,3 +334,15 @@ void thor_mode(void) return; } + +int do_thor_down(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +{ + puts("TIZEN \"THOR\" Downloader\n"); + + thor_mode(); +} + +U_BOOT_CMD(thordown, 1, 1, do_thor_down, + "TIZEN \"THOR\" downloader", + "" +);