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] [PATCH 1/2] Add flexibility to mx51 video support
Date: Tue, 02 Nov 2010 07:57:05 +0100	[thread overview]
Message-ID: <4CCFB641.7080705@denx.de> (raw)
In-Reply-To: <6D46366820216241BB9459D07B269372D2B752@039-SN1MPN1-002.039d.mgd.msft.net>

On 11/02/2010 06:15 AM, Frias Renato-B13784 wrote:
> This patch adds flexibility to mxc_ipuv3_fb.c by allowing the display
> interface and pixel format to be passed to mx51_fb_init.
> 
> Signed-off-by: Renato Frias <renato.frias@freescale.com>

Hi Renato,

you patch seems to be corrupted and does not apply. It seems your mailer
is responsible for this. It puts html code in the mail, too:

nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pixfmt =3D =
IPU_PIX_FMT_RGB565;<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<BR>

Consider using git send-mail to post your patches to the list. This
avoid mail corruption.

> -       strcpy(fbi->fix.id, "DISP3 BG");
> +       if (ipu_di == 0)
> +               strcpy(fbi->fix.id, "DISP3 BG");
> +       else if (ipu_di == 1)
> +               strcpy(fbi->fix.id, "DISP3 BG - DI1");

I admit that I took the fix.id string from the linux driver, but it is
not used at all in the code. If we do not find a useful reason for it,
it should be probably better to get rid of it to avoid confusion.

> @@ -593,7 +596,7 @@ static int mxcfb_probe(u32 interface_pix_fmt, struct
> fb_videomode *mode)
>                 "XRES = %d YRES = %d BitsXpixel = %d\n",
>                 panel_info.vl_col,
>                 panel_info.vl_row,
> -               panel_info.vl_bpix);
> +               NBITS(panel_info.vl_bpix));

This is only a debug output to check the values in the panel_info
structure and prints them without doing any computation. If you want to
add the NBITS value (that in any case can be computed), please leave the
original output of vl_bpix, too.

Stefano

-- 
=====================================================================
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  6:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-02  5:15 [U-Boot] [PATCH 1/2] Add flexibility to mx51 video support Frias Renato-B13784
2010-11-02  6:57 ` Stefano Babic [this message]
2010-11-03  0:12   ` Renato Frias

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=4CCFB641.7080705@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