flashchips: Add STM M28F256
Very simple 5V, 12V Vpp, 256kbit parallel flash.
Datasheet used:
https://www.mouser.com/catalog/specsheets/STMicroelectronics_M28F256.pdf
Change-Id: I95a59d0b36a9a99e102788bd9c850bf12192efba
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/522
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
diff --git a/flashchips.c b/flashchips.c
index d2fbaa3..6e9c9b4 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -20184,6 +20184,29 @@
{
.vendor = "ST",
+ .name = "M28F256",
+ .bustype = BUS_PARALLEL,
+ .id.type = ID_82802AB,
+ .id.manufacture = ST_ID,
+ .id.model = ST_M28F256,
+ .total_size = 32,
+ .tested = TEST_OK_PREW,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { {32 * 1024, 1} },
+ .block_erase = erase_m28f,
+ }
+ },
+ .write = write_m28f,
+ .read = read_memmapped,
+ .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V, 12V Vpp */
+ .prepare_access = prepare_memory_access,
+ .finish_access = finish_memory_access,
+ },
+
+ {
+ .vendor = "ST",
.name = "M29F002B",
.bustype = BUS_PARALLEL,
.id.type = ID_JEDEC,