• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ dsi_set_cmdq函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中dsi_set_cmdq函数的典型用法代码示例。如果您正苦于以下问题:C++ dsi_set_cmdq函数的具体用法?C++ dsi_set_cmdq怎么用?C++ dsi_set_cmdq使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了dsi_set_cmdq函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: lcm_suspend

static void lcm_suspend(void)
{
	unsigned int data_array[16];
//<2013/06/03-25639-stevenchen, [Pelican][drv] Add second source TCL LCM.
	static GetLcmId=0;
	
	if(GetLcmId == 0)
	{
		lcm_id = mt_get_gpio_in(GPIO_LCM_ID_PIN);
		GetLcmId=1;
	}
//>2013/06/03-25639-stevenchen

//<2013/03/21-23086-stevenchen, Lower the standby current of LCD.
	//data_array[0]=0x00280500; // Display Off
	//dsi_set_cmdq(&data_array, 1, 1);
	//MDELAY(10);
//>2013/03/21-23086-stevenchen	

	data_array[0] = 0x00100500; // Sleep In
	dsi_set_cmdq(&data_array, 1, 1);
	MDELAY(120);

}
开发者ID:openube,项目名称:Kernel_Xperia_C_Custom-,代码行数:24,代码来源:hx8389b_qhd_dsi_vdo_byd.c


示例2: lcm_compare_id

static unsigned int lcm_compare_id(void)
{
    unsigned char buffer[5] = {0};
    unsigned int data_array[16];

    dct_pmic_VGP2_enable(1);
    MDELAY(5);

    //SET_RESET_PIN(1);
    mt_set_gpio_mode(GPIO112,GPIO_MODE_00);
    mt_set_gpio_dir(GPIO112,GPIO_DIR_OUT);
    mt_set_gpio_out(GPIO112,GPIO_OUT_ONE);
    MDELAY(5);
    //SET_RESET_PIN(0);
    mt_set_gpio_out(GPIO112,GPIO_OUT_ZERO);
    MDELAY(5);
    //SET_RESET_PIN(1);
    mt_set_gpio_out(GPIO112,GPIO_OUT_ONE);
    MDELAY(5);

    data_array[0] = 0x00053700;// read id return 1 byte
    dsi_set_cmdq(&data_array, 1, 1);
    read_reg_v2(0xBF, buffer, 5);
#ifdef BUILD_LK
	printf("r63315 compare_id buf[0]=0x%x,buf[1]=0x%x,buf[2]=0x%x,buf[3]=0x%x,buf[4]=0x%x\n",buffer[0],buffer[1],buffer[2],buffer[3],buffer[4]);
#else
	printk("r63315 compare_id buf[0]=0x%x,buf[1]=0x%x,buf[2]=0x%x,buf[3]=0x%x,buf[4]=0x%x\n",buffer[0],buffer[1],buffer[2],buffer[3],buffer[4]);
#endif	

    if ( (0x33 == buffer[2]) && (0x15 == buffer[3]) )
	{
	    return 1;
	}

	return 0;
}
开发者ID:yangxianting,项目名称:mediatek,代码行数:36,代码来源:r63315_fhd_dsi_vdo_truly.c


示例3: lcm_esd_check

static unsigned int lcm_esd_check(void) //хрень, которая отсутствует в половине драйверов...
{
#ifndef BUILD_LK
//#if 1
	char  buffer[3];
	int   array[4];

	array[0] = 0x00013700;
	dsi_set_cmdq(array, 1, 1);

	read_reg_v2(0x0a, buffer, 1);
	printk("jacob test lcm_esd_check buffer[0]=0x%x\n",buffer[0]);
	if(buffer[0]==0x9c)
	{
		return FALSE;
	}
	else
	{	
		return TRUE;
	}
#else
	return FALSE;
#endif
}
开发者ID:JustAndroids,项目名称:android_kernel_hs_zeras,代码行数:24,代码来源:otm9605a_dsi_vdo_lg.c


示例4: init_lcm_registers

static void init_lcm_registers(void)
{
		unsigned int data_array[16];
		//unsigned char buffer[8];

#if 0//ndef BUILD_LK
		data_array[0] = 0x00013700;// read id return two byte,version and id
		dsi_set_cmdq(data_array, 1, 1);
#endif

TC358768_DCS_write_1A_1P(0xFF,0x04);     
TC358768_DCS_write_1A_1P(0xFB,0x01); 
TC358768_DCS_write_1A_1P(0X08	,0x0C);
TC358768_DCS_write_1A_1P(0xFF, 0x00);
TC358768_DCS_write_1A_1P(0X35	,0x01);
TC358768_DCS_write_1A_1P(0X51	,0xff);
TC358768_DCS_write_1A_1P(0X53	,0x2c);
TC358768_DCS_write_1A_1P(0x55,0x01);
TC358768_DCS_write_1A_1P(0xD3,0x06);
TC358768_DCS_write_1A_1P(0xD4,0x06);
TC358768_DCS_write_1A_0P(0x29);
MDELAY(100);
TC358768_DCS_write_1A_0P(0x11);
MDELAY(100);
		
#if 0//ndef BUILD_LK
		read_reg_v2(0xDA, &buffer[0], 1);
		read_reg_v2(0xDB, &buffer[1], 1);
		read_reg_v2(0xDC, &buffer[2], 1);

		read_reg_v2(0xF4, &buffer[3], 1);

		printk("%s, ID = (0x%02x, 0x%02x, 0x%02x, 0x%02x)\n", __func__, buffer[0], buffer[1], buffer[2], buffer[3]);	
#endif

}
开发者ID:yangxianting,项目名称:mediatek,代码行数:36,代码来源:nt35596_fhd_dsi_vdo_tianma.c


示例5: lcm_update

static void lcm_update(unsigned int x, unsigned int y,
                       unsigned int width, unsigned int height)
{
	unsigned int x0 = x;
	unsigned int y0 = y;
	unsigned int x1 = x0 + width - 1;
	unsigned int y1 = y0 + height - 1;

	unsigned char x0_MSB = ((x0>>8)&0xFF);
	unsigned char x0_LSB = (x0&0xFF);
	unsigned char x1_MSB = ((x1>>8)&0xFF);
	unsigned char x1_LSB = (x1&0xFF);
	unsigned char y0_MSB = ((y0>>8)&0xFF);
	unsigned char y0_LSB = (y0&0xFF);
	unsigned char y1_MSB = ((y1>>8)&0xFF);
	unsigned char y1_LSB = (y1&0xFF);

	unsigned int data_array[16];
	
#ifdef BUILD_UBOOT
		printf("zhibin uboot %s\n", __func__);
#else
		printk("zhibin kernel %s\n", __func__);	
#endif

	data_array[0]= 0x00053902;
	data_array[1]= (x1_MSB<<24)|(x0_LSB<<16)|(x0_MSB<<8)|0x2a;
	data_array[2]= (x1_LSB);
	data_array[3]= 0x00053902;
	data_array[4]= (y1_MSB<<24)|(y0_LSB<<16)|(y0_MSB<<8)|0x2b;
	data_array[5]= (y1_LSB);
	data_array[6]= 0x002c3909;

	dsi_set_cmdq(&data_array, 7, 0);

}
开发者ID:4Fwolf,项目名称:lcm_drivers,代码行数:36,代码来源:otm9608_wvga_dsi_cmd.c


