From mboxrd@z Thu Jan 1 00:00:00 1970 From: hsingh Date: Sat, 29 Oct 2011 02:03:33 -0700 (PDT) Subject: [U-Boot] Driver data in u-boot Message-ID: <32742826.post@talk.nabble.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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.