From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/3] drm: Add LCD display clock polarity flags
Date: Tue, 3 Dec 2013 12:07:45 +0000 [thread overview]
Message-ID: <20131203120744.GR16735@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <20131203114450.GG13726@S2101-09.ap.freescale.net>
On Tue, Dec 03, 2013 at 07:44:52PM +0800, Shawn Guo wrote:
> On Mon, Dec 02, 2013 at 04:39:26PM +0100, Marek Vasut wrote:
> > Add DRM flags for the LCD display clock polarity so the pixelclk-active DT
> > property can be properly handled by drivers using the DRM API.
> >
> > Signed-off-by: Marek Vasut <marex@denx.de>
> > Cc: Dave Airlie <airlied@gmail.com>
> > Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> > Cc: Philipp Zabel <p.zabel@pengutronix.de>
> > Cc: Sascha Hauer <s.hauer@pengutronix.de>
> > Cc: Shawn Guo <shawn.guo@linaro.org>
> > ---
> > drivers/gpu/drm/drm_modes.c | 5 +++++
> > include/uapi/drm/drm_mode.h | 3 +++
> > 2 files changed, 8 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c
> > index 85071a1..d1f3bfc 100644
> > --- a/drivers/gpu/drm/drm_modes.c
> > +++ b/drivers/gpu/drm/drm_modes.c
> > @@ -537,6 +537,11 @@ int drm_display_mode_from_videomode(const struct videomode *vm,
> > dmode->flags |= DRM_MODE_FLAG_DBLSCAN;
> > if (vm->flags & DISPLAY_FLAGS_DOUBLECLK)
> > dmode->flags |= DRM_MODE_FLAG_DBLCLK;
> > + if (vm->flags & DISPLAY_FLAGS_PIXDATA_POSEDGE)
> > + dmode->flags |= DRM_MODE_FLAG_PIXELCLK_PPOL;
> > + else if (vm->flags & DISPLAY_FLAGS_PIXDATA_NEGEDGE)
> > + dmode->flags |= DRM_MODE_FLAG_PIXELCLK_NPOL;
> > +
> > drm_mode_set_name(dmode);
> >
> > return 0;
> > diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h
> > index f104c26..a6169ca 100644
> > --- a/include/uapi/drm/drm_mode.h
> > +++ b/include/uapi/drm/drm_mode.h
> > @@ -73,6 +73,9 @@
> > #define DRM_MODE_FLAG_3D_TOP_AND_BOTTOM (7<<14)
> > #define DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF (8<<14)
> >
> > +/* CRTC LCD clock polarity flags. */
> > +#define DRM_MODE_FLAG_PIXELCLK_PPOL (1<<19)
> > +#define DRM_MODE_FLAG_PIXELCLK_NPOL (1<<20)
>
> Marek,
>
> It looks that Denis (copied) is working on the same problem, so you may
> want to be aware of his effort [1][2].
Indeed, and I made very similar comments in that thread.
next prev parent reply other threads:[~2013-12-03 12:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-02 15:39 [PATCH 1/3] drm: Add LCD display clock polarity flags Marek Vasut
2013-12-02 15:39 ` [PATCH 2/3] imx-drm: ipuv3-crtc: Make DISP_CLK polarity configurable Marek Vasut
2013-12-02 15:39 ` [PATCH 3/3] ARM: dts: imx53: Switch DISP_CLK polarity on M53EVK Marek Vasut
2013-12-02 20:01 ` [PATCH 1/3] drm: Add LCD display clock polarity flags Russell King - ARM Linux
2013-12-02 20:32 ` Rob Clark
2013-12-03 8:51 ` Ville Syrjälä
2013-12-02 23:42 ` Marek Vasut
2013-12-03 11:44 ` Shawn Guo
2013-12-03 12:07 ` Russell King - ARM Linux [this message]
2013-12-09 10:55 ` Marek Vasut
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=20131203120744.GR16735@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).