示例6: lcm_esd_check

// zhoulidong add for eds(start)
static unsigned int lcm_esd_check(void)
{
	#ifdef BUILD_LK
		//printf("lcm_esd_check()\n");
	#else
		//printk("lcm_esd_check()\n");
	#endif 
 #ifndef BUILD_LK
	char  buffer[3];
	int   array[4];

	array[0] = 0x00013700;
	dsi_set_cmdq(array, 1, 1);

	read_reg_v2(0x0a, buffer, 1);
	if(buffer[0]==0x9c)
	{
		//#ifdef BUILD_LK
		//printf("%s %d\n FALSE", __func__, __LINE__);
		//#else
		//printk("%s %d\n FALSE", __func__, __LINE__);
		//#endif
		return FALSE;
	}
	else
	{	
		//#ifdef BUILD_LK
		//printf("%s %d\n FALSE", __func__, __LINE__);
		//#else
		//printk("%s %d\n FALSE", __func__, __LINE__);
		//#endif		 
		return TRUE;
	}
 #endif

}
开发者ID:SiddheshK15,项目名称:j608_fly_4511-master,代码行数:37,代码来源:ili9806c_dsi_vdo_djn_fwvga_tn.c


示例7: lcm_esd_check

static unsigned int lcm_esd_check(void)
{
#ifndef BUILD_LK
//#if 1
	char  buffer[3];
	int   array[4];

	array[0] = 0x00013700;
	dsi_set_cmdq(array, 1, 1);

	read_reg_v2(0x0a, buffer, 1);
	//printk("[email protected]@@ test lcm_esd_check buffer[0]=0x%x\n",buffer[0]);
	if(buffer[0]==0x9c)
	{
		return FALSE;
	}
	else
	{	
		return TRUE;
	}
#else
	return FALSE;
#endif
}
开发者ID:luckasfb,项目名称:a3-ll,代码行数:24,代码来源:nt35521_hd720_dsi_vdo.c


示例8: fbconfig_apply_new_lcm_setting

void fbconfig_apply_new_lcm_setting(void)
{
	CONFIG_RECORD *tmp = backup_head;
	DISP_DRV_WRAN("sxk=>fbconfig_apply_new_lcm_setting:START\n");
	while (tmp != NULL) {
		switch (tmp->type) {
		case RECORD_CMD:
			dsi_set_cmdq(tmp->ins_array, tmp->ins_num, 1);
			break;
		case RECORD_MS:
			FBCONFIG_MDELAY(tmp->ins_array[0]);
			/* msleep(tmp->ins_array[0]); */
			break;
		case RECORD_PIN_SET:
			SET_RESET_PIN(tmp->ins_array[0]);
			break;
		default:
			DISP_DRV_WRAN("sxk=>No such Type!!!!!\n");
		}
		tmp = tmp->next;
	}
	DISP_DRV_WRAN("sxk=>fbconfig_apply_new_lcm_setting:END\n");
	return;
}
开发者ID:vitek999,项目名称:android_kernel_lg_mm,代码行数:24,代码来源:fbconfig_kdebug.c


示例9: lcm_compare_id

static unsigned int lcm_compare_id(void)
{
		int   array[4];
		char  buffer[5];
		unsigned int id=0;

#if defined(BUILD_LK)
	 upmu_set_rg_vgp2_vosel(5);
	 upmu_set_rg_vgp2_en(1);

	 upmu_set_rg_vgp3_vosel(3);
	 upmu_set_rg_vgp3_en(1);	
#else
	 hwPowerOn(MT6323_POWER_LDO_VGP2, VOL_2800, "Lance_LCM");
	 hwPowerOn(MT6323_POWER_LDO_VGP3, VOL_1800, "Lance_LCM");
#endif

	SET_RESET_PIN(1);
	MDELAY(5);
	SET_RESET_PIN(0);
	MDELAY(30);
	SET_RESET_PIN(1);
	MDELAY(120);
		
	array[0] = 0x00083700;// read id return two byte,version and id
	dsi_set_cmdq(array, 1, 1);

	read_reg_v2(0xA1,buffer,4);
	id=(buffer[2]<<8)+buffer[3];
#ifdef BUILD_LK
	printf("mycat lcd id: 0x%08x\n", id);
#else
	printk("mycat lcd id: 0x%08x\n", id);
#endif        
	 return ((LCM_ID == id) && (get_lcd_id() == 0))?1:0;
}
开发者ID:SeriniTY320,项目名称:mediatek,代码行数:36,代码来源:otm9605a_zhuoershi_HSD_dsi_2_qhd.c


示例10: lcm_register

