public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [RFC] Remove static display data
@ 2013-07-25 18:21 Robert Winkler
  2013-07-26  7:50 ` Anatolij Gustschin
  0 siblings, 1 reply; 15+ messages in thread
From: Robert Winkler @ 2013-07-25 18:21 UTC (permalink / raw)
  To: u-boot

Hello all,

We're trying to figure out how best to get rid of static code like this:

http://git.denx.de/?p=u-boot.git;a=blob;f=board/boundary/nitrogen6x/nitrogen6x.c;h=8f0f9b8de2e8e77fcbf477728ea063a213941dd0;hb=HEAD#l526

and turn it into run time data.

Our idea is to use an environment variable so adding support for new
screens and iterating on minor settings is quick and easy and then we can
remove the static arrays like the one above and in wandboard.c and other
places.


One way to do this is to create a data structure that can subsume the
functionalities of of display_info_t and the various structures in lcd.h
and elsewhere that can be used throughout U-Boot both with CONFIG_LCD and
CONFIG_CFB_CONSOLE.  Combined with the EDID functionality already in U-Boot
this would allow code to easily select the "best" display supported by the
monitor or closest to what the user wanted (given in the environment
variable).  This data structure would then be passed to Linux on boot up.


I realize that there's already the FDT and CONFIG_OF_CONTROL functionality
and device trees sort of cover the passing to Linux part so maybe before
handing it off, converting the relevant data into a device tree that Linux
can already use/parse would work.

Is anyone working on something like this?  Am I missing something that's
already in place to accomplish this?


Thanks,

Robert Winkler

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2013-07-29 16:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-25 18:21 [U-Boot] [RFC] Remove static display data Robert Winkler
2013-07-26  7:50 ` Anatolij Gustschin
2013-07-26  8:43   ` Stefano Babic
2013-07-26 14:04     ` Eric Nelson
2013-07-26 14:42       ` Stefano Babic
2013-07-26 14:49         ` Stephen Warren
2013-07-26 19:41           ` Eric Nelson
2013-07-27  0:42         ` Eric Nelson
2013-07-27  1:34           ` Troy Kisky
2013-07-27 19:05           ` Simon Glass
2013-07-28 16:57             ` Eric Nelson
2013-07-28 18:09               ` Simon Glass
2013-07-28 19:22                 ` Eric Nelson
2013-07-29 16:50                   ` Simon Glass
2013-07-26 14:00   ` Eric Nelson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox