public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: hsingh <hanumant07@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Driver data in u-boot
Date: Sat, 29 Oct 2011 02:03:33 -0700 (PDT)	[thread overview]
Message-ID: <32742826.post@talk.nabble.com> (raw)


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.

                 reply	other threads:[~2011-10-29  9:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=32742826.post@talk.nabble.com \
    --to=hanumant07@gmail.com \
    --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