コード例 #1
0
static void lcm_resume_power(void)
{
	if(wakeup_by_swipe == false){
		//if(!is_update)mutex_lock(pMutexTouch);
		ldo_p5m5_dsv_5v5_off();
		ldo_1v8io_off();
		ldo_3v0_off();
		reset_lcd_module(1); //removed reset delay 50ms

		//chargepump_dsv_reset();//no need it for ESD

		MDELAY(10); //0318 100ms -> 10ms
		ldo_3v0_on();
		ldo_1v8io_on();
		//MDELAY(10);
		//ldo_p5m5_dsv_5v5_on(); // 0318 move to LP11
		MDELAY(50);
		//SET_RESET_PIN(1);
		//reset_lcd_module(0); //0318 move to LP11
		//MDELAY(150);
		LCM_PRINT("[LCD] lcm_resume_power \n");
	}else{
		LCM_PRINT("[LCD] lcm_resume_power wakeup_by_swipe\n");
	}
}
コード例 #2
0
void lcm_shutdown_power(void)
{
	ldo_p5m5_dsv_5v5_off();
	MDELAY(5);
	ldo_1v8io_off();
	ldo_3v0_off();
	MDELAY(5);
	reset_lcd_module(1); //removed reset delay 50m

	LCM_PRINT("[LCD] lcm_shutdown_power \n");
}
コード例 #3
0
static void lcm_resume(void)
{
#if defined(CONFIG_TOUCHSCREEN_MTK_S3320)
    printk(KERN_INFO"[Touch] lcm notify_call_chain_resume \n");
    touch_notifier_call_chain(LCD_EVENT_TOUCH_LPWG_OFF, NULL);
#endif
#if defined(CONFIG_SENSOR_TOUCH_KEY_ATMF04)
	printk(KERN_INFO"[Touch] lcm notify_call_chain_resume for ATMF04\n");
	touch_key_notifier_call_chain(ATMF04_LCD_EVENT_ON, NULL);
#endif
#if 1

#if 0
	touch_reset_pin(0);
	MDELAY(10);
	reset_lcd_module(0);
	MDELAY(10);
	ldo_p5m5_dsv_5v5_off();
	MDELAY(10);
	ldo_1v8io_off();
	MDELAY(1);
	ldo_3v0_off();
	MDELAY(20);
	lcm_init();
#endif
	reset_lcd_module(0);
	MDELAY(20);

	reset_lcd_module(1);
	MDELAY(15);

	reset_lcd_module(0);
	MDELAY(5);

	reset_lcd_module(1);
	MDELAY(15);

	init_lcm_registers();

	MDELAY(120);
#else
	init_lcm_registers_sleep_out();
#endif
	need_set_lcm_addr = 1;
	LCM_PRINT("[LCD] lcm_resume JDI\n");
}
コード例 #4
0
static void lcm_resume(void)
{
	unsigned int data_array[1];

#ifndef LGE_LPWG_SUPPORT
	lcm_init();
#else
	#if 0
	SET_RESET_PIN(0);
	MDELAY(20);
	//dsv low
	ldo_p5m5_dsv_5v5_off();
	ldo_1v8io_off();
	ldo_3v0_off();
	MDELAY(1);	
	ldo_3v0_on();
	ldo_1v8io_on();
	MDELAY(10);
	ldo_p5m5_dsv_5v5_on();
	MDELAY(5);

	SET_RESET_PIN(1);
	MDELAY(150);
	#endif

	data_array[0] = 0x00110500; //exit sleep
	dsi_set_cmdq(data_array, 1, 1);
	MDELAY(120);

	
	data_array[0] = 0x00290500; //Display on
	dsi_set_cmdq(data_array, 1, 1);
	MDELAY(2);


	//dsi_set_cmdq_V3(lcm_initialization_sleep_out_V3, sizeof(lcm_initialization_sleep_out_V3) / sizeof(LCM_setting_table_V3), 1);
	//init_lcm_registers();	//SET EXTC ~ sleep out register
#endif
    need_set_lcm_addr = 1;
	LCM_PRINT("[LCD] lcm_resume \n");
}