linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/3] imx-drm: Add mx6 hdmi transmitter support
Date: Wed, 16 Oct 2013 23:27:12 +0100	[thread overview]
Message-ID: <20131016222712.GM25034@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <525EFF15.2010007@boundarydevices.com>

On Wed, Oct 16, 2013 at 02:03:17PM -0700, Troy Kisky wrote:
> Freescale's kernel(imx_3.0.35_4.1.0) has this code
>
> video/mxc_hdmi.c-/* Workaround to clear the overflow condition */
> video/mxc_hdmi.c-static void mxc_hdmi_clear_overflow(void)
> video/mxc_hdmi.c-{
> video/mxc_hdmi.c-       int count;
> video/mxc_hdmi.c-       u8 val;
> video/mxc_hdmi.c-
> video/mxc_hdmi.c-       /* TMDS software reset */
> video/mxc_hdmi.c: hdmi_writeb((u8)~HDMI_MC_SWRSTZ_TMDSSWRST_REQ,  
> HDMI_MC_SWRSTZ);
> video/mxc_hdmi.c-
> video/mxc_hdmi.c-       val = hdmi_readb(HDMI_FC_INVIDCONF);
> video/mxc_hdmi.c-
> video/mxc_hdmi.c-       if (cpu_is_mx6dl()) {
> video/mxc_hdmi.c-                hdmi_writeb(val, HDMI_FC_INVIDCONF);
> video/mxc_hdmi.c-                return;
> video/mxc_hdmi.c-       }
> video/mxc_hdmi.c-
> video/mxc_hdmi.c-       for (count = 0 ; count < 5 ; count++)
> video/mxc_hdmi.c-               hdmi_writeb(val, HDMI_FC_INVIDCONF);
> video/mxc_hdmi.c-}
>
> So, perhaps you need to move the software reset first.

Just tried that - and yes, it does work (I'm on i.MX 6Solo for which
cpu_is_mx6dl() would return true.)  Well done!

Indeed yes, the workaround in the code Fabio has differs from the
procedure given in the errata.

Note that this gives a new problem: we shouldn't use cpu_is_mx6dl()
in drivers - differences like this should be specified via DT properties.
I think we need this to recognise both fsl,imx6q-hdmi and fsl,imx6dl-hdmi
so that this workaround can detect when its running on a Solo/DL SoC.

Well, I now have quite a pile of patches for the hdmi code. :(

  reply	other threads:[~2013-10-16 22:27 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1380826287-30253-1-git-send-email-fabio.estevam@freescale.com>
2013-10-03 18:51 ` [PATCH v2 2/3] ARM: dts: imx6qdl-wandboard: Add HDMI support Fabio Estevam
2013-10-14 17:38   ` Russell King - ARM Linux
2013-10-15  2:47     ` Fabio Estevam
2013-10-15 10:00       ` Russell King - ARM Linux
2013-10-15 10:09         ` Sascha Hauer
2013-10-14 17:40   ` Russell King - ARM Linux
2013-10-14 22:50     ` Russell King - ARM Linux
2013-10-15  3:20       ` Fabio Estevam
2013-10-15  7:46       ` Sascha Hauer
2013-10-15  9:18         ` Russell King - ARM Linux
2013-10-15 10:35           ` Russell King - ARM Linux
2013-10-16  7:20             ` Sascha Hauer
2013-10-03 18:51 ` [PATCH v2 3/3] ARM: dts: imx6qdl-sabresd: " Fabio Estevam
2013-10-03 20:27 ` [PATCH v2 1/3] imx-drm: Add mx6 hdmi transmitter support Dan Carpenter
2013-10-15 13:10   ` Russell King - ARM Linux
2013-10-15 13:17     ` Fabio Estevam
2013-10-16 17:03       ` Russell King - ARM Linux
2013-10-16 18:07         ` Russell King - ARM Linux
2013-10-16 18:31           ` Greg Kroah-Hartman
2013-10-16 19:02             ` Russell King - ARM Linux
2013-10-16 21:20               ` Sascha Hauer
2013-10-17  8:27               ` Lucas Stach
2013-10-20  0:04             ` Russell King - ARM Linux
2013-10-20 13:00               ` Russell King - ARM Linux
2013-10-20 16:31                 ` Russell King - ARM Linux
2013-10-20 21:56                   ` Russell King - ARM Linux
2013-10-20  9:32             ` Russell King - ARM Linux
2013-10-16 19:37         ` Troy Kisky
2013-10-16 20:27           ` Russell King - ARM Linux
2013-10-16 21:03             ` Troy Kisky
2013-10-16 22:27               ` Russell King - ARM Linux [this message]
2013-10-17  8:45       ` Russell King - ARM Linux
2013-10-03 20:48 ` Greg KH

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=20131016222712.GM25034@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).