void lcd_pannel_on(void) { #if 0 /* password */ s6d6aa0_write_1(0xb0, 0x09); s6d6aa0_write_1(0xb0, 0x09); s6d6aa0_write_1(0xd5, 0x64); s6d6aa0_write_1(0xb0, 0x09); s6d6aa0_write_1(0xd5, 0x84); s6d6aa0_write_3(0xf2, 0x02, 0x03, 0x1b); s6d6aa0_write(); s6d6aa0_write_3(0xf6, 0x00, 0x8c, 0x07); /* reset */ s6d6aa0_write_1(0xfa, 0x01); #endif unsigned int data_array[16]; data_array[0]=0x00000011; data_array[1]=0x00005050; /* Exit sleep */ //mdelay(200); //s6d6aa0_write_0(0x11); ddi_pd->cmd_write(ddi_pd->dsim_base, DCS_LONG_WR, (unsigned int)data_array, 2); mdelay(100); /* Set Display ON */ //s6d6aa0_write_0(0x29); ddi_pd->cmd_write(ddi_pd->dsim_base, DCS_WR_NO_PARA, 0x29, 0); mdelay(100); }
void lcd_pannel_on(void) { /* password */ s6d6aa0_write_1(0xb0, 0x09); s6d6aa0_write_1(0xb0, 0x09); s6d6aa0_write_1(0xd5, 0x64); s6d6aa0_write_1(0xb0, 0x09); s6d6aa0_write_1(0xd5, 0x84); s6d6aa0_write_3(0xf2, 0x02, 0x03, 0x1b); s6d6aa0_write(); s6d6aa0_write_3(0xf6, 0x00, 0x8c, 0x07); /* reset */ s6d6aa0_write_1(0xfa, 0x01); /* Exit sleep */ s6d6aa0_write_0(0x11); mdelay(100); /* Set Display ON */ s6d6aa0_write_0(0x29); }