hi,
I, have a board olimex sam9-l9260,
my board-sam9-l9260.c :
#include <linux/can/platform/mcp251x.h>
.....
static struct mcp251x_platform_data mcp251x_info = {
.oscillator_frequency = 16000000,
.model = CAN_MCP251X_MCP2515,
};
static struct spi_board_info ek_spi_devices[] = {
......
{
.modalias = "mcp251x",
.platform_data = &mcp251x_info,
.irq = AT91_PIN_PB18,
.max_speed_hz = 8*1000*1000,
.chip_select = 0,
.controller_data = (void *) AT91_PIN_PB3,
.bus_num = 1,
},
......
};
static void __init ek_board_init(void)
{
.....
/* SPI */
at91_set_gpio_output(AT91_PIN_PB17, 0); /* power on */
at91_set_gpio_output(AT91_PIN_PB16, 1); /* can reset */
at91_add_device_spi(ek_spi_devices, ARRAY_SIZE(ek_spi_devices));
when I take:
# depmod
# modprobe mcp251x
the resuli is:
sam9-l9260:~# depmod
sam9-l9260:~# modprobe mcp251x
CAN device driver interface
mcp251x spi1.0: MCP251x didn't enter in conf mode after reset
mcp251x spi1.0: Probe failed
sam9-l9260:~# : probe failed
what I'm doing wrong ? ? please help
--
View this message in context:
http://old.nabble.com/Re%3A-Problem-in-adding-mcp251x_info-into-platform-definition-file-tp28179861p29530182.html
Sent from the Socket-CAN Users mailing list archive at Nabble.com.
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users