根据IC时序图优化初始化时间
This commit is contained in:
parent
47d6d64341
commit
769afcc64a
|
@ -139,13 +139,12 @@ static void lcd_cfg_panel_info(struct panel_extend_para *info)
|
|||
|
||||
}
|
||||
|
||||
/* <20><>ʼ<EFBFBD><CABC>ʱ<EFBFBD><EFBFBD><F2A3ACB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ִ<EFBFBD>лص<D0BB>֮<EFBFBD><D6AE><EFBFBD><EFBFBD><EFBFBD>ʱʱ<CAB1>䣬<EFBFBD><E4A3AC>ע<EFBFBD><D7A2><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>,<2C><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD>䰴<EFBFBD><E4B0B4><EFBFBD><EFBFBD>Ļ<EFBFBD>ֲ<EFBFBD><D6B2><EFBFBD> */
|
||||
static s32 lcd_open_flow(u32 sel)
|
||||
{
|
||||
DBG_INFO("\n");
|
||||
LCD_OPEN_FUNC(sel, lcd_power_on, 15);
|
||||
LCD_OPEN_FUNC(sel, lcd_power_on, 0);
|
||||
LCD_OPEN_FUNC(sel, lcd_panel_init, 120);
|
||||
LCD_OPEN_FUNC(sel, sunxi_lcd_tcon_enable, 5);
|
||||
LCD_OPEN_FUNC(sel, sunxi_lcd_tcon_enable, 0);
|
||||
LCD_OPEN_FUNC(sel, lcd_bl_open, 0);
|
||||
return 0;
|
||||
}
|
||||
|
@ -170,17 +169,17 @@ static void lcd_power_on(u32 sel)
|
|||
// sunxi_lcd_delay_ms(10);
|
||||
/*3.3v*/
|
||||
sunxi_lcd_power_enable(sel, 0);
|
||||
sunxi_lcd_delay_ms(10);
|
||||
// sunxi_lcd_delay_ms(10);
|
||||
sunxi_lcd_gpio_set_value(sel, 1, 1);
|
||||
sunxi_lcd_power_enable(sel, 1);
|
||||
#if 1
|
||||
panel_reset(sel, 1);
|
||||
sunxi_lcd_delay_ms(50);
|
||||
sunxi_lcd_delay_ms(10);
|
||||
panel_reset(sel, 0);
|
||||
sunxi_lcd_delay_ms(50);
|
||||
sunxi_lcd_delay_ms(20);
|
||||
panel_reset(sel, 1);
|
||||
sunxi_lcd_delay_ms(130);
|
||||
sunxi_lcd_delay_ms(80);
|
||||
#endif
|
||||
sunxi_lcd_power_enable(sel, 1);
|
||||
}
|
||||
|
||||
static void lcd_power_off(u32 sel)
|
||||
|
@ -282,6 +281,7 @@ static void lcd_panel_init(u32 sel)
|
|||
int index;
|
||||
|
||||
DBG_INFO("\n");
|
||||
#if 0
|
||||
sunxi_lcd_pin_cfg(sel, 1);
|
||||
sunxi_lcd_delay_ms(10);
|
||||
panel_reset(sel, 1);
|
||||
|
@ -290,9 +290,10 @@ static void lcd_panel_init(u32 sel)
|
|||
sunxi_lcd_delay_ms(10);
|
||||
panel_reset(sel, 1);
|
||||
sunxi_lcd_delay_ms(120);
|
||||
#endif
|
||||
|
||||
sunxi_lcd_dsi_clk_enable(sel);
|
||||
sunxi_lcd_delay_ms(10);
|
||||
// sunxi_lcd_delay_ms(10);
|
||||
|
||||
//#if 1
|
||||
#if 0 /* use iic */
|
||||
|
@ -326,7 +327,7 @@ static void lcd_panel_init(u32 sel)
|
|||
}
|
||||
i2c_set_bus_num(busnum);
|
||||
#else
|
||||
DBG_INFO("initialization:icn6202 2 lane init reg from mipi\n");
|
||||
// DBG_INFO("initialization:icn6202 2 lane init reg from mipi\n");
|
||||
|
||||
for (index = 0; index < sizeof(jd9365_initialization_setting) / sizeof(jd9365_initialization_setting[0]); ++index) {
|
||||
sunxi_lcd_dsi_gen_write(sel, jd9365_initialization_setting[index].cmd,
|
||||
|
|
Loading…
Reference in New Issue