public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Add video support for mx51evk
Date: Tue, 02 Nov 2010 17:01:59 +0100	[thread overview]
Message-ID: <4CD035F7.9070609@denx.de> (raw)
In-Reply-To: <20101102133426.88B011522C0@gemini.denx.de>

On 11/02/2010 02:34 PM, Wolfgang Denk wrote:

>> Because each board uses a different LCD with a different resolution, and
>> this requires a different amount of memory. This is not different as we
>> see in Linux, because the framebuffer properties are set in the board
>> file before to be passed to the framebuffer driver.
> 
> Well, if _that_ was what we are using, the memory requirements were
> fixed, and we could use compile-time constants.

I was not complete: a single board can be connected to several LCDs, of
course not at the same type. The decision which LCD must be used should
be taken baing on an environment variable.

> 
> But what you discussed before was the option to _switch_ resolutions,
> so there has to be a way to select the cosen resolution (in an
> environment variable?),

Yes, this is what I meant....

> and then this setting is used for the memory
> calculations.

Correct.

> 
> And then the calculation depends only on the current setting - which
> is _not_ board dependent.

Yes, calculation is not board dependent and must remain in lcd_setmem().
What I meant as "board dependent" is really the LCD settings, in terms
of display resolution and bits x pixel. The proposed wek function can
set the panel_info structure, that lcd_setmem() uses for computation.

> 
> Boards would start with a (board dependent) default setting, though.

Yes. What we need is a way to get the board default setting to allow
lcd_setmem() to compute the required memory.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

  reply	other threads:[~2010-11-02 16:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-02  5:29 [U-Boot] Add video support for mx51evk Frias Renato-B13784
2010-11-02  6:40 ` Stefano Babic
2010-11-02  8:35   ` Wolfgang Denk
2010-11-02  8:59     ` Stefano Babic
2010-11-02  9:42       ` Wolfgang Denk
2010-11-02  9:49         ` Stefano Babic
2010-11-02 13:34           ` Wolfgang Denk
2010-11-02 16:01             ` Stefano Babic [this message]
2010-11-02 19:41               ` Wolfgang Denk
2010-11-02  9:18   ` Anatolij Gustschin
2010-11-03  0:04   ` Renato Frias
  -- strict thread matches above, loose matches on Subject: below --
2010-11-02  5:15 Frias Renato-B13784

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=4CD035F7.9070609@denx.de \
    --to=sbabic@denx.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox