lcd: MIPI-DSI lp cmd in video mode [1/1]

PD#SWPL-196930

Problem:
need send LP cmd in video mode

Solution:
increase LP data clk
allow LP cmd only in VSA/VBP/BFP

Verify:
t7_an400
txhd2_be311

Change-Id: Ie70fbeccab710e29a9eaf706d612ba552a1cda5d
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
diff --git a/drivers/amlogic/media/vout/lcd/lcd_tablet/MIPI_DSI/dsi_common.h b/drivers/amlogic/media/vout/lcd/lcd_tablet/MIPI_DSI/dsi_common.h
index e92c089..a528036 100644
--- a/drivers/amlogic/media/vout/lcd/lcd_tablet/MIPI_DSI/dsi_common.h
+++ b/drivers/amlogic/media/vout/lcd/lcd_tablet/MIPI_DSI/dsi_common.h
@@ -155,9 +155,9 @@
 
 /* **** DPHY timing parameter     Value (unit: 0.01ns) **** */
 /* >100ns (4M) */
-#define DPHY_TIME_LP_TESC(ui)     (250 * 100)
+#define DPHY_TIME_LP_TESC(ui)     (120 * 100)
 /* >50ns */
-#define DPHY_TIME_LP_LPX(ui)      (100 * 100)
+#define DPHY_TIME_LP_LPX(ui)      (60 * 100)
 /* (lpx, 2*lpx) */
 #define DPHY_TIME_LP_TA_SURE(ui)  DPHY_TIME_LP_LPX(ui)
 /* 4*lpx */
diff --git a/drivers/amlogic/media/vout/lcd/lcd_tablet/MIPI_DSI/dsi_ctrl/dsi_ctrl_v1.c b/drivers/amlogic/media/vout/lcd/lcd_tablet/MIPI_DSI/dsi_ctrl/dsi_ctrl_v1.c
index 2a99ee5..5931182 100644
--- a/drivers/amlogic/media/vout/lcd/lcd_tablet/MIPI_DSI/dsi_ctrl/dsi_ctrl_v1.c
+++ b/drivers/amlogic/media/vout/lcd/lcd_tablet/MIPI_DSI/dsi_ctrl/dsi_ctrl_v1.c
@@ -300,7 +300,7 @@
 	if (operation_mode == OPERATION_VIDEO_MODE) {
 		/* 3.1   Configure Low power and video mode type settings */
 		dsi_host_write(pdrv, MIPI_DSI_DWC_VID_MODE_CFG_OS,
-			// (1 << BIT_LP_CMD_EN) |
+			(1 << BIT_LP_CMD_EN) |
 			(0 << BIT_FRAME_BTA_ACK_EN) | /* enable BTA after one frame, need check */
 			// (1 << BIT_LP_HFP_EN)  | /* enable lp */
 			// (1 << BIT_LP_HBP_EN)  | /* enable lp */
@@ -312,7 +312,7 @@
 			(1 << BIT_LP_VSA_EN)  | /* enable lp */
 			(vid_mode_type << BIT_VID_MODE_TYPE)); /* burst/non-burst mode */
 		/* [23:16]outvact, [7:0]invact */
-		dsi_host_write(pdrv, MIPI_DSI_DWC_DPI_LP_CMD_TIM_OS, (4 << 16) | (4 << 0));
+		dsi_host_write(pdrv, MIPI_DSI_DWC_DPI_LP_CMD_TIM_OS, (8 << 16) | (0 << 0));
 
 		/* 3.2 Configure video packet size settings */
 		/* 3.3 Configure number of chunks and null packet size for one line */