]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/mipi_dsi: Create dummy DSI devices
authorArchit Taneja <architt@codeaurora.org>
Mon, 7 Sep 2015 05:08:51 +0000 (10:38 +0530)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Jan 2016 09:54:42 +0000 (09:54 +0000)
commit495cd2bd9c0920e4394d21a8c278bcf17c3aca97
tree7244ad1e80bb14d180467dddac3b8ebdfeb9fb02
parent96a4763f03b8f347b85b75e20adc2967e8f80231
drm/mipi_dsi: Create dummy DSI devices

We can have devices where the data bus is MIPI DSI, but the control bus
is something else (i2c, spi etc). A typical example is i2c controlled
encoder bridge chips.

Such devices too require passing DSI specific parameters (number of data
lanes, DSI mode flags, color format etc) to their DSI host. For a device
that isn't 'mipi_dsi_device', there is no way of passing such parameters.

Provide the option of creating a dummy DSI device. The main purpose of
this would be to attach to a DSI host by calling mipi_dsi_attach, and
pass DSI params.

Create mipi_dsi_new_dummy for creating a dummy dsi device. The driver
calling this needs to be aware of the mipi_dsi_host it wants to attach
to, and also the DSI virtual channel the DSI device intends to use.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
drivers/gpu/drm/drm_mipi_dsi.c
include/drm/drm_mipi_dsi.h