Skip to contentSkip to conversation

Serial flash memory support

DISCUSSION Hinko Kocevar 2 participants 3 messages May 25, 2005 – May 26, 2005 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi everybody,

I'm starting to code kernel driver for SPI serial flash memory (we are using M25Pxx chips from ST). In the end I would like to see this chip to hold jffs2 fs and be mtd-compatible. After quick inspection of current CVS code I didn't find any code in there for SPI flash. So my questions are:

Has anybody done something on the SPI flash memory devices already?

If I start to implement mtd driver for this chip what functions do I need?

I've glimpsed over the mtd_info struct which contains lots of function pointers - are they all necessary?

regards,
hinko k

Signature · 4 lines
..because under Linux "if something is possible in principle,
then it is already implemented or somebody is working on it".

					--LKI
#1 lore raw

hi Hinko,

Quoted 1 line

Has anybody done something on the SPI flash memory devices already?

Yes, there is a driver for Atmel's DataFlash.

The driver is included in the 2.4 ARM-Linux kernels (www.arm.linux.org.uk) and the 2.6 patches for the AT91RM9200 processor
(http://maxim.org.za/AT91RM9200/2.6/).

Regards,
Andrew Victor

#2 lore raw
Quoted 8 lines · Andrew Victor

hi Hinko,

Quoted 1 line

Has anybody done something on the SPI flash memory devices already?

Yes, there is a driver for Atmel's DataFlash.

ST serial flash seems pretty close according to the specs.

Quoted 4 lines

The driver is included in the 2.4 ARM-Linux kernels (www.arm.linux.org.uk) and the 2.6 patches for the AT91RM9200 processor
(http://maxim.org.za/AT91RM9200/2.6/).

Great, 2.6 patch looks promising. Thank you. Can you provide information about timings for accessing SPI serial flash. As I could see from kernel boot dump on the maxim.org.za page you seem to be using SPI serial flash for code and data.

Our application has user data on the SPI serial flash and at boot time its contents is read - it has to be done as fast as possible. Is there some fs you could recomend for this purpose?

regards,
hinko k

Signature · 4 lines
..because under Linux "if something is possible in principle,
then it is already implemented or somebody is working on it".

					--LKI