From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2 3/4] lcd: calculate line_length after lcd_ctrl_init()
Date: Sun, 4 Nov 2012 17:49:24 +0100 [thread overview]
Message-ID: <20121104174924.653c2264@wker> (raw)
In-Reply-To: <1350622294-374-3-git-send-email-swarren@wwwdotorg.org>
Hi,
On Thu, 18 Oct 2012 22:51:33 -0600
Stephen Warren <swarren@wwwdotorg.org> wrote:
> When an LCD driver is actually driving a regular external display, e.g.
> an HDMI monitor, the display resolution might not be known until the
> display controller has initialized, i.e. during lcd_ctrl_init(). However,
> lcd.c calculates lcd_line_length before calling this function, thus
> relying on a hard-coded resolution in struct panel_info.
>
> Instead, defer this calculation until after lcd_ctrl_init() has had the
> chance to dynamically determine the resolution. This needs to happen
> before lcd_clear(), since the value is used there.
>
> grep indicates that no code outside lcd.c uses this lcd_line_length; in
> particular, no lcd_ctrl_init() implementations read it.
>
> Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
> ---
> common/lcd.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
Acked-by: Anatolij Gustschin <agust@denx.de>
Thanks,
Anatolij
next prev parent reply other threads:[~2012-11-04 16:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-19 4:51 [U-Boot] [PATCH V2 1/4] ARM: bcm2835: add mailbox driver Stephen Warren
2012-10-19 4:51 ` [U-Boot] [PATCH V2 2/4] ARM: rpi_b: use bcm2835 mbox driver to get memory size Stephen Warren
2012-10-19 4:51 ` [U-Boot] [PATCH V2 3/4] lcd: calculate line_length after lcd_ctrl_init() Stephen Warren
2012-11-04 16:49 ` Anatolij Gustschin [this message]
2012-10-19 4:51 ` [U-Boot] [PATCH V2 4/4] video: add a driver for the bcm2835 Stephen Warren
2012-11-04 18:02 ` Anatolij Gustschin
2012-11-05 17:19 ` Stephen Warren
2012-11-05 18:11 ` Anatolij Gustschin
2012-11-04 14:53 ` [U-Boot] [PATCH V2 1/4] ARM: bcm2835: add mailbox driver Albert ARIBAUD
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=20121104174924.653c2264@wker \
--to=agust@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