static void lcm_register()
{
	unsigned int data_array[35];
	data_array[0] = 0x00043902;
	data_array[1] = 0x9483ffb9;
	dsi_set_cmdq(data_array, 2, 1);
	data_array[0] = 0x00113902;
	data_array[1] = 0x008213ba;
	data_array[2] = 0x1000c516;
	data_array[3] = 0x03240fff;
	data_array[4] = 0x20252421;
	data_array[5] = 0x00000008;
	dsi_set_cmdq(data_array, 6, 1);
	data_array[0] = 0x00113902;
	data_array[1] = 0x040001b1;
	data_array[2] = 0x1111018a;
	data_array[3] = 0x3f3f372f;
	data_array[4] = 0xe6011247;
	data_array[5] = 0x000000e2;
	dsi_set_cmdq(data_array, 6, 1);
	data_array[0] = 0x00073902;
	data_array[1] = 0x08c800b2;
	data_array[2] = 0x00220004;
	dsi_set_cmdq(data_array, 3, 1);
	data_array[0] = 0x00173902;
	data_array[1] = 0x320680b4;
	data_array[2] = 0x15320310;
	data_array[3] = 0x08103208;
	data_array[4] = 0x05430433;
	data_array[5] = 0x06430437;
	data_array[6] = 0x00066161;
	dsi_set_cmdq(data_array, 7, 1);
	data_array[0] = 0x00053902;
	data_array[1] = 0x100006bf;
	data_array[2] = 0x00000004;
	dsi_set_cmdq(data_array, 3, 1);
	data_array[0] = 0x00033902;
	data_array[1] = 0x00170cc0;
	dsi_set_cmdq(data_array, 2, 1);
	data_array[0] = 0x00023902;
	data_array[1] = 0x000000b6;
	dsi_set_cmdq(data_array, 2, 1);
	data_array[0] = 0x00213902;
	data_array[1] = 0x000000d5;
	data_array[2] = 0x01000a00;
	data_array[3] = 0x0000cc00;
	data_array[4] = 0x88888800;
	data_array[5] = 0x88888888;
	data_array[6] = 0x01888888;
	data_array[7] = 0x01234567;
	data_array[8] = 0x88888823;
	data_array[9] = 0x00000088;
	dsi_set_cmdq(data_array, 10, 1);
	data_array[0] = 0x00023902;
	data_array[1] = 0x000009cc;
	dsi_set_cmdq(data_array, 2, 1);
	data_array[0] = 0x00053902;
	data_array[1] = 0x001000c7;
	data_array[2] = 0x00000010;
	dsi_set_cmdq(data_array, 3, 1);
	data_array[0] = 0x002b3902;
	data_array[1] = 0x060400e0;
	data_array[2] = 0x173f332b;
	data_array[3] = 0x0d0e0a34;
	data_array[4] = 0x13111311;
	data_array[5] = 0x04001710;
	data_array[6] = 0x3f332b06;
	data_array[7] = 0x0e0a3417;
	data_array[8] = 0x1113110d;
	data_array[9] = 0x0b171013;
	data_array[10] = 0x0b110717;
	data_array[11] = 0x00110717;
	dsi_set_cmdq(data_array, 12, 1);
	data_array[0] = 0x00023902;
	data_array[1] = 0x000032d4;
	dsi_set_cmdq(data_array, 2, 1);
	data_array[0] = 0x00110500;
	dsi_set_cmdq(data_array, 1, 1);
	MDELAY(250);
	data_array[0] = 0x00290500;
	dsi_set_cmdq(data_array, 1, 1);
	MDELAY(50);
}
开发者ID:SiddheshK15,项目名称:j608_fly_4511-master,代码行数:83,代码来源:hx8394_dsi_vdo_truly_cmi_hd720_ips.c


示例11: lcm_compare_id

//<2012/10/11-14948-stevenchen, [Hawk40] Modify the infrastructure of LCM auto detection.
static unsigned int lcm_compare_id(void)
{
#ifdef LCM_DETECT_BY_PIN
	#if defined( BUILD_UBOOT ) || defined(BUILD_LK)
       //<2012/10/26-15740-stevenchen, [Hawk40] Init GPIO before reading LCM ID pin.
  		SET_GPIO_MODE( GPIO_LCM_ID_PIN, GPIO_LCM_ID_PIN_M_GPIO );
  		SET_GPIO_DIR_IN( GPIO_LCM_ID_PIN );
	//>2012/10/26-15740-stevenchen
		printf("[uboot/lk][Steven] LCM auto detect by ID pin \n");
		printf("[uboot/lk][Steven] ID pin = %d \n", mt_get_gpio_in(GPIO_LCM_ID_PIN));
	#endif
	//<2012/10/17-15296-stevenchen, [Hawk40] Modify HIGH/LOW definitions of LCM.
	/* Tianma LCM ID pin = LOW */
	return (mt_get_gpio_in(GPIO_LCM_ID_PIN)) ? 0 : 1;
	//>2012/10/17-15296-stevenchen
#else
	unsigned int id1 = 0, id2 = 0;
	unsigned char buffer[2];

	unsigned int data_array[16];
	
	//<2012/10/17-15290-stevenchen, [HAWK40] Fix reading LCM id is unstable.
	#if defined( BUILD_UBOOT ) || defined(BUILD_LK)
	DSI_clk_HS_mode(1);
	MDELAY(10);
	DSI_clk_HS_mode(0);
	#endif
	//>2012/10/17-15290-stevenchen

	SET_RESET_PIN(1);  //NOTE:should reset LCM firstly
	MDELAY(10);
	SET_RESET_PIN(0);
	MDELAY(10);
	SET_RESET_PIN(1);
	MDELAY(10);	

/*	
	data_array[0] = 0x00110500;		// Sleep Out
	dsi_set_cmdq(data_array, 1, 1);
	MDELAY(120);
*/
		
//*************Enable CMD2 Page1  *******************//
	data_array[0]=0x00063902;
	data_array[1]=0x52AA55F0;
	data_array[2]=0x00000108;
	dsi_set_cmdq(data_array, 3, 1);
	MDELAY(10); 

	data_array[0] = 0x00023700;// read id return two byte,version and id
	dsi_set_cmdq(data_array, 1, 1);
	MDELAY(10); 
	
	read_reg_v2(0xC5, buffer, 2);
	id1 = buffer[0]; //we only need ID
	id2 = buffer[1]; //we test buffer 1

//<2012/09/21-14199-stevenchen, [Hawk4.0] Add Novatek NT35510 LCM driver.
	#if defined( BUILD_UBOOT ) || defined(BUILD_LK)
		printf("[uboot/lk][Steven] %s, id1 = 0x%08X, id2 = 0x%08X\n", __func__, id1, id2 );
    	#else
		printk("[kernel][Steven] %s, id1 = 0x%08X, id2 = 0x%08X\n", __func__, id1, id2 );
	#endif
//>2012/09/21-14199-stevenchen

	#ifdef LCM_DETECT_BY_BOTH
		#if defined( BUILD_UBOOT ) || defined(BUILD_LK)
		//<2012/10/26-15740-stevenchen, [Hawk40] Init GPIO before reading LCM ID pin.
  			SET_GPIO_MODE( GPIO_LCM_ID_PIN, GPIO_LCM_ID_PIN_M_GPIO );
	  		SET_GPIO_DIR_IN( GPIO_LCM_ID_PIN );
		//>2012/10/26-15740-stevenchen
			printf( "[uboot/lk][Steven] LCM auto detect by ID & ID pin \n");
		#endif
	    	if(LCM_ID == id)
		{
			return 1;
		}
		else
		{
			/* Tianma LCM ID pin = HIGH */
			return (mt_get_gpio_in(GPIO_LCM_ID_PIN)) ? 1 : 0;
		}
	#else
		#if defined( BUILD_UBOOT ) || defined(BUILD_LK)
			printf( "[uboot/lk][Steven] LCM auto detect by ID \n");
		#endif
        	return (LCM_ID == id1)?1:0;
	#endif /* LCM_DETECT_BY_BOTH */
#endif /* LCM_DETECT_BY_PIN */ 
}
开发者ID:4Fwolf,项目名称:motorola-hawk-kernel-3.4.67,代码行数:91,代码来源:nt35510_6517.c


