CFI and driver code for AM29LV320D ..newbie query
David,
OK. So a 0x98 write to (0x55 + flash_baseptr) and then a read at flash_baseptr should give me all the CFI query related data. Right?.
Sorry for the dumb question. My second day at development on linux ;) Where do I get the code for the standard linux driver for flash.
Thanks and Regards,
Vijay
Quoted 8 lines
Quoted 3 lines
Have a query. Can I get CFI and driver code for AM29LV320D anywhere?. Going thru AMD site found some cfi code, but it didn't have reference to this flash.
The whole point in CFI is that you don't _need_ to have a specific reference to the chip in question. The standard Linux drivers should drive it just fine.
Quoted 5 lines
With the exception that AMD managed to screw up the CFI table on some of the chips -- but we work around that.
--
dwmw2
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
Quoted 2 lines · [email protected] said:
OK. So a
0x98write to (0x55+flash_baseptr) and then a read atflash_baseptrshould give me all the CFI query related data. Right?.
Er, I mean that calling the 'cfi_probe' function should return you a full MTD driver for the appropriate chip. You don't need to know the details, except that you need to turn on the appropriate CFI probing and AMD command set code in your kernel.
Quoted 2 lines
Sorry for the dumb question. My second day at development on linux ;) Where do I get the code for the standard linux driver for flash.
See drivers/mtd/maps/physmap.c and configure it with the appropriate parameters for how the flash is wired up on your boards.
--
dwmw2