tizen: tm1: support thordown command from console 57/86857/1
authorJoonyoung Shim <jy0922.shim@samsung.com>
Wed, 17 Feb 2016 05:00:53 +0000 (14:00 +0900)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Mon, 5 Sep 2016 08:10:38 +0000 (17:10 +0900)
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>
property/cmd_cboot.c
property/thor_mode.c

index 968bbfe..d184fd8 100755 (executable)
@@ -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{
index 80eb5e6..4845b16 100644 (file)
@@ -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",
+          ""
+);