diff options
author | Nickey Yang <nickey.yang@rock-chips.com> | 2018-10-01 14:38:44 +0200 |
---|---|---|
committer | Andrzej Hajda <a.hajda@samsung.com> | 2018-10-30 14:06:29 +0100 |
commit | 739838b5f88642dbef7f91dec4fcf8b7f9d0bc46 (patch) | |
tree | d749a277a2b76a0882b0e849b8dc4b19cb636492 /include/drm/bridge | |
parent | 2d4f7bdafd709a5cf38f42358bd4c31c621a3e1b (diff) | |
download | linux-stable-739838b5f88642dbef7f91dec4fcf8b7f9d0bc46.tar.gz linux-stable-739838b5f88642dbef7f91dec4fcf8b7f9d0bc46.tar.bz2 linux-stable-739838b5f88642dbef7f91dec4fcf8b7f9d0bc46.zip |
drm/bridge/synopsys: dsi: add dual-dsi support
Allow to also drive a slave dw-mipi-dsi controller in a dual-dsi
setup. This will require additional implementation-specific
code to look up the slave instance and do specific setup.
Also will probably need code in the specific crtcs as dual-dsi
does not equal two separate dsi outputs.
To activate, the implementation-specific code should set the slave
using dw_mipi_dsi_set_slave() before calling __dw_mipi_dsi_bind().
v2:
- expect real interface number of lanes
- keep links to both master and slave
v3:
- remove unneeded separate variables
- remove unneeded second slave settings
- disable slave before master
- lane-sum calculation comments
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Philippe Cornu <philippe.cornu@st.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181001123845.11818-7-heiko@sntech.de
Diffstat (limited to 'include/drm/bridge')
-rw-r--r-- | include/drm/bridge/dw_mipi_dsi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/bridge/dw_mipi_dsi.h b/include/drm/bridge/dw_mipi_dsi.h index a9c03099cf3e..48a671e782ca 100644 --- a/include/drm/bridge/dw_mipi_dsi.h +++ b/include/drm/bridge/dw_mipi_dsi.h @@ -45,5 +45,6 @@ struct dw_mipi_dsi *dw_mipi_dsi_probe(struct platform_device *pdev, void dw_mipi_dsi_remove(struct dw_mipi_dsi *dsi); int dw_mipi_dsi_bind(struct dw_mipi_dsi *dsi, struct drm_encoder *encoder); void dw_mipi_dsi_unbind(struct dw_mipi_dsi *dsi); +void dw_mipi_dsi_set_slave(struct dw_mipi_dsi *dsi, struct dw_mipi_dsi *slave); #endif /* __DW_MIPI_DSI__ */ |