From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Reding Subject: Re: [PATCH v2 04/18] video: add command mode and command mode display timing Date: Mon, 26 May 2014 12:14:43 +0200 Message-ID: <20140526101441.GA24492@ulmo> References: <1400647390-26590-1-git-send-email-yj44.cho@samsung.com> <1400647390-26590-5-git-send-email-yj44.cho@samsung.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1213047532==" Return-path: In-Reply-To: <1400647390-26590-5-git-send-email-yj44.cho@samsung.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: YoungJun Cho , Heiko Stuebner Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, sw0312.kim@samsung.com, dri-devel@lists.freedesktop.org, a.hajda@samsung.com, kyungmin.park@samsung.com, robh+dt@kernel.org, laurent.pinchart@ideasonboard.com, galak@codeaurora.org, kgene.kim@samsung.com, s.trumtrar@pengutronix.de List-Id: devicetree@vger.kernel.org --===============1213047532== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="M9NhX3UHpAaciwkO" Content-Disposition: inline --M9NhX3UHpAaciwkO Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 21, 2014 at 01:42:56PM +0900, YoungJun Cho wrote: > This patch is based on videomode and display_timing relevant codes. > To support command mode panel, it does not need to guide its timing > information to the display controller like video mode panel, > but it requires signal timings to transfer video data. > So this patch adds cmdmode struct, cmdmode_display_timing struct and > the according helper functions to convert cmdmode_display_timing > to a generic cmdmode. >=20 > Signed-off-by: YoungJun Cho > Acked-by: Inki Dae > Acked-by: Kyungmin Park > --- > drivers/video/Kconfig | 3 + > drivers/video/Makefile | 2 + > drivers/video/cmdmode.c | 42 ++++++ > drivers/video/cmdmode_display_timing.c | 26 ++++ > drivers/video/of_cmdmode.c | 55 ++++++++ > drivers/video/of_cmdmode_display_timing.c | 212 +++++++++++++++++++++++= ++++++ > include/video/cmdmode.h | 67 +++++++++ > include/video/cmdmode_display_timing.h | 59 ++++++++ > include/video/of_cmdmode.h | 19 +++ > include/video/of_cmdmode_display_timing.h | 26 ++++ > 10 files changed, 511 insertions(+) > create mode 100644 drivers/video/cmdmode.c > create mode 100644 drivers/video/cmdmode_display_timing.c > create mode 100644 drivers/video/of_cmdmode.c > create mode 100644 drivers/video/of_cmdmode_display_timing.c > create mode 100644 include/video/cmdmode.h > create mode 100644 include/video/cmdmode_display_timing.h > create mode 100644 include/video/of_cmdmode.h > create mode 100644 include/video/of_cmdmode_display_timing.h Cc'ing Heiko St=C3=BCbner on this. Heiko, you seem to have done some work on i80 in the past[0] and I'm wondering if you could share any insights you may have here. In particular I'd like your take on the approach taken in this patch to describe i80 parameters to a generic command-mode display timings structure. However it seems to me that these timings are really very i80 specific and don't apply in general to command-mode displays. As such I'm beginning to think that this should rather be a property of the attached display/panel rather than the interface that generates the signal. Thierry [0]: https://lkml.org/lkml/2011/5/17/170 > diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig > index c7b4f0f..7090ee5 100644 > --- a/drivers/video/Kconfig > +++ b/drivers/video/Kconfig > @@ -38,6 +38,9 @@ config VGASTATE > config VIDEOMODE_HELPERS > bool > =20 > +config CMDMODE_HELPERS > + bool > + > config HDMI > bool > =20 > diff --git a/drivers/video/Makefile b/drivers/video/Makefile > index 9ad3c17..619dd99 100644 > --- a/drivers/video/Makefile > +++ b/drivers/video/Makefile > @@ -8,6 +8,8 @@ obj-y +=3D backlight/ > obj-y +=3D fbdev/ > =20 > obj-$(CONFIG_VIDEOMODE_HELPERS) +=3D display_timing.o videomode.o > +obj-$(CONFIG_CMDMODE_HELPERS) +=3D cmdmode_display_timing.o cmdmode.o > ifeq ($(CONFIG_OF),y) > obj-$(CONFIG_VIDEOMODE_HELPERS) +=3D of_display_timing.o of_videomode.o > +obj-$(CONFIG_CMDMODE_HELPERS) +=3D of_cmdmode_display_timing.o of_cmdmod= e.o > endif > diff --git a/drivers/video/cmdmode.c b/drivers/video/cmdmode.c > new file mode 100644 > index 0000000..3d3eeb8 > --- /dev/null > +++ b/drivers/video/cmdmode.c > @@ -0,0 +1,42 @@ > +/* > + * generic cmdmode display timing functions > + * > + * Copyright (c) 2014 YoungJun Cho > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License version 2 as > + * published by the Free Software Foundation. > + */ > + > +#include > +#include > +#include