This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Beagle XM MCP2515



Hi,

Im trying to get CANbus working on my Beagle XM using a MCP2515. Im running Gingerbread 2.3 Devkit 2.1.

For SPI i used http://elinux.org/BeagleBoard/SPI/Patch-2.6.37 .

I confirmed that it works with spidev_test.c and also with an oscilloscope.

To get CAN working I enabled the driver for MCP251x in menuconfig.

From what i read in the mcp251x.c I need to add the following to my board-omap3beagle.c :

 static struct mcp251x_platform_data mcp251x_info = {
   .oscillator_frequency = 20500000,
   .board_specific_setup = &mcp251x_setup,
   .power_enable = mcp251x_power_enable,
   .transceiver_enable = NULL,
   };
   
   static struct spi_board_info spi_board_info[] = {
   {
   .modalias = "mcp2515",
   // or "mcp2510" depending on your controller
   .platform_data = &mcp251x_info,
   .irq = NULL, // I did not connect this, will be done by software
   .max_speed_hz = 2*1000*1000,
   .chip_select = 2,
   },
   };

I added the second struct to "beagle_mcspi_board_info" from the patch i postet earlier.

My question is, where do I find the information about :

 .board_specific_setup = &mcp251x_setup,   and   .power_enable = mcp251x_power_enable, ?

And do I need more than that to get it working?