mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
drm/panel: simple: add support dsc/pps sequence transfer for dsi
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com> Change-Id: I7a828c34c13c201694bd5e3fcaeab47508b58ed8
This commit is contained in:
@@ -216,6 +216,7 @@ static int panel_simple_xfer_dsi_cmd_seq(struct panel_simple *panel,
|
||||
{
|
||||
struct device *dev = panel->base.dev;
|
||||
struct mipi_dsi_device *dsi = panel->dsi;
|
||||
struct drm_dsc_picture_parameter_set *pps = NULL;
|
||||
unsigned int i;
|
||||
int err;
|
||||
|
||||
@@ -228,6 +229,9 @@ static int panel_simple_xfer_dsi_cmd_seq(struct panel_simple *panel,
|
||||
struct panel_cmd_desc *cmd = &seq->cmds[i];
|
||||
|
||||
switch (cmd->header.data_type) {
|
||||
case MIPI_DSI_COMPRESSION_MODE:
|
||||
err = mipi_dsi_compression_mode(dsi, cmd->payload[0]);
|
||||
break;
|
||||
case MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM:
|
||||
case MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM:
|
||||
case MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM:
|
||||
@@ -241,6 +245,10 @@ static int panel_simple_xfer_dsi_cmd_seq(struct panel_simple *panel,
|
||||
err = mipi_dsi_dcs_write_buffer(dsi, cmd->payload,
|
||||
cmd->header.payload_length);
|
||||
break;
|
||||
case MIPI_DSI_PICTURE_PARAMETER_SET:
|
||||
pps = (struct drm_dsc_picture_parameter_set *)cmd->payload;
|
||||
err = mipi_dsi_picture_parameter_set(dsi, pps);
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user