how CAN-bus Linux driver MCP251x.c works

Dave Hylands dhylands at gmail.com
Fri Jan 14 14:26:29 EST 2011


Hi Cheng,

On Fri, Jan 14, 2011 at 8:31 AM, cheng chen <freakrobot at acm.org> wrote:
...snip...
> Thanks for your help, I understand the frameworks now.
> But if I want to make the CAN driver(mcp251x.c) works on my own embedded
> board, should do some work to make the SPI fit my hardware?

You would need to implement the SPI driver using the SPI
infrastructure so that the CAN driver can use it.

See Documentation/spi directory for documentation on the SPI infrastructure.

Dave Hylands



More information about the Kernelnewbies mailing list