static void lcm_resume(void)
{
	#if 1
	if(!lcm_is_init)
		lcm_init();
	#else
	lcm_util.set_gpio_out(GPIO_LCD_ENN, GPIO_OUT_ONE);
	lcm_util.set_gpio_out(GPIO_LCD_ENP, GPIO_OUT_ONE);
	lcm_init();
	#endif
}
static void lcm_resume(void)
{
//lcm_compare_id();
   lcm_init();
  // push_table(lcm_sleep_out_setting, sizeof(lcm_sleep_out_setting) / sizeof(struct LCM_setting_table), 1);

}
Esempio n. 3
0
static void lcm_resume(void)
{

#ifndef BUILD_LK
	lcm_init();
#endif
}
Esempio n. 4
0
static void lcm_resume(void)
{
#ifndef BUILD_LK
	lcm_init();
	//push_table(lcm_sleep_out_setting, sizeof(lcm_sleep_out_setting) / sizeof(struct LCM_setting_table), 1);
#endif
}
static void lcm_resume(void)
{
    esdSwitch = 1;
    lcm_init();
    //lcm_adc_read_chip_id();
    //push_table(lcm_sleep_out_setting, sizeof(lcm_sleep_out_setting) / sizeof(struct LCM_setting_table), 1);
}
static void lcm_resume(void)
{
	//add by xia lei jie for LCD INIT	
	//lcm_init();
//lcm_initialization_setting[14].para_list[1]+=2;
lcm_init();
}
static unsigned int lcm_esd_recover(void)
{
#ifndef BUILD_LK

  unsigned int data_array[16];

    printk("lcm_esd_recover enter \n");
    
    lcm_init();

    data_array[0]=0x00110500;
    dsi_set_cmdq(&data_array, 1, 1);
    MDELAY(50);
    
    data_array[0]=0x00290500;
    dsi_set_cmdq(&data_array, 1, 1);
    
    data_array[0]= 0x00023902;
    data_array[1]= 0xFF51;
    dsi_set_cmdq(&data_array, 2, 1);
    MDELAY(10);
#endif

    return TRUE;
}
static unsigned int lcm_esd_recover()
{
	
	 lcm_init();
   
//   push_table(lcm_sleep_out_setting, sizeof(lcm_sleep_out_setting) / sizeof(struct LCM_setting_table), 1);
}
//no use
static unsigned int lcm_esd_recover(void)
{
    unsigned char para = 0;
	unsigned int data_array1[16];

  

    SET_RESET_PIN(1);
    MDELAY(10);
    SET_RESET_PIN(0);
    MDELAY(30);
    SET_RESET_PIN(1);
    MDELAY(130);
    #if 0
	push_table(lcm_initialization_setting, sizeof(lcm_initialization_setting) / sizeof(struct LCM_setting_table), 1);
	MDELAY(10);
	push_table(lcm_sleep_out_setting, sizeof(lcm_sleep_out_setting) / sizeof(struct LCM_setting_table), 1);
    	MDELAY(10);
    #else
        lcm_init();
    #endif
   
   data_array1[0]= 0x00320500;
   dsi_set_cmdq(data_array1, 1, 1);
   MDELAY(50);

    return 1;
}
Esempio n. 10
0
static int get_power_setting_status(void)
{

	static unsigned int temp0,temp1,temp2,temp3;

// LuckAs change
	LCD_WaitForNotBusy();
//	jrd_lcd_waitfornotbusy();
// LuckAs end

         send_ctrl_cmd(0x09);
	read_data_cmd();  //dummy read
	temp0 =  read_data_cmd();	// 0x84
	temp1 =  read_data_cmd();	// 0x63
	temp2 =  read_data_cmd();	// 0x04
	temp3 =  read_data_cmd();	// 0x00

	if( (temp0 != A_NORMAL) || (temp1 != B_NORMAL) || (temp2 != C_NORMAL) || (temp3 != D_NORMAL))
	{
		printk("---------------------------lcm_init ---------------------------\n");
		lcm_init();
// LuckAs change
		lcm_update(0, 0, FRAME_WIDTH, FRAME_HEIGHT);
//		jrd_lcm_update(0, 0, FRAME_WIDTH, FRAME_HEIGHT);
// LuckAs end
	}

	return 0;

}
static void lcm_resume(void)
{
#ifndef BUILD_LK
//        lcm_compare_id();
	lcm_init();
#endif
}
static unsigned int lcm_esd_recover(void)
{
	lcm_init();
	//lcm_resume();

	return TRUE;
}
static void lcm_resume(void)
{
	//add by xia lei jie for LCD INIT
	lcm_init();

	

}
static unsigned int lcm_esd_recover(void)
{
    LCM_PRINT("\n[LCD] lcm_esd_recover, LCD re-initialize \n");
    lcm_suspend();
    MDELAY(200);
    lcm_init();
    return TRUE;
}
static unsigned int lcm_esd_recover(void)
{
    //printk("%s \n",__FUNCTION__);
    
    lcm_init();

    return 1;
}
static void lcm_resume(void)
{
	
	//lcm_initialization_setting[12].para_list[1] += 2;
	lcm_init();
	
	//push_table(lcm_sleep_out_setting, sizeof(lcm_sleep_out_setting) / sizeof(struct LCM_setting_table), 1);
}
static void lcm_resume(void)
{
    Lcd_Log("\n %s \n",__func__);

    lcm_init();

//	push_table(lcm_sleep_out_setting, sizeof(lcm_sleep_out_setting) / sizeof(struct LCM_setting_table), 1);
}
Esempio n. 18
0
static unsigned int lcm_esd_recover(void)
{
#ifndef BUILD_LK	
	printk("jacob test lcm_esd_recover\n");
	lcm_init();
#endif
	return TRUE;
}
static void lcm_resume(void)
{

   lcm_init();
 
   push_table(lcm_sleep_out_setting, sizeof(lcm_sleep_out_setting) / sizeof(struct LCM_setting_table), 1);

}
static unsigned int lcm_esd_recover(void)
{
	lcm_init();
	
	#ifndef BUILD_LK
	printk("lcm_esd_recover  hx8389b_video_tianma \n");
	#endif
	return TRUE;
}
static void lcm_resume(void)
{
   mt_set_gpio_mode ( GPIO_CTP_EINT_PIN, GPIO_CTP_EINT_PIN_M_EINT );
   mt_set_gpio_dir ( GPIO_CTP_EINT_PIN, GPIO_DIR_IN );
   mt_set_gpio_pull_enable ( GPIO_CTP_EINT_PIN, GPIO_PULL_ENABLE );
   mt_set_gpio_pull_select ( GPIO_CTP_EINT_PIN, GPIO_PULL_UP );

    lcm_init();
}
static void lcm_resume(void)
{
#if 1
		//lcm_initialization_setting[83].para_list[0] += 2;
    lcm_init();
#else
    push_table(lcm_sleep_out_setting, sizeof(lcm_sleep_out_setting) / sizeof(struct LCM_setting_table), 1);
#endif
}
static unsigned int lcm_esd_recover(void)
{
	lcm_init();
	
	#ifndef BUILD_LK
	printk("lcm_esd_recover  otm9605a_dsi_vdo_hlt_qhd_ips \n");
	#endif
	return TRUE;
}
 //static int value=65;
