how to use amd_flash.c

Jonas Holmberg jonas.holmberg at
Thu Apr 4 02:23:42 EST 2002

On Thu, 2002-04-04 at 09:07, Steve Tsai wrote:
> I'd want to use mtd and jffs2 in our ARM7  board.  The flash is MX29LV160B/T
> and it is similar to am29LV160, but it does not support CFI. How many files
> do I to modify or add to mtd tree? It seems I can modify amd_flash.c to fit
> my flash, but I can not probe the chip at booting time. Does anyone know how
> to use amd_flash.c? thanks.

You need to find out the manufacturer ID and device ID for your chip. It
can usually be found in some datasheet at the manufacurer's site. Then
add an element to the amd_flash_info table[] in amd_flash_probe().

But the amd_flash driver is obsolete and you should use jedec_probe
instead. It works about the same way as amd_flash_probe. The only thing
that amd_flash does better than jedec_probe + CFI-driver is that it
handles different types of chips in the same map. But with the new MTD
concat layer you don't need to use amd_flash in that case either.


More information about the linux-mtd mailing list