diff options
author | Joonyoung Shim <jy0922.shim@samsung.com> | 2016-02-17 14:00:53 +0900 |
---|---|---|
committer | Joonyoung Shim <jy0922.shim@samsung.com> | 2016-09-05 17:10:38 +0900 |
commit | 05d9345db95a9ec0e9d070f729a276c17dbf701d (patch) | |
tree | 100d476d55c9abb5287372862d62483b9925f076 | |
parent | ab65f2abd3451a4a142a0ad2914f28b43bdca506 (diff) | |
download | u-boot-tm1-05d9345db95a9ec0e9d070f729a276c17dbf701d.tar.gz u-boot-tm1-05d9345db95a9ec0e9d070f729a276c17dbf701d.tar.bz2 u-boot-tm1-05d9345db95a9ec0e9d070f729a276c17dbf701d.zip |
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 <jy0922.shim@samsung.com>
-rwxr-xr-x | property/cmd_cboot.c | 3 | ||||
-rw-r--r-- | property/thor_mode.c | 12 |
2 files changed, 15 insertions, 0 deletions
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", + "" +); |