コード例 #1
0
static int __init modem_off_init(void)
{
#ifndef CONFIG_MTK_ECCCI_DRIVER
	modem_power_down();
#else
#ifdef CONFIG_MTK_KERNEL_POWER_OFF_CHARGING
	if ((g_boot_mode == KERNEL_POWER_OFF_CHARGING_BOOT) || (g_boot_mode == LOW_POWER_OFF_CHARGING_BOOT)) {
		pr_debug("[ccci-off]power off MD in charging mode %d\n", g_boot_mode);
		modem_power_down();
	}
#endif
#endif
	return 0;
}
コード例 #2
0
/** Power down modem
 *  Uses AT command to do it */
void PPPCellularInterface::power_down()
{
    modem_power_down();
    modem_deinit();
}