From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mx53loco: Add support for SEIKO 4.3'' WVGA panel
Date: Thu, 25 Oct 2012 12:28:31 +0200 [thread overview]
Message-ID: <5089144F.4040102@denx.de> (raw)
In-Reply-To: <CAOMZO5DSzFJLi_-QGFCF01dK-zngNWWmFeN9kTWiDfvH4mXP=Q@mail.gmail.com>
Am 23/10/2012 19:36, schrieb Fabio Estevam:
> Hi Stefano,
>
> On Sat, Oct 20, 2012 at 12:03 PM, Stefano Babic <sbabic@denx.de> wrote:
>
>> What about to use a u-boot environment to select the display ? Could be
>> a better solution for you ? You can then have a single u-boot image
>> managing both displays. I did in this way for the mt_ventoux board
>> (board/mt_ventoux/mt_ventoux.c), maybe can this help ?
>
> Sounds good. I tried this approach.
>
> However, when I try to manipulate the env var I am not able to boot:
>
> U-Boot 2012.10-09480-g6b08fc3-dirty (Oct 23 2012 - 15:24:03)
>
> Board: MX53 LOCO
> I2C: ready
> DRAM: 1 GiB
> ...
>
> These are my simple changes (just to show the issue I am facing):
>
> --- a/board/freescale/mx53loco/mx53loco.c
> +++ b/board/freescale/mx53loco/mx53loco.c
> @@ -471,6 +471,18 @@ void lcd_iomux(void)
> void lcd_enable(void)
> {
> int ret = ipuv3_fb_init(&claa_wvga, 0, IPU_PIX_FMT_RGB565);
> + char *e;
> +
> + e = getenv("panel");
> +
> + if (e != NULL) {
> + if (strcmp(e, "claa") == 0)
> + printf("Panel is claa\n");
> +
> + if (strcmp(e, "seiko") == 0)
> + printf("Panel is seiko\n");
> + }
> +
> if (ret)
> printf("LCD cannot be configured: %d\n", ret);
> }
>
>
> Any ideas?
Yes, I thins is due to the fact that size for the framebuffer is
allocated before relocation. This was also a reason for me to migrate to
CONFIG_VIDEO instead of CONFIG_LCD.
next prev parent reply other threads:[~2012-10-25 10:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-18 18:49 [U-Boot] [PATCH] mx53loco: Add support for SEIKO 4.3'' WVGA panel Fabio Estevam
2012-10-18 18:57 ` Otavio Salvador
2012-10-20 15:03 ` Stefano Babic
2012-10-23 17:36 ` Fabio Estevam
2012-10-25 10:28 ` Stefano Babic [this message]
2012-10-25 11:02 ` Fabio Estevam
2012-10-25 11:14 ` Marek Vasut
2012-11-04 14:33 ` 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=5089144F.4040102@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 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.