Author: hailfinger Date: 2007-12-10 17:57:59 +0100 (Mon, 10 Dec 2007) New Revision: 3003
Modified: trunk/util/flashrom/flash.h trunk/util/flashrom/flashchips.c Log: Add support for more atmel chips: AT49F002 AT49F002N AT49F002T AT49F002NT
Only tested the read function on AT49F002T. datasheet @ http://www.atmel.com/atmel/acrobat/doc1017.pdf
Signed-off-by: Frederico Silva frederico.silva@gmail.com Acked-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
Modified: trunk/util/flashrom/flash.h =================================================================== --- trunk/util/flashrom/flash.h 2007-12-09 17:18:29 UTC (rev 3002) +++ trunk/util/flashrom/flash.h 2007-12-10 16:57:59 UTC (rev 3003) @@ -74,6 +74,8 @@ #define ATMEL_ID 0x1F /* Atmel */ #define AT_29C040A 0xA4 #define AT_29C020 0xDA +#define AT_49F002N 0x07 /* for AT49F002(N) */ +#define AT_49F002NT 0x08 /* for AT49F002(N)T */
#define CATALYST_ID 0x31 /* Catalyst */
Modified: trunk/util/flashrom/flashchips.c =================================================================== --- trunk/util/flashrom/flashchips.c 2007-12-09 17:18:29 UTC (rev 3002) +++ trunk/util/flashrom/flashchips.c 2007-12-10 16:57:59 UTC (rev 3003) @@ -38,6 +38,10 @@ probe_jedec, erase_chip_jedec, write_jedec}, {"At29C020", ATMEL_ID, AT_29C020, 256, 256, probe_jedec, erase_chip_jedec, write_jedec}, + {"At49F002(N)", ATMEL_ID, AT_49F002N, 256, 256, + probe_jedec, erase_chip_jedec, write_jedec}, + {"At49F002(N)T",ATMEL_ID, AT_49F002NT, 256, 256, + probe_jedec, erase_chip_jedec, write_jedec}, {"MBM29F400TC", FUJITSU_ID, MBM29F400TC, 512, 64 * 1024, probe_m29f400bt, erase_m29f400bt, write_linuxbios_m29f400bt}, {"MX29F002", MX_ID, MX_29F002, 256, 64 * 1024,