[PATCH] Add a map_sram driver to drivers/chips/

Ian Campbell icampbell at arcomcontrols.com
Tue Nov 12 06:05:25 EST 2002


Howdy,

The attached patch adds "map_sram" as a second chip driver in
drivers/mtd/chips/map_ram.c.  The two are basically identical apart from
the use of the MTD_VOLATILE flag.

I have another patch which makes an entirely separate map_sram.c, but
there was so much code duplication with map_ram.c I didn't see the
point. I guess if you are using modules then you will need 'alias
map_sram map_ram' in /etc/modules.conf or something to get autoloading
to work.

The patch also includes a previous patch to set the state to
MTD_ERASE_DONE in mapram_erase. This is needed to mount a JFFS2 f/s on
an SRAM or RAM device.

Cheers,
Ian.

-- 
Ian Campbell
Design Engineer

Arcom Control Systems Ltd,
Clifton Road,
Cambridge CB1 7EA
United Kingdom

Tel: +44 (0)1223 403465
E-Mail: icampbell at arcomcontrols.com
Web: http://www.arcomcontrols.com


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mtd.map_sram-2.patch
Type: text/x-patch
Size: 3266 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20021112/7b21152f/attachment.bin 


More information about the linux-mtd mailing list