Пример #1
0
void ifx_fota_reset(void)
{
	usif_switch_ctrl(0);

	fota_cp_reset();

}
Пример #2
0
void ifx_fota_reset(void)
{
	usif_switch_ctrl(0);

	fota_cp_reset();
	
/*
	int status;

	printk("%s: CP Reset IN\n", __func__);

	gpio_request(MODEM_GPIO_PWRON, "ifx pwron");
	gpio_direction_output(MODEM_GPIO_PWRON, 0);
	udelay(100);
	gpio_set_value(MODEM_GPIO_PWRON, 0);
	status = gpio_get_value(MODEM_GPIO_PWRON);
	printk("%s: MODEM_GPIO_PWRON low- [CP POWER]: pin %d\n", __func__, status);

	mdelay(500); // 500mS delay
	
	gpio_direction_output(MODEM_GPIO_PWRON_SW, 0);  //GPIO_3 OE
	udelay(100);
	gpio_set_value(MODEM_GPIO_PWRON_SW, 0);
	status = gpio_get_value(MODEM_GPIO_PWRON_SW);
	printk("%s: MODEM_GPIO_PWRON_SW low- [CP POWER]: pin %d\n", __func__, status);
	
	mdelay(500); // 500mS delay

	gpio_set_value(MODEM_GPIO_PWRON, 1);
	status = gpio_get_value(MODEM_GPIO_PWRON);
	printk("%s: MODEM_GPIO_PWRON high+ [CP POWER]: pin %d\n", __func__, status);

	mdelay(100); // 1000mS delay

	gpio_set_value(MODEM_GPIO_PWRON_SW, 1);
	status = gpio_get_value(MODEM_GPIO_PWRON_SW);
	printk("%s: MODEM_GPIO_PWRON_SW high+ [CP POWER]: pin %d\n", __func__, status);

	usif_switch_ctrl(0);

	printk("%s: CP Reset OUT\n", __func__);
	*/
}