All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrzej Hajda <a.hajda@samsung.com>
To: Inki Dae <inki.dae@samsung.com>
Cc: Andrzej Hajda <a.hajda@samsung.com>,
	Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	dri-devel@lists.freedesktop.org,
	linux-samsung-soc@vger.kernel.org
Subject: [PATCH 4/7] drm/exynos: propagate info about command mode from panel
Date: Tue, 18 Apr 2017 14:40:00 +0200	[thread overview]
Message-ID: <1492519203-23537-5-git-send-email-a.hajda@samsung.com> (raw)
In-Reply-To: <1492519203-23537-1-git-send-email-a.hajda@samsung.com>

mipi_dsi framework provides information about panel's mode of work.
This info should be propagated upstream to configure all elements of
the pipeline. As CRTC is the common nominator of the pipeline we can put
such info into its structures.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
---
 drivers/gpu/drm/exynos/exynos_drm_drv.h | 1 +
 drivers/gpu/drm/exynos/exynos_drm_dsi.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h
index 527bf1d..96b9d49 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.h
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h
@@ -165,6 +165,7 @@ struct exynos_drm_crtc {
 	const struct exynos_drm_crtc_ops	*ops;
 	void				*ctx;
 	struct exynos_drm_clk		*pipe_clk;
+	bool				i80_mode : 1;
 };
 
 static inline void exynos_drm_pipe_clk_enable(struct exynos_drm_crtc *crtc,
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
index 515090f..79df1c9 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
@@ -1545,6 +1545,8 @@ static int exynos_dsi_host_attach(struct mipi_dsi_host *host,
 		drm_panel_attach(dsi->panel, &dsi->connector);
 		dsi->connector.status = connector_status_connected;
 	}
+	exynos_drm_crtc_get_by_type(drm, EXYNOS_DISPLAY_TYPE_LCD)->i80_mode =
+			!(dsi->mode_flags & MIPI_DSI_MODE_VIDEO);
 
 	mutex_unlock(&drm->mode_config.mutex);
 
-- 
2.7.4

  parent reply	other threads:[~2017-04-18 12:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170418124012eucas1p268347111adc9cf1550f7bf228aaeddbf@eucas1p2.samsung.com>
2017-04-18 12:39 ` [PATCH 0/7] drm/exynos: panel mode info propagation Andrzej Hajda
     [not found]   ` <CGME20170418124012eucas1p1754a7d3053c6a22203fa32a979f18b01@eucas1p1.samsung.com>
2017-04-18 12:39     ` [PATCH 1/7] drm/exynos/decon5433: use readl_poll_timeout helpers Andrzej Hajda
     [not found]   ` <CGME20170418124012eucas1p134bb81c1737d95d685dca1cf4836b24b@eucas1p1.samsung.com>
2017-04-18 12:39     ` [PATCH 2/7] drm/exynos: use helper to set possible crtcs Andrzej Hajda
     [not found]   ` <CGME20170418124013eucas1p13103c8630a1acd86d607d02d95916786@eucas1p1.samsung.com>
2017-04-18 12:39     ` [PATCH 3/7] drm/exynos/dsi: refactor panel detection logic Andrzej Hajda
2017-08-01  9:29       ` Inki Dae
2017-08-14  6:59         ` Andrzej Hajda
     [not found]   ` <CGME20170418124013eucas1p15b1db76e79fb76f825be90793525c9b3@eucas1p1.samsung.com>
2017-04-18 12:40     ` Andrzej Hajda [this message]
2017-08-01  9:49       ` [PATCH 4/7] drm/exynos: propagate info about command mode from panel Inki Dae
2017-08-14  7:14         ` Andrzej Hajda
     [not found]   ` <CGME20170418124013eucas1p1524b3f5028ca0d5b9d962ab17c557913@eucas1p1.samsung.com>
2017-04-18 12:40     ` [PATCH 5/7] drm/exynos/mic: use mode info stored in CRTC to detect i80 mode Andrzej Hajda
     [not found]   ` <CGME20170418124014eucas1p1d2048b0f624f0536a35c3be7f20026b6@eucas1p1.samsung.com>
2017-04-18 12:40     ` [PATCH 6/7] drm/exynos/decon5433: " Andrzej Hajda
2017-08-01 10:02       ` Inki Dae
2017-08-14 10:13         ` Andrzej Hajda
     [not found]   ` <CGME20170418124014eucas1p17e424511acd2bd80104af43c2dd0533c@eucas1p1.samsung.com>
2017-04-18 12:40     ` [PATCH 7/7] dt-bindings: exynos5433-decon: remove i80-if-timings property Andrzej Hajda
2017-07-26  7:09   ` [PATCH 0/7] drm/exynos: panel mode info propagation Andrzej Hajda
2017-08-01  0:01     ` Inki Dae

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1492519203-23537-5-git-send-email-a.hajda@samsung.com \
    --to=a.hajda@samsung.com \
    --cc=b.zolnierkie@samsung.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=inki.dae@samsung.com \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.