本文整理汇总了C++中dsi_set_cmdq函数的典型用法代码示例。如果您正苦于以下问题:C++ dsi_set_cmdq函数的具体用法?C++ dsi_set_cmdq怎么用?C++ dsi_set_cmdq使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了dsi_set_cmdq函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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;
}
示例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
}
示例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
}
示例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);
}
示例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
}
示例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
}
示例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;
}
示例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;
}
示例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);
}
示例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 */
}
示例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
//.........这里部分代码省略.........
示例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;
//.........这里部分代码省略.........
示例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;
//.........这里部分代码省略.........
示例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);
//.........这里部分代码省略.........