tizen: bootmode: enable uart console with home key
[profile/mobile/platform/kernel/u-boot-tm1.git] / property / recv_mode.c
old mode 100755 (executable)
new mode 100644 (file)
index ba43b80..18b66cd
@@ -19,6 +19,8 @@
 #endif
 #define dprintf(fmt, args...) printf(fmt, ##args)
 
+extern void reboot_devices(unsigned reboot_mode);
+
 void nv_patch(char * addr, int size)
 {
        int i = 0;
@@ -135,3 +137,20 @@ 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();
+
+       return 0;
+}
+
+U_BOOT_CMD(recovery, 1, 1, do_recovery,
+          "TIZEN Recovery mode",
+          ""
+);
+#endif
+#endif