From 05d9345db95a9ec0e9d070f729a276c17dbf701d Mon Sep 17 00:00:00 2001 From: Joonyoung Shim Date: Wed, 17 Feb 2016 14:00:53 +0900 Subject: [PATCH] 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 --- property/cmd_cboot.c | 3 +++ property/thor_mode.c | 12 ++++++++++++ 2 files changed, 15 insertions(+) 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", + "" +); -- 2.34.1