[uClinux-dev] 2 QSPI drivers for 5272?

Gavin Lambert gavinl at compacsort.com
Mon Oct 8 18:06:50 EDT 2007


Quoth chris brooke:
> I'm trying to build the QSPI driver for the Coldfire 5272 
> using the 2.6.19 kernel.
> I notice there are two copies of the driver.  One in drivers/spi 
> and the other in drivers/char.
[...]
> Which is the correct driver?  The comments in the second file 
> suggest it has been modified for the 2.6 kernel.
> How do I configure the make process so it will build it?

The one in drivers/char is the "original" driver that was ported over from
2.4, and is closely tied to the CF architecture.

The one in drivers/spi is the "new" bus driver that's been created fresh for
2.6 (first appeared in mainline around 2.6.18, I think), and is more
portable and the one that's recommended for new development.

Beyond that I can't really help you, as I'm not actually using either of
them.  You might want to upgrade your kernel, though.  Since 2.6.19 isn't
too far beyond when it was first added, there have probably been tweaks and
fixes made to it in later versions.





More information about the uClinux-dev mailing list