tizen: add recovery u-boot prompt command 19/114119/1 accepted/tizen_mobile accepted/tizen/mobile/20170306.102415 accepted/tizen/unified/20170309.075129 submit/tizen/20170306.005208 submit/tizen_unified/20170308.100420 submit/tizen_unified/20170309.100419
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 10 Feb 2017 05:06:40 +0000 (14:06 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 10 Feb 2017 05:15:38 +0000 (14:15 +0900)
This patch adds recovery command to u-boot prompt.

Change-Id: Ifeaef04ea27beef5d7e31ac0d85717fe4c89eeb1
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
property/recv_mode.c

index ba43b80..47457ae 100644 (file)
@@ -135,3 +135,18 @@ void recovery_mode(void)
 #endif
 }
 
+#ifdef CONFIG_TIZEN
+#ifdef CONFIG_RAMDISK_BOOT
+int do_recovery(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+{
+       puts("Tizen Recovery mode\n");
+
+       recovery_mode();
+}
+
+U_BOOT_CMD(recovery, 1, 1, do_recovery,
+          "TIZEN Recovery mode",
+          ""
+);
+#endif
+#endif