static void lcm_resume(void)

{
		//value+=1;
    //lcm_initialization_setting[25].para_list[0]=value;
    
   lcm_init();

}
Esempio n. 25
0
static unsigned int lcm_esd_recover(void)
{
#ifndef BUILD_UBOOT

	lcm_init();

    return 1;
#endif	
}
static unsigned int lcm_esd_recover(void)
{
	lcm_init();
	
	#ifndef BUILD_LK
	printk("lcm_esd_recover  ili9806c_dsi_vdo_djn_fwvga_oncell \n");
	#endif
	return TRUE;
}
static void lcm_resume(void)
{
    //lcm_initialization_setting[12].para_list[1]+=1;
    lcm_init();
    Lcd_Log("mycat wdong vcom id = 0x%02x", lcm_initialization_setting[12].para_list[1]);


    //push_table(lcm_sleep_out_setting, sizeof(lcm_sleep_out_setting) / sizeof(struct LCM_setting_table), 1);
}
static unsigned int lcm_esd_recover(void)
{
	lcm_init();
	
	#ifndef BUILD_LK
	printk("lcm_esd_recover  ili9806e_dsi_vdo_dijin_fwvga_ips_j511\n");
	#endif
	return TRUE;
}
Esempio n. 29
0
static void lcm_resume(void)
{
	LCM_DBG();
#ifdef BUILD_UBOOT
	lcm_reset();
	lcm_init();
#endif
	push_table(lcm_sleep_out_setting);
}
static unsigned int lcm_esd_recover(void)
{
  lcm_init();
	//push_table(lcm_sleep_out_setting, sizeof(lcm_sleep_out_setting) / sizeof(struct LCM_setting_table), 1);
	
	Lcd_Log("mycat songtuirui ### lcm_esd_recover \r\n");
	
	return 1;
}