File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9494#define ENABLE_CMD_MODE BIT(0)
9595
9696#define DSI_VID_MODE_CFG 0x38
97+ #define VPG_EN BIT(16)
9798#define FRAME_BTA_ACK BIT(14)
98- #define ENABLE_LOW_POWER (0x3f << 8)
99- #define ENABLE_LOW_POWER_MASK (0x3f << 8)
99+ #define LP_HFP_EN BIT(13)
100+ #define LP_HBP_EN BIT(12)
101+ #define ENABLE_LOW_POWER (0xf << 8)
102+ #define ENABLE_LOW_POWER_MASK (0xf << 8)
100103#define VID_MODE_TYPE_BURST_SYNC_PULSES 0x0
101104#define VID_MODE_TYPE_BURST_SYNC_EVENTS 0x1
102105#define VID_MODE_TYPE_BURST 0x2
@@ -702,7 +705,14 @@ static void dw_mipi_dsi_video_mode_config(struct dw_mipi_dsi *dsi)
702705{
703706 u32 val ;
704707
705- val = VID_MODE_TYPE_BURST | ENABLE_LOW_POWER ;
708+ val = LP_HFP_EN | ENABLE_LOW_POWER ;
709+
710+ if (dsi -> mode_flags & MIPI_DSI_MODE_VIDEO_BURST )
711+ val |= VID_MODE_TYPE_BURST ;
712+ else if (dsi -> mode_flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE )
713+ val |= VID_MODE_TYPE_BURST_SYNC_PULSES ;
714+ else
715+ val |= VID_MODE_TYPE_BURST_SYNC_EVENTS ;
706716
707717 dsi_write (dsi , DSI_VID_MODE_CFG , val );
708718}
You can’t perform that action at this time.
0 commit comments