SPI with 2.6.23.atmel.3

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

in kernel 2.6.22 I have changed the atstk1002.c file
to contain modified board infos for the SPI devices, e.g.

-----------------------
static struct spi_board_info spi1_board_info[] __initdata = {
{
.modalias = "spidev",
.max_speed_hz = 35000000,
.chip_select = 0,
},
};
-----------------------
The device then appeared under /dev/spidev1.0

With kernel 2.6.23, this device is not showing up anymore.
There are only the devices /dev/spi0 ... /dev/spi3 visible and I cannot access them.

Does anybody have an idea about what has changed?

Gerhard

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Did you remember to add spidev in kernel before compiling?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sh.., I found it already.
I forgot that I have compiled SPI user support as module in the latest kernel and therefore need a "modprobe spidev" before launching my application.

Thanks,
Gerhard