diff loadtools/flashid.c @ 559:f229efbfd581

fc-loadtool: added support for S29PL032J/S71PL032J flash
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 30 Jan 2020 06:03:42 +0000
parents 3886a8a40809
children 54a0bc149d9c
line wrap: on
line diff
--- a/loadtools/flashid.c	Wed Jan 29 08:03:19 2020 +0000
+++ b/loadtools/flashid.c	Thu Jan 30 06:03:42 2020 +0000
@@ -15,6 +15,7 @@
 extern struct flash_device flashdev_28F640W30T;
 extern struct flash_device flashdev_28F640W30B;
 extern struct flash_device flashdev_Am29DL640G;
+extern struct flash_device flashdev_PL032J;
 extern struct flash_device flashdev_PL129J;
 extern struct flash_device flashdev_PL129N;
 extern struct flash_device flashdev_K5A32xx_T;
@@ -114,6 +115,8 @@
 		return spansion_pl129j_or_n(bi);
 	if (ext1 == 0x2202 && ext2 == 0x2201)
 		return try_device(bi, &flashdev_Am29DL640G);
+	if (ext1 == 0x220A && ext2 == 0x2201)
+		return try_device(bi, &flashdev_PL032J);
 	fprintf(stderr, "Error: unknown device ID\n");
 	return(-1);
 }