public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Serial flash memory support
@ 2005-05-25 19:41 Hinko Kocevar
  2005-05-26  6:35 ` Andrew Victor
  0 siblings, 1 reply; 4+ messages in thread
From: Hinko Kocevar @ 2005-05-25 19:41 UTC (permalink / raw)
  To: linux-mtd

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

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

					--LKI

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Serial flash memory support
  2005-05-25 19:41 Hinko Kocevar
@ 2005-05-26  6:35 ` Andrew Victor
  2005-05-26 14:52   ` Hinko Kocevar
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Victor @ 2005-05-26  6:35 UTC (permalink / raw)
  To: Hinko Kocevar; +Cc: linux-mtd

hi Hinko,

> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Serial flash memory support
  2005-05-26  6:35 ` Andrew Victor
@ 2005-05-26 14:52   ` Hinko Kocevar
  0 siblings, 0 replies; 4+ messages in thread
From: Hinko Kocevar @ 2005-05-26 14:52 UTC (permalink / raw)
  To: Andrew Victor; +Cc: linux-mtd

Andrew Victor wrote:
> hi Hinko,
> 
> 
>>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.

> 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

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

					--LKI

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Serial flash memory support
       [not found] <B967C997C2BE2D48A6BBE14078F79BD601CE3A@ntserver.commtech.com.au>
@ 2005-05-26 15:08 ` Hinko Kocevar
  0 siblings, 0 replies; 4+ messages in thread
From: Hinko Kocevar @ 2005-05-26 15:08 UTC (permalink / raw)
  To: Damian Slee; +Cc: linux-mtd

Damian Slee wrote:
> Jffs2 does support atmel serial dataflash, as far as the driver for spi,
> that is more hardware dependent.   They recently changed the conditional 
> compiles to be CONFIG_JFFS2_FS_WRITEBUFFER for nand and dataflash.
> 
> BTW JFFS2 takes ages to do the startup scan of the flash with the 528 or
> 1056 block size of the dataflash.

Our serial flash uses 256 byte pages and is forming sectors with them, 
depending on the whole flash size. But I guess that is no case for accessing it 
quicker.

>  I was evalutating the latest cvs JFFS2 last week upon eCos.  I think it
> was about 7 seconds for 64kbytes, with the SPI clocked at 15MHz.

That is too slow for our application.
My conclusion would be that JFFS2 is too much for 'slow' SPI serial flash. I 
guess will just use raw access to the data stored there and achieve maximum 
speed. Can mtd raw access driver/module be used for this purpose or is that 
driver meant for a another stuff?

regards,
hinko k
-- 
..because under Linux "if something is possible in principle,
then it is already implemented or somebody is working on it".

					--LKI

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-05-26 15:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <B967C997C2BE2D48A6BBE14078F79BD601CE3A@ntserver.commtech.com.au>
2005-05-26 15:08 ` Serial flash memory support Hinko Kocevar
2005-05-25 19:41 Hinko Kocevar
2005-05-26  6:35 ` Andrew Victor
2005-05-26 14:52   ` Hinko Kocevar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox