[RFC PATCH] drm/mipi-dsi: add some generic functions for DCS

Thierry Reding thierry.reding at gmail.com
Tue Aug 5 03:08:45 PDT 2014


On Thu, Jul 31, 2014 at 01:14:42PM +0900, YoungJun Cho wrote:
> This patch adds some generic functions for DCS like below
> to standize on common APIs rather than per-driver
> implementations.
> 
> mipi_dcs_enter_sleep_mode() / mipi_dcs_exit_sleep_mode()
> - These are required to disable / enable all blocks inside
>   the display module.
> 
> mipi_dcs_set_display_off() / mipi_dcs_set_display_on()
> - These are required to stop / start displaying the image
>   data on the display device.
> 
> mipi_dcs_set_tear_off() / mipi_dcs_set_tear_on()
> - These are required to turn off or on the display module's
>   TE output signal on the TE signal line.
> 
> mipi_dsi_set_maximum_return_packet_size()
> - Although it is not related with DCS, it is required before
>   using mipi_dsi_dcs_read() to specify the maximum size of
>   the payload in a long packet.
> 
> Signed-off-by: YoungJun Cho <yj44.cho at samsung.com>
> Acked-by: Inki Dae <inki.dae at samsung.com>
> Acked-by: Kyungmin Park <kyungmin.park at samsung.com>
> ---
>  drivers/gpu/drm/drm_mipi_dsi.c | 113 +++++++++++++++++++++++++++++++++++++++++
>  include/drm/drm_mipi_dsi.h     |  14 +++++
>  2 files changed, 127 insertions(+)

I've applied this patch after applying some cleanup and rebasing onto
some changes I've been working on. I also broke it up into two separate
patches, one for the mipi_dsi_set_maximum_return_packet_size() function
and another for the DCS command implementations.

I also have a bunch of other functions that I need for a panel driver
that I'm working on. I'll send those out shortly.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20140805/35bc8829/attachment.sig>


More information about the dri-devel mailing list