public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: "K, Mythri P" <mythripk@ti.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH 1/2] OMAPDSS: HDMI: Move duplicate code from boardfile to
Date: Wed, 26 Oct 2011 11:27:59 +0300	[thread overview]
Message-ID: <1319617679.2097.38.camel@deskari> (raw)
In-Reply-To: <CAP5A+B9F8f+qZJg6DM1c78wj=o=rwh35bOsAEnLW4Bqr7oGVLA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1581 bytes --]

On Tue, 2011-10-25 at 15:11 +0530, K, Mythri P wrote:
> Hi,
> 
> On Fri, Oct 21, 2011 at 4:42 PM, Tomi Valkeinen <tomi.valkeinen@ti.com> wrote:

> > However, for DSI we need to change the pins during runtime, so that's
> > why the functions for DSI are required. If the HDMI configuration is
> > more static, and needs to be done only once at boot time, perhaps the
> > display_init function could go through the displays from the board_data,
> > and if there's an HDMI display defined, do the muxing.
> Mux configuration for HDMI is static unlike for DSI, Also i have added
> a check for OMAP4,

So you are sure the HDMI pins do not need to be muxed to safe-mode or
similar when HDMI is not in use, to avoid leak currencies, prevent
interference signals on the wires, etc?

That is the reason for the runtime DSI pin muxing.

> I am not aware of any OMAP4 board without the HDMI today.

Neither am I, but it doesn't mean there won't be.

> It appears to me that even other modules do their mux configuration in
> board-file.

Most of the mux config is done in other files than board files.

My point was that I don't want identical code in every board file which
supports HDMI. One option would be to implement omap_hdmi_mux_init
function, which takes as an argument whether the internal pull up has to
be enabled or not. And this function should be called from the board
files that have HDMI.

It's not perfect, as you still need to call the function, but it's much
better than having the identical muxing code in every board file.

 Tomi


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

      reply	other threads:[~2011-10-26  8:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-21  9:26 [PATCH 1/2] OMAPDSS: HDMI: Move duplicate code from boardfile to mythripk
2011-10-21 11:12 ` Tomi Valkeinen
2011-10-25  9:41   ` K, Mythri P
2011-10-26  8:27     ` Tomi Valkeinen [this message]

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=1319617679.2097.38.camel@deskari \
    --to=tomi.valkeinen@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=mythripk@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox