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.

SPI驱动问题

Other Parts Discussed in Thread: AM3352

问题:spi注册失败 ret = spi_register_board_info(cpuimx51sd_spi_device,ARRAY_SIZE(cpuimx51sd_spi_device));

返回: 是失败

环境:linux am3352 使用spi驱动

############################################

1、spi1_init函数有被执行

2、spi对应的设备init也能够进入了。

3、问题:该驱动的probe函数没有被执行。这里求解。

##################################################################

我的配置

618 static struct mcp251x_platform_data mcp251x_info = {
 619         .oscillator_frequency = 24E6,
 620 };
 621 static struct spi_board_info cpuimx51sd_spi_device[] = {
 622     {
 623         .modalias        = "mcp2515",
 624         .max_speed_hz    = 10000000,
 625         .bus_num         = 1,
 626         .mode   = SPI_MODE_0,
 627         .chip_select     = 2,
 628         .platform_data   = &mcp251x_info,
 629         .irq             = OMAP_GPIO_IRQ(SPI1_IRQ_PIN1)
 630     },
 631 };