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 V2 1/4] Add linux framebuffer header include/linux/fb.h
Date: Fri, 22 Oct 2010 08:23:47 +0200	[thread overview]
Message-ID: <4CC12DF3.2010505@denx.de> (raw)
In-Reply-To: <AANLkTikAWUrXcizf0BfPvhhPerzKMVFg725yBBLRguvu@mail.gmail.com>

On 10/22/2010 12:35 AM, Timur Tabi wrote:
> On Wed, Oct 13, 2010 at 5:14 AM, Stefano Babic <sbabic@denx.de> wrote:
>> [port of linux 2.6.34 commit 6a9ee8af344e3bd7dbd61e67037096cdf7f83289]
>>
>> Signed-off-by: Stefano Babic <sbabic@denx.de>
>> ---
>> Changes since V1:
>>  - added precise reference to the kernel version used for porting
>>   in the commit message
> 
> Why are we adding this header file?

Hi Timur,

the main reason is to simplify the porting of Linux framebuffer's
drivers and to not reinvent new structures to set up the LCD parameters,
as well as avoiding to hard-coding their values as some drivers
currently do (I can point to the mx3fb.c driver for MX31).

IMHO using the fb.h makes a reference to a documented (in linux) header
file, that it is easier to understand for someone adding a new custom
board.

I have checked now and I see that some other drivers are requiring these
kind of stuctures: the fsl_diu.c for mpc512x has a custom header file
("board/freescale/common/fsl_diu_fb.h"), where a couple of these
structures are defined from Linux and that are part of fb.h. Really
there is nothing in this header that is suitable only for Freescale's
board, but it points to the fact that a general header is required.

Then, as it is supposed other drivers can have the same requirements,
why do not take the header directly from Linux instead of redefining the
same structures again ?

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-10-22  6:23 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-12  9:25 [U-Boot] MX51 LCD Support Stefano Babic
2010-10-12  9:25 ` [U-Boot] [PATCH 1/4] Add linux framebuffer header Stefano Babic
2010-10-12  9:25   ` [U-Boot] [PATCH 2/4] MX51: Add IPU driver for video support Stefano Babic
2010-10-12  9:25     ` [U-Boot] [PATCH 3/4] MX51: Add " Stefano Babic
2010-10-12  9:25       ` [U-Boot] [PATCH 4/4] MX51: Add video support to vision2 board Stefano Babic
2010-10-12 11:37         ` Wolfgang Denk
2010-10-12 15:07           ` stefano babic
2010-10-12 15:14             ` Wolfgang Denk
2010-10-13 10:17         ` [U-Boot] [PATCH V2 " Stefano Babic
2010-10-21 22:25           ` Anatolij Gustschin
2010-10-12 11:34       ` [U-Boot] [PATCH 3/4] MX51: Add video support Wolfgang Denk
2010-10-12 14:57         ` stefano babic
2010-10-12 15:12           ` Wolfgang Denk
2010-10-13  8:53             ` Stefano Babic
2010-10-13 10:17       ` [U-Boot] [PATCH V2 " Stefano Babic
2010-10-21 22:18         ` Anatolij Gustschin
2010-10-12 11:30     ` [U-Boot] [PATCH 2/4] MX51: Add IPU driver for " Wolfgang Denk
2010-10-12 12:17       ` Stefano Babic
2010-10-13 10:16     ` [U-Boot] [PATCH V2 " Stefano Babic
2010-10-20 21:45       ` Anatolij Gustschin
2010-10-20 22:10         ` Stefano Babic
2010-10-21  7:35           ` Anatolij Gustschin
2010-10-21 22:13       ` Anatolij Gustschin
2010-10-12 11:22   ` [U-Boot] [PATCH 1/4] Add linux framebuffer header Wolfgang Denk
2010-10-13 10:14   ` [U-Boot] [PATCH V2 1/4] Add linux framebuffer header include/linux/fb.h Stefano Babic
2010-10-21 22:09     ` Anatolij Gustschin
2010-10-21 22:35     ` Timur Tabi
2010-10-22  6:23       ` Stefano Babic [this message]
2010-10-22 12:59         ` Timur Tabi
2010-10-22 13:11           ` Wolfgang Denk
2010-10-21  8:34 ` [U-Boot] [PATCH V2 4/4] MX51: Add video support to vision2 board Stefano Babic
2010-10-21 22:22   ` Anatolij Gustschin

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=4CC12DF3.2010505@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