summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_mipi_dsi.h
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2019-10-28 17:00:47 +0200
committerJani Nikula <jani.nikula@intel.com>2019-11-07 15:00:16 +0200
commitf4dea1aaa9a12486f5813fada574192feb3850cd (patch)
tree41f2595f5a71d1f1db3d9e087048f52e984ed24f /include/drm/drm_mipi_dsi.h
parent97ecec8b7fa59c378b010efbdaecfd85d7a04d98 (diff)
downloadlinux-f4dea1aaa9a12486f5813fada574192feb3850cd.tar.gz
linux-f4dea1aaa9a12486f5813fada574192feb3850cd.tar.bz2
linux-f4dea1aaa9a12486f5813fada574192feb3850cd.zip
drm/dsi: add helpers for DSI compression mode and PPS packets
Add helper functions for sending the DSI compression mode and picture parameter set data type packets. For the time being, limit the support to using VESA DSC 1.1 and the default PPS. This may need updating if the need arises for proprietary compression or non-default PPS, however keep it simple for starters. v2: Add missing EXPORT_SYMBOL Cc: Vandita Kulkarni <vandita.kulkarni@intel.com> Reviewed-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191028150047.22048-5-jani.nikula@intel.com
Diffstat (limited to 'include/drm/drm_mipi_dsi.h')
-rw-r--r--include/drm/drm_mipi_dsi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/drm_mipi_dsi.h b/include/drm/drm_mipi_dsi.h
index 13cf2ae59f6c..360e6377e84b 100644
--- a/include/drm/drm_mipi_dsi.h
+++ b/include/drm/drm_mipi_dsi.h
@@ -13,6 +13,7 @@
struct mipi_dsi_host;
struct mipi_dsi_device;
+struct drm_dsc_picture_parameter_set;
/* request ACK from peripheral */
#define MIPI_DSI_MSG_REQ_ACK BIT(0)
@@ -228,6 +229,9 @@ int mipi_dsi_shutdown_peripheral(struct mipi_dsi_device *dsi);
int mipi_dsi_turn_on_peripheral(struct mipi_dsi_device *dsi);
int mipi_dsi_set_maximum_return_packet_size(struct mipi_dsi_device *dsi,
u16 value);
+ssize_t mipi_dsi_compression_mode(struct mipi_dsi_device *dsi, bool enable);
+ssize_t mipi_dsi_picture_parameter_set(struct mipi_dsi_device *dsi,
+ const struct drm_dsc_picture_parameter_set *pps);
ssize_t mipi_dsi_generic_write(struct mipi_dsi_device *dsi, const void *payload,
size_t size);