Skip to contentSkip to conversation

Driver data in u-boot

U-Boot hsingh 1 participant 1 message Oct 29, 2011

lore
Share & tools
lore

hsingh

author
#0 lore 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.

Signature · 2 lines
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.