All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Nelson <eric.nelson@boundarydevices.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/2] mx6sabresd: Avoid hang when HDMI cable is not connected
Date: Fri, 13 Sep 2013 07:51:22 -0700	[thread overview]
Message-ID: <5233266A.7050302@boundarydevices.com> (raw)
In-Reply-To: <CAOMZO5BgE0shKC2MWKRZJbtZjvabi4U+fJGb-YqH-ED7HKC=kw@mail.gmail.com>

Hi Fabio,

On 09/13/2013 06:58 AM, Fabio Estevam wrote:
> Hi Stefano,
>
> On Fri, Sep 13, 2013 at 5:16 AM, Stefano Babic <sbabic@denx.de> wrote:
>> I admit that using DT also for u-boot seems a better solution. You're
>> right about i.MX6 in kernel, but on the other hand I like how it is
>> described for i.MX28 boards. The display-timings node contain all
>> information we need. It would be nice to have the same for i.MX6.
>
> We currently have the same in DT for mx6 as well. Check this commit,
> for example:
> https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/arch/arm/boot/dts/imx6q-sabrelite.dts?id=722cfacd2e719b6447fb4bd5cd3372725876336d
>

Nice!

So, how should we get this done?

We have support for parsing individual lines of DT, and the primary
thing(s) needed by U-Boot's display are in the timing block of the
device tree, but I wonder whether it makes sense to implement a
full parser for that, or a simpler parser for fb_videomode.

Since both cfb_console in U-Boot and the of_get_fb_videomode()
routine in the kernel use fb_videomode, it should be straightforward
to hand the information off.

I don't think the outer information (the lvds-channel at 0 and
ldb blocks in imx6q-sabrelite.dts) should be parsed by U-Boot
as device-tree code since that path leads to having a full
device-tree compiler that seems inappropriate.

Let me know your thoughts.


Eric

  parent reply	other threads:[~2013-09-13 14:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-11 21:14 [U-Boot] [PATCH v2 1/2] mx6sabresd: Avoid hang when HDMI cable is not connected Fabio Estevam
2013-09-11 21:14 ` [U-Boot] [PATCH v2 2/2] mx6sabresd: Reset counter to prevent error message Fabio Estevam
2013-09-12 10:17   ` Stefano Babic
2013-09-12 15:28     ` Eric Nelson
2013-09-20 16:03   ` Stefano Babic
2013-09-12  9:47 ` [U-Boot] [PATCH v2 1/2] mx6sabresd: Avoid hang when HDMI cable is not connected Stefano Babic
2013-09-12 15:02   ` Eric Nelson
2013-09-13  8:16     ` Stefano Babic
2013-09-13 13:58       ` Fabio Estevam
2013-09-13 14:19         ` Stefano Babic
2013-09-13 14:51         ` Eric Nelson [this message]
2013-09-13 18:11           ` Fabio Estevam
2013-09-13 18:34             ` Eric Nelson
2013-09-20 16:03 ` Stefano Babic

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=5233266A.7050302@boundarydevices.com \
    --to=eric.nelson@boundarydevices.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.