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.

AM1808 SPI Problem

Other Parts Discussed in Thread: OMAP-L138

Using the Arago repository, branch remotes/origin/03.21.00.05 with LogicPD EVM

I have configured jffs2 to have a MTD based on the ST m25p80 spi flash on the baseboard of the LogicPD eval board  (CONFIG_MTD_M25P80) .

When linux comes up it tries to initialize the serial flash by first reading the device id. This happens in the function jedec_probe ( drivers/mtd/devices/m25p80.c). This function calls spi_write_then_read with the a opcode of 0x9f (OPCODE_RDID)  which should reads the id. This function should return 5 bytes from the device which indicates the id. For this device it should return 0x202024, instead it returns 0xffffffff. This leads me to believe that we have some sort of clocking  or configuration issue. I have reviewed the data structures in arch/arm/mach-davinci/board-da850-evm.c ( da850evm_spi1_pdata, da850evm_spiflash_data, da850evm_spiflash_cfg, and  da850evm_spi_info). Theses structure control the configuration of this spi interface. It look good to me.

How can I resolve this issue?

Regards.