[PATCH 2/7] mtd: Add map file for mpc83xx boards

hinko.kocevar at cetrtapot.si hinko.kocevar at cetrtapot.si
Mon Jul 10 09:04:51 EDT 2006


David Woodhouse wrote:
> Use a platform device and physmap. Or better still, extend physmap to
> handle of_devices too and just stick the flash information in the device
> tree.
> 

Hi,

I would like to make flash map driver with physmap or platform device, 
but am not really sure where to start. Is there an implementation 
already in place, like an example? If I understand this correctly when 
using physmap there is no need to create drivers/mtd/maps/xxxx-flash.c file?

I've tried to use platform device like in arch/arm/mach-pxa/lubbock.c, 
but I haven't seen any MTD device upon boot - instead I had to use 
drivers/mtd/maps/lubbock.c like flash map to make /porc/mtd show something.

I've attached my PXA ARM board with some bits from lubbock.c for flash 
platform device. If someone spots whats missing there let me know!

best regards,
hinko

-- 
ČETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenija
Tel. +386 (0) 4 280 66 37
E-mail: hinko.kocevar at cetrtapot.si
Http: www.cetrtapot.si

-------------- next part --------------
A non-text attachment was scrubbed...
Name: trizeps2.c.diff
Type: text/x-patch
Size: 6835 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20060710/bb6c98c2/attachment.bin 


More information about the linux-mtd mailing list