From 4ca95ce9ee4afa682e0699e36715412d1eb5d6d5 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Mon, 22 Apr 2019 02:49:44 +0200 Subject: drm/omap: dsi: convert to drm_panel This converts the DSI module to expect common drm_panel display drivers instead of dssdev based ones. This commit is WIP. We somehow need to know the panels resolution in omap_dsi_host_attach(), so that we can properly configure the DSI bus clock before enabling the bus. The control bus must be enabled at this point, so that the panel can use it. Other drivers run drm_panel_attach() in their dsi host attach, which makes it possible to call drm_panel_get_modes() afterwards and the get the correct mode from the connector. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 218 +++++++++--------------- drivers/gpu/drm/omapdrm/dss/dsi.c | 143 +++++++++++++--- drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c | 1 - drivers/gpu/drm/omapdrm/dss/omapdss.h | 22 +-- drivers/gpu/drm/omapdrm/omap_crtc.c | 17 +- 5 files changed, 208 insertions(+), 193 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c b/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c index 3f894de0092177..05eefbe6556f5b 100644 --- a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c +++ b/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c @@ -9,8 +9,6 @@ * the Free Software Foundation. */ -/* #define DEBUG */ - #include #include #include @@ -24,11 +22,14 @@ #include #include +#include +#include +#include +#include