public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Driver data in u-boot
@ 2011-10-29  9:03 hsingh
  0 siblings, 0 replies; only message in thread
From: hsingh @ 2011-10-29  9:03 UTC (permalink / raw)
  To: u-boot


I am trying to write a spi bus driver for an arm board. Different boards from
the same vendor
are likely to have more than one instance of the controller.
So I am attempting to write a portable driver for all instances on a board.
However each board is going to have different config data like gpio numbers,
clock freq plan etc. Can I maintain these as read only global data in board
specific files
and declare them as externs in the driver implementation

I realize this is an implementation/design question,
but I believe there are some guidelines regarding use of global data in
u-boot.
My understanding is that this approach conforms to those guidelines but
correct me
if im wrong.

-- 
View this message in context: http://old.nabble.com/Driver-data-in-u-boot-tp32742826p32742826.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-29  9:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-29  9:03 [U-Boot] Driver data in u-boot hsingh

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