FreeCalypso > hg > freecalypso-tools
diff loadtools/flashid.c @ 553:3886a8a40809
fc-loadtool: added support for old Am29DL640G flash chip
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 21 Dec 2019 10:48:24 +0000 |
parents | 9a478d33b3ca |
children | f229efbfd581 |
line wrap: on
line diff
--- a/loadtools/flashid.c Sun Nov 17 22:40:36 2019 +0000 +++ b/loadtools/flashid.c Sat Dec 21 10:48:24 2019 +0000 @@ -14,6 +14,7 @@ extern struct flash_device flashdev_28F640C3B; extern struct flash_device flashdev_28F640W30T; extern struct flash_device flashdev_28F640W30B; +extern struct flash_device flashdev_Am29DL640G; extern struct flash_device flashdev_PL129J; extern struct flash_device flashdev_PL129N; extern struct flash_device flashdev_K5A32xx_T; @@ -111,6 +112,8 @@ printf("Extended ID: %04X %04X\n", ext1, ext2); if (ext1 == 0x2221 && ext2 == 0x2200) return spansion_pl129j_or_n(bi); + if (ext1 == 0x2202 && ext2 == 0x2201) + return try_device(bi, &flashdev_Am29DL640G); fprintf(stderr, "Error: unknown device ID\n"); return(-1); }