blob: bae266cda1e64f310cfe93cf8d40470e83aaf85b [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 */
20
21#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000022#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000023#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000024
Uwe Hermannfc425e82008-03-16 02:06:25 +000025/**
Uwe Hermanna9720402009-05-21 15:55:46 +000026 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000027 *
Alan Green1f9cc7d2019-07-01 11:10:45 +100028 * Temporarily, this file is sorted alphabetically by vendor and name to
29 * assist with merging the Chromium fork of flashrom.
30 *
31 * The usual intention is that that this list is sorted by vendor, then chip
32 * family and chip density, which is useful for the output of 'flashrom -L'.
Uwe Hermannfc425e82008-03-16 02:06:25 +000033 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000034const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000035
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000036 /*
37 * .vendor = Vendor name
38 * .name = Chip name
39 * .bustype = Supported flash bus types (Parallel, LPC...)
40 * .manufacture_id = Manufacturer chip ID
41 * .model_id = Model chip ID
42 * .total_size = Total size in (binary) kbytes
43 * .page_size = Page or eraseblock(?) size in bytes
44 * .tested = Test status
45 * .probe = Probe function
46 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000047 * .block_erasers[] = Array of erase layouts and erase functions
48 * {
49 * .eraseblocks[] = Array of { blocksize, blockcount }
50 * .block_erase = Block erase function
51 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000052 * .printlock = Chip lock status function
53 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000054 * .write = Chip write function
55 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000056 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000057 */
58
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000059 {
60 .vendor = "AMD",
61 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000062 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000063 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000064 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000065 .total_size = 256,
66 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000067 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000068 .tested = TEST_UNTESTED,
69 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000070 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000071 .block_erasers =
72 {
73 {
74 .eraseblocks = {
75 {16 * 1024, 1},
76 {8 * 1024, 2},
77 {32 * 1024, 1},
78 {64 * 1024, 3},
79 },
80 .block_erase = erase_sector_jedec,
81 }, {
82 .eraseblocks = { {256 * 1024, 1} },
83 .block_erase = erase_chip_block_jedec,
84 },
85 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000086 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000087 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000088 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000089 },
90
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000091 {
92 .vendor = "AMD",
93 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000094 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000095 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000096 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000097 .total_size = 256,
98 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000099 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
100 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000101 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000102 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000103 .block_erasers =
104 {
105 {
106 .eraseblocks = {
107 {64 * 1024, 3},
108 {32 * 1024, 1},
109 {8 * 1024, 2},
110 {16 * 1024, 1},
111 },
112 .block_erase = erase_sector_jedec,
113 }, {
114 .eraseblocks = { {256 * 1024, 1} },
115 .block_erase = erase_chip_block_jedec,
116 },
117 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000118 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000119 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000120 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000121 },
122
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 {
124 .vendor = "AMD",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000125 .name = "Am29F010",
126 .bustype = BUS_PARALLEL,
127 .manufacture_id = AMD_ID,
128 .model_id = AMD_AM29F010,
129 .total_size = 128,
130 .page_size = 16 * 1024,
131 .feature_bits = FEATURE_SHORT_RESET,
132 .tested = TEST_UNTESTED,
133 .probe = probe_jedec,
134 .probe_timing = TIMING_ZERO,
135 .block_erasers =
136 {
137 {
138 .eraseblocks = { {16 * 1024, 8} },
139 .block_erase = erase_sector_jedec,
140 }, {
141 .eraseblocks = { {128 * 1024, 1} },
142 .block_erase = erase_chip_block_jedec,
143 },
144 },
145 .write = write_jedec_1,
146 .read = read_memmapped,
147 .voltage = {4500, 5500},
148 },
149
150 {
151 .vendor = "AMD",
152 .name = "Am29F010A/B",
153 .bustype = BUS_PARALLEL,
154 .manufacture_id = AMD_ID,
155 .model_id = AMD_AM29F010,
156 .total_size = 128,
157 .page_size = 16 * 1024,
158 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Alan Greena4e579f2019-07-24 14:18:39 +1000159 .tested = TEST_OK_PRE,
Alan Green1f9cc7d2019-07-01 11:10:45 +1000160 .probe = probe_jedec,
161 .probe_timing = TIMING_ZERO,
162 .block_erasers =
163 {
164 {
165 .eraseblocks = { {16 * 1024, 8} },
166 .block_erase = erase_sector_jedec,
167 }, {
168 .eraseblocks = { {128 * 1024, 1} },
169 .block_erase = erase_chip_block_jedec,
170 },
171 },
172 .write = write_jedec_1,
173 .read = read_memmapped,
174 .voltage = {4500, 5500},
175 },
176
177 {
178 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000179 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000180 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000181 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000182 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000183 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000184 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000185 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000186 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000187 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000188 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000189 .block_erasers =
190 {
191 {
192 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000193 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000194 }, {
195 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000196 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000197 },
198 },
Sean Nelson35727f72010-01-28 23:55:12 +0000199 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000200 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000201 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000202 },
203
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000204 {
205 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000206 .name = "Am29F040",
207 .bustype = BUS_PARALLEL,
208 .manufacture_id = AMD_ID,
209 .model_id = AMD_AM29F040,
210 .total_size = 512,
211 .page_size = 64 * 1024,
212 .feature_bits = FEATURE_EITHER_RESET,
213 .tested = TEST_UNTESTED,
214 .probe = probe_jedec,
215 .probe_timing = TIMING_ZERO,
216 .block_erasers =
217 {
218 {
219 .eraseblocks = { {64 * 1024, 8} },
220 .block_erase = erase_sector_jedec,
221 }, {
222 .eraseblocks = { {512 * 1024, 1} },
223 .block_erase = erase_chip_block_jedec,
224 },
225 },
226 .write = write_jedec_1,
227 .read = read_memmapped,
228 .voltage = {4500, 5500},
229 },
230
231 {
232 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000233 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000234 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000235 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000236 .model_id = AMD_AM29F040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000237 .total_size = 512,
238 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000239 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
240 .tested = TEST_UNTESTED,
241 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000242 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000243 .block_erasers =
244 {
245 {
246 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000247 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000248 }, {
249 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000250 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000251 },
252 },
Sean Nelson35727f72010-01-28 23:55:12 +0000253 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000254 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000255 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000256 },
257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000258 {
259 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000260 .name = "Am29F080",
261 .bustype = BUS_PARALLEL,
262 .manufacture_id = AMD_ID,
263 .model_id = AMD_AM29F080,
264 .total_size = 1024,
265 .page_size = 64 * 1024,
266 .feature_bits = FEATURE_EITHER_RESET,
267 .tested = TEST_UNTESTED,
268 .probe = probe_jedec,
269 .probe_timing = TIMING_ZERO,
270 .block_erasers =
271 {
272 {
273 .eraseblocks = { {64 * 1024, 16} },
274 .block_erase = erase_sector_jedec,
275 }, {
276 .eraseblocks = { {1024 * 1024, 1} },
277 .block_erase = erase_chip_block_jedec,
278 },
279 },
280 .write = write_jedec_1,
281 .read = read_memmapped,
282 .voltage = {4500, 5500},
283 },
284
285 {
286 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000287 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000288 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000289 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000290 .model_id = AMD_AM29F080,
Peter Stuge8440cc02009-01-25 23:55:12 +0000291 .total_size = 1024,
292 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000293 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000294 .tested = TEST_UNTESTED,
295 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000296 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000297 .block_erasers =
298 {
299 {
300 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000301 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000302 }, {
303 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000304 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000305 },
306 },
Sean Nelson35727f72010-01-28 23:55:12 +0000307 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000308 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000309 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000310 },
311
312 {
313 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000314 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000315 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000316 .manufacture_id = AMD_ID,
317 .model_id = AMD_AM29LV001BB,
318 .total_size = 128,
319 .page_size = 64 * 1024, /* unused */
320 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
321 .tested = TEST_OK_PREW,
322 .probe = probe_jedec,
323 .probe_timing = TIMING_ZERO,
324 .block_erasers =
325 {
326 {
327 .eraseblocks = {
328 {8 * 1024, 1},
329 {4 * 1024, 2},
330 {16 * 1024, 7},
331 },
332 .block_erase = erase_sector_jedec,
333 }, {
334 .eraseblocks = { {128 * 1024, 1} },
335 .block_erase = erase_chip_block_jedec,
336 },
337 },
338 .write = write_jedec_1,
339 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000340 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000341 },
342
343 {
344 .vendor = "AMD",
345 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000346 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000347 .manufacture_id = AMD_ID,
348 .model_id = AMD_AM29LV001BT,
349 .total_size = 128,
350 .page_size = 64 * 1024, /* unused */
351 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
352 .tested = TEST_UNTESTED,
353 .probe = probe_jedec,
354 .probe_timing = TIMING_ZERO,
355 .block_erasers =
356 {
357 {
358 .eraseblocks = {
359 {16 * 1024, 7},
360 {4 * 1024, 2},
361 {8 * 1024, 1},
362 },
363 .block_erase = erase_sector_jedec,
364 }, {
365 .eraseblocks = { {128 * 1024, 1} },
366 .block_erase = erase_chip_block_jedec,
367 },
368 },
369 .write = write_jedec_1,
370 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000371 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000372 },
373
374 {
375 .vendor = "AMD",
376 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000377 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000378 .manufacture_id = AMD_ID,
379 .model_id = AMD_AM29LV002BB,
380 .total_size = 256,
381 .page_size = 64 * 1024, /* unused */
382 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
383 .tested = TEST_UNTESTED,
384 .probe = probe_jedec,
385 .probe_timing = TIMING_ZERO,
386 .block_erasers =
387 {
388 {
389 .eraseblocks = {
390 {16 * 1024, 1},
391 {8 * 1024, 2},
392 {32 * 1024, 1},
393 {64 * 1024, 3},
394 },
395 .block_erase = erase_sector_jedec,
396 }, {
397 .eraseblocks = { {256 * 1024, 1} },
398 .block_erase = erase_chip_block_jedec,
399 },
400 },
401 .write = write_jedec_1,
402 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000403 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000404 },
405
406 {
407 .vendor = "AMD",
408 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000409 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000410 .manufacture_id = AMD_ID,
411 .model_id = AMD_AM29LV002BT,
412 .total_size = 256,
413 .page_size = 64 * 1024, /* unused */
414 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
415 .tested = TEST_UNTESTED,
416 .probe = probe_jedec,
417 .probe_timing = TIMING_ZERO,
418 .block_erasers =
419 {
420 {
421 .eraseblocks = {
422 {64 * 1024, 3},
423 {32 * 1024, 1},
424 {8 * 1024, 2},
425 {16 * 1024, 1},
426 },
427 .block_erase = erase_sector_jedec,
428 }, {
429 .eraseblocks = { {256 * 1024, 1} },
430 .block_erase = erase_chip_block_jedec,
431 },
432 },
433 .write = write_jedec_1,
434 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000435 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000436 },
437
438 {
439 .vendor = "AMD",
440 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000441 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000442 .manufacture_id = AMD_ID,
443 .model_id = AMD_AM29LV004BB,
444 .total_size = 512,
445 .page_size = 64 * 1024, /* unused */
446 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
447 .tested = TEST_UNTESTED,
448 .probe = probe_jedec,
449 .probe_timing = TIMING_ZERO,
450 .block_erasers =
451 {
452 {
453 .eraseblocks = {
454 {16 * 1024, 1},
455 {8 * 1024, 2},
456 {32 * 1024, 1},
457 {64 * 1024, 7},
458 },
459 .block_erase = erase_sector_jedec,
460 }, {
461 .eraseblocks = { {512 * 1024, 1} },
462 .block_erase = erase_chip_block_jedec,
463 },
464 },
465 .write = write_jedec_1,
466 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000467 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000468 },
469
470 {
471 .vendor = "AMD",
472 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000473 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000474 .manufacture_id = AMD_ID,
475 .model_id = AMD_AM29LV004BT,
476 .total_size = 512,
477 .page_size = 64 * 1024, /* unused */
478 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
479 .tested = TEST_UNTESTED,
480 .probe = probe_jedec,
481 .probe_timing = TIMING_ZERO,
482 .block_erasers =
483 {
484 {
485 .eraseblocks = {
486 {64 * 1024, 7},
487 {32 * 1024, 1},
488 {8 * 1024, 2},
489 {16 * 1024, 1},
490 },
491 .block_erase = erase_sector_jedec,
492 }, {
493 .eraseblocks = { {512 * 1024, 1} },
494 .block_erase = erase_chip_block_jedec,
495 },
496 },
497 .write = write_jedec_1,
498 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000499 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000500 },
501
502 {
503 .vendor = "AMD",
504 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000505 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000506 .manufacture_id = AMD_ID,
507 .model_id = AMD_AM29LV008BB,
508 .total_size = 1024,
509 .page_size = 64 * 1024, /* unused */
510 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000511 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000512 .probe = probe_jedec,
513 .probe_timing = TIMING_ZERO,
514 .block_erasers =
515 {
516 {
517 .eraseblocks = {
518 {16 * 1024, 1},
519 {8 * 1024, 2},
520 {32 * 1024, 1},
521 {64 * 1024, 15},
522 },
523 .block_erase = erase_sector_jedec,
524 }, {
525 .eraseblocks = { {1024 * 1024, 1} },
526 .block_erase = erase_chip_block_jedec,
527 },
528 },
529 .write = write_jedec_1,
530 .read = read_memmapped,
Alan Greenf5ad6882019-06-27 12:09:13 +1000531 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000532 },
533
534 {
535 .vendor = "AMD",
536 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000537 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000538 .manufacture_id = AMD_ID,
539 .model_id = AMD_AM29LV008BT,
540 .total_size = 1024,
541 .page_size = 64 * 1024, /* unused */
542 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
543 .tested = TEST_UNTESTED,
544 .probe = probe_jedec,
545 .probe_timing = TIMING_ZERO,
546 .block_erasers =
547 {
548 {
549 .eraseblocks = {
550 {64 * 1024, 15},
551 {32 * 1024, 1},
552 {8 * 1024, 2},
553 {16 * 1024, 1},
554 },
555 .block_erase = erase_sector_jedec,
556 }, {
557 .eraseblocks = { {1024 * 1024, 1} },
558 .block_erase = erase_chip_block_jedec,
559 },
560 },
561 .write = write_jedec_1,
562 .read = read_memmapped,
Alan Greenf5ad6882019-06-27 12:09:13 +1000563 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000564 },
565
566 {
567 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000568 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000569 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000570 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000571 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000572 .total_size = 512,
573 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000574 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000575 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000576 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000577 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000578 .block_erasers =
579 {
580 {
581 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000582 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000583 }, {
584 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000585 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000586 },
587 },
Sean Nelson35727f72010-01-28 23:55:12 +0000588 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000589 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000590 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000591 },
592
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000593 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000594 .vendor = "AMD",
595 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000596 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000597 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000598 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000599 .total_size = 1024,
600 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000601 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000602 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000603 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000604 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000605 .block_erasers =
606 {
607 {
608 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000609 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000610 }, {
611 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000612 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000613 },
614 },
Sean Nelson35727f72010-01-28 23:55:12 +0000615 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000616 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000617 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000618 },
619
620 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000621 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000622 .name = "A25L010",
623 .bustype = BUS_SPI,
624 .manufacture_id = AMIC_ID_NOPREFIX,
625 .model_id = AMIC_A25L010,
626 .total_size = 128,
627 .page_size = 256,
628 .feature_bits = FEATURE_WRSR_WREN,
629 .tested = TEST_UNTESTED,
630 .probe = probe_spi_rdid,
631 .probe_timing = TIMING_ZERO,
632 .block_erasers =
633 {
634 {
635 .eraseblocks = { { 4 * 1024, 32 } },
636 .block_erase = spi_block_erase_20,
637 }, {
638 .eraseblocks = { { 64 * 1024, 2 } },
639 .block_erase = spi_block_erase_d8,
640 }, {
641 .eraseblocks = { { 128 * 1024, 1 } },
642 .block_erase = spi_block_erase_c7,
643 }
644 },
645 .printlock = spi_prettyprint_status_register_bp2_srwd,
646 .unlock = spi_disable_blockprotect,
647 .write = spi_chip_write_256,
648 .read = spi_chip_read,
649 .voltage = {2700, 3600},
650 },
651
652 {
653 .vendor = "AMIC",
654 .name = "A25L016",
655 .bustype = BUS_SPI,
656 .manufacture_id = AMIC_ID_NOPREFIX,
657 .model_id = AMIC_A25L016,
658 .total_size = 2048,
659 .page_size = 256,
660 .feature_bits = FEATURE_WRSR_WREN,
661 .tested = TEST_UNTESTED,
662 .probe = probe_spi_rdid,
663 .probe_timing = TIMING_ZERO,
664 .block_erasers =
665 {
666 {
667 .eraseblocks = { { 4 * 1024, 512 } },
668 .block_erase = spi_block_erase_20,
669 }, {
670 .eraseblocks = { { 64 * 1024, 32 } },
671 .block_erase = spi_block_erase_d8,
672 }, {
673 .eraseblocks = { { 2048 * 1024, 1 } },
674 .block_erase = spi_block_erase_c7,
675 }
676 },
677 .printlock = spi_prettyprint_status_register_bp2_srwd,
678 .unlock = spi_disable_blockprotect,
679 .write = spi_chip_write_256,
680 .read = spi_chip_read,
681 .voltage = {2700, 3600},
682 },
683
684 {
685 .vendor = "AMIC",
686 .name = "A25L020",
687 .bustype = BUS_SPI,
688 .manufacture_id = AMIC_ID_NOPREFIX,
689 .model_id = AMIC_A25L020,
690 .total_size = 256,
691 .page_size = 256,
692 .feature_bits = FEATURE_WRSR_WREN,
693 .tested = TEST_UNTESTED,
694 .probe = probe_spi_rdid,
695 .probe_timing = TIMING_ZERO,
696 .block_erasers =
697 {
698 {
699 .eraseblocks = { { 4 * 1024, 64 } },
700 .block_erase = spi_block_erase_20,
701 }, {
702 .eraseblocks = { { 64 * 1024, 4 } },
703 .block_erase = spi_block_erase_d8,
704 }, {
705 .eraseblocks = { { 256 * 1024, 1 } },
706 .block_erase = spi_block_erase_c7,
707 }
708 },
709 .printlock = spi_prettyprint_status_register_bp2_srwd,
710 .unlock = spi_disable_blockprotect,
711 .write = spi_chip_write_256,
712 .read = spi_chip_read,
713 .voltage = {2700, 3600},
714 },
715
716 {
717 .vendor = "AMIC",
718 .name = "A25L032",
719 .bustype = BUS_SPI,
720 .manufacture_id = AMIC_ID_NOPREFIX,
721 .model_id = AMIC_A25L032,
722 .total_size = 4096,
723 .page_size = 256,
724 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
725 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
726 .tested = TEST_OK_PREW,
727 .probe = probe_spi_rdid,
728 .probe_timing = TIMING_ZERO,
729 .block_erasers =
730 {
731 {
732 .eraseblocks = { { 4 * 1024, 1024 } },
733 .block_erase = spi_block_erase_20,
734 }, {
735 .eraseblocks = { { 64 * 1024, 64 } },
736 .block_erase = spi_block_erase_52,
737 }, {
738 .eraseblocks = { { 64 * 1024, 64 } },
739 .block_erase = spi_block_erase_d8,
740 }, {
741 .eraseblocks = { { 4096 * 1024, 1 } },
742 .block_erase = spi_block_erase_60,
743 }, {
744 .eraseblocks = { { 4096 * 1024, 1 } },
745 .block_erase = spi_block_erase_c7,
746 }
747 },
748 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
749 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
750 .write = spi_chip_write_256,
751 .read = spi_chip_read,
752 .voltage = {2700, 3600},
753 },
754
755 {
756 .vendor = "AMIC",
757 .name = "A25L040",
758 .bustype = BUS_SPI,
759 .manufacture_id = AMIC_ID_NOPREFIX,
760 .model_id = AMIC_A25L040,
761 .total_size = 512,
762 .page_size = 256,
763 .feature_bits = FEATURE_WRSR_WREN,
764 .tested = TEST_UNTESTED,
765 .probe = probe_spi_rdid,
766 .probe_timing = TIMING_ZERO,
767 .block_erasers =
768 {
769 {
770 .eraseblocks = { { 4 * 1024, 128 } },
771 .block_erase = spi_block_erase_20,
772 }, {
773 .eraseblocks = { { 64 * 1024, 8 } },
774 .block_erase = spi_block_erase_d8,
775 }, {
776 .eraseblocks = { { 512 * 1024, 1 } },
777 .block_erase = spi_block_erase_c7,
778 }
779 },
780 .printlock = spi_prettyprint_status_register_bp2_srwd,
781 .unlock = spi_disable_blockprotect,
782 .write = spi_chip_write_256,
783 .read = spi_chip_read,
784 .voltage = {2700, 3600},
785 },
786
787 {
788 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000789 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000790 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000791 .manufacture_id = AMIC_ID,
792 .model_id = AMIC_A25L05PT,
793 .total_size = 64,
794 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000795 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000796 .tested = TEST_UNTESTED,
797 .probe = probe_spi_rdid4,
798 .probe_timing = TIMING_ZERO,
799 .block_erasers =
800 {
801 {
802 .eraseblocks = {
803 {32 * 1024, 1},
804 {16 * 1024, 1},
805 {8 * 1024, 1},
806 {4 * 1024, 2},
807 },
808 .block_erase = spi_block_erase_d8,
809 }, {
810 .eraseblocks = { {64 * 1024, 1} },
811 .block_erase = spi_block_erase_c7,
812 }
813 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000814 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000815 .unlock = spi_disable_blockprotect,
816 .write = spi_chip_write_256,
817 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000818 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000819 },
820
821 {
822 .vendor = "AMIC",
823 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000824 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000825 .manufacture_id = AMIC_ID,
826 .model_id = AMIC_A25L05PU,
827 .total_size = 64,
828 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000829 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000830 .tested = TEST_UNTESTED,
831 .probe = probe_spi_rdid4,
832 .probe_timing = TIMING_ZERO,
833 .block_erasers =
834 {
835 {
836 .eraseblocks = {
837 {4 * 1024, 2},
838 {8 * 1024, 1},
839 {16 * 1024, 1},
840 {32 * 1024, 1},
841 },
842 .block_erase = spi_block_erase_d8,
843 }, {
844 .eraseblocks = { {64 * 1024, 1} },
845 .block_erase = spi_block_erase_c7,
846 }
847 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000848 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000849 .unlock = spi_disable_blockprotect,
850 .write = spi_chip_write_256,
851 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000852 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000853 },
854
855 {
856 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000857 .name = "A25L080",
858 .bustype = BUS_SPI,
859 .manufacture_id = AMIC_ID_NOPREFIX,
860 .model_id = AMIC_A25L080,
861 .total_size = 1024,
862 .page_size = 256,
863 .feature_bits = FEATURE_WRSR_WREN,
864 .tested = TEST_UNTESTED,
865 .probe = probe_spi_rdid,
866 .probe_timing = TIMING_ZERO,
867 .block_erasers =
868 {
869 {
870 .eraseblocks = { { 4 * 1024, 256 } },
871 .block_erase = spi_block_erase_20,
872 }, {
873 .eraseblocks = { { 64 * 1024, 16 } },
874 .block_erase = spi_block_erase_d8,
875 }, {
876 .eraseblocks = { { 1024 * 1024, 1 } },
877 .block_erase = spi_block_erase_c7,
878 }
879 },
880 .printlock = spi_prettyprint_status_register_bp2_srwd,
881 .unlock = spi_disable_blockprotect,
882 .write = spi_chip_write_256,
883 .read = spi_chip_read,
884 .voltage = {2700, 3600},
885 },
886
887 {
888 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000889 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000890 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000891 .manufacture_id = AMIC_ID,
892 .model_id = AMIC_A25L10PT,
893 .total_size = 128,
894 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000895 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000896 .tested = TEST_UNTESTED,
897 .probe = probe_spi_rdid4,
898 .probe_timing = TIMING_ZERO,
899 .block_erasers =
900 {
901 {
902 .eraseblocks = {
903 {64 * 1024, 1},
904 {32 * 1024, 1},
905 {16 * 1024, 1},
906 {8 * 1024, 1},
907 {4 * 1024, 2},
908 },
909 .block_erase = spi_block_erase_d8,
910 }, {
911 .eraseblocks = { {128 * 1024, 1} },
912 .block_erase = spi_block_erase_c7,
913 }
914 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000915 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000916 .unlock = spi_disable_blockprotect,
917 .write = spi_chip_write_256,
918 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000919 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000920 },
921
922 {
923 .vendor = "AMIC",
924 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000925 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000926 .manufacture_id = AMIC_ID,
927 .model_id = AMIC_A25L10PU,
928 .total_size = 128,
929 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000930 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000931 .tested = TEST_UNTESTED,
932 .probe = probe_spi_rdid4,
933 .probe_timing = TIMING_ZERO,
934 .block_erasers =
935 {
936 {
937 .eraseblocks = {
938 {4 * 1024, 2},
939 {8 * 1024, 1},
940 {16 * 1024, 1},
941 {32 * 1024, 1},
942 {64 * 1024, 1},
943 },
944 .block_erase = spi_block_erase_d8,
945 }, {
946 .eraseblocks = { {128 * 1024, 1} },
947 .block_erase = spi_block_erase_c7,
948 }
949 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000950 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000951 .unlock = spi_disable_blockprotect,
952 .write = spi_chip_write_256,
953 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000954 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000955 },
956
957 {
958 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000959 .name = "A25L16PT",
960 .bustype = BUS_SPI,
961 .manufacture_id = AMIC_ID,
962 .model_id = AMIC_A25L16PT,
963 .total_size = 2048,
964 .page_size = 256,
965 .feature_bits = FEATURE_WRSR_WREN,
966 .tested = TEST_UNTESTED,
967 .probe = probe_spi_rdid4,
968 .probe_timing = TIMING_ZERO,
969 .block_erasers =
970 {
971 {
972 .eraseblocks = {
973 {64 * 1024, 31},
974 {32 * 1024, 1},
975 {16 * 1024, 1},
976 {8 * 1024, 1},
977 {4 * 1024, 2},
978 },
979 .block_erase = spi_block_erase_d8,
980 }, {
981 .eraseblocks = { {2048 * 1024, 1} },
982 .block_erase = spi_block_erase_60,
983 }, {
984 .eraseblocks = { {2048 * 1024, 1} },
985 .block_erase = spi_block_erase_c7,
986 }
987 },
988 .printlock = spi_prettyprint_status_register_bp2_srwd,
989 .unlock = spi_disable_blockprotect,
990 .write = spi_chip_write_256,
991 .read = spi_chip_read,
992 .voltage = {2700, 3600},
993 },
994
995 {
996 .vendor = "AMIC",
997 .name = "A25L16PU",
998 .bustype = BUS_SPI,
999 .manufacture_id = AMIC_ID,
1000 .model_id = AMIC_A25L16PU,
1001 .total_size = 2048,
1002 .page_size = 256,
1003 .feature_bits = FEATURE_WRSR_WREN,
1004 .tested = TEST_OK_PR,
1005 .probe = probe_spi_rdid4,
1006 .probe_timing = TIMING_ZERO,
1007 .block_erasers =
1008 {
1009 {
1010 .eraseblocks = {
1011 {4 * 1024, 2},
1012 {8 * 1024, 1},
1013 {16 * 1024, 1},
1014 {32 * 1024, 1},
1015 {64 * 1024, 31},
1016 },
1017 .block_erase = spi_block_erase_d8,
1018 }, {
1019 .eraseblocks = { {2048 * 1024, 1} },
1020 .block_erase = spi_block_erase_60,
1021 }, {
1022 .eraseblocks = { {2048 * 1024, 1} },
1023 .block_erase = spi_block_erase_c7,
1024 }
1025 },
1026 .printlock = spi_prettyprint_status_register_bp2_srwd,
1027 .unlock = spi_disable_blockprotect,
1028 .write = spi_chip_write_256,
1029 .read = spi_chip_read,
1030 .voltage = {2700, 3600},
1031 },
1032
1033 {
1034 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001035 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001036 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001037 .manufacture_id = AMIC_ID,
1038 .model_id = AMIC_A25L20PT,
1039 .total_size = 256,
1040 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001041 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001042 .tested = TEST_UNTESTED,
1043 .probe = probe_spi_rdid4,
1044 .probe_timing = TIMING_ZERO,
1045 .block_erasers =
1046 {
1047 {
1048 .eraseblocks = {
1049 {64 * 1024, 3},
1050 {32 * 1024, 1},
1051 {16 * 1024, 1},
1052 {8 * 1024, 1},
1053 {4 * 1024, 2},
1054 },
1055 .block_erase = spi_block_erase_d8,
1056 }, {
1057 .eraseblocks = { {256 * 1024, 1} },
1058 .block_erase = spi_block_erase_c7,
1059 }
1060 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001061 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001062 .unlock = spi_disable_blockprotect,
1063 .write = spi_chip_write_256,
1064 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001065 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001066 },
1067
1068 {
1069 .vendor = "AMIC",
1070 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001071 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001072 .manufacture_id = AMIC_ID,
1073 .model_id = AMIC_A25L20PU,
1074 .total_size = 256,
1075 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001076 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001077 .tested = TEST_UNTESTED,
1078 .probe = probe_spi_rdid4,
1079 .probe_timing = TIMING_ZERO,
1080 .block_erasers =
1081 {
1082 {
1083 .eraseblocks = {
1084 {4 * 1024, 2},
1085 {8 * 1024, 1},
1086 {16 * 1024, 1},
1087 {32 * 1024, 1},
1088 {64 * 1024, 3},
1089 },
1090 .block_erase = spi_block_erase_d8,
1091 }, {
1092 .eraseblocks = { {256 * 1024, 1} },
1093 .block_erase = spi_block_erase_c7,
1094 }
1095 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001096 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001097 .unlock = spi_disable_blockprotect,
1098 .write = spi_chip_write_256,
1099 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001100 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001101 },
1102
1103 /* The A25L40P{T,U} chips are distinguished by their
1104 * erase block layouts, but without any distinction in RDID.
1105 * This inexplicable quirk was verified by Rudolf Marek
1106 * and discussed on the flashrom mailing list on 2010-07-12.
1107 */
1108 {
1109 .vendor = "AMIC",
1110 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001111 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001112 .manufacture_id = AMIC_ID,
1113 .model_id = AMIC_A25L40PT,
1114 .total_size = 512,
1115 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001116 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001117 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001118 .probe = probe_spi_rdid4,
1119 .probe_timing = TIMING_ZERO,
1120 .block_erasers =
1121 {
1122 {
1123 .eraseblocks = {
1124 {64 * 1024, 7},
1125 {32 * 1024, 1},
1126 {16 * 1024, 1},
1127 {8 * 1024, 1},
1128 {4 * 1024, 2},
1129 },
1130 .block_erase = spi_block_erase_d8,
1131 }, {
1132 .eraseblocks = { {512 * 1024, 1} },
1133 .block_erase = spi_block_erase_c7,
1134 }
1135 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001136 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001137 .unlock = spi_disable_blockprotect,
1138 .write = spi_chip_write_256,
1139 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001140 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001141 },
1142
1143 {
1144 .vendor = "AMIC",
1145 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001146 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001147 .manufacture_id = AMIC_ID,
1148 .model_id = AMIC_A25L40PU,
1149 .total_size = 512,
1150 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001151 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons6f088352018-09-30 19:59:42 +02001152 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001153 .probe = probe_spi_rdid4,
1154 .probe_timing = TIMING_ZERO,
1155 .block_erasers =
1156 {
1157 {
1158 .eraseblocks = {
1159 {4 * 1024, 2},
1160 {8 * 1024, 1},
1161 {16 * 1024, 1},
1162 {32 * 1024, 1},
1163 {64 * 1024, 7},
1164 },
1165 .block_erase = spi_block_erase_d8,
1166 }, {
1167 .eraseblocks = { {512 * 1024, 1} },
1168 .block_erase = spi_block_erase_c7,
1169 }
1170 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001171 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001172 .unlock = spi_disable_blockprotect,
1173 .write = spi_chip_write_256,
1174 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001175 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001176 },
1177
1178 {
1179 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001180 .name = "A25L512",
1181 .bustype = BUS_SPI,
1182 .manufacture_id = AMIC_ID_NOPREFIX,
1183 .model_id = AMIC_A25L512,
1184 .total_size = 64,
1185 .page_size = 256,
1186 .feature_bits = FEATURE_WRSR_WREN,
1187 .tested = TEST_UNTESTED,
1188 .probe = probe_spi_rdid,
1189 .probe_timing = TIMING_ZERO,
1190 .block_erasers =
1191 {
1192 {
1193 .eraseblocks = { { 4 * 1024, 16 } },
1194 .block_erase = spi_block_erase_20,
1195 }, {
1196 .eraseblocks = { { 64 * 1024, 1 } },
1197 .block_erase = spi_block_erase_d8,
1198 }, {
1199 .eraseblocks = { { 64 * 1024, 1 } },
1200 .block_erase = spi_block_erase_c7,
1201 }
1202 },
1203 .printlock = spi_prettyprint_status_register_bp2_srwd,
1204 .unlock = spi_disable_blockprotect,
1205 .write = spi_chip_write_256,
1206 .read = spi_chip_read,
1207 .voltage = {2700, 3600},
1208 },
1209
1210 {
1211 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001212 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001213 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001214 .manufacture_id = AMIC_ID,
1215 .model_id = AMIC_A25L80P,
1216 .total_size = 1024,
1217 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001218 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001219 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001220 .probe = probe_spi_rdid4,
1221 .probe_timing = TIMING_ZERO,
1222 .block_erasers =
1223 {
1224 {
1225 .eraseblocks = {
1226 {4 * 1024, 2},
1227 {8 * 1024, 1},
1228 {16 * 1024, 1},
1229 {32 * 1024, 1},
1230 {64 * 1024, 15},
1231 },
1232 .block_erase = spi_block_erase_d8,
1233 }, {
1234 .eraseblocks = { {1024 * 1024, 1} },
1235 .block_erase = spi_block_erase_c7,
1236 }
1237 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001238 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001239 .unlock = spi_disable_blockprotect,
1240 .write = spi_chip_write_256,
1241 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001242 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001243 },
1244
1245 {
1246 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001247 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001248 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001249 .manufacture_id = AMIC_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001250 .model_id = AMIC_A25LQ032,
Dan Lenski11617122010-07-29 15:00:40 +00001251 .total_size = 4096,
1252 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001253 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001254 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1255 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001256 .tested = TEST_UNTESTED,
Dan Lenski11617122010-07-29 15:00:40 +00001257 .probe = probe_spi_rdid,
1258 .probe_timing = TIMING_ZERO,
1259 .block_erasers =
1260 {
1261 {
1262 .eraseblocks = { { 4 * 1024, 1024 } },
1263 .block_erase = spi_block_erase_20,
1264 }, {
1265 .eraseblocks = { { 64 * 1024, 64 } },
1266 .block_erase = spi_block_erase_52,
1267 }, {
1268 .eraseblocks = { { 64 * 1024, 64 } },
1269 .block_erase = spi_block_erase_d8,
1270 }, {
1271 .eraseblocks = { { 4096 * 1024, 1 } },
1272 .block_erase = spi_block_erase_60,
1273 }, {
1274 .eraseblocks = { { 4096 * 1024, 1 } },
1275 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001276 }
Dan Lenski11617122010-07-29 15:00:40 +00001277 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001278 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1279 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001280 .write = spi_chip_write_256,
1281 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001282 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001283 },
1284
1285 {
1286 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001287 .name = "A25LQ16",
1288 .bustype = BUS_SPI,
1289 .manufacture_id = AMIC_ID_NOPREFIX,
1290 .model_id = AMIC_A25LQ16,
1291 .total_size = 2048,
1292 .page_size = 256,
1293 /* supports SFDP */
1294 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1295 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1296 .tested = TEST_UNTESTED,
1297 .probe = probe_spi_rdid,
1298 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10001299 .block_erasers =
1300 {
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001301 {
1302 .eraseblocks = { { 4 * 1024, 512 } },
1303 .block_erase = spi_block_erase_20,
1304 }, {
1305 .eraseblocks = { { 64 * 1024, 32 } },
1306 .block_erase = spi_block_erase_52,
1307 }, {
1308 .eraseblocks = { { 64 * 1024, 32 } },
1309 .block_erase = spi_block_erase_d8,
1310 }, {
1311 .eraseblocks = { { 2048 * 1024, 1 } },
1312 .block_erase = spi_block_erase_60,
1313 }, {
1314 .eraseblocks = { { 2048 * 1024, 1 } },
1315 .block_erase = spi_block_erase_c7,
1316 }
1317 },
1318 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1319 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1320 .write = spi_chip_write_256,
1321 .read = spi_chip_read,
1322 .voltage = {2700, 3600},
1323 },
1324
1325 {
1326 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001327 .name = "A25LQ64",
1328 .bustype = BUS_SPI,
1329 .manufacture_id = AMIC_ID_NOPREFIX,
Stefan Tauner23e10b82016-01-23 16:16:49 +00001330 .model_id = AMIC_A25LQ64,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001331 .total_size = 8192,
1332 .page_size = 256,
1333 /* supports SFDP */
1334 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
1335 /* QPI enable 0x35, disable 0xF5 */
1336 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
1337 .tested = TEST_UNTESTED,
1338 .probe = probe_spi_rdid,
1339 .probe_timing = TIMING_ZERO,
1340 .block_erasers =
1341 {
1342 {
1343 .eraseblocks = { { 4 * 1024, 2048 } },
1344 .block_erase = spi_block_erase_20,
1345 }, {
1346 .eraseblocks = { { 32 * 1024, 256 } },
1347 .block_erase = spi_block_erase_52,
1348 }, {
1349 .eraseblocks = { { 64 * 1024, 128 } },
1350 .block_erase = spi_block_erase_d8,
1351 }, {
1352 .eraseblocks = { { 8192 * 1024, 1 } },
1353 .block_erase = spi_block_erase_60,
1354 }, {
1355 .eraseblocks = { { 8192 * 1024, 1 } },
1356 .block_erase = spi_block_erase_c7,
1357 }
1358 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001359 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */
Stefan Tauner5c316f92015-02-08 21:57:52 +00001360 .unlock = spi_disable_blockprotect_bp3_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001361 .write = spi_chip_write_256,
1362 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001363 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001364 },
1365
1366 {
1367 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001368 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001369 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001370 .manufacture_id = AMIC_ID_NOPREFIX,
1371 .model_id = AMIC_A29002B,
1372 .total_size = 256,
1373 .page_size = 64 * 1024,
1374 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1375 .tested = TEST_UNTESTED,
1376 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001377 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001378 .block_erasers =
1379 {
1380 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001381 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001382 {16 * 1024, 1},
1383 {8 * 1024, 2},
1384 {32 * 1024, 1},
1385 {64 * 1024, 3},
1386 },
1387 .block_erase = erase_sector_jedec,
1388 }, {
1389 .eraseblocks = { {256 * 1024, 1} },
1390 .block_erase = erase_chip_block_jedec,
1391 },
1392 },
1393 .write = write_jedec_1,
1394 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001395 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001396 },
1397
1398 {
1399 .vendor = "AMIC",
1400 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001401 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001402 .manufacture_id = AMIC_ID_NOPREFIX,
1403 .model_id = AMIC_A29002T,
1404 .total_size = 256,
1405 .page_size = 64 * 1024,
1406 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001407 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001408 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001409 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001410 .block_erasers =
1411 {
1412 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001413 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001414 {64 * 1024, 3},
1415 {32 * 1024, 1},
1416 {8 * 1024, 2},
1417 {16 * 1024, 1},
1418 },
1419 .block_erase = erase_sector_jedec,
1420 }, {
1421 .eraseblocks = { {256 * 1024, 1} },
1422 .block_erase = erase_chip_block_jedec,
1423 },
1424 },
1425 .write = write_jedec_1,
1426 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001427 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001428 },
1429
1430 {
1431 .vendor = "AMIC",
1432 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001433 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001434 .manufacture_id = AMIC_ID_NOPREFIX,
1435 .model_id = AMIC_A29040B,
1436 .total_size = 512,
1437 .page_size = 64 * 1024,
1438 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Corey Osgoodcbd56652013-09-10 10:42:48 +00001439 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001440 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001441 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001442 .block_erasers =
1443 {
1444 {
1445 .eraseblocks = { {64 * 1024, 8} },
1446 .block_erase = erase_sector_jedec,
1447 }, {
1448 .eraseblocks = { {512 * 1024, 1} },
1449 .block_erase = erase_chip_block_jedec,
1450 },
1451 },
1452 .write = write_jedec_1,
1453 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001454 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001455 },
1456
1457 {
1458 .vendor = "AMIC",
1459 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001460 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001461 .manufacture_id = AMIC_ID_NOPREFIX,
1462 .model_id = AMIC_A49LF040A,
1463 .total_size = 512,
1464 .page_size = 64 * 1024,
1465 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001466 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001467 .probe = probe_jedec,
1468 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1469 .block_erasers =
1470 {
1471 {
1472 .eraseblocks = { {64 * 1024, 8} },
1473 .block_erase = erase_block_jedec,
1474 }, {
1475 .eraseblocks = { {512 * 1024, 1} },
1476 .block_erase = erase_chip_block_jedec,
1477 }
1478 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001479 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001480 .write = write_jedec_1,
1481 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001482 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001483 },
1484
1485 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001486 .vendor = "Atmel",
1487 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001488 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001489 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001490 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001491 .total_size = 256,
1492 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001493 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1494 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001495 .tested = TEST_UNTESTED,
1496 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001497 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001498 .block_erasers =
1499 {
1500 {
1501 .eraseblocks = { {4 * 1024, 64} },
1502 .block_erase = spi_block_erase_20,
1503 }, {
1504 .eraseblocks = { {32 * 1024, 8} },
1505 .block_erase = spi_block_erase_52,
1506 }, {
1507 .eraseblocks = { {64 * 1024, 4} },
1508 .block_erase = spi_block_erase_d8,
1509 }, {
1510 .eraseblocks = { {256 * 1024, 1} },
1511 .block_erase = spi_block_erase_60,
1512 }, {
1513 .eraseblocks = { {256 * 1024, 1} },
1514 .block_erase = spi_block_erase_c7,
1515 }
1516 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001517 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001518 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001519 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001520 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001521 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001522 },
1523
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001524 {
1525 .vendor = "Atmel",
Steffen Mauch0b59b0d2018-06-02 23:46:03 +02001526 .name = "AT25DF021A",
1527 .bustype = BUS_SPI,
1528 .manufacture_id = ATMEL_ID,
1529 .model_id = ATMEL_AT25DF021A,
1530 .total_size = 256,
1531 .page_size = 256,
1532 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1533 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1534 .tested = TEST_OK_PREW,
1535 .probe = probe_spi_rdid,
1536 .probe_timing = TIMING_ZERO,
1537 .block_erasers =
1538 {
1539 {
1540 .eraseblocks = { {4 * 1024, 64} },
1541 .block_erase = spi_block_erase_20,
1542 }, {
1543 .eraseblocks = { {32 * 1024, 8} },
1544 .block_erase = spi_block_erase_52,
1545 }, {
1546 .eraseblocks = { {64 * 1024, 4} },
1547 .block_erase = spi_block_erase_d8,
1548 }, {
1549 .eraseblocks = { {256 * 1024, 1} },
1550 .block_erase = spi_block_erase_60,
1551 }, {
1552 .eraseblocks = { {256 * 1024, 1} },
1553 .block_erase = spi_block_erase_c7,
1554 }
1555 },
1556 .printlock = spi_prettyprint_status_register_at25df,
1557 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
1558 .write = spi_chip_write_256,
1559 .read = spi_chip_read,
1560 .voltage = {1650, 3600},
1561 },
1562
1563 {
1564 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001565 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001566 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001567 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001568 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001569 .total_size = 512,
1570 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001571 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00001572 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001573 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001574 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001575 .block_erasers =
1576 {
1577 {
1578 .eraseblocks = { {4 * 1024, 128} },
1579 .block_erase = spi_block_erase_20,
1580 }, {
1581 .eraseblocks = { {32 * 1024, 16} },
1582 .block_erase = spi_block_erase_52,
1583 }, {
1584 .eraseblocks = { {64 * 1024, 8} },
1585 .block_erase = spi_block_erase_d8,
1586 }, {
1587 .eraseblocks = { {512 * 1024, 1} },
1588 .block_erase = spi_block_erase_60,
1589 }, {
1590 .eraseblocks = { {512 * 1024, 1} },
1591 .block_erase = spi_block_erase_c7,
1592 }
1593 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001594 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001595 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001596 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001597 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001598 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001599 },
1600
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001601 {
1602 .vendor = "Atmel",
1603 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001604 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001605 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001606 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001607 .total_size = 1024,
1608 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001609 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001610 .tested = TEST_UNTESTED,
1611 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001612 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001613 .block_erasers =
1614 {
1615 {
1616 .eraseblocks = { {4 * 1024, 256} },
1617 .block_erase = spi_block_erase_20,
1618 }, {
1619 .eraseblocks = { {32 * 1024, 32} },
1620 .block_erase = spi_block_erase_52,
1621 }, {
1622 .eraseblocks = { {64 * 1024, 16} },
1623 .block_erase = spi_block_erase_d8,
1624 }, {
1625 .eraseblocks = { {1024 * 1024, 1} },
1626 .block_erase = spi_block_erase_60,
1627 }, {
1628 .eraseblocks = { {1024 * 1024, 1} },
1629 .block_erase = spi_block_erase_c7,
1630 }
1631 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001632 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001633 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001634 .write = spi_chip_write_256,
1635 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001636 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001637 },
1638
1639 {
1640 .vendor = "Atmel",
1641 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001642 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001643 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001644 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001645 .total_size = 1024,
1646 .page_size = 256,
1647 .feature_bits = FEATURE_WRSR_WREN,
1648 .tested = TEST_UNTESTED,
1649 .probe = probe_spi_rdid,
1650 .probe_timing = TIMING_ZERO,
1651 .block_erasers =
1652 {
1653 {
1654 .eraseblocks = { {4 * 1024, 256} },
1655 .block_erase = spi_block_erase_20,
1656 }, {
1657 .eraseblocks = { {32 * 1024, 32} },
1658 .block_erase = spi_block_erase_52,
1659 }, {
1660 .eraseblocks = { {64 * 1024, 16} },
1661 .block_erase = spi_block_erase_d8,
1662 }, {
1663 .eraseblocks = { {1024 * 1024, 1} },
1664 .block_erase = spi_block_erase_60,
1665 }, {
1666 .eraseblocks = { {1024 * 1024, 1} },
1667 .block_erase = spi_block_erase_c7,
1668 }
1669 },
1670 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001671 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001672 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001673 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001674 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001675 },
1676
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001677 {
1678 .vendor = "Atmel",
1679 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001680 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001681 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001682 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001683 .total_size = 2048,
1684 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001685 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons8b5b9622018-09-30 19:13:15 +02001686 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001687 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001688 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001689 .block_erasers =
1690 {
1691 {
1692 .eraseblocks = { {4 * 1024, 512} },
1693 .block_erase = spi_block_erase_20,
1694 }, {
1695 .eraseblocks = { {32 * 1024, 64} },
1696 .block_erase = spi_block_erase_52,
1697 }, {
1698 .eraseblocks = { {64 * 1024, 32} },
1699 .block_erase = spi_block_erase_d8,
1700 }, {
1701 .eraseblocks = { {2 * 1024 * 1024, 1} },
1702 .block_erase = spi_block_erase_60,
1703 }, {
1704 .eraseblocks = { {2 * 1024 * 1024, 1} },
1705 .block_erase = spi_block_erase_c7,
1706 }
1707 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001708 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001709 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001710 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001711 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001712 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001713 },
1714
Alan Green86bf6ab2019-06-27 16:58:20 +10001715 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001716 {
1717 .vendor = "Atmel",
1718 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001719 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001720 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001721 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001722 .total_size = 4096,
1723 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001724 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001725 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001726 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001727 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001728 .block_erasers =
1729 {
1730 {
1731 .eraseblocks = { {4 * 1024, 1024} },
1732 .block_erase = spi_block_erase_20,
1733 }, {
1734 .eraseblocks = { {32 * 1024, 128} },
1735 .block_erase = spi_block_erase_52,
1736 }, {
1737 .eraseblocks = { {64 * 1024, 64} },
1738 .block_erase = spi_block_erase_d8,
1739 }, {
1740 .eraseblocks = { {4 * 1024 * 1024, 1} },
1741 .block_erase = spi_block_erase_60,
1742 }, {
1743 .eraseblocks = { {4 * 1024 * 1024, 1} },
1744 .block_erase = spi_block_erase_c7,
1745 }
1746 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001747 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001748 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001749 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001750 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001751 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001752 },
1753
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001754 {
1755 .vendor = "Atmel",
1756 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001757 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001758 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001759 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001760 .total_size = 4096,
1761 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001762 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1763 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001764 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001765 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001766 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001767 .block_erasers =
1768 {
1769 {
1770 .eraseblocks = { {4 * 1024, 1024} },
1771 .block_erase = spi_block_erase_20,
1772 }, {
1773 .eraseblocks = { {32 * 1024, 128} },
1774 .block_erase = spi_block_erase_52,
1775 }, {
1776 .eraseblocks = { {64 * 1024, 64} },
1777 .block_erase = spi_block_erase_d8,
1778 }, {
1779 .eraseblocks = { {4 * 1024 * 1024, 1} },
1780 .block_erase = spi_block_erase_60,
1781 }, {
1782 .eraseblocks = { {4 * 1024 * 1024, 1} },
1783 .block_erase = spi_block_erase_c7,
1784 }
1785 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001786 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001787 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001788 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001789 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001790 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001791 },
1792
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001793 {
1794 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001795 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001796 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001797 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001798 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001799 .total_size = 8192,
1800 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001801 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001802 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001803 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001804 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001805 .block_erasers =
1806 {
1807 {
1808 .eraseblocks = { {4 * 1024, 2048} },
1809 .block_erase = spi_block_erase_20,
1810 }, {
1811 .eraseblocks = { {32 * 1024, 256} },
1812 .block_erase = spi_block_erase_52,
1813 }, {
1814 .eraseblocks = { {64 * 1024, 128} },
1815 .block_erase = spi_block_erase_d8,
1816 }, {
1817 .eraseblocks = { {8 * 1024 * 1024, 1} },
1818 .block_erase = spi_block_erase_60,
1819 }, {
1820 .eraseblocks = { {8 * 1024 * 1024, 1} },
1821 .block_erase = spi_block_erase_c7,
1822 }
1823 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001824 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001825 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001826 .write = spi_chip_write_256,
1827 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001828 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001829 },
1830
1831 {
1832 .vendor = "Atmel",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001833 .name = "AT25DL081",
1834 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001835 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001836 .model_id = ATMEL_AT25DF081,
1837 .total_size = 1024,
1838 .page_size = 256,
1839 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1840 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1841 .tested = TEST_UNTESTED,
1842 .probe = probe_spi_rdid,
1843 .probe_timing = TIMING_ZERO,
1844 .block_erasers =
1845 {
1846 {
1847 .eraseblocks = { {4 * 1024, 256} },
1848 .block_erase = spi_block_erase_20,
1849 }, {
1850 .eraseblocks = { {32 * 1024, 32} },
1851 .block_erase = spi_block_erase_52,
1852 }, {
1853 .eraseblocks = { {64 * 1024, 16} },
1854 .block_erase = spi_block_erase_d8,
1855 }, {
1856 .eraseblocks = { {1 * 1024 * 1024, 1} },
1857 .block_erase = spi_block_erase_60,
1858 }, {
1859 .eraseblocks = { {1 * 1024 * 1024, 1} },
1860 .block_erase = spi_block_erase_c7,
1861 }
1862 },
1863 .printlock = spi_prettyprint_status_register_at25df_sec,
1864 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1865 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1866 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1867 .voltage = {1650, 1950},
1868 },
1869
1870 {
1871 .vendor = "Atmel",
1872 .name = "AT25DL161",
1873 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001874 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001875 .model_id = ATMEL_AT25DL161,
1876 .total_size = 2048,
1877 .page_size = 256,
1878 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1879 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1880 .tested = TEST_UNTESTED,
1881 .probe = probe_spi_rdid,
1882 .probe_timing = TIMING_ZERO,
1883 .block_erasers =
1884 {
1885 {
1886 .eraseblocks = { {4 * 1024, 512} },
1887 .block_erase = spi_block_erase_20,
1888 }, {
1889 .eraseblocks = { {32 * 1024, 64} },
1890 .block_erase = spi_block_erase_52,
1891 }, {
1892 .eraseblocks = { {64 * 1024, 32} },
1893 .block_erase = spi_block_erase_d8,
1894 }, {
1895 .eraseblocks = { {2 * 1024 * 1024, 1} },
1896 .block_erase = spi_block_erase_60,
1897 }, {
1898 .eraseblocks = { {2 * 1024 * 1024, 1} },
1899 .block_erase = spi_block_erase_c7,
1900 }
1901 },
1902 .printlock = spi_prettyprint_status_register_at25df_sec,
1903 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1904 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1905 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1906 .voltage = {1650, 1950},
1907 },
1908
1909 {
1910 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001911 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001912 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001913 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001914 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001915 .total_size = 2048,
1916 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001917 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1918 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001919 .tested = TEST_UNTESTED,
1920 .probe = probe_spi_rdid,
1921 .probe_timing = TIMING_ZERO,
1922 .block_erasers =
1923 {
1924 {
1925 .eraseblocks = { {4 * 1024, 512} },
1926 .block_erase = spi_block_erase_20,
1927 }, {
1928 .eraseblocks = { {32 * 1024, 64} },
1929 .block_erase = spi_block_erase_52,
1930 }, {
1931 .eraseblocks = { {64 * 1024, 32} },
1932 .block_erase = spi_block_erase_d8,
1933 }, {
1934 .eraseblocks = { {2 * 1024 * 1024, 1} },
1935 .block_erase = spi_block_erase_60,
1936 }, {
1937 .eraseblocks = { {2 * 1024 * 1024, 1} },
1938 .block_erase = spi_block_erase_c7,
1939 }
1940 },
1941 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001942 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001943 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001944 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001945 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001946 },
1947
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001948 {
1949 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001950 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1951 * All other properties seem to be the same.*/
1952 .name = "AT25F1024(A)",
1953 .bustype = BUS_SPI,
1954 .manufacture_id = ATMEL_ID,
1955 .model_id = ATMEL_AT25F1024,
1956 .total_size = 128,
1957 .page_size = 256,
1958 .feature_bits = FEATURE_WRSR_WREN,
1959 .tested = TEST_OK_PREW,
1960 .probe = probe_spi_at25f,
1961 .probe_timing = TIMING_ZERO,
1962 .block_erasers =
1963 {
1964 {
1965 .eraseblocks = { {32 * 1024, 4} },
1966 .block_erase = spi_block_erase_52,
1967 }, {
1968 .eraseblocks = { {128 * 1024, 1} },
1969 .block_erase = spi_block_erase_62,
1970 }
1971 },
1972 .printlock = spi_prettyprint_status_register_at25f,
1973 .unlock = spi_disable_blockprotect_at25f,
1974 .write = spi_chip_write_256,
1975 .read = spi_chip_read,
1976 .voltage = {2700, 3600},
1977 },
1978
1979 {
1980 .vendor = "Atmel",
1981 .name = "AT25F2048",
1982 .bustype = BUS_SPI,
1983 .manufacture_id = ATMEL_ID,
1984 .model_id = ATMEL_AT25F2048,
1985 .total_size = 256,
1986 .page_size = 256,
1987 .feature_bits = FEATURE_WRSR_WREN,
1988 .tested = TEST_UNTESTED,
1989 .probe = probe_spi_at25f,
1990 .probe_timing = TIMING_ZERO,
1991 .block_erasers =
1992 {
1993 {
1994 .eraseblocks = { {64 * 1024, 4} },
1995 .block_erase = spi_block_erase_52,
1996 }, {
1997 .eraseblocks = { {256 * 1024, 1} },
1998 .block_erase = spi_block_erase_62,
1999 }
2000 },
2001 .printlock = spi_prettyprint_status_register_at25f,
2002 .unlock = spi_disable_blockprotect_at25f,
2003 .write = spi_chip_write_256,
2004 .read = spi_chip_read,
2005 .voltage = {2700, 3600},
2006 },
2007
2008 {
2009 .vendor = "Atmel",
2010 .name = "AT25F4096",
2011 .bustype = BUS_SPI,
2012 .manufacture_id = ATMEL_ID,
2013 .model_id = ATMEL_AT25F4096,
2014 .total_size = 512,
2015 .page_size = 256,
2016 .feature_bits = FEATURE_WRSR_WREN,
2017 .tested = TEST_OK_PREW,
2018 .probe = probe_spi_at25f,
2019 .probe_timing = TIMING_ZERO,
2020 .block_erasers =
2021 {
2022 {
2023 .eraseblocks = { {64 * 1024, 8} },
2024 .block_erase = spi_block_erase_52,
2025 }, {
2026 .eraseblocks = { {512 * 1024, 1} },
2027 .block_erase = spi_block_erase_62,
2028 }
2029 },
2030 .printlock = spi_prettyprint_status_register_at25f4096,
2031 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2032 .unlock = spi_disable_blockprotect_bp2_srwd,
2033 .write = spi_chip_write_256,
2034 .read = spi_chip_read,
2035 .voltage = {2700, 3600},
2036 },
2037
2038 {
2039 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00002040 .name = "AT25F512",
2041 .bustype = BUS_SPI,
2042 .manufacture_id = ATMEL_ID,
2043 .model_id = ATMEL_AT25F512,
2044 .total_size = 64,
2045 .page_size = 256,
2046 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00002047 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002048 .probe = probe_spi_at25f,
2049 .probe_timing = TIMING_ZERO,
2050 .block_erasers =
2051 {
2052 {
2053 .eraseblocks = { {32 * 1024, 2} },
2054 .block_erase = spi_block_erase_52,
2055 }, {
2056 .eraseblocks = { {64 * 1024, 1} },
2057 .block_erase = spi_block_erase_62,
2058 }
2059 },
2060 .printlock = spi_prettyprint_status_register_at25f,
2061 .unlock = spi_disable_blockprotect_at25f,
2062 .write = spi_chip_write_256,
2063 .read = spi_chip_read,
2064 .voltage = {2700, 3600},
2065 },
2066
2067 {
2068 .vendor = "Atmel",
2069 .name = "AT25F512A",
2070 .bustype = BUS_SPI,
2071 .manufacture_id = ATMEL_ID,
2072 .model_id = ATMEL_AT25F512A,
2073 .total_size = 64,
2074 .page_size = 128,
2075 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00002076 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002077 .probe = probe_spi_at25f,
2078 .probe_timing = TIMING_ZERO,
2079 .block_erasers =
2080 {
2081 {
2082 .eraseblocks = { {32 * 1024, 2} },
2083 .block_erase = spi_block_erase_52,
2084 }, {
2085 .eraseblocks = { {64 * 1024, 1} },
2086 .block_erase = spi_block_erase_62,
2087 }
2088 },
2089 .printlock = spi_prettyprint_status_register_at25f512a,
2090 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
2091 .unlock = spi_disable_blockprotect_at25f512a,
2092 .write = spi_chip_write_256,
2093 .read = spi_chip_read,
2094 .voltage = {2700, 3600},
2095 },
2096
2097 {
2098 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002100 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002101 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002102 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 .total_size = 64,
2104 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00002105 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2106 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002107 .tested = TEST_UNTESTED,
2108 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002109 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002110 .block_erasers =
2111 {
2112 {
2113 .eraseblocks = { {4 * 1024, 16} },
2114 .block_erase = spi_block_erase_20,
2115 }, {
2116 .eraseblocks = { {32 * 1024, 2} },
2117 .block_erase = spi_block_erase_52,
2118 }, {
2119 .eraseblocks = { {32 * 1024, 2} },
2120 .block_erase = spi_block_erase_d8,
2121 }, {
2122 .eraseblocks = { {64 * 1024, 1} },
2123 .block_erase = spi_block_erase_60,
2124 }, {
2125 .eraseblocks = { {64 * 1024, 1} },
2126 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00002127 }, {
2128 .eraseblocks = { {64 * 1024, 1} },
2129 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00002130 }
2131 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00002132 .printlock = spi_prettyprint_status_register_at25f512b,
2133 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002134 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002136 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002137 },
2138
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002139 {
2140 .vendor = "Atmel",
2141 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002142 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002143 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002144 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002145 .total_size = 128,
2146 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002147 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002148 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002149 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002150 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002151 .block_erasers =
2152 {
2153 {
2154 .eraseblocks = { {4 * 1024, 32} },
2155 .block_erase = spi_block_erase_20,
2156 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002157 .eraseblocks = { {4 * 1024, 32} },
2158 .block_erase = spi_block_erase_d7,
2159 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002160 .eraseblocks = { {32 * 1024, 4} },
2161 .block_erase = spi_block_erase_52,
2162 }, {
2163 .eraseblocks = { {32 * 1024, 4} },
2164 .block_erase = spi_block_erase_d8,
2165 }, {
2166 .eraseblocks = { {128 * 1024, 1} },
2167 .block_erase = spi_block_erase_60,
2168 }, {
2169 .eraseblocks = { {128 * 1024, 1} },
2170 .block_erase = spi_block_erase_c7,
2171 }
2172 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002173 .printlock = spi_prettyprint_status_register_at25fs010,
2174 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002175 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002176 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002177 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002178 },
2179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002180 {
2181 .vendor = "Atmel",
2182 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002183 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002184 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002185 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002186 .total_size = 512,
2187 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002188 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002189 .tested = TEST_UNTESTED,
2190 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002191 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002192 .block_erasers =
2193 {
2194 {
2195 .eraseblocks = { {4 * 1024, 128} },
2196 .block_erase = spi_block_erase_20,
2197 }, {
2198 .eraseblocks = { {64 * 1024, 8} },
2199 .block_erase = spi_block_erase_52,
2200 }, {
2201 .eraseblocks = { {64 * 1024, 8} },
2202 .block_erase = spi_block_erase_d8,
2203 }, {
2204 .eraseblocks = { {512 * 1024, 1} },
2205 .block_erase = spi_block_erase_60,
2206 }, {
2207 .eraseblocks = { {512 * 1024, 1} },
2208 .block_erase = spi_block_erase_c7,
2209 }
2210 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002211 .printlock = spi_prettyprint_status_register_at25fs040,
2212 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002213 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002214 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002215 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002216 },
2217
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002218 {
2219 .vendor = "Atmel",
jvma3ab6c62018-03-08 15:43:20 +01002220 .name = "AT25SF041",
2221 .bustype = BUS_SPI,
2222 .manufacture_id = ATMEL_ID,
2223 .model_id = ATMEL_AT25SF041,
2224 .total_size = 512,
2225 .page_size = 256,
2226 .feature_bits = FEATURE_WRSR_WREN,
2227 .tested = TEST_OK_PREW,
2228 .probe = probe_spi_rdid,
2229 .probe_timing = TIMING_ZERO,
2230 .block_erasers =
2231 {
2232 {
2233 .eraseblocks = { {4 * 1024, 128} },
2234 .block_erase = spi_block_erase_20,
2235 }, {
2236 .eraseblocks = { {32 * 1024, 16} },
2237 .block_erase = spi_block_erase_52,
2238 }, {
2239 .eraseblocks = { {64 * 1024, 8} },
2240 .block_erase = spi_block_erase_d8,
2241 }, {
2242 .eraseblocks = { {512 * 1024, 1} },
2243 .block_erase = spi_block_erase_60,
2244 }, {
2245 .eraseblocks = { {512 * 1024, 1} },
2246 .block_erase = spi_block_erase_c7,
2247 }
2248 },
2249 .printlock = spi_prettyprint_status_register_plain,
2250 .unlock = spi_disable_blockprotect,
2251 .write = spi_chip_write_256,
2252 .read = spi_chip_read,
2253 .voltage = {2500, 3600},
2254 },
2255
2256 {
2257 .vendor = "Atmel",
Evan Jensen291c1012018-05-17 14:30:19 -07002258 .name = "AT25SF081",
2259 .bustype = BUS_SPI,
2260 .manufacture_id = ATMEL_ID,
2261 .model_id = ATMEL_AT25SF081,
2262 .total_size = 1024,
2263 .page_size = 256,
2264 .feature_bits = FEATURE_WRSR_WREN,
2265 .tested = TEST_OK_PREW,
2266 .probe = probe_spi_rdid,
2267 .probe_timing = TIMING_ZERO,
2268 .block_erasers =
2269 {
2270 {
2271 .eraseblocks = { {4 * 1024, 256} },
2272 .block_erase = spi_block_erase_20,
2273 }, {
2274 .eraseblocks = { {32 * 1024, 32} },
2275 .block_erase = spi_block_erase_52,
2276 }, {
2277 .eraseblocks = { {64 * 1024, 16} },
2278 .block_erase = spi_block_erase_d8,
2279 }, {
2280 .eraseblocks = { {1024 * 1024, 1} },
2281 .block_erase = spi_block_erase_60,
2282 }, {
2283 .eraseblocks = { {1024 * 1024, 1} },
2284 .block_erase = spi_block_erase_c7,
2285 }
2286 },
2287 .printlock = spi_prettyprint_status_register_plain,
2288 .unlock = spi_disable_blockprotect,
2289 .write = spi_chip_write_256,
2290 .read = spi_chip_read,
2291 .voltage = {2300, 3600},
2292 },
2293
2294 {
2295 .vendor = "Atmel",
Stanislav Sedovf5775442018-03-07 14:16:51 -08002296 .name = "AT25SF161",
2297 .bustype = BUS_SPI,
2298 .manufacture_id = ATMEL_ID,
2299 .model_id = ATMEL_AT25SF161,
2300 .total_size = 2048,
2301 .page_size = 256,
2302 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
2303 .tested = TEST_OK_PREW,
2304 .probe = probe_spi_rdid,
2305 .probe_timing = TIMING_ZERO,
2306 .block_erasers =
2307 {
2308 {
2309 .eraseblocks = { {4 * 1024, 512} },
2310 .block_erase = spi_block_erase_20,
2311 }, {
2312 .eraseblocks = { {32 * 1024, 64} },
2313 .block_erase = spi_block_erase_52,
2314 }, {
2315 .eraseblocks = { {64 * 1024, 32} },
2316 .block_erase = spi_block_erase_d8,
2317 }, {
2318 .eraseblocks = { {2048 * 1024, 1} },
2319 .block_erase = spi_block_erase_60,
2320 }, {
2321 .eraseblocks = { {2048 * 1024, 1} },
2322 .block_erase = spi_block_erase_c7,
2323 }
2324 },
2325 .printlock = spi_prettyprint_status_register_plain,
2326 .unlock = spi_disable_blockprotect,
2327 .write = spi_chip_write_256,
2328 .read = spi_chip_read,
2329 .voltage = {2500, 3600},
2330 },
2331
2332 {
Alan Green57938f82019-06-27 15:06:43 +10002333 .vendor = "Atmel",
darkarnium41394382019-11-04 20:06:48 +00002334 .name = "AT25SF321",
2335 .bustype = BUS_SPI,
2336 .manufacture_id = ATMEL_ID,
2337 .model_id = ATMEL_AT25SF321,
2338 .total_size = 4096,
2339 .page_size = 256,
2340 .feature_bits = FEATURE_WRSR_WREN,
2341 .tested = TEST_OK_PR,
2342 .probe = probe_spi_rdid,
2343 .probe_timing = TIMING_ZERO,
2344 .block_erasers =
2345 {
2346 {
2347 .eraseblocks = { {4 * 1024, 1024} },
2348 .block_erase = spi_block_erase_20,
2349 }, {
2350 .eraseblocks = { {32 * 1024, 128} },
2351 .block_erase = spi_block_erase_52,
2352 }, {
2353 .eraseblocks = { {64 * 1024, 64} },
2354 .block_erase = spi_block_erase_d8,
2355 }, {
2356 .eraseblocks = { {4096 * 1024, 1} },
2357 .block_erase = spi_block_erase_60,
2358 }, {
2359 .eraseblocks = { {4096 * 1024, 1} },
2360 .block_erase = spi_block_erase_c7,
2361 }
2362 },
2363 .printlock = spi_prettyprint_status_register_plain,
2364 .unlock = spi_disable_blockprotect,
2365 .write = spi_chip_write_256,
2366 .read = spi_chip_read,
2367 .voltage = {2500, 3600},
2368 },
2369
2370 {
2371 .vendor = "Atmel",
Hal Martin49e23d22018-05-27 14:18:43 +02002372 .name = "AT25SL128A",
2373 .bustype = BUS_SPI,
2374 .manufacture_id = ATMEL_ID,
2375 .model_id = ATMEL_AT25SL128A,
2376 .total_size = 16384,
2377 .page_size = 256,
2378 /* supports SFDP */
2379 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
2380 .tested = TEST_OK_PREW,
2381 .probe = probe_spi_rdid,
2382 .probe_timing = TIMING_ZERO,
2383 .block_erasers =
2384 {
2385 {
2386 .eraseblocks = { {4 * 1024, 4096} },
2387 .block_erase = spi_block_erase_20,
2388 }, {
2389 .eraseblocks = { {32 * 1024, 512} },
2390 .block_erase = spi_block_erase_52,
2391 }, {
2392 .eraseblocks = { {64 * 1024, 256} },
2393 .block_erase = spi_block_erase_d8,
2394 }, {
2395 .eraseblocks = { {16 * 1024 * 1024, 1} },
2396 .block_erase = spi_block_erase_60,
2397 }, {
2398 .eraseblocks = { {16 * 1024 * 1024, 1} },
2399 .block_erase = spi_block_erase_c7,
2400 }
2401 },
2402 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
2403 .unlock = spi_disable_blockprotect,
2404 .write = spi_chip_write_256,
2405 .read = spi_chip_read,
2406 .voltage = {1700, 2000},
2407 },
2408
2409 {
Stanislav Sedovf5775442018-03-07 14:16:51 -08002410 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002411 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002412 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002413 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002414 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002415 .total_size = 512,
2416 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002417 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002418 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002419 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002420 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002421 .block_erasers =
2422 {
2423 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002424 .eraseblocks = { {256, 2048} },
2425 .block_erase = spi_block_erase_81,
2426 }, {
2427 .eraseblocks = { {2 * 1024, 256} },
2428 .block_erase = spi_block_erase_50,
2429 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002430 .eraseblocks = { {4 * 1024, 128} },
2431 .block_erase = spi_block_erase_20,
2432 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002433 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002434 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002435 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002436 .write = spi_chip_write_1,
2437 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002438 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002439 },
2440
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002441 {
2442 .vendor = "Atmel",
2443 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002444 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002445 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002446 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002447 .total_size = 1024,
2448 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002449 .feature_bits = FEATURE_WRSR_WREN,
2450 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002451 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002452 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002453 .block_erasers =
2454 {
2455 {
2456 .eraseblocks = { {4 * 1024, 256} },
2457 .block_erase = spi_block_erase_20,
2458 }, {
2459 .eraseblocks = { {32 * 1024, 32} },
2460 .block_erase = spi_block_erase_52,
2461 }, {
2462 .eraseblocks = { {64 * 1024, 16} },
2463 .block_erase = spi_block_erase_d8,
2464 }, {
2465 .eraseblocks = { {1024 * 1024, 1} },
2466 .block_erase = spi_block_erase_60,
2467 }, {
2468 .eraseblocks = { {1024 * 1024, 1} },
2469 .block_erase = spi_block_erase_c7,
2470 }
2471 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002472 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002473 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002474 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002475 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002476 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002477 },
2478
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002479 {
2480 .vendor = "Atmel",
2481 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002482 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002483 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002484 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002485 .total_size = 2048,
2486 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002487 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002488 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002489 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002490 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002491 .block_erasers =
2492 {
2493 {
2494 .eraseblocks = { {4 * 1024, 512} },
2495 .block_erase = spi_block_erase_20,
2496 }, {
2497 .eraseblocks = { {32 * 1024, 64} },
2498 .block_erase = spi_block_erase_52,
2499 }, {
2500 .eraseblocks = { {64 * 1024, 32} },
2501 .block_erase = spi_block_erase_d8,
2502 }, {
2503 .eraseblocks = { {2 * 1024 * 1024, 1} },
2504 .block_erase = spi_block_erase_60,
2505 }, {
2506 .eraseblocks = { {2 * 1024 * 1024, 1} },
2507 .block_erase = spi_block_erase_c7,
2508 }
2509 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002510 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002511 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002512 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002513 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002514 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002515 },
2516
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002517 {
2518 .vendor = "Atmel",
2519 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002520 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002521 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002522 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002523 .total_size = 2048,
2524 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002525 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002526 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002527 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002528 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002529 .block_erasers =
2530 {
2531 {
2532 .eraseblocks = { {4 * 1024, 512} },
2533 .block_erase = spi_block_erase_20,
2534 }, {
2535 .eraseblocks = { {32 * 1024, 64} },
2536 .block_erase = spi_block_erase_52,
2537 }, {
2538 .eraseblocks = { {64 * 1024, 32} },
2539 .block_erase = spi_block_erase_d8,
2540 }, {
2541 .eraseblocks = { {2 * 1024 * 1024, 1} },
2542 .block_erase = spi_block_erase_60,
2543 }, {
2544 .eraseblocks = { {2 * 1024 * 1024, 1} },
2545 .block_erase = spi_block_erase_c7,
2546 }
2547 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002548 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002549 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002550 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002551 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002552 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002553 },
2554
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002555 {
2556 .vendor = "Atmel",
2557 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002558 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002559 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002560 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002561 .total_size = 512,
2562 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002563 .feature_bits = FEATURE_WRSR_WREN,
Alan Green908adf42019-07-03 15:34:06 +10002564 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD},
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002565 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002566 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002567 .block_erasers =
2568 {
2569 {
2570 .eraseblocks = { {4 * 1024, 128} },
2571 .block_erase = spi_block_erase_20,
2572 }, {
2573 .eraseblocks = { {32 * 1024, 16} },
2574 .block_erase = spi_block_erase_52,
2575 }, {
2576 .eraseblocks = { {64 * 1024, 8} },
2577 .block_erase = spi_block_erase_d8,
2578 }, {
2579 .eraseblocks = { {512 * 1024, 1} },
2580 .block_erase = spi_block_erase_60,
2581 }, {
2582 .eraseblocks = { {512 * 1024, 1} },
2583 .block_erase = spi_block_erase_c7,
2584 }
2585 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002586 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Alan Greencbb85c02019-06-25 13:42:34 +10002587 .write = NULL, /* Incompatible Page write */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002588 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002589 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002590 },
2591
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002592 {
2593 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002594 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002595 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002596 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002597 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002598 .total_size = 128,
2599 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002600 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002601 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002602 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002603 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002604 .block_erasers =
2605 {
2606 {
2607 .eraseblocks = { {128 * 1024, 1} },
2608 .block_erase = erase_chip_block_jedec,
2609 }
2610 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002611 .write = write_jedec, /* FIXME */
2612 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002613 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002614 },
2615
2616 {
2617 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002618 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002619 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002620 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002621 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002622 .total_size = 256,
2623 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002624 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002625 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002626 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002627 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002628 .block_erasers =
2629 {
2630 {
2631 .eraseblocks = { {256 * 1024, 1} },
2632 .block_erase = erase_chip_block_jedec,
2633 }
2634 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002635 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002636 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002637 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002638 },
2639
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002640 {
2641 .vendor = "Atmel",
2642 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002643 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002644 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002645 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002646 .total_size = 512,
2647 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002648 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002649 .tested = TEST_UNTESTED,
2650 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002651 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002652 .block_erasers =
2653 {
2654 {
2655 .eraseblocks = { {512 * 1024, 1} },
2656 .block_erase = erase_chip_block_jedec,
2657 }
2658 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002659 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002660 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002661 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002662 },
2663
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002664 {
2665 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10002666 .name = "AT29C512",
2667 .bustype = BUS_PARALLEL,
2668 .manufacture_id = ATMEL_ID,
2669 .model_id = ATMEL_AT29C512,
2670 .total_size = 64,
2671 .page_size = 128,
2672 .feature_bits = FEATURE_LONG_RESET,
2673 .tested = TEST_OK_PREW,
2674 .probe = probe_jedec,
2675 .probe_timing = 10000, /* 10mS, Enter=Exec */
2676 .block_erasers =
2677 {
2678 {
2679 .eraseblocks = { {64 * 1024, 1} },
2680 .block_erase = erase_chip_block_jedec,
2681 }
2682 },
2683 .write = write_jedec,
2684 .read = read_memmapped,
2685 .voltage = {4500, 5500},
2686 },
2687
2688 {
2689 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002690 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002691 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002692 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002693 .model_id = ATMEL_AT45CS1282,
Alan Greencbb85c02019-06-25 13:42:34 +10002694 .total_size = 16896, /* No power of two sizes */
2695 .page_size = 1056, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002696 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002697 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2698 .feature_bits = FEATURE_OTP,
2699 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002700 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002701 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002702 .block_erasers =
2703 {
2704 {
2705 .eraseblocks = {
2706 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2707 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2708 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2709 },
2710 .block_erase = spi_erase_at45cs_sector,
2711 }
2712 },
2713 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002714 .write = spi_write_at45db,
2715 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002716 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002717 .gran = write_gran_1056bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002718 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002719
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002720 {
2721 .vendor = "Atmel",
2722 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002723 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002724 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002725 .model_id = ATMEL_AT45DB011D,
Alan Greencbb85c02019-06-25 13:42:34 +10002726 .total_size = 128, /* or 132, determined from status register */
2727 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002728 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002729 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2730 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002731 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002732 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002733 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002734 .block_erasers =
2735 {
2736 {
2737 .eraseblocks = { {256, 512} },
2738 .block_erase = spi_erase_at45db_page,
2739 }, {
2740 .eraseblocks = { {8 * 256, 512/8} },
2741 .block_erase = spi_erase_at45db_block,
2742 }, {
2743 .eraseblocks = {
2744 {8 * 256, 1},
2745 {120 * 256, 1},
2746 {128 * 256, 3},
2747 },
2748 .block_erase = spi_erase_at45db_sector
2749 }, {
2750 .eraseblocks = { {128 * 1024, 1} },
2751 .block_erase = spi_erase_at45db_chip,
2752 }
2753 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002754 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002755 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002756 /* granularity will be set by the probing function. */
2757 .write = spi_write_at45db,
2758 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002759 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002760 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002761
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002762 {
2763 .vendor = "Atmel",
2764 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002765 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002766 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002767 .model_id = ATMEL_AT45DB021D,
Alan Greencbb85c02019-06-25 13:42:34 +10002768 .total_size = 256, /* or 264, determined from status register */
2769 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002770 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002771 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2772 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002773 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002774 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002775 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002776 .block_erasers =
2777 {
2778 {
2779 .eraseblocks = { {256, 1024} },
2780 .block_erase = spi_erase_at45db_page,
2781 }, {
2782 .eraseblocks = { {8 * 256, 1024/8} },
2783 .block_erase = spi_erase_at45db_block,
2784 }, {
2785 .eraseblocks = {
2786 {8 * 256, 1},
2787 {120 * 256, 1},
2788 {128 * 256, 7},
2789 },
2790 .block_erase = spi_erase_at45db_sector
2791 }, {
2792 .eraseblocks = { {256 * 1024, 1} },
2793 .block_erase = spi_erase_at45db_chip,
2794 }
2795 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002796 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002797 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002798 /* granularity will be set by the probing function. */
2799 .write = spi_write_at45db,
2800 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002801 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002802 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002803
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002804 {
2805 .vendor = "Atmel",
2806 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002807 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002808 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002809 .model_id = ATMEL_AT45DB041D,
Alan Greencbb85c02019-06-25 13:42:34 +10002810 .total_size = 512, /* or 528, determined from status register */
2811 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002812 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002813 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2814 .feature_bits = FEATURE_OTP,
2815 .tested = TEST_OK_PREW,
2816 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002817 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002818 .block_erasers =
2819 {
2820 {
2821 .eraseblocks = { {256, 2048} },
2822 .block_erase = spi_erase_at45db_page,
2823 }, {
2824 .eraseblocks = { {8 * 256, 2048/8} },
2825 .block_erase = spi_erase_at45db_block,
2826 }, {
2827 .eraseblocks = {
2828 {8 * 256, 1},
2829 {248 * 256, 1},
2830 {256 * 256, 7},
2831 },
2832 .block_erase = spi_erase_at45db_sector
2833 }, {
2834 .eraseblocks = { {512 * 1024, 1} },
2835 .block_erase = spi_erase_at45db_chip,
2836 }
2837 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002838 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002839 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002840 /* granularity will be set by the probing function. */
2841 .write = spi_write_at45db,
2842 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2843 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002844 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002845
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002846 {
2847 .vendor = "Atmel",
2848 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002849 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002850 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002851 .model_id = ATMEL_AT45DB081D,
Alan Greencbb85c02019-06-25 13:42:34 +10002852 .total_size = 1024, /* or 1056, determined from status register */
2853 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002854 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002855 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2856 .feature_bits = FEATURE_OTP,
Angel Pons250aeba2018-09-30 20:28:22 +02002857 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002858 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002859 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002860 .block_erasers =
2861 {
2862 {
2863 .eraseblocks = { {256, 4096} },
2864 .block_erase = spi_erase_at45db_page,
2865 }, {
2866 .eraseblocks = { {8 * 256, 4096/8} },
2867 .block_erase = spi_erase_at45db_block,
2868 }, {
2869 .eraseblocks = {
2870 {8 * 256, 1},
2871 {248 * 256, 1},
2872 {256 * 256, 15},
2873 },
2874 .block_erase = spi_erase_at45db_sector
2875 }, {
2876 .eraseblocks = { {1024 * 1024, 1} },
2877 .block_erase = spi_erase_at45db_chip,
2878 }
2879 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002880 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002881 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002882 /* granularity will be set by the probing function. */
2883 .write = spi_write_at45db,
2884 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002885 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002886 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002887
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002888 {
2889 .vendor = "Atmel",
2890 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002891 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002892 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002893 .model_id = ATMEL_AT45DB161D,
Alan Greencbb85c02019-06-25 13:42:34 +10002894 .total_size = 2048, /* or 2112, determined from status register */
2895 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002896 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002897 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2898 .feature_bits = FEATURE_OTP,
2899 .tested = TEST_OK_PREW,
2900 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002901 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002902 .block_erasers =
2903 {
2904 {
2905 .eraseblocks = { {512, 4096} },
2906 .block_erase = spi_erase_at45db_page,
2907 }, {
2908 .eraseblocks = { {8 * 512, 4096/8} },
2909 .block_erase = spi_erase_at45db_block,
2910 }, {
2911 .eraseblocks = {
2912 {8 * 512, 1},
2913 {248 * 512, 1},
2914 {256 * 512, 15},
2915 },
2916 .block_erase = spi_erase_at45db_sector
2917 }, {
2918 .eraseblocks = { {2048 * 1024, 1} },
2919 .block_erase = spi_erase_at45db_chip,
2920 }
2921 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002922 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002923 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002924 /* granularity will be set by the probing function. */
2925 .write = spi_write_at45db,
2926 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002927 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002928 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002929
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002930 {
2931 .vendor = "Atmel",
2932 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002933 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002934 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002935 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10002936 .total_size = 4224, /* No power of two sizes */
2937 .page_size = 528, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002938 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002939 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2940 .feature_bits = FEATURE_OTP,
2941 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002942 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002943 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002944 .block_erasers =
2945 {
2946 {
2947 .eraseblocks = { {528, 8192} },
2948 .block_erase = spi_erase_at45db_page,
2949 }, {
2950 .eraseblocks = { {8 * 528, 8192/8} },
2951 .block_erase = spi_erase_at45db_block,
2952 }, /* Although the datasheets describes sectors (which can be write protected)
2953 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00002954 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002955 .eraseblocks = {
2956 {8 * 528, 1},
2957 {120 * 528, 1},
2958 {128 * 528, 63},
2959 },
2960 .block_erase = spi_erase_at45db_sector
2961 }, */ {
2962 .eraseblocks = { {4224 * 1024, 1} },
2963 .block_erase = spi_erase_at45db_chip,
2964 }
2965 },
2966 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002967 .write = spi_write_at45db,
2968 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002969 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002970 .gran = write_gran_528bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002971 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002972
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002973 {
2974 .vendor = "Atmel",
2975 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002976 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002977 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002978 .model_id = ATMEL_AT45DB321D,
Alan Greencbb85c02019-06-25 13:42:34 +10002979 .total_size = 4096, /* or 4224, determined from status register */
2980 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002981 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002982 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002983 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00002984 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002985 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002986 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002987 .block_erasers =
2988 {
2989 {
2990 .eraseblocks = { {512, 8192} },
2991 .block_erase = spi_erase_at45db_page,
2992 }, {
2993 .eraseblocks = { {8 * 512, 8192/8} },
2994 .block_erase = spi_erase_at45db_block,
2995 }, {
2996 .eraseblocks = {
2997 {8 * 512, 1},
2998 {120 * 512, 1},
2999 {128 * 512, 63},
3000 },
3001 .block_erase = spi_erase_at45db_sector
3002 }, {
3003 .eraseblocks = { {4096 * 1024, 1} },
3004 .block_erase = spi_erase_at45db_chip,
3005 }
3006 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003007 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003008 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003009 /* granularity will be set by the probing function. */
3010 .write = spi_write_at45db,
3011 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3012 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
3013 },
3014
3015 {
3016 .vendor = "Atmel",
3017 .name = "AT45DB321E",
3018 .bustype = BUS_SPI,
3019 .manufacture_id = ATMEL_ID,
3020 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10003021 .total_size = 4096, /* or 4224, determined from status register */
3022 .page_size = 512, /* or 528, determined from status register */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003023 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
3024 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3025 .feature_bits = FEATURE_OTP,
3026 .tested = TEST_UNTESTED,
3027 .probe = probe_spi_at45db,
3028 .probe_timing = TIMING_ZERO,
3029 .block_erasers =
3030 {
3031 {
3032 .eraseblocks = { {512, 8192} },
3033 .block_erase = spi_erase_at45db_page,
3034 }, {
3035 .eraseblocks = { {8 * 512, 8192/8} },
3036 .block_erase = spi_erase_at45db_block,
3037 }, {
3038 .eraseblocks = {
3039 {8 * 512, 1},
3040 {120 * 512, 1},
3041 {128 * 512, 63},
3042 },
3043 .block_erase = spi_erase_at45db_sector
3044 }, {
3045 .eraseblocks = { {4096 * 1024, 1} },
3046 .block_erase = spi_erase_at45db_chip,
3047 }
3048 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003049 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
Alan Greenc1863ca2019-06-27 15:08:03 +10003050 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003051 /* granularity will be set by the probing function. */
3052 .write = spi_write_at45db,
3053 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3054 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003055 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003056
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003057 {
3058 .vendor = "Atmel",
3059 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003060 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003061 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003062 .model_id = ATMEL_AT45DB642D,
Alan Greencbb85c02019-06-25 13:42:34 +10003063 .total_size = 8192, /* or 8448, determined from status register */
3064 .page_size = 1024, /* or 1056, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00003065 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003066 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3067 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00003068 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003069 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003070 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003071 .block_erasers =
3072 {
3073 {
3074 .eraseblocks = { {1024, 8192} },
3075 .block_erase = spi_erase_at45db_page,
3076 }, {
3077 .eraseblocks = { {8 * 1024, 8192/8} },
3078 .block_erase = spi_erase_at45db_block,
3079 }, {
3080 .eraseblocks = {
3081 {8 * 1024, 1},
3082 {248 * 1024, 1},
3083 {256 * 1024, 31},
3084 },
3085 .block_erase = spi_erase_at45db_sector
3086 }, {
3087 .eraseblocks = { {8192 * 1024, 1} },
3088 .block_erase = spi_erase_at45db_chip,
3089 }
3090 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003091 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003092 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003093 /* granularity will be set by the probing function. */
3094 .write = spi_write_at45db,
3095 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003096 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003097 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003098
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003099 {
3100 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003101 .name = "AT49(H)F010",
3102 .bustype = BUS_PARALLEL,
3103 .manufacture_id = ATMEL_ID,
3104 .model_id = ATMEL_AT49F010,
3105 .total_size = 128,
3106 .page_size = 0, /* unused */
3107 .feature_bits = FEATURE_EITHER_RESET,
3108 .tested = TEST_OK_PREW,
3109 .probe = probe_jedec,
3110 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3111 .block_erasers =
3112 {
3113 {
3114 .eraseblocks = { {128 * 1024, 1} },
3115 .block_erase = erase_chip_block_jedec,
3116 }
3117 },
3118 .printlock = printlock_at49f,
3119 .write = write_jedec_1,
3120 .read = read_memmapped,
3121 .voltage = {4500, 5500},
3122 },
3123
3124 {
3125 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003126 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003127 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003128 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003129 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003130 .total_size = 64,
3131 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00003132 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00003133 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003134 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003135 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003136 .block_erasers =
3137 {
3138 {
3139 .eraseblocks = { {64 * 1024, 1} },
3140 .block_erase = erase_chip_block_jedec,
3141 }
3142 },
Sean Nelson35727f72010-01-28 23:55:12 +00003143 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003144 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003145 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003146 },
3147
3148 {
3149 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003150 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003151 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003152 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003153 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003154 .total_size = 256,
3155 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003156 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003157 .tested = TEST_UNTESTED,
3158 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003159 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003160 .block_erasers =
3161 {
3162 {
3163 .eraseblocks = {
3164 {16 * 1024, 1},
3165 {8 * 1024, 2},
3166 {96 * 1024, 1},
3167 {128 * 1024, 1},
3168 },
3169 .block_erase = erase_sector_jedec,
3170 }, {
3171 .eraseblocks = { {256 * 1024, 1} },
3172 .block_erase = erase_chip_block_jedec,
3173 }
3174 },
Sean Nelson35727f72010-01-28 23:55:12 +00003175 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003176 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003177 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003178 },
3179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003180 {
3181 .vendor = "Atmel",
3182 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003183 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003184 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003185 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003186 .total_size = 256,
3187 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003188 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003189 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003190 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003191 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003192 .block_erasers =
3193 {
3194 {
3195 .eraseblocks = {
3196 {128 * 1024, 1},
3197 {96 * 1024, 1},
3198 {8 * 1024, 2},
3199 {16 * 1024, 1},
3200 },
3201 .block_erase = erase_sector_jedec,
3202 }, {
3203 .eraseblocks = { {256 * 1024, 1} },
3204 .block_erase = erase_chip_block_jedec,
3205 }
3206 },
Sean Nelson35727f72010-01-28 23:55:12 +00003207 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003208 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003209 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003210 },
3211
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00003212 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00003213 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003214 .name = "AT49F020",
3215 .bustype = BUS_PARALLEL,
3216 .manufacture_id = ATMEL_ID,
3217 .model_id = ATMEL_AT49F020,
3218 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003219 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003220 .feature_bits = FEATURE_EITHER_RESET,
3221 .tested = TEST_OK_PRE,
3222 .probe = probe_jedec,
3223 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3224 .block_erasers =
3225 {
3226 {
3227 .eraseblocks = { {256 * 1024, 1} },
3228 .block_erase = erase_chip_block_jedec,
3229 }
3230 /* Chip features an optional permanent write protection
3231 * of the first 8 kB. The erase function is the same as
3232 * above, but 00000H to 01FFFH will not be erased.
3233 * FIXME: add another eraser when partial erasers are
3234 * supported.
3235 */
3236 },
3237 .printlock = printlock_at49f,
3238 .write = write_jedec_1,
3239 .read = read_memmapped,
3240 .voltage = {4500, 5500},
3241 },
3242
3243 {
3244 .vendor = "Atmel",
3245 .name = "AT49F040",
3246 .bustype = BUS_PARALLEL,
3247 .manufacture_id = ATMEL_ID,
3248 .model_id = ATMEL_AT49F040,
3249 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003250 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003251 .feature_bits = FEATURE_EITHER_RESET,
3252 .tested = TEST_UNTESTED,
3253 .probe = probe_jedec,
3254 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3255 .block_erasers =
3256 {
3257 {
3258 .eraseblocks = { {512 * 1024, 1} },
3259 .block_erase = erase_chip_block_jedec,
3260 }
3261 /* Chip features an optional permanent write protection
3262 * of the first 16 kB. The erase function is the same as
3263 * above, but 00000H to 03FFFH will not be erased.
3264 * FIXME: add another eraser when partial erasers are
3265 * supported.
3266 */
3267 },
3268 .printlock = printlock_at49f,
3269 .write = write_jedec_1,
3270 .read = read_memmapped,
3271 .voltage = {4500, 5500},
3272 },
3273
3274 {
3275 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003276 .name = "AT49F080",
3277 .bustype = BUS_PARALLEL,
3278 .manufacture_id = ATMEL_ID,
3279 .model_id = ATMEL_AT49F080,
3280 .total_size = 1024,
3281 .page_size = 0, /* unused */
3282 .feature_bits = FEATURE_EITHER_RESET,
3283 .tested = TEST_UNTESTED,
3284 .probe = probe_jedec,
3285 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3286 .block_erasers =
3287 {
3288 {
3289 .eraseblocks = { {1024 * 1024, 1} },
3290 .block_erase = erase_chip_block_jedec,
3291 }
3292 /* Chip features an optional permanent write protection
3293 * of the first 16 kB. The erase function is the same as
3294 * above, but 00000H to 03FFFH will not be erased.
3295 * FIXME: add another eraser when partial erasers are
3296 * supported.
3297 */
3298 },
3299 .printlock = printlock_at49f,
3300 .write = write_jedec_1,
3301 .read = read_memmapped,
3302 .voltage = {4500, 5500},
3303 },
3304
3305 {
3306 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3307 .vendor = "Atmel",
3308 .name = "AT49F080T",
3309 .bustype = BUS_PARALLEL,
3310 .manufacture_id = ATMEL_ID,
3311 .model_id = ATMEL_AT49F080T,
3312 .total_size = 1024,
3313 .page_size = 0, /* unused */
3314 .feature_bits = FEATURE_EITHER_RESET,
3315 .tested = TEST_UNTESTED,
3316 .probe = probe_jedec,
3317 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3318 .block_erasers =
3319 {
3320 {
3321 .eraseblocks = { {1024 * 1024, 1} },
3322 .block_erase = erase_chip_block_jedec,
3323 }
3324 /* Chip features an optional permanent write protection
3325 * of the first 16 kB. The erase function is the same as
3326 * above, but FC000H to FFFFFH will not be erased.
3327 * FIXME: add another eraser when partial erasers are
3328 * supported.
3329 */
3330 },
3331 .printlock = printlock_at49f,
3332 .write = write_jedec_1,
3333 .read = read_memmapped,
3334 .voltage = {4500, 5500},
3335 },
3336
3337 {
3338 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003339 .name = "AT49LH002",
3340 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3341 .manufacture_id = ATMEL_ID,
3342 .model_id = ATMEL_AT49LH002,
3343 .total_size = 256,
3344 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003345 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003346 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003347 .probe = probe_82802ab,
3348 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003349 .block_erasers =
3350 {
3351 {
3352 .eraseblocks = {
3353 {64 * 1024, 3},
3354 {32 * 1024, 1},
3355 {8 * 1024, 2},
3356 {16 * 1024, 1},
3357 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003358 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003359 }, {
3360 .eraseblocks = {
3361 {64 * 1024, 4},
3362 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003363 .block_erase = erase_block_82802ab,
3364 },
3365 },
3366 .printlock = printlock_regspace2_block_eraser_0,
3367 .unlock = unlock_regspace2_block_eraser_0,
3368 .write = write_82802ab,
3369 .read = read_memmapped,
3370 .voltage = {3000, 3600},
3371 },
3372
3373 {
3374 .vendor = "Atmel",
Stefan Tauner7de93932014-08-03 13:05:45 +00003375 .name = "AT49LH004",
3376 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3377 .manufacture_id = ATMEL_ID,
3378 .model_id = ATMEL_AT49LH004,
3379 .total_size = 512,
3380 .page_size = 0, /* unused */
3381 .feature_bits = FEATURE_REGISTERMAP,
3382 .tested = TEST_UNTESTED,
3383 .probe = probe_82802ab,
3384 .probe_timing = TIMING_ZERO,
3385 .block_erasers =
3386 {
3387 {
3388 .eraseblocks = {
3389 {64 * 1024, 7},
3390 {32 * 1024, 1},
3391 {8 * 1024, 2},
3392 {16 * 1024, 1},
3393 },
3394 .block_erase = erase_block_82802ab,
3395 }, {
3396 .eraseblocks = {
3397 {64 * 1024, 8},
3398 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003399 .block_erase = NULL, /* TODO: Implement. */
3400 },
3401 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003402 .printlock = printlock_regspace2_block_eraser_0,
3403 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003404 .write = write_82802ab,
3405 .read = read_memmapped,
3406 .voltage = {3000, 3600},
3407 },
3408
3409 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003410 .vendor = "Atmel",
3411 .name = "AT49LH00B4",
3412 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3413 .manufacture_id = ATMEL_ID,
3414 .model_id = ATMEL_AT49LH00B4,
3415 .total_size = 512,
Andrew Morganca081462011-09-13 22:05:44 +00003416 .page_size = 0, /* unused */
Alan Green1f9cc7d2019-07-01 11:10:45 +10003417 .feature_bits = FEATURE_REGISTERMAP,
3418 .tested = TEST_UNTESTED,
3419 .probe = probe_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003420 .probe_timing = TIMING_ZERO,
3421 .block_erasers =
3422 {
3423 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003424 .eraseblocks = {
3425 {8 * 1024, 2},
3426 {16 * 1024, 1},
3427 {32 * 1024, 1},
3428 {64 * 1024, 7},
3429 },
3430 .block_erase = NULL, /* TODO: Implement. */
3431 }, {
3432 .eraseblocks = {
3433 {64 * 1024, 8},
3434 },
3435 .block_erase = erase_block_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003436 },
3437 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003438 .printlock = printlock_regspace2_block_eraser_0,
3439 .unlock = unlock_regspace2_block_eraser_0,
3440 .write = write_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003441 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003442 .voltage = {3000, 3600},
Andrew Morganca081462011-09-13 22:05:44 +00003443 },
3444
3445 {
Angel Pons1ebda782021-04-20 21:39:11 +02003446 .vendor = "Boya/BoHong Microelectronics",
Christian Kudera475a7ee2021-04-20 22:50:01 +02003447 .name = "B.25D16A",
3448 .bustype = BUS_SPI,
3449 .manufacture_id = BOYA_BOHONG_ID,
3450 .model_id = BOYA_BOHONG_B_25D16A,
3451 .total_size = 2048,
3452 .page_size = 256,
3453 .feature_bits = FEATURE_WRSR_WREN,
3454 .tested = TEST_OK_PR,
3455 .probe = probe_spi_rdid,
3456 .probe_timing = TIMING_ZERO,
3457 .block_erasers =
3458 {
3459 {
3460 .eraseblocks = { {4 * 1024, 512} },
3461 .block_erase = spi_block_erase_20,
3462 }, {
3463 .eraseblocks = { {32 * 1024, 64} },
3464 .block_erase = spi_block_erase_52,
3465 }, {
3466 .eraseblocks = { {64 * 1024, 32} },
3467 .block_erase = spi_block_erase_d8,
3468 }, {
3469 .eraseblocks = { {2 * 1024 * 1024, 1} },
3470 .block_erase = spi_block_erase_60,
3471 }, {
3472 .eraseblocks = { {2 * 1024 * 1024, 1} },
3473 .block_erase = spi_block_erase_c7,
3474 }
3475 },
3476 .printlock = spi_prettyprint_status_register_bp2_srwd,
3477 .unlock = spi_disable_blockprotect_bp2_srwd,
3478 .write = spi_chip_write_256,
3479 .read = spi_chip_read,
3480 .voltage = {2700, 3600},
3481 },
3482
3483 {
3484 .vendor = "Boya/BoHong Microelectronics",
Angel Pons1ebda782021-04-20 21:39:11 +02003485 .name = "B.25Q128AS",
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003486 .bustype = BUS_SPI,
Angel Pons1ebda782021-04-20 21:39:11 +02003487 .manufacture_id = BOYA_BOHONG_ID,
3488 .model_id = BOYA_BOHONG_B_25Q128AS,
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003489 .total_size = 16384,
3490 .page_size = 256,
3491 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
3492 .tested = TEST_OK_PREW,
3493 .probe = probe_spi_rdid,
3494 .probe_timing = TIMING_ZERO,
3495 .block_erasers =
3496 {
3497 {
3498 .eraseblocks = { {4 * 1024, 4096} },
3499 .block_erase = spi_block_erase_20,
3500 }, {
3501 .eraseblocks = { {32 * 1024, 512} },
3502 .block_erase = spi_block_erase_52,
3503 }, {
3504 .eraseblocks = { {64 * 1024, 256} },
3505 .block_erase = spi_block_erase_d8,
3506 }, {
3507 .eraseblocks = { {16 * 1024 * 1024, 1} },
3508 .block_erase = spi_block_erase_60,
3509 }, {
3510 .eraseblocks = { {16 * 1024 * 1024, 1} },
3511 .block_erase = spi_block_erase_c7,
3512 }
3513 },
3514 .printlock = spi_prettyprint_status_register_plain,
3515 .unlock = spi_disable_blockprotect_at25fs040,
3516 .write = spi_chip_write_256,
3517 .read = spi_chip_read,
3518 .voltage = {2700, 3600},
3519 },
3520
3521 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003522 .vendor = "Bright",
3523 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003524 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003525 .manufacture_id = BRIGHT_ID,
3526 .model_id = BRIGHT_BM29F040,
3527 .total_size = 512,
3528 .page_size = 64 * 1024,
3529 .feature_bits = FEATURE_EITHER_RESET,
3530 .tested = TEST_OK_PR,
3531 .probe = probe_jedec,
3532 .probe_timing = TIMING_ZERO,
3533 .block_erasers =
3534 {
3535 {
3536 .eraseblocks = { {64 * 1024, 8} },
3537 .block_erase = erase_sector_jedec,
3538 }, {
3539 .eraseblocks = { {512 * 1024, 1} },
3540 .block_erase = erase_chip_block_jedec,
3541 },
3542 },
3543 .write = write_jedec_1,
3544 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003545 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003546 },
3547
3548 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003549 .vendor = "Catalyst",
3550 .name = "CAT28F512",
3551 .bustype = BUS_PARALLEL,
3552 .manufacture_id = CATALYST_ID,
3553 .model_id = CATALYST_CAT28F512,
3554 .total_size = 64,
3555 .page_size = 0, /* unused */
3556 .feature_bits = 0,
Alan Green908adf42019-07-03 15:34:06 +10003557 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD},
Alan Green1f9cc7d2019-07-01 11:10:45 +10003558 .probe = probe_jedec, /* FIXME! */
3559 .probe_timing = TIMING_ZERO,
3560 .block_erasers =
3561 {
3562 {
3563 .eraseblocks = { {64 * 1024, 1} },
3564 .block_erase = NULL, /* TODO */
3565 },
3566 },
3567 .write = NULL, /* TODO */
3568 .read = read_memmapped,
3569 .voltage = {4500, 5500},
3570 },
3571
3572 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003573 .vendor = "ENE",
3574 .name = "KB9012 (EDI)",
3575 .bustype = BUS_SPI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003576 .total_size = 128,
3577 .page_size = 128,
3578 .feature_bits = FEATURE_ERASED_ZERO,
3579 .tested = TEST_OK_PREW,
Alan Greenc1863ca2019-06-27 15:08:03 +10003580 .spi_cmd_set = SPI_EDI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003581 .probe = edi_probe_kb9012,
3582 .probe_timing = TIMING_ZERO,
3583 .block_erasers =
3584 {
3585 {
3586 .eraseblocks = { {128, 1024} },
3587 .block_erase = edi_chip_block_erase,
3588 },
3589 },
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003590 .write = edi_chip_write,
3591 .read = edi_chip_read,
3592 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10003593 .gran = write_gran_128bytes,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003594 },
3595
3596 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003597 .vendor = "ESI",
3598 .name = "ES25P16",
3599 .bustype = BUS_SPI,
3600 .manufacture_id = EXCEL_ID_NOPREFIX,
3601 .model_id = EXCEL_ES25P16,
3602 .total_size = 2 * 1024,
3603 .page_size = 256,
3604 /* 256-byte parameter page separate from memory array:
3605 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3606 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003607 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003608 .probe = probe_spi_rdid,
3609 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003610 .block_erasers =
3611 {
3612 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003613 .eraseblocks = { {64 * 1024, 32} },
3614 .block_erase = spi_block_erase_d8,
Sean Nelson54596372010-01-09 05:30:14 +00003615 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003616 .eraseblocks = { {2 * 1024 * 1024, 1} },
3617 .block_erase = spi_block_erase_c7,
Sean Nelson54596372010-01-09 05:30:14 +00003618 }
3619 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003620 .printlock = spi_prettyprint_status_register_bp2_srwd,
3621 .unlock = spi_disable_blockprotect_bp2_srwd,
3622 .write = spi_chip_write_256,
3623 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3624 .voltage = {2700, 3600},
3625 },
3626
3627 {
3628 .vendor = "ESI",
3629 .name = "ES25P40",
3630 .bustype = BUS_SPI,
3631 .manufacture_id = EXCEL_ID_NOPREFIX,
3632 .model_id = EXCEL_ES25P40,
3633 .total_size = 512,
3634 .page_size = 256,
3635 /* 256-byte parameter page separate from memory array:
3636 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3637 .feature_bits = FEATURE_WRSR_WREN,
3638 .tested = TEST_UNTESTED,
3639 .probe = probe_spi_rdid,
3640 .probe_timing = TIMING_ZERO,
3641 .block_erasers =
3642 {
3643 {
3644 .eraseblocks = { {64 * 1024, 8} },
3645 .block_erase = spi_block_erase_d8,
3646 }, {
3647 .eraseblocks = { {512 * 1024, 1} },
3648 .block_erase = spi_block_erase_c7,
3649 }
3650 },
3651 .printlock = spi_prettyprint_status_register_bp2_srwd,
3652 .unlock = spi_disable_blockprotect_bp2_srwd,
3653 .write = spi_chip_write_256,
3654 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3655 .voltage = {2700, 3600},
3656 },
3657
3658 {
3659 .vendor = "ESI",
3660 .name = "ES25P80",
3661 .bustype = BUS_SPI,
3662 .manufacture_id = EXCEL_ID_NOPREFIX,
3663 .model_id = EXCEL_ES25P80,
3664 .total_size = 1024,
3665 .page_size = 256,
3666 /* 256-byte parameter page separate from memory array:
3667 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3668 .feature_bits = FEATURE_WRSR_WREN,
3669 .tested = TEST_UNTESTED,
3670 .probe = probe_spi_rdid,
3671 .probe_timing = TIMING_ZERO,
3672 .block_erasers =
3673 {
3674 {
3675 .eraseblocks = { {64 * 1024, 16} },
3676 .block_erase = spi_block_erase_d8,
3677 }, {
3678 .eraseblocks = { {1024 * 1024, 1} },
3679 .block_erase = spi_block_erase_c7,
3680 }
3681 },
3682 .printlock = spi_prettyprint_status_register_bp2_srwd,
3683 .unlock = spi_disable_blockprotect_bp2_srwd,
3684 .write = spi_chip_write_256,
3685 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3686 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003687 },
3688
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003689 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003690 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003691 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003692 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003693 .manufacture_id = ESMT_ID,
3694 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003695 .total_size = 1024,
3696 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003697 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003698 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003699 .probe = probe_spi_rdid,
3700 .probe_timing = TIMING_ZERO,
3701 .block_erasers =
3702 {
3703 {
3704 .eraseblocks = { {4 * 1024, 256} },
3705 .block_erase = spi_block_erase_20,
3706 }, {
3707 .eraseblocks = { {64 * 1024, 16} },
3708 .block_erase = spi_block_erase_d8,
3709 }, {
3710 .eraseblocks = { {1024 * 1024, 1} },
3711 .block_erase = spi_block_erase_60,
3712 }, {
3713 .eraseblocks = { {1024 * 1024, 1} },
3714 .block_erase = spi_block_erase_c7,
3715 }
3716 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003717 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003718 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003719 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003720 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003721 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003722 },
3723
3724 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003725 .vendor = "ESMT",
3726 .name = "F25L32PA",
3727 .bustype = BUS_SPI,
3728 .manufacture_id = ESMT_ID,
3729 .model_id = ESMT_F25L32PA,
3730 .total_size = 4096,
3731 .page_size = 256,
3732 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3733 .tested = TEST_UNTESTED,
3734 .probe = probe_spi_rdid,
3735 .probe_timing = TIMING_ZERO,
3736 .block_erasers =
3737 {
3738 {
3739 .eraseblocks = { {4 * 1024, 1024} },
3740 .block_erase = spi_block_erase_20,
3741 }, {
3742 .eraseblocks = { {64 * 1024, 64} },
3743 .block_erase = spi_block_erase_d8,
3744 }, {
3745 .eraseblocks = { {4 * 1024 * 1024, 1} },
3746 .block_erase = spi_block_erase_60,
3747 }, {
3748 .eraseblocks = { {4 * 1024 * 1024, 1} },
3749 .block_erase = spi_block_erase_c7,
3750 }
3751 },
3752 .printlock = spi_prettyprint_status_register_bp2_bpl,
3753 .unlock = spi_disable_blockprotect,
3754 .write = spi_chip_write_256,
3755 .read = spi_chip_read,
3756 .voltage = {2700, 3600},
3757 },
3758
3759 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003760 .vendor = "ESMT",
3761 .name = "F49B002UA",
3762 .bustype = BUS_PARALLEL,
3763 .manufacture_id = ESMT_ID,
3764 .model_id = ESMT_F49B002UA,
3765 .total_size = 256,
3766 .page_size = 4096,
3767 .feature_bits = FEATURE_EITHER_RESET,
3768 .tested = TEST_UNTESTED,
3769 .probe = probe_jedec,
3770 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3771 .block_erasers =
3772 {
3773 {
3774 .eraseblocks = {
3775 {128 * 1024, 1},
3776 {96 * 1024, 1},
3777 {8 * 1024, 2},
3778 {16 * 1024, 1},
3779 },
3780 .block_erase = erase_sector_jedec,
3781 }, {
3782 .eraseblocks = { {256 * 1024, 1} },
3783 .block_erase = erase_chip_block_jedec,
3784 }
3785 },
3786 .write = write_jedec_1,
3787 .read = read_memmapped,
3788 .voltage = {4500, 5500},
3789 },
3790
3791 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003792 .vendor = "Eon",
3793 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003794 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003795 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003796 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003797 .total_size = 64,
3798 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003799 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003800 .tested = TEST_UNTESTED,
3801 .probe = probe_spi_rdid,
3802 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003803 .block_erasers =
3804 {
3805 {
3806 .eraseblocks = {
3807 {4 * 1024, 2},
3808 {8 * 1024, 1},
3809 {16 * 1024, 1},
3810 {32 * 1024, 1},
3811 },
3812 .block_erase = spi_block_erase_d8,
3813 }, {
3814 .eraseblocks = { {64 * 1024, 1} },
3815 .block_erase = spi_block_erase_c7,
3816 }
3817 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003818 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003819 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003820 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003821 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003822 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003823 },
3824
3825 {
3826 .vendor = "Eon",
3827 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003828 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003829 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003830 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003831 .total_size = 64,
3832 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003833 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003834 .tested = TEST_UNTESTED,
3835 .probe = probe_spi_rdid,
3836 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003837 .block_erasers =
3838 {
3839 {
3840 .eraseblocks = {
3841 {32 * 1024, 1},
3842 {16 * 1024, 1},
3843 {8 * 1024, 1},
3844 {4 * 1024, 2},
3845 },
3846 .block_erase = spi_block_erase_d8,
3847 }, {
3848 .eraseblocks = { {64 * 1024, 1} },
3849 .block_erase = spi_block_erase_c7,
3850 }
3851 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003852 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003853 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003854 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003855 .read = spi_chip_read, /* Fast read (0x0B) supported */
3856 .voltage = {2700, 3600},
3857 },
3858
3859 {
3860 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003861 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003862 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003863 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003864 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003865 .total_size = 128,
3866 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003867 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003868 .tested = TEST_UNTESTED,
3869 .probe = probe_spi_rdid,
3870 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003871 .block_erasers =
3872 {
3873 {
3874 .eraseblocks = {
3875 {4 * 1024, 2},
3876 {8 * 1024, 1},
3877 {16 * 1024, 1},
3878 {32 * 1024, 3},
3879 },
3880 .block_erase = spi_block_erase_d8,
3881 }, {
3882 .eraseblocks = { {128 * 1024, 1} },
3883 .block_erase = spi_block_erase_c7,
3884 }
3885 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003886 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003887 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003888 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003889 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003890 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003891 },
3892
3893 {
3894 .vendor = "Eon",
3895 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003896 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003897 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003898 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003899 .total_size = 128,
3900 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003901 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003902 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003903 .probe = probe_spi_rdid,
3904 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003905 .block_erasers =
3906 {
3907 {
3908 .eraseblocks = {
3909 {32 * 1024, 3},
3910 {16 * 1024, 1},
3911 {8 * 1024, 1},
3912 {4 * 1024, 2},
3913 },
3914 .block_erase = spi_block_erase_d8,
3915 }, {
3916 .eraseblocks = { {128 * 1024, 1} },
3917 .block_erase = spi_block_erase_c7,
3918 }
3919 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003920 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003921 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003922 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003923 .read = spi_chip_read, /* Fast read (0x0B) supported */
3924 .voltage = {2700, 3600},
3925 },
3926
3927 {
3928 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003929 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003930 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003931 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003932 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003933 .total_size = 2048,
3934 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003935 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003936 .tested = TEST_UNTESTED,
3937 .probe = probe_spi_rdid,
3938 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003939 .block_erasers =
3940 {
3941 {
3942 .eraseblocks = {
3943 {4 * 1024, 2},
3944 {8 * 1024, 1},
3945 {16 * 1024, 1},
3946 {32 * 1024, 1},
3947 {64 * 1024, 31},
3948 },
3949 .block_erase = spi_block_erase_d8,
3950 }, {
3951 .eraseblocks = { {2 * 1024 * 1024, 1} },
3952 .block_erase = spi_block_erase_c7,
3953 }
3954 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003955 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003956 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003957 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003958 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003959 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003960 },
3961
3962 {
3963 .vendor = "Eon",
3964 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003965 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003966 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003967 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003968 .total_size = 2048,
3969 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003970 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003971 .tested = TEST_UNTESTED,
3972 .probe = probe_spi_rdid,
3973 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003974 .block_erasers =
3975 {
3976 {
3977 .eraseblocks = {
3978 {64 * 1024, 31},
3979 {32 * 1024, 1},
3980 {16 * 1024, 1},
3981 {8 * 1024, 1},
3982 {4 * 1024, 2},
3983 },
3984 .block_erase = spi_block_erase_d8,
3985 }, {
3986 .eraseblocks = { {2 * 1024 * 1024, 1} },
3987 .block_erase = spi_block_erase_c7,
3988 }
3989 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003990 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003991 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003992 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003993 .read = spi_chip_read, /* Fast read (0x0B) supported */
3994 .voltage = {2700, 3600},
3995 },
3996
3997 {
3998 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003999 .name = "EN25B20",
Stefan Taunerb175af52015-01-24 15:06:27 +00004000 .bustype = BUS_SPI,
4001 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004002 .model_id = EON_EN25B20,
4003 .total_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004004 .page_size = 256,
4005 .feature_bits = FEATURE_WRSR_WREN,
4006 .tested = TEST_UNTESTED,
4007 .probe = probe_spi_rdid,
4008 .probe_timing = TIMING_ZERO,
4009 .block_erasers =
4010 {
4011 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004012 .eraseblocks = {
4013 {4 * 1024, 2},
4014 {8 * 1024, 1},
4015 {16 * 1024, 1},
4016 {32 * 1024, 1},
4017 {64 * 1024, 3}
4018 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004019 .block_erase = spi_block_erase_d8,
4020 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004021 .eraseblocks = { {256 * 1024, 1} },
4022 .block_erase = spi_block_erase_c7,
4023 }
4024 },
4025 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4026 .unlock = spi_disable_blockprotect,
4027 .write = spi_chip_write_256,
4028 .read = spi_chip_read, /* Fast read (0x0B) supported */
4029 .voltage = {2700, 3600},
4030 },
4031
4032 {
4033 .vendor = "Eon",
4034 .name = "EN25B20T",
4035 .bustype = BUS_SPI,
4036 .manufacture_id = EON_ID_NOPREFIX,
4037 .model_id = EON_EN25B20,
4038 .total_size = 256,
4039 .page_size = 256,
4040 .feature_bits = FEATURE_WRSR_WREN,
4041 .tested = TEST_UNTESTED,
4042 .probe = probe_spi_rdid,
4043 .probe_timing = TIMING_ZERO,
4044 .block_erasers =
4045 {
4046 {
4047 .eraseblocks = {
4048 {64 * 1024, 3},
4049 {32 * 1024, 1},
4050 {16 * 1024, 1},
4051 {8 * 1024, 1},
4052 {4 * 1024, 2},
4053 },
4054 .block_erase = spi_block_erase_d8,
4055 }, {
4056 .eraseblocks = { {256 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004057 .block_erase = spi_block_erase_c7,
4058 }
4059 },
4060 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4061 .unlock = spi_disable_blockprotect,
4062 .write = spi_chip_write_256,
4063 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004064 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004065 },
4066
4067 {
4068 .vendor = "Eon",
4069 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004070 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004071 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004072 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004073 .total_size = 4096,
4074 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004075 /* OTP: 512B total; enter 0x3A */
4076 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004077 .tested = TEST_UNTESTED,
4078 .probe = probe_spi_rdid,
4079 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004080 .block_erasers =
4081 {
4082 {
4083 .eraseblocks = {
4084 {4 * 1024, 2},
4085 {8 * 1024, 1},
4086 {16 * 1024, 1},
4087 {32 * 1024, 1},
4088 {64 * 1024, 63},
4089 },
4090 .block_erase = spi_block_erase_d8,
4091 }, {
4092 .eraseblocks = { {4 * 1024 * 1024, 1} },
4093 .block_erase = spi_block_erase_c7,
4094 }
4095 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004096 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004097 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004098 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004099 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004100 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004101 },
4102
4103 {
4104 .vendor = "Eon",
4105 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004106 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004107 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004108 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004109 .total_size = 4096,
4110 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004111 /* OTP: 512B total; enter 0x3A */
4112 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004113 .tested = TEST_UNTESTED,
4114 .probe = probe_spi_rdid,
4115 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004116 .block_erasers =
4117 {
4118 {
4119 .eraseblocks = {
4120 {64 * 1024, 63},
4121 {32 * 1024, 1},
4122 {16 * 1024, 1},
4123 {8 * 1024, 1},
4124 {4 * 1024, 2},
4125 },
4126 .block_erase = spi_block_erase_d8,
4127 }, {
4128 .eraseblocks = { {4 * 1024 * 1024, 1} },
4129 .block_erase = spi_block_erase_c7,
4130 }
4131 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004132 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004133 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004134 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004135 .read = spi_chip_read, /* Fast read (0x0B) supported */
4136 .voltage = {2700, 3600},
4137 },
4138
4139 {
4140 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004141 .name = "EN25B40",
Stefan Taunerb175af52015-01-24 15:06:27 +00004142 .bustype = BUS_SPI,
4143 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004144 .model_id = EON_EN25B40,
4145 .total_size = 512,
Stefan Taunerb175af52015-01-24 15:06:27 +00004146 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004147 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004148 .tested = TEST_UNTESTED,
4149 .probe = probe_spi_rdid,
4150 .probe_timing = TIMING_ZERO,
4151 .block_erasers =
4152 {
4153 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004154 .eraseblocks = {
4155 {4 * 1024, 2},
4156 {8 * 1024, 1},
4157 {16 * 1024, 1},
4158 {32 * 1024, 1},
4159 {64 * 1024, 7}
4160 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004161 .block_erase = spi_block_erase_d8,
4162 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004163 .eraseblocks = { {512 * 1024, 1} },
4164 .block_erase = spi_block_erase_c7,
4165 }
4166 },
4167 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4168 .unlock = spi_disable_blockprotect,
4169 .write = spi_chip_write_256,
4170 .read = spi_chip_read, /* Fast read (0x0B) supported */
4171 .voltage = {2700, 3600},
4172 },
4173
4174 {
4175 .vendor = "Eon",
4176 .name = "EN25B40T",
4177 .bustype = BUS_SPI,
4178 .manufacture_id = EON_ID_NOPREFIX,
4179 .model_id = EON_EN25B40,
4180 .total_size = 512,
4181 .page_size = 256,
4182 .feature_bits = FEATURE_WRSR_WREN,
4183 .tested = TEST_UNTESTED,
4184 .probe = probe_spi_rdid,
4185 .probe_timing = TIMING_ZERO,
4186 .block_erasers =
4187 {
4188 {
4189 .eraseblocks = {
4190 {64 * 1024, 7},
4191 {32 * 1024, 1},
4192 {16 * 1024, 1},
4193 {8 * 1024, 1},
4194 {4 * 1024, 2},
4195 },
4196 .block_erase = spi_block_erase_d8,
4197 }, {
4198 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004199 .block_erase = spi_block_erase_c7,
4200 }
4201 },
4202 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4203 .unlock = spi_disable_blockprotect,
4204 .write = spi_chip_write_256,
4205 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004206 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004207 },
4208
4209 {
4210 .vendor = "Eon",
4211 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004212 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004213 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004214 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004215 .total_size = 8192,
4216 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004217 /* OTP: 512B total; enter 0x3A */
4218 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004219 .tested = TEST_UNTESTED,
4220 .probe = probe_spi_rdid,
4221 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004222 .block_erasers =
4223 {
4224 {
4225 .eraseblocks = {
4226 {4 * 1024, 2},
4227 {8 * 1024, 1},
4228 {16 * 1024, 1},
4229 {32 * 1024, 1},
4230 {64 * 1024, 127},
4231 },
4232 .block_erase = spi_block_erase_d8,
4233 }, {
4234 .eraseblocks = { {8 * 1024 * 1024, 1} },
4235 .block_erase = spi_block_erase_c7,
4236 }
4237 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004238 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004239 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004240 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004241 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004242 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004243 },
4244
4245 {
4246 .vendor = "Eon",
4247 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004248 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004249 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004250 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004251 .total_size = 8192,
4252 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004253 /* OTP: 512B total; enter 0x3A */
4254 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004255 .tested = TEST_UNTESTED,
4256 .probe = probe_spi_rdid,
4257 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004258 .block_erasers =
4259 {
4260 {
4261 .eraseblocks = {
4262 {64 * 1024, 127},
4263 {32 * 1024, 1},
4264 {16 * 1024, 1},
4265 {8 * 1024, 1},
4266 {4 * 1024, 2},
4267 },
4268 .block_erase = spi_block_erase_d8,
4269 }, {
4270 .eraseblocks = { {8 * 1024 * 1024, 1} },
4271 .block_erase = spi_block_erase_c7,
4272 }
4273 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004274 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004275 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004276 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004277 .read = spi_chip_read, /* Fast read (0x0B) supported */
4278 .voltage = {2700, 3600},
4279 },
4280
4281 {
4282 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004283 .name = "EN25B80",
Stefan Taunerb175af52015-01-24 15:06:27 +00004284 .bustype = BUS_SPI,
4285 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004286 .model_id = EON_EN25B80,
4287 .total_size = 1024,
Stefan Taunerb175af52015-01-24 15:06:27 +00004288 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004289 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004290 .tested = TEST_UNTESTED,
4291 .probe = probe_spi_rdid,
4292 .probe_timing = TIMING_ZERO,
4293 .block_erasers =
4294 {
4295 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004296 .eraseblocks = {
4297 {4 * 1024, 2},
4298 {8 * 1024, 1},
4299 {16 * 1024, 1},
4300 {32 * 1024, 1},
4301 {64 * 1024, 15}
4302 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004303 .block_erase = spi_block_erase_d8,
4304 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004305 .eraseblocks = { {1024 * 1024, 1} },
4306 .block_erase = spi_block_erase_c7,
4307 }
4308 },
4309 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4310 .unlock = spi_disable_blockprotect,
4311 .write = spi_chip_write_256,
4312 .read = spi_chip_read, /* Fast read (0x0B) supported */
4313 .voltage = {2700, 3600},
4314 },
4315
4316 {
4317 .vendor = "Eon",
4318 .name = "EN25B80T",
4319 .bustype = BUS_SPI,
4320 .manufacture_id = EON_ID_NOPREFIX,
4321 .model_id = EON_EN25B80,
4322 .total_size = 1024,
4323 .page_size = 256,
4324 .feature_bits = FEATURE_WRSR_WREN,
4325 .tested = TEST_UNTESTED,
4326 .probe = probe_spi_rdid,
4327 .probe_timing = TIMING_ZERO,
4328 .block_erasers =
4329 {
4330 {
4331 .eraseblocks = {
4332 {64 * 1024, 15},
4333 {32 * 1024, 1},
4334 {16 * 1024, 1},
4335 {8 * 1024, 1},
4336 {4 * 1024, 2},
4337 },
4338 .block_erase = spi_block_erase_d8,
4339 }, {
4340 .eraseblocks = { {1024 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004341 .block_erase = spi_block_erase_c7,
4342 }
4343 },
4344 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4345 .unlock = spi_disable_blockprotect,
4346 .write = spi_chip_write_256,
4347 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004348 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004349 },
4350
4351 {
4352 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004353 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004354 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004355 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004356 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004357 .total_size = 64,
4358 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004359 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004360 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004361 .probe = probe_spi_rdid,
4362 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004363 .block_erasers =
4364 {
4365 {
4366 .eraseblocks = { {4 * 1024, 16} },
4367 .block_erase = spi_block_erase_20,
4368 }, {
4369 .eraseblocks = { {32 * 1024, 2} },
4370 .block_erase = spi_block_erase_d8,
4371 }, {
4372 .eraseblocks = { {32 * 1024, 2} },
4373 .block_erase = spi_block_erase_52,
4374 }, {
4375 .eraseblocks = { {64 * 1024, 1} },
4376 .block_erase = spi_block_erase_60,
4377 }, {
4378 .eraseblocks = { {64 * 1024, 1} },
4379 .block_erase = spi_block_erase_c7,
4380 }
4381 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004382 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004383 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004384 .write = spi_chip_write_256,
4385 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004386 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004387 },
4388
4389 {
4390 .vendor = "Eon",
4391 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004392 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004393 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004394 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004395 .total_size = 128,
4396 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004397 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004398 .tested = TEST_UNTESTED,
4399 .probe = probe_spi_rdid,
4400 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004401 .block_erasers =
4402 {
4403 {
4404 .eraseblocks = { {4 * 1024, 32} },
4405 .block_erase = spi_block_erase_20,
4406 }, {
4407 .eraseblocks = { {32 * 1024, 4} },
4408 .block_erase = spi_block_erase_d8,
4409 }, {
4410 .eraseblocks = { {32 * 1024, 4} },
4411 .block_erase = spi_block_erase_52,
4412 }, {
4413 .eraseblocks = { {128 * 1024, 1} },
4414 .block_erase = spi_block_erase_60,
4415 }, {
4416 .eraseblocks = { {128 * 1024, 1} },
4417 .block_erase = spi_block_erase_c7,
4418 }
4419 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004420 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004421 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004422 .write = spi_chip_write_256,
4423 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004424 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004425 },
4426
4427 {
4428 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004429 .name = "EN25F16",
4430 .bustype = BUS_SPI,
4431 .manufacture_id = EON_ID_NOPREFIX,
4432 .model_id = EON_EN25F16,
4433 .total_size = 2048,
4434 .page_size = 256,
4435 .feature_bits = FEATURE_WRSR_WREN,
4436 .tested = TEST_OK_PREW,
4437 .probe = probe_spi_rdid,
4438 .probe_timing = TIMING_ZERO,
4439 .block_erasers =
4440 {
4441 {
4442 .eraseblocks = { {4 * 1024, 512} },
4443 .block_erase = spi_block_erase_20,
4444 }, {
4445 .eraseblocks = { {64 * 1024, 32} },
4446 .block_erase = spi_block_erase_d8,
4447 }, {
4448 .eraseblocks = { {2 * 1024 * 1024, 1} },
4449 .block_erase = spi_block_erase_60,
4450 }, {
4451 .eraseblocks = { {2 * 1024 * 1024, 1} },
4452 .block_erase = spi_block_erase_c7,
4453 }
4454 },
4455 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4456 .unlock = spi_disable_blockprotect,
4457 .write = spi_chip_write_256,
4458 .read = spi_chip_read,
4459 .voltage = {2700, 3600},
4460 },
4461
4462 {
4463 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004464 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004465 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004466 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004467 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004468 .total_size = 256,
4469 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004470 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004471 .tested = TEST_UNTESTED,
4472 .probe = probe_spi_rdid,
4473 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004474 .block_erasers =
4475 {
4476 {
4477 .eraseblocks = { {4 * 1024, 64} },
4478 .block_erase = spi_block_erase_20,
4479 }, {
4480 .eraseblocks = { {64 * 1024, 4} },
4481 .block_erase = spi_block_erase_d8,
4482 }, {
4483 .eraseblocks = { {64 * 1024, 4} },
4484 .block_erase = spi_block_erase_52,
4485 }, {
4486 .eraseblocks = { {256 * 1024, 1} },
4487 .block_erase = spi_block_erase_60,
4488 }, {
4489 .eraseblocks = { {256 * 1024, 1} },
4490 .block_erase = spi_block_erase_c7,
4491 }
4492 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004493 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004494 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004495 .write = spi_chip_write_256,
4496 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004497 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004498 },
4499
4500 {
4501 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004502 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004503 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004504 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004505 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004506 .total_size = 4096,
4507 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004508 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004509 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004510 .probe = probe_spi_rdid,
4511 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004512 .block_erasers =
4513 {
4514 {
4515 .eraseblocks = { {4 * 1024, 1024} },
4516 .block_erase = spi_block_erase_20,
4517 }, {
4518 .eraseblocks = { {64 * 1024, 64} },
4519 .block_erase = spi_block_erase_d8,
4520 }, {
4521 .eraseblocks = { {4 * 1024 * 1024, 1} },
4522 .block_erase = spi_block_erase_60,
4523 }, {
4524 .eraseblocks = { {4 * 1024 * 1024, 1} },
4525 .block_erase = spi_block_erase_c7,
4526 }
4527 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004528 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004529 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004530 .write = spi_chip_write_256,
4531 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004532 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004533 },
4534
4535 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004536 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004537 .name = "EN25F40",
4538 .bustype = BUS_SPI,
4539 .manufacture_id = EON_ID_NOPREFIX,
4540 .model_id = EON_EN25F40,
4541 .total_size = 512,
4542 .page_size = 256,
4543 .feature_bits = FEATURE_WRSR_WREN,
4544 .tested = TEST_OK_PREW,
4545 .probe = probe_spi_rdid,
4546 .probe_timing = TIMING_ZERO,
4547 .block_erasers =
4548 {
4549 {
4550 .eraseblocks = { {4 * 1024, 128} },
4551 .block_erase = spi_block_erase_20,
4552 }, {
4553 .eraseblocks = { {64 * 1024, 8} },
4554 .block_erase = spi_block_erase_d8,
4555 }, {
4556 .eraseblocks = { {512 * 1024, 1} },
4557 .block_erase = spi_block_erase_60,
4558 }, {
4559 .eraseblocks = { {512 * 1024, 1} },
4560 .block_erase = spi_block_erase_c7,
4561 },
4562 },
4563 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4564 .unlock = spi_disable_blockprotect,
4565 .write = spi_chip_write_256,
4566 .read = spi_chip_read,
4567 .voltage = {2700, 3600},
4568 },
4569
4570 {
4571 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004572 .name = "EN25F64",
4573 .bustype = BUS_SPI,
4574 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004575 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004576 .total_size = 8192,
4577 .page_size = 256,
4578 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004579 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004580 .probe = probe_spi_rdid,
4581 .probe_timing = TIMING_ZERO,
4582 .block_erasers =
4583 {
4584 {
4585 .eraseblocks = { {4 * 1024, 2048} },
4586 .block_erase = spi_block_erase_20,
4587 }, {
4588 .eraseblocks = { {64 * 1024, 128} },
4589 .block_erase = spi_block_erase_d8,
4590 }, {
4591 .eraseblocks = { {8 * 1024 * 1024, 1} },
4592 .block_erase = spi_block_erase_60,
4593 }, {
4594 .eraseblocks = { {8 * 1024 * 1024, 1} },
4595 .block_erase = spi_block_erase_c7,
4596 }
4597 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004598 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004599 .unlock = spi_disable_blockprotect,
4600 .write = spi_chip_write_256,
4601 .read = spi_chip_read,
4602 .voltage = {2700, 3600},
4603 },
4604
4605 {
4606 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004607 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004608 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004609 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004610 .model_id = EON_EN25F80,
David Hendricks6d715302011-07-24 22:21:57 +00004611 .total_size = 1024,
4612 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004613 .feature_bits = FEATURE_WRSR_WREN,
4614 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004615 .probe = probe_spi_rdid,
4616 .probe_timing = TIMING_ZERO,
4617 .block_erasers =
4618 {
4619 {
4620 .eraseblocks = { {4 * 1024, 256} },
4621 .block_erase = spi_block_erase_20,
4622 }, {
4623 .eraseblocks = { {64 * 1024, 16} },
4624 .block_erase = spi_block_erase_d8,
4625 }, {
4626 .eraseblocks = { {1024 * 1024, 1} },
4627 .block_erase = spi_block_erase_60,
4628 }, {
4629 .eraseblocks = { {1024 * 1024, 1} },
4630 .block_erase = spi_block_erase_c7,
4631 }
4632 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004633 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004634 .unlock = spi_disable_blockprotect,
4635 .write = spi_chip_write_256,
4636 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004637 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004638 },
4639
4640 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004641 .vendor = "Eon",
4642 .name = "EN25P05",
4643 .bustype = BUS_SPI,
4644 .manufacture_id = EON_ID_NOPREFIX,
4645 .model_id = EON_EN25B05,
4646 .total_size = 64,
4647 .page_size = 256,
4648 .feature_bits = FEATURE_WRSR_WREN,
4649 .tested = TEST_UNTESTED,
4650 .probe = probe_spi_rdid,
4651 .probe_timing = TIMING_ZERO,
4652 .block_erasers =
4653 {
4654 {
4655 .eraseblocks = {
4656 {32 * 1024, 2} },
4657 .block_erase = spi_block_erase_d8,
4658 }, {
4659 .eraseblocks = { {64 * 1024, 1} },
4660 .block_erase = spi_block_erase_c7,
4661 }
4662 },
4663 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4664 .unlock = spi_disable_blockprotect,
4665 .write = spi_chip_write_256,
4666 .read = spi_chip_read, /* Fast read (0x0B) supported */
4667 .voltage = {2700, 3600},
4668 },
4669
4670 {
4671 .vendor = "Eon",
4672 .name = "EN25P10",
4673 .bustype = BUS_SPI,
4674 .manufacture_id = EON_ID_NOPREFIX,
4675 .model_id = EON_EN25B10,
4676 .total_size = 128,
4677 .page_size = 256,
4678 .feature_bits = FEATURE_WRSR_WREN,
4679 .tested = TEST_UNTESTED,
4680 .probe = probe_spi_rdid,
4681 .probe_timing = TIMING_ZERO,
4682 .block_erasers =
4683 {
4684 {
4685 .eraseblocks = { {32 * 1024, 4} },
4686 .block_erase = spi_block_erase_d8,
4687 }, {
4688 .eraseblocks = { {128 * 1024, 1} },
4689 .block_erase = spi_block_erase_c7,
4690 }
4691 },
4692 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4693 .unlock = spi_disable_blockprotect,
4694 .write = spi_chip_write_256,
4695 .read = spi_chip_read, /* Fast read (0x0B) supported */
4696 .voltage = {2700, 3600},
4697 },
4698
4699 {
4700 .vendor = "Eon",
4701 .name = "EN25P16",
4702 .bustype = BUS_SPI,
4703 .manufacture_id = EON_ID_NOPREFIX,
4704 .model_id = EON_EN25B16,
4705 .total_size = 2048,
4706 .page_size = 256,
4707 .feature_bits = FEATURE_WRSR_WREN,
4708 .tested = TEST_UNTESTED,
4709 .probe = probe_spi_rdid,
4710 .probe_timing = TIMING_ZERO,
4711 .block_erasers =
4712 {
4713 {
4714 .eraseblocks = { {64 * 1024, 32} },
4715 .block_erase = spi_block_erase_d8,
4716 }, {
4717 .eraseblocks = { {2 * 1024 * 1024, 1} },
4718 .block_erase = spi_block_erase_c7,
4719 }
4720 },
4721 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4722 .unlock = spi_disable_blockprotect,
4723 .write = spi_chip_write_256,
4724 .read = spi_chip_read, /* Fast read (0x0B) supported */
4725 .voltage = {2700, 3600},
4726 },
4727
4728 {
4729 .vendor = "Eon",
4730 .name = "EN25P20",
4731 .bustype = BUS_SPI,
4732 .manufacture_id = EON_ID_NOPREFIX,
4733 .model_id = EON_EN25B20,
4734 .total_size = 256,
4735 .page_size = 256,
4736 .feature_bits = FEATURE_WRSR_WREN,
4737 .tested = TEST_UNTESTED,
4738 .probe = probe_spi_rdid,
4739 .probe_timing = TIMING_ZERO,
4740 .block_erasers =
4741 {
4742 {
4743 .eraseblocks = { {64 * 1024, 4} },
4744 .block_erase = spi_block_erase_d8,
4745 }, {
4746 .eraseblocks = { {256 * 1024, 1} },
4747 .block_erase = spi_block_erase_c7,
4748 }
4749 },
4750 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4751 .unlock = spi_disable_blockprotect,
4752 .write = spi_chip_write_256,
4753 .read = spi_chip_read, /* Fast read (0x0B) supported */
4754 .voltage = {2700, 3600},
4755 },
4756
4757 {
4758 .vendor = "Eon",
4759 .name = "EN25P32", /* Uniform version of EN25B32 */
4760 .bustype = BUS_SPI,
4761 .manufacture_id = EON_ID_NOPREFIX,
4762 .model_id = EON_EN25B32,
4763 .total_size = 4096,
4764 .page_size = 256,
4765 /* OTP: 512B total; enter 0x3A */
4766 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4767 .tested = TEST_UNTESTED,
4768 .probe = probe_spi_rdid,
4769 .probe_timing = TIMING_ZERO,
4770 .block_erasers =
4771 {
4772 {
4773 .eraseblocks = { {64 * 1024, 64} },
4774 .block_erase = spi_block_erase_d8,
4775 }, {
4776 .eraseblocks = { {4 * 1024 * 1024, 1} },
4777 .block_erase = spi_block_erase_c7,
4778 }
4779 },
4780 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4781 .unlock = spi_disable_blockprotect,
4782 .write = spi_chip_write_256,
4783 .read = spi_chip_read, /* Fast read (0x0B) supported */
4784 .voltage = {2700, 3600},
4785 },
4786
4787 {
4788 .vendor = "Eon",
4789 .name = "EN25P40",
4790 .bustype = BUS_SPI,
4791 .manufacture_id = EON_ID_NOPREFIX,
4792 .model_id = EON_EN25B40,
4793 .total_size = 512,
4794 .page_size = 256,
4795 .feature_bits = FEATURE_WRSR_WREN,
4796 .tested = TEST_UNTESTED,
4797 .probe = probe_spi_rdid,
4798 .probe_timing = TIMING_ZERO,
4799 .block_erasers =
4800 {
4801 {
4802 .eraseblocks = { {64 * 1024, 8} },
4803 .block_erase = spi_block_erase_d8,
4804 }, {
4805 .eraseblocks = { {512 * 1024, 1} },
4806 .block_erase = spi_block_erase_c7,
4807 }
4808 },
4809 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4810 .unlock = spi_disable_blockprotect,
4811 .write = spi_chip_write_256,
4812 .read = spi_chip_read, /* Fast read (0x0B) supported */
4813 .voltage = {2700, 3600},
4814 },
4815
4816 {
4817 .vendor = "Eon",
4818 .name = "EN25P64",
4819 .bustype = BUS_SPI,
4820 .manufacture_id = EON_ID_NOPREFIX,
4821 .model_id = EON_EN25B64,
4822 .total_size = 8192,
4823 .page_size = 256,
4824 /* OTP: 512B total; enter 0x3A */
4825 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4826 .tested = TEST_UNTESTED,
4827 .probe = probe_spi_rdid,
4828 .probe_timing = TIMING_ZERO,
4829 .block_erasers =
4830 {
4831 {
4832 .eraseblocks = { {64 * 1024, 128} },
4833 .block_erase = spi_block_erase_d8,
4834 }, {
4835 .eraseblocks = { {8 * 1024 * 1024, 1} },
4836 .block_erase = spi_block_erase_c7,
4837 }
4838 },
4839 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4840 .unlock = spi_disable_blockprotect,
4841 .write = spi_chip_write_256,
4842 .read = spi_chip_read, /* Fast read (0x0B) supported */
4843 .voltage = {2700, 3600},
4844 },
4845
4846 {
4847 .vendor = "Eon",
4848 .name = "EN25P80",
4849 .bustype = BUS_SPI,
4850 .manufacture_id = EON_ID_NOPREFIX,
4851 .model_id = EON_EN25B80,
4852 .total_size = 1024,
4853 .page_size = 256,
4854 .feature_bits = FEATURE_WRSR_WREN,
4855 .tested = TEST_UNTESTED,
4856 .probe = probe_spi_rdid,
4857 .probe_timing = TIMING_ZERO,
4858 .block_erasers =
4859 {
4860 {
4861 .eraseblocks = { {64 * 1024, 16} },
4862 .block_erase = spi_block_erase_d8,
4863 }, {
4864 .eraseblocks = { {1024 * 1024, 1} },
4865 .block_erase = spi_block_erase_c7,
4866 }
4867 },
4868 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4869 .unlock = spi_disable_blockprotect,
4870 .write = spi_chip_write_256,
4871 .read = spi_chip_read, /* Fast read (0x0B) supported */
4872 .voltage = {2700, 3600},
4873 },
4874
4875 {
4876 .vendor = "Eon",
4877 .name = "EN25Q128",
4878 .bustype = BUS_SPI,
4879 .manufacture_id = EON_ID_NOPREFIX,
4880 .model_id = EON_EN25Q128,
4881 .total_size = 16384,
4882 .page_size = 256,
4883 /* OTP: 512B total; enter 0x3A */
4884 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4885 .tested = TEST_OK_PREW,
4886 .probe = probe_spi_rdid,
4887 .probe_timing = TIMING_ZERO,
4888 .block_erasers =
4889 {
4890 {
4891 .eraseblocks = { {4 * 1024, 4096} },
4892 .block_erase = spi_block_erase_20,
4893 }, {
4894 .eraseblocks = { {64 * 1024, 256} },
4895 .block_erase = spi_block_erase_d8,
4896 }, {
4897 .eraseblocks = { {16 * 1024 * 1024, 1} },
4898 .block_erase = spi_block_erase_60,
4899 }, {
4900 .eraseblocks = { {16 * 1024 * 1024, 1} },
4901 .block_erase = spi_block_erase_c7,
4902 }
4903 },
4904 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4905 .unlock = spi_disable_blockprotect,
4906 .write = spi_chip_write_256,
4907 .read = spi_chip_read,
4908 },
4909
4910 {
David Hendricks6d715302011-07-24 22:21:57 +00004911 /* Note: EN25D16 is an evil twin which shares the model ID
4912 but has different write protection capabilities */
4913 .vendor = "Eon",
4914 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004915 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004916 .manufacture_id = EON_ID_NOPREFIX,
4917 .model_id = EON_EN25Q16,
4918 .total_size = 2048,
4919 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004920 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4921 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004922 .tested = TEST_UNTESTED,
4923 .probe = probe_spi_rdid,
4924 .probe_timing = TIMING_ZERO,
4925 .block_erasers =
4926 {
4927 {
4928 .eraseblocks = { {4 * 1024, 512} },
4929 .block_erase = spi_block_erase_20,
4930 }, {
4931 .eraseblocks = { {64 * 1024, 32} },
4932 .block_erase = spi_block_erase_d8,
4933 }, {
4934 /* not supported by Q16 version */
4935 .eraseblocks = { {64 * 1024, 32} },
4936 .block_erase = spi_block_erase_52,
4937 }, {
4938 .eraseblocks = { {2 * 1024 * 1024, 1} },
4939 .block_erase = spi_block_erase_60,
4940 }, {
4941 .eraseblocks = { {2 * 1024 * 1024, 1} },
4942 .block_erase = spi_block_erase_c7,
4943 }
4944 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004945 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004946 .unlock = spi_disable_blockprotect,
4947 .write = spi_chip_write_256,
4948 .read = spi_chip_read,
4949 .voltage = {2700, 3600},
4950 },
4951
4952 {
4953 .vendor = "Eon",
4954 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004955 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004956 .manufacture_id = EON_ID_NOPREFIX,
4957 .model_id = EON_EN25Q32,
4958 .total_size = 4096,
4959 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004960 /* OTP: 512B total; enter 0x3A */
4961 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004962 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004963 .probe = probe_spi_rdid,
4964 .probe_timing = TIMING_ZERO,
4965 .block_erasers =
4966 {
4967 {
4968 .eraseblocks = { {4 * 1024, 1024} },
4969 .block_erase = spi_block_erase_20,
4970 }, {
4971 .eraseblocks = { {64 * 1024, 64} },
4972 .block_erase = spi_block_erase_d8,
4973 }, {
4974 .eraseblocks = { {4 * 1024 * 1024, 1} },
4975 .block_erase = spi_block_erase_60,
4976 }, {
4977 .eraseblocks = { {4 * 1024 * 1024, 1} },
4978 .block_erase = spi_block_erase_c7,
4979 }
4980 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004981 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004982 .unlock = spi_disable_blockprotect,
4983 .write = spi_chip_write_256,
4984 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004985 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004986 },
4987
4988 {
4989 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004990 .name = "EN25Q40",
4991 .bustype = BUS_SPI,
4992 .manufacture_id = EON_ID_NOPREFIX,
4993 .model_id = EON_EN25Q40,
4994 .total_size = 512,
4995 .page_size = 256,
4996 /* OTP: 256B total; enter 0x3A */
4997 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4998 .tested = TEST_UNTESTED,
4999 .probe = probe_spi_rdid,
5000 .probe_timing = TIMING_ZERO,
5001 .block_erasers =
5002 {
5003 {
5004 .eraseblocks = { {4 * 1024, 128} },
5005 .block_erase = spi_block_erase_20,
5006 }, {
5007 .eraseblocks = { {64 * 1024, 8} },
5008 .block_erase = spi_block_erase_d8,
5009 }, {
5010 .eraseblocks = { {512 * 1024, 1} },
5011 .block_erase = spi_block_erase_60,
5012 }, {
5013 .eraseblocks = { {512 * 1024, 1} },
5014 .block_erase = spi_block_erase_c7,
5015 }
5016 },
5017 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5018 .unlock = spi_disable_blockprotect,
5019 .write = spi_chip_write_256,
5020 .read = spi_chip_read,
5021 .voltage = {2700, 3600},
5022 },
5023
5024 {
5025 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00005026 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005027 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005028 .manufacture_id = EON_ID_NOPREFIX,
5029 .model_id = EON_EN25Q64,
5030 .total_size = 8192,
5031 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005032 /* OTP: 512B total; enter 0x3A */
5033 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005034 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005035 .probe = probe_spi_rdid,
5036 .probe_timing = TIMING_ZERO,
5037 .block_erasers =
5038 {
5039 {
5040 .eraseblocks = { {4 * 1024, 2048} },
5041 .block_erase = spi_block_erase_20,
5042 }, {
5043 .eraseblocks = { {64 * 1024, 128} },
5044 .block_erase = spi_block_erase_d8,
5045 }, {
5046 .eraseblocks = { {8 * 1024 * 1024, 1} },
5047 .block_erase = spi_block_erase_60,
5048 }, {
5049 .eraseblocks = { {8 * 1024 * 1024, 1} },
5050 .block_erase = spi_block_erase_c7,
5051 }
5052 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005053 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00005054 .unlock = spi_disable_blockprotect,
5055 .write = spi_chip_write_256,
5056 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00005057 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005058 },
5059
5060 {
5061 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005062 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005063 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005064 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005065 .model_id = EON_EN25Q80,
5066 .total_size = 1024,
5067 .page_size = 256,
5068 /* OTP: 256B total; enter 0x3A */
5069 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5070 .tested = TEST_UNTESTED,
5071 .probe = probe_spi_rdid,
5072 .probe_timing = TIMING_ZERO,
5073 .block_erasers =
5074 {
5075 {
5076 .eraseblocks = { {4 * 1024, 256} },
5077 .block_erase = spi_block_erase_20,
5078 }, {
5079 .eraseblocks = { {64 * 1024, 16} },
5080 .block_erase = spi_block_erase_d8,
5081 }, {
5082 .eraseblocks = { {1024 * 1024, 1} },
5083 .block_erase = spi_block_erase_60,
5084 }, {
5085 .eraseblocks = { {1024 * 1024, 1} },
5086 .block_erase = spi_block_erase_c7,
5087 }
5088 },
5089 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5090 .unlock = spi_disable_blockprotect,
5091 .write = spi_chip_write_256,
5092 .read = spi_chip_read,
5093 .voltage = {2700, 3600},
5094 },
5095
5096 {
5097 .vendor = "Eon",
5098 .name = "EN25QH128",
5099 .bustype = BUS_SPI,
5100 .manufacture_id = EON_ID_NOPREFIX,
5101 .model_id = EON_EN25QH128,
David Hendricks6d715302011-07-24 22:21:57 +00005102 .total_size = 16384,
5103 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005104 /* supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00005105 /* OTP: 512B total; enter 0x3A */
Alan Green1f9cc7d2019-07-01 11:10:45 +10005106 /* QPI enable 0x38, disable 0xFF */
5107 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Tim Chenbfe149a2020-07-06 14:59:21 +08005108 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005109 .probe = probe_spi_rdid,
5110 .probe_timing = TIMING_ZERO,
5111 .block_erasers =
5112 {
5113 {
5114 .eraseblocks = { {4 * 1024, 4096} },
5115 .block_erase = spi_block_erase_20,
5116 }, {
5117 .eraseblocks = { {64 * 1024, 256} },
5118 .block_erase = spi_block_erase_d8,
5119 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005120 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005121 .block_erase = spi_block_erase_60,
5122 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005123 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005124 .block_erase = spi_block_erase_c7,
5125 }
5126 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005127 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5128 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005129 .write = spi_chip_write_256,
5130 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005131 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005132 },
5133
5134 {
5135 .vendor = "Eon",
5136 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005137 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005138 .manufacture_id = EON_ID_NOPREFIX,
5139 .model_id = EON_EN25QH16,
5140 .total_size = 2048,
5141 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005142 /* supports SFDP */
5143 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005144 /* QPI enable 0x38, disable 0xFF */
5145 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00005146 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005147 .probe = probe_spi_rdid,
5148 .probe_timing = TIMING_ZERO,
5149 .block_erasers =
5150 {
5151 {
5152 .eraseblocks = { {4 * 1024, 512} },
5153 .block_erase = spi_block_erase_20,
5154 }, {
5155 .eraseblocks = { {64 * 1024, 32} },
5156 .block_erase = spi_block_erase_d8,
5157 }, {
5158 .eraseblocks = { {1024 * 2048, 1} },
5159 .block_erase = spi_block_erase_60,
5160 }, {
5161 .eraseblocks = { {1024 * 2048, 1} },
5162 .block_erase = spi_block_erase_c7,
5163 }
5164 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005165 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005166 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005167 .write = spi_chip_write_256,
5168 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005169 .voltage = {2700, 3600},
5170 },
5171
5172 {
5173 .vendor = "Eon",
5174 .name = "EN25QH32",
5175 .bustype = BUS_SPI,
5176 .manufacture_id = EON_ID_NOPREFIX,
5177 .model_id = EON_EN25QH32,
5178 .total_size = 4096,
5179 .page_size = 256,
5180 /* supports SFDP */
5181 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005182 /* QPI enable 0x38, disable 0xFF */
5183 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005184 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005185 .probe = probe_spi_rdid,
5186 .probe_timing = TIMING_ZERO,
5187 .block_erasers =
5188 {
5189 {
5190 .eraseblocks = { {4 * 1024, 1024} },
5191 .block_erase = spi_block_erase_20,
5192 }, {
5193 .eraseblocks = { {64 * 1024, 64} },
5194 .block_erase = spi_block_erase_d8,
5195 }, {
5196 .eraseblocks = { {1024 * 4096, 1} },
5197 .block_erase = spi_block_erase_60,
5198 }, {
5199 .eraseblocks = { {1024 * 4096, 1} },
5200 .block_erase = spi_block_erase_c7,
5201 }
5202 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005203 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005204 .unlock = spi_disable_blockprotect_bp3_srwd,
5205 .write = spi_chip_write_256,
5206 .read = spi_chip_read,
5207 .voltage = {2700, 3600},
5208 },
5209
5210 {
5211 .vendor = "Eon",
5212 .name = "EN25QH64",
5213 .bustype = BUS_SPI,
5214 .manufacture_id = EON_ID_NOPREFIX,
5215 .model_id = EON_EN25QH64,
5216 .total_size = 8192,
5217 .page_size = 256,
5218 /* supports SFDP */
5219 /* OTP: 512B total; enter 0x3A */
5220 /* QPI enable 0x38, disable 0xFF */
5221 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005222 .tested = TEST_OK_PREW,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005223 .probe = probe_spi_rdid,
5224 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005225 .block_erasers =
5226 {
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005227 {
5228 .eraseblocks = { {4 * 1024, 2048} },
5229 .block_erase = spi_block_erase_20,
5230 }, {
5231 .eraseblocks = { {64 * 1024, 128} },
5232 .block_erase = spi_block_erase_d8,
5233 }, {
5234 .eraseblocks = { { 8192 * 1024, 1} },
5235 .block_erase = spi_block_erase_60,
5236 }, {
5237 .eraseblocks = { { 8192 * 1024, 1} },
5238 .block_erase = spi_block_erase_c7,
5239 }
5240 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005241 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005242 .unlock = spi_disable_blockprotect_bp3_srwd,
5243 .write = spi_chip_write_256,
5244 .read = spi_chip_read,
5245 .voltage = {2700, 3600},
5246 },
5247
5248 {
5249 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005250 .name = "EN25S10",
5251 .bustype = BUS_SPI,
5252 .manufacture_id = EON_ID_NOPREFIX,
5253 .model_id = EON_EN25S10,
5254 .total_size = 128,
5255 .page_size = 256,
5256 /* OTP: 256B total; enter 0x3A */
5257 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5258 .tested = TEST_UNTESTED,
5259 .probe = probe_spi_rdid,
5260 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005261 .block_erasers =
5262 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005263 {
5264 .eraseblocks = { {4 * 1024, 32} },
5265 .block_erase = spi_block_erase_20,
5266 }, {
5267 .eraseblocks = { {32 * 1024, 4} },
5268 .block_erase = spi_block_erase_52,
5269 }, {
5270 .eraseblocks = { {128 * 1024, 1} },
5271 .block_erase = spi_block_erase_60,
5272 }, {
5273 .eraseblocks = { {128 * 1024, 1} },
5274 .block_erase = spi_block_erase_c7,
5275 }
5276 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005277 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005278 .unlock = spi_disable_blockprotect,
5279 .write = spi_chip_write_256,
5280 .read = spi_chip_read,
5281 .voltage = {1650, 1950},
5282 },
5283
5284 {
5285 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005286 .name = "EN25S16",
5287 .bustype = BUS_SPI,
5288 .manufacture_id = EON_ID_NOPREFIX,
5289 .model_id = EON_EN25S16,
5290 .total_size = 2048,
5291 .page_size = 256,
5292 /* OTP: 512B total; enter 0x3A */
5293 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5294 .tested = TEST_UNTESTED,
5295 .probe = probe_spi_rdid,
5296 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005297 .block_erasers =
5298 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005299 {
5300 .eraseblocks = { {4 * 1024, 512} },
5301 .block_erase = spi_block_erase_20,
5302 }, {
5303 .eraseblocks = { {64 * 1024, 32} },
5304 .block_erase = spi_block_erase_52,
5305 }, {
5306 .eraseblocks = { {32 * 1024, 64} },
5307 .block_erase = spi_block_erase_d8,
5308 }, {
5309 .eraseblocks = { {2048 * 1024, 1} },
5310 .block_erase = spi_block_erase_60,
5311 }, {
5312 .eraseblocks = { {2048 * 1024, 1} },
5313 .block_erase = spi_block_erase_c7,
5314 }
5315 },
5316 .printlock = spi_prettyprint_status_register_en25s_wp,
5317 .unlock = spi_disable_blockprotect_bp3_srwd,
5318 .write = spi_chip_write_256,
5319 .read = spi_chip_read,
5320 .voltage = {1650, 1950},
5321 },
5322
5323 {
5324 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005325 .name = "EN25S20",
5326 .bustype = BUS_SPI,
5327 .manufacture_id = EON_ID_NOPREFIX,
5328 .model_id = EON_EN25S20,
5329 .total_size = 256,
5330 .page_size = 256,
5331 /* OTP: 256B total; enter 0x3A */
5332 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5333 .tested = TEST_UNTESTED,
5334 .probe = probe_spi_rdid,
5335 .probe_timing = TIMING_ZERO,
5336 .block_erasers =
5337 {
5338 {
5339 .eraseblocks = { {4 * 1024, 64} },
5340 .block_erase = spi_block_erase_20,
5341 }, {
5342 .eraseblocks = { {64 * 1024, 4} },
5343 .block_erase = spi_block_erase_d8,
5344 }, {
5345 .eraseblocks = { {256 * 1024, 1} },
5346 .block_erase = spi_block_erase_60,
5347 }, {
5348 .eraseblocks = { {256 * 1024, 1} },
5349 .block_erase = spi_block_erase_c7,
5350 }
5351 },
5352 .printlock = spi_prettyprint_status_register_bp2_srwd,
5353 .unlock = spi_disable_blockprotect,
5354 .write = spi_chip_write_256,
5355 .read = spi_chip_read,
5356 .voltage = {1650, 1950},
5357 },
5358
5359 {
5360 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005361 .name = "EN25S32",
5362 .bustype = BUS_SPI,
5363 .manufacture_id = EON_ID_NOPREFIX,
5364 .model_id = EON_EN25S32,
5365 .total_size = 4096,
5366 .page_size = 256,
5367 /* OTP: 512B total; enter 0x3A */
5368 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5369 .tested = TEST_UNTESTED,
5370 .probe = probe_spi_rdid,
5371 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005372 .block_erasers =
5373 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005374 {
5375 .eraseblocks = { {4 * 1024, 1024} },
5376 .block_erase = spi_block_erase_20,
5377 }, {
5378 .eraseblocks = { {32 * 1024, 128} },
5379 .block_erase = spi_block_erase_52,
5380 }, {
5381 .eraseblocks = { {64 * 1024, 64} },
5382 .block_erase = spi_block_erase_d8,
5383 }, {
5384 .eraseblocks = { {4096 * 1024, 1} },
5385 .block_erase = spi_block_erase_60,
5386 }, {
5387 .eraseblocks = { {4096 * 1024, 1} },
5388 .block_erase = spi_block_erase_c7,
5389 }
5390 },
5391 .printlock = spi_prettyprint_status_register_en25s_wp,
5392 .unlock = spi_disable_blockprotect_bp3_srwd,
5393 .write = spi_chip_write_256,
5394 .read = spi_chip_read,
5395 .voltage = {1650, 1950},
5396 },
5397
5398 {
5399 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005400 .name = "EN25S40",
5401 .bustype = BUS_SPI,
5402 .manufacture_id = EON_ID_NOPREFIX,
5403 .model_id = EON_EN25S40,
5404 .total_size = 512,
5405 .page_size = 256,
5406 /* OTP: 256B total; enter 0x3A */
5407 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5408 .tested = TEST_OK_PREW,
5409 .probe = probe_spi_rdid,
5410 .probe_timing = TIMING_ZERO,
5411 .block_erasers =
5412 {
5413 {
5414 .eraseblocks = { {4 * 1024, 128} },
5415 .block_erase = spi_block_erase_20,
5416 }, {
5417 .eraseblocks = { {64 * 1024, 8} },
5418 .block_erase = spi_block_erase_d8,
5419 }, {
5420 .eraseblocks = { {512 * 1024, 1} },
5421 .block_erase = spi_block_erase_60,
5422 }, {
5423 .eraseblocks = { {512 * 1024, 1} },
5424 .block_erase = spi_block_erase_c7,
5425 }
5426 },
5427 .printlock = spi_prettyprint_status_register_bp2_srwd,
5428 .unlock = spi_disable_blockprotect,
5429 .write = spi_chip_write_256,
5430 .read = spi_chip_read,
5431 .voltage = {1650, 1950},
5432 },
5433
5434 {
5435 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005436 .name = "EN25S64",
5437 .bustype = BUS_SPI,
5438 .manufacture_id = EON_ID_NOPREFIX,
5439 .model_id = EON_EN25S64,
5440 .total_size = 8192,
5441 .page_size = 256,
5442 /* OTP: 512B total; enter 0x3A */
5443 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Nikolai Artemievdf889fa2021-03-23 17:10:45 +11005444 .tested = TEST_OK_PREW,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005445 .probe = probe_spi_rdid,
5446 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005447 .block_erasers =
5448 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005449 {
5450 .eraseblocks = { {4 * 1024, 2048} },
5451 .block_erase = spi_block_erase_20,
5452 }, {
5453 .eraseblocks = { {64 * 1024, 128} },
5454 .block_erase = spi_block_erase_d8,
5455 }, {
5456 .eraseblocks = { {8192 * 1024, 1} },
5457 .block_erase = spi_block_erase_60,
5458 }, {
5459 .eraseblocks = { {8192 * 1024, 1} },
5460 .block_erase = spi_block_erase_c7,
5461 }
5462 },
5463 .printlock = spi_prettyprint_status_register_en25s_wp,
5464 .unlock = spi_disable_blockprotect_bp3_srwd,
5465 .write = spi_chip_write_256,
5466 .read = spi_chip_read,
5467 .voltage = {1650, 1950},
5468 },
5469
5470 {
5471 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005472 .name = "EN25S80",
5473 .bustype = BUS_SPI,
5474 .manufacture_id = EON_ID_NOPREFIX,
5475 .model_id = EON_EN25S80,
5476 .total_size = 1024,
5477 .page_size = 256,
5478 /* OTP: 256B total; enter 0x3A */
5479 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5480 .tested = TEST_UNTESTED,
5481 .probe = probe_spi_rdid,
5482 .probe_timing = TIMING_ZERO,
Russ Dill3cd5a122010-03-05 08:44:11 +00005483 .block_erasers =
5484 {
5485 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005486 .eraseblocks = { {4 * 1024, 256} },
5487 .block_erase = spi_block_erase_20,
5488 }, {
5489 .eraseblocks = { {64 * 1024, 16} },
5490 .block_erase = spi_block_erase_d8,
5491 }, {
5492 .eraseblocks = { {1024 * 1024, 1} },
5493 .block_erase = spi_block_erase_60,
5494 }, {
5495 .eraseblocks = { {1024 * 1024, 1} },
5496 .block_erase = spi_block_erase_c7,
5497 }
Russ Dill3cd5a122010-03-05 08:44:11 +00005498 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005499 .printlock = spi_prettyprint_status_register_bp2_srwd,
5500 .unlock = spi_disable_blockprotect,
5501 .write = spi_chip_write_256,
5502 .read = spi_chip_read,
5503 .voltage = {1650, 1950},
Russ Dill3cd5a122010-03-05 08:44:11 +00005504 },
5505
5506 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005507 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005508 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005509 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005510 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005511 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005512 .total_size = 256,
5513 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005514 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Alan Green4362e622019-08-26 15:02:12 +10005515 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005516 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005517 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005518 .block_erasers =
5519 {
5520 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005521 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005522 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005523 {8 * 1024, 2},
5524 {32 * 1024, 1},
5525 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005526 },
5527 .block_erase = erase_sector_jedec,
5528 }, {
5529 .eraseblocks = { {256 * 1024, 1} },
5530 .block_erase = erase_chip_block_jedec,
5531 },
5532 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005533 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005534 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005535 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005536 },
5537
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005538 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005539 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005540 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005541 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005542 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005543 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005544 .total_size = 256,
5545 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005546 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005547 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005548 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005549 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005550 .block_erasers =
5551 {
5552 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005553 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005554 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005555 {32 * 1024, 1},
5556 {8 * 1024, 2},
5557 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005558 },
5559 .block_erase = erase_sector_jedec,
5560 }, {
5561 .eraseblocks = { {256 * 1024, 1} },
5562 .block_erase = erase_chip_block_jedec,
5563 },
5564 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005565 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005566 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005567 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005568 },
5569
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005570 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005571 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005572 .name = "EN29F010",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005573 .bustype = BUS_PARALLEL,
5574 .manufacture_id = EON_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005575 .model_id = EON_EN29F010,
5576 .total_size = 128,
5577 .page_size = 128,
5578 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5579 .tested = TEST_OK_PRE,
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005580 .probe = probe_jedec,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005581 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005582 .block_erasers =
5583 {
5584 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005585 .eraseblocks = { {16 * 1024, 8} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005586 .block_erase = erase_sector_jedec,
5587 },
5588 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005589 .eraseblocks = { {128 * 1024, 1} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005590 .block_erase = erase_chip_block_jedec,
5591 },
5592 },
5593 .write = write_jedec_1,
5594 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005595 .voltage = {4500, 5500},
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005596 },
5597
5598 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005599 .vendor = "Eon",
5600 .name = "EN29GL064(A)B",
5601 .bustype = BUS_PARALLEL,
5602 .manufacture_id = EON_ID,
5603 .model_id = EON_EN29GL064B,
5604 .total_size = 8192,
5605 .page_size = 128 * 1024, /* actual page size is 16 */
5606 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5607 .tested = TEST_UNTESTED,
5608 .probe = probe_jedec_29gl,
5609 .probe_timing = TIMING_ZERO,
5610 .block_erasers =
5611 {
5612 {
5613 .eraseblocks = {
5614 {8 * 1024, 8},
5615 {64 * 1024, 127},
5616 },
5617 .block_erase = erase_sector_jedec,
5618 }, {
5619 .eraseblocks = { {8 * 1024 * 1024, 1} },
5620 .block_erase = erase_chip_block_jedec,
5621 },
5622 },
5623 .write = write_jedec_1,
5624 .read = read_memmapped,
5625 .voltage = {2700, 3600},
5626 },
5627
5628 {
5629 .vendor = "Eon",
5630 .name = "EN29GL064(A)T",
5631 .bustype = BUS_PARALLEL,
5632 .manufacture_id = EON_ID,
5633 .model_id = EON_EN29GL064T,
5634 .total_size = 8192,
5635 .page_size = 128 * 1024, /* actual page size is 16 */
5636 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5637 .tested = TEST_UNTESTED,
5638 .probe = probe_jedec_29gl,
5639 .probe_timing = TIMING_ZERO,
5640 .block_erasers =
5641 {
5642 {
5643 .eraseblocks = {
5644 {64 * 1024, 127},
5645 {8 * 1024, 8},
5646 },
5647 .block_erase = erase_sector_jedec,
5648 }, {
5649 .eraseblocks = { {8 * 1024 * 1024, 1} },
5650 .block_erase = erase_chip_block_jedec,
5651 },
5652 },
5653 .write = write_jedec_1,
5654 .read = read_memmapped,
5655 .voltage = {2700, 3600},
5656 },
5657
5658 {
5659 .vendor = "Eon",
5660 .name = "EN29GL064H/L",
5661 .bustype = BUS_PARALLEL,
5662 .manufacture_id = EON_ID,
5663 .model_id = EON_EN29GL064HL,
5664 .total_size = 8192,
5665 .page_size = 128 * 1024, /* actual page size is 16 */
5666 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5667 .tested = TEST_UNTESTED,
5668 .probe = probe_jedec_29gl,
5669 .probe_timing = TIMING_ZERO,
5670 .block_erasers =
5671 {
5672 {
5673 .eraseblocks = { {64 * 1024, 128} },
5674 .block_erase = erase_sector_jedec,
5675 }, {
5676 .eraseblocks = { {8 * 1024 * 1024, 1} },
5677 .block_erase = erase_chip_block_jedec,
5678 },
5679 },
5680 .write = write_jedec_1,
5681 .read = read_memmapped,
5682 .voltage = {2700, 3600},
5683 },
5684
5685 {
5686 .vendor = "Eon",
5687 .name = "EN29GL128",
5688 .bustype = BUS_PARALLEL,
5689 .manufacture_id = EON_ID,
5690 .model_id = EON_EN29GL128HL,
5691 .total_size = 16384,
5692 .page_size = 128 * 1024, /* actual page size is 16 */
5693 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5694 .tested = TEST_UNTESTED,
5695 .probe = probe_jedec_29gl,
5696 .probe_timing = TIMING_ZERO,
5697 .block_erasers =
5698 {
5699 {
5700 .eraseblocks = { {128 * 1024, 128} },
5701 .block_erase = erase_sector_jedec,
5702 }, {
5703 .eraseblocks = { {16 * 1024 * 1024, 1} },
5704 .block_erase = erase_chip_block_jedec,
5705 },
5706 },
5707 .write = write_jedec_1,
5708 .read = read_memmapped,
5709 .voltage = {2700, 3600},
5710 },
5711
5712 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005713 .vendor = "Eon",
5714 .name = "EN29LV040(A)",
5715 .bustype = BUS_PARALLEL,
5716 .manufacture_id = EON_ID,
5717 .model_id = EON_EN29LV040,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005718 .total_size = 512,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005719 .page_size = 4 * 1024,
5720 .tested = TEST_OK_PREW,
5721 .probe = probe_jedec,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005722 .probe_timing = TIMING_ZERO,
5723 .block_erasers =
5724 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005725 {
5726 .eraseblocks = { {64 * 1024, 8} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005727 .block_erase = erase_sector_jedec,
5728 },
5729 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005730 .eraseblocks = { {512 * 1024, 1} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005731 .block_erase = erase_chip_block_jedec,
5732 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005733 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005734 .write = write_jedec_1,
5735 .read = read_memmapped,
5736 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005737 },
5738
5739 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005740 .vendor = "Eon",
5741 .name = "EN29LV640B",
5742 .bustype = BUS_PARALLEL,
5743 .manufacture_id = EON_ID,
5744 .model_id = EON_EN29LV640B,
5745 .total_size = 8192,
5746 .page_size = 8192,
5747 .feature_bits = FEATURE_ADDR_SHIFTED,
5748 .tested = TEST_OK_PREW,
5749 .probe = probe_en29lv640b,
5750 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005751 .block_erasers =
5752 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005753 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005754 .eraseblocks = {
5755 {8 * 1024, 8},
5756 {64 * 1024, 127},
5757 },
5758 .block_erase = erase_block_jedec,
Stefan Tauner0be072c2016-03-13 15:16:30 +00005759 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005760 .eraseblocks = { {8 * 1024 * 1024, 1} },
5761 .block_erase = erase_chip_block_jedec,
5762 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005763 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005764 .write = write_en29lv640b,
5765 .read = read_memmapped,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005766 .voltage = {2700, 3600},
5767 },
5768
5769 {
Jakob Petersson0cf3e122019-02-18 01:55:43 +01005770 .vendor = "Fudan",
5771 .name = "FM25F005",
5772 .bustype = BUS_SPI,
5773 .manufacture_id = FUDAN_ID_NOPREFIX,
5774 .model_id = FUDAN_FM25F005,
5775 .total_size = 64,
5776 .page_size = 256,
5777 /* OTP: 256B total; enter 0x3A */
5778 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5779 .tested = TEST_UNTESTED,
5780 .probe = probe_spi_rdid,
5781 .probe_timing = TIMING_ZERO,
5782 .block_erasers = {
5783 {
5784 .eraseblocks = { {4 * 1024, 16} },
5785 .block_erase = spi_block_erase_20,
5786 }, {
5787 .eraseblocks = { {32 * 1024, 2} },
5788 .block_erase = spi_block_erase_52,
5789 }, {
5790 .eraseblocks = { {64 * 1024, 1} },
5791 .block_erase = spi_block_erase_d8,
5792 }, {
5793 .eraseblocks = { {64 * 1024, 1} },
5794 .block_erase = spi_block_erase_60,
5795 }, {
5796 .eraseblocks = { {64 * 1024, 1} },
5797 .block_erase = spi_block_erase_c7,
5798 }
5799 },
5800 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5801 .unlock = spi_disable_blockprotect_bp2_srwd,
5802 .write = spi_chip_write_256,
5803 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5804 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5805 },
5806
5807 {
5808 .vendor = "Fudan",
5809 .name = "FM25F01",
5810 .bustype = BUS_SPI,
5811 .manufacture_id = FUDAN_ID_NOPREFIX,
5812 .model_id = FUDAN_FM25F01,
5813 .total_size = 128,
5814 .page_size = 256,
5815 /* OTP: 256B total; enter 0x3A */
5816 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5817 .tested = TEST_UNTESTED,
5818 .probe = probe_spi_rdid,
5819 .probe_timing = TIMING_ZERO,
5820 .block_erasers = {
5821 {
5822 .eraseblocks = { {4 * 1024, 32} },
5823 .block_erase = spi_block_erase_20,
5824 }, {
5825 .eraseblocks = { {32 * 1024, 4} },
5826 .block_erase = spi_block_erase_52,
5827 }, {
5828 .eraseblocks = { {64 * 1024, 2} },
5829 .block_erase = spi_block_erase_d8,
5830 }, {
5831 .eraseblocks = { {128 * 1024, 1} },
5832 .block_erase = spi_block_erase_60,
5833 }, {
5834 .eraseblocks = { {128 * 1024, 1} },
5835 .block_erase = spi_block_erase_c7,
5836 }
5837 },
5838 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5839 .unlock = spi_disable_blockprotect_bp2_srwd,
5840 .write = spi_chip_write_256,
5841 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5842 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5843 },
5844
5845 {
5846 .vendor = "Fudan",
5847 .name = "FM25F02(A)",
5848 .bustype = BUS_SPI,
5849 .manufacture_id = FUDAN_ID_NOPREFIX,
5850 .model_id = FUDAN_FM25F02,
5851 .total_size = 256,
5852 .page_size = 256,
5853 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
5854 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5855 .tested = TEST_UNTESTED,
5856 .probe = probe_spi_rdid,
5857 .probe_timing = TIMING_ZERO,
5858 .block_erasers = {
5859 {
5860 .eraseblocks = { {4 * 1024, 64} },
5861 .block_erase = spi_block_erase_20,
5862 }, {
5863 .eraseblocks = { {32 * 1024, 8} },
5864 .block_erase = spi_block_erase_52,
5865 }, {
5866 .eraseblocks = { {64 * 1024, 4} },
5867 .block_erase = spi_block_erase_d8,
5868 }, {
5869 .eraseblocks = { {1024 * 256, 1} },
5870 .block_erase = spi_block_erase_60,
5871 }, {
5872 .eraseblocks = { {1024 * 256, 1} },
5873 .block_erase = spi_block_erase_c7,
5874 },
5875 },
5876 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5877 .unlock = spi_disable_blockprotect_bp2_srwd,
5878 .write = spi_chip_write_256,
5879 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5880 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5881 },
5882
5883 {
5884 .vendor = "Fudan",
5885 .name = "FM25F04(A)",
5886 .bustype = BUS_SPI,
5887 .manufacture_id = FUDAN_ID_NOPREFIX,
5888 .model_id = FUDAN_FM25F04,
5889 .total_size = 512,
5890 .page_size = 256,
5891 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
5892 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5893 .tested = TEST_UNTESTED,
5894 .probe = probe_spi_rdid,
5895 .probe_timing = TIMING_ZERO,
5896 .block_erasers = {
5897 {
5898 .eraseblocks = { {4 * 1024, 128} },
5899 .block_erase = spi_block_erase_20,
5900 }, {
5901 .eraseblocks = { {32 * 1024, 16} },
5902 .block_erase = spi_block_erase_52,
5903 }, {
5904 .eraseblocks = { {64 * 1024, 8} },
5905 .block_erase = spi_block_erase_d8,
5906 }, {
5907 .eraseblocks = { {1024 * 512, 1} },
5908 .block_erase = spi_block_erase_60,
5909 }, {
5910 .eraseblocks = { {1024 * 512, 1} },
5911 .block_erase = spi_block_erase_c7,
5912 },
5913 },
5914 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5915 .unlock = spi_disable_blockprotect_bp2_srwd,
5916 .write = spi_chip_write_256,
5917 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5918 .voltage = {2700, 3600},
5919 },
5920
5921 {
5922 .vendor = "Fudan",
5923 .name = "FM25Q08",
5924 .bustype = BUS_SPI,
5925 .manufacture_id = FUDAN_ID_NOPREFIX,
5926 .model_id = FUDAN_FM25Q08,
5927 .total_size = 1024,
5928 .page_size = 256,
5929 /* supports SFDP */
5930 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
5931 /* QPI enable 0x38, disable 0xFF */
5932 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5933 .tested = TEST_UNTESTED,
5934 .probe = probe_spi_rdid,
5935 .probe_timing = TIMING_ZERO,
5936 .block_erasers = {
5937 {
5938 .eraseblocks = { {4 * 1024, 256} },
5939 .block_erase = spi_block_erase_20,
5940 }, {
5941 .eraseblocks = { {32 * 1024, 32} },
5942 .block_erase = spi_block_erase_52,
5943 }, {
5944 .eraseblocks = { {64 * 1024, 16} },
5945 .block_erase = spi_block_erase_d8,
5946 }, {
5947 .eraseblocks = { {1024 * 1024, 1} },
5948 .block_erase = spi_block_erase_60,
5949 }, {
5950 .eraseblocks = { {1024 * 1024, 1} },
5951 .block_erase = spi_block_erase_c7,
5952 },
5953 },
5954 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
5955 .unlock = spi_disable_blockprotect_bp2_srwd,
5956 .write = spi_chip_write_256,
5957 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5958 .voltage = {2700, 3600},
5959 },
5960
5961 {
5962 .vendor = "Fudan",
5963 .name = "FM25Q16",
5964 .bustype = BUS_SPI,
5965 .manufacture_id = FUDAN_ID_NOPREFIX,
5966 .model_id = FUDAN_FM25Q16,
5967 .total_size = 2048,
5968 .page_size = 256,
5969 /* supports SFDP */
5970 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
5971 /* QPI enable 0x38, disable 0xFF */
5972 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5973 .tested = TEST_UNTESTED,
5974 .probe = probe_spi_rdid,
5975 .probe_timing = TIMING_ZERO,
5976 .block_erasers = {
5977 {
5978 .eraseblocks = { {4 * 1024, 512} },
5979 .block_erase = spi_block_erase_20,
5980 }, {
5981 .eraseblocks = { {32 * 1024, 64} },
5982 .block_erase = spi_block_erase_52,
5983 }, {
5984 .eraseblocks = { {64 * 1024, 32} },
5985 .block_erase = spi_block_erase_d8,
5986 }, {
5987 .eraseblocks = { {2 * 1024 * 1024, 1} },
5988 .block_erase = spi_block_erase_60,
5989 }, {
5990 .eraseblocks = { {2 * 1024 * 1024, 1} },
5991 .block_erase = spi_block_erase_c7,
5992 }
5993 },
5994 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
5995 .unlock = spi_disable_blockprotect_bp2_srwd,
5996 .write = spi_chip_write_256,
5997 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5998 .voltage = {2700, 3600},
5999 },
6000
6001 {
6002 .vendor = "Fudan",
6003 .name = "FM25Q32",
6004 .bustype = BUS_SPI,
6005 .manufacture_id = FUDAN_ID_NOPREFIX,
6006 .model_id = FUDAN_FM25Q32,
6007 .total_size = 4096,
6008 .page_size = 256,
6009 /* supports SFDP */
6010 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
6011 /* QPI enable 0x38, disable 0xFF */
6012 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6013 .tested = TEST_UNTESTED,
6014 .probe = probe_spi_rdid,
6015 .probe_timing = TIMING_ZERO,
6016 .block_erasers = {
6017 {
6018 .eraseblocks = { {4 * 1024, 1024} },
6019 .block_erase = spi_block_erase_20,
6020 }, {
6021 .eraseblocks = { {32 * 1024, 128} },
6022 .block_erase = spi_block_erase_52,
6023 }, {
6024 .eraseblocks = { {64 * 1024, 64} },
6025 .block_erase = spi_block_erase_d8,
6026 }, {
6027 .eraseblocks = { {4 * 1024 * 1024, 1} },
6028 .block_erase = spi_block_erase_60,
6029 }, {
6030 .eraseblocks = { {4 * 1024 * 1024, 1} },
6031 .block_erase = spi_block_erase_c7,
6032 },
6033 },
6034 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6035 .unlock = spi_disable_blockprotect_bp2_srwd,
6036 .write = spi_chip_write_256,
6037 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6038 .voltage = {2700, 3600},
6039 },
6040
6041 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006042 .vendor = "Fujitsu",
6043 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006044 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006045 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006046 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006047 .total_size = 512,
6048 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006049 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006050 .tested = TEST_UNTESTED,
6051 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006052 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006053 .block_erasers =
6054 {
6055 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006056 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006057 {16 * 1024, 1},
6058 {8 * 1024, 2},
6059 {32 * 1024, 1},
6060 {64 * 1024, 7},
6061 },
Sean Nelson35727f72010-01-28 23:55:12 +00006062 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006063 }, {
6064 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006065 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006066 },
6067 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006068 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006069 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006070 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006071 },
6072
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006073 {
6074 .vendor = "Fujitsu",
6075 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006076 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006077 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006078 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006079 .total_size = 512,
6080 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006081 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006082 .tested = TEST_UNTESTED,
6083 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006084 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006085 .block_erasers =
6086 {
6087 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006088 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006089 {64 * 1024, 7},
6090 {32 * 1024, 1},
6091 {8 * 1024, 2},
6092 {16 * 1024, 1},
6093 },
Sean Nelson35727f72010-01-28 23:55:12 +00006094 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006095 }, {
6096 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006097 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006098 },
6099 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006100 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006101 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006102 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006103 },
6104
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006105 {
Sean Nelson35727f72010-01-28 23:55:12 +00006106 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006107 .vendor = "Fujitsu",
6108 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006109 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006110 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006111 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006112 .total_size = 512,
6113 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006114 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006115 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006116 .probe = probe_jedec,
6117 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006118 .block_erasers =
6119 {
6120 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006121 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006122 {16 * 1024, 1},
6123 {8 * 1024, 2},
6124 {32 * 1024, 1},
6125 {64 * 1024, 7},
6126 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006127 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006128 }, {
6129 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006130 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006131 },
6132 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006133 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006134 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006135 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00006136 },
6137
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006138 {
6139 .vendor = "Fujitsu",
6140 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006141 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006142 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006143 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006144 .total_size = 512,
6145 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006146 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006147 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006148 .probe = probe_jedec,
6149 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006150 .block_erasers =
6151 {
6152 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006153 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006154 {64 * 1024, 7},
6155 {32 * 1024, 1},
6156 {8 * 1024, 2},
6157 {16 * 1024, 1},
6158 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006159 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006160 }, {
6161 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006162 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006163 },
6164 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006165 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006166 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006167 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00006168 },
6169
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006170 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006171 .vendor = "Fujitsu",
6172 .name = "MBM29LV160BE",
6173 .bustype = BUS_PARALLEL,
6174 .manufacture_id = FUJITSU_ID,
6175 .model_id = FUJITSU_MBM29LV160BE,
6176 .total_size = 2 * 1024,
6177 .page_size = 0,
6178 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6179 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006180 .probe = probe_jedec,
6181 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006182 .block_erasers =
6183 {
6184 {
6185 .eraseblocks = {
6186 {16 * 1024, 1},
6187 {8 * 1024, 2},
6188 {32 * 1024, 1},
6189 {64 * 1024, 31},
6190 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006191 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006192 }, {
6193 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006194 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006195 },
6196 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006197 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006198 .read = read_memmapped,
6199 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
6200 },
6201
6202 {
6203 .vendor = "Fujitsu",
6204 .name = "MBM29LV160TE",
6205 .bustype = BUS_PARALLEL,
6206 .manufacture_id = FUJITSU_ID,
6207 .model_id = FUJITSU_MBM29LV160TE,
6208 .total_size = 2 * 1024,
6209 .page_size = 0,
6210 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6211 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006212 .probe = probe_jedec,
6213 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006214 .block_erasers =
6215 {
6216 {
6217 .eraseblocks = {
6218 {64 * 1024, 31},
6219 {32 * 1024, 1},
6220 {8 * 1024, 2},
6221 {16 * 1024, 1},
6222 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006223 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006224 }, {
6225 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006226 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006227 },
6228 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006229 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006230 .read = read_memmapped,
6231 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
6232 },
6233
6234 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006235 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006236 .name = "GD25B128B/GD25Q128B",
Roman Titov95edc892015-04-03 21:29:04 +00006237 .bustype = BUS_SPI,
6238 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006239 .model_id = GIGADEVICE_GD25Q128,
6240 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006241 .page_size = 256,
6242 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6243 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006244 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006245 .probe = probe_spi_rdid,
6246 .probe_timing = TIMING_ZERO,
6247 .block_erasers =
6248 {
6249 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006250 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006251 .block_erase = spi_block_erase_20,
6252 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006253 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006254 .block_erase = spi_block_erase_52,
6255 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006256 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006257 .block_erase = spi_block_erase_d8,
6258 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006259 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006260 .block_erase = spi_block_erase_60,
6261 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006262 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006263 .block_erase = spi_block_erase_c7,
6264 }
6265 },
6266 .printlock = spi_prettyprint_status_register_bp4_srwd,
6267 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6268 .write = spi_chip_write_256,
6269 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10006270 .voltage = {2700, 3600},
Roman Titov95edc892015-04-03 21:29:04 +00006271 },
6272
6273 {
6274 .vendor = "GigaDevice",
Edward O'Callaghan981a3442021-06-22 11:16:55 +10006275 .name = "GD25LQ128C/GD25LQ128D/GD25LQ128E",
Roman Titov95edc892015-04-03 21:29:04 +00006276 .bustype = BUS_SPI,
6277 .manufacture_id = GIGADEVICE_ID,
Alan Green188127e2019-08-06 16:10:34 +10006278 .model_id = GIGADEVICE_GD25LQ128CD,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006279 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006280 .page_size = 256,
6281 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6282 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green813a7e22021-01-08 08:48:17 +11006283 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006284 .probe = probe_spi_rdid,
6285 .probe_timing = TIMING_ZERO,
6286 .block_erasers =
6287 {
6288 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006289 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006290 .block_erase = spi_block_erase_20,
6291 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006292 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006293 .block_erase = spi_block_erase_52,
6294 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006295 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006296 .block_erase = spi_block_erase_d8,
6297 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006298 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006299 .block_erase = spi_block_erase_60,
6300 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006301 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006302 .block_erase = spi_block_erase_c7,
6303 }
6304 },
6305 .printlock = spi_prettyprint_status_register_bp4_srwd,
6306 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6307 .write = spi_chip_write_256,
6308 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6309 .voltage = {1695, 1950},
6310 },
6311
6312 {
6313 .vendor = "GigaDevice",
6314 .name = "GD25LQ16",
6315 .bustype = BUS_SPI,
6316 .manufacture_id = GIGADEVICE_ID,
6317 .model_id = GIGADEVICE_GD25LQ16,
6318 .total_size = 2048,
6319 .page_size = 256,
6320 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6321 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6322 .tested = TEST_UNTESTED,
6323 .probe = probe_spi_rdid,
6324 .probe_timing = TIMING_ZERO,
6325 .block_erasers =
6326 {
6327 {
6328 .eraseblocks = { {4 * 1024, 512} },
6329 .block_erase = spi_block_erase_20,
6330 }, {
6331 .eraseblocks = { {32 * 1024, 64} },
6332 .block_erase = spi_block_erase_52,
6333 }, {
6334 .eraseblocks = { {64 * 1024, 32} },
6335 .block_erase = spi_block_erase_d8,
6336 }, {
6337 .eraseblocks = { {2 * 1024 * 1024, 1} },
6338 .block_erase = spi_block_erase_60,
6339 }, {
6340 .eraseblocks = { {2 * 1024 * 1024, 1} },
6341 .block_erase = spi_block_erase_c7,
6342 }
6343 },
6344 .printlock = spi_prettyprint_status_register_bp4_srwd,
6345 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6346 .write = spi_chip_write_256,
6347 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6348 .voltage = {1695, 1950},
6349 },
6350
6351 {
6352 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006353 .name = "GD25LQ32",
6354 .bustype = BUS_SPI,
6355 .manufacture_id = GIGADEVICE_ID,
6356 .model_id = GIGADEVICE_GD25LQ32,
6357 .total_size = 4096,
6358 .page_size = 256,
6359 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6360 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6361 .tested = TEST_OK_PREW,
6362 .probe = probe_spi_rdid,
6363 .probe_timing = TIMING_ZERO,
6364 .block_erasers =
6365 {
6366 {
6367 .eraseblocks = { {4 * 1024, 1024} },
6368 .block_erase = spi_block_erase_20,
6369 }, {
6370 .eraseblocks = { {32 * 1024, 128} },
6371 .block_erase = spi_block_erase_52,
6372 }, {
6373 .eraseblocks = { {64 * 1024, 64} },
6374 .block_erase = spi_block_erase_d8,
6375 }, {
6376 .eraseblocks = { {4 * 1024 * 1024, 1} },
6377 .block_erase = spi_block_erase_60,
6378 }, {
6379 .eraseblocks = { {4 * 1024 * 1024, 1} },
6380 .block_erase = spi_block_erase_c7,
6381 }
6382 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006383 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006384 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6385 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00006386 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6387 .voltage = {1695, 1950},
6388 },
6389
6390 {
6391 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006392 .name = "GD25LQ40",
6393 .bustype = BUS_SPI,
6394 .manufacture_id = GIGADEVICE_ID,
6395 .model_id = GIGADEVICE_GD25LQ40,
6396 .total_size = 512,
6397 .page_size = 256,
6398 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6399 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6400 .tested = TEST_UNTESTED,
6401 .probe = probe_spi_rdid,
6402 .probe_timing = TIMING_ZERO,
6403 .block_erasers =
6404 {
6405 {
6406 .eraseblocks = { {4 * 1024, 128} },
6407 .block_erase = spi_block_erase_20,
6408 }, {
6409 .eraseblocks = { {32 * 1024, 16} },
6410 .block_erase = spi_block_erase_52,
6411 }, {
6412 .eraseblocks = { {64 * 1024, 8} },
6413 .block_erase = spi_block_erase_d8,
6414 }, {
6415 .eraseblocks = { {512 * 1024, 1} },
6416 .block_erase = spi_block_erase_60,
6417 }, {
6418 .eraseblocks = { {512 * 1024, 1} },
6419 .block_erase = spi_block_erase_c7,
6420 }
6421 },
6422 .printlock = spi_prettyprint_status_register_bp4_srwd,
6423 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6424 .write = spi_chip_write_256,
6425 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6426 .voltage = {1695, 1950},
6427 },
6428
6429 {
6430 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00006431 .name = "GD25LQ64(B)",
6432 .bustype = BUS_SPI,
6433 .manufacture_id = GIGADEVICE_ID,
6434 .model_id = GIGADEVICE_GD25LQ64,
6435 .total_size = 8192,
6436 .page_size = 256,
6437 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6438 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00006439 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006440 .probe = probe_spi_rdid,
6441 .probe_timing = TIMING_ZERO,
6442 .block_erasers =
6443 {
6444 {
6445 .eraseblocks = { {4 * 1024, 2048} },
6446 .block_erase = spi_block_erase_20,
6447 }, {
6448 .eraseblocks = { {32 * 1024, 256} },
6449 .block_erase = spi_block_erase_52,
6450 }, {
6451 .eraseblocks = { {64 * 1024, 128} },
6452 .block_erase = spi_block_erase_d8,
6453 }, {
6454 .eraseblocks = { {8 * 1024 * 1024, 1} },
6455 .block_erase = spi_block_erase_60,
6456 }, {
6457 .eraseblocks = { {8 * 1024 * 1024, 1} },
6458 .block_erase = spi_block_erase_c7,
6459 }
6460 },
6461 .printlock = spi_prettyprint_status_register_bp4_srwd,
6462 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6463 .write = spi_chip_write_256,
6464 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6465 .voltage = {1695, 1950},
6466 },
6467
6468 {
6469 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006470 .name = "GD25LQ80",
Roman Titov95edc892015-04-03 21:29:04 +00006471 .bustype = BUS_SPI,
6472 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006473 .model_id = GIGADEVICE_GD25LQ80,
6474 .total_size = 1024,
Roman Titov95edc892015-04-03 21:29:04 +00006475 .page_size = 256,
6476 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6477 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6478 .tested = TEST_UNTESTED,
6479 .probe = probe_spi_rdid,
6480 .probe_timing = TIMING_ZERO,
6481 .block_erasers =
6482 {
6483 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006484 .eraseblocks = { {4 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006485 .block_erase = spi_block_erase_20,
6486 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006487 .eraseblocks = { {32 * 1024, 32} },
Roman Titov95edc892015-04-03 21:29:04 +00006488 .block_erase = spi_block_erase_52,
6489 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006490 .eraseblocks = { {64 * 1024, 16} },
Roman Titov95edc892015-04-03 21:29:04 +00006491 .block_erase = spi_block_erase_d8,
6492 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006493 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006494 .block_erase = spi_block_erase_60,
6495 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006496 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006497 .block_erase = spi_block_erase_c7,
6498 }
6499 },
6500 .printlock = spi_prettyprint_status_register_bp4_srwd,
6501 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6502 .write = spi_chip_write_256,
6503 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6504 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006505 },
6506
6507 {
6508 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006509 .name = "GD25Q10",
6510 .bustype = BUS_SPI,
6511 .manufacture_id = GIGADEVICE_ID,
6512 .model_id = GIGADEVICE_GD25Q10,
6513 .total_size = 128,
6514 .page_size = 256,
6515 .feature_bits = FEATURE_WRSR_WREN,
6516 .tested = TEST_UNTESTED,
6517 .probe = probe_spi_rdid,
6518 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006519 .block_erasers =
6520 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006521 {
6522 .eraseblocks = { {4 * 1024, 32} },
6523 .block_erase = spi_block_erase_20,
6524 }, {
6525 .eraseblocks = { {32 * 1024, 4} },
6526 .block_erase = spi_block_erase_52,
6527 }, {
6528 .eraseblocks = { {64 * 1024, 2} },
6529 .block_erase = spi_block_erase_d8,
6530 }, {
6531 .eraseblocks = { {128 * 1024, 1} },
6532 .block_erase = spi_block_erase_60,
6533 }, {
6534 .eraseblocks = { {128 * 1024, 1} },
6535 .block_erase = spi_block_erase_c7,
6536 }
6537 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006538 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006539 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6540 .write = spi_chip_write_256,
6541 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6542 .voltage = {2700, 3600},
6543 },
6544
6545 {
6546 .vendor = "GigaDevice",
Alan Green4f009122019-08-26 10:45:18 +10006547 .name = "GD25Q127C/GD25Q128C",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006548 .bustype = BUS_SPI,
6549 .manufacture_id = GIGADEVICE_ID,
6550 .model_id = GIGADEVICE_GD25Q128,
6551 .total_size = 16384,
6552 .page_size = 256,
6553 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6554 /* QPI: enable 0x38, disable 0xFF */
6555 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Angel Ponsbce364c2018-09-30 20:04:14 +02006556 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006557 .probe = probe_spi_rdid,
6558 .probe_timing = TIMING_ZERO,
6559 .block_erasers =
6560 {
6561 {
6562 .eraseblocks = { {4 * 1024, 4096} },
6563 .block_erase = spi_block_erase_20,
6564 }, {
6565 .eraseblocks = { {32 * 1024, 512} },
6566 .block_erase = spi_block_erase_52,
6567 }, {
6568 .eraseblocks = { {64 * 1024, 256} },
6569 .block_erase = spi_block_erase_d8,
6570 }, {
6571 .eraseblocks = { {16 * 1024 * 1024, 1} },
6572 .block_erase = spi_block_erase_60,
6573 }, {
6574 .eraseblocks = { {16 * 1024 * 1024, 1} },
6575 .block_erase = spi_block_erase_c7,
6576 }
6577 },
6578 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6579 .printlock = spi_prettyprint_status_register_bp4_srwd,
6580 .unlock = spi_disable_blockprotect_bp4_srwd,
6581 .write = spi_chip_write_256,
6582 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6583 .voltage = {2700, 3600},
6584 },
6585
6586 {
6587 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006588 .name = "GD25Q16(B)",
6589 .bustype = BUS_SPI,
6590 .manufacture_id = GIGADEVICE_ID,
6591 .model_id = GIGADEVICE_GD25Q16,
6592 .total_size = 2048,
6593 .page_size = 256,
6594 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6595 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6596 .tested = TEST_OK_PREW,
6597 .probe = probe_spi_rdid,
6598 .probe_timing = TIMING_ZERO,
6599 .block_erasers =
6600 {
6601 {
6602 .eraseblocks = { {4 * 1024, 512} },
6603 .block_erase = spi_block_erase_20,
6604 }, {
6605 .eraseblocks = { {32 * 1024, 64} },
6606 .block_erase = spi_block_erase_52,
6607 }, {
6608 .eraseblocks = { {64 * 1024, 32} },
6609 .block_erase = spi_block_erase_d8,
6610 }, {
6611 .eraseblocks = { {2 * 1024 * 1024, 1} },
6612 .block_erase = spi_block_erase_60,
6613 }, {
6614 .eraseblocks = { {2 * 1024 * 1024, 1} },
6615 .block_erase = spi_block_erase_c7,
6616 }
6617 },
6618 .printlock = spi_prettyprint_status_register_bp4_srwd,
6619 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6620 .write = spi_chip_write_256,
6621 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6622 .voltage = {2700, 3600},
6623 },
6624
6625 {
6626 .vendor = "GigaDevice",
6627 .name = "GD25Q20(B)",
6628 .bustype = BUS_SPI,
6629 .manufacture_id = GIGADEVICE_ID,
6630 .model_id = GIGADEVICE_GD25Q20,
6631 .total_size = 256,
6632 .page_size = 256,
6633 .feature_bits = FEATURE_WRSR_WREN,
6634 .tested = TEST_OK_PREW,
6635 .probe = probe_spi_rdid,
6636 .probe_timing = TIMING_ZERO,
6637 .block_erasers =
6638 {
6639 {
6640 .eraseblocks = { {4 * 1024, 64} },
6641 .block_erase = spi_block_erase_20,
6642 }, {
6643 .eraseblocks = { {32 * 1024, 8} },
6644 .block_erase = spi_block_erase_52,
6645 }, {
6646 .eraseblocks = { {64 * 1024, 4} },
6647 .block_erase = spi_block_erase_d8,
6648 }, {
6649 .eraseblocks = { {256 * 1024, 1} },
6650 .block_erase = spi_block_erase_60,
6651 }, {
6652 .eraseblocks = { {256 * 1024, 1} },
6653 .block_erase = spi_block_erase_c7,
6654 }
6655 },
6656 .printlock = spi_prettyprint_status_register_bp4_srwd,
6657 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6658 .write = spi_chip_write_256,
6659 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6660 .voltage = {2700, 3600},
6661 },
6662
6663 {
6664 .vendor = "GigaDevice",
Alan Green86fc9cf2019-08-26 15:02:12 +10006665 .name = "GD25Q256D",
6666 .bustype = BUS_SPI,
6667 .manufacture_id = GIGADEVICE_ID,
6668 .model_id = GIGADEVICE_GD25Q256D,
6669 .total_size = 32768,
6670 .page_size = 256,
6671 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Nikolai Artemieve64ef6d2021-03-23 17:15:40 +11006672 .tested = TEST_OK_PREW,
Alan Green86fc9cf2019-08-26 15:02:12 +10006673 .probe = probe_spi_rdid,
6674 .probe_timing = TIMING_ZERO,
6675 .block_erasers =
6676 {
6677 {
6678 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber5374dc32019-10-04 16:16:15 +02006679 .block_erase = spi_block_erase_21,
6680 }, {
6681 .eraseblocks = { {4 * 1024, 8192} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006682 .block_erase = spi_block_erase_20,
6683 }, {
6684 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber5374dc32019-10-04 16:16:15 +02006685 .block_erase = spi_block_erase_5c,
6686 }, {
6687 .eraseblocks = { {32 * 1024, 1024} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006688 .block_erase = spi_block_erase_52,
6689 }, {
6690 .eraseblocks = { {64 * 1024, 512} },
Nico Huber5374dc32019-10-04 16:16:15 +02006691 .block_erase = spi_block_erase_dc,
6692 }, {
6693 .eraseblocks = { {64 * 1024, 512} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006694 .block_erase = spi_block_erase_d8,
6695 }, {
6696 .eraseblocks = { {32 * 1024 * 1024, 1} },
6697 .block_erase = spi_block_erase_60,
6698 }, {
6699 .eraseblocks = { {32 * 1024 * 1024, 1} },
6700 .block_erase = spi_block_erase_c7,
6701 }
6702 },
6703 .printlock = spi_prettyprint_status_register_bp3_srwd,
6704 .unlock = spi_disable_blockprotect,
6705 .write = spi_chip_write_256,
6706 .read = spi_chip_read,
6707 .voltage = {2700, 3600},
6708 },
6709
6710 {
6711 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006712 .name = "GD25Q32(B)",
6713 .bustype = BUS_SPI,
6714 .manufacture_id = GIGADEVICE_ID,
6715 .model_id = GIGADEVICE_GD25Q32,
6716 .total_size = 4096,
6717 .page_size = 256,
6718 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6719 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6720 .tested = TEST_OK_PREW,
6721 .probe = probe_spi_rdid,
6722 .probe_timing = TIMING_ZERO,
6723 .block_erasers =
6724 {
6725 {
6726 .eraseblocks = { {4 * 1024, 1024} },
6727 .block_erase = spi_block_erase_20,
6728 }, {
6729 .eraseblocks = { {32 * 1024, 128} },
6730 .block_erase = spi_block_erase_52,
6731 }, {
6732 .eraseblocks = { {64 * 1024, 64} },
6733 .block_erase = spi_block_erase_d8,
6734 }, {
6735 .eraseblocks = { {4 * 1024 * 1024, 1} },
6736 .block_erase = spi_block_erase_60,
6737 }, {
6738 .eraseblocks = { {4 * 1024 * 1024, 1} },
6739 .block_erase = spi_block_erase_c7,
6740 }
6741 },
6742 .printlock = spi_prettyprint_status_register_bp4_srwd,
6743 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6744 .write = spi_chip_write_256,
6745 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6746 .voltage = {2700, 3600},
6747 },
6748
6749 {
6750 .vendor = "GigaDevice",
6751 .name = "GD25Q40(B)",
6752 .bustype = BUS_SPI,
6753 .manufacture_id = GIGADEVICE_ID,
6754 .model_id = GIGADEVICE_GD25Q40,
6755 .total_size = 512,
6756 .page_size = 256,
6757 .feature_bits = FEATURE_WRSR_WREN,
6758 .tested = TEST_UNTESTED,
6759 .probe = probe_spi_rdid,
6760 .probe_timing = TIMING_ZERO,
6761 .block_erasers =
6762 {
6763 {
6764 .eraseblocks = { {4 * 1024, 128} },
6765 .block_erase = spi_block_erase_20,
6766 }, {
6767 .eraseblocks = { {32 * 1024, 16} },
6768 .block_erase = spi_block_erase_52,
6769 }, {
6770 .eraseblocks = { {64 * 1024, 8} },
6771 .block_erase = spi_block_erase_d8,
6772 }, {
6773 .eraseblocks = { {512 * 1024, 1} },
6774 .block_erase = spi_block_erase_60,
6775 }, {
6776 .eraseblocks = { {512 * 1024, 1} },
6777 .block_erase = spi_block_erase_c7,
6778 }
6779 },
6780 .printlock = spi_prettyprint_status_register_bp4_srwd,
6781 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6782 .write = spi_chip_write_256,
6783 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6784 .voltage = {2700, 3600},
6785 },
6786
6787 {
6788 .vendor = "GigaDevice",
6789 .name = "GD25Q512",
6790 .bustype = BUS_SPI,
6791 .manufacture_id = GIGADEVICE_ID,
6792 .model_id = GIGADEVICE_GD25Q512,
6793 .total_size = 64,
6794 .page_size = 256,
6795 .feature_bits = FEATURE_WRSR_WREN,
6796 .tested = TEST_OK_PREW,
6797 .probe = probe_spi_rdid,
6798 .probe_timing = TIMING_ZERO,
6799 .block_erasers =
6800 {
6801 {
6802 .eraseblocks = { {4 * 1024, 16} },
6803 .block_erase = spi_block_erase_20,
6804 }, {
6805 .eraseblocks = { {32 * 1024, 2} },
6806 .block_erase = spi_block_erase_52,
6807 }, {
6808 .eraseblocks = { {64 * 1024, 1} },
6809 .block_erase = spi_block_erase_60,
6810 }, {
6811 .eraseblocks = { {64 * 1024, 1} },
6812 .block_erase = spi_block_erase_c7,
6813 }
6814 },
6815 .printlock = spi_prettyprint_status_register_bp4_srwd,
6816 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6817 .write = spi_chip_write_256,
6818 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6819 .voltage = {2700, 3600},
6820 },
6821
6822 {
6823 .vendor = "GigaDevice",
6824 .name = "GD25Q64(B)",
6825 .bustype = BUS_SPI,
6826 .manufacture_id = GIGADEVICE_ID,
6827 .model_id = GIGADEVICE_GD25Q64,
6828 .total_size = 8192,
6829 .page_size = 256,
6830 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6831 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6832 .tested = TEST_OK_PREW,
6833 .probe = probe_spi_rdid,
6834 .probe_timing = TIMING_ZERO,
6835 .block_erasers =
6836 {
6837 {
6838 .eraseblocks = { {4 * 1024, 2048} },
6839 .block_erase = spi_block_erase_20,
6840 }, {
6841 .eraseblocks = { {32 * 1024, 256} },
6842 .block_erase = spi_block_erase_52,
6843 }, {
6844 .eraseblocks = { {64 * 1024, 128} },
6845 .block_erase = spi_block_erase_d8,
6846 }, {
6847 .eraseblocks = { {8 * 1024 * 1024, 1} },
6848 .block_erase = spi_block_erase_60,
6849 }, {
6850 .eraseblocks = { {8 * 1024 * 1024, 1} },
6851 .block_erase = spi_block_erase_c7,
6852 }
6853 },
6854 .printlock = spi_prettyprint_status_register_bp4_srwd,
6855 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6856 .write = spi_chip_write_256,
6857 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6858 .voltage = {2700, 3600},
6859 },
6860
6861 {
6862 .vendor = "GigaDevice",
6863 .name = "GD25Q80(B)",
6864 .bustype = BUS_SPI,
6865 .manufacture_id = GIGADEVICE_ID,
6866 .model_id = GIGADEVICE_GD25Q80,
6867 .total_size = 1024,
6868 .page_size = 256,
6869 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6870 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6871 .tested = TEST_OK_PREW,
6872 .probe = probe_spi_rdid,
6873 .probe_timing = TIMING_ZERO,
6874 .block_erasers =
6875 {
6876 {
6877 .eraseblocks = { {4 * 1024, 256} },
6878 .block_erase = spi_block_erase_20,
6879 }, {
6880 .eraseblocks = { {32 * 1024, 32} },
6881 .block_erase = spi_block_erase_52,
6882 }, {
6883 .eraseblocks = { {64 * 1024, 16} },
6884 .block_erase = spi_block_erase_d8,
6885 }, {
6886 .eraseblocks = { {1024 * 1024, 1} },
6887 .block_erase = spi_block_erase_60,
6888 }, {
6889 .eraseblocks = { {1024 * 1024, 1} },
6890 .block_erase = spi_block_erase_c7,
6891 }
6892 },
6893 .printlock = spi_prettyprint_status_register_bp4_srwd,
6894 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6895 .write = spi_chip_write_256,
6896 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6897 .voltage = {2700, 3600},
6898 },
6899
6900 {
6901 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006902 .name = "GD25T80",
6903 .bustype = BUS_SPI,
6904 .manufacture_id = GIGADEVICE_ID,
6905 .model_id = GIGADEVICE_GD25T80,
6906 .total_size = 1024,
6907 .page_size = 256,
6908 /* OTP: 256B total; enter 0x3A */
6909 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6910 .tested = TEST_UNTESTED,
6911 .probe = probe_spi_rdid,
6912 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006913 .block_erasers =
6914 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006915 {
6916 .eraseblocks = { {4 * 1024, 256} },
6917 .block_erase = spi_block_erase_20,
6918 }, {
6919 .eraseblocks = { {64 * 1024, 16} },
6920 .block_erase = spi_block_erase_52,
6921 }, {
6922 .eraseblocks = { {64 * 1024, 16} },
6923 .block_erase = spi_block_erase_d8,
6924 }, {
6925 .eraseblocks = { {1024 * 1024, 1} },
6926 .block_erase = spi_block_erase_60,
6927 }, {
6928 .eraseblocks = { {1024 * 1024, 1} },
6929 .block_erase = spi_block_erase_c7,
6930 }
6931 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006932 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006933 .unlock = spi_disable_blockprotect,
6934 .write = spi_chip_write_256,
6935 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006936 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006937 },
6938
6939 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006940 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006941 .name = "GD25VQ16C",
6942 .bustype = BUS_SPI,
6943 .manufacture_id = GIGADEVICE_ID,
6944 .model_id = GIGADEVICE_GD25VQ16C,
6945 .total_size = 2 * 1024,
6946 .page_size = 256,
6947 /* Supports SFDP */
6948 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6949 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6950 .tested = TEST_UNTESTED,
6951 .probe = probe_spi_rdid,
6952 .probe_timing = TIMING_ZERO,
6953 .block_erasers =
6954 {
6955 {
6956 .eraseblocks = { { 4 * 1024, 512} },
6957 .block_erase = spi_block_erase_20,
6958 }, {
6959 .eraseblocks = { { 32 * 1024, 64} },
6960 .block_erase = spi_block_erase_52,
6961 }, {
6962 .eraseblocks = { { 64 * 1024, 32} },
6963 .block_erase = spi_block_erase_d8,
6964 }, {
6965 .eraseblocks = { {2 * 1024 * 1024, 1} },
6966 .block_erase = spi_block_erase_60,
6967 }, {
6968 .eraseblocks = { {2 * 1024 * 1024, 1} },
6969 .block_erase = spi_block_erase_c7,
6970 }
6971 },
6972 .printlock = spi_prettyprint_status_register_bp4_srwd,
6973 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6974 .write = spi_chip_write_256,
6975 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6976 .voltage = {2300, 3600},
6977 },
6978
6979 {
6980 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006981 .name = "GD25VQ21B",
6982 .bustype = BUS_SPI,
6983 .manufacture_id = GIGADEVICE_ID,
6984 .model_id = GIGADEVICE_GD25VQ21B,
6985 .total_size = 256,
6986 .page_size = 256,
6987 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6988 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6989 .tested = TEST_UNTESTED,
6990 .probe = probe_spi_rdid,
6991 .probe_timing = TIMING_ZERO,
6992 .block_erasers =
6993 {
6994 {
6995 .eraseblocks = { { 4 * 1024, 64} },
6996 .block_erase = spi_block_erase_20,
6997 }, {
6998 .eraseblocks = { { 32 * 1024, 8} },
6999 .block_erase = spi_block_erase_52,
7000 }, {
7001 .eraseblocks = { { 64 * 1024, 4} },
7002 .block_erase = spi_block_erase_d8,
7003 }, {
7004 .eraseblocks = { {256 * 1024, 1} },
7005 .block_erase = spi_block_erase_60,
7006 }, {
7007 .eraseblocks = { {256 * 1024, 1} },
7008 .block_erase = spi_block_erase_c7,
7009 }
7010 },
7011 .printlock = spi_prettyprint_status_register_bp4_srwd,
7012 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7013 .write = spi_chip_write_256,
7014 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7015 .voltage = {2300, 3600},
7016 },
7017
7018 {
7019 .vendor = "GigaDevice",
7020 .name = "GD25VQ40C",
7021 .bustype = BUS_SPI,
7022 .manufacture_id = GIGADEVICE_ID,
7023 .model_id = GIGADEVICE_GD25VQ41B,
7024 .total_size = 512,
7025 .page_size = 256,
7026 /* Supports SFDP */
7027 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7028 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7029 .tested = TEST_UNTESTED,
7030 .probe = probe_spi_rdid,
7031 .probe_timing = TIMING_ZERO,
7032 .block_erasers =
7033 {
7034 {
7035 .eraseblocks = { { 4 * 1024, 128} },
7036 .block_erase = spi_block_erase_20,
7037 }, {
7038 .eraseblocks = { { 32 * 1024, 16} },
7039 .block_erase = spi_block_erase_52,
7040 }, {
7041 .eraseblocks = { { 64 * 1024, 8} },
7042 .block_erase = spi_block_erase_d8,
7043 }, {
7044 .eraseblocks = { {512 * 1024, 1} },
7045 .block_erase = spi_block_erase_60,
7046 }, {
7047 .eraseblocks = { {512 * 1024, 1} },
7048 .block_erase = spi_block_erase_c7,
7049 }
7050 },
7051 .printlock = spi_prettyprint_status_register_bp4_srwd,
7052 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7053 .write = spi_chip_write_256,
7054 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7055 .voltage = {2300, 3600},
7056 },
7057
7058 {
7059 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007060 .name = "GD25VQ41B",
7061 .bustype = BUS_SPI,
7062 .manufacture_id = GIGADEVICE_ID,
7063 .model_id = GIGADEVICE_GD25VQ41B,
7064 .total_size = 512,
7065 .page_size = 256,
7066 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
7067 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007068 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007069 .probe = probe_spi_rdid,
7070 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007071 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007072 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00007073 {
7074 .eraseblocks = { { 4 * 1024, 128} },
7075 .block_erase = spi_block_erase_20,
7076 }, {
7077 .eraseblocks = { { 32 * 1024, 16} },
7078 .block_erase = spi_block_erase_52,
7079 }, {
7080 .eraseblocks = { { 64 * 1024, 8} },
7081 .block_erase = spi_block_erase_d8,
7082 }, {
7083 .eraseblocks = { {512 * 1024, 1} },
7084 .block_erase = spi_block_erase_60,
7085 }, {
7086 .eraseblocks = { {512 * 1024, 1} },
7087 .block_erase = spi_block_erase_c7,
7088 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007089 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007090 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007091 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7092 .write = spi_chip_write_256,
7093 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7094 .voltage = {2300, 3600},
7095 },
7096
7097 {
7098 .vendor = "GigaDevice",
7099 .name = "GD25VQ80C",
7100 .bustype = BUS_SPI,
7101 .manufacture_id = GIGADEVICE_ID,
7102 .model_id = GIGADEVICE_GD25VQ80C,
7103 .total_size = 1024,
7104 .page_size = 256,
7105 /* Supports SFDP */
7106 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7107 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7108 .tested = TEST_UNTESTED,
7109 .probe = probe_spi_rdid,
7110 .probe_timing = TIMING_ZERO,
7111 .block_erasers =
7112 {
7113 {
7114 .eraseblocks = { { 4 * 1024, 256} },
7115 .block_erase = spi_block_erase_20,
7116 }, {
7117 .eraseblocks = { { 32 * 1024, 32} },
7118 .block_erase = spi_block_erase_52,
7119 }, {
7120 .eraseblocks = { { 64 * 1024, 16} },
7121 .block_erase = spi_block_erase_d8,
7122 }, {
7123 .eraseblocks = { {1024 * 1024, 1} },
7124 .block_erase = spi_block_erase_60,
7125 }, {
7126 .eraseblocks = { {1024 * 1024, 1} },
7127 .block_erase = spi_block_erase_c7,
7128 }
7129 },
7130 .printlock = spi_prettyprint_status_register_bp4_srwd,
7131 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7132 .write = spi_chip_write_256,
7133 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7134 .voltage = {2300, 3600},
7135 },
7136
7137 {
Dino Li3214f582020-03-25 17:39:53 +08007138 .vendor = "GigaDevice",
7139 .name = "GD25WQ80E",
7140 .bustype = BUS_SPI,
7141 .manufacture_id = GIGADEVICE_ID,
7142 .model_id = GIGADEVICE_GD25WQ80E,
7143 .total_size = 1024,
7144 .page_size = 256,
7145 .feature_bits = FEATURE_WRSR_WREN,
7146 .tested = TEST_OK_PREW,
7147 .probe = probe_spi_rdid,
7148 .probe_timing = TIMING_ZERO,
7149 .block_erasers =
7150 {
7151 {
7152 .eraseblocks = { {4 * 1024, 256} },
7153 .block_erase = spi_block_erase_20,
7154 }, {
7155 .eraseblocks = { {32 * 1024, 32} },
7156 .block_erase = spi_block_erase_52,
7157 }, {
7158 .eraseblocks = { {64 * 1024, 16} },
7159 .block_erase = spi_block_erase_d8,
7160 }, {
7161 .eraseblocks = { {1 * 1024 * 1024, 1} },
7162 .block_erase = spi_block_erase_60,
7163 }, {
7164 .eraseblocks = { {1 * 1024 * 1024, 1} },
7165 .block_erase = spi_block_erase_c7,
7166 }
7167 },
7168 .printlock = spi_prettyprint_status_register_bp4_srwd,
7169 .unlock = spi_disable_blockprotect_bp4_srwd,
7170 .write = spi_chip_write_256,
7171 .read = spi_chip_read,
7172 .voltage = {1650, 3600},
7173 },
7174
7175 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007176 .vendor = "Hyundai",
7177 .name = "HY29F002B",
7178 .bustype = BUS_PARALLEL,
7179 .manufacture_id = HYUNDAI_ID,
7180 .model_id = HYUNDAI_HY29F002B,
7181 .total_size = 256,
7182 .page_size = 256 * 1024,
7183 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007184 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007185 .probe = probe_jedec,
7186 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007187 .block_erasers =
7188 {
7189 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007190 .eraseblocks = {
7191 {16 * 1024, 1},
7192 {8 * 1024, 2},
7193 {32 * 1024, 1},
7194 {64 * 1024, 3},
7195 },
7196 .block_erase = erase_sector_jedec,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007197 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007198 .eraseblocks = { {256 * 1024, 1} },
7199 .block_erase = erase_chip_block_jedec,
7200 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007201 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007202 .write = write_jedec_1,
7203 .read = read_memmapped,
7204 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007205 },
7206
7207 {
David Borgc96a8bd2010-06-21 16:12:22 +00007208 .vendor = "Hyundai",
7209 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007210 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00007211 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007212 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00007213 .total_size = 256,
7214 .page_size = 256 * 1024,
7215 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007216 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00007217 .probe = probe_jedec,
7218 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7219 .block_erasers =
7220 {
7221 {
7222 .eraseblocks = {
7223 {64 * 1024, 3},
7224 {32 * 1024, 1},
7225 {8 * 1024, 2},
7226 {16 * 1024, 1},
7227 },
7228 .block_erase = erase_sector_jedec,
7229 }, {
7230 .eraseblocks = { {256 * 1024, 1} },
7231 .block_erase = erase_chip_block_jedec,
7232 },
7233 },
7234 .write = write_jedec_1,
7235 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007236 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00007237 },
7238
7239 {
7240 .vendor = "Hyundai",
Joshua Roysf1324e02010-09-16 00:51:51 +00007241 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007242 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007243 .manufacture_id = HYUNDAI_ID,
7244 .model_id = HYUNDAI_HY29F040A,
7245 .total_size = 512,
7246 .page_size = 64 * 1024,
7247 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7248 .tested = TEST_UNTESTED,
7249 .probe = probe_jedec,
7250 .probe_timing = TIMING_ZERO,
7251 .block_erasers =
7252 {
7253 {
7254 .eraseblocks = { {64 * 1024, 8} },
7255 .block_erase = erase_sector_jedec,
7256 }, {
7257 .eraseblocks = { {512 * 1024, 1} },
7258 .block_erase = erase_chip_block_jedec,
7259 },
7260 },
7261 .write = write_jedec_1,
7262 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007263 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00007264 },
7265
7266 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007267 .vendor = "ISSI",
Angel Pons2ef47f32018-09-30 16:47:30 +02007268 .name = "IS25LP064",
7269 .bustype = BUS_SPI,
7270 .manufacture_id = ISSI_ID_SPI,
7271 .model_id = ISSI_IS25LP064,
7272 .total_size = 8192,
7273 .page_size = 256,
7274 /* OTP: 1024B total; read 0x48; write 0x42 */
7275 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7276 .tested = TEST_UNTESTED,
7277 .probe = probe_spi_rdid,
7278 .probe_timing = TIMING_ZERO,
7279 .block_erasers =
7280 {
7281 {
7282 .eraseblocks = { {4 * 1024, 2048} },
7283 .block_erase = spi_block_erase_20,
7284 }, {
7285 .eraseblocks = { {4 * 1024, 2048} },
7286 .block_erase = spi_block_erase_d7,
7287 }, {
7288 .eraseblocks = { {32 * 1024, 256} },
7289 .block_erase = spi_block_erase_52,
7290 }, {
7291 .eraseblocks = { {64 * 1024, 128} },
7292 .block_erase = spi_block_erase_d8,
7293 }, {
7294 .eraseblocks = { {8 * 1024 * 1024, 1} },
7295 .block_erase = spi_block_erase_60,
7296 }, {
7297 .eraseblocks = { {8 * 1024 * 1024, 1} },
7298 .block_erase = spi_block_erase_c7,
7299 }
7300 },
7301 .unlock = spi_disable_blockprotect,
7302 .write = spi_chip_write_256,
7303 .read = spi_chip_read,
7304 .voltage = {2300, 3600},
7305 },
7306
7307 {
7308 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007309 .name = "IS25LP128",
7310 .bustype = BUS_SPI,
7311 .manufacture_id = ISSI_ID_SPI,
7312 .model_id = ISSI_IS25LP128,
7313 .total_size = 16384,
7314 .page_size = 256,
7315 /* OTP: 1024B total; read 0x48; write 0x42 */
7316 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7317 .tested = TEST_OK_PREW,
7318 .probe = probe_spi_rdid,
7319 .probe_timing = TIMING_ZERO,
7320 .block_erasers =
7321 {
7322 {
7323 .eraseblocks = { {4 * 1024, 4096} },
7324 .block_erase = spi_block_erase_20,
7325 }, {
7326 .eraseblocks = { {4 * 1024, 4096} },
7327 .block_erase = spi_block_erase_d7,
7328 }, {
7329 .eraseblocks = { {32 * 1024, 512} },
7330 .block_erase = spi_block_erase_52,
7331 }, {
7332 .eraseblocks = { {64 * 1024, 256} },
7333 .block_erase = spi_block_erase_d8,
7334 }, {
7335 .eraseblocks = { {16 * 1024 * 1024, 1} },
7336 .block_erase = spi_block_erase_60,
7337 }, {
7338 .eraseblocks = { {16 * 1024 * 1024, 1} },
7339 .block_erase = spi_block_erase_c7,
7340 }
7341 },
7342 .unlock = spi_disable_blockprotect,
7343 .write = spi_chip_write_256,
7344 .read = spi_chip_read,
7345 .voltage = {2300, 3600},
7346 },
7347
7348 {
7349 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007350 .name = "IS25LP256",
7351 .bustype = BUS_SPI,
7352 .manufacture_id = ISSI_ID_SPI,
7353 .model_id = ISSI_IS25LP256,
7354 .total_size = 32768,
7355 .page_size = 256,
7356 /* supports SFDP */
7357 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7358 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7359 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7360 .tested = TEST_OK_PREW,
7361 .probe = probe_spi_rdid,
7362 .probe_timing = TIMING_ZERO,
7363 .block_erasers =
7364 {
7365 {
7366 .eraseblocks = { {4 * 1024, 8192} },
7367 .block_erase = spi_block_erase_21,
7368 }, {
7369 .eraseblocks = { {4 * 1024, 8192} },
7370 .block_erase = spi_block_erase_20,
7371 /* could also use spi_block_erase_d7 */
7372 }, {
7373 .eraseblocks = { {32 * 1024, 1024} },
7374 .block_erase = spi_block_erase_5c,
7375 }, {
7376 .eraseblocks = { {32 * 1024, 1024} },
7377 .block_erase = spi_block_erase_52,
7378 }, {
7379 .eraseblocks = { {64 * 1024, 512} },
7380 .block_erase = spi_block_erase_dc,
7381 }, {
7382 .eraseblocks = { {64 * 1024, 512} },
7383 .block_erase = spi_block_erase_d8,
7384 }, {
7385 .eraseblocks = { {32 * 1024 * 1024, 1} },
7386 .block_erase = spi_block_erase_60,
7387 }, {
7388 .eraseblocks = { {32 * 1024 * 1024, 1} },
7389 .block_erase = spi_block_erase_c7,
7390 }
7391 },
7392 .unlock = spi_disable_blockprotect,
7393 .write = spi_chip_write_256,
7394 .read = spi_chip_read,
7395 .voltage = {2300, 3600},
7396 },
7397
7398 {
7399 .vendor = "ISSI",
Nico Huberb27b8d12018-10-02 20:46:21 +02007400 .name = "IS25WP032",
7401 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007402 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007403 .model_id = ISSI_IS25WP032,
7404 .total_size = 4096,
7405 .page_size = 256,
7406 /* OTP: 1024B total; read 0x48; write 0x42 */
7407 /* QPI enable 0x35, disable 0xF5 */
7408 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7409 .tested = TEST_UNTESTED,
7410 .probe = probe_spi_rdid,
7411 .probe_timing = TIMING_ZERO,
7412 .block_erasers =
7413 {
7414 {
7415 .eraseblocks = { {4 * 1024, 1024} },
7416 .block_erase = spi_block_erase_20,
7417 }, {
7418 .eraseblocks = { {4 * 1024, 1024} },
7419 .block_erase = spi_block_erase_d7,
7420 }, {
7421 .eraseblocks = { {32 * 1024, 128} },
7422 .block_erase = spi_block_erase_52,
7423 }, {
7424 .eraseblocks = { {64 * 1024, 64} },
7425 .block_erase = spi_block_erase_d8,
7426 }, {
7427 .eraseblocks = { {4 * 1024 * 1024, 1} },
7428 .block_erase = spi_block_erase_60,
7429 }, {
7430 .eraseblocks = { {4 * 1024 * 1024, 1} },
7431 .block_erase = spi_block_erase_c7,
7432 }
7433 },
7434 .unlock = spi_disable_blockprotect,
7435 .write = spi_chip_write_256,
7436 .read = spi_chip_read,
7437 .voltage = {1650, 1950},
7438 },
7439
7440 {
7441 .vendor = "ISSI",
7442 .name = "IS25WP064",
7443 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007444 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007445 .model_id = ISSI_IS25WP064,
7446 .total_size = 8192,
7447 .page_size = 256,
7448 /* OTP: 1024B total; read 0x48; write 0x42 */
7449 /* QPI enable 0x35, disable 0xF5 */
7450 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7451 .tested = TEST_OK_PREW,
7452 .probe = probe_spi_rdid,
7453 .probe_timing = TIMING_ZERO,
7454 .block_erasers =
7455 {
7456 {
7457 .eraseblocks = { {4 * 1024, 2048} },
7458 .block_erase = spi_block_erase_20,
7459 }, {
7460 .eraseblocks = { {4 * 1024, 2048} },
7461 .block_erase = spi_block_erase_d7,
7462 }, {
7463 .eraseblocks = { {32 * 1024, 256} },
7464 .block_erase = spi_block_erase_52,
7465 }, {
7466 .eraseblocks = { {64 * 1024, 128} },
7467 .block_erase = spi_block_erase_d8,
7468 }, {
7469 .eraseblocks = { {8 * 1024 * 1024, 1} },
7470 .block_erase = spi_block_erase_60,
7471 }, {
7472 .eraseblocks = { {8 * 1024 * 1024, 1} },
7473 .block_erase = spi_block_erase_c7,
7474 }
7475 },
7476 .unlock = spi_disable_blockprotect,
7477 .write = spi_chip_write_256,
7478 .read = spi_chip_read,
7479 .voltage = {1650, 1950},
7480 },
7481
7482 {
7483 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007484 .name = "IS25WP128",
7485 .bustype = BUS_SPI,
7486 .manufacture_id = ISSI_ID_SPI,
7487 .model_id = ISSI_IS25WP128,
7488 .total_size = 16384,
7489 .page_size = 256,
7490 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huberb27b8d12018-10-02 20:46:21 +02007491 /* QPI enable 0x35, disable 0xF5 */
7492 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks3083ed92017-05-02 13:25:56 -07007493 .tested = TEST_OK_PREW,
7494 .probe = probe_spi_rdid,
7495 .probe_timing = TIMING_ZERO,
7496 .block_erasers =
7497 {
7498 {
7499 .eraseblocks = { {4 * 1024, 4096} },
7500 .block_erase = spi_block_erase_20,
7501 }, {
7502 .eraseblocks = { {4 * 1024, 4096} },
7503 .block_erase = spi_block_erase_d7,
7504 }, {
7505 .eraseblocks = { {32 * 1024, 512} },
7506 .block_erase = spi_block_erase_52,
7507 }, {
7508 .eraseblocks = { {64 * 1024, 256} },
7509 .block_erase = spi_block_erase_d8,
7510 }, {
7511 .eraseblocks = { {16 * 1024 * 1024, 1} },
7512 .block_erase = spi_block_erase_60,
7513 }, {
7514 .eraseblocks = { {16 * 1024 * 1024, 1} },
7515 .block_erase = spi_block_erase_c7,
7516 }
7517 },
7518 .unlock = spi_disable_blockprotect,
7519 .write = spi_chip_write_256,
7520 .read = spi_chip_read,
7521 .voltage = {1650, 1950},
7522 },
7523
7524 {
7525 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007526 .name = "IS25WP256",
7527 .bustype = BUS_SPI,
7528 .manufacture_id = ISSI_ID_SPI,
7529 .model_id = ISSI_IS25WP256,
7530 .total_size = 32768,
7531 .page_size = 256,
7532 /* supports SFDP */
7533 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7534 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7535 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7536 .tested = TEST_OK_PREW,
7537 .probe = probe_spi_rdid,
7538 .probe_timing = TIMING_ZERO,
7539 .block_erasers =
7540 {
7541 {
7542 .eraseblocks = { {4 * 1024, 8192} },
7543 .block_erase = spi_block_erase_21,
7544 }, {
7545 .eraseblocks = { {4 * 1024, 8192} },
7546 .block_erase = spi_block_erase_20,
7547 /* could also use spi_block_erase_d7 */
7548 }, {
7549 .eraseblocks = { {32 * 1024, 1024} },
7550 .block_erase = spi_block_erase_5c,
7551 }, {
7552 .eraseblocks = { {32 * 1024, 1024} },
7553 .block_erase = spi_block_erase_52,
7554 }, {
7555 .eraseblocks = { {64 * 1024, 512} },
7556 .block_erase = spi_block_erase_dc,
7557 }, {
7558 .eraseblocks = { {64 * 1024, 512} },
7559 .block_erase = spi_block_erase_d8,
7560 }, {
7561 .eraseblocks = { {32 * 1024 * 1024, 1} },
7562 .block_erase = spi_block_erase_60,
7563 }, {
7564 .eraseblocks = { {32 * 1024 * 1024, 1} },
7565 .block_erase = spi_block_erase_c7,
7566 }
7567 },
7568 .unlock = spi_disable_blockprotect,
7569 .write = spi_chip_write_256,
7570 .read = spi_chip_read,
7571 .voltage = {1650, 1950},
7572 },
7573
7574 {
7575 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007576 .name = "IS29GL064B",
7577 .bustype = BUS_PARALLEL,
7578 .manufacture_id = ISSI_ID,
7579 .model_id = ISSI_PMC_IS29GL064B,
7580 .total_size = 8192,
7581 .page_size = 128 * 1024, /* actual page size is 16 */
7582 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7583 .tested = TEST_UNTESTED,
7584 .probe = probe_jedec_29gl,
7585 .probe_timing = TIMING_ZERO,
7586 .block_erasers =
7587 {
7588 {
7589 .eraseblocks = {
7590 {8 * 1024, 8},
7591 {64 * 1024, 127},
7592 },
7593 .block_erase = erase_sector_jedec,
7594 }, {
7595 .eraseblocks = { {8 * 1024 * 1024, 1} },
7596 .block_erase = erase_chip_block_jedec,
7597 },
7598 },
7599 .write = write_jedec_1,
7600 .read = read_memmapped,
7601 .voltage = {2700, 3600},
7602 },
7603
7604 {
7605 .vendor = "ISSI",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007606 .name = "IS29GL064H/L",
7607 .bustype = BUS_PARALLEL,
7608 .manufacture_id = ISSI_ID,
7609 .model_id = ISSI_PMC_IS29GL064HL,
7610 .total_size = 8192,
7611 .page_size = 128 * 1024, /* actual page size is 16 */
7612 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7613 .tested = TEST_UNTESTED,
7614 .probe = probe_jedec_29gl,
7615 .probe_timing = TIMING_ZERO,
7616 .block_erasers =
7617 {
7618 {
7619 .eraseblocks = { {64 * 1024, 128} },
7620 .block_erase = erase_sector_jedec,
7621 }, {
7622 .eraseblocks = { {8 * 1024 * 1024, 1} },
7623 .block_erase = erase_chip_block_jedec,
7624 },
7625 },
7626 .write = write_jedec_1,
7627 .read = read_memmapped,
7628 .voltage = {2700, 3600},
7629 },
7630
7631 {
7632 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007633 .name = "IS29GL064T",
7634 .bustype = BUS_PARALLEL,
7635 .manufacture_id = ISSI_ID,
7636 .model_id = ISSI_PMC_IS29GL064T,
7637 .total_size = 8192,
7638 .page_size = 128 * 1024, /* actual page size is 16 */
7639 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7640 .tested = TEST_UNTESTED,
7641 .probe = probe_jedec_29gl,
7642 .probe_timing = TIMING_ZERO,
7643 .block_erasers =
7644 {
7645 {
7646 .eraseblocks = {
7647 {64 * 1024, 127},
7648 {8 * 1024, 8},
7649 },
7650 .block_erase = erase_sector_jedec,
7651 }, {
7652 .eraseblocks = { {8 * 1024 * 1024, 1} },
7653 .block_erase = erase_chip_block_jedec,
7654 },
7655 },
7656 .write = write_jedec_1,
7657 .read = read_memmapped,
7658 .voltage = {2700, 3600},
7659 },
7660
7661 {
7662 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007663 .name = "IS29GL128H/L",
7664 .bustype = BUS_PARALLEL,
7665 .manufacture_id = ISSI_ID,
7666 .model_id = ISSI_PMC_IS29GL128HL,
7667 .total_size = 16384,
7668 .page_size = 128 * 1024, /* actual page size is 16 */
7669 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7670 .tested = TEST_UNTESTED,
7671 .probe = probe_jedec_29gl,
7672 .probe_timing = TIMING_ZERO,
7673 .block_erasers =
7674 {
7675 {
7676 .eraseblocks = { {128 * 1024, 128} },
7677 .block_erase = erase_sector_jedec,
7678 }, {
7679 .eraseblocks = { {16 * 1024 * 1024, 1} },
7680 .block_erase = erase_chip_block_jedec,
7681 },
7682 },
7683 .write = write_jedec_1,
7684 .read = read_memmapped,
7685 .voltage = {2700, 3600},
7686 },
7687
7688 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007689 .vendor = "Intel",
7690 .name = "25F160S33B8",
7691 .bustype = BUS_SPI,
7692 .manufacture_id = INTEL_ID,
7693 .model_id = INTEL_25F160S33B8,
7694 .total_size = 2048,
7695 .page_size = 256,
7696 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7697 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7698 .tested = TEST_UNTESTED,
7699 .probe = probe_spi_rdid,
7700 .probe_timing = TIMING_ZERO,
7701 .block_erasers =
7702 {
7703 {
7704 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7705 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7706 * have no effect on the memory contents, but sets a flag in the SR.
7707 .eraseblocks = {
7708 {8 * 1024, 8},
7709 {64 * 1024, 31} // inaccessible
7710 },
7711 .block_erase = spi_block_erase_40,
7712 }, { */
7713 .eraseblocks = { {64 * 1024, 32} },
7714 .block_erase = spi_block_erase_d8,
7715 }, {
7716 .eraseblocks = { {2 * 1024 * 1024, 1} },
7717 .block_erase = spi_block_erase_c7,
7718 }
7719 },
7720 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7721 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7722 .write = spi_chip_write_256,
7723 .read = spi_chip_read, /* also fast read 0x0B */
7724 .voltage = {2700, 3600},
7725 },
7726
7727 {
7728 .vendor = "Intel",
7729 .name = "25F160S33T8",
7730 .bustype = BUS_SPI,
7731 .manufacture_id = INTEL_ID,
7732 .model_id = INTEL_25F160S33T8,
7733 .total_size = 2048,
7734 .page_size = 256,
7735 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7736 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7737 .tested = TEST_UNTESTED,
7738 .probe = probe_spi_rdid,
7739 .probe_timing = TIMING_ZERO,
7740 .block_erasers =
7741 {
7742 {
7743 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7744 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7745 * have no effect on the memory contents, but sets a flag in the SR.
7746 .eraseblocks = {
7747 {64 * 1024, 31}, // inaccessible
7748 {8 * 1024, 8}
7749 },
7750 .block_erase = spi_block_erase_40,
7751 }, { */
7752 .eraseblocks = { {64 * 1024, 32} },
7753 .block_erase = spi_block_erase_d8,
7754 }, {
7755 .eraseblocks = { {2 * 1024 * 1024, 1} },
7756 .block_erase = spi_block_erase_c7,
7757 }
7758 },
7759 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7760 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7761 .write = spi_chip_write_256,
7762 .read = spi_chip_read, /* also fast read 0x0B */
7763 .voltage = {2700, 3600},
7764 },
7765
7766 {
7767 .vendor = "Intel",
7768 .name = "25F320S33B8",
7769 .bustype = BUS_SPI,
7770 .manufacture_id = INTEL_ID,
7771 .model_id = INTEL_25F320S33B8,
7772 .total_size = 4096,
7773 .page_size = 256,
7774 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7775 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7776 .tested = TEST_UNTESTED,
7777 .probe = probe_spi_rdid,
7778 .probe_timing = TIMING_ZERO,
7779 .block_erasers =
7780 {
7781 {
7782 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7783 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7784 * have no effect on the memory contents, but sets a flag in the SR.
7785 .eraseblocks = {
7786 {8 * 1024, 8},
7787 {64 * 1024, 63} // inaccessible
7788 },
7789 .block_erase = spi_block_erase_40,
7790 }, { */
7791 .eraseblocks = { {64 * 1024, 64} },
7792 .block_erase = spi_block_erase_d8,
7793 }, {
7794 .eraseblocks = { {4 * 1024 * 1024, 1} },
7795 .block_erase = spi_block_erase_c7,
7796 }
7797 },
7798 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7799 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7800 .write = spi_chip_write_256,
7801 .read = spi_chip_read, /* also fast read 0x0B */
7802 .voltage = {2700, 3600},
7803 },
7804
7805 {
7806 .vendor = "Intel",
7807 .name = "25F320S33T8",
7808 .bustype = BUS_SPI,
7809 .manufacture_id = INTEL_ID,
7810 .model_id = INTEL_25F320S33T8,
7811 .total_size = 4096,
7812 .page_size = 256,
7813 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7814 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7815 .tested = TEST_UNTESTED,
7816 .probe = probe_spi_rdid,
7817 .probe_timing = TIMING_ZERO,
7818 .block_erasers =
7819 {
7820 {
7821 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7822 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7823 * have no effect on the memory contents, but sets a flag in the SR.
7824 .eraseblocks = {
7825 {64 * 1024, 63}, // inaccessible
7826 {8 * 1024, 8}
7827 },
7828 .block_erase = spi_block_erase_40,
7829 }, { */
7830 .eraseblocks = { {64 * 1024, 64} },
7831 .block_erase = spi_block_erase_d8,
7832 }, {
7833 .eraseblocks = { {4 * 1024 * 1024, 1} },
7834 .block_erase = spi_block_erase_c7,
7835 }
7836 },
7837 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7838 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7839 .write = spi_chip_write_256,
7840 .read = spi_chip_read, /* also fast read 0x0B */
7841 .voltage = {2700, 3600},
7842 },
7843
7844 {
7845 .vendor = "Intel",
7846 .name = "25F640S33B8",
7847 .bustype = BUS_SPI,
7848 .manufacture_id = INTEL_ID,
7849 .model_id = INTEL_25F640S33B8,
7850 .total_size = 8192,
7851 .page_size = 256,
7852 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7853 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Zoltan HERPAIe0e8b2b2020-08-08 16:04:34 +02007854 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007855 .probe = probe_spi_rdid,
7856 .probe_timing = TIMING_ZERO,
7857 .block_erasers =
7858 {
7859 {
7860 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7861 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7862 * have no effect on the memory contents, but sets a flag in the SR.
7863 .eraseblocks = {
7864 {8 * 1024, 8},
7865 {64 * 1024, 127} // inaccessible
7866 },
7867 .block_erase = spi_block_erase_40,
7868 }, { */
7869 .eraseblocks = { {64 * 1024, 128} },
7870 .block_erase = spi_block_erase_d8,
7871 }, {
7872 .eraseblocks = { {8 * 1024 * 1024, 1} },
7873 .block_erase = spi_block_erase_c7,
7874 }
7875 },
7876 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7877 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7878 .write = spi_chip_write_256,
7879 .read = spi_chip_read, /* also fast read 0x0B */
7880 .voltage = {2700, 3600},
7881 },
7882
7883 {
7884 .vendor = "Intel",
7885 .name = "25F640S33T8",
7886 .bustype = BUS_SPI,
7887 .manufacture_id = INTEL_ID,
7888 .model_id = INTEL_25F640S33T8,
7889 .total_size = 8192,
7890 .page_size = 256,
7891 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7892 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7893 .tested = TEST_UNTESTED,
7894 .probe = probe_spi_rdid,
7895 .probe_timing = TIMING_ZERO,
7896 .block_erasers =
7897 {
7898 {
7899 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7900 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7901 * have no effect on the memory contents, but sets a flag in the SR.
7902 .eraseblocks = {
7903 {64 * 1024, 127}, // inaccessible
7904 {8 * 1024, 8}
7905 },
7906 .block_erase = spi_block_erase_40,
7907 }, { */
7908 .eraseblocks = { {64 * 1024, 128} },
7909 .block_erase = spi_block_erase_d8,
7910 }, {
7911 .eraseblocks = { {8 * 1024 * 1024, 1} },
7912 .block_erase = spi_block_erase_c7,
7913 }
7914 },
7915 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7916 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7917 .write = spi_chip_write_256,
7918 .read = spi_chip_read, /* also fast read 0x0B */
7919 .voltage = {2700, 3600},
7920 },
7921
7922 {
7923 .vendor = "Intel",
7924 .name = "28F001BN/BX-B",
7925 .bustype = BUS_PARALLEL,
7926 .manufacture_id = INTEL_ID,
7927 .model_id = INTEL_28F001B,
7928 .total_size = 128,
7929 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
7930 .tested = TEST_UNTESTED,
7931 .probe = probe_jedec,
7932 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7933 .block_erasers =
7934 {
7935 {
7936 .eraseblocks = {
7937 {8 * 1024, 1},
7938 {4 * 1024, 2},
7939 {112 * 1024, 1},
7940 },
7941 .block_erase = erase_block_82802ab,
7942 },
7943 },
7944 .write = write_82802ab,
7945 .read = read_memmapped,
7946 .voltage = {4500, 5500},
7947 },
7948
7949 {
7950 .vendor = "Intel",
7951 .name = "28F001BN/BX-T",
7952 .bustype = BUS_PARALLEL,
7953 .manufacture_id = INTEL_ID,
7954 .model_id = INTEL_28F001T,
7955 .total_size = 128,
7956 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
7957 .tested = TEST_OK_PREW,
7958 .probe = probe_jedec,
7959 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7960 .block_erasers =
7961 {
7962 {
7963 .eraseblocks = {
7964 {112 * 1024, 1},
7965 {4 * 1024, 2},
7966 {8 * 1024, 1},
7967 },
7968 .block_erase = erase_block_82802ab,
7969 },
7970 },
7971 .write = write_82802ab,
7972 .read = read_memmapped,
7973 .voltage = {4500, 5500},
7974 },
7975
7976 {
7977 .vendor = "Intel",
7978 .name = "28F002BC/BL/BV/BX-T",
7979 .bustype = BUS_PARALLEL,
7980 .manufacture_id = INTEL_ID,
7981 .model_id = INTEL_28F002T,
7982 .total_size = 256,
7983 .page_size = 256 * 1024,
7984 .tested = TEST_OK_PRE,
7985 .probe = probe_82802ab,
7986 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7987 .block_erasers =
7988 {
7989 {
7990 .eraseblocks = {
7991 {128 * 1024, 1},
7992 {96 * 1024, 1},
7993 {8 * 1024, 2},
7994 {16 * 1024, 1},
7995 },
7996 .block_erase = erase_block_82802ab,
7997 },
7998 },
7999 .write = write_82802ab,
8000 .read = read_memmapped,
8001 },
8002
8003 {
8004 .vendor = "Intel",
8005 .name = "28F004B5/BE/BV/BX-B",
8006 .bustype = BUS_PARALLEL,
8007 .manufacture_id = INTEL_ID,
8008 .model_id = INTEL_28F004B,
8009 .total_size = 512,
8010 .page_size = 128 * 1024, /* maximal block size */
8011 .tested = TEST_UNTESTED,
8012 .probe = probe_82802ab,
8013 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8014 .block_erasers =
8015 {
8016 {
8017 .eraseblocks = {
8018 {16 * 1024, 1},
8019 {8 * 1024, 2},
8020 {96 * 1024, 1},
8021 {128 * 1024, 3},
8022 },
8023 .block_erase = erase_block_82802ab,
8024 },
8025 },
8026 .write = write_82802ab,
8027 .read = read_memmapped,
8028 },
8029
8030 {
8031 .vendor = "Intel",
8032 .name = "28F004B5/BE/BV/BX-T",
8033 .bustype = BUS_PARALLEL,
8034 .manufacture_id = INTEL_ID,
8035 .model_id = INTEL_28F004T,
8036 .total_size = 512,
8037 .page_size = 128 * 1024, /* maximal block size */
8038 .tested = TEST_UNTESTED,
8039 .probe = probe_82802ab,
8040 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8041 .block_erasers =
8042 {
8043 {
8044 .eraseblocks = {
8045 {128 * 1024, 3},
8046 {96 * 1024, 1},
8047 {8 * 1024, 2},
8048 {16 * 1024, 1},
8049 },
8050 .block_erase = erase_block_82802ab,
8051 },
8052 },
8053 .write = write_82802ab,
8054 .read = read_memmapped,
8055 },
8056
8057 {
8058 .vendor = "Intel",
8059 .name = "28F008S3/S5/SC",
8060 .bustype = BUS_PARALLEL,
8061 .manufacture_id = INTEL_ID,
8062 .model_id = INTEL_28F004S3,
8063 .total_size = 512,
8064 .page_size = 256,
8065 .tested = TEST_UNTESTED,
8066 .probe = probe_82802ab,
8067 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8068 .block_erasers =
8069 {
8070 {
8071 .eraseblocks = { {64 * 1024, 8} },
8072 .block_erase = erase_block_82802ab,
8073 },
8074 },
8075 .unlock = unlock_28f004s5,
8076 .write = write_82802ab,
8077 .read = read_memmapped,
8078 },
8079
8080 {
8081 .vendor = "Intel",
8082 .name = "28F400BV/BX/CE/CV-B",
8083 .bustype = BUS_PARALLEL,
8084 .manufacture_id = INTEL_ID,
8085 .model_id = INTEL_28F400B,
8086 .total_size = 512,
8087 .page_size = 128 * 1024, /* maximal block size */
8088 .feature_bits = FEATURE_ADDR_SHIFTED,
8089 .tested = TEST_UNTESTED,
8090 .probe = probe_82802ab,
8091 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8092 .block_erasers =
8093 {
8094 {
8095 .eraseblocks = {
8096 {16 * 1024, 1},
8097 {8 * 1024, 2},
8098 {96 * 1024, 1},
8099 {128 * 1024, 3},
8100 },
8101 .block_erase = erase_block_82802ab,
8102 },
8103 },
8104 .write = write_82802ab,
8105 .read = read_memmapped,
8106 },
8107
8108 {
8109 .vendor = "Intel",
8110 .name = "28F400BV/BX/CE/CV-T",
8111 .bustype = BUS_PARALLEL,
8112 .manufacture_id = INTEL_ID,
8113 .model_id = INTEL_28F400T,
8114 .total_size = 512,
8115 .page_size = 128 * 1024, /* maximal block size */
8116 .feature_bits = FEATURE_ADDR_SHIFTED,
8117 .tested = TEST_UNTESTED,
8118 .probe = probe_82802ab,
8119 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8120 .block_erasers =
8121 {
8122 {
8123 .eraseblocks = {
8124 {128 * 1024, 3},
8125 {96 * 1024, 1},
8126 {8 * 1024, 2},
8127 {16 * 1024, 1},
8128 },
8129 .block_erase = erase_block_82802ab,
8130 },
8131 },
8132 .write = write_82802ab,
8133 .read = read_memmapped,
8134 },
8135
8136 {
8137 .vendor = "Intel",
8138 .name = "82802AB",
8139 .bustype = BUS_FWH,
8140 .manufacture_id = INTEL_ID,
8141 .model_id = INTEL_82802AB,
8142 .total_size = 512,
8143 .page_size = 64 * 1024,
8144 .feature_bits = FEATURE_REGISTERMAP,
Alan Green88552572019-07-24 13:56:06 +10008145 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008146 .probe = probe_82802ab,
8147 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8148 .block_erasers =
8149 {
8150 {
8151 .eraseblocks = { {64 * 1024, 8} },
8152 .block_erase = erase_block_82802ab,
8153 },
8154 },
8155 .unlock = unlock_regspace2_uniform_64k,
8156 .write = write_82802ab,
8157 .read = read_memmapped,
8158 .voltage = {3000, 3600},
8159 },
8160
8161 {
8162 .vendor = "Intel",
8163 .name = "82802AC",
8164 .bustype = BUS_FWH,
8165 .manufacture_id = INTEL_ID,
8166 .model_id = INTEL_82802AC,
8167 .total_size = 1024,
8168 .page_size = 64 * 1024,
8169 .feature_bits = FEATURE_REGISTERMAP,
8170 .tested = TEST_OK_PR,
8171 .probe = probe_82802ab,
8172 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8173 .block_erasers =
8174 {
8175 {
8176 .eraseblocks = { {64 * 1024, 16} },
8177 .block_erase = erase_block_82802ab,
8178 },
8179 },
8180 .unlock = unlock_regspace2_uniform_64k,
8181 .write = write_82802ab,
8182 .read = read_memmapped,
8183 .voltage = {3000, 3600},
8184 },
8185
8186 {
8187 .vendor = "Macronix",
8188 .name = "MX23L12854",
8189 .bustype = BUS_SPI,
8190 .manufacture_id = MACRONIX_ID,
8191 .model_id = MACRONIX_MX23L12854,
8192 .total_size = 16384,
8193 .page_size = 256,
8194 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8195 .probe = probe_spi_rdid,
8196 .probe_timing = TIMING_ZERO,
8197 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
8198 .read = spi_chip_read, /* Fast read (0x0B) supported */
8199 .voltage = {3000, 3600},
8200 },
8201
8202 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008203 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008204 .name = "MX23L1654",
8205 .bustype = BUS_SPI,
8206 .manufacture_id = MACRONIX_ID,
8207 .model_id = MACRONIX_MX23L1654,
8208 .total_size = 2048,
8209 .page_size = 256,
8210 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8211 .probe = probe_spi_rdid,
8212 .probe_timing = TIMING_ZERO,
8213 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
8214 .read = spi_chip_read, /* Fast read (0x0B) supported */
8215 .voltage = {3000, 3600},
8216 },
8217
8218 {
8219 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008220 .name = "MX23L3254",
8221 .bustype = BUS_SPI,
8222 .manufacture_id = MACRONIX_ID,
8223 .model_id = MACRONIX_MX23L3254,
8224 .total_size = 4096,
8225 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00008226 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008227 .probe = probe_spi_rdid,
8228 .probe_timing = TIMING_ZERO,
8229 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
8230 .read = spi_chip_read, /* Fast read (0x0B) supported */
8231 .voltage = {3000, 3600},
8232 },
8233
8234 {
8235 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008236 .name = "MX23L6454",
8237 .bustype = BUS_SPI,
8238 .manufacture_id = MACRONIX_ID,
8239 .model_id = MACRONIX_MX23L6454,
8240 .total_size = 8192,
8241 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008242 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00008243 .probe = probe_spi_rdid,
8244 .probe_timing = TIMING_ZERO,
8245 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
8246 .read = spi_chip_read, /* Fast read (0x0B) supported */
8247 .voltage = {3000, 3600},
8248 },
8249
8250 {
8251 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00008252 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008253 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008254 .manufacture_id = MACRONIX_ID,
8255 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008256 .total_size = 128,
8257 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008258 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00008259 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00008260 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008261 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008262 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008263 .block_erasers =
8264 {
8265 {
8266 .eraseblocks = { {4 * 1024, 32} },
8267 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008268 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008269 .eraseblocks = { {64 * 1024, 2} },
8270 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008271 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008272 .eraseblocks = { {128 * 1024, 1} },
8273 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008274 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008275 .eraseblocks = { {128 * 1024, 1} },
8276 .block_erase = spi_block_erase_c7,
8277 },
8278 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008279 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008280 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008281 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008282 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008283 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008284 },
8285
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008286 {
8287 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008288 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008289 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008290 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008291 .model_id = MACRONIX_MX25L12805D,
8292 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008293 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008294 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8295 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008296 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008297 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008298 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008299 .block_erasers =
8300 {
8301 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008302 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008303 .block_erase = spi_block_erase_20,
8304 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008305 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008306 .block_erase = spi_block_erase_d8,
8307 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008308 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008309 .block_erase = spi_block_erase_60,
8310 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008311 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008312 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008313 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008314 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008315 .printlock = spi_prettyprint_status_register_bp3_srwd,
8316 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008317 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008318 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008319 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008320 },
8321
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008322 {
8323 .vendor = "Macronix",
Tao Xia571f6ad2021-07-21 16:41:53 +08008324 .name = "MX25L12833F/MX25L12835F/MX25L12845E/MX25L12865E/MX25L12873F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008325 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008326 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008327 .model_id = MACRONIX_MX25L12805D,
8328 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008329 .page_size = 256,
Tao Xia571f6ad2021-07-21 16:41:53 +08008330 /* OTP: MX25L12833F has 1KB total, others have 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10008331 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner8179be52011-06-04 13:13:34 +00008332 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008333 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008334 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008335 .block_erasers =
8336 {
8337 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008338 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008339 .block_erase = spi_block_erase_20,
8340 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008341 .eraseblocks = { {32 * 1024, 512} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008342 .block_erase = spi_block_erase_52,
8343 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008344 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008345 .block_erase = spi_block_erase_d8,
8346 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008347 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008348 .block_erase = spi_block_erase_60,
8349 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008350 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008351 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008352 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008353 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008354 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8355 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8356 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008357 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008358 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008359 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008360 },
8361
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008362 {
8363 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008364 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008365 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008366 .manufacture_id = MACRONIX_ID,
8367 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008368 .total_size = 2048,
8369 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008370 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00008371 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008372 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008373 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008374 .block_erasers =
8375 {
8376 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008377 .eraseblocks = { {64 * 1024, 32} },
8378 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008379 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008380 .eraseblocks = { {64 * 1024, 32} },
8381 .block_erase = spi_block_erase_d8,
8382 }, {
8383 .eraseblocks = { {2 * 1024 * 1024, 1} },
8384 .block_erase = spi_block_erase_60,
8385 }, {
8386 .eraseblocks = { {2 * 1024 * 1024, 1} },
8387 .block_erase = spi_block_erase_c7,
8388 },
8389 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008390 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00008391 .unlock = spi_disable_blockprotect,
8392 .write = spi_chip_write_256,
8393 .read = spi_chip_read, /* Fast read (0x0B) supported */
8394 .voltage = {2700, 3600},
8395 },
8396
8397 {
8398 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008399 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008400 .bustype = BUS_SPI,
8401 .manufacture_id = MACRONIX_ID,
8402 .model_id = MACRONIX_MX25L1605,
8403 .total_size = 2048,
8404 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008405 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008406 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8407 .tested = TEST_OK_PREW,
8408 .probe = probe_spi_rdid,
8409 .probe_timing = TIMING_ZERO,
8410 .block_erasers =
8411 {
8412 {
8413 .eraseblocks = { {4 * 1024, 512} },
8414 .block_erase = spi_block_erase_20,
8415 }, {
8416 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008417 .block_erase = spi_block_erase_52,
8418 }, {
8419 .eraseblocks = { {64 * 1024, 32} },
8420 .block_erase = spi_block_erase_d8,
8421 }, {
8422 .eraseblocks = { {2 * 1024 * 1024, 1} },
8423 .block_erase = spi_block_erase_60,
8424 }, {
8425 .eraseblocks = { {2 * 1024 * 1024, 1} },
8426 .block_erase = spi_block_erase_c7,
8427 },
8428 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008429 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008430 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008431 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008432 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008433 .voltage = {2700, 3600},
8434 },
8435
8436 {
8437 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008438 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008439 .bustype = BUS_SPI,
8440 .manufacture_id = MACRONIX_ID,
8441 .model_id = MACRONIX_MX25L1605,
8442 .total_size = 2048,
8443 .page_size = 256,
8444 .feature_bits = FEATURE_WRSR_WREN,
8445 .tested = TEST_OK_PREW,
8446 .probe = probe_spi_rdid,
8447 .probe_timing = TIMING_ZERO,
8448 .block_erasers =
8449 {
8450 {
8451 .eraseblocks = { {4 * 1024, 512} },
8452 .block_erase = spi_block_erase_20,
8453 }, {
8454 .eraseblocks = { {64 * 1024, 32} },
8455 .block_erase = spi_block_erase_d8,
8456 }, {
8457 .eraseblocks = { {2 * 1024 * 1024, 1} },
8458 .block_erase = spi_block_erase_60,
8459 }, {
8460 .eraseblocks = { {2 * 1024 * 1024, 1} },
8461 .block_erase = spi_block_erase_c7,
8462 },
8463 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008464 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008465 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008466 .write = spi_chip_write_256,
8467 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008468 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008469 },
8470
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008471 {
8472 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008473 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008474 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008475 .manufacture_id = MACRONIX_ID,
8476 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008477 .total_size = 2048,
8478 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008479 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8480 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Ponsc2054872021-01-15 18:57:32 +01008481 .tested = TEST_OK_PREW,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008482 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008483 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008484 .block_erasers =
8485 {
8486 {
8487 .eraseblocks = { {4 * 1024, 512} },
8488 .block_erase = spi_block_erase_20,
8489 }, {
8490 .eraseblocks = { {64 * 1024, 32} },
8491 .block_erase = spi_block_erase_d8,
8492 }, {
8493 .eraseblocks = { {2 * 1024 * 1024, 1} },
8494 .block_erase = spi_block_erase_60,
8495 }, {
8496 .eraseblocks = { {2 * 1024 * 1024, 1} },
8497 .block_erase = spi_block_erase_c7,
8498 }
8499 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008500 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008501 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008502 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008503 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008504 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008505 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00008506
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008507 {
8508 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00008509 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008510 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008511 .manufacture_id = MACRONIX_ID,
8512 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008513 .total_size = 2048,
8514 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008515 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8516 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008517 .tested = TEST_UNTESTED,
8518 .probe = probe_spi_rdid,
8519 .probe_timing = TIMING_ZERO,
8520 .block_erasers =
8521 {
8522 {
8523 .eraseblocks = { {4 * 1024, 512} },
8524 .block_erase = spi_block_erase_20,
8525 }, {
8526 .eraseblocks = { {64 * 1024, 32} },
8527 .block_erase = spi_block_erase_d8,
8528 }, {
8529 .eraseblocks = { {2 * 1024 * 1024, 1} },
8530 .block_erase = spi_block_erase_60,
8531 }, {
8532 .eraseblocks = { {2 * 1024 * 1024, 1} },
8533 .block_erase = spi_block_erase_c7,
8534 }
8535 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008536 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008537 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008538 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008539 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008540 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00008541 },
8542
8543 {
8544 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008545 .name = "MX25L2005(C)/MX25L2006E",
8546 .bustype = BUS_SPI,
8547 .manufacture_id = MACRONIX_ID,
8548 .model_id = MACRONIX_MX25L2005,
8549 .total_size = 256,
8550 .page_size = 256,
8551 .feature_bits = FEATURE_WRSR_WREN,
8552 .tested = TEST_OK_PREW,
8553 .probe = probe_spi_rdid,
8554 .probe_timing = TIMING_ZERO,
8555 .block_erasers =
8556 {
8557 {
8558 .eraseblocks = { {4 * 1024, 64} },
8559 .block_erase = spi_block_erase_20,
8560 }, {
8561 .eraseblocks = { {64 * 1024, 4} },
8562 .block_erase = spi_block_erase_52,
8563 }, {
8564 .eraseblocks = { {64 * 1024, 4} },
8565 .block_erase = spi_block_erase_d8,
8566 }, {
8567 .eraseblocks = { {256 * 1024, 1} },
8568 .block_erase = spi_block_erase_60,
8569 }, {
8570 .eraseblocks = { {256 * 1024, 1} },
8571 .block_erase = spi_block_erase_c7,
8572 },
8573 },
8574 .printlock = spi_prettyprint_status_register_bp1_srwd,
8575 .unlock = spi_disable_blockprotect,
8576 .write = spi_chip_write_256,
8577 .read = spi_chip_read, /* Fast read (0x0B) supported */
8578 .voltage = {2700, 3600},
8579 },
8580
8581 {
8582 .vendor = "Macronix",
Alan Green03707302019-08-26 12:50:43 +10008583 .name = "MX25L25635F/MX25L25645G",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008584 .bustype = BUS_SPI,
8585 .manufacture_id = MACRONIX_ID,
8586 .model_id = MACRONIX_MX25L25635F,
8587 .total_size = 32768,
8588 .page_size = 256,
8589 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8590 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8591 .tested = TEST_OK_PREW,
8592 .probe = probe_spi_rdid,
8593 .probe_timing = TIMING_ZERO,
8594 .block_erasers =
8595 {
8596 {
8597 .eraseblocks = { {4 * 1024, 8192} },
8598 .block_erase = spi_block_erase_21,
8599 }, {
8600 .eraseblocks = { {4 * 1024, 8192} },
8601 .block_erase = spi_block_erase_20,
8602 }, {
8603 .eraseblocks = { {32 * 1024, 1024} },
8604 .block_erase = spi_block_erase_5c,
8605 }, {
8606 .eraseblocks = { {32 * 1024, 1024} },
8607 .block_erase = spi_block_erase_52,
8608 }, {
8609 .eraseblocks = { {64 * 1024, 512} },
8610 .block_erase = spi_block_erase_dc,
8611 }, {
8612 .eraseblocks = { {64 * 1024, 512} },
8613 .block_erase = spi_block_erase_d8,
8614 }, {
8615 .eraseblocks = { {32 * 1024 * 1024, 1} },
8616 .block_erase = spi_block_erase_60,
8617 }, {
8618 .eraseblocks = { {32 * 1024 * 1024, 1} },
8619 .block_erase = spi_block_erase_c7,
8620 }
8621 },
8622 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8623 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8624 .unlock = spi_disable_blockprotect_bp3_srwd,
8625 .write = spi_chip_write_256,
8626 .read = spi_chip_read, /* Fast read (0x0B) supported */
8627 .voltage = {2700, 3600},
8628 },
8629
8630 {
8631 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00008632 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008633 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008634 .manufacture_id = MACRONIX_ID,
8635 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008636 .total_size = 4096,
8637 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008638 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008639 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008640 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008641 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008642 .block_erasers =
8643 {
8644 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008645 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008646 .block_erase = spi_block_erase_20,
8647 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008648 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008649 .block_erase = spi_block_erase_d8,
8650 }, {
8651 .eraseblocks = { {4 * 1024 * 1024, 1} },
8652 .block_erase = spi_block_erase_60,
8653 }, {
8654 .eraseblocks = { {4 * 1024 * 1024, 1} },
8655 .block_erase = spi_block_erase_c7,
8656 },
8657 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008658 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008659 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008660 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008661 .read = spi_chip_read, /* Fast read (0x0B) supported */
8662 .voltage = {2700, 3600},
8663 },
8664
8665 {
8666 .vendor = "Macronix",
8667 .name = "MX25L3205D/MX25L3208D",
8668 .bustype = BUS_SPI,
8669 .manufacture_id = MACRONIX_ID,
8670 .model_id = MACRONIX_MX25L3205,
8671 .total_size = 4096,
8672 .page_size = 256,
8673 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8674 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8675 .tested = TEST_OK_PREW,
8676 .probe = probe_spi_rdid,
8677 .probe_timing = TIMING_ZERO,
8678 .block_erasers =
8679 {
8680 {
8681 .eraseblocks = { {4 * 1024, 1024} },
8682 .block_erase = spi_block_erase_20,
8683 }, {
8684 .eraseblocks = { {64 * 1024, 64} },
8685 .block_erase = spi_block_erase_d8,
8686 }, {
8687 .eraseblocks = { {4 * 1024 * 1024, 1} },
8688 .block_erase = spi_block_erase_60,
8689 }, {
8690 .eraseblocks = { {4 * 1024 * 1024, 1} },
8691 .block_erase = spi_block_erase_c7,
8692 },
8693 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008694 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008695 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008696 .write = spi_chip_write_256,
8697 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8698 .voltage = {2700, 3600},
8699 },
8700
8701 {
8702 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008703 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008704 .bustype = BUS_SPI,
8705 .manufacture_id = MACRONIX_ID,
8706 .model_id = MACRONIX_MX25L3205,
8707 .total_size = 4096,
8708 .page_size = 256,
8709 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8710 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8711 .tested = TEST_OK_PREW,
8712 .probe = probe_spi_rdid,
8713 .probe_timing = TIMING_ZERO,
8714 .block_erasers =
8715 {
8716 {
8717 .eraseblocks = { {4 * 1024, 1024} },
8718 .block_erase = spi_block_erase_20,
8719 }, {
8720 .eraseblocks = { {64 * 1024, 64} },
8721 .block_erase = spi_block_erase_d8,
8722 }, {
8723 .eraseblocks = { {64 * 1024, 64} },
8724 .block_erase = spi_block_erase_52,
8725 }, {
8726 .eraseblocks = { {4 * 1024 * 1024, 1} },
8727 .block_erase = spi_block_erase_60,
8728 }, {
8729 .eraseblocks = { {4 * 1024 * 1024, 1} },
8730 .block_erase = spi_block_erase_c7,
8731 },
8732 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008733 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008734 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008735 .write = spi_chip_write_256,
8736 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008737 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008738 },
8739
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008740 {
8741 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008742 .name = "MX25L3235D",
8743 .bustype = BUS_SPI,
8744 .manufacture_id = MACRONIX_ID,
8745 .model_id = MACRONIX_MX25L3235D,
8746 .total_size = 4096,
8747 .page_size = 256,
8748 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
8749 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8750 .tested = TEST_UNTESTED,
8751 .probe = probe_spi_rdid,
8752 .probe_timing = TIMING_ZERO,
8753 .block_erasers =
8754 {
8755 {
8756 .eraseblocks = { {4 * 1024, 1024} },
8757 .block_erase = spi_block_erase_20,
8758 }, {
8759 .eraseblocks = { {64 * 1024, 64} },
8760 .block_erase = spi_block_erase_d8,
8761 }, {
8762 .eraseblocks = { {4 * 1024 * 1024, 1} },
8763 .block_erase = spi_block_erase_60,
8764 }, {
8765 .eraseblocks = { {4 * 1024 * 1024, 1} },
8766 .block_erase = spi_block_erase_c7,
8767 }
8768 },
8769 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8770 .unlock = spi_disable_blockprotect_bp3_srwd,
8771 .write = spi_chip_write_256,
8772 .read = spi_chip_read,
8773 .voltage = {2700, 3600},
8774 },
8775
8776 {
8777 .vendor = "Macronix",
Nico Huberb6683e02021-04-21 13:04:29 +02008778 .name = "MX25L3233F/MX25L3273E",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008779 .bustype = BUS_SPI,
8780 .manufacture_id = MACRONIX_ID,
8781 .model_id = MACRONIX_MX25L3205,
8782 .total_size = 4096,
8783 .page_size = 256,
Nico Huber6e69e2b2021-04-21 13:03:13 +02008784 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008785 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008786 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008787 .probe = probe_spi_rdid,
8788 .probe_timing = TIMING_ZERO,
8789 .block_erasers =
8790 {
8791 {
8792 .eraseblocks = { {4 * 1024, 1024} },
8793 .block_erase = spi_block_erase_20,
8794 }, {
8795 .eraseblocks = { {32 * 1024, 128} },
8796 .block_erase = spi_block_erase_52,
8797 }, {
8798 .eraseblocks = { {64 * 1024, 64} },
8799 .block_erase = spi_block_erase_d8,
8800 }, {
8801 .eraseblocks = { {4 * 1024 * 1024, 1} },
8802 .block_erase = spi_block_erase_60,
8803 }, {
8804 .eraseblocks = { {4 * 1024 * 1024, 1} },
8805 .block_erase = spi_block_erase_c7,
8806 },
8807 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008808 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008809 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008810 .write = spi_chip_write_256,
8811 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Nico Huberb6683e02021-04-21 13:04:29 +02008812 .voltage = {2700, 3600}, /* 33F 2.65V..3.6V */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008813 },
8814
8815 {
8816 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008817 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008818 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008819 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008820 .model_id = MACRONIX_MX25L4005,
8821 .total_size = 512,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008822 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008823 .feature_bits = FEATURE_WRSR_WREN,
8824 .tested = TEST_OK_PREW,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008825 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008826 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008827 .block_erasers =
8828 {
8829 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008830 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00008831 .block_erase = spi_block_erase_20,
8832 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008833 .eraseblocks = { {64 * 1024, 8} },
8834 .block_erase = spi_block_erase_52,
8835 }, {
8836 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson54596372010-01-09 05:30:14 +00008837 .block_erase = spi_block_erase_d8,
8838 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008839 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008840 .block_erase = spi_block_erase_60,
8841 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008842 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008843 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008844 },
Sean Nelson54596372010-01-09 05:30:14 +00008845 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008846 .printlock = spi_prettyprint_status_register_bp2_srwd,
8847 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008848 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008849 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008850 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008851 },
8852
8853 {
8854 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008855 .name = "MX25L512(E)/MX25V512(C)",
8856 .bustype = BUS_SPI,
8857 .manufacture_id = MACRONIX_ID,
8858 .model_id = MACRONIX_MX25L512,
8859 .total_size = 64,
8860 .page_size = 256,
8861 /* MX25L512E supports SFDP */
8862 .feature_bits = FEATURE_WRSR_WREN,
8863 .tested = TEST_OK_PREW,
8864 .probe = probe_spi_rdid,
8865 .probe_timing = TIMING_ZERO,
8866 .block_erasers =
8867 {
8868 {
8869 .eraseblocks = { {4 * 1024, 16} },
8870 .block_erase = spi_block_erase_20,
8871 }, {
8872 .eraseblocks = { {64 * 1024, 1} },
8873 .block_erase = spi_block_erase_52,
8874 }, {
8875 .eraseblocks = { {64 * 1024, 1} },
8876 .block_erase = spi_block_erase_d8,
8877 }, {
8878 .eraseblocks = { {64 * 1024, 1} },
8879 .block_erase = spi_block_erase_60,
8880 }, {
8881 .eraseblocks = { {64 * 1024, 1} },
8882 .block_erase = spi_block_erase_c7,
8883 },
8884 },
8885 .printlock = spi_prettyprint_status_register_bp1_srwd,
8886 .unlock = spi_disable_blockprotect,
8887 .write = spi_chip_write_256,
8888 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
8889 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
8890 },
8891
8892 {
8893 .vendor = "Macronix",
Steve Markgraf7e6f3a72020-07-13 18:22:56 +02008894 .name = "MX25L5121E",
8895 .bustype = BUS_SPI,
8896 .manufacture_id = MACRONIX_ID,
8897 .model_id = MACRONIX_MX25L5121E,
8898 .total_size = 64,
8899 .page_size = 32,
8900 .feature_bits = FEATURE_WRSR_WREN,
8901 .tested = TEST_OK_PREW,
8902 .probe = probe_spi_rdid,
8903 .probe_timing = TIMING_ZERO,
8904 .block_erasers =
8905 {
8906 {
8907 .eraseblocks = { {4 * 1024, 16} },
8908 .block_erase = spi_block_erase_20,
8909 }, {
8910 .eraseblocks = { {64 * 1024, 1} },
8911 .block_erase = spi_block_erase_52,
8912 }, {
8913 .eraseblocks = { {64 * 1024, 1} },
8914 .block_erase = spi_block_erase_d8,
8915 }, {
8916 .eraseblocks = { {64 * 1024, 1} },
8917 .block_erase = spi_block_erase_60,
8918 }, {
8919 .eraseblocks = { {64 * 1024, 1} },
8920 .block_erase = spi_block_erase_c7,
8921 },
8922 },
8923 .printlock = spi_prettyprint_status_register_bp1_srwd,
8924 .unlock = spi_disable_blockprotect,
8925 .write = spi_chip_write_256,
8926 .read = spi_chip_read, /* Fast read (0x0B) supported */
8927 .voltage = {2700, 3600},
8928 },
8929
8930 {
8931 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008932 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008933 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008934 .manufacture_id = MACRONIX_ID,
8935 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008936 .total_size = 8192,
8937 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008938 /* Has an additional 512B EEPROM sector */
8939 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008940 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008941 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008942 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008943 .block_erasers =
8944 {
8945 {
8946 .eraseblocks = { {64 * 1024, 128} },
8947 .block_erase = spi_block_erase_20,
8948 }, {
8949 .eraseblocks = { {64 * 1024, 128} },
8950 .block_erase = spi_block_erase_d8,
8951 }, {
8952 .eraseblocks = { {8 * 1024 * 1024, 1} },
8953 .block_erase = spi_block_erase_60,
8954 }, {
8955 .eraseblocks = { {8 * 1024 * 1024, 1} },
8956 .block_erase = spi_block_erase_c7,
8957 }
8958 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008959 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008960 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008961 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008962 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008963 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008964 },
8965
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008966 {
8967 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008968 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00008969 .bustype = BUS_SPI,
8970 .manufacture_id = MACRONIX_ID,
8971 .model_id = MACRONIX_MX25L6405,
8972 .total_size = 8192,
8973 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008974 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008975 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8976 .tested = TEST_OK_PREW,
8977 .probe = probe_spi_rdid,
8978 .probe_timing = TIMING_ZERO,
8979 .block_erasers =
8980 {
8981 {
8982 .eraseblocks = { {4 * 1024, 2048} },
8983 .block_erase = spi_block_erase_20,
8984 }, {
8985 .eraseblocks = { {64 * 1024, 128} },
8986 .block_erase = spi_block_erase_d8,
8987 }, {
8988 .eraseblocks = { {8 * 1024 * 1024, 1} },
8989 .block_erase = spi_block_erase_60,
8990 }, {
8991 .eraseblocks = { {8 * 1024 * 1024, 1} },
8992 .block_erase = spi_block_erase_c7,
8993 }
8994 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008995 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008996 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008997 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008998 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00008999 .voltage = {2700, 3600},
9000 },
9001
9002 {
9003 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009004 .name = "MX25L6406E/MX25L6408E",
9005 .bustype = BUS_SPI,
9006 .manufacture_id = MACRONIX_ID,
9007 .model_id = MACRONIX_MX25L6405,
9008 .total_size = 8192,
9009 .page_size = 256,
9010 /* MX25L6406E supports SFDP */
9011 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
9012 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9013 .tested = TEST_OK_PREW,
9014 .probe = probe_spi_rdid,
9015 .probe_timing = TIMING_ZERO,
9016 .block_erasers =
9017 {
9018 {
9019 .eraseblocks = { {4 * 1024, 2048} },
9020 .block_erase = spi_block_erase_20,
9021 }, {
9022 .eraseblocks = { {64 * 1024, 128} },
9023 .block_erase = spi_block_erase_52,
9024 }, {
9025 .eraseblocks = { {64 * 1024, 128} },
9026 .block_erase = spi_block_erase_d8,
9027 }, {
9028 .eraseblocks = { {8 * 1024 * 1024, 1} },
9029 .block_erase = spi_block_erase_60,
9030 }, {
9031 .eraseblocks = { {8 * 1024 * 1024, 1} },
9032 .block_erase = spi_block_erase_c7,
9033 }
9034 },
9035 .printlock = spi_prettyprint_status_register_bp3_srwd,
9036 .unlock = spi_disable_blockprotect_bp3_srwd,
9037 .write = spi_chip_write_256,
9038 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
9039 .voltage = {2700, 3600},
9040 },
9041
9042 {
9043 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01009044 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00009045 .bustype = BUS_SPI,
9046 .manufacture_id = MACRONIX_ID,
9047 .model_id = MACRONIX_MX25L6405,
9048 .total_size = 8192,
9049 .page_size = 256,
9050 /* supports SFDP */
9051 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9052 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9053 .tested = TEST_OK_PREW,
9054 .probe = probe_spi_rdid,
9055 .probe_timing = TIMING_ZERO,
9056 .block_erasers =
9057 {
9058 {
9059 .eraseblocks = { {4 * 1024, 2048} },
9060 .block_erase = spi_block_erase_20,
9061 }, {
9062 .eraseblocks = { {32 * 1024, 256} },
9063 .block_erase = spi_block_erase_52,
9064 }, {
9065 .eraseblocks = { {64 * 1024, 128} },
9066 .block_erase = spi_block_erase_d8,
9067 }, {
9068 .eraseblocks = { {8 * 1024 * 1024, 1} },
9069 .block_erase = spi_block_erase_60,
9070 }, {
9071 .eraseblocks = { {8 * 1024 * 1024, 1} },
9072 .block_erase = spi_block_erase_c7,
9073 }
9074 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009075 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009076 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009077 .write = spi_chip_write_256,
9078 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9079 .voltage = {2700, 3600},
9080 },
9081
9082 {
9083 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009084 .name = "MX25L6495F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009085 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009086 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009087 .model_id = MACRONIX_MX25L6495F,
9088 .total_size = 8192,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009089 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009090 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009091 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00009092 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009093 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009094 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009095 .block_erasers =
9096 {
9097 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009098 .eraseblocks = { {4 * 1024, 2048} },
Sean Nelson54596372010-01-09 05:30:14 +00009099 .block_erase = spi_block_erase_20,
9100 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009101 .eraseblocks = { {64 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00009102 .block_erase = spi_block_erase_d8,
9103 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009104 .eraseblocks = { {32 * 1024, 256} },
9105 .block_erase = spi_block_erase_52,
9106 }, {
9107 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009108 .block_erase = spi_block_erase_60,
9109 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009110 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009111 .block_erase = spi_block_erase_c7,
9112 }
9113 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009114 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009115 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009116 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009117 .voltage = {2700, 3600},
9118 },
9119
9120 {
9121 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009122 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Stefan Tauner5c316f92015-02-08 21:57:52 +00009123 .bustype = BUS_SPI,
9124 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009125 .model_id = MACRONIX_MX25L8005,
9126 .total_size = 1024,
9127 .page_size = 256,
9128 /* MX25L8006E, MX25L8008E support SFDP */
9129 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
9130 .feature_bits = FEATURE_WRSR_WREN,
9131 .tested = TEST_OK_PREW,
9132 .probe = probe_spi_rdid,
9133 .probe_timing = TIMING_ZERO,
9134 .block_erasers =
9135 {
9136 {
9137 .eraseblocks = { {4 * 1024, 256} },
9138 .block_erase = spi_block_erase_20,
9139 }, {
9140 .eraseblocks = { {64 * 1024, 16} },
9141 .block_erase = spi_block_erase_52,
9142 }, {
9143 .eraseblocks = { {64 * 1024, 16} },
9144 .block_erase = spi_block_erase_d8,
9145 }, {
9146 .eraseblocks = { {1024 * 1024, 1} },
9147 .block_erase = spi_block_erase_60,
9148 }, {
9149 .eraseblocks = { {1024 * 1024, 1} },
9150 .block_erase = spi_block_erase_c7,
9151 },
9152 },
9153 .printlock = spi_prettyprint_status_register_bp2_srwd,
9154 .unlock = spi_disable_blockprotect,
9155 .write = spi_chip_write_256,
9156 .read = spi_chip_read, /* Fast read (0x0B) supported */
9157 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
9158 },
9159
9160 {
9161 .vendor = "Macronix",
sibradzicf62623c2020-03-14 17:21:34 +09009162 .name = "MX25R3235F",
9163 .bustype = BUS_SPI,
9164 .manufacture_id = MACRONIX_ID,
9165 .model_id = MACRONIX_MX25R3235F,
9166 .total_size = 4096,
9167 .page_size = 256,
9168 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9169 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9170 .tested = TEST_OK_PREW,
9171 .probe = probe_spi_rdid,
9172 .probe_timing = TIMING_ZERO,
9173 .block_erasers =
9174 {
9175 {
9176 .eraseblocks = { {4 * 1024, 1024} },
9177 .block_erase = spi_block_erase_20,
9178 }, {
9179 .eraseblocks = { {64 * 1024, 64} },
9180 .block_erase = spi_block_erase_d8,
9181 }, {
9182 .eraseblocks = { {32 * 1024, 128} },
9183 .block_erase = spi_block_erase_52,
9184 }, {
9185 .eraseblocks = { {4 * 1024 * 1024, 1} },
9186 .block_erase = spi_block_erase_60,
9187 }, {
9188 .eraseblocks = { {4 * 1024 * 1024, 1} },
9189 .block_erase = spi_block_erase_c7,
9190 }
9191 },
9192 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit 6 is quad enable */
9193 .unlock = spi_disable_blockprotect_bp3_srwd,
9194 .write = spi_chip_write_256,
9195 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9196 .voltage = {1650, 3600},
9197 },
9198
9199 {
9200 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009201 .name = "MX25R6435F",
9202 .bustype = BUS_SPI,
9203 .manufacture_id = MACRONIX_ID,
9204 .model_id = MACRONIX_MX25R6435F,
9205 .total_size = 8192,
9206 .page_size = 256,
9207 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9208 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9209 .tested = TEST_OK_PREW,
9210 .probe = probe_spi_rdid,
9211 .probe_timing = TIMING_ZERO,
9212 .block_erasers =
9213 {
9214 {
9215 .eraseblocks = { {4 * 1024, 2048} },
9216 .block_erase = spi_block_erase_20,
9217 }, {
9218 .eraseblocks = { {64 * 1024, 128} },
9219 .block_erase = spi_block_erase_d8,
9220 }, {
9221 .eraseblocks = { {32 * 1024, 256} },
9222 .block_erase = spi_block_erase_52,
9223 }, {
9224 .eraseblocks = { {8 * 1024 * 1024, 1} },
9225 .block_erase = spi_block_erase_60,
9226 }, {
9227 .eraseblocks = { {8 * 1024 * 1024, 1} },
9228 .block_erase = spi_block_erase_c7,
9229 }
9230 },
9231 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9232 .unlock = spi_disable_blockprotect_bp3_srwd,
9233 .write = spi_chip_write_256,
9234 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9235 .voltage = {1650, 3600},
9236 },
9237
9238 {
9239 .vendor = "Macronix",
9240 .name = "MX25U12835F",
9241 .bustype = BUS_SPI,
9242 .manufacture_id = MACRONIX_ID,
9243 .model_id = MACRONIX_MX25U12835E,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009244 .total_size = 16384,
9245 .page_size = 256,
9246 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009247 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009248 .tested = TEST_OK_PREW,
9249 .probe = probe_spi_rdid,
9250 .probe_timing = TIMING_ZERO,
9251 .block_erasers =
9252 {
9253 {
9254 .eraseblocks = { {4 * 1024, 4096} },
9255 .block_erase = spi_block_erase_20,
9256 }, {
9257 .eraseblocks = { {32 * 1024, 512} },
9258 .block_erase = spi_block_erase_52,
9259 }, {
9260 .eraseblocks = { {64 * 1024, 256} },
9261 .block_erase = spi_block_erase_d8,
9262 }, {
9263 .eraseblocks = { {16 * 1024 * 1024, 1} },
9264 .block_erase = spi_block_erase_60,
9265 }, {
9266 .eraseblocks = { {16 * 1024 * 1024, 1} },
9267 .block_erase = spi_block_erase_c7,
9268 }
9269 },
Angel Ponsf112e242018-09-30 20:14:17 +02009270 /* TODO: security register */
9271 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9272 .unlock = spi_disable_blockprotect_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009273 .write = spi_chip_write_256, /* Multi I/O supported */
Angel Ponsf112e242018-09-30 20:14:17 +02009274 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9275 .voltage = {1650, 2000},
9276 },
9277
9278 {
9279 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00009280 .name = "MX25U1635E",
9281 .bustype = BUS_SPI,
9282 .manufacture_id = MACRONIX_ID,
9283 .model_id = MACRONIX_MX25U1635E,
9284 .total_size = 2048,
9285 .page_size = 256,
9286 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9287 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9288 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009289 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00009290 .probe = probe_spi_rdid,
9291 .probe_timing = TIMING_ZERO,
9292 .block_erasers =
9293 {
9294 {
9295 .eraseblocks = { {4 * 1024, 512} },
9296 .block_erase = spi_block_erase_20,
9297 }, {
9298 .eraseblocks = { {32 * 1024, 64} },
9299 .block_erase = spi_block_erase_52,
9300 }, {
9301 .eraseblocks = { {64 * 1024, 32} },
9302 .block_erase = spi_block_erase_d8,
9303 }, {
9304 .eraseblocks = { {2 * 1024 * 1024, 1} },
9305 .block_erase = spi_block_erase_60,
9306 }, {
9307 .eraseblocks = { {2 * 1024 * 1024, 1} },
9308 .block_erase = spi_block_erase_c7,
9309 }
9310 },
9311 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00009312 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009313 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00009314 .write = spi_chip_write_256,
9315 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9316 .voltage = {1650, 2000},
9317 },
9318
9319 {
9320 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07009321 .name = "MX25U25635F",
9322 .bustype = BUS_SPI,
9323 .manufacture_id = MACRONIX_ID,
9324 .model_id = MACRONIX_MX25U25635F,
9325 .total_size = 32768,
9326 .page_size = 256,
9327 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9328 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
Nikolai Artemiev148254b2021-03-23 17:21:10 +11009329 .tested = TEST_OK_PREW,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009330 .probe = probe_spi_rdid,
9331 .probe_timing = TIMING_ZERO,
9332 .block_erasers =
9333 {
9334 {
9335 .eraseblocks = { {4 * 1024, 8192} },
9336 .block_erase = spi_block_erase_21,
9337 }, {
9338 .eraseblocks = { {4 * 1024, 8192} },
9339 .block_erase = spi_block_erase_20,
9340 }, {
9341 .eraseblocks = { {32 * 1024, 1024} },
9342 .block_erase = spi_block_erase_5c,
9343 }, {
9344 .eraseblocks = { {32 * 1024, 1024} },
9345 .block_erase = spi_block_erase_52,
9346 }, {
9347 .eraseblocks = { {64 * 1024, 512} },
9348 .block_erase = spi_block_erase_dc,
9349 }, {
9350 .eraseblocks = { {64 * 1024, 512} },
9351 .block_erase = spi_block_erase_d8,
9352 }, {
9353 .eraseblocks = { {32 * 1024 * 1024, 1} },
9354 .block_erase = spi_block_erase_60,
9355 }, {
9356 .eraseblocks = { {32 * 1024 * 1024, 1} },
9357 .block_erase = spi_block_erase_c7,
9358 }
9359 },
9360 /* TODO: security register */
9361 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9362 .unlock = spi_disable_blockprotect_bp3_srwd,
9363 .write = spi_chip_write_256, /* Multi I/O supported */
9364 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9365 .voltage = {1650, 2000},
9366 },
9367
9368 {
9369 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009370 .name = "MX25U3235E/F",
9371 .bustype = BUS_SPI,
9372 .manufacture_id = MACRONIX_ID,
9373 .model_id = MACRONIX_MX25U3235E,
9374 .total_size = 4096,
9375 .page_size = 256,
9376 /* F model supports SFDP */
9377 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9378 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9379 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
9380 .tested = TEST_OK_PREW,
9381 .probe = probe_spi_rdid,
9382 .probe_timing = TIMING_ZERO,
9383 .block_erasers =
9384 {
9385 {
9386 .eraseblocks = { {4 * 1024, 1024} },
9387 .block_erase = spi_block_erase_20,
9388 }, {
9389 .eraseblocks = { {32 * 1024, 128} },
9390 .block_erase = spi_block_erase_52,
9391 }, {
9392 .eraseblocks = { {64 * 1024, 64} },
9393 .block_erase = spi_block_erase_d8,
9394 }, {
9395 .eraseblocks = { {4 * 1024 * 1024, 1} },
9396 .block_erase = spi_block_erase_60,
9397 }, {
9398 .eraseblocks = { {4 * 1024 * 1024, 1} },
9399 .block_erase = spi_block_erase_c7,
9400 }
9401 },
9402 /* TODO: security register */
9403 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9404 .unlock = spi_disable_blockprotect_bp3_srwd,
9405 .write = spi_chip_write_256,
9406 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9407 .voltage = {1650, 2000},
9408 },
9409
9410 {
9411 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009412 .name = "MX25U51245G",
9413 .bustype = BUS_SPI,
9414 .manufacture_id = MACRONIX_ID,
9415 .model_id = MACRONIX_MX25U51245G,
9416 .total_size = 65536,
9417 .page_size = 256,
9418 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
9419 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
9420 .tested = TEST_OK_PREW,
9421 .probe = probe_spi_rdid,
9422 .probe_timing = TIMING_ZERO,
9423 .block_erasers =
9424 {
9425 {
9426 .eraseblocks = { {4 * 1024, 16384} },
9427 .block_erase = spi_block_erase_21,
9428 }, {
9429 .eraseblocks = { {4 * 1024, 16384} },
9430 .block_erase = spi_block_erase_20,
9431 }, {
9432 .eraseblocks = { {32 * 1024, 2048} },
9433 .block_erase = spi_block_erase_5c,
9434 }, {
9435 .eraseblocks = { {32 * 1024, 2048} },
9436 .block_erase = spi_block_erase_52,
9437 }, {
9438 .eraseblocks = { {64 * 1024, 1024} },
9439 .block_erase = spi_block_erase_dc,
9440 }, {
9441 .eraseblocks = { {64 * 1024, 1024} },
9442 .block_erase = spi_block_erase_d8,
9443 }, {
9444 .eraseblocks = { {64 * 1024 * 1024, 1} },
9445 .block_erase = spi_block_erase_60,
9446 }, {
9447 .eraseblocks = { {64 * 1024 * 1024, 1} },
9448 .block_erase = spi_block_erase_c7,
9449 }
9450 },
9451 /* TODO: security register */
9452 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9453 .unlock = spi_disable_blockprotect_bp3_srwd,
9454 .write = spi_chip_write_256, /* Multi I/O supported */
9455 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9456 .voltage = {1650, 2000},
9457 },
9458
9459 {
9460 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009461 .name = "MX25U6435E/F",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009462 .bustype = BUS_SPI,
9463 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009464 .model_id = MACRONIX_MX25U6435E,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009465 .total_size = 8192,
9466 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009467 /* F model supports SFDP */
9468 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9469 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9470 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009471 .tested = TEST_OK_PREW,
9472 .probe = probe_spi_rdid,
9473 .probe_timing = TIMING_ZERO,
9474 .block_erasers =
9475 {
9476 {
9477 .eraseblocks = { {4 * 1024, 2048} },
9478 .block_erase = spi_block_erase_20,
9479 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009480 .eraseblocks = { {32 * 1024, 256} },
9481 .block_erase = spi_block_erase_52,
9482 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009483 .eraseblocks = { {64 * 1024, 128} },
9484 .block_erase = spi_block_erase_d8,
9485 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009486 .eraseblocks = { {8 * 1024 * 1024, 1} },
9487 .block_erase = spi_block_erase_60,
9488 }, {
9489 .eraseblocks = { {8 * 1024 * 1024, 1} },
9490 .block_erase = spi_block_erase_c7,
9491 }
9492 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009493 /* TODO: security register */
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009494 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9495 .unlock = spi_disable_blockprotect_bp3_srwd,
9496 .write = spi_chip_write_256,
9497 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009498 .voltage = {1650, 2000},
9499 },
9500
9501 {
9502 .vendor = "Macronix",
9503 .name = "MX25U8032E",
9504 .bustype = BUS_SPI,
9505 .manufacture_id = MACRONIX_ID,
9506 .model_id = MACRONIX_MX25U8032E,
9507 .total_size = 1024,
9508 .page_size = 256,
9509 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9510 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9511 .tested = TEST_OK_PREW,
9512 .probe = probe_spi_rdid,
9513 .probe_timing = TIMING_ZERO,
9514 .block_erasers =
9515 {
9516 {
9517 .eraseblocks = { {4 * 1024, 256} },
9518 .block_erase = spi_block_erase_20,
9519 }, {
9520 .eraseblocks = { {32 * 1024, 32} },
9521 .block_erase = spi_block_erase_52,
9522 }, {
9523 .eraseblocks = { {64 * 1024, 16} },
9524 .block_erase = spi_block_erase_d8,
9525 }, {
9526 .eraseblocks = { {1024 * 1024, 1} },
9527 .block_erase = spi_block_erase_60,
9528 }, {
9529 .eraseblocks = { {1024 * 1024, 1} },
9530 .block_erase = spi_block_erase_c7,
9531 }
9532 },
9533 /* TODO: security register */
9534 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9535 .unlock = spi_disable_blockprotect_bp3_srwd,
9536 .write = spi_chip_write_256,
9537 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9538 .voltage = {1650, 2000},
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009539 },
9540
9541 {
9542 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00009543 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009544 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009545 .manufacture_id = MACRONIX_ID,
9546 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009547 .total_size = 128,
9548 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009549 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9550 .tested = TEST_UNTESTED,
9551 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009552 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009553 .block_erasers =
9554 {
9555 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009556 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009557 {8 * 1024, 1},
9558 {4 * 1024, 2},
9559 {8 * 1024, 2},
9560 {32 * 1024, 1},
9561 {64 * 1024, 1},
9562 },
Sean Nelson35727f72010-01-28 23:55:12 +00009563 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009564 }, {
9565 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009566 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009567 }
9568 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009569 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009570 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009571 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009572 },
9573
9574 {
9575 .vendor = "Macronix",
9576 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009577 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009578 .manufacture_id = MACRONIX_ID,
9579 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009580 .total_size = 128,
9581 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009582 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00009583 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009584 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009585 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009586 .block_erasers =
9587 {
9588 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009589 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009590 {64 * 1024, 1},
9591 {32 * 1024, 1},
9592 {8 * 1024, 2},
9593 {4 * 1024, 2},
9594 {8 * 1024, 1},
9595 },
Sean Nelson35727f72010-01-28 23:55:12 +00009596 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009597 }, {
9598 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009599 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009600 }
9601 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009602 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009603 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009604 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009605 },
9606
9607 {
9608 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009609 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009610 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009611 .manufacture_id = MACRONIX_ID,
9612 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009613 .total_size = 256,
9614 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009615 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009616 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009617 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009618 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009619 .block_erasers =
9620 {
9621 {
9622 .eraseblocks = {
9623 {16 * 1024, 1},
9624 {8 * 1024, 2},
9625 {32 * 1024, 1},
9626 {64 * 1024, 3},
9627 },
Sean Nelson35727f72010-01-28 23:55:12 +00009628 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009629 }, {
9630 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009631 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009632 },
9633 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009634 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009635 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009636 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009637 },
9638
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009639 {
9640 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009641 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009642 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009643 .manufacture_id = MACRONIX_ID,
9644 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009645 .total_size = 256,
9646 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009647 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009648 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009649 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009650 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009651 .block_erasers =
9652 {
9653 {
9654 .eraseblocks = {
9655 {64 * 1024, 3},
9656 {32 * 1024, 1},
9657 {8 * 1024, 2},
9658 {16 * 1024, 1},
9659 },
Sean Nelson35727f72010-01-28 23:55:12 +00009660 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009661 }, {
9662 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009663 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009664 },
9665 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009666 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009667 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009668 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009669 },
9670
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009671 {
9672 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00009673 .name = "MX29F022(N)B",
9674 .bustype = BUS_PARALLEL,
9675 .manufacture_id = MACRONIX_ID,
9676 .model_id = MACRONIX_MX29F022B,
9677 .total_size = 256,
9678 .page_size = 0, /* unused */
9679 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9680 .tested = TEST_UNTESTED,
9681 .probe = probe_jedec,
9682 .probe_timing = TIMING_ZERO,
9683 .block_erasers =
9684 {
9685 {
9686 .eraseblocks = {
9687 {16 * 1024, 1},
9688 {8 * 1024, 2},
9689 {32 * 1024, 1},
9690 {64 * 1024, 3},
9691 },
9692 .block_erase = erase_sector_jedec,
9693 }, {
9694 .eraseblocks = { {256 * 1024, 1} },
9695 .block_erase = erase_chip_block_jedec,
9696 }
9697 },
9698 .write = write_jedec_1,
9699 .read = read_memmapped,
9700 .voltage = {4500, 5500},
9701 },
9702
9703 {
9704 .vendor = "Macronix",
9705 .name = "MX29F022(N)T",
9706 .bustype = BUS_PARALLEL,
9707 .manufacture_id = MACRONIX_ID,
9708 .model_id = MACRONIX_MX29F022T,
9709 .total_size = 256,
9710 .page_size = 0, /* unused */
9711 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9712 .tested = TEST_OK_PREW,
9713 .probe = probe_jedec,
9714 .probe_timing = TIMING_ZERO,
9715 .block_erasers =
9716 {
9717 {
9718 .eraseblocks = {
9719 {64 * 1024, 3},
9720 {32 * 1024, 1},
9721 {8 * 1024, 2},
9722 {16 * 1024, 1},
9723 },
9724 .block_erase = erase_sector_jedec,
9725 }, {
9726 .eraseblocks = { {256 * 1024, 1} },
9727 .block_erase = erase_chip_block_jedec,
9728 }
9729 },
9730 .write = write_jedec_1,
9731 .read = read_memmapped,
9732 .voltage = {4500, 5500},
9733 },
9734
9735 {
9736 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00009737 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009738 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00009739 .manufacture_id = MACRONIX_ID,
9740 .model_id = MACRONIX_MX29F040,
9741 .total_size = 512,
9742 .page_size = 64 * 1024,
9743 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9744 .tested = TEST_UNTESTED,
9745 .probe = probe_jedec,
9746 .probe_timing = TIMING_ZERO,
9747 .block_erasers =
9748 {
9749 {
9750 .eraseblocks = { {64 * 1024, 8} },
9751 .block_erase = erase_sector_jedec,
9752 }, {
9753 .eraseblocks = { {512 * 1024, 1} },
9754 .block_erase = erase_chip_block_jedec,
9755 },
9756 },
9757 .write = write_jedec_1,
9758 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009759 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00009760 },
9761
9762 {
9763 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009764 .name = "MX29GL128F",
9765 .bustype = BUS_PARALLEL,
9766 .manufacture_id = MACRONIX_ID,
9767 .model_id = MACRONIX_MX29GL128F,
9768 .total_size = 16384,
9769 .page_size = 128 * 1024, /* actual page size is 16 */
9770 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9771 .tested = TEST_UNTESTED,
9772 .probe = probe_jedec_29gl,
9773 .probe_timing = TIMING_ZERO,
9774 .block_erasers =
9775 {
9776 {
9777 .eraseblocks = { {128 * 1024, 128} },
9778 .block_erase = erase_sector_jedec,
9779 }, {
9780 .eraseblocks = { {16 * 1024 * 1024, 1} },
9781 .block_erase = erase_chip_block_jedec,
9782 },
9783 },
9784 .write = write_jedec_1,
9785 .read = read_memmapped,
9786 .voltage = {2700, 3600},
9787 },
9788
9789 {
9790 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009791 .name = "MX29GL320EB",
9792 .bustype = BUS_PARALLEL,
9793 .manufacture_id = MACRONIX_ID,
9794 .model_id = MACRONIX_MX29GL320EB,
9795 .total_size = 4096,
9796 .page_size = 128 * 1024, /* actual page size is 16 */
9797 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9798 .tested = TEST_UNTESTED,
9799 .probe = probe_jedec_29gl,
9800 .probe_timing = TIMING_ZERO,
9801 .block_erasers =
9802 {
9803 {
9804 .eraseblocks = {
9805 {8 * 1024, 8},
9806 {64 * 1024, 63},
9807 },
9808 .block_erase = erase_sector_jedec,
9809 }, {
9810 .eraseblocks = { {4 * 1024 * 1024, 1} },
9811 .block_erase = erase_chip_block_jedec,
9812 },
9813 },
9814 .write = write_jedec_1,
9815 .read = read_memmapped,
9816 .voltage = {2700, 3600},
9817 },
9818
9819 {
9820 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009821 .name = "MX29GL320EH/L",
9822 .bustype = BUS_PARALLEL,
9823 .manufacture_id = MACRONIX_ID,
9824 .model_id = MACRONIX_MX29GL320EHL,
9825 .total_size = 4096,
9826 .page_size = 128 * 1024, /* actual page size is 16 */
9827 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9828 .tested = TEST_UNTESTED,
9829 .probe = probe_jedec_29gl,
9830 .probe_timing = TIMING_ZERO,
9831 .block_erasers =
9832 {
9833 {
9834 .eraseblocks = { {64 * 1024, 64} },
9835 .block_erase = erase_sector_jedec,
9836 }, {
9837 .eraseblocks = { {4 * 1024 * 1024, 1} },
9838 .block_erase = erase_chip_block_jedec,
9839 },
9840 },
9841 .write = write_jedec_1,
9842 .read = read_memmapped,
9843 .voltage = {2700, 3600},
9844 },
9845
9846 {
9847 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009848 .name = "MX29GL320ET",
9849 .bustype = BUS_PARALLEL,
9850 .manufacture_id = MACRONIX_ID,
9851 .model_id = MACRONIX_MX29GL320ET,
9852 .total_size = 4096,
9853 .page_size = 128 * 1024, /* actual page size is 16 */
9854 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9855 .tested = TEST_UNTESTED,
9856 .probe = probe_jedec_29gl,
9857 .probe_timing = TIMING_ZERO,
9858 .block_erasers =
9859 {
9860 {
9861 .eraseblocks = {
9862 {64 * 1024, 63},
9863 {8 * 1024, 8},
9864 },
9865 .block_erase = erase_sector_jedec,
9866 }, {
9867 .eraseblocks = { {4 * 1024 * 1024, 1} },
9868 .block_erase = erase_chip_block_jedec,
9869 },
9870 },
9871 .write = write_jedec_1,
9872 .read = read_memmapped,
9873 .voltage = {2700, 3600},
9874 },
9875
9876 {
9877 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009878 .name = "MX29GL640EB",
9879 .bustype = BUS_PARALLEL,
9880 .manufacture_id = MACRONIX_ID,
9881 .model_id = MACRONIX_MX29GL640EB,
9882 .total_size = 8192,
9883 .page_size = 128 * 1024, /* actual page size is 16 */
9884 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9885 .tested = TEST_UNTESTED,
9886 .probe = probe_jedec_29gl,
9887 .probe_timing = TIMING_ZERO,
9888 .block_erasers =
9889 {
9890 {
9891 .eraseblocks = {
9892 {8 * 1024, 8},
9893 {64 * 1024, 127},
9894 },
9895 .block_erase = erase_sector_jedec,
9896 }, {
9897 .eraseblocks = { {8 * 1024 * 1024, 1} },
9898 .block_erase = erase_chip_block_jedec,
9899 },
9900 },
9901 .write = write_jedec_1,
9902 .read = read_memmapped,
9903 .voltage = {2700, 3600},
9904 },
9905
9906 {
9907 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009908 .name = "MX29GL640EH/L",
9909 .bustype = BUS_PARALLEL,
9910 .manufacture_id = MACRONIX_ID,
9911 .model_id = MACRONIX_MX29GL640EHL,
9912 .total_size = 8192,
9913 .page_size = 128 * 1024, /* actual page size is 16 */
9914 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9915 .tested = TEST_UNTESTED,
9916 .probe = probe_jedec_29gl,
9917 .probe_timing = TIMING_ZERO,
9918 .block_erasers =
9919 {
9920 {
9921 .eraseblocks = { {64 * 1024, 128} },
9922 .block_erase = erase_sector_jedec,
9923 }, {
9924 .eraseblocks = { {8 * 1024 * 1024, 1} },
9925 .block_erase = erase_chip_block_jedec,
9926 },
9927 },
9928 .write = write_jedec_1,
9929 .read = read_memmapped,
9930 .voltage = {2700, 3600},
9931 },
9932
9933 {
9934 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009935 .name = "MX29GL640ET",
9936 .bustype = BUS_PARALLEL,
9937 .manufacture_id = MACRONIX_ID,
9938 .model_id = MACRONIX_MX29GL640ET,
9939 .total_size = 8192,
9940 .page_size = 128 * 1024, /* actual page size is 16 */
9941 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9942 .tested = TEST_UNTESTED,
9943 .probe = probe_jedec_29gl,
9944 .probe_timing = TIMING_ZERO,
9945 .block_erasers =
9946 {
9947 {
9948 .eraseblocks = {
9949 {64 * 1024, 127},
9950 {8 * 1024, 8},
9951 },
9952 .block_erase = erase_sector_jedec,
9953 }, {
9954 .eraseblocks = { {8 * 1024 * 1024, 1} },
9955 .block_erase = erase_chip_block_jedec,
9956 },
9957 },
9958 .write = write_jedec_1,
9959 .read = read_memmapped,
9960 .voltage = {2700, 3600},
9961 },
9962
9963 {
9964 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00009965 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009966 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009967 .manufacture_id = MACRONIX_ID,
9968 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009969 .total_size = 512,
9970 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009971 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9972 .tested = TEST_UNTESTED,
9973 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009974 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009975 .block_erasers =
9976 {
9977 {
Stefan Tauner6697f712014-08-06 15:09:15 +00009978 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00009979 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009980 }, {
9981 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009982 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009983 },
9984 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009985 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009986 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009987 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00009988 },
9989
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009990 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009991 .vendor = "Macronix",
Hemanth Guruva Reddya136d422019-07-11 11:08:27 +02009992 .name = "MX66L51235F/MX25L51245G",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009993 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009994 .manufacture_id = MACRONIX_ID,
9995 .model_id = MACRONIX_MX66L51235F,
9996 .total_size = 65536,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009997 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009998 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9999 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010000 .tested = TEST_OK_PREW,
10001 .probe = probe_spi_rdid,
10002 .probe_timing = TIMING_ZERO,
10003 .block_erasers =
10004 {
10005 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010006 .eraseblocks = { {4 * 1024, 16384} },
10007 .block_erase = spi_block_erase_21,
10008 }, {
10009 .eraseblocks = { {4 * 1024, 16384} },
10010 .block_erase = spi_block_erase_20,
10011 }, {
10012 .eraseblocks = { {32 * 1024, 2048} },
10013 .block_erase = spi_block_erase_5c,
10014 }, {
10015 .eraseblocks = { {32 * 1024, 2048} },
10016 .block_erase = spi_block_erase_52,
10017 }, {
10018 .eraseblocks = { {64 * 1024, 1024} },
10019 .block_erase = spi_block_erase_dc,
10020 }, {
10021 .eraseblocks = { {64 * 1024, 1024} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010022 .block_erase = spi_block_erase_d8,
10023 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010024 .eraseblocks = { {64 * 1024 * 1024, 1} },
10025 .block_erase = spi_block_erase_60,
10026 }, {
10027 .eraseblocks = { {64 * 1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010028 .block_erase = spi_block_erase_c7,
10029 }
10030 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100010031 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
10032 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010033 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010034 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010035 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010036 .voltage = {2700, 3600},
10037 },
10038
Patrick Rudolph3ba83152021-06-08 10:52:19 +020010039 {
10040 .vendor = "Macronix",
10041 .name = "MX66L1G45G",
10042 .bustype = BUS_SPI,
10043 .manufacture_id = MACRONIX_ID,
10044 .model_id = MACRONIX_MX66L1G45G,
10045 .total_size = 131072,
10046 .page_size = 256,
10047 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10048 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
10049 .tested = TEST_OK_PREW,
10050 .probe = probe_spi_rdid,
10051 .probe_timing = TIMING_ZERO,
10052 .block_erasers =
10053 {
10054 {
10055 .eraseblocks = { {4 * 1024, 32768} },
10056 .block_erase = spi_block_erase_21,
10057 }, {
10058 .eraseblocks = { {4 * 1024, 32768} },
10059 .block_erase = spi_block_erase_20,
10060 }, {
10061 .eraseblocks = { {32 * 1024, 4096} },
10062 .block_erase = spi_block_erase_5c,
10063 }, {
10064 .eraseblocks = { {32 * 1024, 4096} },
10065 .block_erase = spi_block_erase_52,
10066 }, {
10067 .eraseblocks = { {64 * 1024, 2048} },
10068 .block_erase = spi_block_erase_dc,
10069 }, {
10070 .eraseblocks = { {64 * 1024, 2048} },
10071 .block_erase = spi_block_erase_d8,
10072 }, {
10073 .eraseblocks = { {128 * 1024 * 1024, 1} },
10074 .block_erase = spi_block_erase_60,
10075 }, {
10076 .eraseblocks = { {128 * 1024 * 1024, 1} },
10077 .block_erase = spi_block_erase_c7,
10078 }
10079 },
10080 /* TODO: security register and SBLK/SBULK, configuration register */
10081 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10082 .unlock = spi_disable_blockprotect_bp3_srwd,
10083 .write = spi_chip_write_256,
10084 .read = spi_chip_read, /* Fast read (0x0B) supported */
10085 .voltage = {2700, 3600},
10086 },
10087
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010088 /* The ST M25P05 is a bit of a problem. It has the same ID as the
10089 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
10090 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
10091 * only is successful if RDID does not work.
10092 */
10093 {
10094 .vendor = "Micron/Numonyx/ST",
10095 .name = "M25P05",
10096 .bustype = BUS_SPI,
10097 .manufacture_id = 0, /* Not used. */
10098 .model_id = ST_M25P05_RES,
10099 .total_size = 64,
10100 .page_size = 256,
10101 .feature_bits = FEATURE_WRSR_WREN,
10102 .tested = TEST_UNTESTED,
10103 .probe = probe_spi_res1,
10104 .probe_timing = TIMING_ZERO,
10105 .block_erasers =
10106 {
10107 {
10108 .eraseblocks = { {32 * 1024, 2} },
10109 .block_erase = spi_block_erase_d8,
10110 }, {
10111 .eraseblocks = { {64 * 1024, 1} },
10112 .block_erase = spi_block_erase_c7,
10113 }
10114 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010115 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010116 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010117 .write = spi_chip_write_1, /* 128 */
10118 .read = spi_chip_read,
10119 .voltage = {2700, 3600},
10120 },
10121
10122 {
10123 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010124 .name = "M25P05-A",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010125 .bustype = BUS_SPI,
10126 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010127 .model_id = ST_M25P05A,
10128 .total_size = 64,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010129 .page_size = 256,
10130 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010131 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010132 .probe = probe_spi_rdid,
10133 .probe_timing = TIMING_ZERO,
10134 .block_erasers =
10135 {
10136 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010137 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010138 .block_erase = spi_block_erase_d8,
10139 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010140 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010141 .block_erase = spi_block_erase_c7,
10142 }
10143 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010144 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010145 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010146 .write = spi_chip_write_256,
10147 .read = spi_chip_read,
10148 .voltage = {2700, 3600},
10149 },
10150
10151 /* The ST M25P10 has the same problem as the M25P05. */
10152 {
10153 .vendor = "Micron/Numonyx/ST",
10154 .name = "M25P10",
10155 .bustype = BUS_SPI,
10156 .manufacture_id = 0, /* Not used. */
10157 .model_id = ST_M25P10_RES,
10158 .total_size = 128,
10159 .page_size = 256,
10160 .feature_bits = FEATURE_WRSR_WREN,
10161 .tested = TEST_UNTESTED,
10162 .probe = probe_spi_res1,
10163 .probe_timing = TIMING_ZERO,
10164 .block_erasers =
10165 {
10166 {
10167 .eraseblocks = { {32 * 1024, 4} },
10168 .block_erase = spi_block_erase_d8,
10169 }, {
10170 .eraseblocks = { {128 * 1024, 1} },
10171 .block_erase = spi_block_erase_c7,
10172 }
10173 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010174 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010175 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010176 .write = spi_chip_write_1, /* 128 */
10177 .read = spi_chip_read,
10178 .voltage = {2700, 3600},
10179 },
10180
10181 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010182 .vendor = "Micron/Numonyx/ST",
10183 .name = "M25P10-A",
10184 .bustype = BUS_SPI,
10185 .manufacture_id = ST_ID,
10186 .model_id = ST_M25P10A,
10187 .total_size = 128,
10188 .page_size = 256,
10189 .feature_bits = FEATURE_WRSR_WREN,
10190 .tested = TEST_OK_PREW,
10191 .probe = probe_spi_rdid,
10192 .probe_timing = TIMING_ZERO,
10193 .block_erasers =
10194 {
10195 {
10196 .eraseblocks = { {32 * 1024, 4} },
10197 .block_erase = spi_block_erase_d8,
10198 }, {
10199 .eraseblocks = { {128 * 1024, 1} },
10200 .block_erase = spi_block_erase_c7,
10201 }
10202 },
10203 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10204 .unlock = spi_disable_blockprotect_bp3_srwd,
10205 .write = spi_chip_write_256,
10206 .read = spi_chip_read,
10207 .voltage = {2700, 3600},
10208 },
10209
10210 {
10211 .vendor = "Micron/Numonyx/ST",
10212 .name = "M25P128",
10213 .bustype = BUS_SPI,
10214 .manufacture_id = ST_ID,
10215 .model_id = ST_M25P128,
10216 .total_size = 16384,
10217 .page_size = 256,
10218 .feature_bits = FEATURE_WRSR_WREN,
10219 .tested = TEST_OK_PREW,
10220 .probe = probe_spi_rdid,
10221 .probe_timing = TIMING_ZERO,
10222 .block_erasers =
10223 {
10224 {
10225 .eraseblocks = { {256 * 1024, 64} },
10226 .block_erase = spi_block_erase_d8,
10227 }, {
10228 .eraseblocks = { {16 * 1024 * 1024, 1} },
10229 .block_erase = spi_block_erase_c7,
10230 }
10231 },
10232 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10233 .unlock = spi_disable_blockprotect_bp3_srwd,
10234 .write = spi_chip_write_256,
10235 .read = spi_chip_read,
10236 .voltage = {2700, 3600},
10237 },
10238
10239 {
10240 .vendor = "Micron/Numonyx/ST",
10241 .name = "M25P16",
10242 .bustype = BUS_SPI,
10243 .manufacture_id = ST_ID,
10244 .model_id = ST_M25P16,
10245 .total_size = 2048,
10246 .page_size = 256,
10247 .feature_bits = FEATURE_WRSR_WREN,
10248 .tested = TEST_OK_PREW,
10249 .probe = probe_spi_rdid,
10250 .probe_timing = TIMING_ZERO,
10251 .block_erasers =
10252 {
10253 {
10254 .eraseblocks = { {64 * 1024, 32} },
10255 .block_erase = spi_block_erase_d8,
10256 }, {
10257 .eraseblocks = { {2 * 1024 * 1024, 1} },
10258 .block_erase = spi_block_erase_c7,
10259 }
10260 },
10261 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10262 .unlock = spi_disable_blockprotect_bp3_srwd,
10263 .write = spi_chip_write_256,
10264 .read = spi_chip_read,
10265 .voltage = {2700, 3600},
10266 },
10267
10268 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010269 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10270 .name = "M25P20",
10271 .bustype = BUS_SPI,
10272 .manufacture_id = ST_ID,
10273 .model_id = ST_M25P20,
10274 .total_size = 256,
10275 .page_size = 256,
10276 .feature_bits = FEATURE_WRSR_WREN,
10277 .tested = TEST_UNTESTED,
10278 .probe = probe_spi_rdid,
10279 .probe_timing = TIMING_ZERO,
10280 .block_erasers =
10281 {
10282 {
10283 .eraseblocks = { {64 * 1024, 4} },
10284 .block_erase = spi_block_erase_d8,
10285 }, {
10286 .eraseblocks = { {256 * 1024, 1} },
10287 .block_erase = spi_block_erase_c7,
10288 }
10289 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010290 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010291 .unlock = spi_disable_blockprotect,
10292 .write = spi_chip_write_256,
10293 .read = spi_chip_read, /* Fast read (0x0B) supported */
10294 .voltage = {2700, 3600},
10295 },
10296
10297 {
10298 .vendor = "Micron/Numonyx/ST",
10299 .name = "M25P20-old",
10300 .bustype = BUS_SPI,
10301 .manufacture_id = 0, /* Not used. */
10302 .model_id = ST_M25P20_RES,
10303 .total_size = 256,
10304 .page_size = 256,
10305 .feature_bits = FEATURE_WRSR_WREN,
10306 .tested = TEST_OK_PREW,
10307 .probe = probe_spi_res1,
10308 .probe_timing = TIMING_ZERO,
10309 .block_erasers =
10310 {
10311 {
10312 .eraseblocks = { {64 * 1024, 4} },
10313 .block_erase = spi_block_erase_d8,
10314 }, {
10315 .eraseblocks = { {256 * 1024, 1} },
10316 .block_erase = spi_block_erase_c7,
10317 }
10318 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010319 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010320 .unlock = spi_disable_blockprotect,
10321 .write = spi_chip_write_256,
10322 .read = spi_chip_read, /* Fast read (0x0B) supported */
10323 .voltage = {2700, 3600},
10324 },
10325
10326 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010327 .vendor = "Micron/Numonyx/ST",
10328 .name = "M25P32",
10329 .bustype = BUS_SPI,
10330 .manufacture_id = ST_ID,
10331 .model_id = ST_M25P32,
10332 .total_size = 4096,
10333 .page_size = 256,
10334 .feature_bits = FEATURE_WRSR_WREN,
10335 .tested = TEST_OK_PREW,
10336 .probe = probe_spi_rdid,
10337 .probe_timing = TIMING_ZERO,
10338 .block_erasers =
10339 {
10340 {
10341 .eraseblocks = { {64 * 1024, 64} },
10342 .block_erase = spi_block_erase_d8,
10343 }, {
10344 .eraseblocks = { {4 * 1024 * 1024, 1} },
10345 .block_erase = spi_block_erase_c7,
10346 }
10347 },
10348 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10349 .unlock = spi_disable_blockprotect_bp3_srwd,
10350 .write = spi_chip_write_256,
10351 .read = spi_chip_read,
10352 .voltage = {2700, 3600},
10353 },
10354
10355 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010356 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10357 .name = "M25P40",
10358 .bustype = BUS_SPI,
10359 .manufacture_id = ST_ID,
10360 .model_id = ST_M25P40,
10361 .total_size = 512,
10362 .page_size = 256,
10363 .feature_bits = FEATURE_WRSR_WREN,
10364 .tested = TEST_OK_PREW,
10365 .probe = probe_spi_rdid,
10366 .probe_timing = TIMING_ZERO,
10367 .block_erasers =
10368 {
10369 {
10370 .eraseblocks = { {64 * 1024, 8} },
10371 .block_erase = spi_block_erase_d8,
10372 }, {
10373 .eraseblocks = { {512 * 1024, 1} },
10374 .block_erase = spi_block_erase_c7,
10375 }
10376 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010377 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010378 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010379 .write = spi_chip_write_256,
10380 .read = spi_chip_read,
10381 .voltage = {2700, 3600},
10382 },
10383
10384 {
10385 .vendor = "Micron/Numonyx/ST",
10386 .name = "M25P40-old",
10387 .bustype = BUS_SPI,
10388 .manufacture_id = 0, /* Not used. */
10389 .model_id = ST_M25P40_RES,
10390 .total_size = 512,
10391 .page_size = 256,
10392 .feature_bits = FEATURE_WRSR_WREN,
10393 .tested = TEST_UNTESTED,
10394 .probe = probe_spi_res1,
10395 .probe_timing = TIMING_ZERO,
10396 .block_erasers =
10397 {
10398 {
10399 .eraseblocks = { {64 * 1024, 8} },
10400 .block_erase = spi_block_erase_d8,
10401 }, {
10402 .eraseblocks = { {512 * 1024, 1} },
10403 .block_erase = spi_block_erase_c7,
10404 }
10405 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010406 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010407 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010408 .write = spi_chip_write_256,
10409 .read = spi_chip_read,
10410 },
10411
10412 {
10413 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010414 .name = "M25P64",
10415 .bustype = BUS_SPI,
10416 .manufacture_id = ST_ID,
10417 .model_id = ST_M25P64,
10418 .total_size = 8192,
10419 .page_size = 256,
10420 .feature_bits = FEATURE_WRSR_WREN,
10421 .tested = TEST_OK_PREW,
10422 .probe = probe_spi_rdid,
10423 .probe_timing = TIMING_ZERO,
10424 .block_erasers =
10425 {
10426 {
10427 .eraseblocks = { {64 * 1024, 128} },
10428 .block_erase = spi_block_erase_d8,
10429 }, {
10430 .eraseblocks = { {8 * 1024 * 1024, 1} },
10431 .block_erase = spi_block_erase_c7,
10432 }
10433 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010434 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010435 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010436 .write = spi_chip_write_256,
10437 .read = spi_chip_read,
10438 .voltage = {2700, 3600},
10439 },
10440
10441 {
10442 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010443 .name = "M25P80",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010444 .bustype = BUS_SPI,
10445 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010446 .model_id = ST_M25P80,
10447 .total_size = 1024,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010448 .page_size = 256,
10449 .feature_bits = FEATURE_WRSR_WREN,
10450 .tested = TEST_OK_PREW,
10451 .probe = probe_spi_rdid,
10452 .probe_timing = TIMING_ZERO,
10453 .block_erasers =
10454 {
10455 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010456 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010457 .block_erase = spi_block_erase_d8,
10458 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010459 .eraseblocks = { {1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010460 .block_erase = spi_block_erase_c7,
10461 }
10462 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010463 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010464 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010465 .write = spi_chip_write_256,
10466 .read = spi_chip_read,
10467 .voltage = {2700, 3600},
10468 },
10469
10470 {
10471 .vendor = "Micron/Numonyx/ST",
10472 .name = "M25PE10",
10473 .bustype = BUS_SPI,
10474 .manufacture_id = ST_ID,
10475 .model_id = ST_M25PE10,
10476 .total_size = 128,
10477 .page_size = 256,
10478 .feature_bits = FEATURE_WRSR_WREN,
10479 .tested = TEST_UNTESTED,
10480 .probe = probe_spi_rdid,
10481 .probe_timing = TIMING_ZERO,
10482 .block_erasers =
10483 {
10484 {
10485 .eraseblocks = { {4 * 1024, 32} },
10486 .block_erase = spi_block_erase_20,
10487 }, {
10488 .eraseblocks = { {64 * 1024, 2} },
10489 .block_erase = spi_block_erase_d8,
10490 }, {
10491 .eraseblocks = { {128 * 1024, 1} },
10492 .block_erase = spi_block_erase_c7,
10493 }
10494 },
10495 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10496 .unlock = spi_disable_blockprotect,
10497 .write = spi_chip_write_256,
10498 .read = spi_chip_read,
10499 .voltage = {2700, 3600},
10500 },
10501
10502 {
10503 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010504 .name = "M25PE16",
10505 .bustype = BUS_SPI,
10506 .manufacture_id = ST_ID,
10507 .model_id = ST_M25PE16,
10508 .total_size = 2048,
10509 .page_size = 256,
10510 .feature_bits = FEATURE_WRSR_WREN,
10511 .tested = TEST_UNTESTED,
10512 .probe = probe_spi_rdid,
10513 .probe_timing = TIMING_ZERO,
10514 .block_erasers =
10515 {
10516 {
10517 .eraseblocks = { {4 * 1024, 512} },
10518 .block_erase = spi_block_erase_20,
10519 }, {
10520 .eraseblocks = { {64 * 1024, 32} },
10521 .block_erase = spi_block_erase_d8,
10522 }, {
10523 .eraseblocks = { {2 * 1024 * 1024, 1} },
10524 .block_erase = spi_block_erase_c7,
10525 }
10526 },
10527 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10528 .unlock = spi_disable_blockprotect,
10529 .write = spi_chip_write_256,
10530 .read = spi_chip_read,
10531 .voltage = {2700, 3600},
10532 },
10533
10534 {
10535 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010536 .name = "M25PE20",
10537 .bustype = BUS_SPI,
10538 .manufacture_id = ST_ID,
10539 .model_id = ST_M25PE20,
10540 .total_size = 256,
10541 .page_size = 256,
10542 .feature_bits = FEATURE_WRSR_WREN,
10543 .tested = TEST_UNTESTED,
10544 .probe = probe_spi_rdid,
10545 .probe_timing = TIMING_ZERO,
10546 .block_erasers =
10547 {
10548 {
10549 .eraseblocks = { {4 * 1024, 64} },
10550 .block_erase = spi_block_erase_20,
10551 }, {
10552 .eraseblocks = { {64 * 1024, 4} },
10553 .block_erase = spi_block_erase_d8,
10554 }, {
10555 .eraseblocks = { {256 * 1024, 1} },
10556 .block_erase = spi_block_erase_c7,
10557 }
10558 },
10559 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10560 .unlock = spi_disable_blockprotect,
10561 .write = spi_chip_write_256,
10562 .read = spi_chip_read,
10563 .voltage = {2700, 3600},
10564 },
10565
10566 {
10567 .vendor = "Micron/Numonyx/ST",
10568 .name = "M25PE40",
10569 .bustype = BUS_SPI,
10570 .manufacture_id = ST_ID,
10571 .model_id = ST_M25PE40,
10572 .total_size = 512,
10573 .page_size = 256,
10574 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010575 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010576 .probe = probe_spi_rdid,
10577 .probe_timing = TIMING_ZERO,
10578 .block_erasers =
10579 {
10580 {
10581 .eraseblocks = { {4 * 1024, 128} },
10582 .block_erase = spi_block_erase_20,
10583 }, {
10584 .eraseblocks = { {64 * 1024, 8} },
10585 .block_erase = spi_block_erase_d8,
10586 }, {
10587 .eraseblocks = { {512 * 1024, 1} },
10588 .block_erase = spi_block_erase_c7,
10589 }
10590 },
10591 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10592 .unlock = spi_disable_blockprotect,
10593 .write = spi_chip_write_256,
10594 .read = spi_chip_read,
10595 .voltage = {2700, 3600},
10596 },
10597
10598 {
10599 .vendor = "Micron/Numonyx/ST",
10600 .name = "M25PE80",
10601 .bustype = BUS_SPI,
10602 .manufacture_id = ST_ID,
10603 .model_id = ST_M25PE80,
10604 .total_size = 1024,
10605 .page_size = 256,
10606 .feature_bits = FEATURE_WRSR_WREN,
10607 .tested = TEST_OK_PREW,
10608 .probe = probe_spi_rdid,
10609 .probe_timing = TIMING_ZERO,
10610 .block_erasers =
10611 {
10612 {
10613 .eraseblocks = { {4 * 1024, 256} },
10614 .block_erase = spi_block_erase_20,
10615 }, {
10616 .eraseblocks = { {64 * 1024, 16} },
10617 .block_erase = spi_block_erase_d8,
10618 }, {
10619 .eraseblocks = { {1024 * 1024, 1} },
10620 .block_erase = spi_block_erase_c7,
10621 }
10622 },
10623 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10624 .unlock = spi_disable_blockprotect,
10625 .write = spi_chip_write_256,
10626 .read = spi_chip_read,
10627 .voltage = {2700, 3600},
10628 },
10629
10630 {
10631 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010632 .name = "M25PX16",
10633 .bustype = BUS_SPI,
10634 .manufacture_id = ST_ID,
10635 .model_id = ST_M25PX16,
10636 .total_size = 2048,
10637 .page_size = 256,
10638 /* OTP: 64B total; read 0x4B; write 0x42 */
10639 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10640 .tested = TEST_OK_PREW,
10641 .probe = probe_spi_rdid,
10642 .probe_timing = TIMING_ZERO,
10643 .block_erasers =
10644 {
10645 {
10646 .eraseblocks = { { 4 * 1024, 512 } },
10647 .block_erase = spi_block_erase_20,
10648 }, {
10649 .eraseblocks = { {64 * 1024, 32} },
10650 .block_erase = spi_block_erase_d8,
10651 }, {
10652 .eraseblocks = { {2 * 1024 * 1024, 1} },
10653 .block_erase = spi_block_erase_c7,
10654 }
10655 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010656 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010657 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10658 .write = spi_chip_write_256,
10659 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010660 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010661 },
10662
10663 {
10664 .vendor = "Micron/Numonyx/ST",
10665 .name = "M25PX32",
10666 .bustype = BUS_SPI,
10667 .manufacture_id = ST_ID,
10668 .model_id = ST_M25PX32,
10669 .total_size = 4096,
10670 .page_size = 256,
10671 /* OTP: 64B total; read 0x4B; write 0x42 */
10672 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10673 .tested = TEST_OK_PRE,
10674 .probe = probe_spi_rdid,
10675 .probe_timing = TIMING_ZERO,
10676 .block_erasers =
10677 {
10678 {
10679 .eraseblocks = { { 4 * 1024, 1024 } },
10680 .block_erase = spi_block_erase_20,
10681 }, {
10682 .eraseblocks = { {64 * 1024, 64} },
10683 .block_erase = spi_block_erase_d8,
10684 }, {
10685 .eraseblocks = { {4 * 1024 * 1024, 1} },
10686 .block_erase = spi_block_erase_c7,
10687 }
10688 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010689 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010690 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10691 .write = spi_chip_write_256,
10692 .read = spi_chip_read,
10693 .voltage = {2700, 3600},
10694 },
10695
10696 {
10697 .vendor = "Micron/Numonyx/ST",
10698 .name = "M25PX64",
10699 .bustype = BUS_SPI,
10700 .manufacture_id = ST_ID,
10701 .model_id = ST_M25PX64,
10702 .total_size = 8192,
10703 .page_size = 256,
10704 /* OTP: 64B total; read 0x4B; write 0x42 */
10705 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010706 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010707 .probe = probe_spi_rdid,
10708 .probe_timing = TIMING_ZERO,
10709 .block_erasers =
10710 {
10711 {
10712 .eraseblocks = { { 4 * 1024, 2048 } },
10713 .block_erase = spi_block_erase_20,
10714 }, {
10715 .eraseblocks = { {64 * 1024, 128} },
10716 .block_erase = spi_block_erase_d8,
10717 }, {
10718 .eraseblocks = { {8 * 1024 * 1024, 1} },
10719 .block_erase = spi_block_erase_c7,
10720 }
10721 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010722 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010723 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10724 .write = spi_chip_write_256,
10725 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010726 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010727 },
10728
10729 {
10730 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010731 .name = "M25PX80",
10732 .bustype = BUS_SPI,
10733 .manufacture_id = ST_ID,
10734 .model_id = ST_M25PX80,
10735 .total_size = 1024,
10736 .page_size = 256,
10737 /* OTP: 64B total; read 0x4B, write 0x42 */
10738 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10739 .tested = TEST_OK_PREW,
10740 .probe = probe_spi_rdid,
10741 .probe_timing = TIMING_ZERO,
10742 .block_erasers =
10743 {
10744 {
10745 .eraseblocks = { { 4 * 1024, 256 } },
10746 .block_erase = spi_block_erase_20,
10747 }, {
10748 .eraseblocks = { {64 * 1024, 16} },
10749 .block_erase = spi_block_erase_d8,
10750 }, {
10751 .eraseblocks = { {1024 * 1024, 1} },
10752 .block_erase = spi_block_erase_c7,
10753 }
10754 },
10755 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
10756 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10757 .write = spi_chip_write_256,
10758 .read = spi_chip_read,
10759 .voltage = {2700, 3600},
10760 },
10761
10762 {
10763 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010764 .name = "M45PE10",
10765 .bustype = BUS_SPI,
10766 .manufacture_id = ST_ID,
10767 .model_id = ST_M45PE10,
10768 .total_size = 128,
10769 .page_size = 256,
10770 .tested = TEST_UNTESTED,
10771 .probe = probe_spi_rdid,
10772 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010773 .block_erasers =
10774 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010775 {
10776 .eraseblocks = { {256, 512} },
10777 .block_erase = spi_block_erase_db,
10778 }, {
10779 .eraseblocks = { {64 * 1024, 2} },
10780 .block_erase = spi_block_erase_d8,
10781 }
10782 },
10783 .printlock = spi_prettyprint_status_register_default_welwip,
10784 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10785 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10786 .read = spi_chip_read, /* Fast read (0x0B) supported */
10787 .voltage = {2700, 3600},
10788 },
10789
10790 {
10791 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010792 .name = "M45PE16",
10793 .bustype = BUS_SPI,
10794 .manufacture_id = ST_ID,
10795 .model_id = ST_M45PE16,
10796 .total_size = 2048,
10797 .page_size = 256,
10798 .tested = TEST_UNTESTED,
10799 .probe = probe_spi_rdid,
10800 .probe_timing = TIMING_ZERO,
10801 .block_erasers =
10802 {
10803 {
10804 .eraseblocks = { {256, 8192} },
10805 .block_erase = spi_block_erase_db,
10806 }, {
10807 .eraseblocks = { {64 * 1024, 32} },
10808 .block_erase = spi_block_erase_d8,
10809 }
10810 },
10811 .printlock = spi_prettyprint_status_register_default_welwip,
10812 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10813 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10814 .read = spi_chip_read, /* Fast read (0x0B) supported */
10815 .voltage = {2700, 3600},
10816 },
10817
10818 {
10819 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010820 .name = "M45PE20",
10821 .bustype = BUS_SPI,
10822 .manufacture_id = ST_ID,
10823 .model_id = ST_M45PE20,
10824 .total_size = 256,
10825 .page_size = 256,
10826 .tested = TEST_UNTESTED,
10827 .probe = probe_spi_rdid,
10828 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010829 .block_erasers =
10830 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010831 {
10832 .eraseblocks = { {256, 1024} },
10833 .block_erase = spi_block_erase_db,
10834 }, {
10835 .eraseblocks = { {64 * 1024, 4} },
10836 .block_erase = spi_block_erase_d8,
10837 }
10838 },
10839 .printlock = spi_prettyprint_status_register_default_welwip,
10840 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10841 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10842 .read = spi_chip_read, /* Fast read (0x0B) supported */
10843 .voltage = {2700, 3600},
10844 },
10845
10846 {
10847 .vendor = "Micron/Numonyx/ST",
10848 .name = "M45PE40",
10849 .bustype = BUS_SPI,
10850 .manufacture_id = ST_ID,
10851 .model_id = ST_M45PE40,
10852 .total_size = 512,
10853 .page_size = 256,
10854 .tested = TEST_UNTESTED,
10855 .probe = probe_spi_rdid,
10856 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010857 .block_erasers =
10858 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010859 {
10860 .eraseblocks = { {256, 2048} },
10861 .block_erase = spi_block_erase_db,
10862 }, {
10863 .eraseblocks = { {64 * 1024, 8} },
10864 .block_erase = spi_block_erase_d8,
10865 }
10866 },
10867 .printlock = spi_prettyprint_status_register_default_welwip,
10868 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000010869 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010870 .read = spi_chip_read, /* Fast read (0x0B) supported */
10871 .voltage = {2700, 3600},
10872 },
10873
10874 {
10875 .vendor = "Micron/Numonyx/ST",
10876 .name = "M45PE80",
10877 .bustype = BUS_SPI,
10878 .manufacture_id = ST_ID,
10879 .model_id = ST_M45PE80,
10880 .total_size = 1024,
10881 .page_size = 256,
10882 .tested = TEST_UNTESTED,
10883 .probe = probe_spi_rdid,
10884 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010885 .block_erasers =
10886 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010887 {
10888 .eraseblocks = { {256, 4096} },
10889 .block_erase = spi_block_erase_db,
10890 }, {
10891 .eraseblocks = { {64 * 1024, 16} },
10892 .block_erase = spi_block_erase_d8,
10893 }
10894 },
10895 .printlock = spi_prettyprint_status_register_default_welwip,
10896 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10897 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10898 .read = spi_chip_read, /* Fast read (0x0B) supported */
10899 .voltage = {2700, 3600},
10900 },
10901
10902 {
10903 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010904 .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
10905 .bustype = BUS_SPI,
10906 .manufacture_id = ST_ID,
10907 .model_id = ST_N25Q00A__1G,
10908 .total_size = 131072,
10909 .page_size = 256,
10910 /* supports SFDP */
10911 /* OTP: 64B total; read 0x4B, write 0x42 */
10912 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10913 .tested = TEST_UNTESTED,
10914 .probe = probe_spi_rdid,
10915 .probe_timing = TIMING_ZERO,
10916 .block_erasers =
10917 {
10918 {
10919 .eraseblocks = { {4 * 1024, 32768} },
10920 .block_erase = spi_block_erase_21,
10921 }, {
10922 .eraseblocks = { {4 * 1024, 32768} },
10923 .block_erase = spi_block_erase_20,
10924 }, {
10925 .eraseblocks = { {64 * 1024, 2048} },
10926 .block_erase = spi_block_erase_dc,
10927 }, {
10928 .eraseblocks = { {64 * 1024, 2048} },
10929 .block_erase = spi_block_erase_d8,
10930 }, {
10931 .eraseblocks = { {32768 * 1024, 4} },
10932 .block_erase = spi_block_erase_c4,
10933 }
10934 },
10935 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10936 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10937 .write = spi_chip_write_256, /* Multi I/O supported */
10938 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10939 .voltage = {1700, 2000},
10940 },
10941
10942 {
10943 .vendor = "Micron/Numonyx/ST",
10944 .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
10945 .bustype = BUS_SPI,
10946 .manufacture_id = ST_ID,
10947 .model_id = ST_N25Q00A__3G,
10948 .total_size = 131072,
10949 .page_size = 256,
10950 /* supports SFDP */
10951 /* OTP: 64B total; read 0x4B, write 0x42 */
10952 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10953 .tested = TEST_UNTESTED,
10954 .probe = probe_spi_rdid,
10955 .probe_timing = TIMING_ZERO,
10956 .block_erasers =
10957 {
10958 {
10959 .eraseblocks = { {4 * 1024, 32768} },
10960 .block_erase = spi_block_erase_21,
10961 }, {
10962 .eraseblocks = { {4 * 1024, 32768} },
10963 .block_erase = spi_block_erase_20,
10964 }, {
10965 .eraseblocks = { {64 * 1024, 2048} },
10966 .block_erase = spi_block_erase_dc,
10967 }, {
10968 .eraseblocks = { {64 * 1024, 2048} },
10969 .block_erase = spi_block_erase_d8,
10970 }, {
10971 .eraseblocks = { {32768 * 1024, 4} },
10972 .block_erase = spi_block_erase_c4,
10973 }
10974 },
10975 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10976 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10977 .write = spi_chip_write_256, /* Multi I/O supported */
10978 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10979 .voltage = {2700, 3600},
10980 },
10981
10982 {
10983 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010984 .name = "N25Q016",
10985 .bustype = BUS_SPI,
10986 .manufacture_id = ST_ID,
10987 .model_id = ST_N25Q016__1E,
10988 .total_size = 2048,
10989 .page_size = 256,
10990 /* supports SFDP */
10991 /* OTP: 64B total; read 0x4B, write 0x42 */
10992 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10993 .tested = TEST_UNTESTED,
10994 .probe = probe_spi_rdid,
10995 .probe_timing = TIMING_ZERO,
10996 .block_erasers =
10997 {
10998 {
10999 .eraseblocks = { {4 * 1024, 512} },
11000 .block_erase = spi_block_erase_20,
11001 }, {
11002 .eraseblocks = { {32 * 1024, 64} },
11003 .block_erase = spi_block_erase_52,
11004 }, {
11005 .eraseblocks = { {64 * 1024, 32} },
11006 .block_erase = spi_block_erase_d8,
11007 }, {
11008 .eraseblocks = { {2 * 1024 * 1024, 1} },
11009 .block_erase = spi_block_erase_c7,
11010 }
11011 },
11012 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11013 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11014 .write = spi_chip_write_256, /* Multi I/O supported */
11015 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11016 .voltage = {1700, 2000},
11017 },
11018
11019 {
11020 .vendor = "Micron/Numonyx/ST",
11021 .name = "N25Q032..1E",
11022 .bustype = BUS_SPI,
11023 .manufacture_id = ST_ID,
11024 .model_id = ST_N25Q032__1E,
11025 .total_size = 4096,
11026 .page_size = 256,
11027 /* supports SFDP */
11028 /* OTP: 64B total; read 0x4B, write 0x42 */
11029 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11030 .tested = TEST_UNTESTED,
11031 .probe = probe_spi_rdid,
11032 .probe_timing = TIMING_ZERO,
11033 .block_erasers =
11034 {
11035 {
11036 .eraseblocks = { {4 * 1024, 1024} },
11037 .block_erase = spi_block_erase_20,
11038 }, {
11039 .eraseblocks = { {64 * 1024, 64} },
11040 .block_erase = spi_block_erase_d8,
11041 }, {
11042 .eraseblocks = { {4 * 1024 * 1024, 1} },
11043 .block_erase = spi_block_erase_c7,
11044 }
11045 },
11046 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11047 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11048 .write = spi_chip_write_256, /* Multi I/O supported */
11049 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11050 .voltage = {1700, 2000},
11051 },
11052
11053 {
11054 .vendor = "Micron/Numonyx/ST",
11055 .name = "N25Q032..3E",
11056 .bustype = BUS_SPI,
11057 .manufacture_id = ST_ID,
11058 .model_id = ST_N25Q032__3E,
11059 .total_size = 4096,
11060 .page_size = 256,
11061 /* supports SFDP */
11062 /* OTP: 64B total; read 0x4B, write 0x42 */
11063 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11064 .tested = TEST_OK_PREW,
11065 .probe = probe_spi_rdid,
11066 .probe_timing = TIMING_ZERO,
11067 .block_erasers =
11068 {
11069 {
11070 .eraseblocks = { {4 * 1024, 1024} },
11071 .block_erase = spi_block_erase_20,
11072 }, {
11073 .eraseblocks = { {64 * 1024, 64} },
11074 .block_erase = spi_block_erase_d8,
11075 }, {
11076 .eraseblocks = { {4 * 1024 * 1024, 1} },
11077 .block_erase = spi_block_erase_c7,
11078 }
11079 },
11080 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11081 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11082 .write = spi_chip_write_256, /* Multi I/O supported */
11083 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11084 .voltage = {2700, 3600},
11085 },
11086
11087 {
11088 .vendor = "Micron/Numonyx/ST",
11089 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11090 .bustype = BUS_SPI,
11091 .manufacture_id = ST_ID,
11092 .model_id = ST_N25Q064__1E,
11093 .total_size = 8192,
11094 .page_size = 256,
11095 /* supports SFDP */
11096 /* OTP: 64B total; read 0x4B, write 0x42 */
11097 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011098 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011099 .probe = probe_spi_rdid,
11100 .probe_timing = TIMING_ZERO,
11101 .block_erasers =
11102 {
11103 {
11104 .eraseblocks = { {4 * 1024, 2048 } },
11105 .block_erase = spi_block_erase_20,
11106 }, {
11107 .eraseblocks = { {64 * 1024, 128} },
11108 .block_erase = spi_block_erase_d8,
11109 }, {
11110 .eraseblocks = { {8 * 1024 * 1024, 1} },
11111 .block_erase = spi_block_erase_c7,
11112 }
11113 },
11114 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11115 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11116 .write = spi_chip_write_256, /* Multi I/O supported */
11117 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11118 .voltage = {1700, 2000},
11119 },
11120
11121 {
11122 .vendor = "Micron/Numonyx/ST",
11123 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11124 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011125 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011126 .model_id = ST_N25Q064__3E,
11127 .total_size = 8192,
11128 .page_size = 256,
11129 /* supports SFDP */
11130 /* OTP: 64B total; read 0x4B, write 0x42 */
11131 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11132 .tested = TEST_OK_PREW,
11133 .probe = probe_spi_rdid,
11134 .probe_timing = TIMING_ZERO,
11135 .block_erasers =
11136 {
11137 {
11138 .eraseblocks = { {4 * 1024, 2048 } },
11139 .block_erase = spi_block_erase_20,
11140 }, {
11141 .eraseblocks = { {64 * 1024, 128} },
11142 .block_erase = spi_block_erase_d8,
11143 }, {
11144 .eraseblocks = { {8 * 1024 * 1024, 1} },
11145 .block_erase = spi_block_erase_c7,
11146 }
11147 },
11148 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11149 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11150 .write = spi_chip_write_256, /* Multi I/O supported */
11151 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11152 .voltage = {2700, 3600},
11153 },
11154
11155 {
11156 .vendor = "Micron/Numonyx/ST",
11157 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11158 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011159 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011160 .model_id = ST_N25Q128__1E,
11161 .total_size = 16384,
11162 .page_size = 256,
11163 /* supports SFDP */
11164 /* OTP: 64B total; read 0x4B, write 0x42 */
11165 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011166 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011167 .probe = probe_spi_rdid,
11168 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011169 .block_erasers =
11170 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011171 {
11172 .eraseblocks = { {4 * 1024, 4096 } },
11173 .block_erase = spi_block_erase_20,
11174 }, {
11175 .eraseblocks = { {64 * 1024, 256} },
11176 .block_erase = spi_block_erase_d8,
11177 }, {
11178 .eraseblocks = { {16384 * 1024, 1} },
11179 .block_erase = spi_block_erase_c7,
11180 }
11181 },
11182 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11183 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11184 .write = spi_chip_write_256, /* Multi I/O supported */
11185 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11186 .voltage = {1700, 2000},
11187 },
11188
11189 {
11190 .vendor = "Micron/Numonyx/ST",
11191 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11192 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011193 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011194 .model_id = ST_N25Q128__3E,
11195 .total_size = 16384,
11196 .page_size = 256,
11197 /* supports SFDP */
11198 /* OTP: 64B total; read 0x4B, write 0x42 */
11199 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11200 .tested = TEST_OK_PREW,
11201 .probe = probe_spi_rdid,
11202 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011203 .block_erasers =
11204 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011205 {
11206 .eraseblocks = { {4 * 1024, 4096 } },
11207 .block_erase = spi_block_erase_20,
11208 }, {
11209 .eraseblocks = { {64 * 1024, 256} },
11210 .block_erase = spi_block_erase_d8,
11211 }, {
11212 .eraseblocks = { {16384 * 1024, 1} },
11213 .block_erase = spi_block_erase_c7,
11214 }
11215 },
11216 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11217 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11218 .write = spi_chip_write_256, /* Multi I/O supported */
11219 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11220 .voltage = {2700, 3600},
11221 },
11222
11223 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011224 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011225 .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11226 .bustype = BUS_SPI,
11227 .manufacture_id = ST_ID,
11228 .model_id = ST_N25Q256__1E,
11229 .total_size = 32768,
11230 .page_size = 256,
11231 /* supports SFDP */
11232 /* OTP: 64B total; read 0x4B, write 0x42 */
11233 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11234 .tested = TEST_UNTESTED,
11235 .probe = probe_spi_rdid,
11236 .probe_timing = TIMING_ZERO,
11237 .block_erasers =
11238 {
11239 {
11240 .eraseblocks = { {4 * 1024, 8192} },
11241 .block_erase = spi_block_erase_21,
11242 }, {
11243 .eraseblocks = { {4 * 1024, 8192} },
11244 .block_erase = spi_block_erase_20,
11245 }, {
11246 .eraseblocks = { {64 * 1024, 512} },
11247 .block_erase = spi_block_erase_dc,
11248 }, {
11249 .eraseblocks = { {64 * 1024, 512} },
11250 .block_erase = spi_block_erase_d8,
11251 }, {
11252 .eraseblocks = { {32768 * 1024, 1} },
11253 .block_erase = spi_block_erase_c7,
11254 }
11255 },
11256 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11257 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11258 .write = spi_chip_write_256, /* Multi I/O supported */
11259 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11260 .voltage = {1700, 2000},
11261 },
11262
11263 {
11264 .vendor = "Micron/Numonyx/ST",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011265 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11266 .bustype = BUS_SPI,
11267 .manufacture_id = ST_ID,
11268 .model_id = ST_N25Q256__3E,
11269 .total_size = 32768,
11270 .page_size = 256,
11271 /* supports SFDP */
11272 /* OTP: 64B total; read 0x4B, write 0x42 */
11273 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11274 .tested = TEST_UNTESTED,
11275 .probe = probe_spi_rdid,
11276 .probe_timing = TIMING_ZERO,
11277 .block_erasers =
11278 {
11279 {
11280 .eraseblocks = { {4 * 1024, 8192} },
11281 .block_erase = spi_block_erase_21,
11282 }, {
11283 .eraseblocks = { {4 * 1024, 8192} },
11284 .block_erase = spi_block_erase_20,
11285 }, {
11286 .eraseblocks = { {64 * 1024, 512} },
11287 .block_erase = spi_block_erase_dc,
11288 }, {
11289 .eraseblocks = { {64 * 1024, 512} },
11290 .block_erase = spi_block_erase_d8,
11291 }, {
11292 .eraseblocks = { {32768 * 1024, 1} },
11293 .block_erase = spi_block_erase_c7,
11294 }
11295 },
11296 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11297 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11298 .write = spi_chip_write_256, /* Multi I/O supported */
11299 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11300 .voltage = {2700, 3600},
11301 },
11302
11303 {
11304 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011305 .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011306 .bustype = BUS_SPI,
11307 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011308 .model_id = ST_N25Q512__1G,
11309 .total_size = 65536,
11310 .page_size = 256,
11311 /* supports SFDP */
11312 /* OTP: 64B total; read 0x4B, write 0x42 */
11313 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11314 .tested = TEST_UNTESTED,
11315 .probe = probe_spi_rdid,
11316 .probe_timing = TIMING_ZERO,
11317 .block_erasers =
11318 {
11319 {
11320 .eraseblocks = { {4 * 1024, 16384} },
11321 .block_erase = spi_block_erase_21,
11322 }, {
11323 .eraseblocks = { {4 * 1024, 16384} },
11324 .block_erase = spi_block_erase_20,
11325 }, {
11326 .eraseblocks = { {64 * 1024, 1024} },
11327 .block_erase = spi_block_erase_dc,
11328 }, {
11329 .eraseblocks = { {64 * 1024, 1024} },
11330 .block_erase = spi_block_erase_d8,
11331 }, {
11332 .eraseblocks = { {32768 * 1024, 2} },
11333 .block_erase = spi_block_erase_c4,
11334 }
11335 },
11336 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11337 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11338 .write = spi_chip_write_256, /* Multi I/O supported */
11339 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11340 .voltage = {1700, 2000},
11341 },
11342
11343 {
11344 .vendor = "Micron/Numonyx/ST",
11345 .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
11346 .bustype = BUS_SPI,
11347 .manufacture_id = ST_ID,
11348 .model_id = ST_N25Q512__3G,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011349 .total_size = 65536,
11350 .page_size = 256,
11351 /* supports SFDP */
11352 /* OTP: 64B total; read 0x4B, write 0x42 */
11353 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11354 .tested = TEST_OK_PREW,
11355 .probe = probe_spi_rdid,
11356 .probe_timing = TIMING_ZERO,
11357 .block_erasers =
11358 {
11359 {
11360 .eraseblocks = { {4 * 1024, 16384} },
11361 .block_erase = spi_block_erase_21,
11362 }, {
11363 .eraseblocks = { {4 * 1024, 16384} },
11364 .block_erase = spi_block_erase_20,
11365 }, {
11366 .eraseblocks = { {64 * 1024, 1024} },
11367 .block_erase = spi_block_erase_dc,
11368 }, {
11369 .eraseblocks = { {64 * 1024, 1024} },
11370 .block_erase = spi_block_erase_d8,
11371 }, {
Jacob Creedone8e7b0e2019-07-22 12:21:22 -070011372 .eraseblocks = { {32768 * 1024, 2} },
11373 .block_erase = spi_block_erase_c4,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011374 }
11375 },
11376 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11377 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11378 .write = spi_chip_write_256, /* Multi I/O supported */
11379 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11380 .voltage = {2700, 3600},
11381 },
11382
11383 {
Ed Swierk199ab392017-07-03 13:33:44 -070011384 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011385 .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11386 .bustype = BUS_SPI,
11387 .manufacture_id = ST_ID,
11388 .model_id = ST_N25Q00A__3G,
11389 .total_size = 131072,
11390 .page_size = 256,
11391 /* supports SFDP */
11392 /* OTP: 64B total; read 0x4B, write 0x42 */
11393 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11394 .tested = TEST_OK_PREW,
11395 .probe = probe_spi_rdid,
11396 .probe_timing = TIMING_ZERO,
11397 .block_erasers =
11398 {
11399 {
11400 .eraseblocks = { {4 * 1024, 32768} },
11401 .block_erase = spi_block_erase_21,
11402 }, {
11403 .eraseblocks = { {4 * 1024, 32768} },
11404 .block_erase = spi_block_erase_20,
11405 }, {
11406 .eraseblocks = { {32 * 1024, 4096} },
11407 .block_erase = spi_block_erase_5c,
11408 }, {
11409 .eraseblocks = { {32 * 1024, 4096} },
11410 .block_erase = spi_block_erase_52,
11411 }, {
11412 .eraseblocks = { {64 * 1024, 2048} },
11413 .block_erase = spi_block_erase_dc,
11414 }, {
11415 .eraseblocks = { {64 * 1024, 2048} },
11416 .block_erase = spi_block_erase_d8,
11417 }, {
11418 .eraseblocks = { {65536 * 1024, 2} },
11419 .block_erase = spi_block_erase_c4,
11420 }
11421 },
11422 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11423 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11424 .write = spi_chip_write_256, /* Multi I/O supported */
11425 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11426 .voltage = {2700, 3600},
11427 },
11428
11429 {
11430 .vendor = "Micron",
11431 .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11432 .bustype = BUS_SPI,
11433 .manufacture_id = ST_ID,
11434 .model_id = ST_N25Q00A__1G,
11435 .total_size = 131072,
11436 .page_size = 256,
11437 /* supports SFDP */
11438 /* OTP: 64B total; read 0x4B, write 0x42 */
11439 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11440 .tested = TEST_UNTESTED,
11441 .probe = probe_spi_rdid,
11442 .probe_timing = TIMING_ZERO,
11443 .block_erasers =
11444 {
11445 {
11446 .eraseblocks = { {4 * 1024, 32768} },
11447 .block_erase = spi_block_erase_21,
11448 }, {
11449 .eraseblocks = { {4 * 1024, 32768} },
11450 .block_erase = spi_block_erase_20,
11451 }, {
11452 .eraseblocks = { {32 * 1024, 4096} },
11453 .block_erase = spi_block_erase_5c,
11454 }, {
11455 .eraseblocks = { {32 * 1024, 4096} },
11456 .block_erase = spi_block_erase_52,
11457 }, {
11458 .eraseblocks = { {64 * 1024, 2048} },
11459 .block_erase = spi_block_erase_dc,
11460 }, {
11461 .eraseblocks = { {64 * 1024, 2048} },
11462 .block_erase = spi_block_erase_d8,
11463 }, {
11464 .eraseblocks = { {65536 * 1024, 2} },
11465 .block_erase = spi_block_erase_c4,
11466 }
11467 },
11468 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11469 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11470 .write = spi_chip_write_256, /* Multi I/O supported */
11471 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11472 .voltage = {1700, 2000},
11473 },
11474
11475 {
11476 .vendor = "Micron",
11477 .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11478 .bustype = BUS_SPI,
11479 .manufacture_id = ST_ID,
11480 .model_id = ST_MT25QL02G,
11481 .total_size = 262144,
11482 .page_size = 256,
11483 /* supports SFDP */
11484 /* OTP: 64B total; read 0x4B, write 0x42 */
11485 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11486 .tested = TEST_UNTESTED,
11487 .probe = probe_spi_rdid,
11488 .probe_timing = TIMING_ZERO,
11489 .block_erasers =
11490 {
11491 {
11492 .eraseblocks = { {4 * 1024, 65536} },
11493 .block_erase = spi_block_erase_21,
11494 }, {
11495 .eraseblocks = { {4 * 1024, 65536} },
11496 .block_erase = spi_block_erase_20,
11497 }, {
11498 .eraseblocks = { {32 * 1024, 8192} },
11499 .block_erase = spi_block_erase_5c,
11500 }, {
11501 .eraseblocks = { {32 * 1024, 8192} },
11502 .block_erase = spi_block_erase_52,
11503 }, {
11504 .eraseblocks = { {64 * 1024, 4096} },
11505 .block_erase = spi_block_erase_dc,
11506 }, {
11507 .eraseblocks = { {64 * 1024, 4096} },
11508 .block_erase = spi_block_erase_d8,
11509 }, {
11510 .eraseblocks = { {65536 * 1024, 4} },
11511 .block_erase = spi_block_erase_c4,
11512 }
11513 },
11514 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11515 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11516 .write = spi_chip_write_256, /* Multi I/O supported */
11517 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11518 .voltage = {2700, 3600},
11519 },
11520
11521 {
11522 .vendor = "Micron",
11523 .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11524 .bustype = BUS_SPI,
11525 .manufacture_id = ST_ID,
11526 .model_id = ST_MT25QU02G,
11527 .total_size = 262144,
11528 .page_size = 256,
11529 /* supports SFDP */
11530 /* OTP: 64B total; read 0x4B, write 0x42 */
11531 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11532 .tested = TEST_UNTESTED,
11533 .probe = probe_spi_rdid,
11534 .probe_timing = TIMING_ZERO,
11535 .block_erasers =
11536 {
11537 {
11538 .eraseblocks = { {4 * 1024, 65536} },
11539 .block_erase = spi_block_erase_21,
11540 }, {
11541 .eraseblocks = { {4 * 1024, 65536} },
11542 .block_erase = spi_block_erase_20,
11543 }, {
11544 .eraseblocks = { {32 * 1024, 8192} },
11545 .block_erase = spi_block_erase_5c,
11546 }, {
11547 .eraseblocks = { {32 * 1024, 8192} },
11548 .block_erase = spi_block_erase_52,
11549 }, {
11550 .eraseblocks = { {64 * 1024, 4096} },
11551 .block_erase = spi_block_erase_dc,
11552 }, {
11553 .eraseblocks = { {64 * 1024, 4096} },
11554 .block_erase = spi_block_erase_d8,
11555 }, {
11556 .eraseblocks = { {65536 * 1024, 4} },
11557 .block_erase = spi_block_erase_c4,
11558 }
11559 },
11560 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11561 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11562 .write = spi_chip_write_256, /* Multi I/O supported */
11563 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11564 .voltage = {1700, 2000},
11565 },
11566
11567 {
11568 .vendor = "Micron",
11569 .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11570 .bustype = BUS_SPI,
11571 .manufacture_id = ST_ID,
11572 .model_id = ST_N25Q128__1E,
11573 .total_size = 16384,
11574 .page_size = 256,
11575 /* supports SFDP */
11576 /* OTP: 64B total; read 0x4B, write 0x42 */
11577 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11578 .tested = TEST_UNTESTED,
11579 .probe = probe_spi_rdid,
11580 .probe_timing = TIMING_ZERO,
11581 .block_erasers =
11582 {
11583 {
11584 .eraseblocks = { {4 * 1024, 4096} },
11585 .block_erase = spi_block_erase_20,
11586 }, {
11587 .eraseblocks = { {32 * 1024, 512} },
11588 .block_erase = spi_block_erase_52,
11589 }, {
11590 .eraseblocks = { {64 * 1024, 256} },
11591 .block_erase = spi_block_erase_d8,
11592 }, {
11593 .eraseblocks = { {16384 * 1024, 1} },
11594 .block_erase = spi_block_erase_c7,
11595 }, {
11596 .eraseblocks = { {16384 * 1024, 1} },
11597 .block_erase = spi_block_erase_60,
11598 }
11599 },
11600 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11601 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11602 .write = spi_chip_write_256, /* Multi I/O supported */
11603 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11604 .voltage = {1700, 2000},
11605 },
11606
11607 {
11608 .vendor = "Micron",
11609 .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11610 .bustype = BUS_SPI,
11611 .manufacture_id = ST_ID,
11612 .model_id = ST_N25Q128__3E,
11613 .total_size = 16384,
11614 .page_size = 256,
11615 /* supports SFDP */
11616 /* OTP: 64B total; read 0x4B, write 0x42 */
11617 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11618 .tested = TEST_UNTESTED,
11619 .probe = probe_spi_rdid,
11620 .probe_timing = TIMING_ZERO,
11621 .block_erasers =
11622 {
11623 {
11624 .eraseblocks = { {4 * 1024, 4096} },
11625 .block_erase = spi_block_erase_20,
11626 }, {
11627 .eraseblocks = { {32 * 1024, 512} },
11628 .block_erase = spi_block_erase_52,
11629 }, {
11630 .eraseblocks = { {64 * 1024, 256} },
11631 .block_erase = spi_block_erase_d8,
11632 }, {
11633 .eraseblocks = { {16384 * 1024, 1} },
11634 .block_erase = spi_block_erase_c7,
11635 }, {
11636 .eraseblocks = { {16384 * 1024, 1} },
11637 .block_erase = spi_block_erase_60,
11638 }
11639 },
11640 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11641 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11642 .write = spi_chip_write_256, /* Multi I/O supported */
11643 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11644 .voltage = {2700, 3600},
11645 },
11646
11647 {
11648 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011649 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011650 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011651 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070011652 .model_id = ST_N25Q256__3E,
11653 .total_size = 32768,
11654 .page_size = 256,
11655 /* supports SFDP */
11656 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011657 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Simon Buhrowb7014f92021-02-15 13:16:57 +010011658 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011659 .probe = probe_spi_rdid,
11660 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011661 .block_erasers =
11662 {
Ed Swierk199ab392017-07-03 13:33:44 -070011663 {
11664 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011665 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011666 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011667 .eraseblocks = { {4 * 1024, 8192} },
11668 .block_erase = spi_block_erase_20,
11669 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011670 .eraseblocks = { {32 * 1024, 1024} },
11671 .block_erase = spi_block_erase_5c,
11672 }, {
11673 .eraseblocks = { {32 * 1024, 1024} },
11674 .block_erase = spi_block_erase_52,
11675 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011676 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011677 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011678 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011679 .eraseblocks = { {64 * 1024, 512} },
11680 .block_erase = spi_block_erase_d8,
11681 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011682 .eraseblocks = { {32768 * 1024, 1} },
11683 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011684 }, {
11685 .eraseblocks = { {32768 * 1024, 1} },
11686 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011687 }
11688 },
11689 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11690 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11691 .write = spi_chip_write_256, /* Multi I/O supported */
11692 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11693 .voltage = {2700, 3600},
11694 },
11695
11696 {
11697 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011698 .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11699 .bustype = BUS_SPI,
11700 .manufacture_id = ST_ID,
11701 .model_id = ST_N25Q256__1E,
11702 .total_size = 32768,
11703 .page_size = 256,
11704 /* supports SFDP */
11705 /* OTP: 64B total; read 0x4B, write 0x42 */
11706 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11707 .tested = TEST_UNTESTED,
11708 .probe = probe_spi_rdid,
11709 .probe_timing = TIMING_ZERO,
11710 .block_erasers =
11711 {
11712 {
11713 .eraseblocks = { {4 * 1024, 8192} },
11714 .block_erase = spi_block_erase_21,
11715 }, {
11716 .eraseblocks = { {4 * 1024, 8192} },
11717 .block_erase = spi_block_erase_20,
11718 }, {
11719 .eraseblocks = { {32 * 1024, 1024} },
11720 .block_erase = spi_block_erase_5c,
11721 }, {
11722 .eraseblocks = { {32 * 1024, 1024} },
11723 .block_erase = spi_block_erase_52,
11724 }, {
11725 .eraseblocks = { {64 * 1024, 512} },
11726 .block_erase = spi_block_erase_dc,
11727 }, {
11728 .eraseblocks = { {64 * 1024, 512} },
11729 .block_erase = spi_block_erase_d8,
11730 }, {
11731 .eraseblocks = { {32768 * 1024, 1} },
11732 .block_erase = spi_block_erase_c7,
11733 }, {
11734 .eraseblocks = { {32768 * 1024, 1} },
11735 .block_erase = spi_block_erase_60,
11736 }
11737 },
11738 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11739 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11740 .write = spi_chip_write_256, /* Multi I/O supported */
11741 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11742 .voltage = {1700, 2000},
11743 },
11744
11745 {
11746 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011747 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011748 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011749 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011750 .model_id = ST_N25Q512__3G,
Ed Swierk199ab392017-07-03 13:33:44 -070011751 .total_size = 65536,
11752 .page_size = 256,
11753 /* supports SFDP */
11754 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011755 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020011756 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011757 .probe = probe_spi_rdid,
11758 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011759 .block_erasers =
11760 {
Ed Swierk199ab392017-07-03 13:33:44 -070011761 {
11762 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011763 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011764 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011765 .eraseblocks = { {4 * 1024, 16384} },
11766 .block_erase = spi_block_erase_20,
11767 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011768 .eraseblocks = { {32 * 1024, 2048} },
11769 .block_erase = spi_block_erase_5c,
11770 }, {
11771 .eraseblocks = { {32 * 1024, 2048} },
11772 .block_erase = spi_block_erase_52,
11773 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011774 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011775 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011776 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011777 .eraseblocks = { {64 * 1024, 1024} },
11778 .block_erase = spi_block_erase_d8,
11779 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011780 .eraseblocks = { {65536 * 1024, 1} },
11781 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011782 }, {
11783 .eraseblocks = { {65536 * 1024, 1} },
11784 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011785 }
11786 },
11787 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11788 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11789 .write = spi_chip_write_256, /* Multi I/O supported */
11790 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11791 .voltage = {2700, 3600},
11792 },
11793
11794 {
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011795 .vendor = "Micron",
11796 .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11797 .bustype = BUS_SPI,
11798 .manufacture_id = ST_ID,
11799 .model_id = ST_N25Q512__1G,
11800 .total_size = 65536,
11801 .page_size = 256,
11802 /* supports SFDP */
11803 /* OTP: 64B total; read 0x4B, write 0x42 */
11804 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11805 .tested = TEST_OK_PREW,
11806 .probe = probe_spi_rdid,
11807 .probe_timing = TIMING_ZERO,
11808 .block_erasers =
11809 {
11810 {
11811 .eraseblocks = { {4 * 1024, 16384} },
11812 .block_erase = spi_block_erase_21,
11813 }, {
11814 .eraseblocks = { {4 * 1024, 16384} },
11815 .block_erase = spi_block_erase_20,
11816 }, {
11817 .eraseblocks = { {32 * 1024, 2048} },
11818 .block_erase = spi_block_erase_5c,
11819 }, {
11820 .eraseblocks = { {32 * 1024, 2048} },
11821 .block_erase = spi_block_erase_52,
11822 }, {
11823 .eraseblocks = { {64 * 1024, 1024} },
11824 .block_erase = spi_block_erase_dc,
11825 }, {
11826 .eraseblocks = { {64 * 1024, 1024} },
11827 .block_erase = spi_block_erase_d8,
11828 }, {
11829 .eraseblocks = { {65536 * 1024, 1} },
11830 .block_erase = spi_block_erase_c7,
11831 }, {
11832 .eraseblocks = { {65536 * 1024, 1} },
11833 .block_erase = spi_block_erase_60,
11834 }
11835 },
11836 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11837 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11838 .write = spi_chip_write_256, /* Multi I/O supported */
11839 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11840 .voltage = {1700, 2000},
11841 },
11842
11843 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011844 .vendor = "MoselVitelic",
11845 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011846 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011847 .manufacture_id = SYNCMOS_MVC_ID,
11848 .model_id = MVC_V29C51000B,
11849 .total_size = 64,
11850 .page_size = 512,
11851 .feature_bits = FEATURE_EITHER_RESET,
11852 .tested = TEST_UNTESTED,
11853 .probe = probe_jedec,
11854 .probe_timing = TIMING_ZERO,
11855 .block_erasers =
11856 {
11857 {
11858 .eraseblocks = { {512, 128} },
11859 .block_erase = erase_sector_jedec,
11860 }, {
11861 .eraseblocks = { {64 * 1024, 1} },
11862 .block_erase = erase_chip_block_jedec,
11863 },
11864 },
11865 .write = write_jedec_1,
11866 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011867 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011868 },
11869
11870 {
11871 .vendor = "MoselVitelic",
11872 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011873 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011874 .manufacture_id = SYNCMOS_MVC_ID,
11875 .model_id = MVC_V29C51000T,
11876 .total_size = 64,
11877 .page_size = 512,
11878 .feature_bits = FEATURE_EITHER_RESET,
11879 .tested = TEST_UNTESTED,
11880 .probe = probe_jedec,
11881 .probe_timing = TIMING_ZERO,
11882 .block_erasers =
11883 {
11884 {
11885 .eraseblocks = { {512, 128} },
11886 .block_erase = erase_sector_jedec,
11887 }, {
11888 .eraseblocks = { {64 * 1024, 1} },
11889 .block_erase = erase_chip_block_jedec,
11890 },
11891 },
11892 .write = write_jedec_1,
11893 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011894 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011895 },
11896
11897 {
11898 .vendor = "MoselVitelic",
11899 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011900 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011901 .manufacture_id = SYNCMOS_MVC_ID,
11902 .model_id = MVC_V29C51400B,
11903 .total_size = 512,
11904 .page_size = 1024,
11905 .feature_bits = FEATURE_EITHER_RESET,
11906 .tested = TEST_UNTESTED,
11907 .probe = probe_jedec,
11908 .probe_timing = TIMING_ZERO,
11909 .block_erasers =
11910 {
11911 {
11912 .eraseblocks = { {1024, 512} },
11913 .block_erase = erase_sector_jedec,
11914 }, {
11915 .eraseblocks = { {512 * 1024, 1} },
11916 .block_erase = erase_chip_block_jedec,
11917 },
11918 },
11919 .write = write_jedec_1,
11920 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011921 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011922 },
11923
11924 {
11925 .vendor = "MoselVitelic",
11926 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011927 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011928 .manufacture_id = SYNCMOS_MVC_ID,
11929 .model_id = MVC_V29C51400T,
11930 .total_size = 512,
11931 .page_size = 1024,
11932 .feature_bits = FEATURE_EITHER_RESET,
11933 .tested = TEST_UNTESTED,
11934 .probe = probe_jedec,
11935 .probe_timing = TIMING_ZERO,
11936 .block_erasers =
11937 {
11938 {
11939 .eraseblocks = { {1024, 512} },
11940 .block_erase = erase_sector_jedec,
11941 }, {
11942 .eraseblocks = { {512 * 1024, 1} },
11943 .block_erase = erase_chip_block_jedec,
11944 },
11945 },
11946 .write = write_jedec_1,
11947 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011948 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011949 },
11950
11951 {
11952 .vendor = "MoselVitelic",
11953 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011954 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011955 .manufacture_id = SYNCMOS_MVC_ID,
11956 .model_id = MVC_V29LC51000,
11957 .total_size = 64,
11958 .page_size = 512,
11959 .feature_bits = FEATURE_EITHER_RESET,
11960 .tested = TEST_UNTESTED,
11961 .probe = probe_jedec,
11962 .probe_timing = TIMING_ZERO,
11963 .block_erasers =
11964 {
11965 {
11966 .eraseblocks = { {512, 128} },
11967 .block_erase = erase_sector_jedec,
11968 }, {
11969 .eraseblocks = { {64 * 1024, 1} },
11970 .block_erase = erase_chip_block_jedec,
11971 },
11972 },
11973 .write = write_jedec_1,
11974 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011975 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011976 },
11977
11978 {
11979 .vendor = "MoselVitelic",
11980 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011981 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011982 .manufacture_id = SYNCMOS_MVC_ID,
11983 .model_id = MVC_V29LC51001,
11984 .total_size = 128,
11985 .page_size = 512,
11986 .feature_bits = FEATURE_EITHER_RESET,
11987 .tested = TEST_UNTESTED,
11988 .probe = probe_jedec,
11989 .probe_timing = TIMING_ZERO,
11990 .block_erasers =
11991 {
11992 {
11993 .eraseblocks = { {512, 256} },
11994 .block_erase = erase_sector_jedec,
11995 }, {
11996 .eraseblocks = { {128 * 1024, 1} },
11997 .block_erase = erase_chip_block_jedec,
11998 },
11999 },
12000 .write = write_jedec_1,
12001 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012002 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012003 },
12004
12005 {
12006 .vendor = "MoselVitelic",
12007 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012008 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012009 .manufacture_id = SYNCMOS_MVC_ID,
12010 .model_id = MVC_V29LC51002,
12011 .total_size = 256,
12012 .page_size = 512,
12013 .feature_bits = FEATURE_EITHER_RESET,
12014 .tested = TEST_UNTESTED,
12015 .probe = probe_jedec,
12016 .probe_timing = TIMING_ZERO,
12017 .block_erasers =
12018 {
12019 {
12020 .eraseblocks = { {512, 512} },
12021 .block_erase = erase_sector_jedec,
12022 }, {
12023 .eraseblocks = { {256 * 1024, 1} },
12024 .block_erase = erase_chip_block_jedec,
12025 },
12026 },
12027 .write = write_jedec_1,
12028 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012029 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012030 },
12031
12032 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012033 .vendor = "Nantronics",
12034 .name = "N25S10",
12035 .bustype = BUS_SPI,
12036 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12037 .model_id = NANTRONICS_N25S10,
12038 .total_size = 128,
12039 .page_size = 256,
12040 .feature_bits = FEATURE_WRSR_WREN,
12041 .tested = TEST_UNTESTED,
12042 .probe = probe_spi_rdid,
12043 .probe_timing = TIMING_ZERO,
12044 .block_erasers =
12045 {
12046 {
12047 .eraseblocks = { {4 * 1024, 32} },
12048 .block_erase = spi_block_erase_20,
12049 }, {
12050 .eraseblocks = { {4 * 1024, 32} },
12051 .block_erase = spi_block_erase_d7,
12052 }, {
12053 .eraseblocks = { {32 * 1024, 4} },
12054 .block_erase = spi_block_erase_52,
12055 }, {
12056 .eraseblocks = { {64 * 1024, 2} },
12057 .block_erase = spi_block_erase_d8,
12058 }, {
12059 .eraseblocks = { {128 * 1024, 1} },
12060 .block_erase = spi_block_erase_60,
12061 }, {
12062 .eraseblocks = { {128 * 1024, 1} },
12063 .block_erase = spi_block_erase_c7,
12064 }
12065 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012066 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012067 .unlock = spi_disable_blockprotect_bp3_srwd,
12068 .write = spi_chip_write_256,
12069 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12070 .voltage = {2700, 3600},
12071 },
12072
12073 {
12074 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012075 .name = "N25S16",
12076 .bustype = BUS_SPI,
12077 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12078 .model_id = NANTRONICS_N25S16,
12079 .total_size = 2048,
12080 .page_size = 256,
12081 .feature_bits = FEATURE_WRSR_WREN,
12082 .tested = TEST_UNTESTED,
12083 .probe = probe_spi_rdid,
12084 .probe_timing = TIMING_ZERO,
12085 .block_erasers =
12086 {
12087 {
12088 .eraseblocks = { {4 * 1024, 512} },
12089 .block_erase = spi_block_erase_20,
12090 }, {
12091 .eraseblocks = { {64 * 1024, 32} },
12092 .block_erase = spi_block_erase_d8,
12093 }, {
12094 .eraseblocks = { {2048 * 1024, 1} },
12095 .block_erase = spi_block_erase_60,
12096 }, {
12097 .eraseblocks = { {2048 * 1024, 1} },
12098 .block_erase = spi_block_erase_c7,
12099 }
12100 },
12101 .printlock = spi_prettyprint_status_register_bp3_srwd,
12102 .unlock = spi_disable_blockprotect_bp3_srwd,
12103 .write = spi_chip_write_256,
12104 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12105 .voltage = {2700, 3600},
12106 },
12107
12108 {
12109 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012110 .name = "N25S20",
12111 .bustype = BUS_SPI,
12112 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12113 .model_id = NANTRONICS_N25S20,
12114 .total_size = 256,
12115 .page_size = 256,
12116 .feature_bits = FEATURE_WRSR_WREN,
12117 .tested = TEST_UNTESTED,
12118 .probe = probe_spi_rdid,
12119 .probe_timing = TIMING_ZERO,
12120 .block_erasers =
12121 {
12122 {
12123 .eraseblocks = { {4 * 1024, 64} },
12124 .block_erase = spi_block_erase_20,
12125 }, {
12126 .eraseblocks = { {4 * 1024, 64} },
12127 .block_erase = spi_block_erase_d7,
12128 }, {
12129 .eraseblocks = { {32 * 1024, 8} },
12130 .block_erase = spi_block_erase_52,
12131 }, {
12132 .eraseblocks = { {64 * 1024, 4} },
12133 .block_erase = spi_block_erase_d8,
12134 }, {
12135 .eraseblocks = { {256 * 1024, 1} },
12136 .block_erase = spi_block_erase_60,
12137 }, {
12138 .eraseblocks = { {256 * 1024, 1} },
12139 .block_erase = spi_block_erase_c7,
12140 }
12141 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012142 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012143 .unlock = spi_disable_blockprotect_bp3_srwd,
12144 .write = spi_chip_write_256,
12145 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12146 .voltage = {2700, 3600},
12147 },
12148
12149 {
12150 .vendor = "Nantronics",
12151 .name = "N25S40",
12152 .bustype = BUS_SPI,
12153 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12154 .model_id = NANTRONICS_N25S40,
12155 .total_size = 512,
12156 .page_size = 256,
12157 .feature_bits = FEATURE_WRSR_WREN,
12158 .tested = TEST_UNTESTED,
12159 .probe = probe_spi_rdid,
12160 .probe_timing = TIMING_ZERO,
12161 .block_erasers =
12162 {
12163 {
12164 .eraseblocks = { {4 * 1024, 128} },
12165 .block_erase = spi_block_erase_20,
12166 }, {
12167 .eraseblocks = { {4 * 1024, 128} },
12168 .block_erase = spi_block_erase_d7,
12169 }, {
12170 .eraseblocks = { {32 * 1024, 16} },
12171 .block_erase = spi_block_erase_52,
12172 }, {
12173 .eraseblocks = { {64 * 1024, 8} },
12174 .block_erase = spi_block_erase_d8,
12175 }, {
12176 .eraseblocks = { {512 * 1024, 1} },
12177 .block_erase = spi_block_erase_60,
12178 }, {
12179 .eraseblocks = { {512 * 1024, 1} },
12180 .block_erase = spi_block_erase_c7,
12181 }
12182 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012183 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012184 .unlock = spi_disable_blockprotect_bp3_srwd,
12185 .write = spi_chip_write_256,
12186 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12187 .voltage = {2700, 3600},
12188 },
12189
12190 {
12191 .vendor = "Nantronics",
12192 .name = "N25S80",
12193 .bustype = BUS_SPI,
12194 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12195 .model_id = NANTRONICS_N25S80,
12196 .total_size = 1024,
12197 .page_size = 256,
12198 .feature_bits = FEATURE_WRSR_WREN,
12199 .tested = TEST_UNTESTED,
12200 .probe = probe_spi_rdid,
12201 .probe_timing = TIMING_ZERO,
12202 .block_erasers =
12203 {
12204 {
12205 .eraseblocks = { {4 * 1024, 256} },
12206 .block_erase = spi_block_erase_20,
12207 }, {
12208 .eraseblocks = { {32 * 1024, 32} },
12209 .block_erase = spi_block_erase_52,
12210 }, {
12211 .eraseblocks = { {64 * 1024, 16} },
12212 .block_erase = spi_block_erase_d8,
12213 }, {
12214 .eraseblocks = { {1024 * 1024, 1} },
12215 .block_erase = spi_block_erase_60,
12216 }, {
12217 .eraseblocks = { {1024 * 1024, 1} },
12218 .block_erase = spi_block_erase_c7,
12219 }
12220 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012221 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012222 .unlock = spi_disable_blockprotect_bp3_srwd,
12223 .write = spi_chip_write_256,
12224 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12225 .voltage = {2700, 3600},
12226 },
12227
12228 {
Stefan Taunerf4451612013-04-19 01:59:15 +000012229 .vendor = "PMC",
12230 .name = "Pm25LD010(C)",
12231 .bustype = BUS_SPI,
12232 .manufacture_id = PMC_ID,
12233 .model_id = PMC_PM25LD010,
12234 .total_size = 128,
12235 .page_size = 256,
12236 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012237 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012238 .probe = probe_spi_rdid,
12239 .probe_timing = TIMING_ZERO,
12240 .block_erasers =
12241 {
12242 {
12243 .eraseblocks = { {4 * 1024, 32} },
12244 .block_erase = spi_block_erase_20,
12245 }, {
12246 .eraseblocks = { {4 * 1024, 32} },
12247 .block_erase = spi_block_erase_d7,
12248 }, {
12249 .eraseblocks = { {32 * 1024, 4} },
12250 .block_erase = spi_block_erase_d8,
12251 }, {
12252 .eraseblocks = { {128 * 1024, 1} },
12253 .block_erase = spi_block_erase_60,
12254 }, {
12255 .eraseblocks = { {128 * 1024, 1} },
12256 .block_erase = spi_block_erase_c7,
12257 }
12258 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012259 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012260 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12261 .write = spi_chip_write_256,
12262 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12263 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
12264 },
12265
12266 {
12267 .vendor = "PMC",
12268 .name = "Pm25LD020(C)",
12269 .bustype = BUS_SPI,
12270 .manufacture_id = PMC_ID,
12271 .model_id = PMC_PM25LD020,
12272 .total_size = 256,
12273 .page_size = 256,
12274 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020012275 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012276 .probe = probe_spi_rdid,
12277 .probe_timing = TIMING_ZERO,
12278 .block_erasers =
12279 {
12280 {
12281 .eraseblocks = { {4 * 1024, 64} },
12282 .block_erase = spi_block_erase_20,
12283 }, {
12284 .eraseblocks = { {4 * 1024, 64} },
12285 .block_erase = spi_block_erase_d7,
12286 }, {
12287 .eraseblocks = { {64 * 1024, 4} },
12288 .block_erase = spi_block_erase_d8,
12289 }, {
12290 .eraseblocks = { {256 * 1024, 1} },
12291 .block_erase = spi_block_erase_60,
12292 }, {
12293 .eraseblocks = { {256 * 1024, 1} },
12294 .block_erase = spi_block_erase_c7,
12295 }
12296 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012297 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012298 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12299 .write = spi_chip_write_256,
12300 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12301 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
12302 },
12303
12304 {
12305 .vendor = "PMC",
12306 .name = "Pm25LD040(C)",
12307 .bustype = BUS_SPI,
12308 .manufacture_id = PMC_ID,
12309 .model_id = PMC_PM25LV040,
12310 .total_size = 512,
12311 .page_size = 256,
12312 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020012313 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012314 .probe = probe_spi_rdid,
12315 .probe_timing = TIMING_ZERO,
12316 .block_erasers =
12317 {
12318 {
12319 .eraseblocks = { {4 * 1024, 128} },
12320 .block_erase = spi_block_erase_20,
12321 }, {
12322 .eraseblocks = { {4 * 1024, 128} },
12323 .block_erase = spi_block_erase_d7,
12324 }, {
12325 .eraseblocks = { {64 * 1024, 8} },
12326 .block_erase = spi_block_erase_d8,
12327 }, {
12328 .eraseblocks = { {512 * 1024, 1} },
12329 .block_erase = spi_block_erase_60,
12330 }, {
12331 .eraseblocks = { {512 * 1024, 1} },
12332 .block_erase = spi_block_erase_c7,
12333 }
12334 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012335 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012336 .unlock = spi_disable_blockprotect,
12337 .write = spi_chip_write_256,
12338 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12339 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
12340 },
12341
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012342 {
12343 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012344 .name = "Pm25LD256C",
12345 .bustype = BUS_SPI,
12346 .manufacture_id = PMC_ID,
12347 .model_id = PMC_PM25LD256C,
12348 .total_size = 32,
12349 .page_size = 256,
12350 .feature_bits = FEATURE_WRSR_WREN,
12351 .tested = TEST_UNTESTED,
12352 .probe = probe_spi_rdid,
12353 .probe_timing = TIMING_ZERO,
12354 .block_erasers =
12355 {
12356 {
12357 .eraseblocks = { {4 * 1024, 8} },
12358 .block_erase = spi_block_erase_20,
12359 }, {
12360 .eraseblocks = { {4 * 1024, 8} },
12361 .block_erase = spi_block_erase_d7,
12362 }, {
12363 .eraseblocks = { {32 * 1024, 1} },
12364 .block_erase = spi_block_erase_d8,
12365 }, {
12366 .eraseblocks = { {32 * 1024, 1} },
12367 .block_erase = spi_block_erase_60,
12368 }, {
12369 .eraseblocks = { {32 * 1024, 1} },
12370 .block_erase = spi_block_erase_c7,
12371 }
12372 },
12373 .printlock = spi_prettyprint_status_register_bp2_srwd,
12374 .unlock = spi_disable_blockprotect,
12375 .write = spi_chip_write_256,
12376 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12377 .voltage = {2700, 3600},
12378 },
12379
12380 {
12381 .vendor = "PMC",
12382 .name = "Pm25LD512(C)",
12383 .bustype = BUS_SPI,
12384 .manufacture_id = PMC_ID,
12385 .model_id = PMC_PM25LD512,
12386 .total_size = 64,
12387 .page_size = 256,
12388 .feature_bits = FEATURE_WRSR_WREN,
12389 .tested = TEST_OK_PREW,
12390 .probe = probe_spi_rdid,
12391 .probe_timing = TIMING_ZERO,
12392 .block_erasers =
12393 {
12394 {
12395 .eraseblocks = { {4 * 1024, 16} },
12396 .block_erase = spi_block_erase_20,
12397 }, {
12398 .eraseblocks = { {4 * 1024, 16} },
12399 .block_erase = spi_block_erase_d7,
12400 }, {
12401 .eraseblocks = { {32 * 1024, 2} },
12402 .block_erase = spi_block_erase_d8,
12403 }, {
12404 .eraseblocks = { {64 * 1024, 1} },
12405 .block_erase = spi_block_erase_60,
12406 }, {
12407 .eraseblocks = { {64 * 1024, 1} },
12408 .block_erase = spi_block_erase_c7,
12409 }
12410 },
12411 .printlock = spi_prettyprint_status_register_bp2_srwd,
12412 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12413 .write = spi_chip_write_256,
12414 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12415 .voltage = {2300, 3600},
12416 },
12417
12418 {
12419 .vendor = "PMC",
12420 .name = "Pm25LQ016",
12421 .bustype = BUS_SPI,
12422 .manufacture_id = PMC_ID,
12423 .model_id = PMC_PM25LQ016,
12424 .total_size = 2048,
12425 .page_size = 256,
12426 /* OTP: 256B total; read 0x4B, write 0xB1 */
12427 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12428 .tested = TEST_UNTESTED,
12429 .probe = probe_spi_rdid,
12430 .probe_timing = TIMING_ZERO,
12431 .block_erasers =
12432 {
12433 {
12434 .eraseblocks = { {4 * 1024, 512} },
12435 .block_erase = spi_block_erase_20,
12436 }, {
12437 .eraseblocks = { {4 * 1024, 512} },
12438 .block_erase = spi_block_erase_d7,
12439 }, {
12440 .eraseblocks = { {64 * 1024, 32} },
12441 .block_erase = spi_block_erase_d8,
12442 }, {
12443 .eraseblocks = { {2048 * 1024, 1} },
12444 .block_erase = spi_block_erase_60,
12445 }, {
12446 .eraseblocks = { {2048 * 1024, 1} },
12447 .block_erase = spi_block_erase_c7,
12448 }
12449 },
12450 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12451 .unlock = spi_disable_blockprotect_bp3_srwd,
12452 .write = spi_chip_write_256,
12453 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12454 .voltage = {2300, 3600},
12455 },
12456
12457 {
12458 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012459 .name = "Pm25LQ020",
12460 .bustype = BUS_SPI,
12461 .manufacture_id = PMC_ID,
12462 .model_id = PMC_PM25LQ020,
12463 .total_size = 256,
12464 .page_size = 256,
12465 /* OTP: 256B total; read 0x4B, write 0xB1 */
12466 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12467 .tested = TEST_UNTESTED,
12468 .probe = probe_spi_rdid,
12469 .probe_timing = TIMING_ZERO,
12470 .block_erasers =
12471 {
12472 {
12473 .eraseblocks = { {4 * 1024, 64} },
12474 .block_erase = spi_block_erase_20,
12475 }, {
12476 .eraseblocks = { {4 * 1024, 64} },
12477 .block_erase = spi_block_erase_d7,
12478 }, {
12479 .eraseblocks = { {64 * 1024, 4} },
12480 .block_erase = spi_block_erase_d8,
12481 }, {
12482 .eraseblocks = { {256 * 1024, 1} },
12483 .block_erase = spi_block_erase_60,
12484 }, {
12485 .eraseblocks = { {256 * 1024, 1} },
12486 .block_erase = spi_block_erase_c7,
12487 }
12488 },
12489 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12490 .unlock = spi_disable_blockprotect_bp3_srwd,
12491 .write = spi_chip_write_256,
12492 .read = spi_chip_read,
12493 .voltage = {2300, 3600},
12494 },
12495
12496 {
12497 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012498 .name = "Pm25LQ032C",
12499 .bustype = BUS_SPI,
12500 .manufacture_id = PMC_ID,
12501 .model_id = PMC_PM25LQ032C,
12502 .total_size = 4096,
12503 .page_size = 256,
12504 /* OTP: 64B total; read 0x4B, write 0xB1 */
12505 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12506 .tested = TEST_OK_PREW,
12507 .probe = probe_spi_rdid,
12508 .probe_timing = TIMING_ZERO,
12509 .block_erasers =
12510 {
12511 {
12512 .eraseblocks = { {4 * 1024, 1024} },
12513 .block_erase = spi_block_erase_20,
12514 }, {
12515 .eraseblocks = { {4 * 1024, 1024} },
12516 .block_erase = spi_block_erase_d7,
12517 }, {
12518 .eraseblocks = { {64 * 1024, 64} },
12519 .block_erase = spi_block_erase_d8,
12520 }, {
12521 .eraseblocks = { {4096 * 1024, 1} },
12522 .block_erase = spi_block_erase_60,
12523 }, {
12524 .eraseblocks = { {4096 * 1024, 1} },
12525 .block_erase = spi_block_erase_c7,
12526 }
12527 },
12528 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12529 .unlock = spi_disable_blockprotect_bp3_srwd,
12530 .write = spi_chip_write_256,
12531 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12532 .voltage = {2700, 3600},
12533 },
12534
12535 {
12536 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012537 .name = "Pm25LQ040",
12538 .bustype = BUS_SPI,
12539 .manufacture_id = PMC_ID,
12540 .model_id = PMC_PM25LQ040,
12541 .total_size = 512,
12542 .page_size = 256,
12543 /* OTP: 256B total; read 0x4B, write 0xB1 */
12544 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12545 .tested = TEST_UNTESTED,
12546 .probe = probe_spi_rdid,
12547 .probe_timing = TIMING_ZERO,
12548 .block_erasers =
12549 {
12550 {
12551 .eraseblocks = { {4 * 1024, 128} },
12552 .block_erase = spi_block_erase_20,
12553 }, {
12554 .eraseblocks = { {4 * 1024, 128} },
12555 .block_erase = spi_block_erase_d7,
12556 }, {
12557 .eraseblocks = { {64 * 1024, 8} },
12558 .block_erase = spi_block_erase_d8,
12559 }, {
12560 .eraseblocks = { {512 * 1024, 1} },
12561 .block_erase = spi_block_erase_60,
12562 }, {
12563 .eraseblocks = { {512 * 1024, 1} },
12564 .block_erase = spi_block_erase_c7,
12565 }
12566 },
12567 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12568 .unlock = spi_disable_blockprotect_bp3_srwd,
12569 .write = spi_chip_write_256,
12570 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12571 .voltage = {2300, 3600},
12572 },
12573
12574 {
12575 .vendor = "PMC",
12576 .name = "Pm25LQ080",
12577 .bustype = BUS_SPI,
12578 .manufacture_id = PMC_ID,
12579 .model_id = PMC_PM25LQ080,
12580 .total_size = 1024,
12581 .page_size = 256,
12582 /* OTP: 64B total; read 0x4B, write 0xB1 */
12583 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12584 .tested = TEST_UNTESTED,
12585 .probe = probe_spi_rdid,
12586 .probe_timing = TIMING_ZERO,
12587 .block_erasers =
12588 {
12589 {
12590 .eraseblocks = { {4 * 1024, 256} },
12591 .block_erase = spi_block_erase_20,
12592 }, {
12593 .eraseblocks = { {4 * 1024, 256} },
12594 .block_erase = spi_block_erase_d7,
12595 }, {
12596 .eraseblocks = { {64 * 1024, 16} },
12597 .block_erase = spi_block_erase_d8,
12598 }, {
12599 .eraseblocks = { {1024 * 1024, 1} },
12600 .block_erase = spi_block_erase_60,
12601 }, {
12602 .eraseblocks = { {1024 * 1024, 1} },
12603 .block_erase = spi_block_erase_c7,
12604 }
12605 },
12606 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12607 .unlock = spi_disable_blockprotect_bp3_srwd,
12608 .write = spi_chip_write_256,
12609 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12610 .voltage = {2300, 3600},
12611 },
12612
12613 {
12614 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012615 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012616 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000012617 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012618 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012619 .total_size = 128,
12620 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012621 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000012622 .tested = TEST_OK_PREW,
12623 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012624 .probe_timing = TIMING_ZERO,
12625 .block_erasers =
12626 {
12627 {
12628 .eraseblocks = { {4 * 1024, 32} },
12629 .block_erase = spi_block_erase_d7,
12630 }, {
12631 .eraseblocks = { {32 * 1024, 4} },
12632 .block_erase = spi_block_erase_d8,
12633 }, {
12634 .eraseblocks = { {128 * 1024, 1} },
12635 .block_erase = spi_block_erase_c7,
12636 }
12637 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012638 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012639 .unlock = spi_disable_blockprotect,
12640 .write = spi_chip_write_256,
12641 .read = spi_chip_read, /* Fast read (0x0B) supported */
12642 .voltage = {2700, 3600},
12643 },
12644
12645 {
12646 .vendor = "PMC",
12647 .name = "Pm25LV010A",
12648 .bustype = BUS_SPI,
12649 .manufacture_id = PMC_ID,
12650 .model_id = PMC_PM25LV010,
12651 .total_size = 128,
12652 .page_size = 256,
12653 .feature_bits = FEATURE_WRSR_WREN,
12654 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012655 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012656 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012657 .block_erasers =
12658 {
12659 {
12660 .eraseblocks = { {4 * 1024, 32} },
12661 .block_erase = spi_block_erase_d7,
12662 }, {
12663 .eraseblocks = { {32 * 1024, 4} },
12664 .block_erase = spi_block_erase_d8,
12665 }, {
12666 .eraseblocks = { {128 * 1024, 1} },
12667 .block_erase = spi_block_erase_c7,
12668 }
12669 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012670 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012671 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012672 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012673 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012674 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012675 },
12676
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012677 {
12678 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012679 .name = "Pm25LV016B",
12680 .bustype = BUS_SPI,
12681 .manufacture_id = PMC_ID,
12682 .model_id = PMC_PM25LV016B,
12683 .total_size = 2048,
12684 .page_size = 256,
12685 .feature_bits = FEATURE_WRSR_WREN,
12686 .tested = TEST_UNTESTED,
12687 .probe = probe_spi_rdid,
12688 .probe_timing = TIMING_ZERO,
12689 .block_erasers =
12690 {
12691 {
12692 .eraseblocks = { {4 * 1024, 512} },
12693 .block_erase = spi_block_erase_d7,
12694 }, {
12695 .eraseblocks = { {4 * 1024, 512} },
12696 .block_erase = spi_block_erase_20,
12697 }, {
12698 .eraseblocks = { {64 * 1024, 32} },
12699 .block_erase = spi_block_erase_d8,
12700 }, {
12701 .eraseblocks = { {2 * 1024 * 1024, 1} },
12702 .block_erase = spi_block_erase_60,
12703 }, {
12704 .eraseblocks = { {2 * 1024 * 1024, 1} },
12705 .block_erase = spi_block_erase_c7,
12706 }
12707 },
12708 .printlock = spi_prettyprint_status_register_bp2_srwd,
12709 .unlock = spi_disable_blockprotect,
12710 .write = spi_chip_write_256,
12711 .read = spi_chip_read, /* Fast read (0x0B) supported */
12712 .voltage = {2700, 3600},
12713 },
12714
12715 {
12716 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012717 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012718 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012719 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012720 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012721 .total_size = 256,
12722 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012723 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012724 .tested = TEST_UNTESTED,
12725 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012726 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012727 .block_erasers =
12728 {
12729 {
12730 .eraseblocks = { {4 * 1024, 64} },
12731 .block_erase = spi_block_erase_d7,
12732 }, {
12733 .eraseblocks = { {64 * 1024, 4} },
12734 .block_erase = spi_block_erase_d8,
12735 }, {
12736 .eraseblocks = { {256 * 1024, 1} },
12737 .block_erase = spi_block_erase_c7,
12738 }
12739 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012740 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012741 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012742 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012743 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012744 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012745 },
12746
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012747 {
12748 .vendor = "PMC",
12749 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012750 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012751 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012752 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012753 .total_size = 512,
12754 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012755 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000012756 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012757 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012758 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012759 .block_erasers =
12760 {
12761 {
12762 .eraseblocks = { {4 * 1024, 128} },
12763 .block_erase = spi_block_erase_d7,
12764 }, {
12765 .eraseblocks = { {64 * 1024, 8} },
12766 .block_erase = spi_block_erase_d8,
12767 }, {
12768 .eraseblocks = { {512 * 1024, 1} },
12769 .block_erase = spi_block_erase_c7,
12770 }
12771 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012772 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012773 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012774 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012775 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012776 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012777 },
12778
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012779 {
12780 .vendor = "PMC",
12781 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012782 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012783 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012784 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012785 .total_size = 1024,
12786 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012787 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012788 .tested = TEST_UNTESTED,
12789 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012790 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012791 .block_erasers =
12792 {
12793 {
12794 .eraseblocks = { {4 * 1024, 256} },
12795 .block_erase = spi_block_erase_d7,
12796 }, {
12797 .eraseblocks = { {4 * 1024, 256} },
12798 .block_erase = spi_block_erase_20,
12799 }, {
12800 .eraseblocks = { {64 * 1024, 16} },
12801 .block_erase = spi_block_erase_d8,
12802 }, {
12803 .eraseblocks = { {1024 * 1024, 1} },
12804 .block_erase = spi_block_erase_60,
12805 }, {
12806 .eraseblocks = { {1024 * 1024, 1} },
12807 .block_erase = spi_block_erase_c7,
12808 }
12809 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012810 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012811 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012812 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012813 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012814 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012815 },
12816
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012817 {
12818 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012819 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012820 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012821 .manufacture_id = PMC_ID_NOPREFIX,
12822 .model_id = PMC_PM25LV512,
12823 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012824 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012825 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012826 .tested = TEST_OK_PREW,
12827 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012828 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012829 .block_erasers =
12830 {
12831 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012832 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000012833 .block_erase = spi_block_erase_d7,
12834 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012835 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000012836 .block_erase = spi_block_erase_d8,
12837 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012838 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000012839 .block_erase = spi_block_erase_c7,
12840 }
12841 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100012842 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012843 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012844 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012845 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012846 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012847 },
12848
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012849 {
12850 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000012851 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012852 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012853 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012854 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012855 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000012856 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012857 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012858 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012859 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000012860 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000012861 .block_erasers =
12862 {
12863 {
12864 .eraseblocks = {
12865 {16 * 1024, 1},
12866 {8 * 1024, 2},
12867 {96 * 1024, 1},
12868 {128 * 1024, 1},
12869 },
Sean Nelson35727f72010-01-28 23:55:12 +000012870 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012871 }, {
12872 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000012873 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012874 },
12875 },
Sean Nelson35727f72010-01-28 23:55:12 +000012876 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012877 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012878 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012879 },
12880
12881 {
12882 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012883 .name = "Pm29F002T",
12884 .bustype = BUS_PARALLEL,
12885 .manufacture_id = PMC_ID_NOPREFIX,
12886 .model_id = PMC_PM29F002T,
12887 .total_size = 256,
12888 .page_size = 8 * 1024,
12889 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12890 .tested = TEST_OK_PREW,
12891 .probe = probe_jedec,
12892 .probe_timing = TIMING_FIXME,
12893 .block_erasers =
12894 {
12895 {
12896 .eraseblocks = {
12897 {128 * 1024, 1},
12898 {96 * 1024, 1},
12899 {8 * 1024, 2},
12900 {16 * 1024, 1},
12901 },
12902 .block_erase = erase_sector_jedec,
12903 }, {
12904 .eraseblocks = { {256 * 1024, 1} },
12905 .block_erase = erase_chip_block_jedec,
12906 },
12907 },
12908 .write = write_jedec_1,
12909 .read = read_memmapped,
12910 .voltage = {4500, 5500},
12911 },
12912
12913 {
12914 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012915 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012916 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012917 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012918 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012919 .total_size = 128,
12920 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012921 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012922 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012923 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012924 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000012925 .block_erasers =
12926 {
12927 {
12928 .eraseblocks = { {4 * 1024, 32} },
12929 .block_erase = erase_sector_jedec,
12930 }, {
12931 .eraseblocks = { {64 * 1024, 2} },
12932 .block_erase = erase_block_jedec,
12933 }, {
12934 .eraseblocks = { {128 * 1024, 1} },
12935 .block_erase = erase_chip_block_jedec,
12936 }
12937 },
Sean Nelson35727f72010-01-28 23:55:12 +000012938 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012939 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012940 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012941 },
12942
12943 {
12944 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012945 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012946 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012947 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012948 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012949 .total_size = 256,
12950 .page_size = 4096,
12951 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12952 .tested = TEST_UNTESTED,
12953 .probe = probe_jedec,
12954 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100012955 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012956 {
12957 {
12958 .eraseblocks = { {4 * 1024, 64} },
12959 .block_erase = erase_sector_jedec,
12960 }, {
12961 .eraseblocks = { {64 * 1024, 4} },
12962 .block_erase = erase_block_jedec,
12963 }, {
12964 .eraseblocks = { {256 * 1024, 1} },
12965 .block_erase = erase_chip_block_jedec,
12966 }
12967 },
12968 .write = write_jedec_1,
12969 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012970 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012971 },
12972
12973 {
12974 .vendor = "PMC",
12975 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012976 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012977 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012978 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012979 .total_size = 512,
12980 .page_size = 4096,
12981 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012982 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012983 .probe = probe_jedec,
12984 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100012985 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012986 {
12987 {
12988 .eraseblocks = { {4 * 1024, 128} },
12989 .block_erase = erase_sector_jedec,
12990 }, {
12991 .eraseblocks = { {64 * 1024, 8} },
12992 .block_erase = erase_block_jedec,
12993 }, {
12994 .eraseblocks = { {512 * 1024, 1} },
12995 .block_erase = erase_chip_block_jedec,
12996 }
12997 },
12998 .write = write_jedec_1,
12999 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013000 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013001 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000013002
13003 {
13004 .vendor = "PMC",
13005 .name = "Pm39LV512",
13006 .bustype = BUS_PARALLEL,
13007 .manufacture_id = PMC_ID_NOPREFIX,
13008 .model_id = PMC_PM39LV512,
13009 .total_size = 64,
13010 .page_size = 4096,
13011 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13012 .tested = TEST_OK_PREW,
13013 .probe = probe_jedec,
13014 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13015 .block_erasers =
13016 {
13017 {
13018 .eraseblocks = { {4 * 1024, 16} },
13019 .block_erase = erase_sector_jedec,
13020 }, {
13021 .eraseblocks = { {64 * 1024, 1} },
13022 .block_erase = erase_block_jedec,
13023 }, {
13024 .eraseblocks = { {64 * 1024, 1} },
13025 .block_erase = erase_chip_block_jedec,
13026 }
13027 },
13028 .write = write_jedec_1,
13029 .read = read_memmapped,
13030 .voltage = {2700, 3600},
13031 },
13032
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013033 {
13034 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013035 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013036 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013037 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013038 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013039 .total_size = 256,
13040 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013041 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013042 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013043 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013044 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000013045 .block_erasers =
13046 {
13047 {
13048 .eraseblocks = { {4 * 1024, 64} },
13049 .block_erase = erase_sector_jedec,
13050 }, {
13051 .eraseblocks = { {16 * 1024, 16} },
13052 .block_erase = erase_block_jedec,
13053 }, {
13054 .eraseblocks = { {256 * 1024, 1} },
13055 .block_erase = erase_chip_block_jedec,
13056 }
13057 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013058 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000013059 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013060 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013061 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013062 },
13063
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013064 {
13065 .vendor = "PMC",
13066 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013067 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013068 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013069 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013070 .total_size = 512,
13071 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013072 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013073 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013074 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013075 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013076 .block_erasers =
13077 {
13078 {
13079 .eraseblocks = { {4 * 1024, 128} },
13080 .block_erase = erase_sector_jedec,
13081 }, {
13082 .eraseblocks = { {64 * 1024, 8} },
13083 .block_erase = erase_block_jedec,
13084 }, {
13085 .eraseblocks = { {512 * 1024, 1} },
13086 .block_erase = erase_chip_block_jedec,
13087 }
13088 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013089 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000013090 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013091 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013092 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013093 },
13094
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013095 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013096 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000013097 .name = "SST25LF020A",
13098 .bustype = BUS_SPI,
13099 .manufacture_id = SST_ID,
13100 .model_id = SST_SST25VF020_REMS,
13101 .total_size = 256,
13102 .page_size = 256,
13103 .feature_bits = FEATURE_WRSR_EWSR,
13104 .tested = TEST_OK_PREW,
13105 .probe = probe_spi_rems,
13106 .probe_timing = TIMING_ZERO,
13107 .block_erasers =
13108 {
13109 {
13110 .eraseblocks = { {4 * 1024, 64} },
13111 .block_erase = spi_block_erase_20,
13112 }, {
13113 .eraseblocks = { {32 * 1024, 8} },
13114 .block_erase = spi_block_erase_52,
13115 }, {
13116 .eraseblocks = { {256 * 1024, 1} },
13117 .block_erase = spi_block_erase_60,
13118 },
13119 },
13120 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13121 .unlock = spi_disable_blockprotect,
13122 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13123 .read = spi_chip_read, /* Fast read (0x0B) supported */
13124 .voltage = {2700, 3600},
13125 },
13126
13127 {
13128 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000013129 .name = "SST25LF040A",
13130 .bustype = BUS_SPI,
13131 .manufacture_id = SST_ID,
13132 .model_id = SST_SST25VF040_REMS,
13133 .total_size = 512,
13134 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013135 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000013136 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000013137 .probe = probe_spi_res2,
13138 .probe_timing = TIMING_ZERO,
13139 .block_erasers =
13140 {
13141 {
13142 .eraseblocks = { {4 * 1024, 128} },
13143 .block_erase = spi_block_erase_20,
13144 }, {
13145 .eraseblocks = { {32 * 1024, 16} },
13146 .block_erase = spi_block_erase_52,
13147 }, {
13148 .eraseblocks = { {512 * 1024, 1} },
13149 .block_erase = spi_block_erase_60,
13150 },
13151 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013152 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013153 .unlock = spi_disable_blockprotect,
13154 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13155 .read = spi_chip_read,
13156 .voltage = {3000, 3600},
13157 },
13158
13159 {
13160 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000013161 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000013162 .bustype = BUS_SPI,
13163 .manufacture_id = SST_ID,
13164 .model_id = SST_SST25VF080_REMS,
13165 .total_size = 1024,
13166 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013167 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000013168 .tested = TEST_UNTESTED,
13169 .probe = probe_spi_res2,
13170 .probe_timing = TIMING_ZERO,
13171 .block_erasers =
13172 {
13173 {
13174 .eraseblocks = { {4 * 1024, 256} },
13175 .block_erase = spi_block_erase_20,
13176 }, {
13177 .eraseblocks = { {32 * 1024, 32} },
13178 .block_erase = spi_block_erase_52,
13179 }, {
13180 .eraseblocks = { {1024 * 1024, 1} },
13181 .block_erase = spi_block_erase_60,
13182 },
13183 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013184 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013185 .unlock = spi_disable_blockprotect,
13186 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13187 .read = spi_chip_read,
13188 .voltage = {3000, 3600},
13189 },
13190
13191 {
13192 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000013193 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013194 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000013195 .manufacture_id = SST_ID,
13196 .model_id = SST_SST25VF010_REMS,
13197 .total_size = 128,
13198 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013199 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000013200 .tested = TEST_OK_PREW,
13201 .probe = probe_spi_rems,
13202 .probe_timing = TIMING_ZERO,
13203 .block_erasers =
13204 {
13205 {
13206 .eraseblocks = { {4 * 1024, 32} },
13207 .block_erase = spi_block_erase_20,
13208 }, {
13209 .eraseblocks = { {32 * 1024, 4} },
13210 .block_erase = spi_block_erase_52,
13211 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000013212 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013213 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013214 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000013215 .eraseblocks = { {128 * 1024, 1} },
13216 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000013217 }, {
13218 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013219 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013220 },
13221 },
13222 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13223 .unlock = spi_disable_blockprotect,
13224 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000013225 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013226 .voltage = {2700, 3600},
13227 },
13228
13229 {
13230 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013231 .name = "SST25VF016B",
13232 .bustype = BUS_SPI,
13233 .manufacture_id = SST_ID,
13234 .model_id = SST_SST25VF016B,
13235 .total_size = 2048,
13236 .page_size = 256,
13237 .feature_bits = FEATURE_WRSR_EITHER,
13238 .tested = TEST_OK_PREW,
13239 .probe = probe_spi_rdid,
13240 .probe_timing = TIMING_ZERO,
13241 .block_erasers =
13242 {
13243 {
13244 .eraseblocks = { {4 * 1024, 512} },
13245 .block_erase = spi_block_erase_20,
13246 }, {
13247 .eraseblocks = { {32 * 1024, 64} },
13248 .block_erase = spi_block_erase_52,
13249 }, {
13250 .eraseblocks = { {64 * 1024, 32} },
13251 .block_erase = spi_block_erase_d8,
13252 }, {
13253 .eraseblocks = { {2 * 1024 * 1024, 1} },
13254 .block_erase = spi_block_erase_60,
13255 }, {
13256 .eraseblocks = { {2 * 1024 * 1024, 1} },
13257 .block_erase = spi_block_erase_c7,
13258 },
13259 },
13260 .printlock = spi_prettyprint_status_register_sst25vf016,
13261 .unlock = spi_disable_blockprotect,
13262 .write = spi_aai_write,
13263 .read = spi_chip_read,
13264 .voltage = {2700, 3600},
13265 },
13266
13267 {
13268 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013269 .name = "SST25VF020",
13270 .bustype = BUS_SPI,
13271 .manufacture_id = SST_ID,
13272 .model_id = SST_SST25VF020_REMS,
13273 .total_size = 256,
13274 .page_size = 256,
13275 .feature_bits = FEATURE_WRSR_EWSR,
13276 .tested = TEST_UNTESTED,
13277 .probe = probe_spi_rems,
13278 .probe_timing = TIMING_ZERO,
13279 .block_erasers =
13280 {
13281 {
13282 .eraseblocks = { {4 * 1024, 64} },
13283 .block_erase = spi_block_erase_20,
13284 }, {
13285 .eraseblocks = { {32 * 1024, 8} },
13286 .block_erase = spi_block_erase_52,
13287 }, {
13288 .eraseblocks = { {256 * 1024, 1} },
13289 .block_erase = spi_block_erase_60,
13290 },
13291 },
13292 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13293 .unlock = spi_disable_blockprotect,
13294 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13295 .read = spi_chip_read, /* only */
13296 .voltage = {2700, 3600},
13297 },
13298
13299 {
13300 .vendor = "SST",
13301 .name = "SST25VF020B",
13302 .bustype = BUS_SPI,
13303 .manufacture_id = SST_ID,
13304 .model_id = SST_SST25VF020B,
13305 .total_size = 256,
13306 .page_size = 256,
13307 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013308 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000013309 .probe = probe_spi_rdid,
13310 .probe_timing = TIMING_ZERO,
13311 .block_erasers =
13312 {
13313 {
13314 .eraseblocks = { {4 * 1024, 64} },
13315 .block_erase = spi_block_erase_20,
13316 }, {
13317 .eraseblocks = { {32 * 1024, 8} },
13318 .block_erase = spi_block_erase_52,
13319 }, {
13320 .eraseblocks = { {64 * 1024, 4} },
13321 .block_erase = spi_block_erase_d8,
13322 }, {
13323 .eraseblocks = { {256 * 1024, 1} },
13324 .block_erase = spi_block_erase_60,
13325 }, {
13326 .eraseblocks = { {256 * 1024, 1} },
13327 .block_erase = spi_block_erase_c7,
13328 },
13329 },
13330 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
13331 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
13332 .write = spi_aai_write, /* AAI supported (0xAD) */
13333 .read = spi_chip_read, /* Fast read (0x0B) supported */
13334 .voltage = {2700, 3600},
13335 },
13336
13337 {
13338 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013339 .name = "SST25VF032B",
13340 .bustype = BUS_SPI,
13341 .manufacture_id = SST_ID,
13342 .model_id = SST_SST25VF032B,
13343 .total_size = 4096,
13344 .page_size = 256,
13345 .feature_bits = FEATURE_WRSR_EWSR,
13346 .tested = TEST_OK_PREW,
13347 .probe = probe_spi_rdid,
13348 .probe_timing = TIMING_ZERO,
13349 .block_erasers =
13350 {
13351 {
13352 .eraseblocks = { {4 * 1024, 1024} },
13353 .block_erase = spi_block_erase_20,
13354 }, {
13355 .eraseblocks = { {32 * 1024, 128} },
13356 .block_erase = spi_block_erase_52,
13357 }, {
13358 .eraseblocks = { {64 * 1024, 64} },
13359 .block_erase = spi_block_erase_d8,
13360 }, {
13361 .eraseblocks = { {4 * 1024 * 1024, 1} },
13362 .block_erase = spi_block_erase_60,
13363 }, {
13364 .eraseblocks = { {4 * 1024 * 1024, 1} },
13365 .block_erase = spi_block_erase_c7,
13366 },
13367 },
13368 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13369 .unlock = spi_disable_blockprotect,
13370 .write = spi_aai_write,
13371 .read = spi_chip_read,
13372 .voltage = {2700, 3600},
13373 },
13374
13375 {
13376 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013377 .name = "SST25VF040",
13378 .bustype = BUS_SPI,
13379 .manufacture_id = SST_ID,
13380 .model_id = SST_SST25VF040_REMS,
13381 .total_size = 512,
13382 .page_size = 256,
13383 .feature_bits = FEATURE_WRSR_EWSR,
13384 .tested = TEST_OK_PR,
13385 .probe = probe_spi_rems,
13386 .probe_timing = TIMING_ZERO,
13387 .block_erasers =
13388 {
13389 {
13390 .eraseblocks = { {4 * 1024, 128} },
13391 .block_erase = spi_block_erase_20,
13392 }, {
13393 .eraseblocks = { {32 * 1024, 16} },
13394 .block_erase = spi_block_erase_52,
13395 }, {
13396 .eraseblocks = { {512 * 1024, 1} },
13397 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000013398 },
13399 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013400 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000013401 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000013402 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13403 .read = spi_chip_read,
13404 .voltage = {2700, 3600},
13405 },
13406
13407 {
13408 .vendor = "SST",
13409 .name = "SST25VF040B",
13410 .bustype = BUS_SPI,
13411 .manufacture_id = SST_ID,
13412 .model_id = SST_SST25VF040B,
13413 .total_size = 512,
13414 .page_size = 256,
13415 .feature_bits = FEATURE_WRSR_EWSR,
13416 .tested = TEST_OK_PREW,
13417 .probe = probe_spi_rdid,
13418 .probe_timing = TIMING_ZERO,
13419 .block_erasers =
13420 {
13421 {
13422 .eraseblocks = { {4 * 1024, 128} },
13423 .block_erase = spi_block_erase_20,
13424 }, {
13425 .eraseblocks = { {32 * 1024, 16} },
13426 .block_erase = spi_block_erase_52,
13427 }, {
13428 .eraseblocks = { {64 * 1024, 8} },
13429 .block_erase = spi_block_erase_d8,
13430 }, {
13431 .eraseblocks = { {512 * 1024, 1} },
13432 .block_erase = spi_block_erase_60,
13433 }, {
13434 .eraseblocks = { {512 * 1024, 1} },
13435 .block_erase = spi_block_erase_c7,
13436 },
13437 },
13438 .printlock = spi_prettyprint_status_register_sst25vf040b,
13439 .unlock = spi_disable_blockprotect,
13440 .write = spi_aai_write, /* AAI supported (0xAD) */
13441 .read = spi_chip_read, /* Fast read (0x0B) supported */
13442 .voltage = {2700, 3600},
13443 },
13444
13445 {
13446 .vendor = "SST",
13447 .name = "SST25VF040B.REMS",
13448 .bustype = BUS_SPI,
13449 .manufacture_id = SST_ID,
13450 .model_id = SST_SST25VF040B_REMS,
13451 .total_size = 512,
13452 .page_size = 256,
13453 .feature_bits = FEATURE_WRSR_EWSR,
13454 .tested = TEST_OK_PREW,
13455 .probe = probe_spi_rems,
13456 .probe_timing = TIMING_ZERO,
13457 .block_erasers =
13458 {
13459 {
13460 .eraseblocks = { {4 * 1024, 128} },
13461 .block_erase = spi_block_erase_20,
13462 }, {
13463 .eraseblocks = { {32 * 1024, 16} },
13464 .block_erase = spi_block_erase_52,
13465 }, {
13466 .eraseblocks = { {64 * 1024, 8} },
13467 .block_erase = spi_block_erase_d8,
13468 }, {
13469 .eraseblocks = { {512 * 1024, 1} },
13470 .block_erase = spi_block_erase_60,
13471 }, {
13472 .eraseblocks = { {512 * 1024, 1} },
13473 .block_erase = spi_block_erase_c7,
13474 },
13475 },
13476 .printlock = spi_prettyprint_status_register_sst25vf040b,
13477 .unlock = spi_disable_blockprotect,
13478 .write = spi_aai_write,
13479 .read = spi_chip_read,
13480 .voltage = {2700, 3600},
13481 },
13482
13483 {
13484 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013485 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000013486 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013487 .manufacture_id = SST_ID,
13488 .model_id = SST_SST25VF064C,
13489 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013490 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013491 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013492 .tested = TEST_OK_PREW,
13493 .probe = probe_spi_rdid,
13494 .probe_timing = TIMING_ZERO,
13495 .block_erasers =
13496 {
13497 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013498 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013499 .block_erase = spi_block_erase_20,
13500 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013501 .eraseblocks = { {32 * 1024, 256} },
13502 .block_erase = spi_block_erase_52,
13503 }, {
13504 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013505 .block_erase = spi_block_erase_d8,
13506 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013507 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013508 .block_erase = spi_block_erase_60,
13509 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013510 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013511 .block_erase = spi_block_erase_c7,
13512 },
13513 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013514 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13515 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013516 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013517 .read = spi_chip_read,
13518 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000013519 },
13520
13521 {
13522 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013523 .name = "SST25VF080B",
13524 .bustype = BUS_SPI,
13525 .manufacture_id = SST_ID,
13526 .model_id = SST_SST25VF080B,
13527 .total_size = 1024,
13528 .page_size = 256,
13529 .feature_bits = FEATURE_WRSR_EWSR,
13530 .tested = TEST_OK_PREW,
13531 .probe = probe_spi_rdid,
13532 .probe_timing = TIMING_ZERO,
13533 .block_erasers =
13534 {
13535 {
13536 .eraseblocks = { {4 * 1024, 256} },
13537 .block_erase = spi_block_erase_20,
13538 }, {
13539 .eraseblocks = { {32 * 1024, 32} },
13540 .block_erase = spi_block_erase_52,
13541 }, {
13542 .eraseblocks = { {64 * 1024, 16} },
13543 .block_erase = spi_block_erase_d8,
13544 }, {
13545 .eraseblocks = { {1024 * 1024, 1} },
13546 .block_erase = spi_block_erase_60,
13547 }, {
13548 .eraseblocks = { {1024 * 1024, 1} },
13549 .block_erase = spi_block_erase_c7,
13550 },
13551 },
13552 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13553 .unlock = spi_disable_blockprotect,
13554 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000013555 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013556 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000013557 },
13558
13559 {
13560 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013561 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013562 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013563 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013564 .model_id = SST_SST25VF512_REMS,
13565 .total_size = 64,
13566 .page_size = 256,
13567 .feature_bits = FEATURE_WRSR_EWSR,
13568 .tested = TEST_OK_PREW,
13569 .probe = probe_spi_rems,
13570 .probe_timing = TIMING_ZERO,
13571 .block_erasers =
13572 {
13573 {
13574 .eraseblocks = { {4 * 1024, 16} },
13575 .block_erase = spi_block_erase_20,
13576 }, {
13577 .eraseblocks = { {32 * 1024, 2} },
13578 .block_erase = spi_block_erase_52,
13579 }, {
13580 .eraseblocks = { {32 * 1024, 2} },
13581 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
13582 }, {
13583 .eraseblocks = { {64 * 1024, 1} },
13584 .block_erase = spi_block_erase_60,
13585 }, {
13586 .eraseblocks = { {64 * 1024, 1} },
13587 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
13588 },
13589 },
13590 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13591 .unlock = spi_disable_blockprotect,
13592 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13593 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
13594 .voltage = {2700, 3600},
13595 },
13596
13597 {
13598 .vendor = "SST",
13599 .name = "SST25WF010",
13600 .bustype = BUS_SPI,
13601 .manufacture_id = SST_ID,
13602 .model_id = SST_SST25WF010,
13603 .total_size = 128,
13604 .page_size = 256,
13605 .feature_bits = FEATURE_WRSR_EITHER,
13606 .tested = TEST_UNTESTED,
13607 .probe = probe_spi_rdid,
13608 .probe_timing = TIMING_ZERO,
13609 .block_erasers =
13610 {
13611 {
13612 .eraseblocks = { {4 * 1024, 32} },
13613 .block_erase = spi_block_erase_20,
13614 }, {
13615 .eraseblocks = { {32 * 1024, 4} },
13616 .block_erase = spi_block_erase_52,
13617 }, {
13618 .eraseblocks = { {1024 * 128, 1} },
13619 .block_erase = spi_block_erase_60,
13620 }, {
13621 .eraseblocks = { {1024 * 128, 1} },
13622 .block_erase = spi_block_erase_c7,
13623 },
13624 },
13625 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13626 .unlock = spi_disable_blockprotect_bp2_srwd,
13627 .write = spi_aai_write,
13628 .read = spi_chip_read, /* Fast read (0x0B) supported */
13629 .voltage = {1650, 1950},
13630 },
13631
13632 {
13633 .vendor = "SST",
13634 .name = "SST25WF020",
13635 .bustype = BUS_SPI,
13636 .manufacture_id = SST_ID,
13637 .model_id = SST_SST25WF020,
13638 .total_size = 256,
13639 .page_size = 256,
13640 .feature_bits = FEATURE_WRSR_EITHER,
13641 .tested = TEST_UNTESTED,
13642 .probe = probe_spi_rdid,
13643 .probe_timing = TIMING_ZERO,
13644 .block_erasers =
13645 {
13646 {
13647 .eraseblocks = { {4 * 1024, 64} },
13648 .block_erase = spi_block_erase_20,
13649 }, {
13650 .eraseblocks = { {32 * 1024, 8} },
13651 .block_erase = spi_block_erase_52,
13652 }, {
13653 .eraseblocks = { {64 * 1024, 4} },
13654 .block_erase = spi_block_erase_d8,
13655 }, {
13656 .eraseblocks = { {1024 * 256, 1} },
13657 .block_erase = spi_block_erase_60,
13658 }, {
13659 .eraseblocks = { {1024 * 256, 1} },
13660 .block_erase = spi_block_erase_c7,
13661 },
13662 },
13663 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13664 .unlock = spi_disable_blockprotect_bp2_srwd,
13665 .write = spi_aai_write,
13666 .read = spi_chip_read, /* Fast read (0x0B) supported */
13667 .voltage = {1650, 1950},
13668 },
13669
13670 {
13671 .vendor = "SST",
13672 .name = "SST25WF020A",
13673 .bustype = BUS_SPI,
13674 .manufacture_id = SANYO_ID, /* See flashchips.h */
13675 .model_id = SST_SST25WF020A,
13676 .total_size = 256,
13677 .page_size = 256,
13678 .feature_bits = FEATURE_WRSR_WREN,
13679 .tested = TEST_UNTESTED,
13680 .probe = probe_spi_rdid,
13681 .probe_timing = TIMING_ZERO,
13682 .block_erasers =
13683 {
13684 {
13685 .eraseblocks = { {4 * 1024, 64} },
13686 .block_erase = spi_block_erase_20,
13687 }, {
13688 .eraseblocks = { {64 * 1024, 4} },
13689 .block_erase = spi_block_erase_d8,
13690 }, {
13691 .eraseblocks = { {256 * 1024, 1} },
13692 .block_erase = spi_block_erase_60,
13693 }, {
13694 .eraseblocks = { {256 * 1024, 1} },
13695 .block_erase = spi_block_erase_c7,
13696 },
13697 },
13698 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13699 .unlock = spi_disable_blockprotect_bp2_srwd,
13700 .write = spi_chip_write_256,
13701 .read = spi_chip_read, /* Fast read (0x0B) supported */
13702 .voltage = {1650, 1950},
13703 },
13704
13705 {
13706 .vendor = "SST",
13707 .name = "SST25WF040",
13708 .bustype = BUS_SPI,
13709 .manufacture_id = SST_ID,
13710 .model_id = SST_SST25WF040,
13711 .total_size = 512,
13712 .page_size = 256,
13713 .feature_bits = FEATURE_WRSR_EITHER,
13714 .tested = TEST_UNTESTED,
13715 .probe = probe_spi_rdid,
13716 .probe_timing = TIMING_ZERO,
13717 .block_erasers =
13718 {
13719 {
13720 .eraseblocks = { {4 * 1024, 128} },
13721 .block_erase = spi_block_erase_20,
13722 }, {
13723 .eraseblocks = { {32 * 1024, 16} },
13724 .block_erase = spi_block_erase_52,
13725 }, {
13726 .eraseblocks = { {64 * 1024, 8} },
13727 .block_erase = spi_block_erase_d8,
13728 }, {
13729 .eraseblocks = { {1024 * 512, 1} },
13730 .block_erase = spi_block_erase_60,
13731 }, {
13732 .eraseblocks = { {1024 * 512, 1} },
13733 .block_erase = spi_block_erase_c7,
13734 },
13735 },
13736 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13737 .unlock = spi_disable_blockprotect_bp2_srwd,
13738 .write = spi_aai_write,
13739 .read = spi_chip_read, /* Fast read (0x0B) supported */
13740 .voltage = {1650, 1950},
13741 },
13742
13743 {
13744 .vendor = "SST",
13745 .name = "SST25WF040B",
13746 .bustype = BUS_SPI,
13747 .manufacture_id = SANYO_ID, /* See flashchips.h */
13748 .model_id = SST_SST25WF040B,
13749 .total_size = 512,
13750 .page_size = 256,
13751 .feature_bits = FEATURE_WRSR_WREN,
13752 .tested = TEST_UNTESTED,
13753 .probe = probe_spi_rdid,
13754 .probe_timing = TIMING_ZERO,
13755 .block_erasers =
13756 {
13757 {
13758 .eraseblocks = { {4 * 1024, 128} },
13759 .block_erase = spi_block_erase_20,
13760 }, {
13761 .eraseblocks = { {64 * 1024, 8} },
13762 .block_erase = spi_block_erase_d8,
13763 }, {
13764 .eraseblocks = { {512 * 1024, 1} },
13765 .block_erase = spi_block_erase_60,
13766 }, {
13767 .eraseblocks = { {512 * 1024, 1} },
13768 .block_erase = spi_block_erase_c7,
13769 },
13770 },
13771 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13772 .unlock = spi_disable_blockprotect_bp2_srwd,
13773 .write = spi_chip_write_256,
13774 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13775 .voltage = {1650, 1950},
13776 },
13777
13778 {
13779 .vendor = "SST",
13780 .name = "SST25WF080",
13781 .bustype = BUS_SPI,
13782 .manufacture_id = SST_ID,
13783 .model_id = SST_SST25WF080,
13784 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013785 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013786 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000013787 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013788 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013789 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013790 .block_erasers =
13791 {
13792 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013793 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013794 .block_erase = spi_block_erase_20,
13795 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013796 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013797 .block_erase = spi_block_erase_52,
13798 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013799 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013800 .block_erase = spi_block_erase_d8,
13801 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013802 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013803 .block_erase = spi_block_erase_60,
13804 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013805 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013806 .block_erase = spi_block_erase_c7,
13807 },
13808 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013809 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
13810 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000013811 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013812 .read = spi_chip_read, /* Fast read (0x0B) supported */
13813 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000013814 },
13815
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013816 {
13817 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013818 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013819 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013820 .manufacture_id = SANYO_ID, /* See flashchips.h */
13821 .model_id = SST_SST25WF080B,
13822 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013823 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013824 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000013825 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013826 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013827 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013828 .block_erasers =
13829 {
13830 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013831 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013832 .block_erase = spi_block_erase_20,
13833 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013834 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013835 .block_erase = spi_block_erase_d8,
13836 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013837 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013838 .block_erase = spi_block_erase_60,
13839 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013840 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013841 .block_erase = spi_block_erase_c7,
13842 },
13843 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013844 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13845 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000013846 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013847 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13848 .voltage = {1650, 1950},
13849 },
13850
13851 {
13852 .vendor = "SST",
13853 .name = "SST25WF512",
13854 .bustype = BUS_SPI,
13855 .manufacture_id = SST_ID,
13856 .model_id = SST_SST25WF512,
13857 .total_size = 64,
13858 .page_size = 256,
13859 .feature_bits = FEATURE_WRSR_EITHER,
13860 .tested = TEST_UNTESTED,
13861 .probe = probe_spi_rdid,
13862 .probe_timing = TIMING_ZERO,
13863 .block_erasers =
13864 {
13865 {
13866 .eraseblocks = { {4 * 1024, 16} },
13867 .block_erase = spi_block_erase_20,
13868 }, {
13869 .eraseblocks = { {32 * 1024, 2} },
13870 .block_erase = spi_block_erase_52,
13871 }, {
13872 .eraseblocks = { {1024 * 64, 1} },
13873 .block_erase = spi_block_erase_60,
13874 }, {
13875 .eraseblocks = { {1024 * 64, 1} },
13876 .block_erase = spi_block_erase_c7,
13877 },
13878 },
13879 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13880 .unlock = spi_disable_blockprotect_bp2_srwd,
13881 .write = spi_aai_write,
13882 .read = spi_chip_read, /* Fast read (0x0B) supported */
13883 .voltage = {1650, 1950},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013884 },
13885
13886 {
13887 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070013888 .name = "SST26VF016B(A)",
13889 .bustype = BUS_SPI,
13890 .manufacture_id = SST_ID,
13891 .model_id = SST_SST26VF016B,
13892 .total_size = 2048,
13893 .page_size = 256,
13894 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13895 .tested = TEST_OK_PREW,
13896 .probe = probe_spi_rdid,
13897 .probe_timing = TIMING_ZERO,
13898 .block_erasers =
13899 {
13900 {
13901 .eraseblocks = { {4 * 1024, 512} },
13902 .block_erase = spi_block_erase_20,
13903 }, {
13904 .eraseblocks = {
13905 {8 * 1024, 4},
13906 {32 * 1024, 1},
13907 {64 * 1024, 30},
13908 {32 * 1024, 1},
13909 {8 * 1024, 4},
13910 },
13911 .block_erase = spi_block_erase_d8,
13912 }, {
13913 .eraseblocks = { {2 * 1024 * 1024, 1} },
13914 .block_erase = spi_block_erase_c7,
13915 },
13916 },
13917 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13918 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13919 .write = spi_chip_write_256, /* Multi I/O supported */
13920 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13921 .voltage = {2700, 3600},
13922 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100013923
Wei Hu25584de2018-04-30 14:02:08 -070013924 {
13925 .vendor = "SST",
13926 .name = "SST26VF032B(A)",
13927 .bustype = BUS_SPI,
13928 .manufacture_id = SST_ID,
13929 .model_id = SST_SST26VF032B,
13930 .total_size = 4096,
13931 .page_size = 256,
13932 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13933 .tested = TEST_UNTESTED,
13934 .probe = probe_spi_rdid,
13935 .probe_timing = TIMING_ZERO,
13936 .block_erasers =
13937 {
13938 {
13939 .eraseblocks = { {4 * 1024, 1024} },
13940 .block_erase = spi_block_erase_20,
13941 }, {
13942 .eraseblocks = {
13943 {8 * 1024, 4},
13944 {32 * 1024, 1},
13945 {64 * 1024, 62},
13946 {32 * 1024, 1},
13947 {8 * 1024, 4},
13948 },
13949 .block_erase = spi_block_erase_d8,
13950 }, {
13951 .eraseblocks = { {4 * 1024 * 1024, 1} },
13952 .block_erase = spi_block_erase_c7,
13953 },
13954 },
13955 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13956 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13957 .write = spi_chip_write_256, /* Multi I/O supported */
13958 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13959 .voltage = {2700, 3600},
13960 },
13961
Wei Hu25584de2018-04-30 14:02:08 -070013962 {
13963 .vendor = "SST",
13964 .name = "SST26VF064B(A)",
13965 .bustype = BUS_SPI,
13966 .manufacture_id = SST_ID,
13967 .model_id = SST_SST26VF064B,
13968 .total_size = 8192,
13969 .page_size = 256,
13970 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13971 .tested = TEST_OK_PREW,
13972 .probe = probe_spi_rdid,
13973 .probe_timing = TIMING_ZERO,
13974 .block_erasers =
13975 {
13976 {
13977 .eraseblocks = { {4 * 1024, 2048} },
13978 .block_erase = spi_block_erase_20,
13979 }, {
13980 .eraseblocks = {
13981 {8 * 1024, 4},
13982 {32 * 1024, 1},
13983 {64 * 1024, 126},
13984 {32 * 1024, 1},
13985 {8 * 1024, 4},
13986 },
13987 .block_erase = spi_block_erase_d8,
13988 }, {
13989 .eraseblocks = { {8 * 1024 * 1024, 1} },
13990 .block_erase = spi_block_erase_c7,
13991 },
13992 },
13993 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13994 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13995 .write = spi_chip_write_256, /* Multi I/O supported */
13996 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13997 .voltage = {2700, 3600},
13998 },
13999
14000 {
14001 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014002 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014003 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014004 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014005 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014006 .total_size = 512,
14007 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000014008 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014009 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014010 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014011 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014012 .block_erasers =
14013 {
14014 {
14015 .eraseblocks = { {128, 4096} },
14016 .block_erase = erase_sector_28sf040,
14017 }, {
14018 .eraseblocks = { {512 * 1024, 1} },
14019 .block_erase = erase_chip_28sf040,
14020 }
14021 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014022 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014023 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014024 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014025 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014026 },
14027
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014028 {
14029 .vendor = "SST",
14030 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014031 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014032 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014033 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014034 .total_size = 128,
14035 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014036 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014037 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014038 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014039 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014040 .block_erasers =
14041 {
14042 {
14043 .eraseblocks = { {128 * 1024, 1} },
14044 .block_erase = erase_chip_block_jedec,
14045 }
14046 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014047 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014048 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014049 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014050 },
14051
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014052 {
14053 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014054 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014055 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014056 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014057 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014058 .total_size = 256,
14059 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014060 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014061 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014062 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014063 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014064 .block_erasers =
14065 {
14066 {
14067 .eraseblocks = { {256 * 1024, 1} },
14068 .block_erase = erase_chip_block_jedec,
14069 }
14070 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014071 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014072 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014073 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014074 },
14075
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014076 {
14077 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014078 .name = "SST29LE010",
14079 .bustype = BUS_PARALLEL,
14080 .manufacture_id = SST_ID,
14081 .model_id = SST_SST29LE010,
14082 .total_size = 128,
14083 .page_size = 128,
14084 .feature_bits = FEATURE_LONG_RESET,
14085 .tested = TEST_UNTESTED,
14086 .probe = probe_jedec,
14087 .probe_timing = 10,
14088 .block_erasers =
14089 {
14090 {
14091 .eraseblocks = { {128 * 1024, 1} },
14092 .block_erase = erase_chip_block_jedec,
14093 }
14094 },
14095 .write = write_jedec,
14096 .read = read_memmapped,
14097 .voltage = {3000, 3600},
14098 },
14099
14100 {
14101 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014102 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014103 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014104 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014105 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014106 .total_size = 256,
14107 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014108 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014109 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014110 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014111 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014112 .block_erasers =
14113 {
14114 {
14115 .eraseblocks = { {256 * 1024, 1} },
14116 .block_erase = erase_chip_block_jedec,
14117 }
14118 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014119 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014120 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014121 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014122 },
14123
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014124 {
14125 .vendor = "SST",
14126 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014127 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014128 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014129 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014130 .total_size = 128,
14131 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014132 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014133 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014134 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014135 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014136 .block_erasers =
14137 {
14138 {
14139 .eraseblocks = { {4 * 1024, 32} },
14140 .block_erase = erase_sector_jedec,
14141 }, {
14142 .eraseblocks = { {128 * 1024, 1} },
14143 .block_erase = erase_chip_block_jedec,
14144 }
14145 },
Sean Nelson35727f72010-01-28 23:55:12 +000014146 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014147 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014148 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014149 },
14150
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014151 {
14152 .vendor = "SST",
14153 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014154 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014155 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014156 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014157 .total_size = 256,
14158 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014159 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000014160 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014161 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014162 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014163 .block_erasers =
14164 {
14165 {
14166 .eraseblocks = { {4 * 1024, 64} },
14167 .block_erase = erase_sector_jedec,
14168 }, {
14169 .eraseblocks = { {256 * 1024, 1} },
14170 .block_erase = erase_chip_block_jedec,
14171 }
14172 },
Sean Nelson35727f72010-01-28 23:55:12 +000014173 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014174 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014175 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014176 },
14177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014178 {
14179 .vendor = "SST",
14180 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014181 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014182 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014183 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014184 .total_size = 512,
14185 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014186 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000014187 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014188 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014189 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014190 .block_erasers =
14191 {
14192 {
14193 .eraseblocks = { {4 * 1024, 128} },
14194 .block_erase = erase_sector_jedec,
14195 }, {
14196 .eraseblocks = { {512 * 1024, 1} },
14197 .block_erase = erase_chip_block_jedec,
14198 }
14199 },
Sean Nelson35727f72010-01-28 23:55:12 +000014200 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014202 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014203 },
14204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014205 {
14206 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014207 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014208 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014209 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014210 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014211 .total_size = 64,
14212 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014213 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000014214 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014215 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014216 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014217 .block_erasers =
14218 {
14219 {
14220 .eraseblocks = { {4 * 1024, 16} },
14221 .block_erase = erase_sector_jedec,
14222 }, {
14223 .eraseblocks = { {64 * 1024, 1} },
14224 .block_erase = erase_chip_block_jedec,
14225 }
14226 },
Sean Nelson35727f72010-01-28 23:55:12 +000014227 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014228 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014229 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014230 },
14231
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014232 {
14233 .vendor = "SST",
14234 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014235 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014236 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014237 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014238 .total_size = 128,
14239 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014240 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000014241 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014242 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014243 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014244 .block_erasers =
14245 {
14246 {
14247 .eraseblocks = { {4 * 1024, 32} },
14248 .block_erase = erase_sector_jedec,
14249 }, {
14250 .eraseblocks = { {128 * 1024, 1} },
14251 .block_erase = erase_chip_block_jedec,
14252 }
14253 },
Sean Nelson35727f72010-01-28 23:55:12 +000014254 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014255 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014256 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014257 },
14258
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014259 {
14260 .vendor = "SST",
14261 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014262 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014263 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014264 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014265 .total_size = 256,
14266 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014267 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000014268 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014269 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014270 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014271 .block_erasers =
14272 {
14273 {
14274 .eraseblocks = { {4 * 1024, 64} },
14275 .block_erase = erase_sector_jedec,
14276 }, {
14277 .eraseblocks = { {256 * 1024, 1} },
14278 .block_erase = erase_chip_block_jedec,
14279 }
14280 },
Sean Nelson35727f72010-01-28 23:55:12 +000014281 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014282 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014283 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014284 },
14285
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014286 {
14287 .vendor = "SST",
14288 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014289 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014290 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014291 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014292 .total_size = 512,
14293 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014294 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014295 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014296 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014297 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014298 .block_erasers =
14299 {
14300 {
14301 .eraseblocks = { {4 * 1024, 128} },
14302 .block_erase = erase_sector_jedec,
14303 }, {
14304 .eraseblocks = { {512 * 1024, 1} },
14305 .block_erase = erase_chip_block_jedec,
14306 }
14307 },
Sean Nelson35727f72010-01-28 23:55:12 +000014308 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014309 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014310 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000014311 },
FENG yu ningff692fb2008-12-08 18:15:10 +000014312
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014313 {
14314 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000014315 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014316 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014317 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014318 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000014319 .total_size = 1024,
14320 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014321 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000014322 .tested = TEST_UNTESTED,
14323 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014324 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014325 .block_erasers =
14326 {
14327 {
14328 .eraseblocks = { {4 * 1024, 256} },
14329 .block_erase = erase_sector_jedec,
14330 }, {
14331 .eraseblocks = { {64 * 1024, 16} },
14332 .block_erase = erase_block_jedec,
14333 }, {
14334 .eraseblocks = { {1024 * 1024, 1} },
14335 .block_erase = erase_chip_block_jedec,
14336 }
14337 },
Sean Nelson35727f72010-01-28 23:55:12 +000014338 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014339 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014340 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000014341 },
14342
14343 {
14344 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014345 .name = "SST39VF512",
14346 .bustype = BUS_PARALLEL,
14347 .manufacture_id = SST_ID,
14348 .model_id = SST_SST39VF512,
14349 .total_size = 64,
14350 .page_size = 4096,
14351 .feature_bits = FEATURE_EITHER_RESET,
14352 .tested = TEST_OK_PREW,
14353 .probe = probe_jedec,
14354 .probe_timing = 1, /* 150 ns */
14355 .block_erasers =
14356 {
14357 {
14358 .eraseblocks = { {4 * 1024, 16} },
14359 .block_erase = erase_sector_jedec,
14360 }, {
14361 .eraseblocks = { {64 * 1024, 1} },
14362 .block_erase = erase_chip_block_jedec,
14363 }
14364 },
14365 .write = write_jedec_1,
14366 .read = read_memmapped,
14367 .voltage = {2700, 3600},
14368 },
14369
14370 {
14371 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014372 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014373 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014374 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014375 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014376 .total_size = 256,
14377 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014378 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014379 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014380 .probe = probe_jedec,
14381 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014382 .block_erasers =
14383 {
14384 {
14385 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014386 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014387 }, {
14388 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014389 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014390 }, {
14391 .eraseblocks = { {256 * 1024, 1} },
14392 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14393 }
14394 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014395 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014396 .unlock = unlock_sst_fwhub,
14397 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014398 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014399 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014400 },
14401
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014402 {
14403 .vendor = "SST",
14404 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014405 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014406 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014407 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014408 .total_size = 384,
14409 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014410 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000014411 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014412 .probe = probe_jedec,
14413 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014414 .block_erasers =
14415 {
14416 {
14417 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014418 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014419 }, {
14420 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014421 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014422 }, {
14423 .eraseblocks = { {384 * 1024, 1} },
14424 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14425 }
14426 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014427 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014428 .unlock = unlock_sst_fwhub,
14429 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014430 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014431 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014432 },
14433
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014434 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014435 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
14436 * and is only honored for 64k block erase, but not 4k sector erase.
14437 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014438 .vendor = "SST",
14439 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014440 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014441 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014442 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014443 .total_size = 512,
14444 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014445 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014446 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014447 .probe = probe_jedec,
14448 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014449 .block_erasers =
14450 {
14451 {
14452 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014453 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014454 }, {
14455 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014456 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014457 }, {
14458 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000014459 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014460 },
14461 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014462 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014463 .unlock = unlock_sst_fwhub,
14464 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014465 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014466 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014467 },
14468
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014469 {
14470 .vendor = "SST",
14471 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014472 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014473 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014474 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014475 .total_size = 512,
14476 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014477 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014478 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014479 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014480 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014481 .block_erasers =
14482 {
14483 {
14484 .eraseblocks = { {4 * 1024, 128} },
14485 .block_erase = erase_sector_49lfxxxc,
14486 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014487 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014488 {64 * 1024, 7},
14489 {32 * 1024, 1},
14490 {8 * 1024, 2},
14491 {16 * 1024, 1},
14492 },
Sean Nelson69e58112010-03-23 17:10:28 +000014493 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014494 }
14495 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014496 .printlock = printlock_regspace2_block_eraser_1,
14497 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014498 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014499 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014500 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014501 },
14502
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014503 {
14504 .vendor = "SST",
14505 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014506 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014507 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014508 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014509 .total_size = 1024,
14510 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014511 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014512 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014513 .probe = probe_jedec,
14514 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014515 .block_erasers =
14516 {
14517 {
14518 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014519 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014520 }, {
14521 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014522 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014523 }, {
14524 .eraseblocks = { {1024 * 1024, 1} },
14525 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14526 }
14527 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014528 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014529 .unlock = unlock_sst_fwhub,
14530 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014531 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014532 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014533 },
14534
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014535 {
14536 .vendor = "SST",
14537 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014538 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014539 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014540 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014541 .total_size = 1024,
14542 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014543 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014544 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014545 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014546 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014547 .block_erasers =
14548 {
14549 {
14550 .eraseblocks = { {4 * 1024, 256} },
14551 .block_erase = erase_sector_49lfxxxc,
14552 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014553 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014554 {64 * 1024, 15},
14555 {32 * 1024, 1},
14556 {8 * 1024, 2},
14557 {16 * 1024, 1},
14558 },
Sean Nelson69e58112010-03-23 17:10:28 +000014559 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014560 }
14561 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014562 .printlock = printlock_regspace2_block_eraser_1,
14563 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014564 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014565 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014566 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014567 },
14568
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014569 {
14570 .vendor = "SST",
14571 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014572 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014573 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014574 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014575 .total_size = 2048,
14576 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014577 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014578 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014579 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014580 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014581 .block_erasers =
14582 {
14583 {
14584 .eraseblocks = { {4 * 1024, 512} },
14585 .block_erase = erase_sector_49lfxxxc,
14586 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014587 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014588 {64 * 1024, 31},
14589 {32 * 1024, 1},
14590 {8 * 1024, 2},
14591 {16 * 1024, 1},
14592 },
Sean Nelson69e58112010-03-23 17:10:28 +000014593 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014594 }
14595 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014596 .printlock = printlock_regspace2_block_eraser_1,
14597 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014598 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014599 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014600 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014601 },
14602
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014603 {
14604 .vendor = "SST",
14605 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014606 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014607 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014608 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014609 .total_size = 256,
14610 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014611 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000014612 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014613 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014614 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014615 .block_erasers =
14616 {
14617 {
14618 .eraseblocks = { {4 * 1024, 64} },
14619 .block_erase = erase_sector_jedec,
14620 }, {
14621 .eraseblocks = { {16 * 1024, 16} },
14622 .block_erase = erase_block_jedec,
14623 }, {
14624 .eraseblocks = { {256 * 1024, 1} },
14625 .block_erase = NULL,
14626 }
14627 },
Sean Nelson35727f72010-01-28 23:55:12 +000014628 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014629 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014630 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000014631 },
14632
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014633 {
14634 .vendor = "SST",
14635 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014636 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014637 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014638 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014639 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000014640 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014641 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014642 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014643 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014644 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014645 .block_erasers =
14646 {
14647 {
14648 .eraseblocks = { {4 * 1024, 64} },
14649 .block_erase = erase_sector_jedec,
14650 }, {
14651 .eraseblocks = { {16 * 1024, 16} },
14652 .block_erase = erase_block_jedec,
14653 }, {
14654 .eraseblocks = { {256 * 1024, 1} },
14655 .block_erase = NULL,
14656 }
14657 },
Sean Nelson35727f72010-01-28 23:55:12 +000014658 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014659 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014660 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014661 },
14662
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014663 {
14664 .vendor = "SST",
14665 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014666 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014667 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014668 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014669 .total_size = 512,
14670 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014671 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014672 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014673 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014674 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014675 .block_erasers =
14676 {
14677 {
14678 .eraseblocks = { {4 * 1024, 128} },
14679 .block_erase = erase_sector_jedec,
14680 }, {
14681 .eraseblocks = { {64 * 1024, 8} },
14682 .block_erase = erase_block_jedec,
14683 }, {
14684 .eraseblocks = { {512 * 1024, 1} },
14685 .block_erase = NULL,
14686 }
14687 },
Sean Nelson35727f72010-01-28 23:55:12 +000014688 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014689 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014690 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014691 },
14692
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014693 {
14694 .vendor = "SST",
14695 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014696 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014697 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014698 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014699 .total_size = 512,
14700 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000014701 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014702 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014703 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014704 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014705 .block_erasers =
14706 {
14707 {
14708 .eraseblocks = { {4 * 1024, 128} },
14709 .block_erase = erase_sector_jedec,
14710 }, {
14711 .eraseblocks = { {64 * 1024, 8} },
14712 .block_erase = erase_block_jedec,
14713 }, {
14714 .eraseblocks = { {512 * 1024, 1} },
14715 .block_erase = NULL,
14716 }
14717 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014718 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014719 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014720 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014721 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014722 },
14723
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014724 {
14725 .vendor = "SST",
14726 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014727 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014728 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020014729 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014730 .total_size = 1024,
14731 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014732 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000014733 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014734 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014735 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014736 .block_erasers =
14737 {
14738 {
14739 .eraseblocks = { {4 * 1024, 256} },
14740 .block_erase = erase_sector_jedec,
14741 }, {
14742 .eraseblocks = { {64 * 1024, 16} },
14743 .block_erase = erase_block_jedec,
14744 }, {
14745 .eraseblocks = { {1024 * 1024, 1} },
14746 .block_erase = NULL,
14747 }
14748 },
Sean Nelson35727f72010-01-28 23:55:12 +000014749 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014750 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014751 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014752 },
14753
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014754 {
14755 .vendor = "SST",
14756 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014757 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014758 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014759 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014760 .total_size = 2048,
14761 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014762 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014763 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014764 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014765 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014766 .block_erasers =
14767 {
14768 {
14769 .eraseblocks = { {4 * 1024, 512} },
14770 .block_erase = erase_sector_49lfxxxc,
14771 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014772 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014773 {64 * 1024, 31},
14774 {32 * 1024, 1},
14775 {8 * 1024, 2},
14776 {16 * 1024, 1},
14777 },
Sean Nelson69e58112010-03-23 17:10:28 +000014778 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014779 }
14780 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014781 .printlock = printlock_regspace2_block_eraser_1,
14782 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014783 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014784 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014785 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014786 },
14787
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014788 {
14789 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014790 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014791 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014792 .manufacture_id = ST_ID,
14793 .model_id = ST_M29F002B,
14794 .total_size = 256,
14795 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014796 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014797 .tested = TEST_UNTESTED,
14798 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014799 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014800 .block_erasers =
14801 {
14802 {
14803 .eraseblocks = {
14804 {16 * 1024, 1},
14805 {8 * 1024, 2},
14806 {32 * 1024, 1},
14807 {64 * 1024, 3},
14808 },
14809 .block_erase = erase_sector_jedec,
14810 }, {
14811 .eraseblocks = { {256 * 1024, 1} },
14812 .block_erase = erase_chip_block_jedec,
14813 }
14814 },
Sean Nelson35727f72010-01-28 23:55:12 +000014815 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014816 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014817 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014818 },
14819
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014820 {
14821 .vendor = "ST",
14822 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014823 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014824 .manufacture_id = ST_ID,
14825 .model_id = ST_M29F002T,
14826 .total_size = 256,
14827 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014828 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014829 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014830 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014831 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014832 .block_erasers =
14833 {
14834 {
14835 .eraseblocks = {
14836 {64 * 1024, 3},
14837 {32 * 1024, 1},
14838 {8 * 1024, 2},
14839 {16 * 1024, 1},
14840 },
14841 .block_erase = erase_sector_jedec,
14842 }, {
14843 .eraseblocks = { {256 * 1024, 1} },
14844 .block_erase = erase_chip_block_jedec,
14845 }
14846 },
Sean Nelson35727f72010-01-28 23:55:12 +000014847 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014848 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014849 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014850 },
14851
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014852 {
14853 .vendor = "ST",
14854 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014855 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014856 .manufacture_id = ST_ID,
14857 .model_id = ST_M29F040B,
14858 .total_size = 512,
14859 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014860 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
14861 .tested = TEST_UNTESTED,
14862 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000014863 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000014864 .block_erasers =
14865 {
14866 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014867 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000014868 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014869 }, {
14870 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000014871 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014872 }
14873 },
Sean Nelson35727f72010-01-28 23:55:12 +000014874 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014875 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014876 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014877 },
14878
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014879 {
Sean Nelson35727f72010-01-28 23:55:12 +000014880 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014881 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014882 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014883 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014884 .manufacture_id = ST_ID,
14885 .model_id = ST_M29F400BB,
14886 .total_size = 512,
14887 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014888 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014889 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014890 .probe = probe_jedec,
14891 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014892 .block_erasers =
14893 {
14894 {
14895 .eraseblocks = {
14896 {16 * 1024, 1},
14897 {8 * 1024, 2},
14898 {32 * 1024, 1},
14899 {64 * 1024, 7},
14900 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014901 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014902 }, {
14903 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014904 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014905 }
14906 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014907 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014908 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014909 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014910 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100014911
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014912 {
14913 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
14914 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014915 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014916 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014917 .manufacture_id = ST_ID,
14918 .model_id = ST_M29F400BT,
14919 .total_size = 512,
14920 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014921 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014922 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014923 .probe = probe_jedec,
14924 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000014925 .block_erasers =
14926 {
14927 {
14928 .eraseblocks = {
14929 {64 * 1024, 7},
14930 {32 * 1024, 1},
14931 {8 * 1024, 2},
14932 {16 * 1024, 1},
14933 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014934 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014935 }, {
14936 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014937 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014938 }
14939 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014940 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014941 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014942 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014943 },
14944
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014945 {
14946 .vendor = "ST",
14947 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014948 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014949 .manufacture_id = ST_ID,
14950 .model_id = ST_M29W010B,
14951 .total_size = 128,
14952 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014953 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014954 .tested = TEST_UNTESTED,
14955 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014956 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014957 .block_erasers =
14958 {
14959 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014960 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014961 .block_erase = erase_sector_jedec,
14962 }, {
14963 .eraseblocks = { {128 * 1024, 1} },
14964 .block_erase = erase_chip_block_jedec,
14965 }
14966 },
Sean Nelson35727f72010-01-28 23:55:12 +000014967 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014968 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014969 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014970 },
14971
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014972 {
14973 .vendor = "ST",
14974 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014975 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014976 .manufacture_id = ST_ID,
14977 .model_id = ST_M29W040B,
14978 .total_size = 512,
14979 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014980 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014981 .tested = TEST_UNTESTED,
14982 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014983 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014984 .block_erasers =
14985 {
14986 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014987 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014988 .block_erase = erase_sector_jedec,
14989 }, {
14990 .eraseblocks = { {512 * 1024, 1} },
14991 .block_erase = erase_chip_block_jedec,
14992 }
14993 },
Sean Nelson35727f72010-01-28 23:55:12 +000014994 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014995 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014996 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014997 },
14998
Stefan Taunereb582572012-09-21 12:52:50 +000014999 {
15000 .vendor = "ST",
15001 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015002 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100015003 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000015004 .model_id = ST_M29W512B,
15005 .total_size = 64,
15006 .page_size = 64 * 1024,
15007 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015008 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000015009 .probe = probe_jedec,
15010 .probe_timing = TIMING_ZERO,
15011 .block_erasers =
15012 {
15013 {
15014 .eraseblocks = { {64 * 1024, 1} },
15015 .block_erase = erase_chip_block_jedec,
15016 }
15017 },
15018 .write = write_jedec_1,
15019 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015020 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000015021 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000015022
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015023 {
15024 .vendor = "ST",
15025 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015026 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015027 .manufacture_id = ST_ID,
15028 .model_id = ST_M50FLW040A,
15029 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015030 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015031 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015032 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015033 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015034 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015035 .block_erasers =
15036 {
15037 {
Sean Nelson329bde72010-01-19 16:39:19 +000015038 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015039 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015040 {64 * 1024, 5}, /* block */
15041 {4 * 1024, 16}, /* sector */
15042 {4 * 1024, 16}, /* sector */
15043 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015044 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015045 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015046 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015047 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015048 }
15049 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015050 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015051 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015052 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015053 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015054 },
15055
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015056 {
15057 .vendor = "ST",
15058 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015059 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015060 .manufacture_id = ST_ID,
15061 .model_id = ST_M50FLW040B,
15062 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015063 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015064 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015065 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015066 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015067 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015068 .block_erasers =
15069 {
15070 {
Sean Nelson329bde72010-01-19 16:39:19 +000015071 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015072 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015073 {4 * 1024, 16}, /* sector */
15074 {64 * 1024, 5}, /* block */
15075 {4 * 1024, 16}, /* sector */
15076 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015077 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015078 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015079 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015080 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015081 }
15082 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015083 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015084 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015085 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015086 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015087 },
15088
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015089 {
15090 .vendor = "ST",
15091 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015092 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015093 .manufacture_id = ST_ID,
15094 .model_id = ST_M50FLW080A,
15095 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015096 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015097 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015098 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015099 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015100 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015101 .block_erasers =
15102 {
15103 {
Sean Nelson329bde72010-01-19 16:39:19 +000015104 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015105 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015106 {64 * 1024, 13}, /* block */
15107 {4 * 1024, 16}, /* sector */
15108 {4 * 1024, 16}, /* sector */
15109 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015110 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015111 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015112 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015113 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015114 }
15115 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015116 .printlock = printlock_regspace2_block_eraser_0,
15117 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015118 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015119 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015120 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015121 },
15122
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015123 {
15124 .vendor = "ST",
15125 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015126 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015127 .manufacture_id = ST_ID,
15128 .model_id = ST_M50FLW080B,
15129 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015130 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015131 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015132 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015133 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015134 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015135 .block_erasers =
15136 {
15137 {
Sean Nelson329bde72010-01-19 16:39:19 +000015138 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015139 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015140 {4 * 1024, 16}, /* sector */
15141 {64 * 1024, 13}, /* block */
15142 {4 * 1024, 16}, /* sector */
15143 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015144 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015145 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015146 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015147 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015148 }
15149 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015150 .printlock = printlock_regspace2_block_eraser_0,
15151 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015152 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015153 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015154 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015155 },
15156
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015157 {
15158 .vendor = "ST",
15159 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015160 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015161 .manufacture_id = ST_ID,
15162 .model_id = ST_M50FW002,
15163 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000015164 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015165 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015166 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015167 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015168 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015169 .block_erasers =
15170 {
15171 {
15172 .eraseblocks = {
15173 {64 * 1024, 3},
15174 {32 * 1024, 1},
15175 {8 * 1024, 2},
15176 {16 * 1024, 1},
15177 },
Sean Nelson28accc22010-03-19 18:47:06 +000015178 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015179 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000015180 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015181 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000015182 }
15183 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015184 .printlock = printlock_regspace2_block_eraser_0,
15185 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015186 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015187 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015188 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015189 },
15190
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015191 {
15192 .vendor = "ST",
15193 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015194 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015195 .manufacture_id = ST_ID,
15196 .model_id = ST_M50FW016,
15197 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015198 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015199 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015200 .tested = TEST_UNTESTED,
15201 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015202 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015203 .block_erasers =
15204 {
15205 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015206 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000015207 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015208 }
15209 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015210 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015211 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015212 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015213 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015214 },
15215
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015216 {
15217 .vendor = "ST",
15218 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015219 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015220 .manufacture_id = ST_ID,
15221 .model_id = ST_M50FW040,
15222 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015223 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015224 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000015225 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015226 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015227 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015228 .block_erasers =
15229 {
15230 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015231 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015232 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015233 }
15234 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015235 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015236 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015237 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015238 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015239 },
15240
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015241 {
15242 .vendor = "ST",
15243 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015244 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015245 .manufacture_id = ST_ID,
15246 .model_id = ST_M50FW080,
15247 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015248 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015249 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015250 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015251 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015252 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015253 .block_erasers =
15254 {
15255 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015256 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015257 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015258 }
15259 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015260 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015261 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015262 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015263 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015264 },
15265
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015266 {
15267 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015268 .name = "M50LPW080",
15269 .bustype = BUS_LPC, /* A/A Mux */
15270 .manufacture_id = ST_ID,
15271 .model_id = ST_M50LPW080,
15272 .total_size = 1024,
15273 .page_size = 0,
15274 .feature_bits = FEATURE_REGISTERMAP,
15275 .tested = TEST_UNTESTED,
15276 .probe = probe_82802ab,
15277 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15278 .block_erasers =
15279 {
15280 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015281 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015282 .block_erase = erase_block_82802ab,
15283 }
15284 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015285 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015286 .write = write_82802ab,
15287 .read = read_memmapped,
15288 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
15289 },
15290
15291 {
15292 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015293 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015294 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015295 .manufacture_id = ST_ID,
15296 .model_id = ST_M50LPW116,
15297 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015298 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015299 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015300 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015301 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000015302 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015303 .block_erasers =
15304 {
15305 {
15306 .eraseblocks = {
15307 {4 * 1024, 16},
15308 {64 * 1024, 30},
15309 {32 * 1024, 1},
15310 {8 * 1024, 2},
15311 {16 * 1024, 1},
15312 },
Sean Nelson28accc22010-03-19 18:47:06 +000015313 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015314 }
15315 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015316 .printlock = printlock_regspace2_block_eraser_0,
15317 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015318 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015320 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015321 },
15322
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015323 {
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030015324 .vendor = "ST",
15325 .name = "M95M02",
15326 .bustype = BUS_SPI,
15327 .manufacture_id = ST_ID,
15328 .model_id = ST_M95M02,
15329 .total_size = 256,
15330 .page_size = 256,
15331 .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO,
15332 .tested = TEST_OK_PREW,
15333 .probe = probe_spi_st95,
15334 .probe_timing = TIMING_ZERO,
15335 .block_erasers =
15336 {
15337 {
15338 .eraseblocks = { {256 * 1024, 1} },
15339 .block_erase = spi_block_erase_emulation,
15340 }
15341 },
15342
15343 .printlock = spi_prettyprint_status_register_bp1_srwd,
15344 .unlock = spi_disable_blockprotect_bp1_srwd,
15345 .write = spi_chip_write_256,
15346 .read = spi_chip_read,
15347 .voltage = {2500, 5500},
15348 },
15349
15350 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100015351 .vendor = "Sanyo",
15352 .name = "LE25FU106B",
15353 .bustype = BUS_SPI,
15354 .manufacture_id = SANYO_ID,
15355 .model_id = SANYO_LE25FU106B,
15356 .total_size = 128,
15357 .page_size = 256,
15358 .feature_bits = FEATURE_WRSR_WREN,
15359 .tested = TEST_UNTESTED,
15360 .probe = probe_spi_res2,
15361 .probe_timing = TIMING_ZERO,
15362 .block_erasers =
15363 {
15364 /* FIXME: Is this correct?
15365 {
15366 .eraseblocks = { {2 * 1024, 64} },
15367 .block_erase = spi_block_erase_d7,
15368 },*/
15369 {
15370 .eraseblocks = { {32 * 1024, 4} },
15371 .block_erase = spi_block_erase_d8,
15372 }, {
15373 .eraseblocks = { {128 * 1024, 1} },
15374 .block_erase = spi_block_erase_c7,
15375 }
15376 },
15377 .printlock = spi_prettyprint_status_register_bp1_srwd,
15378 .unlock = spi_disable_blockprotect_bp1_srwd,
15379 .write = spi_chip_write_256,
15380 .read = spi_chip_read,
15381 .voltage = {2300, 3600},
15382 },
15383
15384 {
15385 .vendor = "Sanyo",
15386 .name = "LE25FU206",
15387 .bustype = BUS_SPI,
15388 .manufacture_id = SANYO_ID,
15389 .model_id = SANYO_LE25FU206,
15390 .total_size = 256,
15391 .page_size = 256,
15392 .feature_bits = FEATURE_WRSR_WREN,
15393 .tested = TEST_UNTESTED,
15394 .probe = probe_spi_res2,
15395 .probe_timing = TIMING_ZERO,
15396 .block_erasers =
15397 {
15398 {
15399 .eraseblocks = { {4 * 1024, 64} },
15400 .block_erase = spi_block_erase_d7,
15401 }, {
15402 .eraseblocks = { {64 * 1024, 4} },
15403 .block_erase = spi_block_erase_d8,
15404 }, {
15405 .eraseblocks = { {256 * 1024, 1} },
15406 .block_erase = spi_block_erase_c7,
15407 }
15408 },
15409 .printlock = spi_prettyprint_status_register_bp1_srwd,
15410 .unlock = spi_disable_blockprotect_bp1_srwd,
15411 .write = spi_chip_write_256,
15412 .read = spi_chip_read,
15413 .voltage = {2300, 3600},
15414 },
15415
15416 {
15417 .vendor = "Sanyo",
15418 .name = "LE25FU206A",
15419 .bustype = BUS_SPI,
15420 .manufacture_id = SANYO_ID,
15421 .model_id = SANYO_LE25FU206A,
15422 .total_size = 256,
15423 .page_size = 256,
15424 .tested = TEST_UNTESTED,
15425 .probe = probe_spi_rdid,
15426 .probe_timing = TIMING_ZERO,
15427 .block_erasers =
15428 {
15429 {
15430 .eraseblocks = { {4 * 1024, 64} },
15431 .block_erase = spi_block_erase_20,
15432 }, {
15433 .eraseblocks = { {4 * 1024, 64} },
15434 .block_erase = spi_block_erase_d7,
15435 }, {
15436 .eraseblocks = { {64 * 1024, 4} },
15437 .block_erase = spi_block_erase_d8,
15438 }, {
15439 .eraseblocks = { {256 * 1024, 1} },
15440 .block_erase = spi_block_erase_60,
15441 }, {
15442 .eraseblocks = { {256 * 1024, 1} },
15443 .block_erase = spi_block_erase_c7,
15444 }
15445 },
15446 .printlock = spi_prettyprint_status_register_bp2_srwd,
15447 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15448 .write = spi_chip_write_256,
15449 .read = spi_chip_read,
15450 .voltage = {2300, 3600},
15451 },
15452
15453 {
15454 .vendor = "Sanyo",
15455 .name = "LE25FU406B",
15456 .bustype = BUS_SPI,
15457 .manufacture_id = SANYO_ID,
15458 .model_id = SANYO_LE25FU406B,
15459 .total_size = 512,
15460 .page_size = 256,
15461 .feature_bits = FEATURE_WRSR_WREN,
15462 .tested = TEST_OK_PREW,
15463 .probe = probe_spi_res2,
15464 .probe_timing = TIMING_ZERO,
15465 .block_erasers =
15466 {
15467 {
15468 .eraseblocks = { {4 * 1024, 128} },
15469 .block_erase = spi_block_erase_d7,
15470 }, {
15471 .eraseblocks = { {64 * 1024, 8} },
15472 .block_erase = spi_block_erase_d8,
15473 }, {
15474 .eraseblocks = { {512 * 1024, 1} },
15475 .block_erase = spi_block_erase_c7,
15476 }
15477 },
15478 .printlock = spi_prettyprint_status_register_bp2_srwd,
15479 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15480 .write = spi_chip_write_256,
15481 .read = spi_chip_read,
15482 .voltage = {2300, 3600},
15483 },
15484
15485 {
15486 .vendor = "Sanyo",
15487 .name = "LE25FU406C/LE25U40CMC",
15488 .bustype = BUS_SPI,
15489 .manufacture_id = SANYO_ID,
15490 .model_id = SANYO_LE25FU406C,
15491 .total_size = 512,
15492 .page_size = 256,
15493 .feature_bits = FEATURE_WRSR_WREN,
15494 .tested = TEST_OK_PREW,
15495 .probe = probe_spi_rdid,
15496 .probe_timing = TIMING_ZERO,
15497 .block_erasers =
15498 {
15499 {
15500 .eraseblocks = { {4 * 1024, 128} },
15501 .block_erase = spi_block_erase_20,
15502 }, {
15503 .eraseblocks = { {4 * 1024, 128} },
15504 .block_erase = spi_block_erase_d7,
15505 }, {
15506 .eraseblocks = { {64 * 1024, 8} },
15507 .block_erase = spi_block_erase_d8,
15508 }, {
15509 .eraseblocks = { {512 * 1024, 1} },
15510 .block_erase = spi_block_erase_60,
15511 }, {
15512 .eraseblocks = { {512 * 1024, 1} },
15513 .block_erase = spi_block_erase_c7,
15514 }
15515 },
15516 .printlock = spi_prettyprint_status_register_bp2_srwd,
15517 .unlock = spi_disable_blockprotect_bp2_srwd,
15518 .write = spi_chip_write_256,
15519 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
15520 .voltage = {2300, 3600},
15521 },
15522
15523 {
15524 .vendor = "Sanyo",
15525 .name = "LE25FW106",
15526 .bustype = BUS_SPI,
15527 .manufacture_id = SANYO_ID,
15528 .model_id = SANYO_LE25FW106,
15529 .total_size = 128,
15530 .page_size = 256,
15531 .feature_bits = FEATURE_WRSR_WREN,
15532 .tested = TEST_OK_PREW,
15533 .probe = probe_spi_res2,
15534 .probe_timing = TIMING_ZERO,
15535 .block_erasers =
15536 {
15537 {
15538 .eraseblocks = { {2 * 1024, 64} },
15539 .block_erase = spi_block_erase_d7,
15540 }, {
15541 .eraseblocks = { {32 * 1024, 4} },
15542 .block_erase = spi_block_erase_d8,
15543 }, {
15544 .eraseblocks = { {128 * 1024, 1} },
15545 .block_erase = spi_block_erase_c7,
15546 }
15547 },
15548 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
15549 .unlock = spi_disable_blockprotect_bp1_srwd,
15550 .write = spi_chip_write_256,
15551 .read = spi_chip_read,
15552 .voltage = {2700, 3600},
15553 },
15554
15555 {
15556 .vendor = "Sanyo",
15557 .name = "LE25FW203A",
15558 .bustype = BUS_SPI,
15559 .manufacture_id = SANYO_ID,
15560 .model_id = SANYO_LE25FW203A,
15561 .total_size = 256,
15562 .page_size = 256,
15563 .tested = TEST_UNTESTED,
15564 .probe = probe_spi_rdid,
15565 .probe_timing = TIMING_ZERO,
15566 .block_erasers =
15567 {
15568 {
15569 .eraseblocks = { {256, 1024} },
15570 .block_erase = spi_block_erase_db,
15571 }, {
15572 .eraseblocks = { {64 * 1024, 4} },
15573 .block_erase = spi_block_erase_d8,
15574 }, {
15575 .eraseblocks = { {256 * 1024, 1} },
15576 .block_erase = spi_block_erase_c7,
15577 }
15578 },
15579 .printlock = spi_prettyprint_status_register_default_welwip,
15580 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15581 .write = spi_chip_write_256,
15582 .read = spi_chip_read,
15583 .voltage = {2700, 3600},
15584 },
15585
15586 {
15587 .vendor = "Sanyo",
15588 .name = "LE25FW403A",
15589 .bustype = BUS_SPI,
15590 .manufacture_id = SANYO_ID,
15591 .model_id = SANYO_LE25FW403A,
15592 .total_size = 512,
15593 .page_size = 256,
15594 .tested = TEST_UNTESTED,
15595 .probe = probe_spi_rdid,
15596 .probe_timing = TIMING_ZERO,
15597 .block_erasers =
15598 {
15599 {
15600 .eraseblocks = { {256, 2 * 1024} },
15601 .block_erase = spi_block_erase_db,
15602 }, {
15603 .eraseblocks = { {64 * 1024, 8} },
15604 .block_erase = spi_block_erase_d8,
15605 }, {
15606 .eraseblocks = { {512 * 1024, 1} },
15607 .block_erase = spi_block_erase_c7,
15608 }
15609 },
15610 .printlock = spi_prettyprint_status_register_default_welwip,
15611 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15612 .write = spi_chip_write_256,
15613 .read = spi_chip_read,
15614 .voltage = {2700, 3600},
15615 },
15616
15617 {
15618 .vendor = "Sanyo",
15619 .name = "LE25FW406A",
15620 .bustype = BUS_SPI,
15621 .manufacture_id = SANYO_ID,
15622 .model_id = SANYO_LE25FW406A,
15623 .total_size = 512,
15624 .page_size = 256,
15625 .feature_bits = FEATURE_WRSR_WREN,
15626 .tested = TEST_OK_PREW,
15627 .probe = probe_spi_res2,
15628 .probe_timing = TIMING_ZERO,
15629 .block_erasers =
15630 {
15631 {
15632 .eraseblocks = { {4 * 1024, 128} },
15633 .block_erase = spi_block_erase_d7,
15634 }, {
15635 .eraseblocks = { {64 * 1024, 8} },
15636 .block_erase = spi_block_erase_d8,
15637 }, {
15638 .eraseblocks = { {512 * 1024, 1} },
15639 .block_erase = spi_block_erase_c7,
15640 }
15641 },
15642 .printlock = spi_prettyprint_status_register_plain,
15643 .unlock = spi_disable_blockprotect,
15644 .write = spi_chip_write_256,
15645 .read = spi_chip_read,
15646 .voltage = {2700, 3600},
15647 },
15648
15649 {
15650 .vendor = "Sanyo",
15651 .name = "LE25FW418A",
15652 .bustype = BUS_SPI,
15653 .manufacture_id = SANYO_ID,
15654 .model_id = SANYO_LE25FW418A,
15655 .total_size = 512,
15656 .page_size = 256,
15657 .feature_bits = FEATURE_WRSR_WREN,
15658 .tested = TEST_UNTESTED,
15659 .probe = probe_spi_res2,
15660 .probe_timing = TIMING_ZERO,
15661 .block_erasers =
15662 {
15663 {
15664 .eraseblocks = { {4 * 1024, 128} },
15665 .block_erase = spi_block_erase_d7,
15666 }, {
15667 .eraseblocks = { {64 * 1024, 8} },
15668 .block_erase = spi_block_erase_d8,
15669 }, {
15670 .eraseblocks = { {512 * 1024, 1} },
15671 .block_erase = spi_block_erase_c7,
15672 }
15673 },
15674 .printlock = spi_prettyprint_status_register_bp2_srwd,
15675 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15676 .write = spi_chip_write_256,
15677 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15678 .voltage = {2700, 3600},
15679 },
15680
15681 {
15682 .vendor = "Sanyo",
15683 .name = "LE25FW806",
15684 .bustype = BUS_SPI,
15685 .manufacture_id = SANYO_ID,
15686 .model_id = SANYO_LE25FW806,
15687 .total_size = 1024,
15688 .page_size = 256,
15689 .feature_bits = FEATURE_WRSR_WREN,
15690 .tested = TEST_UNTESTED,
15691 .probe = probe_spi_res2,
15692 .probe_timing = TIMING_ZERO,
15693 .block_erasers =
15694 {
15695 {
15696 .eraseblocks = { {4 * 1024, 256} },
15697 .block_erase = spi_block_erase_20,
15698 }, {
15699 .eraseblocks = { {4 * 1024, 256} },
15700 .block_erase = spi_block_erase_d7,
15701 }, {
15702 .eraseblocks = { {64 * 1024, 16} },
15703 .block_erase = spi_block_erase_d8,
15704 }, {
15705 .eraseblocks = { {1024 * 1024, 1} },
15706 .block_erase = spi_block_erase_c7,
15707 }
15708 },
15709 .printlock = spi_prettyprint_status_register_bp2_srwd,
15710 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15711 .write = spi_chip_write_256,
15712 .read = spi_chip_read,
15713 .voltage = {2700, 3600},
15714 },
15715
15716 {
15717 .vendor = "Sanyo",
15718 .name = "LE25FW808",
15719 .bustype = BUS_SPI,
15720 .manufacture_id = SANYO_ID,
15721 .model_id = SANYO_LE25FW808,
15722 .total_size = 1024,
15723 .page_size = 256,
15724 .feature_bits = FEATURE_WRSR_WREN,
15725 .tested = TEST_UNTESTED,
15726 .probe = probe_spi_res2,
15727 .probe_timing = TIMING_ZERO,
15728 .block_erasers =
15729 {
15730 {
15731 .eraseblocks = { {8 * 1024, 128} },
15732 .block_erase = spi_block_erase_d7,
15733 }, {
15734 .eraseblocks = { {64 * 1024, 16} },
15735 .block_erase = spi_block_erase_d8,
15736 }, {
15737 .eraseblocks = { {1024 * 1024, 1} },
15738 .block_erase = spi_block_erase_c7,
15739 }
15740 },
15741 .printlock = spi_prettyprint_status_register_bp2_srwd,
15742 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15743 .write = spi_chip_write_256,
15744 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15745 .voltage = {2700, 3600},
15746 },
15747
15748 {
15749 .vendor = "Sharp",
15750 .name = "LH28F008BJT-BTLZ1",
15751 .bustype = BUS_PARALLEL,
15752 .manufacture_id = SHARP_ID,
15753 .model_id = SHARP_LH28F008BJ__PB,
15754 .total_size = 1024,
15755 .page_size = 64 * 1024,
15756 .tested = TEST_OK_PREW,
15757 .probe = probe_82802ab,
15758 .probe_timing = TIMING_ZERO,
15759 .block_erasers =
15760 {
15761 {
15762 .eraseblocks = {
15763 {8 * 1024, 8},
15764 {64 * 1024, 15}
15765 },
15766 .block_erase = erase_block_82802ab,
15767 }, {
15768 .eraseblocks = { {1024 * 1024, 1} },
15769 .block_erase = erase_sector_49lfxxxc,
15770 }
15771 },
15772 .unlock = unlock_lh28f008bjt,
15773 .write = write_82802ab,
15774 .read = read_memmapped,
15775 .voltage = {2700, 3600},
15776 },
15777
15778 {
15779 .vendor = "Sharp",
15780 .name = "LHF00L04",
15781 .bustype = BUS_FWH, /* A/A Mux */
15782 .manufacture_id = SHARP_ID,
15783 .model_id = SHARP_LHF00L04,
15784 .total_size = 1024,
15785 .page_size = 64 * 1024,
15786 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
15787 .tested = TEST_UNTESTED,
15788 .probe = probe_82802ab,
15789 .probe_timing = TIMING_ZERO,
15790 .block_erasers =
15791 {
15792 {
15793 .eraseblocks = {
15794 {64 * 1024, 15},
15795 {8 * 1024, 8}
15796 },
15797 .block_erase = erase_block_82802ab,
15798 }, {
15799 .eraseblocks = {
15800 {1024 * 1024, 1}
15801 },
15802 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
15803 },
15804 },
15805 .unlock = unlock_regspace2_uniform_64k,
15806 .write = write_82802ab,
15807 .read = read_memmapped,
15808 .voltage = {3000, 3600},
15809 },
15810
15811 {
15812 .vendor = "Spansion",
15813 .name = "S25FL004A",
15814 .bustype = BUS_SPI,
15815 .manufacture_id = SPANSION_ID,
15816 .model_id = SPANSION_S25FL004A,
15817 .total_size = 512,
15818 .page_size = 256,
15819 .feature_bits = FEATURE_WRSR_WREN,
15820 .tested = TEST_UNTESTED,
15821 .probe = probe_spi_rdid,
15822 .probe_timing = TIMING_ZERO,
15823 .block_erasers =
15824 {
15825 {
15826 .eraseblocks = { {64 * 1024, 8} },
15827 .block_erase = spi_block_erase_d8,
15828 }, {
15829 .eraseblocks = { {512 * 1024, 1} },
15830 .block_erase = spi_block_erase_c7,
15831 }
15832 },
15833 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15834 .unlock = spi_disable_blockprotect,
15835 .write = spi_chip_write_256,
15836 .read = spi_chip_read,
15837 .voltage = {2700, 3600},
15838 },
15839
15840 {
15841 .vendor = "Spansion",
15842 .name = "S25FL008A",
15843 .bustype = BUS_SPI,
15844 .manufacture_id = SPANSION_ID,
15845 .model_id = SPANSION_S25FL008A,
15846 .total_size = 1024,
15847 .page_size = 256,
15848 .feature_bits = FEATURE_WRSR_WREN,
15849 .tested = TEST_OK_PRE,
15850 .probe = probe_spi_rdid,
15851 .probe_timing = TIMING_ZERO,
15852 .block_erasers =
15853 {
15854 {
15855 .eraseblocks = { {64 * 1024, 16} },
15856 .block_erase = spi_block_erase_d8,
15857 }, {
15858 .eraseblocks = { {1024 * 1024, 1} },
15859 .block_erase = spi_block_erase_c7,
15860 }
15861 },
15862 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15863 .unlock = spi_disable_blockprotect,
15864 .write = spi_chip_write_256,
15865 .read = spi_chip_read,
15866 .voltage = {2700, 3600},
15867 },
15868
15869 {
15870 .vendor = "Spansion",
15871 .name = "S25FL016A",
15872 .bustype = BUS_SPI,
15873 .manufacture_id = SPANSION_ID,
15874 .model_id = SPANSION_S25FL016A,
15875 .total_size = 2048,
15876 .page_size = 256,
15877 .feature_bits = FEATURE_WRSR_WREN,
15878 .tested = TEST_OK_PREW,
15879 .probe = probe_spi_rdid,
15880 .probe_timing = TIMING_ZERO,
15881 .block_erasers =
15882 {
15883 {
15884 .eraseblocks = { {64 * 1024, 32} },
15885 .block_erase = spi_block_erase_d8,
15886 }, {
15887 .eraseblocks = { {2 * 1024 * 1024, 1} },
15888 .block_erase = spi_block_erase_c7,
15889 }
15890 },
15891 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15892 .unlock = spi_disable_blockprotect,
15893 .write = spi_chip_write_256,
15894 .read = spi_chip_read,
15895 .voltage = {2700, 3600},
15896 },
15897
15898 {
15899 .vendor = "Spansion",
15900 .name = "S25FL032A/P",
15901 .bustype = BUS_SPI,
15902 .manufacture_id = SPANSION_ID,
15903 .model_id = SPANSION_S25FL032A,
15904 .total_size = 4096,
15905 .page_size = 256,
15906 .feature_bits = FEATURE_WRSR_WREN,
15907 .tested = TEST_OK_PREW,
15908 .probe = probe_spi_rdid,
15909 .probe_timing = TIMING_ZERO,
15910 .block_erasers =
15911 {
15912 {
15913 .eraseblocks = { {64 * 1024, 64} },
15914 .block_erase = spi_block_erase_d8,
15915 }, {
15916 .eraseblocks = { {4 * 1024 * 1024, 1} },
15917 .block_erase = spi_block_erase_c7,
15918 }
15919 },
15920 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15921 .unlock = spi_disable_blockprotect,
15922 .write = spi_chip_write_256,
15923 .read = spi_chip_read,
15924 .voltage = {2700, 3600},
15925 },
15926
15927 {
15928 .vendor = "Spansion",
15929 .name = "S25FL064A/P",
15930 .bustype = BUS_SPI,
15931 .manufacture_id = SPANSION_ID,
15932 .model_id = SPANSION_S25FL064A,
15933 .total_size = 8192,
15934 .page_size = 256,
15935 .feature_bits = FEATURE_WRSR_WREN,
15936 .tested = TEST_OK_PREW,
15937 .probe = probe_spi_rdid,
15938 .probe_timing = TIMING_ZERO,
15939 .block_erasers =
15940 {
15941 {
15942 .eraseblocks = { {64 * 1024, 128} },
15943 .block_erase = spi_block_erase_d8,
15944 }, {
15945 .eraseblocks = { {8 * 1024 * 1024, 1} },
15946 .block_erase = spi_block_erase_c7,
15947 }
15948 },
15949 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15950 .unlock = spi_disable_blockprotect,
15951 .write = spi_chip_write_256,
15952 .read = spi_chip_read,
15953 .voltage = {2700, 3600},
15954 },
15955
15956 {
15957 .vendor = "Spansion",
15958 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
15959 .bustype = BUS_SPI,
15960 .manufacture_id = SPANSION_ID,
15961 .model_id = SPANSION_S25FL216,
15962 .total_size = 2048,
15963 .page_size = 256,
15964 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
15965 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15966 .tested = TEST_UNTESTED,
15967 .probe = probe_spi_rdid,
15968 .probe_timing = TIMING_ZERO,
15969 .block_erasers =
15970 {
15971 {
15972 .eraseblocks = { {4 * 1024, 512} },
15973 .block_erase = spi_block_erase_20,
15974 }, {
15975 .eraseblocks = { {64 * 1024, 32} },
15976 .block_erase = spi_block_erase_d8,
15977 }, {
15978 .eraseblocks = { { 2048 * 1024, 1} },
15979 .block_erase = spi_block_erase_60,
15980 }, {
15981 .eraseblocks = { { 2048 * 1024, 1} },
15982 .block_erase = spi_block_erase_c7,
15983 }
15984 },
15985 .printlock = spi_prettyprint_status_register_bp3_srwd,
15986 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
15987 .write = spi_chip_write_256,
15988 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
15989 .voltage = {2700, 3600},
15990 },
15991
15992 {
15993 .vendor = "Spansion",
15994 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
15995 .bustype = BUS_SPI,
15996 .manufacture_id = SPANSION_ID,
15997 .model_id = SPANSION_S25FL128,
15998 .total_size = 16384,
15999 .page_size = 512,
16000 /* supports 4B addressing */
16001 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16002 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16003 .tested = TEST_UNTESTED,
16004 .probe = probe_spi_rdid,
16005 .probe_timing = TIMING_ZERO,
16006 .block_erasers =
16007 {
16008 {
16009 .eraseblocks = { {256 * 1024, 64} },
16010 .block_erase = spi_block_erase_d8,
16011 }, {
16012 .eraseblocks = { { 16384 * 1024, 1} },
16013 .block_erase = spi_block_erase_60,
16014 }, {
16015 .eraseblocks = { { 16384 * 1024, 1} },
16016 .block_erase = spi_block_erase_c7,
16017 }
16018 },
16019 .printlock = spi_prettyprint_status_register_bp2_srwd,
16020 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16021 .write = spi_chip_write_256, /* Multi I/O supported */
16022 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16023 .voltage = {2700, 3600},
16024 },
16025
16026 {
16027 .vendor = "Spansion",
16028 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16029 .bustype = BUS_SPI,
16030 .manufacture_id = SPANSION_ID,
16031 .model_id = SPANSION_S25FL128,
16032 .total_size = 16384,
16033 .page_size = 256,
16034 /* supports 4B addressing */
16035 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16036 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16037 .tested = TEST_OK_PREW,
16038 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
16039 .probe = probe_spi_rdid,
16040 .probe_timing = TIMING_ZERO,
16041 .block_erasers =
16042 {
16043 {
16044 /* This chip supports erasing of 32 so-called "parameter sectors" with
16045 * opcode 0x20 which may be configured to be on top or bottom of the address
16046 * space. Trying to access an address outside these 4kB blocks does have no
16047 * effect on the memory contents, e.g.
16048 .eraseblocks = {
16049 {4 * 1024, 32},
16050 {64 * 1024, 254} // inaccessible
16051 },
16052 .block_erase = spi_block_erase_20,
16053 }, { */
16054 .eraseblocks = { { 64 * 1024, 256} },
16055 .block_erase = spi_block_erase_d8,
16056 }, {
16057 .eraseblocks = { { 16384 * 1024, 1} },
16058 .block_erase = spi_block_erase_60,
16059 }, {
16060 .eraseblocks = { { 16384 * 1024, 1} },
16061 .block_erase = spi_block_erase_c7,
16062 }
16063 },
16064 .printlock = spi_prettyprint_status_register_bp2_srwd,
16065 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16066 .write = spi_chip_write_256, /* Multi I/O supported */
16067 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16068 .voltage = {2700, 3600},
16069 },
16070
16071 {
16072 .vendor = "Spansion",
16073 .name = "S25FL128P......0", /* uniform 64 kB sectors */
16074 .bustype = BUS_SPI,
16075 .manufacture_id = SPANSION_ID,
16076 .model_id = SPANSION_S25FL128,
16077 .total_size = 16384,
16078 .page_size = 256,
16079 .feature_bits = FEATURE_WRSR_WREN,
16080 .tested = TEST_OK_PREW,
16081 .probe = probe_spi_rdid,
16082 .probe_timing = TIMING_ZERO,
16083 .block_erasers =
16084 {
16085 {
16086 .eraseblocks = { {64 * 1024, 256} },
16087 .block_erase = spi_block_erase_20,
16088 }, {
16089 .eraseblocks = { {64 * 1024, 256} },
16090 .block_erase = spi_block_erase_d8,
16091 }, {
16092 .eraseblocks = { { 16384 * 1024, 1} },
16093 .block_erase = spi_block_erase_60,
16094 }, {
16095 .eraseblocks = { { 16384 * 1024, 1} },
16096 .block_erase = spi_block_erase_c7,
16097 }
16098 },
16099 .printlock = spi_prettyprint_status_register_bp3_srwd,
16100 .unlock = spi_disable_blockprotect_bp3_srwd,
16101 .write = spi_chip_write_256,
16102 .read = spi_chip_read, /* Fast read (0x0B) supported */
16103 .voltage = {2700, 3600},
16104 },
16105
16106 {
16107 .vendor = "Spansion",
16108 .name = "S25FL128P......1", /* uniform 256kB sectors */
16109 .bustype = BUS_SPI,
16110 .manufacture_id = SPANSION_ID,
16111 .model_id = SPANSION_S25FL128,
16112 .total_size = 16384,
16113 .page_size = 256,
16114 .feature_bits = FEATURE_WRSR_WREN,
16115 .tested = TEST_UNTESTED,
16116 .probe = probe_spi_rdid,
16117 .probe_timing = TIMING_ZERO,
16118 .block_erasers =
16119 {
16120 {
16121 .eraseblocks = { {256 * 1024, 64} },
16122 .block_erase = spi_block_erase_d8,
16123 }, {
16124 .eraseblocks = { { 16384 * 1024, 1} },
16125 .block_erase = spi_block_erase_c7,
16126 }
16127 },
16128 .printlock = spi_prettyprint_status_register_bp2_srwd,
16129 .unlock = spi_disable_blockprotect_bp2_srwd,
16130 .write = spi_chip_write_256,
16131 .read = spi_chip_read, /* Fast read (0x0B) supported */
16132 .voltage = {2700, 3600},
16133 },
16134
16135 {
16136 .vendor = "Spansion",
16137 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16138 .bustype = BUS_SPI,
16139 .manufacture_id = SPANSION_ID,
16140 .model_id = SPANSION_S25FL128,
16141 .total_size = 16384,
16142 .page_size = 256,
16143 /* supports 4B addressing */
16144 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16145 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16146 .tested = TEST_OK_PREW,
16147 .probe = probe_spi_rdid,
16148 .probe_timing = TIMING_ZERO,
16149 .block_erasers =
16150 {
16151 {
16152 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16153 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16154 * have no effect on the memory contents, but sets a flag in the SR.
16155 .eraseblocks = {
16156 {4 * 1024, 32},
16157 {64 * 1024, 254} // inaccessible
16158 },
16159 .block_erase = spi_block_erase_20,
16160 }, { */
16161 .eraseblocks = { { 64 * 1024, 256} },
16162 .block_erase = spi_block_erase_d8,
16163 }, {
16164 .eraseblocks = { { 16384 * 1024, 1} },
16165 .block_erase = spi_block_erase_60,
16166 }, {
16167 .eraseblocks = { { 16384 * 1024, 1} },
16168 .block_erase = spi_block_erase_c7,
16169 }
16170 },
16171 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16172 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16173 .write = spi_chip_write_256, /* Multi I/O supported */
16174 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16175 .voltage = {2700, 3600},
16176 },
16177
16178 {
16179 .vendor = "Spansion",
16180 .name = "S25FL128S......1", /* uniform 256 kB sectors */
16181 .bustype = BUS_SPI,
16182 .manufacture_id = SPANSION_ID,
16183 .model_id = SPANSION_S25FL128,
16184 .total_size = 16384,
16185 .page_size = 512,
16186 /* supports 4B addressing */
16187 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16188 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16189 .tested = TEST_UNTESTED,
16190 .probe = probe_spi_rdid,
16191 .probe_timing = TIMING_ZERO,
16192 .block_erasers =
16193 {
16194 {
16195 .eraseblocks = { {256 * 1024, 64} },
16196 .block_erase = spi_block_erase_d8,
16197 }, {
16198 .eraseblocks = { { 16384 * 1024, 1} },
16199 .block_erase = spi_block_erase_60,
16200 }, {
16201 .eraseblocks = { { 16384 * 1024, 1} },
16202 .block_erase = spi_block_erase_c7,
16203 }
16204 },
16205 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16206 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16207 .write = spi_chip_write_256, /* Multi I/O supported */
16208 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16209 .voltage = {2700, 3600},
16210 },
16211
16212 {
16213 .vendor = "Spansion",
16214 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16215 .bustype = BUS_SPI,
16216 .manufacture_id = SPANSION_ID,
16217 .model_id = SPANSION_S25FL128,
16218 .total_size = 16384,
16219 .page_size = 256,
16220 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16221 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16222 .tested = TEST_OK_PREW,
16223 .probe = probe_spi_rdid,
16224 .probe_timing = TIMING_ZERO,
16225 .block_erasers =
16226 {
16227 {
16228 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
16229 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
16230 * effect on the memory contents, but sets a flag in the SR.
16231 .eraseblocks = {
16232 {4 * 1024, 32},
16233 {64 * 1024, 254} // inaccessible
16234 },
16235 .block_erase = spi_block_erase_20,
16236 }, { */
16237 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
16238 .eraseblocks = {
16239 {8 * 1024, 16},
16240 {64 * 1024, 254} // inaccessible
16241 },
16242 .block_erase = spi_block_erase_40,
16243 }, { */
16244 .eraseblocks = { { 64 * 1024, 256} },
16245 .block_erase = spi_block_erase_d8,
16246 }, {
16247 .eraseblocks = { { 16384 * 1024, 1} },
16248 .block_erase = spi_block_erase_60,
16249 }, {
16250 .eraseblocks = { { 16384 * 1024, 1} },
16251 .block_erase = spi_block_erase_c7,
16252 }
16253 },
16254 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16255 .unlock = spi_disable_blockprotect_bp2_srwd,
16256 .write = spi_chip_write_256, /* Multi I/O supported */
16257 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16258 .voltage = {2700, 3600},
16259 },
16260
16261 {
16262 .vendor = "Spansion",
16263 .name = "S25FL129P......1", /* uniform 256 kB sectors */
16264 .bustype = BUS_SPI,
16265 .manufacture_id = SPANSION_ID,
16266 .model_id = SPANSION_S25FL128,
16267 .total_size = 16384,
16268 .page_size = 256,
16269 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16270 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16271 .tested = TEST_UNTESTED,
16272 .probe = probe_spi_rdid,
16273 .probe_timing = TIMING_ZERO,
16274 .block_erasers =
16275 {
16276 {
16277 .eraseblocks = { {256 * 1024, 64} },
16278 .block_erase = spi_block_erase_d8,
16279 }, {
16280 .eraseblocks = { { 16384 * 1024, 1} },
16281 .block_erase = spi_block_erase_60,
16282 }, {
16283 .eraseblocks = { { 16384 * 1024, 1} },
16284 .block_erase = spi_block_erase_c7,
16285 }
16286 },
16287 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16288 .unlock = spi_disable_blockprotect_bp2_srwd,
16289 .write = spi_chip_write_256, /* Multi I/O supported */
16290 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16291 .voltage = {2700, 3600},
16292 },
16293
16294 {
16295 .vendor = "Spansion",
16296 .name = "S25FL132K",
16297 .bustype = BUS_SPI,
16298 .manufacture_id = SPANSION_ID,
16299 .model_id = SPANSION_S25FL132K,
16300 .total_size = 4096,
16301 .page_size = 256,
16302 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16303 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16304 .tested = TEST_UNTESTED,
16305 .probe = probe_spi_rdid,
16306 .probe_timing = TIMING_ZERO,
16307 .block_erasers =
16308 {
16309 {
16310 .eraseblocks = { {4 * 1024, 1024} },
16311 .block_erase = spi_block_erase_20,
16312 }, {
16313 .eraseblocks = { {64 * 1024, 64} },
16314 .block_erase = spi_block_erase_d8,
16315 }, {
16316 .eraseblocks = { { 4096 * 1024, 1} },
16317 .block_erase = spi_block_erase_60,
16318 }, {
16319 .eraseblocks = { { 4096 * 1024, 1} },
16320 .block_erase = spi_block_erase_c7,
16321 }
16322 },
16323 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16324 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16325 .write = spi_chip_write_256,
16326 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16327 .voltage = {2700, 3600},
16328 },
16329
16330 {
16331 .vendor = "Spansion",
16332 .name = "S25FL164K",
16333 .bustype = BUS_SPI,
16334 .manufacture_id = SPANSION_ID,
16335 .model_id = SPANSION_S25FL164K,
16336 .total_size = 8192,
16337 .page_size = 256,
16338 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16339 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16340 .tested = TEST_OK_PREW,
16341 .probe = probe_spi_rdid,
16342 .probe_timing = TIMING_ZERO,
16343 .block_erasers =
16344 {
16345 {
16346 .eraseblocks = { {4 * 1024, 2048} },
16347 .block_erase = spi_block_erase_20,
16348 }, {
16349 .eraseblocks = { {64 * 1024, 128} },
16350 .block_erase = spi_block_erase_d8,
16351 }, {
16352 .eraseblocks = { { 8192 * 1024, 1} },
16353 .block_erase = spi_block_erase_60,
16354 }, {
16355 .eraseblocks = { { 8192 * 1024, 1} },
16356 .block_erase = spi_block_erase_c7,
16357 }
16358 },
16359 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16360 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16361 .write = spi_chip_write_256,
16362 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16363 .voltage = {2700, 3600},
16364 },
16365
16366 {
16367 .vendor = "Spansion",
16368 .name = "S25FL204K",
16369 .bustype = BUS_SPI,
16370 .manufacture_id = SPANSION_ID,
16371 .model_id = SPANSION_S25FL204,
16372 .total_size = 512,
16373 .page_size = 256,
16374 .feature_bits = FEATURE_WRSR_WREN,
16375 .tested = TEST_OK_PR,
16376 .probe = probe_spi_rdid,
16377 .probe_timing = TIMING_ZERO,
16378 .block_erasers =
16379 {
16380 {
16381 .eraseblocks = { {4 * 1024, 128} },
16382 .block_erase = spi_block_erase_20,
16383 }, {
16384 .eraseblocks = { {64 * 1024, 8} },
16385 .block_erase = spi_block_erase_d8,
16386 }, {
16387 .eraseblocks = { { 512 * 1024, 1} },
16388 .block_erase = spi_block_erase_60,
16389 }, {
16390 .eraseblocks = { { 512 * 1024, 1} },
16391 .block_erase = spi_block_erase_c7,
16392 }
16393 },
16394 .printlock = spi_prettyprint_status_register_bp3_srwd,
16395 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16396 .write = spi_chip_write_256,
16397 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16398 .voltage = {2700, 3600},
16399 },
16400
16401 {
16402 .vendor = "Spansion",
16403 .name = "S25FL208K",
16404 .bustype = BUS_SPI,
16405 .manufacture_id = SPANSION_ID,
16406 .model_id = SPANSION_S25FL208,
16407 .total_size = 1024,
16408 .page_size = 256,
16409 .feature_bits = FEATURE_WRSR_WREN,
16410 .tested = TEST_OK_PREW,
16411 .probe = probe_spi_rdid,
16412 .probe_timing = TIMING_ZERO,
16413 .block_erasers =
16414 {
16415 {
16416 .eraseblocks = { {4 * 1024, 256} },
16417 .block_erase = spi_block_erase_20,
16418 }, {
16419 .eraseblocks = { {64 * 1024, 16} },
16420 .block_erase = spi_block_erase_d8,
16421 }, {
16422 .eraseblocks = { { 1024 * 1024, 1} },
16423 .block_erase = spi_block_erase_60,
16424 }, {
16425 .eraseblocks = { { 1024 * 1024, 1} },
16426 .block_erase = spi_block_erase_c7,
16427 }
16428 },
16429 .printlock = spi_prettyprint_status_register_bp3_srwd,
16430 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16431 .write = spi_chip_write_256,
16432 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16433 .voltage = {2700, 3600},
16434 },
16435
16436 {
16437 .vendor = "Spansion",
16438 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16439 .bustype = BUS_SPI,
16440 .manufacture_id = SPANSION_ID,
16441 .model_id = SPANSION_S25FL256,
16442 .total_size = 32768,
16443 .page_size = 256,
16444 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16445 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_EAR7,
16446 .tested = TEST_OK_PREW,
16447 .probe = probe_spi_rdid,
16448 .probe_timing = TIMING_ZERO,
16449 .block_erasers =
16450 {
16451 {
16452 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16453 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16454 * have no effect on the memory contents, but sets a flag in the SR.
16455 .eraseblocks = {
16456 {4 * 1024, 32},
16457 {64 * 1024, 254} // inaccessible
16458 },
16459 .block_erase = spi_block_erase_20,
16460 }, { */
16461 .eraseblocks = { { 64 * 1024, 512} },
16462 .block_erase = spi_block_erase_dc,
16463 }, {
16464 .eraseblocks = { { 64 * 1024, 512} },
16465 .block_erase = spi_block_erase_d8,
16466 }, {
16467 .eraseblocks = { { 32768 * 1024, 1} },
16468 .block_erase = spi_block_erase_60,
16469 }, {
16470 .eraseblocks = { { 32768 * 1024, 1} },
16471 .block_erase = spi_block_erase_c7,
16472 }
16473 },
16474 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16475 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16476 .write = spi_chip_write_256, /* Multi I/O supported */
16477 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16478 .voltage = {2700, 3600},
16479 .wrea_override = 0x17,
16480 },
16481
16482 {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016483 .vendor = "Spansion",
16484 .name = "S25FL512S",
16485 .bustype = BUS_SPI,
16486 .manufacture_id = SPANSION_ID,
16487 .model_id = SPANSION_S25FL512,
16488 .total_size = 65536, /* 512 Mb (=> 64 MB)) */
16489 .page_size = 256,
16490 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16491 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_NATIVE,
16492 .tested = TEST_OK_PREW,
16493 .probe = probe_spi_rdid,
16494 .probe_timing = TIMING_ZERO,
16495 .block_erasers =
16496 {
16497 {
16498 .eraseblocks = { { 256 * 1024, 256} },
16499 .block_erase = spi_block_erase_dc,
16500 }, {
16501 .eraseblocks = { { 65536 * 1024, 1} },
16502 .block_erase = spi_block_erase_60,
16503 }, {
16504 .eraseblocks = { { 65536 * 1024, 1} },
16505 .block_erase = spi_block_erase_c7,
16506 }
16507 },
16508 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16509 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16510 .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */
16511 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16512 .voltage = {2700, 3600},
16513 },
16514
16515 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016516 .vendor = "SyncMOS/MoselVitelic",
16517 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016518 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016519 .manufacture_id = SYNCMOS_MVC_ID,
16520 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016521 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016522 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016523 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016524 .tested = TEST_UNTESTED,
16525 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016526 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016527 .block_erasers =
16528 {
16529 {
16530 .eraseblocks = { {512, 256} },
16531 .block_erase = erase_sector_jedec,
16532 }, {
16533 .eraseblocks = { {128 * 1024, 1} },
16534 .block_erase = erase_chip_block_jedec,
16535 },
16536 },
Sean Nelson35727f72010-01-28 23:55:12 +000016537 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016538 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016539 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016540 },
16541
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016542 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016543 .vendor = "SyncMOS/MoselVitelic",
16544 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016545 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016546 .manufacture_id = SYNCMOS_MVC_ID,
16547 .model_id = SM_MVC_29C51001T,
16548 .total_size = 128,
16549 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016550 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016551 .tested = TEST_UNTESTED,
16552 .probe = probe_jedec,
16553 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16554 .block_erasers =
16555 {
16556 {
16557 .eraseblocks = { {512, 256} },
16558 .block_erase = erase_sector_jedec,
16559 }, {
16560 .eraseblocks = { {128 * 1024, 1} },
16561 .block_erase = erase_chip_block_jedec,
16562 },
16563 },
16564 .write = write_jedec_1,
16565 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016566 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016567 },
16568
16569 {
16570 .vendor = "SyncMOS/MoselVitelic",
16571 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016572 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016573 .manufacture_id = SYNCMOS_MVC_ID,
16574 .model_id = SM_MVC_29C51002B,
16575 .total_size = 256,
16576 .page_size = 512,
16577 .feature_bits = FEATURE_EITHER_RESET,
16578 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016579 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016580 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016581 .block_erasers =
16582 {
16583 {
16584 .eraseblocks = { {512, 512} },
16585 .block_erase = erase_sector_jedec,
16586 }, {
16587 .eraseblocks = { {256 * 1024, 1} },
16588 .block_erase = erase_chip_block_jedec,
16589 },
16590 },
Sean Nelson35727f72010-01-28 23:55:12 +000016591 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016592 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000016593 },
16594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016595 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016596 .vendor = "SyncMOS/MoselVitelic",
16597 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016598 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016599 .manufacture_id = SYNCMOS_MVC_ID,
16600 .model_id = SM_MVC_29C51002T,
16601 .total_size = 256,
16602 .page_size = 512,
16603 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016604 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016605 .probe = probe_jedec,
16606 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16607 .block_erasers =
16608 {
16609 {
16610 .eraseblocks = { {512, 512} },
16611 .block_erase = erase_sector_jedec,
16612 }, {
16613 .eraseblocks = { {256 * 1024, 1} },
16614 .block_erase = erase_chip_block_jedec,
16615 },
16616 },
16617 .write = write_jedec_1,
16618 .read = read_memmapped,
16619 },
16620
16621 {
16622 .vendor = "SyncMOS/MoselVitelic",
16623 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016624 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016625 .manufacture_id = SYNCMOS_MVC_ID,
16626 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016627 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016628 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016629 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016630 .tested = TEST_UNTESTED,
16631 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016632 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000016633 .block_erasers =
16634 {
16635 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016636 .eraseblocks = { {1024, 512} },
16637 .block_erase = erase_sector_jedec,
16638 }, {
16639 .eraseblocks = { {512 * 1024, 1} },
16640 .block_erase = erase_chip_block_jedec,
16641 },
16642 },
16643 .write = write_jedec_1,
16644 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016645 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016646 },
16647
16648 {
16649 .vendor = "SyncMOS/MoselVitelic",
16650 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016651 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016652 .manufacture_id = SYNCMOS_MVC_ID,
16653 .model_id = SM_MVC_29C51004T,
16654 .total_size = 512,
16655 .page_size = 1024,
16656 .feature_bits = FEATURE_EITHER_RESET,
16657 .tested = TEST_UNTESTED,
16658 .probe = probe_jedec,
16659 .probe_timing = TIMING_ZERO,
16660 .block_erasers =
16661 {
16662 {
16663 .eraseblocks = { {1024, 512} },
16664 .block_erase = erase_sector_jedec,
16665 }, {
16666 .eraseblocks = { {512 * 1024, 1} },
16667 .block_erase = erase_chip_block_jedec,
16668 },
16669 },
16670 .write = write_jedec_1,
16671 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016672 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016673 },
16674
16675 {
16676 .vendor = "SyncMOS/MoselVitelic",
16677 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016678 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016679 .manufacture_id = SYNCMOS_MVC_ID,
16680 .model_id = SM_MVC_29C31004B,
16681 .total_size = 512,
16682 .page_size = 1024,
16683 .feature_bits = FEATURE_EITHER_RESET,
16684 .tested = TEST_UNTESTED,
16685 .probe = probe_jedec,
16686 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16687 .block_erasers =
16688 {
16689 {
16690 .eraseblocks = { {1024, 512} },
16691 .block_erase = erase_sector_jedec,
16692 }, {
16693 .eraseblocks = { {512 * 1024, 1} },
16694 .block_erase = erase_chip_block_jedec,
16695 },
16696 },
16697 .write = write_jedec_1,
16698 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016699 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016700 },
16701
16702 {
16703 .vendor = "SyncMOS/MoselVitelic",
16704 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016705 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016706 .manufacture_id = SYNCMOS_MVC_ID,
16707 .model_id = SM_MVC_29C31004T,
16708 .total_size = 512,
16709 .page_size = 1024,
16710 .feature_bits = FEATURE_EITHER_RESET,
16711 .tested = TEST_UNTESTED,
16712 .probe = probe_jedec,
16713 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16714 .block_erasers =
16715 {
16716 {
16717 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000016718 .block_erase = erase_sector_jedec,
16719 }, {
16720 .eraseblocks = { {512 * 1024, 1} },
16721 .block_erase = erase_chip_block_jedec,
16722 },
16723 },
Sean Nelson35727f72010-01-28 23:55:12 +000016724 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016725 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016726 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016727 },
16728
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016729 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016730 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016731 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016732 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016733 .manufacture_id = TI_OLD_ID,
16734 .model_id = TI_TMS29F002RB,
16735 .total_size = 256,
16736 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016737 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016738 .tested = TEST_UNTESTED,
16739 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016740 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016741 .block_erasers =
16742 {
16743 {
16744 .eraseblocks = {
16745 {16 * 1024, 1},
16746 {8 * 1024, 2},
16747 {32 * 1024, 1},
16748 {64 * 1024, 3},
16749 },
16750 .block_erase = erase_sector_jedec,
16751 }, {
16752 .eraseblocks = { {256 * 1024, 1} },
16753 .block_erase = erase_chip_block_jedec,
16754 },
16755 },
Sean Nelson35727f72010-01-28 23:55:12 +000016756 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016757 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016758 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016759 },
16760
16761 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016762 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016763 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016764 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016765 .manufacture_id = TI_OLD_ID,
16766 .model_id = TI_TMS29F002RT,
16767 .total_size = 256,
16768 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016769 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016770 .tested = TEST_UNTESTED,
16771 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016772 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016773 .block_erasers =
16774 {
16775 {
16776 .eraseblocks = {
16777 {64 * 1024, 3},
16778 {32 * 1024, 1},
16779 {8 * 1024, 2},
16780 {16 * 1024, 1},
16781 },
16782 .block_erase = erase_sector_jedec,
16783 }, {
16784 .eraseblocks = { {256 * 1024, 1} },
16785 .block_erase = erase_chip_block_jedec,
16786 },
16787 },
Sean Nelson35727f72010-01-28 23:55:12 +000016788 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016789 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016790 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016791 },
16792
16793 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016794 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016795 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016796 .bustype = BUS_SPI,
16797 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016798 .model_id = WINBOND_NEX_W25P16,
16799 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016800 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016801 .feature_bits = FEATURE_WRSR_WREN,
16802 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016803 .probe = probe_spi_rdid,
16804 .probe_timing = TIMING_ZERO,
16805 .block_erasers =
16806 {
16807 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016808 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016809 .block_erase = spi_block_erase_d8,
16810 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016811 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016812 .block_erase = spi_block_erase_c7,
16813 }
16814 },
16815 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16816 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016817 .write = spi_chip_write_256,
16818 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016819 .voltage = {2700, 3600},
16820 },
16821
16822 {
16823 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016824 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016825 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016826 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016827 .model_id = WINBOND_NEX_W25P32,
16828 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016829 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016830 .feature_bits = FEATURE_WRSR_WREN,
16831 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016832 .probe = probe_spi_rdid,
16833 .probe_timing = TIMING_ZERO,
16834 .block_erasers =
16835 {
16836 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016837 .eraseblocks = { {64 * 1024, 64} },
16838 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016839 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016840 .eraseblocks = { {4096 * 1024, 1} },
16841 .block_erase = spi_block_erase_c7,
16842 }
16843 },
16844 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16845 .unlock = spi_disable_blockprotect,
16846 .write = spi_chip_write_256,
16847 .read = spi_chip_read, /* Fast read (0x0B) supported */
16848 .voltage = {2700, 3600},
16849 },
16850
16851 {
16852 .vendor = "Winbond",
16853 .name = "W25P80",
16854 .bustype = BUS_SPI,
16855 .manufacture_id = WINBOND_NEX_ID,
16856 .model_id = WINBOND_NEX_W25P80,
16857 .total_size = 1024,
16858 .page_size = 256,
16859 .feature_bits = FEATURE_WRSR_WREN,
16860 .tested = TEST_UNTESTED,
16861 .probe = probe_spi_rdid,
16862 .probe_timing = TIMING_ZERO,
16863 .block_erasers =
16864 {
16865 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000016866 .eraseblocks = { {64 * 1024, 16} },
16867 .block_erase = spi_block_erase_d8,
16868 }, {
16869 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000016870 .block_erase = spi_block_erase_c7,
16871 }
16872 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016873 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016874 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016875 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016876 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016877 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000016878 },
16879
16880 {
16881 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016882 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016883 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016884 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016885 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016886 .total_size = 16384,
16887 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016888 /* supports SFDP */
16889 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000016890 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016891 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016892 .probe = probe_spi_rdid,
16893 .probe_timing = TIMING_ZERO,
16894 .block_erasers =
16895 {
16896 {
16897 .eraseblocks = { {4 * 1024, 4096} },
16898 .block_erase = spi_block_erase_20,
16899 }, {
16900 .eraseblocks = { {32 * 1024, 512} },
16901 .block_erase = spi_block_erase_52,
16902 }, {
16903 .eraseblocks = { {64 * 1024, 256} },
16904 .block_erase = spi_block_erase_d8,
16905 }, {
16906 .eraseblocks = { {16 * 1024 * 1024, 1} },
16907 .block_erase = spi_block_erase_60,
16908 }, {
16909 .eraseblocks = { {16 * 1024 * 1024, 1} },
16910 .block_erase = spi_block_erase_c7,
16911 }
16912 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016913 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000016914 .unlock = spi_disable_blockprotect,
16915 .write = spi_chip_write_256,
16916 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016917 .voltage = {2700, 3600},
16918 },
16919
16920 {
16921 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020016922 .name = "W25Q128.V..M",
16923 .bustype = BUS_SPI,
16924 .manufacture_id = WINBOND_NEX_ID,
16925 .model_id = WINBOND_NEX_W25Q128_V_M,
16926 .total_size = 16384,
16927 .page_size = 256,
16928 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16929 .tested = TEST_OK_PREW,
16930 .probe = probe_spi_rdid,
16931 .probe_timing = TIMING_ZERO,
16932 .block_erasers =
16933 {
16934 {
16935 .eraseblocks = { {4 * 1024, 4096} },
16936 .block_erase = spi_block_erase_20,
16937 }, {
16938 .eraseblocks = { {32 * 1024, 512} },
16939 .block_erase = spi_block_erase_52,
16940 }, {
16941 .eraseblocks = { {64 * 1024, 256} },
16942 .block_erase = spi_block_erase_d8,
16943 }, {
16944 .eraseblocks = { {16 * 1024 * 1024, 1} },
16945 .block_erase = spi_block_erase_60,
16946 }, {
16947 .eraseblocks = { {16 * 1024 * 1024, 1} },
16948 .block_erase = spi_block_erase_c7,
16949 }
16950 },
Alan Greena1fc01d2019-09-23 17:12:44 +100016951 .printlock = spi_prettyprint_status_register_plain,
Patrick Rudolph34323492018-10-04 14:59:40 +020016952 .unlock = spi_disable_blockprotect,
16953 .write = spi_chip_write_256,
16954 .read = spi_chip_read,
16955 .voltage = {2700, 3600},
16956 },
16957
16958 {
16959 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016960 .name = "W25Q128.W",
16961 .bustype = BUS_SPI,
16962 .manufacture_id = WINBOND_NEX_ID,
16963 .model_id = WINBOND_NEX_W25Q128_W,
16964 .total_size = 16384,
16965 .page_size = 256,
16966 /* supports SFDP */
16967 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16968 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16969 .tested = TEST_OK_PREW,
16970 .probe = probe_spi_rdid,
16971 .probe_timing = TIMING_ZERO,
16972 .block_erasers =
16973 {
16974 {
16975 .eraseblocks = { {4 * 1024, 4096} },
16976 .block_erase = spi_block_erase_20,
16977 }, {
16978 .eraseblocks = { {32 * 1024, 512} },
16979 .block_erase = spi_block_erase_52,
16980 }, {
16981 .eraseblocks = { {64 * 1024, 256} },
16982 .block_erase = spi_block_erase_d8,
16983 }, {
16984 .eraseblocks = { {16 * 1024 * 1024, 1} },
16985 .block_erase = spi_block_erase_60,
16986 }, {
16987 .eraseblocks = { {16 * 1024 * 1024, 1} },
16988 .block_erase = spi_block_erase_c7,
16989 }
16990 },
16991 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16992 .unlock = spi_disable_blockprotect,
16993 .write = spi_chip_write_256,
16994 .read = spi_chip_read,
16995 .voltage = {1650, 1950},
16996 },
16997
16998 {
16999 .vendor = "Winbond",
Peichao Wang1a119492019-11-11 15:26:41 +080017000 .name = "W25Q128.JW.DTR",
17001 .bustype = BUS_SPI,
17002 .manufacture_id = WINBOND_NEX_ID,
17003 .model_id = WINBOND_NEX_W25Q128_DTR,
17004 .total_size = 16384,
17005 .page_size = 256,
17006 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17007 .tested = TEST_OK_PREW,
17008 .probe = probe_spi_rdid,
17009 .probe_timing = TIMING_ZERO,
17010 .block_erasers =
17011 {
17012 {
17013 .eraseblocks = { {4 * 1024, 4096} },
17014 .block_erase = spi_block_erase_20,
17015 }, {
17016 .eraseblocks = { {32 * 1024, 512} },
17017 .block_erase = spi_block_erase_52,
17018 }, {
17019 .eraseblocks = { {64 * 1024, 256} },
17020 .block_erase = spi_block_erase_d8,
17021 }, {
17022 .eraseblocks = { {16 * 1024 * 1024, 1} },
17023 .block_erase = spi_block_erase_60,
17024 }, {
17025 .eraseblocks = { {16 * 1024 * 1024, 1} },
17026 .block_erase = spi_block_erase_c7,
17027 }
17028 },
17029 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17030 .unlock = spi_disable_blockprotect,
17031 .write = spi_chip_write_256,
17032 .read = spi_chip_read,
17033 .voltage = {1650, 1950},
17034 },
17035
17036 {
17037 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017038 .name = "W25Q16.V",
17039 .bustype = BUS_SPI,
17040 .manufacture_id = WINBOND_NEX_ID,
17041 .model_id = WINBOND_NEX_W25Q16_V,
17042 .total_size = 2048,
17043 .page_size = 256,
17044 /* supports SFDP */
17045 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17046 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17047 .tested = TEST_OK_PREW,
17048 .probe = probe_spi_rdid,
17049 .probe_timing = TIMING_ZERO,
17050 .block_erasers =
17051 {
17052 {
17053 .eraseblocks = { {4 * 1024, 512} },
17054 .block_erase = spi_block_erase_20,
17055 }, {
17056 .eraseblocks = { {32 * 1024, 64} },
17057 .block_erase = spi_block_erase_52,
17058 }, {
17059 .eraseblocks = { {64 * 1024, 32} },
17060 .block_erase = spi_block_erase_d8,
17061 }, {
17062 .eraseblocks = { {2 * 1024 * 1024, 1} },
17063 .block_erase = spi_block_erase_60,
17064 }, {
17065 .eraseblocks = { {2 * 1024 * 1024, 1} },
17066 .block_erase = spi_block_erase_c7,
17067 }
17068 },
17069 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17070 .unlock = spi_disable_blockprotect,
17071 .write = spi_chip_write_256,
17072 .read = spi_chip_read,
17073 .voltage = {2700, 3600},
17074 },
17075
17076 {
17077 .vendor = "Winbond",
17078 .name = "W25Q16.W",
17079 .bustype = BUS_SPI,
17080 .manufacture_id = WINBOND_NEX_ID,
17081 .model_id = WINBOND_NEX_W25Q16_W,
17082 .total_size = 2048,
17083 .page_size = 256,
17084 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17085 /* QPI enable 0x38, disable 0xFF */
17086 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17087 .tested = TEST_UNTESTED,
17088 .probe = probe_spi_rdid,
17089 .probe_timing = TIMING_ZERO,
17090 .block_erasers =
17091 {
17092 {
17093 .eraseblocks = { {4 * 1024, 512} },
17094 .block_erase = spi_block_erase_20,
17095 }, {
17096 .eraseblocks = { {32 * 1024, 64} },
17097 .block_erase = spi_block_erase_52,
17098 }, {
17099 .eraseblocks = { {64 * 1024, 32} },
17100 .block_erase = spi_block_erase_d8,
17101 }, {
17102 .eraseblocks = { {2 * 1024 * 1024, 1} },
17103 .block_erase = spi_block_erase_60,
17104 }, {
17105 .eraseblocks = { {2 * 1024 * 1024, 1} },
17106 .block_erase = spi_block_erase_c7,
17107 }
17108 },
17109 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17110 .unlock = spi_disable_blockprotect,
17111 .write = spi_chip_write_256,
17112 .read = spi_chip_read,
17113 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17114 },
17115
17116 {
17117 .vendor = "Winbond",
17118 .name = "W25Q20.W",
17119 .bustype = BUS_SPI,
17120 .manufacture_id = WINBOND_NEX_ID,
17121 .model_id = WINBOND_NEX_W25Q20_W,
17122 .total_size = 256,
17123 .page_size = 256,
17124 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17125 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17126 .tested = TEST_UNTESTED,
17127 .probe = probe_spi_rdid,
17128 .probe_timing = TIMING_ZERO,
17129 .block_erasers =
17130 {
17131 {
17132 .eraseblocks = { {4 * 1024, 64} },
17133 .block_erase = spi_block_erase_20,
17134 }, {
17135 .eraseblocks = { {32 * 1024, 8} },
17136 .block_erase = spi_block_erase_52,
17137 }, {
17138 .eraseblocks = { {64 * 1024, 4} },
17139 .block_erase = spi_block_erase_d8,
17140 }, {
17141 .eraseblocks = { {256 * 1024, 1} },
17142 .block_erase = spi_block_erase_60,
17143 }, {
17144 .eraseblocks = { {256 * 1024, 1} },
17145 .block_erase = spi_block_erase_c7,
17146 }
17147 },
17148 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17149 .unlock = spi_disable_blockprotect,
17150 .write = spi_chip_write_256,
17151 .read = spi_chip_read,
17152 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17153 },
17154
17155 {
17156 .vendor = "Winbond",
Boris Baykovaa6c3742016-06-11 18:29:01 +020017157 .name = "W25Q256.V",
17158 .bustype = BUS_SPI,
17159 .manufacture_id = WINBOND_NEX_ID,
17160 .model_id = WINBOND_NEX_W25Q256_V,
17161 .total_size = 32768,
17162 .page_size = 256,
17163 /* supports SFDP */
17164 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17165 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
Nico Huberaac81422017-11-10 22:54:13 +010017166 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
17167 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
Angel Pons3130cbd2018-09-30 19:32:30 +020017168 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017169 .probe = probe_spi_rdid,
17170 .probe_timing = TIMING_ZERO,
17171 .block_erasers =
17172 {
17173 {
17174 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020017175 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017176 }, {
17177 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020017178 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017179 }, {
17180 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020017181 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017182 }, {
17183 .eraseblocks = { {32 * 1024 * 1024, 1} },
17184 .block_erase = spi_block_erase_60,
17185 }, {
17186 .eraseblocks = { {32 * 1024 * 1024, 1} },
17187 .block_erase = spi_block_erase_c7,
17188 }
17189 },
17190 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17191 .unlock = spi_disable_blockprotect,
17192 .write = spi_chip_write_256,
17193 .read = spi_chip_read,
17194 .voltage = {2700, 3600},
17195 },
17196
17197 {
17198 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000017199 .name = "W25Q256JV_M",
17200 .bustype = BUS_SPI,
17201 .manufacture_id = WINBOND_NEX_ID,
17202 .model_id = WINBOND_NEX_W25Q256JV_M,
17203 .total_size = 32768,
17204 .page_size = 256,
17205 /* supports SFDP */
17206 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17207 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
17208 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17209 .tested = TEST_OK_PREW,
17210 .probe = probe_spi_rdid,
17211 .probe_timing = TIMING_ZERO,
17212 .block_erasers =
17213 {
17214 {
17215 .eraseblocks = { {4 * 1024, 8192} },
17216 .block_erase = spi_block_erase_21,
17217 }, {
17218 .eraseblocks = { {4 * 1024, 8192} },
17219 .block_erase = spi_block_erase_20,
17220 }, {
17221 .eraseblocks = { {32 * 1024, 1024} },
17222 .block_erase = spi_block_erase_52,
17223 }, {
17224 .eraseblocks = { {64 * 1024, 512} },
17225 .block_erase = spi_block_erase_dc,
17226 }, {
17227 .eraseblocks = { {64 * 1024, 512} },
17228 .block_erase = spi_block_erase_d8,
17229 }, {
17230 .eraseblocks = { {32 * 1024 * 1024, 1} },
17231 .block_erase = spi_block_erase_60,
17232 }, {
17233 .eraseblocks = { {32 * 1024 * 1024, 1} },
17234 .block_erase = spi_block_erase_c7,
17235 }
17236 },
17237 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17238 .unlock = spi_disable_blockprotect,
17239 .write = spi_chip_write_256,
17240 .read = spi_chip_read,
17241 .voltage = {2700, 3600},
17242 },
17243
17244 {
17245 .vendor = "Winbond",
el-coderon01209852020-04-29 12:12:53 +020017246 .name = "W25Q256.W",
17247 .bustype = BUS_SPI,
17248 .manufacture_id = WINBOND_NEX_ID,
17249 .model_id = WINBOND_NEX_W25Q256_W,
17250 .total_size = 32768,
17251 .page_size = 256,
17252 /* supports SFDP */
17253 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17254 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
17255 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
17256 .tested = TEST_OK_PREW,
17257 .probe = probe_spi_rdid,
17258 .probe_timing = TIMING_ZERO,
17259 .block_erasers =
17260 {
17261 {
17262 .eraseblocks = { {4 * 1024, 8192} },
17263 .block_erase = spi_block_erase_20,
17264 }, {
17265 .eraseblocks = { {32 * 1024, 1024} },
17266 .block_erase = spi_block_erase_52,
17267 }, {
17268 .eraseblocks = { {64 * 1024, 512} },
17269 .block_erase = spi_block_erase_d8,
17270 }, {
17271 .eraseblocks = { {32 * 1024 * 1024, 1} },
17272 .block_erase = spi_block_erase_60,
17273 }, {
17274 .eraseblocks = { {32 * 1024 * 1024, 1} },
17275 .block_erase = spi_block_erase_c7,
17276 }
17277 },
17278 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17279 .unlock = spi_disable_blockprotect,
17280 .write = spi_chip_write_256,
17281 .read = spi_chip_read,
17282 .voltage = {1650, 1950},
17283 },
17284
17285 {
17286 .vendor = "Winbond",
David Hendricks31532602020-08-16 17:14:56 -070017287 .name = "W25Q256JW_DTR",
17288 .bustype = BUS_SPI,
17289 .manufacture_id = WINBOND_NEX_ID,
17290 .model_id = WINBOND_NEX_W25Q256_DTR,
17291 .total_size = 32768,
17292 .page_size = 256,
17293 /* supports SFDP */
17294 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17295 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
17296 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17297 .tested = TEST_OK_PREW,
17298 .probe = probe_spi_rdid,
17299 .probe_timing = TIMING_ZERO,
17300 .block_erasers =
17301 {
17302 {
17303 .eraseblocks = { {4 * 1024, 8192} },
17304 .block_erase = spi_block_erase_21,
17305 }, {
17306 .eraseblocks = { {4 * 1024, 8192} },
17307 .block_erase = spi_block_erase_20,
17308 }, {
17309 .eraseblocks = { {32 * 1024, 1024} },
17310 .block_erase = spi_block_erase_52,
17311 }, {
17312 .eraseblocks = { {64 * 1024, 512} },
17313 .block_erase = spi_block_erase_dc,
17314 }, {
17315 .eraseblocks = { {64 * 1024, 512} },
17316 .block_erase = spi_block_erase_d8,
17317 }, {
17318 .eraseblocks = { {32 * 1024 * 1024, 1} },
17319 .block_erase = spi_block_erase_60,
17320 }, {
17321 .eraseblocks = { {32 * 1024 * 1024, 1} },
17322 .block_erase = spi_block_erase_c7,
17323 }
17324 },
17325 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17326 .unlock = spi_disable_blockprotect,
17327 .write = spi_chip_write_256,
17328 .read = spi_chip_read,
17329 .voltage = {1700, 1950},
17330 },
17331
17332 {
17333 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017334 .name = "W25Q32.V",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017335 .bustype = BUS_SPI,
17336 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017337 .model_id = WINBOND_NEX_W25Q32_V,
17338 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017339 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017340 /* supports SFDP */
17341 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017342 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017343 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017344 .probe = probe_spi_rdid,
17345 .probe_timing = TIMING_ZERO,
17346 .block_erasers =
17347 {
17348 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017349 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017350 .block_erase = spi_block_erase_20,
17351 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017352 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017353 .block_erase = spi_block_erase_52,
17354 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017355 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017356 .block_erase = spi_block_erase_d8,
17357 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017358 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017359 .block_erase = spi_block_erase_60,
17360 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017361 .eraseblocks = { {4 * 1024 * 1024, 1} },
17362 .block_erase = spi_block_erase_c7,
17363 }
17364 },
17365 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17366 .unlock = spi_disable_blockprotect,
17367 .write = spi_chip_write_256,
17368 .read = spi_chip_read,
17369 .voltage = {2700, 3600},
17370 },
17371
17372 {
17373 .vendor = "Winbond",
17374 .name = "W25Q32.W",
17375 .bustype = BUS_SPI,
17376 .manufacture_id = WINBOND_NEX_ID,
17377 .model_id = WINBOND_NEX_W25Q32_W,
17378 .total_size = 4096,
17379 .page_size = 256,
17380 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17381 /* QPI enable 0x38, disable 0xFF */
17382 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17383 .tested = TEST_OK_PREW,
17384 .probe = probe_spi_rdid,
17385 .probe_timing = TIMING_ZERO,
17386 .block_erasers =
17387 {
17388 {
17389 .eraseblocks = { {4 * 1024, 1024} },
17390 .block_erase = spi_block_erase_20,
17391 }, {
17392 .eraseblocks = { {32 * 1024, 128} },
17393 .block_erase = spi_block_erase_52,
17394 }, {
17395 .eraseblocks = { {64 * 1024, 64} },
17396 .block_erase = spi_block_erase_d8,
17397 }, {
17398 .eraseblocks = { {4 * 1024 * 1024, 1} },
17399 .block_erase = spi_block_erase_60,
17400 }, {
17401 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017402 .block_erase = spi_block_erase_c7,
17403 }
17404 },
17405 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17406 .unlock = spi_disable_blockprotect,
17407 .write = spi_chip_write_256,
17408 .read = spi_chip_read,
17409 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17410 },
17411
17412 {
17413 .vendor = "Winbond",
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100017414 .name = "W25Q32JW...M",
17415 .bustype = BUS_SPI,
17416 .manufacture_id = WINBOND_NEX_ID,
17417 .model_id = WINBOND_NEX_W25Q32JW_M,
17418 .total_size = 4096,
17419 .page_size = 256,
17420 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17421 .tested = TEST_OK_PREW,
17422 .probe = probe_spi_rdid,
17423 .probe_timing = TIMING_ZERO,
17424 .block_erasers =
17425 {
17426 {
17427 .eraseblocks = { {4 * 1024, 1024} },
17428 .block_erase = spi_block_erase_20,
17429 }, {
17430 .eraseblocks = { {32 * 1024, 128} },
17431 .block_erase = spi_block_erase_52,
17432 }, {
17433 .eraseblocks = { {64 * 1024, 64} },
17434 .block_erase = spi_block_erase_d8,
17435 }, {
17436 .eraseblocks = { {4 * 1024 * 1024, 1} },
17437 .block_erase = spi_block_erase_60,
17438 }, {
17439 .eraseblocks = { {4 * 1024 * 1024, 1} },
17440 .block_erase = spi_block_erase_c7,
17441 }
17442 },
17443 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
17444 .unlock = spi_disable_blockprotect_bp2_srwd,
17445 .write = spi_chip_write_256,
17446 .read = spi_chip_read,
17447 .voltage = {1700, 1950},
17448 },
17449
17450 {
17451 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017452 .name = "W25Q40.V",
17453 .bustype = BUS_SPI,
17454 .manufacture_id = WINBOND_NEX_ID,
17455 .model_id = WINBOND_NEX_W25Q40_V,
17456 .total_size = 512,
17457 .page_size = 256,
17458 /* supports SFDP */
17459 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17460 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17461 .tested = TEST_OK_PREW,
17462 .probe = probe_spi_rdid,
17463 .probe_timing = TIMING_ZERO,
17464 .block_erasers =
17465 {
17466 {
17467 .eraseblocks = { {4 * 1024, 128} },
17468 .block_erase = spi_block_erase_20,
17469 }, {
17470 .eraseblocks = { {32 * 1024, 16} },
17471 .block_erase = spi_block_erase_52,
17472 }, {
17473 .eraseblocks = { {64 * 1024, 8} },
17474 .block_erase = spi_block_erase_d8,
17475 }, {
17476 .eraseblocks = { {512 * 1024, 1} },
17477 .block_erase = spi_block_erase_60,
17478 }, {
17479 .eraseblocks = { {512 * 1024, 1} },
17480 .block_erase = spi_block_erase_c7,
17481 }
17482 },
17483 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17484 .unlock = spi_disable_blockprotect,
17485 .write = spi_chip_write_256, /* Multi I/O supported */
17486 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17487 .voltage = {2700, 3600},
17488 },
17489
17490 {
17491 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020017492 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017493 .bustype = BUS_SPI,
17494 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020017495 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017496 .total_size = 512,
17497 .page_size = 256,
17498 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17499 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020017500 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017501 .probe = probe_spi_rdid,
17502 .probe_timing = TIMING_ZERO,
17503 .block_erasers =
17504 {
17505 {
17506 .eraseblocks = { {4 * 1024, 128} },
17507 .block_erase = spi_block_erase_20,
17508 }, {
17509 .eraseblocks = { {32 * 1024, 16} },
17510 .block_erase = spi_block_erase_52,
17511 }, {
17512 .eraseblocks = { {64 * 1024, 8} },
17513 .block_erase = spi_block_erase_d8,
17514 }, {
17515 .eraseblocks = { {512 * 1024, 1} },
17516 .block_erase = spi_block_erase_60,
17517 }, {
17518 .eraseblocks = { {512 * 1024, 1} },
17519 .block_erase = spi_block_erase_c7,
17520 }
17521 },
17522 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17523 .unlock = spi_disable_blockprotect,
17524 .write = spi_chip_write_256,
17525 .read = spi_chip_read,
17526 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17527 },
17528
17529 {
17530 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020017531 .name = "W25Q40EW",
17532 .bustype = BUS_SPI,
17533 .manufacture_id = WINBOND_NEX_ID,
17534 .model_id = WINBOND_NEX_W25Q40EW,
17535 .total_size = 512,
17536 .page_size = 256,
17537 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17538 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green07b8a172019-09-23 16:47:05 +100017539 .tested = TEST_OK_PREW,
Nico Huber25683572018-03-30 13:50:13 +020017540 .probe = probe_spi_rdid,
17541 .probe_timing = TIMING_ZERO,
17542 .block_erasers =
17543 {
17544 {
17545 .eraseblocks = { {4 * 1024, 128} },
17546 .block_erase = spi_block_erase_20,
17547 }, {
17548 .eraseblocks = { {32 * 1024, 16} },
17549 .block_erase = spi_block_erase_52,
17550 }, {
17551 .eraseblocks = { {64 * 1024, 8} },
17552 .block_erase = spi_block_erase_d8,
17553 }, {
17554 .eraseblocks = { {512 * 1024, 1} },
17555 .block_erase = spi_block_erase_60,
17556 }, {
17557 .eraseblocks = { {512 * 1024, 1} },
17558 .block_erase = spi_block_erase_c7,
17559 }
17560 },
17561 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17562 .unlock = spi_disable_blockprotect,
17563 .write = spi_chip_write_256,
17564 .read = spi_chip_read,
17565 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
17566 },
17567
Stanislav Sedovf5775442018-03-07 14:16:51 -080017568 {
17569 .vendor = "Winbond",
Joel Stanley55439612019-07-27 19:25:35 +093017570 .name = "W25Q512JV",
17571 .bustype = BUS_SPI,
17572 .manufacture_id = WINBOND_NEX_ID,
17573 .model_id = WINBOND_NEX_W25Q512JV,
17574 .total_size = 64 * 1024,
17575 .page_size = 256,
17576 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17577 .tested = TEST_OK_PREW,
17578 .probe = probe_spi_rdid,
17579 .probe_timing = TIMING_ZERO,
17580 .block_erasers =
17581 {
17582 {
17583 .eraseblocks = { {4 * 1024, 16384} },
17584 .block_erase = spi_block_erase_21,
17585 }, {
17586 .eraseblocks = { {4 * 1024, 16384} },
17587 .block_erase = spi_block_erase_20,
17588 }, {
17589 .eraseblocks = { {32 * 1024, 2048} },
17590 .block_erase = spi_block_erase_52,
17591 }, {
17592 .eraseblocks = { {64 * 1024, 1024} },
17593 .block_erase = spi_block_erase_dc,
17594 }, {
17595 .eraseblocks = { {64 * 1024, 1024} },
17596 .block_erase = spi_block_erase_d8,
17597 }, {
17598 .eraseblocks = { {64 * 1024 * 1024, 1} },
17599 .block_erase = spi_block_erase_60,
17600 }, {
17601 .eraseblocks = { {64 * 1024 * 1024, 1} },
17602 .block_erase = spi_block_erase_c7,
17603 }
17604 },
17605 .printlock = spi_prettyprint_status_register_plain,
17606 .unlock = spi_disable_blockprotect,
17607 .write = spi_chip_write_256,
17608 .read = spi_chip_read,
17609 .voltage = {2700, 3600},
17610 },
17611
17612 {
17613 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017614 .name = "W25Q64.V",
Stanislav Sedovf5775442018-03-07 14:16:51 -080017615 .bustype = BUS_SPI,
17616 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017617 .model_id = WINBOND_NEX_W25Q64_V,
17618 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080017619 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017620 /* supports SFDP */
17621 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Stanislav Sedovf5775442018-03-07 14:16:51 -080017622 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17623 .tested = TEST_OK_PREW,
17624 .probe = probe_spi_rdid,
17625 .probe_timing = TIMING_ZERO,
17626 .block_erasers =
17627 {
17628 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017629 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017630 .block_erase = spi_block_erase_20,
17631 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017632 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017633 .block_erase = spi_block_erase_52,
17634 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017635 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017636 .block_erase = spi_block_erase_d8,
17637 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017638 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017639 .block_erase = spi_block_erase_60,
17640 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017641 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017642 .block_erase = spi_block_erase_c7,
17643 }
17644 },
17645 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17646 .unlock = spi_disable_blockprotect,
17647 .write = spi_chip_write_256,
17648 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017649 .voltage = {2700, 3600},
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017650 },
17651
17652 {
17653 .vendor = "Winbond",
17654 .name = "W25Q64.W",
17655 .bustype = BUS_SPI,
17656 .manufacture_id = WINBOND_NEX_ID,
17657 .model_id = WINBOND_NEX_W25Q64_W,
17658 .total_size = 8192,
17659 .page_size = 256,
17660 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17661 /* QPI enable 0x38, disable 0xFF */
17662 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000017663 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017664 .probe = probe_spi_rdid,
17665 .probe_timing = TIMING_ZERO,
17666 .block_erasers =
17667 {
17668 {
17669 .eraseblocks = { {4 * 1024, 2048} },
17670 .block_erase = spi_block_erase_20,
17671 }, {
17672 .eraseblocks = { {32 * 1024, 256} },
17673 .block_erase = spi_block_erase_52,
17674 }, {
17675 .eraseblocks = { {64 * 1024, 128} },
17676 .block_erase = spi_block_erase_d8,
17677 }, {
17678 .eraseblocks = { {8 * 1024 * 1024, 1} },
17679 .block_erase = spi_block_erase_60,
17680 }, {
17681 .eraseblocks = { {8 * 1024 * 1024, 1} },
17682 .block_erase = spi_block_erase_c7,
17683 }
17684 },
17685 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17686 .unlock = spi_disable_blockprotect,
17687 .write = spi_chip_write_256,
17688 .read = spi_chip_read,
17689 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000017690 },
17691
17692 {
17693 .vendor = "Winbond",
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100017694 .name = "W25Q64JW...M",
Scott Chao1bbc5012020-04-08 22:10:50 +080017695 .bustype = BUS_SPI,
17696 .manufacture_id = WINBOND_NEX_ID,
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100017697 .model_id = WINBOND_NEX_W25Q64JW_M,
Scott Chao1bbc5012020-04-08 22:10:50 +080017698 .total_size = 8192,
17699 .page_size = 256,
17700 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17701 /* QPI enable 0x38, disable 0xFF */
17702 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17703 .tested = TEST_OK_PREW,
17704 .probe = probe_spi_rdid,
17705 .probe_timing = TIMING_ZERO,
17706 .block_erasers =
17707 {
17708 {
17709 .eraseblocks = { {4 * 1024, 2048} },
17710 .block_erase = spi_block_erase_20,
17711 }, {
17712 .eraseblocks = { {32 * 1024, 256} },
17713 .block_erase = spi_block_erase_52,
17714 }, {
17715 .eraseblocks = { {64 * 1024, 128} },
17716 .block_erase = spi_block_erase_d8,
17717 }, {
17718 .eraseblocks = { {8 * 1024 * 1024, 1} },
17719 .block_erase = spi_block_erase_60,
17720 }, {
17721 .eraseblocks = { {8 * 1024 * 1024, 1} },
17722 .block_erase = spi_block_erase_c7,
17723 }
17724 },
17725 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17726 .unlock = spi_disable_blockprotect,
17727 .write = spi_chip_write_256,
17728 .read = spi_chip_read,
17729 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17730 },
17731
17732 {
17733 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017734 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020017735 .bustype = BUS_SPI,
17736 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017737 .model_id = WINBOND_NEX_W25Q80_V,
17738 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020017739 .page_size = 256,
17740 /* supports SFDP */
17741 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100017742 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks48729d32017-12-08 14:44:07 -080017743 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020017744 .probe = probe_spi_rdid,
17745 .probe_timing = TIMING_ZERO,
17746 .block_erasers =
17747 {
17748 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017749 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017750 .block_erase = spi_block_erase_20,
17751 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017752 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017753 .block_erase = spi_block_erase_52,
17754 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017755 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017756 .block_erase = spi_block_erase_d8,
17757 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017758 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017759 .block_erase = spi_block_erase_60,
17760 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017761 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017762 .block_erase = spi_block_erase_c7,
17763 }
17764 },
17765 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17766 .unlock = spi_disable_blockprotect,
17767 .write = spi_chip_write_256,
17768 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017769 .voltage = {2700, 3600},
17770 },
17771
17772 {
17773 .vendor = "Winbond",
17774 .name = "W25Q80BW",
17775 .bustype = BUS_SPI,
17776 .manufacture_id = WINBOND_NEX_ID,
17777 .model_id = WINBOND_NEX_W25Q80BW,
17778 .total_size = 1024,
17779 .page_size = 256,
17780 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17781 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17782 .tested = TEST_OK_PREW,
17783 .probe = probe_spi_rdid,
17784 .probe_timing = TIMING_ZERO,
17785 .block_erasers =
17786 {
17787 {
17788 .eraseblocks = { {4 * 1024, 256} },
17789 .block_erase = spi_block_erase_20,
17790 }, {
17791 .eraseblocks = { {32 * 1024, 32} },
17792 .block_erase = spi_block_erase_52,
17793 }, {
17794 .eraseblocks = { {64 * 1024, 16} },
17795 .block_erase = spi_block_erase_d8,
17796 }, {
17797 .eraseblocks = { {1 * 1024 * 1024, 1} },
17798 .block_erase = spi_block_erase_60,
17799 }, {
17800 .eraseblocks = { {1 * 1024 * 1024, 1} },
17801 .block_erase = spi_block_erase_c7,
17802 }
17803 },
17804 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17805 .unlock = spi_disable_blockprotect,
17806 .write = spi_chip_write_256,
17807 .read = spi_chip_read,
17808 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17809 },
17810
17811 {
17812 .vendor = "Winbond",
17813 .name = "W25Q80EW",
17814 .bustype = BUS_SPI,
17815 .manufacture_id = WINBOND_NEX_ID,
17816 .model_id = WINBOND_NEX_W25Q80EW,
17817 .total_size = 1024,
17818 .page_size = 256,
17819 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17820 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17821 .tested = TEST_OK_PREW,
17822 .probe = probe_spi_rdid,
17823 .probe_timing = TIMING_ZERO,
17824 .block_erasers =
17825 {
17826 {
17827 .eraseblocks = { {4 * 1024, 256} },
17828 .block_erase = spi_block_erase_20,
17829 }, {
17830 .eraseblocks = { {32 * 1024, 32} },
17831 .block_erase = spi_block_erase_52,
17832 }, {
17833 .eraseblocks = { {64 * 1024, 16} },
17834 .block_erase = spi_block_erase_d8,
17835 }, {
17836 .eraseblocks = { {1 * 1024 * 1024, 1} },
17837 .block_erase = spi_block_erase_60,
17838 }, {
17839 .eraseblocks = { {1 * 1024 * 1024, 1} },
17840 .block_erase = spi_block_erase_c7,
17841 }
17842 },
17843 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17844 .unlock = spi_disable_blockprotect,
17845 .write = spi_chip_write_256,
17846 .read = spi_chip_read,
17847 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nico Huber70eed9f2017-04-24 22:19:27 +020017848 },
17849
17850 {
17851 .vendor = "Winbond",
Jacob Appelbaumebbdc022019-09-02 09:10:43 -040017852 .name = "W25X05",
17853 .bustype = BUS_SPI,
17854 .manufacture_id = WINBOND_NEX_ID,
17855 .model_id = WINBOND_NEX_W25X05,
17856 .total_size = 64,
17857 .page_size = 256,
17858 .feature_bits = FEATURE_WRSR_WREN,
17859 .tested = TEST_OK_PREW,
17860 .probe = probe_spi_rdid,
17861 .probe_timing = TIMING_ZERO,
17862 .block_erasers =
17863 {
17864 {
17865 .eraseblocks = { {4 * 1024, 16} },
17866 .block_erase = spi_block_erase_20,
17867 }, {
17868 .eraseblocks = { {32 * 1024, 2} },
17869 .block_erase = spi_block_erase_52,
17870 }, {
17871 .eraseblocks = { {64 * 1024, 1} },
17872 .block_erase = spi_block_erase_d8,
17873 }
17874 },
17875 .printlock = spi_prettyprint_status_register_plain,
17876 .unlock = spi_disable_blockprotect,
17877 .write = spi_chip_write_256,
17878 .read = spi_chip_read,
17879 .voltage = {2300, 3600},
17880 },
17881
17882 {
17883 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017884 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017885 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017886 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017887 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017888 .total_size = 128,
17889 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017890 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000017891 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017892 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017893 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017894 .block_erasers =
17895 {
17896 {
17897 .eraseblocks = { {4 * 1024, 32} },
17898 .block_erase = spi_block_erase_20,
17899 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017900 .eraseblocks = { {64 * 1024, 2} },
17901 .block_erase = spi_block_erase_d8,
17902 }, {
17903 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017904 .block_erase = spi_block_erase_c7,
17905 }
17906 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017907 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017908 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000017909 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017910 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017911 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017912 },
17913
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017914 {
17915 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017916 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017917 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000017918 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017919 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000017920 .total_size = 2048,
17921 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017922 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000017923 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000017924 .probe = probe_spi_rdid,
17925 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017926 .block_erasers =
17927 {
17928 {
17929 .eraseblocks = { {4 * 1024, 512} },
17930 .block_erase = spi_block_erase_20,
17931 }, {
17932 .eraseblocks = { {32 * 1024, 64} },
17933 .block_erase = spi_block_erase_52,
17934 }, {
17935 .eraseblocks = { {64 * 1024, 32} },
17936 .block_erase = spi_block_erase_d8,
17937 }, {
17938 .eraseblocks = { {2 * 1024 * 1024, 1} },
17939 .block_erase = spi_block_erase_60,
17940 }, {
17941 .eraseblocks = { {2 * 1024 * 1024, 1} },
17942 .block_erase = spi_block_erase_c7,
17943 }
17944 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017945 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017946 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000017947 .write = spi_chip_write_256,
17948 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017949 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000017950 },
17951
17952 {
17953 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017954 .name = "W25X20",
17955 .bustype = BUS_SPI,
17956 .manufacture_id = WINBOND_NEX_ID,
17957 .model_id = WINBOND_NEX_W25X20,
17958 .total_size = 256,
17959 .page_size = 256,
17960 .feature_bits = FEATURE_WRSR_WREN,
17961 .tested = TEST_OK_PREW,
17962 .probe = probe_spi_rdid,
17963 .probe_timing = TIMING_ZERO,
17964 .block_erasers =
17965 {
17966 {
17967 .eraseblocks = { {4 * 1024, 64} },
17968 .block_erase = spi_block_erase_20,
17969 }, {
17970 .eraseblocks = { {64 * 1024, 4} },
17971 .block_erase = spi_block_erase_d8,
17972 }, {
17973 .eraseblocks = { {256 * 1024, 1} },
17974 .block_erase = spi_block_erase_c7,
17975 }
17976 },
17977 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17978 .unlock = spi_disable_blockprotect,
17979 .write = spi_chip_write_256,
17980 .read = spi_chip_read,
17981 .voltage = {2700, 3600},
17982 },
17983
17984 {
17985 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017986 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017987 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000017988 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017989 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000017990 .total_size = 4096,
17991 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017992 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000017993 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000017994 .probe = probe_spi_rdid,
17995 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017996 .block_erasers =
17997 {
17998 {
17999 .eraseblocks = { {4 * 1024, 1024} },
18000 .block_erase = spi_block_erase_20,
18001 }, {
18002 .eraseblocks = { {32 * 1024, 128} },
18003 .block_erase = spi_block_erase_52,
18004 }, {
18005 .eraseblocks = { {64 * 1024, 64} },
18006 .block_erase = spi_block_erase_d8,
18007 }, {
18008 .eraseblocks = { {4 * 1024 * 1024, 1} },
18009 .block_erase = spi_block_erase_60,
18010 }, {
18011 .eraseblocks = { {4 * 1024 * 1024, 1} },
18012 .block_erase = spi_block_erase_c7,
18013 }
18014 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018015 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018016 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000018017 .write = spi_chip_write_256,
18018 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018019 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000018020 },
18021
18022 {
18023 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018024 .name = "W25X40",
18025 .bustype = BUS_SPI,
18026 .manufacture_id = WINBOND_NEX_ID,
18027 .model_id = WINBOND_NEX_W25X40,
18028 .total_size = 512,
18029 .page_size = 256,
18030 .feature_bits = FEATURE_WRSR_WREN,
18031 .tested = TEST_OK_PREW,
18032 .probe = probe_spi_rdid,
18033 .probe_timing = TIMING_ZERO,
18034 .block_erasers =
18035 {
18036 {
18037 .eraseblocks = { {4 * 1024, 128} },
18038 .block_erase = spi_block_erase_20,
18039 }, {
18040 .eraseblocks = { {64 * 1024, 8} },
18041 .block_erase = spi_block_erase_d8,
18042 }, {
18043 .eraseblocks = { {512 * 1024, 1} },
18044 .block_erase = spi_block_erase_c7,
18045 }
18046 },
18047 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18048 .unlock = spi_disable_blockprotect,
18049 .write = spi_chip_write_256,
18050 .read = spi_chip_read,
18051 .voltage = {2700, 3600},
18052 },
18053
18054 {
18055 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018056 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018057 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000018058 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018059 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000018060 .total_size = 8192,
18061 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000018062 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000018063 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000018064 .probe = probe_spi_rdid,
18065 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018066 .block_erasers =
18067 {
18068 {
18069 .eraseblocks = { {4 * 1024, 2048} },
18070 .block_erase = spi_block_erase_20,
18071 }, {
18072 .eraseblocks = { {32 * 1024, 256} },
18073 .block_erase = spi_block_erase_52,
18074 }, {
18075 .eraseblocks = { {64 * 1024, 128} },
18076 .block_erase = spi_block_erase_d8,
18077 }, {
18078 .eraseblocks = { {8 * 1024 * 1024, 1} },
18079 .block_erase = spi_block_erase_60,
18080 }, {
18081 .eraseblocks = { {8 * 1024 * 1024, 1} },
18082 .block_erase = spi_block_erase_c7,
18083 }
18084 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018085 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018086 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000018087 .write = spi_chip_write_256,
18088 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018089 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000018090 },
18091
18092 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100018093 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018094 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100018095 .bustype = BUS_SPI,
18096 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018097 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100018098 .total_size = 1024,
18099 .page_size = 256,
18100 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018101 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100018102 .probe = probe_spi_rdid,
18103 .probe_timing = TIMING_ZERO,
18104 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080018105 {
18106 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018107 .eraseblocks = { {4 * 1024, 256} },
18108 .block_erase = spi_block_erase_20,
18109 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080018110 .eraseblocks = { {64 * 1024, 16} },
18111 .block_erase = spi_block_erase_d8,
18112 }, {
18113 .eraseblocks = { {1024 * 1024, 1} },
18114 .block_erase = spi_block_erase_c7,
18115 }
18116 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100018117 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18118 .unlock = spi_disable_blockprotect,
18119 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018120 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100018121 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080018122 },
18123
Alan Greenf29ea362019-06-27 17:14:02 +100018124 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
18125 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000018126 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018127 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018128 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018129 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018130 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018131 .total_size = 128,
18132 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018133 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000018134 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018135 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018136 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018137 .block_erasers =
18138 {
18139 {
18140 .eraseblocks = { {128 * 1024, 1} },
18141 .block_erase = erase_chip_block_jedec,
18142 }
18143 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018144 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018145 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000018146 },
18147
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018148 {
18149 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018150 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
18151 .bustype = BUS_PARALLEL,
18152 .manufacture_id = WINBOND_ID,
18153 .model_id = WINBOND_W29C010,
18154 .total_size = 128,
18155 .page_size = 128,
18156 .feature_bits = FEATURE_LONG_RESET,
18157 .tested = TEST_OK_PREW,
18158 .probe = probe_w29ee011,
18159 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
18160 .block_erasers =
18161 {
18162 {
18163 .eraseblocks = { {128 * 1024, 1} },
18164 .block_erase = erase_chip_block_jedec,
18165 }
18166 },
18167 .write = write_jedec,
18168 .read = read_memmapped,
18169 },
18170
18171 {
18172 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018173 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018174 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018175 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018176 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018177 .total_size = 256,
18178 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018179 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018180 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018181 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018182 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018183 .block_erasers =
18184 {
18185 {
18186 .eraseblocks = { {256 * 1024, 1} },
18187 .block_erase = erase_chip_block_jedec,
18188 }
18189 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018190 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018191 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018192 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018193 },
18194
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018195 {
18196 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018197 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018198 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018199 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018200 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018201 .total_size = 512,
18202 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000018203 .feature_bits = FEATURE_LONG_RESET,
18204 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018205 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000018206 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018207 .block_erasers =
18208 {
18209 {
18210 .eraseblocks = { {512 * 1024, 1} },
18211 .block_erase = erase_chip_block_jedec,
18212 }
18213 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018214 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018215 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018216 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018217 },
18218
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018219 {
18220 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018221 .name = "W29C512A/W29EE512",
18222 .bustype = BUS_PARALLEL,
18223 .manufacture_id = WINBOND_ID,
18224 .model_id = WINBOND_W29C512A,
18225 .total_size = 64,
18226 .page_size = 128,
18227 .feature_bits = FEATURE_LONG_RESET,
18228 .tested = TEST_OK_PREW,
18229 .probe = probe_jedec,
18230 .probe_timing = 10,
18231 .block_erasers =
18232 {
18233 {
18234 .eraseblocks = { {64 * 1024, 1} },
18235 .block_erase = erase_chip_block_jedec,
18236 }
18237 },
18238 .write = write_jedec,
18239 .read = read_memmapped,
18240 .voltage = {4500, 5500},
18241 },
18242
18243 {
18244 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018245 .name = "W29GL032CB",
18246 .bustype = BUS_PARALLEL,
18247 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18248 .model_id = WINBOND_W29GL032CB,
18249 .total_size = 4096,
18250 .page_size = 128 * 1024, /* actual page size is 16 */
18251 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18252 .tested = TEST_UNTESTED,
18253 .probe = probe_jedec_29gl,
18254 .probe_timing = TIMING_ZERO,
18255 .block_erasers =
18256 {
18257 {
18258 .eraseblocks = {
18259 {8 * 1024, 8},
18260 {64 * 1024, 63},
18261 },
18262 .block_erase = erase_sector_jedec,
18263 }, {
18264 .eraseblocks = { {4 * 1024 * 1024, 1} },
18265 .block_erase = erase_chip_block_jedec,
18266 },
18267 },
18268 .write = write_jedec_1,
18269 .read = read_memmapped,
18270 .voltage = {2700, 3600},
18271 },
18272
18273 {
18274 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018275 .name = "W29GL032CH/L",
18276 .bustype = BUS_PARALLEL,
18277 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18278 .model_id = WINBOND_W29GL032CHL,
18279 .total_size = 4096,
18280 .page_size = 128 * 1024, /* actual page size is 16 */
18281 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18282 .tested = TEST_UNTESTED,
18283 .probe = probe_jedec_29gl,
18284 .probe_timing = TIMING_ZERO,
18285 .block_erasers =
18286 {
18287 {
18288 .eraseblocks = { {64 * 1024, 64} },
18289 .block_erase = erase_sector_jedec,
18290 }, {
18291 .eraseblocks = { {4 * 1024 * 1024, 1} },
18292 .block_erase = erase_chip_block_jedec,
18293 },
18294 },
18295 .write = write_jedec_1,
18296 .read = read_memmapped,
18297 .voltage = {2700, 3600},
18298 },
18299
18300 {
18301 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018302 .name = "W29GL032CT",
18303 .bustype = BUS_PARALLEL,
18304 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18305 .model_id = WINBOND_W29GL032CT,
18306 .total_size = 4096,
18307 .page_size = 128 * 1024, /* actual page size is 16 */
18308 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18309 .tested = TEST_UNTESTED,
18310 .probe = probe_jedec_29gl,
18311 .probe_timing = TIMING_ZERO,
18312 .block_erasers =
18313 {
18314 {
18315 .eraseblocks = {
18316 {64 * 1024, 63},
18317 {8 * 1024, 8},
18318 },
18319 .block_erase = erase_sector_jedec,
18320 }, {
18321 .eraseblocks = { {4 * 1024 * 1024, 1} },
18322 .block_erase = erase_chip_block_jedec,
18323 },
18324 },
18325 .write = write_jedec_1,
18326 .read = read_memmapped,
18327 .voltage = {2700, 3600},
18328 },
18329
18330 {
18331 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018332 .name = "W29GL064CB",
18333 .bustype = BUS_PARALLEL,
18334 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18335 .model_id = WINBOND_W29GL064CB,
18336 .total_size = 8192,
18337 .page_size = 128 * 1024, /* actual page size is 16 */
18338 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18339 .tested = TEST_UNTESTED,
18340 .probe = probe_jedec_29gl,
18341 .probe_timing = TIMING_ZERO,
18342 .block_erasers =
18343 {
18344 {
18345 .eraseblocks = {
18346 {8 * 1024, 8},
18347 {64 * 1024, 127},
18348 },
18349 .block_erase = erase_sector_jedec,
18350 }, {
18351 .eraseblocks = { {8 * 1024 * 1024, 1} },
18352 .block_erase = erase_chip_block_jedec,
18353 },
18354 },
18355 .write = write_jedec_1,
18356 .read = read_memmapped,
18357 .voltage = {2700, 3600},
18358 },
18359
18360 {
18361 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018362 .name = "W29GL064CH/L",
18363 .bustype = BUS_PARALLEL,
18364 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18365 .model_id = WINBOND_W29GL064CHL,
18366 .total_size = 8192,
18367 .page_size = 128 * 1024, /* actual page size is 16 */
18368 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18369 .tested = TEST_UNTESTED,
18370 .probe = probe_jedec_29gl,
18371 .probe_timing = TIMING_ZERO,
18372 .block_erasers =
18373 {
18374 {
18375 .eraseblocks = { {64 * 1024, 128} },
18376 .block_erase = erase_sector_jedec,
18377 }, {
18378 .eraseblocks = { {8 * 1024 * 1024, 1} },
18379 .block_erase = erase_chip_block_jedec,
18380 },
18381 },
18382 .write = write_jedec_1,
18383 .read = read_memmapped,
18384 .voltage = {2700, 3600},
18385 },
18386
18387 {
18388 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018389 .name = "W29GL064CT",
18390 .bustype = BUS_PARALLEL,
18391 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18392 .model_id = WINBOND_W29GL064CT,
18393 .total_size = 8192,
18394 .page_size = 128 * 1024, /* actual page size is 16 */
18395 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18396 .tested = TEST_UNTESTED,
18397 .probe = probe_jedec_29gl,
18398 .probe_timing = TIMING_ZERO,
18399 .block_erasers =
18400 {
18401 {
18402 .eraseblocks = {
18403 {64 * 1024, 127},
18404 {8 * 1024, 8},
18405 },
18406 .block_erase = erase_sector_jedec,
18407 }, {
18408 .eraseblocks = { {8 * 1024 * 1024, 1} },
18409 .block_erase = erase_chip_block_jedec,
18410 },
18411 },
18412 .write = write_jedec_1,
18413 .read = read_memmapped,
18414 .voltage = {2700, 3600},
18415 },
18416
18417 {
18418 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018419 .name = "W29GL128C",
18420 .bustype = BUS_PARALLEL,
18421 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18422 .model_id = WINBOND_W29GL128CHL,
18423 .total_size = 16384,
18424 .page_size = 128 * 1024, /* actual page size is 16 */
18425 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18426 .tested = TEST_UNTESTED,
18427 .probe = probe_jedec_29gl,
18428 .probe_timing = TIMING_ZERO,
18429 .block_erasers =
18430 {
18431 {
18432 .eraseblocks = { {128 * 1024, 128} },
18433 .block_erase = erase_sector_jedec,
18434 }, {
18435 .eraseblocks = { {16 * 1024 * 1024, 1} },
18436 .block_erase = erase_chip_block_jedec,
18437 },
18438 },
18439 .write = write_jedec_1,
18440 .read = read_memmapped,
18441 .voltage = {2700, 3600},
18442 },
18443
18444 {
18445 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000018446 .name = "W39F010",
18447 .bustype = BUS_PARALLEL,
18448 .manufacture_id = WINBOND_ID,
18449 .model_id = WINBOND_W39F010,
18450 .total_size = 128,
18451 .page_size = 4 * 1024,
18452 .feature_bits = FEATURE_EITHER_RESET,
18453 .tested = TEST_OK_PREW,
18454 .probe = probe_jedec,
18455 .probe_timing = 10,
18456 .block_erasers =
18457 {
18458 {
18459 .eraseblocks = { {4 * 1024, 32} },
18460 .block_erase = erase_block_jedec,
18461 }, {
18462 .eraseblocks = { {128 * 1024, 1} },
18463 .block_erase = erase_chip_block_jedec,
18464 }
18465 },
18466 .printlock = printlock_w39f010,
18467 .write = write_jedec_1,
18468 .read = read_memmapped,
18469 .voltage = {4500, 5500},
18470 },
18471
18472 {
18473 .vendor = "Winbond",
18474 .name = "W39L010",
18475 .bustype = BUS_PARALLEL,
18476 .manufacture_id = WINBOND_ID,
18477 .model_id = WINBOND_W39L010,
18478 .total_size = 128,
18479 .page_size = 4 * 1024,
18480 .feature_bits = FEATURE_EITHER_RESET,
18481 .tested = TEST_UNTESTED,
18482 .probe = probe_jedec,
18483 .probe_timing = 10,
18484 .block_erasers =
18485 {
18486 {
18487 .eraseblocks = { {4 * 1024, 32} },
18488 .block_erase = erase_block_jedec,
18489 }, {
18490 .eraseblocks = { {128 * 1024, 1} },
18491 .block_erase = erase_chip_block_jedec,
18492 }
18493 },
18494 .printlock = printlock_w39l010,
18495 .write = write_jedec_1,
18496 .read = read_memmapped,
18497 .voltage = {3000, 3600},
18498 },
18499
18500 {
18501 .vendor = "Winbond",
18502 .name = "W39L020",
18503 .bustype = BUS_PARALLEL,
18504 .manufacture_id = WINBOND_ID,
18505 .model_id = WINBOND_W39L020,
18506 .total_size = 256,
18507 .page_size = 4 * 1024,
18508 .feature_bits = FEATURE_EITHER_RESET,
18509 .tested = TEST_UNTESTED,
18510 .probe = probe_jedec,
18511 .probe_timing = 10,
18512 .block_erasers =
18513 {
18514 {
18515 .eraseblocks = { {4 * 1024, 64} },
18516 .block_erase = erase_block_jedec,
18517 }, {
18518 .eraseblocks = { {64 * 1024, 4} },
18519 .block_erase = erase_sector_jedec,
18520 }, {
18521 .eraseblocks = { {256 * 1024, 1} },
18522 .block_erase = erase_chip_block_jedec,
18523 }
18524 },
18525 .printlock = printlock_w39l020,
18526 .write = write_jedec_1,
18527 .read = read_memmapped,
18528 .voltage = {3000, 3600},
18529 },
18530
18531 {
18532 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000018533 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018534 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000018535 .manufacture_id = WINBOND_ID,
18536 .model_id = WINBOND_W39L040,
18537 .total_size = 512,
18538 .page_size = 64 * 1024,
18539 .feature_bits = FEATURE_EITHER_RESET,
18540 .tested = TEST_OK_PR,
18541 .probe = probe_jedec,
18542 .probe_timing = 10,
18543 .block_erasers =
18544 {
18545 {
18546 .eraseblocks = { {4 * 1024, 128} },
18547 .block_erase = erase_block_jedec,
18548 }, {
18549 .eraseblocks = { {64 * 1024, 8} },
18550 .block_erase = erase_sector_jedec,
18551 }, {
18552 .eraseblocks = { {512 * 1024, 1} },
18553 .block_erase = erase_chip_block_jedec,
18554 }
18555 },
18556 .printlock = printlock_w39l040,
18557 .write = write_jedec_1,
18558 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018559 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000018560 },
18561
18562 {
18563 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018564 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018565 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018566 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018567 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018568 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018569 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018570 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000018571 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018572 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000018573 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018574 .block_erasers =
18575 {
18576 {
18577 .eraseblocks = { {64 * 1024, 8} },
18578 .block_erase = erase_sector_jedec,
18579 }, {
18580 .eraseblocks = { {512 * 1024, 1} },
18581 .block_erase = erase_chip_block_jedec,
18582 }
18583 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018584 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000018585 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018586 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018587 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018588 },
18589
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018590 {
18591 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018592 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018593 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018594 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018595 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018596 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018597 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018598 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000018599 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018600 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000018601 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018602 .block_erasers =
18603 {
18604 {
18605 .eraseblocks = { {64 * 1024, 8} },
18606 .block_erase = erase_sector_jedec,
18607 }, {
18608 .eraseblocks = { {512 * 1024, 1} },
18609 .block_erase = erase_chip_block_jedec,
18610 }
18611 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018612 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000018613 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018614 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018615 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018616 },
18617
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018618 {
18619 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018620 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018621 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018622 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018623 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018624 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018625 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018626 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000018627 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000018628 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018629 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018630 .block_erasers =
18631 {
18632 {
18633 .eraseblocks = { {64 * 1024, 8} },
18634 .block_erase = erase_sector_jedec,
18635 }, {
18636 .eraseblocks = { {512 * 1024, 1} },
18637 .block_erase = erase_chip_block_jedec,
18638 }
18639 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000018640 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000018641 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018642 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018643 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018644 },
18645
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018646 {
18647 .vendor = "Winbond",
18648 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018649 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018650 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018651 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018652 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018653 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000018654 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000018655 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018656 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000018657 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018658 .block_erasers =
18659 {
18660 {
18661 .eraseblocks = { {4 * 1024, 128} },
18662 .block_erase = erase_block_jedec,
18663 }, {
18664 .eraseblocks = { {64 * 1024, 8} },
18665 .block_erase = erase_sector_jedec,
18666 }, {
18667 .eraseblocks = { {512 * 1024, 1} },
18668 .block_erase = erase_chip_block_jedec,
18669 }
18670 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018671 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000018672 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000018673 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018674 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018675 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018676 },
18677
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018678 {
18679 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018680 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018681 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018682 .manufacture_id = WINBOND_ID,
18683 .model_id = WINBOND_W39V040B,
18684 .total_size = 512,
18685 .page_size = 64 * 1024,
18686 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000018687 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018688 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000018689 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018690 .block_erasers =
18691 {
18692 {
18693 .eraseblocks = { {64 * 1024, 8} },
18694 .block_erase = erase_sector_jedec,
18695 }, {
18696 .eraseblocks = { {512 * 1024, 1} },
18697 .block_erase = erase_chip_block_jedec,
18698 }
18699 },
18700 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000018701 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018702 .write = write_jedec_1,
18703 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018704 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018705 },
18706
18707 {
18708 .vendor = "Winbond",
18709 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018710 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018711 .manufacture_id = WINBOND_ID,
18712 .model_id = WINBOND_W39V040C,
18713 .total_size = 512,
18714 .page_size = 64 * 1024,
18715 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000018716 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018717 .probe = probe_jedec,
18718 .probe_timing = 10,
18719 .block_erasers =
18720 {
18721 {
18722 .eraseblocks = { {64 * 1024, 8} },
18723 .block_erase = erase_sector_jedec,
18724 }, {
18725 .eraseblocks = { {512 * 1024, 1} },
18726 .block_erase = erase_chip_block_jedec,
18727 }
18728 },
18729 .printlock = printlock_w39v040fc,
18730 .write = write_jedec_1,
18731 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018732 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018733 },
18734
18735 {
18736 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018737 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018738 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018739 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018740 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018741 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000018742 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018743 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000018744 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018745 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000018746 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018747 .block_erasers =
18748 {
18749 {
18750 .eraseblocks = { {64 * 1024, 16} },
18751 .block_erase = erase_sector_jedec,
18752 }, {
18753 .eraseblocks = { {1024 * 1024, 1} },
18754 .block_erase = erase_chip_block_jedec,
18755 }
18756 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018757 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000018758 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018759 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018760 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018761 },
18762
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018763 {
18764 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018765 .name = "W39V080FA",
18766 .bustype = BUS_FWH,
18767 .manufacture_id = WINBOND_ID,
18768 .model_id = WINBOND_W39V080FA,
18769 .total_size = 1024,
18770 .page_size = 64 * 1024,
18771 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
18772 .tested = TEST_OK_PREW,
18773 .probe = probe_jedec,
18774 .probe_timing = 10,
18775 .block_erasers =
18776 {
18777 {
18778 .eraseblocks = { {64 * 1024, 16} },
18779 .block_erase = erase_sector_jedec,
18780 }, {
18781 .eraseblocks = { {1024 * 1024, 1} },
18782 .block_erase = erase_chip_block_jedec,
18783 }
18784 },
18785 .printlock = printlock_w39v080fa,
18786 .unlock = unlock_regspace2_uniform_64k,
18787 .write = write_jedec_1,
18788 .read = read_memmapped,
18789 .voltage = {3000, 3600}, /* Also has 12V fast program */
18790 },
18791
18792 {
18793 .vendor = "Winbond",
18794 .name = "W39V080FA (dual mode)",
18795 .bustype = BUS_FWH,
18796 .manufacture_id = WINBOND_ID,
18797 .model_id = WINBOND_W39V080FA_DM,
18798 .total_size = 512,
18799 .page_size = 64 * 1024,
18800 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
18801 .tested = TEST_UNTESTED,
18802 .probe = probe_jedec,
18803 .probe_timing = 10,
18804 .block_erasers =
18805 {
18806 {
18807 .eraseblocks = { {64 * 1024, 8} },
18808 .block_erase = erase_sector_jedec,
18809 }, {
18810 .eraseblocks = { {512 * 1024, 1} },
18811 .block_erase = erase_chip_block_jedec,
18812 }
18813 },
18814 .printlock = printlock_w39v080fa_dual,
18815 .write = write_jedec_1,
18816 .read = read_memmapped,
18817 .voltage = {3000, 3600}, /* Also has 12V fast program */
18818 },
18819
18820 {
18821 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018822 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018823 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018824 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018825 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018826 .total_size = 256,
18827 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018828 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000018829 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018830 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018831 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018832 .block_erasers =
18833 {
18834 {
18835 .eraseblocks = {
18836 {128 * 1024, 1},
18837 {96 * 1024, 1},
18838 {8 * 1024, 2},
18839 {16 * 1024, 1},
18840 },
18841 .block_erase = erase_sector_jedec,
18842 }, {
18843 .eraseblocks = { {256 * 1024, 1} },
18844 .block_erase = erase_chip_block_jedec,
18845 }
18846 },
Sean Nelson35727f72010-01-28 23:55:12 +000018847 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018848 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018849 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018850 },
18851
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018852 {
18853 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018854 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018855 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018856 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018857 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018858 .total_size = 256,
18859 .page_size = 128,
18860 .feature_bits = FEATURE_EITHER_RESET,
18861 .tested = TEST_OK_PROBE,
18862 .probe = probe_jedec,
18863 .probe_timing = 10,
18864 .block_erasers =
18865 {
18866 {
18867 .eraseblocks = { {256 * 1024, 1} },
18868 .block_erase = erase_chip_block_jedec,
18869 }
18870 },
18871 .write = write_jedec_1,
18872 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018873 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018874 },
18875
18876 {
18877 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018878 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018879 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018880 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018881 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018882 .total_size = 256,
18883 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018884 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018885 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018886 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018887 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018888 .block_erasers =
18889 {
18890 {
18891 .eraseblocks = {
18892 {64 * 1024, 3},
18893 {32 * 1024, 1},
18894 {8 * 1024, 2},
18895 {16 * 1024, 1},
18896 },
18897 .block_erase = erase_sector_jedec,
18898 }, {
18899 .eraseblocks = { {256 * 1024, 1} },
18900 .block_erase = erase_chip_block_jedec,
18901 }
18902 },
Sean Nelson35727f72010-01-28 23:55:12 +000018903 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018904 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018905 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018906 },
18907
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018908 {
18909 .vendor = "Winbond",
18910 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018911 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018912 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018913 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018914 .total_size = 256,
18915 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018916 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000018917 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018918 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018919 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018920 .block_erasers =
18921 {
18922 {
18923 .eraseblocks = {
18924 {64 * 1024, 3},
18925 {32 * 1024, 1},
18926 {8 * 1024, 2},
18927 {16 * 1024, 1},
18928 },
18929 .block_erase = erase_sector_jedec,
18930 }, {
18931 .eraseblocks = { {256 * 1024, 1} },
18932 .block_erase = erase_chip_block_jedec,
18933 }
18934 },
Sean Nelson35727f72010-01-28 23:55:12 +000018935 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018936 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018937 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018938 },
18939
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018940 {
luke heef884232020-12-28 18:22:21 +080018941 .vendor = "XMC",
18942 .name = "XM25QH128C",
18943 .bustype = BUS_SPI,
18944 .manufacture_id = ST_ID,
18945 .model_id = XMC_XM25QH128C,
18946 .total_size = 16384,
18947 .page_size = 256,
18948 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
18949 .tested = TEST_UNTESTED,
18950 .probe = probe_spi_rdid,
18951 .probe_timing = TIMING_ZERO,
18952 .block_erasers =
18953 {
18954 {
18955 .eraseblocks = { {4 * 1024, 4096} },
18956 .block_erase = spi_block_erase_20,
18957 }, {
18958 .eraseblocks = { {32 * 1024, 512} },
18959 .block_erase = spi_block_erase_52,
18960 }, {
18961 .eraseblocks = { {64 * 1024, 256} },
18962 .block_erase = spi_block_erase_d8,
18963 }, {
18964 .eraseblocks = { {16 * 1024 * 1024, 1} },
18965 .block_erase = spi_block_erase_60,
18966 }, {
18967 .eraseblocks = { {16 * 1024 * 1024, 1} },
18968 .block_erase = spi_block_erase_c7,
18969 }
18970 },
18971 .printlock = spi_prettyprint_status_register_plain,
18972 .unlock = spi_disable_blockprotect,
18973 .write = spi_chip_write_256,
18974 .read = spi_chip_read,
18975 .voltage = {2700, 3600},
18976 },
18977
18978 {
18979 .vendor = "XMC",
18980 .name = "XM25QH256C",
18981 .bustype = BUS_SPI,
18982 .manufacture_id = ST_ID,
18983 .model_id = XMC_XM25QH256C,
18984 .total_size = 32768,
18985 .page_size = 256,
18986 /* supports SFDP */
18987 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
18988 .tested = TEST_UNTESTED,
18989 .probe = probe_spi_rdid,
18990 .probe_timing = TIMING_ZERO,
18991 .block_erasers =
18992 {
18993 {
18994 .eraseblocks = { {4 * 1024, 8192} },
18995 .block_erase = spi_block_erase_21,
18996 }, {
18997 .eraseblocks = { {4 * 1024, 8192} },
18998 .block_erase = spi_block_erase_20,
18999 }, {
19000 .eraseblocks = { {32 * 1024, 1024} },
19001 .block_erase = spi_block_erase_52,
19002 }, {
19003 .eraseblocks = { {64 * 1024, 512} },
19004 .block_erase = spi_block_erase_dc,
19005 }, {
19006 .eraseblocks = { {64 * 1024, 512} },
19007 .block_erase = spi_block_erase_d8,
19008 }, {
19009 .eraseblocks = { {32 * 1024 * 1024, 1} },
19010 .block_erase = spi_block_erase_60,
19011 }, {
19012 .eraseblocks = { {32 * 1024 * 1024, 1} },
19013 .block_erase = spi_block_erase_c7,
19014 }
19015 },
19016 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19017 .unlock = spi_disable_blockprotect,
19018 .write = spi_chip_write_256,
19019 .read = spi_chip_read,
19020 .voltage = {2700, 3600},
19021 },
19022
19023 {
19024 .vendor = "XMC",
19025 .name = "XM25QH64C",
19026 .bustype = BUS_SPI,
19027 .manufacture_id = ST_ID,
19028 .model_id = XMC_XM25QH64C,
19029 .total_size = 8192,
19030 .page_size = 256,
19031 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19032 .tested = TEST_UNTESTED,
19033 .probe = probe_spi_rdid,
19034 .probe_timing = TIMING_ZERO,
19035 .block_erasers =
19036 {
19037 {
19038 .eraseblocks = { {4 * 1024, 2048} },
19039 .block_erase = spi_block_erase_20,
19040 }, {
19041 .eraseblocks = { {32 * 1024, 256} },
19042 .block_erase = spi_block_erase_52,
19043 }, {
19044 .eraseblocks = { {64 * 1024, 128} },
19045 .block_erase = spi_block_erase_d8,
19046 }, {
19047 .eraseblocks = { {8 * 1024 * 1024, 1} },
19048 .block_erase = spi_block_erase_60,
19049 }, {
19050 .eraseblocks = { {8 * 1024 * 1024, 1} },
19051 .block_erase = spi_block_erase_c7,
19052 }
19053 },
19054 .printlock = spi_prettyprint_status_register_plain,
19055 .unlock = spi_disable_blockprotect,
19056 .write = spi_chip_write_256,
19057 .read = spi_chip_read,
19058 .voltage = {2700, 3600},
19059 },
19060
19061 {
19062 .vendor = "XMC",
19063 .name = "XM25QU128C",
19064 .bustype = BUS_SPI,
19065 .manufacture_id = ST_ID,
19066 .model_id = XMC_XM25QU128C,
19067 .total_size = 16384,
19068 .page_size = 256,
19069 /* supports SFDP */
19070 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19071 .tested = TEST_UNTESTED,
19072 .probe = probe_spi_rdid,
19073 .probe_timing = TIMING_ZERO,
19074 .block_erasers =
19075 {
19076 {
19077 .eraseblocks = { {4 * 1024, 4096} },
19078 .block_erase = spi_block_erase_20,
19079 }, {
19080 .eraseblocks = { {32 * 1024, 512} },
19081 .block_erase = spi_block_erase_52,
19082 }, {
19083 .eraseblocks = { {64 * 1024, 256} },
19084 .block_erase = spi_block_erase_d8,
19085 }, {
19086 .eraseblocks = { {16 * 1024 * 1024, 1} },
19087 .block_erase = spi_block_erase_60,
19088 }, {
19089 .eraseblocks = { {16 * 1024 * 1024, 1} },
19090 .block_erase = spi_block_erase_c7,
19091 }
19092 },
19093 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19094 .unlock = spi_disable_blockprotect,
19095 .write = spi_chip_write_256,
19096 .read = spi_chip_read,
19097 .voltage = {1650, 1950},
19098 },
19099
19100 {
19101 .vendor = "XMC",
19102 .name = "XM25QU256C",
19103 .bustype = BUS_SPI,
19104 .manufacture_id = ST_ID,
19105 .model_id = XMC_XM25QU256C,
19106 .total_size = 32768,
19107 .page_size = 256,
19108 /* supports SFDP */
19109 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
19110 .tested = TEST_UNTESTED,
19111 .probe = probe_spi_rdid,
19112 .probe_timing = TIMING_ZERO,
19113 .block_erasers =
19114 {
19115 {
19116 .eraseblocks = { {4 * 1024, 8192} },
19117 .block_erase = spi_block_erase_21,
19118 }, {
19119 .eraseblocks = { {4 * 1024, 8192} },
19120 .block_erase = spi_block_erase_20,
19121 }, {
19122 .eraseblocks = { {32 * 1024, 1024} },
19123 .block_erase = spi_block_erase_52,
19124 }, {
19125 .eraseblocks = { {64 * 1024, 512} },
19126 .block_erase = spi_block_erase_dc,
19127 }, {
19128 .eraseblocks = { {64 * 1024, 512} },
19129 .block_erase = spi_block_erase_d8,
19130 }, {
19131 .eraseblocks = { {32 * 1024 * 1024, 1} },
19132 .block_erase = spi_block_erase_60,
19133 }, {
19134 .eraseblocks = { {32 * 1024 * 1024, 1} },
19135 .block_erase = spi_block_erase_c7,
19136 }
19137 },
19138 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19139 .unlock = spi_disable_blockprotect,
19140 .write = spi_chip_write_256,
19141 .read = spi_chip_read,
19142 .voltage = {1650, 1950},
19143 },
19144
19145 {
19146 .vendor = "XMC",
19147 .name = "XM25QU64C",
19148 .bustype = BUS_SPI,
19149 .manufacture_id = ST_ID,
19150 .model_id = XMC_XM25QU64C,
19151 .total_size = 8192,
19152 .page_size = 256,
19153 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19154 .tested = TEST_UNTESTED,
19155 .probe = probe_spi_rdid,
19156 .probe_timing = TIMING_ZERO,
19157 .block_erasers =
19158 {
19159 {
19160 .eraseblocks = { {4 * 1024, 2048} },
19161 .block_erase = spi_block_erase_20,
19162 }, {
19163 .eraseblocks = { {32 * 1024, 256} },
19164 .block_erase = spi_block_erase_52,
19165 }, {
19166 .eraseblocks = { {64 * 1024, 128} },
19167 .block_erase = spi_block_erase_d8,
19168 }, {
19169 .eraseblocks = { {8 * 1024 * 1024, 1} },
19170 .block_erase = spi_block_erase_60,
19171 }, {
19172 .eraseblocks = { {8 * 1024 * 1024, 1} },
19173 .block_erase = spi_block_erase_c7,
19174 }
19175 },
19176 .printlock = spi_prettyprint_status_register_plain,
19177 .unlock = spi_disable_blockprotect,
19178 .write = spi_chip_write_256,
19179 .read = spi_chip_read,
19180 .voltage = {1650, 1950},
19181 },
19182
19183 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100019184 .vendor = "Zetta Device",
19185 .name = "ZD25D20",
19186 .bustype = BUS_SPI,
19187 .manufacture_id = ZETTADEVICE_ID,
19188 .model_id = ZETTADEVICE_ZD25D20,
19189 .total_size = 256,
19190 .page_size = 256,
19191 .feature_bits = FEATURE_WRSR_WREN,
19192 .tested = TEST_UNTESTED,
19193 .probe = probe_spi_rdid,
19194 .probe_timing = TIMING_ZERO,
19195 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080019196 {
19197 {
19198 .eraseblocks = { {4 * 1024, 64} },
19199 .block_erase = spi_block_erase_20,
19200 }, {
19201 .eraseblocks = { {32 * 1024, 8} },
19202 .block_erase = spi_block_erase_52,
19203 }, {
19204 .eraseblocks = { {64 * 1024, 4} },
19205 .block_erase = spi_block_erase_d8,
19206 }, {
19207 .eraseblocks = { {256 * 1024, 1} },
19208 .block_erase = spi_block_erase_60,
19209 }, {
19210 .eraseblocks = { {256 * 1024, 1} },
19211 .block_erase = spi_block_erase_c7,
19212 }
19213 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100019214 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19215 .unlock = spi_disable_blockprotect,
19216 .write = spi_chip_write_256,
19217 .read = spi_chip_read,
19218 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080019219 },
19220
19221 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100019222 .vendor = "Zetta Device",
19223 .name = "ZD25D40",
19224 .bustype = BUS_SPI,
19225 .manufacture_id = ZETTADEVICE_ID,
19226 .model_id = ZETTADEVICE_ZD25D40,
19227 .total_size = 512,
19228 .page_size = 256,
19229 .feature_bits = FEATURE_WRSR_WREN,
19230 .tested = TEST_UNTESTED,
19231 .probe = probe_spi_rdid,
19232 .probe_timing = TIMING_ZERO,
19233 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080019234 {
19235 {
19236 .eraseblocks = { {4 * 1024, 128} },
19237 .block_erase = spi_block_erase_20,
19238 }, {
19239 .eraseblocks = { {32 * 1024, 16} },
19240 .block_erase = spi_block_erase_52,
19241 }, {
19242 .eraseblocks = { {64 * 1024, 8} },
19243 .block_erase = spi_block_erase_d8,
19244 }, {
19245 .eraseblocks = { {512 * 1024, 1} },
19246 .block_erase = spi_block_erase_60,
19247 }, {
19248 .eraseblocks = { {512 * 1024, 1} },
19249 .block_erase = spi_block_erase_c7,
19250 }
19251 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100019252 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19253 .unlock = spi_disable_blockprotect,
19254 .write = spi_chip_write_256,
19255 .read = spi_chip_read,
19256 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080019257 },
19258
Stefan Taunerac1b4c82012-02-17 14:51:04 +000019259 {
Alan Greendd592202019-08-23 10:11:37 +100019260 .vendor = "Unknown",
19261 .name = "SFDP-capable chip",
19262 .bustype = BUS_SPI,
19263 .manufacture_id = GENERIC_MANUF_ID,
19264 .model_id = SFDP_DEVICE_ID,
19265 .total_size = 0, /* set by probing function */
19266 .page_size = 0, /* set by probing function */
19267 .feature_bits = 0, /* set by probing function */
19268 /* We present our own "report this" text hence we do not */
19269 /* want the default "This flash part has status UNTESTED..." */
19270 /* text to be printed. */
19271 .tested = TEST_OK_PREW,
19272 .probe = probe_spi_sfdp,
19273 .block_erasers = {}, /* set by probing function */
19274 .unlock = spi_disable_blockprotect, /* is this safe? */
19275 .write = NULL, /* set by probing function */
19276 .read = spi_chip_read,
19277 /* FIXME: some vendor extensions define this */
19278 .voltage = {0},
19279 },
19280
19281 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000019282 .vendor = "Programmer",
19283 .name = "Opaque flash chip",
19284 .bustype = BUS_PROG,
19285 .manufacture_id = PROGMANUF_ID,
19286 .model_id = PROGDEV_ID,
19287 .total_size = 0,
19288 .page_size = 256,
19289 /* probe is assumed to work, rest will be filled in by probe */
19290 .tested = TEST_OK_PROBE,
19291 .probe = probe_opaque,
19292 /* eraseblock sizes will be set by the probing function */
19293 .block_erasers =
19294 {
19295 {
19296 .block_erase = erase_opaque,
19297 }
19298 },
19299 .write = write_opaque,
19300 .read = read_opaque,
19301 },
19302
19303 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000019304 .vendor = "AMIC",
19305 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019306 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000019307 .manufacture_id = AMIC_ID,
19308 .model_id = GENERIC_DEVICE_ID,
19309 .total_size = 0,
19310 .page_size = 256,
19311 .tested = TEST_BAD_PREW,
19312 .probe = probe_spi_rdid4,
19313 .probe_timing = TIMING_ZERO,
19314 .write = NULL,
19315 .read = NULL,
19316 },
19317
19318 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019319 .vendor = "Atmel",
19320 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019321 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019322 .manufacture_id = ATMEL_ID,
19323 .model_id = GENERIC_DEVICE_ID,
19324 .total_size = 0,
19325 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019326 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019327 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019328 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019329 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019330 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019331 },
19332
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019333 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000019334 .vendor = "Eon",
19335 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019336 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019337 .manufacture_id = EON_ID_NOPREFIX,
19338 .model_id = GENERIC_DEVICE_ID,
19339 .total_size = 0,
19340 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019341 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019342 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019343 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019344 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019345 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019346 },
19347
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019348 {
19349 .vendor = "Macronix",
19350 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019351 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000019352 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019353 .model_id = GENERIC_DEVICE_ID,
19354 .total_size = 0,
19355 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019356 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019357 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019358 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019359 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019360 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019361 },
19362
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019363 {
19364 .vendor = "PMC",
19365 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019366 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019367 .manufacture_id = PMC_ID,
19368 .model_id = GENERIC_DEVICE_ID,
19369 .total_size = 0,
19370 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019371 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019372 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019373 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019374 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019375 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019376 },
19377
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019378 {
19379 .vendor = "SST",
19380 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019381 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019382 .manufacture_id = SST_ID,
19383 .model_id = GENERIC_DEVICE_ID,
19384 .total_size = 0,
19385 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019386 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019387 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019388 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019389 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019390 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019391 },
19392
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019393 {
19394 .vendor = "ST",
19395 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019396 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019397 .manufacture_id = ST_ID,
19398 .model_id = GENERIC_DEVICE_ID,
19399 .total_size = 0,
19400 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019401 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019402 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019403 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019404 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019405 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019406 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000019407
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019408 {
Sean Nelson118e1d62009-11-24 02:08:11 +000019409 .vendor = "Sanyo",
19410 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019411 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000019412 .manufacture_id = SANYO_ID,
19413 .model_id = GENERIC_DEVICE_ID,
19414 .total_size = 0,
19415 .page_size = 256,
19416 .tested = TEST_BAD_PREW,
19417 .probe = probe_spi_rdid,
19418 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000019419 .write = NULL,
19420 .read = NULL,
19421 },
19422
19423 {
Stefan Taunereb582572012-09-21 12:52:50 +000019424 .vendor = "Winbond",
19425 .name = "unknown Winbond (ex Nexcom) SPI chip",
19426 .bustype = BUS_SPI,
19427 .manufacture_id = WINBOND_NEX_ID,
19428 .model_id = GENERIC_DEVICE_ID,
19429 .total_size = 0,
19430 .page_size = 256,
19431 .tested = TEST_BAD_PREW,
19432 .probe = probe_spi_rdid,
19433 .probe_timing = TIMING_ZERO,
19434 .write = NULL,
19435 .read = NULL,
19436 },
19437
19438 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019439 .vendor = "Generic",
19440 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019441 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019442 .manufacture_id = GENERIC_MANUF_ID,
19443 .model_id = GENERIC_DEVICE_ID,
19444 .total_size = 0,
19445 .page_size = 256,
19446 .tested = TEST_BAD_PREW,
19447 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019448 .write = NULL,
19449 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000019450
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019451 {
19452 .vendor = "Generic",
19453 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019454 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019455 .manufacture_id = GENERIC_MANUF_ID,
19456 .model_id = GENERIC_DEVICE_ID,
19457 .total_size = 0,
19458 .page_size = 256,
19459 .tested = TEST_BAD_PREW,
19460 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019461 .write = NULL,
19462 },
19463
Stefan Tauner96658be2014-05-26 22:05:31 +000019464 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000019465};
Stefan Tauner96658be2014-05-26 22:05:31 +000019466
19467const unsigned int flashchips_size = ARRAY_SIZE(flashchips);