Unable to Work with SPI FLASH(M25P64) using Microblaze processor,Spartan 6 FPGA
I had compiled my xilinx Kernel 2.6.35 by enabling the MTD and SPI related configurations in 'Make menuconfig' (attached the .config file for details).
The kernel was able to detect my SPI FLASH and printing as below while booting:
xilinx-xps-spi 20000000.spi: at 0x20000000 mapped to 0xc8080000, irq=3
m25p80 spi32766.0: non-JEDEC variant of m25p80
m25p80 spi32766.0: m25p80 (1024 Kbytes)
Can anyone help me how to read or write to this SPI FLASH by using an application!