OSDN Git Service

drm/dsi: Add message to packet translator
authorThierry Reding <treding@nvidia.com>
Thu, 16 Oct 2014 11:44:02 +0000 (13:44 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Nov 2014 12:55:26 +0000 (13:55 +0100)
commita52879e8d7cbeed69be5e54c69701e5edea8cc00
treedaba30972f3fc580fb3b6c818d31500bd3be2597
parent02acb76d72b3672330b6a20d2773048658b2d176
drm/dsi: Add message to packet translator

This commit introduces a new function, mipi_dsi_create_packet(), which
converts from a MIPI DSI message to a MIPI DSI packet. The MIPI DSI
packet is as close to the protocol described in the DSI specification as
possible and useful in drivers that need to write a DSI packet into a
FIFO to send a message off to the peripheral.

Suggested-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/drm_mipi_dsi.c
include/drm/drm_mipi_dsi.h