Example #1
0
static void arch_reset_special_mode(char mode, const char *cmd)
{
	if (strcmp(cmd, "download") == 0)
		do_switch_mfgmode();
	else if (strcmp(cmd, "recovery") == 0)
		do_switch_recovery();
	else if (strcmp(cmd, "fastboot") == 0)
		do_switch_fastboot();
}
Example #2
0
static void arch_reset_special_mode(char mode, const char *cmd)
{
#ifdef CONFIG_MXC_REBOOT_ANDROID_CMD
	if (cmd && strcmp(cmd, "recovery") == 0)
		do_switch_recovery();
	else if (cmd && strcmp(cmd, "bootloader") == 0)
		do_switch_fastboot();
#endif
}