From: hhb Date: Tue, 9 Jul 2013 03:38:09 +0000 (+0800) Subject: mipi dsi: dcs commmand sent by command mode in HS mode X-Git-Tag: firefly_0821_release~6920 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4d3405ed76ed40af9885643f14498aa55ab2da6f;p=firefly-linux-kernel-4.4.55.git mipi dsi: dcs commmand sent by command mode in HS mode --- diff --git a/drivers/video/rockchip/screen/lcd_LD089WU1_mipi.c b/drivers/video/rockchip/screen/lcd_LD089WU1_mipi.c index e5abb0d499ea..cef35493db9b 100644 --- a/drivers/video/rockchip/screen/lcd_LD089WU1_mipi.c +++ b/drivers/video/rockchip/screen/lcd_LD089WU1_mipi.c @@ -62,13 +62,16 @@ int rk_lcd_init(void) { /*below is changeable*/ dsi_enable_hs_clk(1); - dsi_enable_video_mode(1); + dsi_enable_video_mode(0); + dsi_enable_command_mode(1); dcs[0] = dcs_exit_sleep_mode; dsi_send_dcs_packet(dcs, 1); msleep(1); dcs[0] = dcs_set_display_on; dsi_send_dcs_packet(dcs, 1); msleep(10); + dsi_enable_command_mode(0); + dsi_enable_video_mode(1); //printk("++++++++++++++++%s:%d\n", __func__, __LINE__); }; @@ -81,6 +84,8 @@ int rk_lcd_standby(u8 enable) { return -1; if(enable) { + dsi_enable_video_mode(0); + dsi_enable_command_mode(1); /*below is changeable*/ dcs[0] = dcs_set_display_off; dsi_send_dcs_packet(dcs, 1); diff --git a/drivers/video/rockchip/transmitter/rk616_mipi_dsi.c b/drivers/video/rockchip/transmitter/rk616_mipi_dsi.c index 3c414f7ea136..55ea2c94a76e 100644 --- a/drivers/video/rockchip/transmitter/rk616_mipi_dsi.c +++ b/drivers/video/rockchip/transmitter/rk616_mipi_dsi.c @@ -624,13 +624,16 @@ static int rk_mipi_dsi_init(void *array, u32 n) { if(!screen->init) { rk_mipi_dsi_enable_hs_clk(1); - rk_mipi_dsi_enable_video_mode(1); + rk_mipi_dsi_enable_video_mode(0); + rk_mipi_dsi_enable_command_mode(1); dcs[0] = dcs_exit_sleep_mode; rk_mipi_dsi_send_dcs_packet(dcs, 1); msleep(1); dcs[0] = dcs_set_display_on; rk_mipi_dsi_send_dcs_packet(dcs, 1); msleep(10); + rk_mipi_dsi_enable_command_mode(0); + rk_mipi_dsi_enable_video_mode(1); } else { screen->init(); } @@ -998,17 +1001,16 @@ static void rk616_mipi_dsi_late_resume(struct early_suspend *h) rk_mipi_dsi_phy_init(g_screen, 0); rk_mipi_dsi_host_init(g_screen, 0); - if(!g_screen->standby) { rk_mipi_dsi_enable_hs_clk(1); - rk_mipi_dsi_enable_video_mode(1); + rk_mipi_dsi_enable_video_mode(0); + rk_mipi_dsi_enable_command_mode(1); dcs[0] = dcs_exit_sleep_mode; rk_mipi_dsi_send_dcs_packet(dcs, 1); msleep(1); dcs[0] = dcs_set_display_on; rk_mipi_dsi_send_dcs_packet(dcs, 1); msleep(10); - } else { g_screen->standby(0); }