Hello,
KernelVersion 2.6.24.3
I try to use the at25 EEPROM driver included in the kernel.
I add the following lines to my boardsam9260ek.c file:
Code:
static struct spi_eeprom eeprom = {
.name = "at25160",
.byte_len = 2048,
.page_size = 32,
.flags = EE_ADDR2,
};
static struct spi_board_info spi1_board_info[] __initdata = {
{
/* EEPROM */
.modalias = "at25",
.max_speed_hz = 1000000,
.chip_select = 2,
.mode = SPI_MODE_0,
.platform_data = &eeprom,
.bus_num = 0,
},
};
I want to use the SPI EEPROM at SPI0_CS2 -> Pin PC16
If I choose this Chip select the kernel hangs on booting -> no message just stop !
Could anybody explain me, what´s wrong ? If I use Pin PC17 (.chip_select = 3) same Problem...
If I try .chip_select = 0 or .chip_select = 1 (PA3 or PC5) it seems to work ?
Thank you for your help.
Manuel Sahm