A dirty 8xx SPI driver.

Navin Boppuri navin.boppuri at newisys.com
Wed Dec 19 02:58:01 EST 2001

Hello Kevin,

I am sending you a simple spi driver for the 8xx machine that I
developed a long time back. Please dont send hate mails to me cause the
this was a driver that I wrote to just get something done fast. There
are no proper defines for anything. There is a small HOWTO for this
driver that I beleive will help you get going. Please note that this
driver was a kernel level driver used with the 2.2.14 kernel. But with a
little tweaking, you should be able to make it make it work for the new
kernel. Also, make it a loadable kernel module if you are interested. 

Anyone and everyone is free to clean up the crappy code in the driver
and put in nice defines to make the code readable. You may also put in
IOCTL's for all the configuration options for the SPI controller.  

I have been busy with other things and have not had the time to clean up
this driver. Please note that this driver was my first Linux device
driver, so please be forgiving.

At the end, if you beleive that it is easier to write a driver from
scratch, get rid of it. But I beleive that this peice of code will
surely be helpful for someone trying to get things going with the SPI.
Have fun. :):) 


P.S ( This driver was written to interface the SPI to an UART. Ignore
all the UART specific defines).

-----Original Message-----
From: Kevin Fry [mailto:kevin at carts.com]
Sent: Monday, December 17, 2001 6:49 PM
To: linuxppc-embedded at lists.linuxppc.org
Subject: SPI driver?

Is there an MPC8260 SPI driver out there for Linux?  It wouldn't be
terribly hard to write one on my own, but why re-invent the wheel?

A link to an 8xx driver would be almost as good. The only one I've found
so far has been SPI over a PC's parallel port. heh


Kevin Fry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: spi.c
Type: application/octet-stream
Size: 12300 bytes
Desc: spi.c
Url : http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20011218/5d6657ae/attachment.obj 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: spinotes.txt
Url: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20011218/5d6657ae/attachment.txt 

More information about the Linuxppc-embedded mailing list