MTD support for "Intel Strataflash P30"

Pete MacKay linux at architechnical.net
Mon Jul 23 18:59:37 EDT 2007


Yes, the P30 is supported through the Common Flash Interface (CFI) in
2.6.18 and I believe in 2.6.12 too.  You have to write a mapping driver
(see drivers/mtd/maps) and probe with the map_name "cfi_probe".  I wrote
one for a PXA-270 device similar to the Intel Mainstone board so I started
with drivers/mtd/maps/mainstone-flash.c and the platform resources in
arch/arm/mach-pxa/mainstone.c as an example.  Good luck!

Also, if you're using u-boot beware that the chip ID for two of the Strata
chips is wrong.  I've submitted a patch twice but somehow didn't follow
some unwritten rules so the u-boot git still has the wrong IDs.  They
should be (from my 1.1.4 source):

#ifndef INTEL_ID_28F64P30T
#define INTEL_ID_28F64P30T  0x8817	/*  64M =  32K x 255 + 32k x 4 */
#define INTEL_ID_28F64P30B  0x881A	/*  64M =  32K x 255 + 32k x 4 */
#define INTEL_ID_28F128P30T 0x8818	/* 128M =  64K x 255 + 32k x 4 */
#define INTEL_ID_28F128P30B 0x881B	/* 128M =  64K x 255 + 32k x 4 */
#define INTEL_ID_28F256P30T 0x8919	/* 256M = 128K x 255 + 32k x 4 */
#define INTEL_ID_28F256P30B 0x891C	/* 256M = 128K x 255 + 32k x 4 */
#endif

Note the last two start with '0x89' and not '0x88', which are the
(incorrect) values in the u-boot header include/flash.h (added in 1.1.5 or
1.1.6 if I remember correctly).

veerasena reddy veerasena_b at yahoo.co.in wrote:

Hi,

Does Linux-2.6.12 or linux-2.6.18 has MTD flash device
support for "Intel Strataflash P30" device?

I appreciate your early response.

Thanks in Advance.

Regards,
Veerasena.




More information about the linux-mtd mailing list