From: xubilv Date: Thu, 13 Oct 2016 09:58:18 +0000 (+0800) Subject: drm/rockchip: mipi: dsi: add non-burst mode macro definition X-Git-Tag: firefly_0821_release~1403 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1975117c61051f84a1f72792c757b5440007369b;p=firefly-linux-kernel-4.4.55.git drm/rockchip: mipi: dsi: add non-burst mode macro definition Change-Id: Ief47d18825afa0d0116a940336dfe1116238cdb7 Signed-off-by: xubilv --- diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi.c index 69e8b35b6fab..e289f0b177f8 100644 --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi.c @@ -91,13 +91,16 @@ #define FRAME_BTA_ACK BIT(14) #define ENABLE_LOW_POWER (0x3f << 8) #define ENABLE_LOW_POWER_MASK (0x3f << 8) -#define VID_MODE_TYPE_BURST_SYNC_PULSES 0x2 -#define VID_MODE_TYPE_MASK 0x3 +#define VID_MODE_TYPE_BURST_SYNC_PULSES 0x0 +#define VID_MODE_TYPE_BURST_SYNC_EVENTS 0x1 +#define VID_MODE_TYPE_BURST 0x2 #define DSI_VID_PKT_SIZE 0x3c #define VID_PKT_SIZE(p) (((p) & 0x3fff) << 0) #define VID_PKT_MAX_SIZE 0x3fff +#define DSI_VID_NUM_CHUMKS 0x40 +#define DSI_VID_NULL_PKT_SIZE 0x44 #define DSI_VID_HSA_TIME 0x48 #define DSI_VID_HBP_TIME 0x4c #define DSI_VID_HLINE_TIME 0x50 @@ -690,7 +693,7 @@ static void dw_mipi_dsi_video_mode_config(struct dw_mipi_dsi *dsi) { u32 val; - val = VID_MODE_TYPE_BURST_SYNC_PULSES | ENABLE_LOW_POWER; + val = VID_MODE_TYPE_BURST | ENABLE_LOW_POWER; dsi_write(dsi, DSI_VID_MODE_CFG, val); }