Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: Add support for pps and compression mode command packet

After enabling DSC we need to send compression mode command packet
and pps data packet, for which 2 new data types are added
07h Compression Mode Data Type Write , short write, 2 parameters
0Ah PPS Long Write (word count determines number of bytes)
This patch adds support to send these packets.

Cc: David Airlie <airlied@linux.ie>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: dri-devel@lists.freedesktop.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-fbdev@vger.kernel.org

Changes in v3:
- None

Signed-off-by: vkorjani <vikas.korjani@intel.com>
[seanpaul removed pps_write_buffer fn, added types to packet_format helpers]
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>

authored by

vkorjani and committed by
Rob Clark
ea107a18 23f94551

+5
+2
drivers/gpu/drm/drm_mipi_dsi.c
··· 392 392 case MIPI_DSI_DCS_SHORT_WRITE: 393 393 case MIPI_DSI_DCS_SHORT_WRITE_PARAM: 394 394 case MIPI_DSI_DCS_READ: 395 + case MIPI_DSI_DCS_COMPRESSION_MODE: 395 396 case MIPI_DSI_SET_MAXIMUM_RETURN_PACKET_SIZE: 396 397 return true; 397 398 } ··· 411 410 bool mipi_dsi_packet_format_is_long(u8 type) 412 411 { 413 412 switch (type) { 413 + case MIPI_DSI_PPS_LONG_WRITE: 414 414 case MIPI_DSI_NULL_PACKET: 415 415 case MIPI_DSI_BLANKING_PACKET: 416 416 case MIPI_DSI_GENERIC_LONG_WRITE:
+3
include/video/mipi_display.h
··· 38 38 39 39 MIPI_DSI_DCS_READ = 0x06, 40 40 41 + MIPI_DSI_DCS_COMPRESSION_MODE = 0x07, 42 + MIPI_DSI_PPS_LONG_WRITE = 0x0A, 43 + 41 44 MIPI_DSI_SET_MAXIMUM_RETURN_PACKET_SIZE = 0x37, 42 45 43 46 MIPI_DSI_END_OF_TRANSMISSION = 0x08,