Linux with CAN over SPI

Mike.Johnson at apc.com Mike.Johnson at apc.com
Fri Apr 14 22:37:58 EST 2006


All,

I'm looking for some information about a CAN driver and how it might
nterface to an SPI port of the PPC 875 processor.

I am new to the linux world and am trying to write a CAN device driver that
uses SPI to communicate to the external CAN chip.

The latest kernel has some CAN and SPI support. I am beginning to put some
of the pieces together on how these work, but It's new to me how these are
truly instantiated and implemented in the kernel.

Does anyone know of a white paper or any documentation that may explain the
general process of a network device driver installation? (I do know that
the CAN driver is considered a network interface, not a "char" or "block"
interface.)

What is the order of steps to initialize the SPI driver? I'm guessing the
SPI driver need to be initialized before it can detect the presents of the
CAN chip.

Does the CAN driver try to talk to the CAN chip via SPI to determine its
existance?

These are the questions I'm hoping to fill in.

I have been reading the O'reilly book on device drivers...this helps
some.....but any other real world help would be appreciated.

Thank-you,

Mike

Michael Johnson
American Power Conversion
132 Fairgrounds Road
West Kingston, RI  02892
tele: (401) 789 - 5735 x2982


http://www.apc.com
http://www.netbotz.com
http://www.datacenteruniversity.com




More information about the Linuxppc-dev mailing list