示例12: init_lcm_registers

static void init_lcm_registers(void)
{
	unsigned int data_array[16];
//<2012/10/12-15021-stevenchen, [Hawk40] Update Tianma LCM initial code.
#if 1 //Tianma released
//*************Enable CMD2 Page1  *******************//
	data_array[0]=0x00063902;
	data_array[1]=0x52AA55F0;
	data_array[2]=0x00000108;
	dsi_set_cmdq(data_array, 3, 1);


//AVDD: 6.0V
    data_array[0]=0x00043902;
	data_array[1]=0x0A0A0AB0;
	dsi_set_cmdq(data_array, 2, 1);
    data_array[0]=0x00043902;
	data_array[1]=0x444444B6;
    dsi_set_cmdq(data_array, 2, 1);

//AVEE: -6.0V 
    data_array[0]=0x00043902;
	data_array[1]=0x0A0A0AB1;
    dsi_set_cmdq(data_array, 2, 1);	
    data_array[0]=0x00043902;
	data_array[1]=0x343434B7;
    dsi_set_cmdq(data_array, 2, 1);	

//#VGH:12V 
    data_array[0]=0x00043902;
	data_array[1]=0x070707B3; 	//0x050505B3
    dsi_set_cmdq(data_array, 2, 1);
	data_array[0]=0x00043902;
	data_array[1]=0x343434B9;	//0x242424B9
    dsi_set_cmdq(data_array, 2, 1);

//#VGLX:-10V 
    data_array[0]=0x00043902;
	data_array[1]=0x080808B5;
    dsi_set_cmdq(data_array, 2, 1);    
	data_array[0]=0x00043902;
	data_array[1]=0x141414BA;
    dsi_set_cmdq(data_array, 2, 1);

//#VGMP:4.7V  /VGSP:0V 
    data_array[0]=0x00043902;
	data_array[1]=0x00A800BC;	//0x008800BC
    dsi_set_cmdq(data_array, 2, 1);  

//#VGMN:-4.7V /VGSN:0V
	data_array[0]=0x00043902;
	data_array[1]=0x00A800BD;	//0x008800BD
    dsi_set_cmdq(data_array, 2, 1);

//##VCOM  Setting 
    data_array[0]=0x00033902;
	data_array[1]=0x008B00BE;	//0x002D00BE
    dsi_set_cmdq(data_array, 2, 1);  

//VCL
	data_array[0]=0x00043902;
	data_array[1]=0x020202B2;
    dsi_set_cmdq(data_array, 2, 1);
	data_array[0]=0x00043902;
	data_array[1]=0x242424B8;
    dsi_set_cmdq(data_array, 2, 1);

//	data_array[0]=0x00063902;
//	data_array[1]=0x52AA55F0;
//	data_array[2]=0x00000108;
//	dsi_set_cmdq(data_array, 3, 1);

//# R+ 
	data_array[0]=0x00353902;
	data_array[1]=0x002000D1;	//0x002900D1
	data_array[2]=0x00C00099;	//0x00330030
	data_array[3]=0x010101E4;	//0x0068004A
	data_array[4]=0x0152012F;	//0x01C9009F
	data_array[5]=0x01AA0184;	//0x01310105
	data_array[6]=0x021702E9;	//0x019A0170
	data_array[7]=0x029C0260;	//0x021402E0
	data_array[8]=0x03D3029E;	//0x02410215
	data_array[9]=0x0330030D;	//0x0286026E
	data_array[10]=0x0373035A;	//0x02AF02A0
	data_array[11]=0x03AA0395;	//0x02CE02C1
	data_array[12]=0x03E203D0;	//0x02E302DC
	data_array[13]=0x03FE03F3;	//0x03FA02EF
	data_array[14]=0x000000FF;	//0x00000060
	dsi_set_cmdq(data_array, 15, 1);

//#G +  
	data_array[0]=0x00353902;
	data_array[1]=0x003000D2;	//0x002900D2
	data_array[2]=0x00C30090;	//0x00330030
	data_array[3]=0x010301E7;	//0x0068004A
	data_array[4]=0x01540130;	//0x01C9009F
	data_array[5]=0x01AA0184;	//0x01310105
	data_array[6]=0x021602E7;	//0x019A0170
	data_array[7]=0x029B0260;	//0x021402E0
	data_array[8]=0x03D3029D;	//0x02410215
//.........这里部分代码省略.........
开发者ID:4Fwolf,项目名称:motorola-hawk-kernel-3.4.67,代码行数:101,代码来源:nt35510_6517.c


示例13: init_lcm_registers

static void init_lcm_registers(void)
{
	unsigned int data_array[16];

	data_array[0]=0x00053902;
	data_array[1]=0x2555AAFF;
	data_array[2]=0x00000001;
	dsi_set_cmdq(data_array, 3, 1);

	data_array[0]=0x00123902;
	data_array[1]=0x000201F8;
	data_array[2]=0x00133320;
	data_array[3]=0x23000040;
	data_array[4]=0x00C89902;
	data_array[5]=0x00001100;
	dsi_set_cmdq(data_array, 6, 1);


//*************Enable CMD2 Page1  *******************//
	data_array[0]=0x00063902;
	data_array[1]=0x52AA55F0;
	data_array[2]=0x00000108;
	dsi_set_cmdq(data_array, 3, 1);

//************* AVDD: manual  *******************//
	data_array[0]=0x00043902;
	data_array[1]=0x343434B6;
	dsi_set_cmdq(data_array, 2, 1);

	data_array[0]=0x00043902;
	data_array[1]=0x090909B0;
	dsi_set_cmdq(data_array, 2, 1);

	data_array[0]=0x00043902;//AVEE: manual, -6V 
	data_array[1]=0x242424B7;
	dsi_set_cmdq(data_array, 2, 1);

	data_array[0]=0x00043902;//AVEE voltage, Set AVEE -6V
	data_array[1]=0x090909B1;
	dsi_set_cmdq(data_array, 2, 1);

	//Power Control for VCL
	data_array[0]=0x34B81500;
	dsi_set_cmdq(data_array, 1, 1);

	data_array[0]=0x00B21500;
	dsi_set_cmdq(data_array, 1, 1);

	data_array[0]=0x00043902;//VGH: Clamp Enable
	data_array[1]=0x242424B9;
	dsi_set_cmdq(data_array, 2, 1);

	data_array[0]=0x00043902;
	data_array[1]=0x050505B3;
	dsi_set_cmdq(data_array, 2, 1);

	//data_array[0]=0x01BF1500;
	//dsi_set_cmdq(data_array, 1, 1);

	data_array[0]=0x00043902;//VGL(LVGL)
	data_array[1]=0x242424BA;
	dsi_set_cmdq(data_array, 2, 1);

	//VGL_REG(VGLO)
	data_array[0]=0x00043902;
	data_array[1]=0x0B0B0BB5;
	dsi_set_cmdq(data_array, 2, 1);

	//VGMP/VGSP
	data_array[0]=0x00043902;
	data_array[1]=0x00A300BC;
	dsi_set_cmdq(data_array, 2, 1);

	data_array[0]=0x00043902;//VGMN/VGSN  
	data_array[1]=0x00A300BD;
	dsi_set_cmdq(data_array, 2, 1);

	data_array[0]=0x00033902;//VCOM=-0.1
	data_array[1]=0x005000BE;
	dsi_set_cmdq(data_array, 2, 1);

	data_array[0]=0x00353902;
	data_array[1]=0x003700D1;
	data_array[2]=0x007B0052;
	data_array[3]=0x00B10099;
	data_array[4]=0x01F600D2;
	data_array[5]=0x014E0127;
	data_array[6]=0x02BE018C;
	data_array[7]=0x0248020B;
	data_array[8]=0x027E024A;
	data_array[9]=0x03E102BC;
	data_array[10]=0x03310310;
	data_array[11]=0x0373035A;
	data_array[12]=0x039F0394;
	data_array[13]=0x03B903B3;
	data_array[14]=0x000000C1;
	dsi_set_cmdq(data_array, 15, 1);

	data_array[0]=0x00353902;
	data_array[1]=0x003700D2;
//.........这里部分代码省略.........
开发者ID:4Fwolf,项目名称:lcm_drivers,代码行数:101,代码来源:nt35510_qvga.c


示例14: init_lcm_registers

static void init_lcm_registers(void)
{
	unsigned int data_array[16];

//*************Enable CMD2 Page1  *******************//
	data_array[0]=0x00063902;
	data_array[1]=0x52AA55F0;
	data_array[2]=0x00000108;
	dsi_set_cmdq(data_array, 3, 1);


//AVDD: 6.0V
    data_array[0]=0x00043902;
	data_array[1]=0x0A0A0AB0;
	dsi_set_cmdq(data_array, 2, 1);
    data_array[0]=0x00043902;
	data_array[1]=0x444444B6;
    dsi_set_cmdq(data_array, 2, 1);

//AVEE: -6.0V 
    data_array[0]=0x00043902;
	data_array[1]=0x0A0A0AB1;
    dsi_set_cmdq(data_array, 2, 1);	
    data_array[0]=0x00043902;
	data_array[1]=0x343434B7;
    dsi_set_cmdq(data_array, 2, 1);	

//#VGH:12V 
    data_array[0]=0x00043902;
	data_array[1]=0x050505B3;
    dsi_set_cmdq(data_array, 2, 1);
	data_array[0]=0x00043902;
	data_array[1]=0x242424B9;
    dsi_set_cmdq(data_array, 2, 1);

//#VGLX:-10V 
    data_array[0]=0x00043902;
	data_array[1]=0x080808B5;
    dsi_set_cmdq(data_array, 2, 1);    
	data_array[0]=0x00043902;
	data_array[1]=0x141414BA;
    dsi_set_cmdq(data_array, 2, 1);

//#VGMP:4.7V  /VGSP:0V 
    data_array[0]=0x00043902;
	data_array[1]=0x008800BC;
    dsi_set_cmdq(data_array, 2, 1);  

//#VGMN:-4.7V /VGSN:0V
	data_array[0]=0x00043902;
	data_array[1]=0x008800BD;
    dsi_set_cmdq(data_array, 2, 1);

//##VCOM  Setting 
    data_array[0]=0x00033902;
	data_array[1]=0x002D00BE;
    dsi_set_cmdq(data_array, 2, 1);  

//VCL
	data_array[0]=0x00043902;
	data_array[1]=0x020202B2;
    dsi_set_cmdq(data_array, 2, 1);
	data_array[0]=0x00043902;
	data_array[1]=0x242424B8;
    dsi_set_cmdq(data_array, 2, 1);

	data_array[0]=0x00063902;
	data_array[1]=0x52AA55F0;
	data_array[2]=0x00000108;
	dsi_set_cmdq(data_array, 3, 1);
//# R+ 
	data_array[0]=0x00353902;
	data_array[1]=0x002900D1;
	data_array[2]=0x00330030;
	data_array[3]=0x0068004A;
	data_array[4]=0x01C9009F;
	data_array[5]=0x01310105;
	data_array[6]=0x019A0170;
	data_array[7]=0x021402E0;
	data_array[8]=0x02410215;
	data_array[9]=0x0286026E;
	data_array[10]=0x02AF02A0;
	data_array[11]=0x02CE02C1;
	data_array[12]=0x02E302DC;
	data_array[13]=0x03FA02EF;
	data_array[14]=0x00000060;
	dsi_set_cmdq(data_array, 15, 1);

//#G +  
	data_array[0]=0x00353902;
	data_array[1]=0x002900D2;
	data_array[2]=0x00330030;
	data_array[3]=0x0068004A;
	data_array[4]=0x01C9009F;
	data_array[5]=0x01310105;
	data_array[6]=0x019A0170;
	data_array[7]=0x021402E0;
	data_array[8]=0x02410215;
	data_array[9]=0x0286026E;
	data_array[10]=0x02AF02A0;
//.........这里部分代码省略.........
开发者ID:beyondmtk,项目名称:MT6589_kernel_source,代码行数:101,代码来源:nt35510_6517.c


示例15: init_lcm_registers

static void init_lcm_registers(void)
{

    unsigned int data_array[16];
#if 0
//HX8379A_BOE3.97IPS_131108
    data_array[0]=0x00043902;//Enable external Command
    data_array[1]=0x7983FFB9;
    dsi_set_cmdq(&data_array, 2, 1);
    MDELAY(1);//3000

    data_array[0]=0x00023902;
    data_array[1]=0x000051BA;
    dsi_set_cmdq(&data_array, 2, 1);
    MDELAY(1);//3000

    data_array[0]=0x00143902;
    data_array[1]=0x445000B1;
    data_array[2]=0x110894DE;
    data_array[3]=0x2f2f1111;
    data_array[4]=0x08421d9d;
    data_array[5]=0xE600F16E;
    dsi_set_cmdq(&data_array, 6, 1);


    data_array[0]=0x000E3902;
    data_array[1]=0x3C0000b2; //
    data_array[2]=0x22190505;
    data_array[3]=0x0409FF00;
    data_array[4]=0x00002019;
    dsi_set_cmdq(&data_array, 5, 1);
    MDELAY(1);


    data_array[0]=0x00203902;
    data_array[1]=0x000A80b4;
    data_array[2]=0x32041032;
    data_array[3]=0x10327013;
    data_array[4]=0x40001708;
    data_array[5]=0x18082304;
    data_array[6]=0x04303008;
    data_array[7]=0x28084000;
    data_array[8]=0x04303008;
    dsi_set_cmdq(&data_array, 9, 1);

    data_array[0]=0x00023902;
    data_array[1]=0x000002CC;
    dsi_set_cmdq(&data_array, 2, 1);

    data_array[0]=0x00303902;//Enable external Command//3
    data_array[1]=0x0A0000d5;
    data_array[2]=0x00000100;
    data_array[3]=0x99011100;
    data_array[4]=0x88103210;
    data_array[5]=0x88886745;
    data_array[6]=0x88888888;
    data_array[7]=0x54768888;
    data_array[8]=0x10325476;
    data_array[9]=0x88881032;
    data_array[10]=0x88888888;
    data_array[11]=0x00008888;
    data_array[12]=0x00000000;
    dsi_set_cmdq(&data_array, 13, 1);

    data_array[0]=0x00253902;
    data_array[1]=0x080079E0;
    data_array[2]=0x3F3F3F0F;
    data_array[3]=0x0C065327;
    data_array[4]=0x1415130F;
    data_array[5]=0x001F1514;
    data_array[6]=0x3F3F0F08;
    data_array[7]=0x0653273F;
    data_array[8]=0x15130F0C;
    data_array[9]=0x1F151414;
    data_array[10]=0x0000001F;
    dsi_set_cmdq(&data_array, 11, 1);
    MDELAY(5);

    data_array[0]=0x00053902;
    data_array[1]=0x008C00B6;
    data_array[2]=0x0000008C;
    dsi_set_cmdq(&data_array, 3, 1);

    data_array[0]=0x00023902;
    data_array[1]=0x0000773A;
    dsi_set_cmdq(&data_array, 2, 1);

    data_array[0]=0x00023902;
    data_array[1]=0x00000036;
    dsi_set_cmdq(&data_array, 2, 1);

    data_array[0] = 0x00110500;
    dsi_set_cmdq(&data_array, 1, 1);
    MDELAY(150);

    data_array[0] = 0x00290500;
    dsi_set_cmdq(&data_array, 1, 1);
    MDELAY(30);


//.........这里部分代码省略.........
开发者ID:John677,项目名称:Kernal_k3note,代码行数:101,代码来源:hx8379a_dsi_vdo_azet_ips.c


示例16: lcm_compare_id

static unsigned int lcm_compare_id(void)
{

#if 1
	int array[4];
	char buffer[5];
	char id_high=0;
	char id_low=0;
	int id=0;

	SET_RESET_PIN(1);
	SET_RESET_PIN(0);
	MDELAY(10);
	SET_RESET_PIN(1);
	MDELAY(200);

	array[0] = 0x00053700;
	dsi_set_cmdq(array, 1, 1);
	read_reg_v2(0xa1, buffer, 5);

	id_high = buffer[2];
	id_low = buffer[3];
	id = (id_high<<8) | id_low;

	#if defined(BUILD_LK)
		printf("OTM8018B CS uboot %s \n", __func__);
		printf("%s id = 0x%08x \n", __func__, id);
	#else
		printk("OTM8018B CS kernel %s \n", __func__);
		printk("%s id = 0x%08x \n", __func__, id);
	#endif

	return (LCM_ID_OTM8019A_CS == id)?1:0;
#else
	int adcdata[4];
	int result = 0;
	int lcmid;
		
	IMM_GetOneChannelValue(1,adcdata,&lcmid);
       #if defined(BUILD_LK)
	printf("Otm8018b channelValue=%d\n",lcmid);
	#else 
        printk("Otm8018b channelValue=%d\n",lcmid);
        #endif

	lcmid = lcmid * 1500/4096; //LiuHuojun 20130503 1500?<C1><D9>??
	#if defined(BUILD_LK)
			printf("Otm8018b uboot %s \n", __func__);
			printf("%s lcmid = %d \n", __func__, lcmid);
	#else
			printk("Otm8018b kernel %s \n", __func__);
			printk("%s lcmid = %d \n", __func__, lcmid);
	#endif
	if(lcmid >800 && lcmid<=1200) //add by liutao for lingda:0V tianma:0.7V
	{
			return 1;
	}
	else
	{
			return 0;
	}
#endif
}
开发者ID:vitek999,项目名称:zera-F,代码行数:63,代码来源:otm8019a_wvga_dsi_vdo_dijing.c


示例17: init_lcm_registers

static void init_lcm_registers(void)
{
    unsigned int data_array[16];

    //*************Enable TE  *******************//
    data_array[0]= 0x00053902;
    data_array[1]= 0x2555aaff;
    data_array[2]= 0x00000001;
    dsi_set_cmdq(data_array, 3, 1);

    data_array[0]= 0x00093902;
    data_array[1]= 0x000201f8;
    data_array[2]= 0x00133320;
    data_array[3]= 0x00000048;
    dsi_set_cmdq(data_array, 4, 1);

    //*************Enable CMD2 Page1  *******************//
    data_array[0]=0x00063902;
    data_array[1]=0x52aa55f0;
    data_array[2]=0x00000108;
    dsi_set_cmdq(data_array, 3, 1);

    //************* AVDD: manual  *******************//
    data_array[0]=0x00043902;
    data_array[1]=0x0d0d0db0;
    dsi_set_cmdq(data_array, 2, 1);

    data_array[0]=0x00043902;
    data_array[1]=0x343434b6;
    dsi_set_cmdq(data_array, 2, 1);

    data_array[0]=0x00043902;
    data_array[1]=0x0d0d0db1;
    dsi_set_cmdq(data_array, 2, 1);

    data_array[0]=0x00043902;
    data_array[1]=0x343434b7;
    dsi_set_cmdq(data_array, 2, 1);

    data_array[0]=0x00043902;
    data_array[1]=0x000000b2;
    dsi_set_cmdq(data_array, 2, 1);

    data_array[0]=0x00043902;
    data_array[1]=0x242424b8;
    dsi_set_cmdq(data_array, 2, 1);

    data_array[0]=0x00023902;
    data_array[1]=0x000001bf;
    dsi_set_cmdq(data_array, 2, 1);

    data_array[0]=0x00043902;
    data_array[1]=0x0f0f0fb3;
    dsi_set_cmdq(data_array, 2, 1);

    data_array[0]=0x00043902;
    data_array[1]=0x343434b9;
    dsi_set_cmdq(data_array, 2, 1);

    data_array[0]=0x00043902;
    data_array[1]=0x080808b5;
    dsi_set_cmdq(data_array, 2, 1);

    data_array[0]=0x00023902;
    data_array[1]=0x000003c2;
    dsi_set_cmdq(data_array, 2, 1);

    data_array[0]=0x00043902;
    data_array[1]=0x242424ba;
    dsi_set_cmdq(data_array, 2, 1);

    data_array[0]=0x00043902;
    data_array[1]=0x007800bc;
    dsi_set_cmdq(data_array, 2, 1);

    data_array[0]=0x00043902;
    data_array[1]=0x007800bd;
    dsi_set_cmdq(data_array, 2, 1);

    data_array[0]=0x00033902;
    data_array[1]=0x006400be;
    dsi_set_cmdq(data_array, 2, 1);

    //*************Gamma Table  *******************//
    data_array[0]=0x00353902;
    data_array[1]=0x003300D1;
    data_array[2]=0x003A0034;
    data_array[3]=0x005C004A;
    data_array[4]=0x00A60081;
    data_array[5]=0x011301E5;
    data_array[6]=0x01820154;
    data_array[7]=0x020002CA;
    data_array[8]=0x02340201;
    data_array[9]=0x02840267;
    data_array[10]=0x02B702A4;
    data_array[11]=0x02DE02CF;
    data_array[12]=0x03FE02F2;
    data_array[13]=0x03330310;
    data_array[14]=0x0000006D;
    dsi_set_cmdq(data_array, 15, 1);
//.........这里部分代码省略.........
开发者ID:kim-ryuzaki,项目名称:android_mediatek_muse72,代码行数:101,代码来源:nt35510_dsi_cmd_6572.c


示例18: lcm_init_register

static void lcm_init_register(void)
{
unsigned int data_array[16];
#if   1   //(NT35590) /*nt35590 + 4.7 inch*/
    	data_array[0] = 0x00023902;//CMD1                           
    	data_array[1] = 0x000000FF;                 
    	dsi_set_cmdq(data_array, 2, 1);     
    	
    	data_array[0] = 0x00023902;//MIPI 2 Lane                  
    	data_array[1] = 0x000003BA;                 
    	dsi_set_cmdq(data_array, 2, 1);    
    	
      data_array[0] = 0x00023902;//MIPI command mode  
      data_array[1] = 0x000008C2;                 
    	dsi_set_cmdq(data_array, 2, 1);   
    	
      data_array[0] = 0x00023902;//CMD2,Page0  
      data_array[1] = 0x000001FF;                 
    	dsi_set_cmdq(data_array, 2, 1);   
    	
      data_array[0] = 0x00023902; 
      data_array[1] = 0x00003A00;                 
    	dsi_set_cmdq(data_array, 2, 1);  
    	
    	data_array[0] = 0x00023902;
      data_array[1] = 0x00003301;                 
    	dsi_set_cmdq(data_array, 2, 1);  
    	
    	data_array[0] = 0x00023902;
      data_array[1] = 0x00005302;                 
    	dsi_set_cmdq(data_array, 2, 1);  
    	
    	data_array[0] = 0x00023902;//VGL=-6V 
      data_array[1] = 0x00008509;                 
    	dsi_set_cmdq(data_array, 2, 1);  
    	
    	data_array[0] = 0x00023902;//VGH=+8.6V 
      data_array[1] = 0x0000250E;                 
    	dsi_set_cmdq(data_array, 2, 1);  
    	
    	data_array[0] = 0x00023902;//turn off VGLO regulator   
      data_array[1] = 0x00000A0F;                 
    	dsi_set_cmdq(data_array, 2, 1);  
    	
    	data_array[0] = 0x00023902;//GVDDP=4V     
      data_array[1] = 0x0000970B;                 
    	dsi_set_cmdq(data_array, 2, 1);  
    	
    	data_array[0] = 0x00023902;//
      data_array[1] = 0x0000970C;                 
    	dsi_set_cmdq(data_array, 2, 1);  

    	data_array[0] = 0x00023902;//   
      data_array[1] = 0x00008C11;                 
    	dsi_set_cmdq(data_array, 2, 1);  
    	
    	data_array[0] = 0x00023902;//   
      data_array[1] = 0x00007B36;                 
    	dsi_set_cmdq(data_array, 2, 1);  
    	
    	data_array[0] = 0x00023902;//GVDDP=4V     
      data_array[1] = 0x00002C71;                 
    	dsi_set_cmdq(data_array, 2, 1);  

    	data_array[0] = 0x00023902;
      data_array[1] = 0x000005FF;         
    	dsi_set_cmdq(data_array, 2, 1);    
    	
    	data_array[0] = 0x00023902; /////////////LTPS 
      data_array[1] = 0x00000001;                   
    	dsi_set_cmdq(data_array, 2, 1);              
    	data_array[0] = 0x00023902;                   
      data_array[1] = 0x00008D02;                   
    	dsi_set_cmdq(data_array, 2, 1);              
    	data_array[0] = 0x00023902;                   
      data_array[1] = 0x00008D03;                   
    	dsi_set_cmdq(data_array, 2, 1);              
    	data_array[0] = 0x00023902;                   
      data_array[1] = 0x00008D04;     
    	dsi_set_cmdq(data_array, 2, 1);
    	data_array[0] = 0x00023902;     
      data_array[1] = 0x00003005;     
    	dsi_set_cmdq(data_array, 2, 1);
    	data_array[0] = 0x00023902;//06         
      data_array[1] = 0x00003306;             
    	dsi_set_cmdq(data_array, 2, 1);        
      data_array[0] = 0x00023902;             
      data_array[1] = 0x00007707;             
    	dsi_set_cmdq(data_array, 2, 1);        
    	data_array[0] = 0x00023902;             
      data_array[1] = 0x00000008;        
    	dsi_set_cmdq(data_array, 2, 1);   
    	data_array[0] = 0x00023902;        
      data_array[1] = 0x00000009;        
    	dsi_set_cmdq(data_array, 2, 1);   
    	data_array[0] = 0x00023902;        
      data_array[1] = 0x0000000a;        
    	dsi_set_cmdq(data_array, 2, 1);   
    	data_array[0] = 0x00023902;        
      data_array[1] = 0x0000800b;     
//.........这里部分代码省略.........
开发者ID:johnnyslt,项目名称:fxos-for-v967s,代码行数:101,代码来源:nt35590_hd720_dsi_cmd_cmi.c


示例19: lcm_compare_id

static unsigned int lcm_compare_id(void)
{
#if 0
  	unsigned int ret = 0;

	ret = mt_get_gpio_in(GPIO92);
#if defined(BUILD_LK)
	printf("%s, [jx]hx8394a GPIO92 = %d \n", __func__, ret);
#endif	

	return (ret == 0)?1:0; 
#else
	unsigned int id=0;
	unsigned char buffer[2] = {0,0};
	unsigned int array[16];  

	dct_pmic_VGP2_enable(1);

	mt_set_gpio_mode(GPIO112,GPIO_MODE_00);
	mt_set_gpio_dir(GPIO112,GPIO_DIR_OUT);
	mt_set_gpio_out(GPIO112,GPIO_OUT_ONE);
	MDELAY(5); 
		    
	//SET_RESET_PIN(0);
	mt_set_gpio_out(GPIO112,GPIO_OUT_ZERO);
	MDELAY(50);
			
	//SET_RESET_PIN(1);
	mt_set_gpio_out(GPIO112,GPIO_OUT_ONE);
	MDELAY(105); 

	array[0] = 0x00043902;
	array[1] = 0x9483FFB9;// page enable
	dsi_set_cmdq(&array, 2, 1);
	MDELAY(10);

	array[0] = 0x00023902;
	array[1] = 0x000013BA;       	  
	dsi_set_cmdq(array, 2, 1);
	MDELAY(10);

	array[0] = 0x00013700;// return byte number
	dsi_set_cmdq(&array, 1, 1);
	MDELAY(10);

	read_reg_v2(0xF4, buffer, 1);
	id = buffer[0]; 

	#ifdef BUILD_LK
	printf("[LK]---cmd---hx8394_hd720_dsi_vdo_truly----%s------[0x%x]\n",__func__,buffer[0]);
    #else
	printk("[KERNEL]---cmd---hx8394_hd720_dsi_vdo_truly----%s------[0x%x]\n",__func__,buffer[0]);
    #endif	
	if(id==HX8394_LCM_ID)
	{
		int adcdata[4];
		int lcmadc=0;
		IMM_GetOneChannelValue(0,adcdata,&lcmadc);
		lcmadc = lcmadc * 1500/4096; 
		#ifdef BUILD_LK
		printf("[LK]---cmd---hx8394_hd720_dsi_vdo_truly----%s------adc[%d]\n",__func__,lcmadc);
		#else
		printk("[KERNEL]---cmd---hx8394_hd720_dsi_vdo_truly----%s------adc[%d]\n",__func__,lcmadc);
		#endif	
		if(lcmadc < 200)
			return 1;
	}
	return 0;//(id == HX8394_LCM_ID)?1:0;
#endif
}
开发者ID:SteveHuang27,项目名称:Thunder-Kernel,代码行数:70,代码来源:hx8394_hd720_dsi_vdo_truly.c


示例20: init_lcm_registers

static void init_lcm_registers(void)
{
    unsigned int data_array[20];
    
    data_array[0] = 0x00110500; //0x29,Display On,1byte
    dsi_set_cmdq(&data_array, 1, 1);
    MDELAY(150);		
    
		data_array[0]=0x00043902;
    data_array[1]=0x5783FFB9; //Power_Setting (D0h),4bytes
    dsi_set_cmdq(&data_array, 2, 1);
    MDELAY(1);
    
    data_array[0]=0x00073902;
    data_array[1]=0x1E1100B1;
    data_array[2]=0x0077C31E;
    dsi_set_cmdq(&data_array, 3, 1);
    MDELAY(1);
    
    data_array[0]=0x00053902;
    data_array[1]=0x004011B4;
    data_array[2]=0x78202A2A;
    dsi_set_cmdq(&data_array, 3, 1);
    MDELAY(1);

    data_array[0]=0x47B61500;//35 2C 42
    dsi_set_cmdq(&data_array,1,1);
    MDELAY(1);

      data_array[0]=0x00033902;
    data_array[1]=0x000F0FE3;
    dsi_set_cmdq(&data_array,2,1);
    MDELAY(1);

    data_array[0]=0x00073902;
    data_array[1]=0x007070C0; //Panel Driving Setting (C0h),6bytes
    data_array[2]=0x0008C43C;
    dsi_set_cmdq(&data_array, 3, 1);
    MDELAY(1);

    data_array[0]=0x00043902;
    data_array[1]=0x040800C2;
    dsi_set_cmdq(&data_array, 2, 1);
    MDELAY(1);
    
    data_array[0]=0x01CC1500;//0x01CC1500
    dsi_set_cmdq(&data_array,1,1);
    MDELAY(1);

  	data_array[0]=0x00233902;
    data_array[1]=0x120500E0;
    data_array[2]=0x4B402C21;
    data_array[3]=0x3A414752;
    data_array[4]=0x24292E31;
    data_array[5]=0x12050000;
    data_array[6]=0x4B402C21;
    data_array[7]=0x3A414752;
    data_array[8]=0x24292E31;
    data_array[9]=0x00010000;
    dsi_set_cmdq(&data_array, 10, 1);
    MDELAY(1);
    
    data_array[0]=0x00033902;
    data_array[1]=0x000166b0;
    dsi_set_cmdq(&data_array, 2, 1);
    MDELAY(1);
 
    data_array[0] = 0x40361500; //0x36,set address mode,2bytes
    dsi_set_cmdq(&data_array, 1, 1);
    MDELAY(10);
       
    data_array[0]=0x00023902;
    data_array[1]=0x00000035;
    dsi_set_cmdq(&data_array, 2, 1);
    MDELAY(1);

    data_array[0] = 0x663A1500; //0x3A,set pixel format,2bytes
    dsi_set_cmdq(&data_array, 1, 1);
    MDELAY(120);


    data_array[0] = 0x00290500; //0x29,Display On,1byte
    dsi_set_cmdq(&data_array, 1, 1);
    MDELAY(10);
    
    data_array[0] = 0x002C0500;
    dsi_set_cmdq(&data_array, 1, 1);
    MDELAY(10);
}
开发者ID:SeriniTY320,项目名称:mediatek,代码行数:89,代码来源:hx8357d_apex_A35406N00QH_A_CMI_dsi_cmd_hvga.c



注:本文中的dsi_set_cmdq函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ dsi_set_cmdq_V2函数代码示例发布时间:2022-05-30
下一篇:
C++ dscal_函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap