Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1484304

[PATCH 1/4] drm/sun4i: rgb: Declare RGB encoder and connector as MIPI DPI

From Chen-Yu Tsai <wens@csie.org>
Newsgroups linux.kernel
Subject [PATCH 1/4] drm/sun4i: rgb: Declare RGB encoder and connector as MIPI DPI
Date 2016-09-15 17:20 +0200
Message-ID <shGCe-dP-29@gated-at.bofh.it> (permalink)
References <shGCd-dP-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


The 18 or 24 bit parallel RGB LCD panel interface found on Allwinner
SoCs matches the description of MIPI DPI. Declare the RGB encoder and
connector as MIPI DPI.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
 drivers/gpu/drm/sun4i/sun4i_rgb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/sun4i/sun4i_rgb.c b/drivers/gpu/drm/sun4i/sun4i_rgb.c
index c3ff10f559cc..8b520d9f5bd9 100644
--- a/drivers/gpu/drm/sun4i/sun4i_rgb.c
+++ b/drivers/gpu/drm/sun4i/sun4i_rgb.c
@@ -240,7 +240,7 @@ int sun4i_rgb_init(struct drm_device *drm)
 	ret = drm_encoder_init(drm,
 			       &rgb->encoder,
 			       &sun4i_rgb_enc_funcs,
-			       DRM_MODE_ENCODER_NONE,
+			       DRM_MODE_ENCODER_DPI,
 			       NULL);
 	if (ret) {
 		dev_err(drm->dev, "Couldn't initialise the rgb encoder\n");
@@ -255,7 +255,7 @@ int sun4i_rgb_init(struct drm_device *drm)
 					 &sun4i_rgb_con_helper_funcs);
 		ret = drm_connector_init(drm, &rgb->connector,
 					 &sun4i_rgb_con_funcs,
-					 DRM_MODE_CONNECTOR_Unknown);
+					 DRM_MODE_CONNECTOR_DPI);
 		if (ret) {
 			dev_err(drm->dev, "Couldn't initialise the rgb connector\n");
 			goto err_cleanup_connector;
-- 
2.9.3

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/4] drm/sun4i: rgb and dotclock misc fixes and improvements Chen-Yu Tsai <wens@csie.org> - 2016-09-15 17:20 +0200
  [PATCH 1/4] drm/sun4i: rgb: Declare RGB encoder and connector as MIPI DPI Chen-Yu Tsai <wens@csie.org> - 2016-09-15 17:20 +0200
    Re: [PATCH 1/4] drm/sun4i: rgb: Declare RGB encoder and connector as  MIPI DPI Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-09-18 21:20 +0200
      Re: [PATCH 1/4] drm/sun4i: rgb: Declare RGB encoder and connector as  MIPI DPI Chen-Yu Tsai <wens@csie.org> - 2016-09-19 17:30 +0200
  [PATCH 2/4] drm/sun4i: dotclock: Fix clock rate read back calcation Chen-Yu Tsai <wens@csie.org> - 2016-09-15 17:20 +0200
    Re: [PATCH 2/4] drm/sun4i: dotclock: Fix clock rate read back  calcation Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-09-18 21:20 +0200
  [PATCH 4/4] drm/sun4i: dotclock: Round to closest clock rate Chen-Yu Tsai <wens@csie.org> - 2016-09-15 17:20 +0200
    Re: [PATCH 4/4] drm/sun4i: dotclock: Round to closest clock rate Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-09-18 21:20 +0200
      Re: [PATCH 4/4] drm/sun4i: dotclock: Round to closest clock rate Chen-Yu Tsai <wens@csie.org> - 2016-09-19 17:40 +0200
        Re: [PATCH 4/4] drm/sun4i: dotclock: Round to closest clock rate Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-09-20 17:50 +0200
    Re: [PATCH 4/4] drm/sun4i: dotclock: Round to closest clock rate Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-09-20 17:50 +0200
  [PATCH 3/4] drm/sun4i: dotclock: Allow divider = 127 Chen-Yu Tsai <wens@csie.org> - 2016-09-15 17:20 +0200
    Re: [PATCH 3/4] drm/sun4i: dotclock: Allow divider = 127 Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-09-18 21:20 +0200

csiph-web