blob: 7ed24571a14c60bfc25add685a284e551756e3a0 [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,
Simon Buhrowd173ed42021-09-29 09:28:07 +02004398 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004399 .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 */
Nikolai Artemiev9de3f872021-10-20 22:32:25 +11006282 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT,
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,
Nikolai Artemiev9de3f872021-10-20 22:32:25 +11006671 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN |
6672 FEATURE_WRSR_EXT | FEATURE_WRSR2,
Nikolai Artemieve64ef6d2021-03-23 17:15:40 +11006673 .tested = TEST_OK_PREW,
Alan Green86fc9cf2019-08-26 15:02:12 +10006674 .probe = probe_spi_rdid,
6675 .probe_timing = TIMING_ZERO,
6676 .block_erasers =
6677 {
6678 {
6679 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber5374dc32019-10-04 16:16:15 +02006680 .block_erase = spi_block_erase_21,
6681 }, {
6682 .eraseblocks = { {4 * 1024, 8192} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006683 .block_erase = spi_block_erase_20,
6684 }, {
6685 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber5374dc32019-10-04 16:16:15 +02006686 .block_erase = spi_block_erase_5c,
6687 }, {
6688 .eraseblocks = { {32 * 1024, 1024} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006689 .block_erase = spi_block_erase_52,
6690 }, {
6691 .eraseblocks = { {64 * 1024, 512} },
Nico Huber5374dc32019-10-04 16:16:15 +02006692 .block_erase = spi_block_erase_dc,
6693 }, {
6694 .eraseblocks = { {64 * 1024, 512} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006695 .block_erase = spi_block_erase_d8,
6696 }, {
6697 .eraseblocks = { {32 * 1024 * 1024, 1} },
6698 .block_erase = spi_block_erase_60,
6699 }, {
6700 .eraseblocks = { {32 * 1024 * 1024, 1} },
6701 .block_erase = spi_block_erase_c7,
6702 }
6703 },
6704 .printlock = spi_prettyprint_status_register_bp3_srwd,
6705 .unlock = spi_disable_blockprotect,
6706 .write = spi_chip_write_256,
6707 .read = spi_chip_read,
6708 .voltage = {2700, 3600},
6709 },
6710
6711 {
6712 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006713 .name = "GD25Q32(B)",
6714 .bustype = BUS_SPI,
6715 .manufacture_id = GIGADEVICE_ID,
6716 .model_id = GIGADEVICE_GD25Q32,
6717 .total_size = 4096,
6718 .page_size = 256,
6719 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nikolai Artemiev9de3f872021-10-20 22:32:25 +11006720 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006721 .tested = TEST_OK_PREW,
6722 .probe = probe_spi_rdid,
6723 .probe_timing = TIMING_ZERO,
6724 .block_erasers =
6725 {
6726 {
6727 .eraseblocks = { {4 * 1024, 1024} },
6728 .block_erase = spi_block_erase_20,
6729 }, {
6730 .eraseblocks = { {32 * 1024, 128} },
6731 .block_erase = spi_block_erase_52,
6732 }, {
6733 .eraseblocks = { {64 * 1024, 64} },
6734 .block_erase = spi_block_erase_d8,
6735 }, {
6736 .eraseblocks = { {4 * 1024 * 1024, 1} },
6737 .block_erase = spi_block_erase_60,
6738 }, {
6739 .eraseblocks = { {4 * 1024 * 1024, 1} },
6740 .block_erase = spi_block_erase_c7,
6741 }
6742 },
6743 .printlock = spi_prettyprint_status_register_bp4_srwd,
6744 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6745 .write = spi_chip_write_256,
6746 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6747 .voltage = {2700, 3600},
6748 },
6749
6750 {
6751 .vendor = "GigaDevice",
6752 .name = "GD25Q40(B)",
6753 .bustype = BUS_SPI,
6754 .manufacture_id = GIGADEVICE_ID,
6755 .model_id = GIGADEVICE_GD25Q40,
6756 .total_size = 512,
6757 .page_size = 256,
6758 .feature_bits = FEATURE_WRSR_WREN,
6759 .tested = TEST_UNTESTED,
6760 .probe = probe_spi_rdid,
6761 .probe_timing = TIMING_ZERO,
6762 .block_erasers =
6763 {
6764 {
6765 .eraseblocks = { {4 * 1024, 128} },
6766 .block_erase = spi_block_erase_20,
6767 }, {
6768 .eraseblocks = { {32 * 1024, 16} },
6769 .block_erase = spi_block_erase_52,
6770 }, {
6771 .eraseblocks = { {64 * 1024, 8} },
6772 .block_erase = spi_block_erase_d8,
6773 }, {
6774 .eraseblocks = { {512 * 1024, 1} },
6775 .block_erase = spi_block_erase_60,
6776 }, {
6777 .eraseblocks = { {512 * 1024, 1} },
6778 .block_erase = spi_block_erase_c7,
6779 }
6780 },
6781 .printlock = spi_prettyprint_status_register_bp4_srwd,
6782 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6783 .write = spi_chip_write_256,
6784 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6785 .voltage = {2700, 3600},
6786 },
6787
6788 {
6789 .vendor = "GigaDevice",
6790 .name = "GD25Q512",
6791 .bustype = BUS_SPI,
6792 .manufacture_id = GIGADEVICE_ID,
6793 .model_id = GIGADEVICE_GD25Q512,
6794 .total_size = 64,
6795 .page_size = 256,
6796 .feature_bits = FEATURE_WRSR_WREN,
6797 .tested = TEST_OK_PREW,
6798 .probe = probe_spi_rdid,
6799 .probe_timing = TIMING_ZERO,
6800 .block_erasers =
6801 {
6802 {
6803 .eraseblocks = { {4 * 1024, 16} },
6804 .block_erase = spi_block_erase_20,
6805 }, {
6806 .eraseblocks = { {32 * 1024, 2} },
6807 .block_erase = spi_block_erase_52,
6808 }, {
6809 .eraseblocks = { {64 * 1024, 1} },
6810 .block_erase = spi_block_erase_60,
6811 }, {
6812 .eraseblocks = { {64 * 1024, 1} },
6813 .block_erase = spi_block_erase_c7,
6814 }
6815 },
6816 .printlock = spi_prettyprint_status_register_bp4_srwd,
6817 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6818 .write = spi_chip_write_256,
6819 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6820 .voltage = {2700, 3600},
6821 },
6822
6823 {
6824 .vendor = "GigaDevice",
6825 .name = "GD25Q64(B)",
6826 .bustype = BUS_SPI,
6827 .manufacture_id = GIGADEVICE_ID,
6828 .model_id = GIGADEVICE_GD25Q64,
6829 .total_size = 8192,
6830 .page_size = 256,
6831 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6832 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6833 .tested = TEST_OK_PREW,
6834 .probe = probe_spi_rdid,
6835 .probe_timing = TIMING_ZERO,
6836 .block_erasers =
6837 {
6838 {
6839 .eraseblocks = { {4 * 1024, 2048} },
6840 .block_erase = spi_block_erase_20,
6841 }, {
6842 .eraseblocks = { {32 * 1024, 256} },
6843 .block_erase = spi_block_erase_52,
6844 }, {
6845 .eraseblocks = { {64 * 1024, 128} },
6846 .block_erase = spi_block_erase_d8,
6847 }, {
6848 .eraseblocks = { {8 * 1024 * 1024, 1} },
6849 .block_erase = spi_block_erase_60,
6850 }, {
6851 .eraseblocks = { {8 * 1024 * 1024, 1} },
6852 .block_erase = spi_block_erase_c7,
6853 }
6854 },
6855 .printlock = spi_prettyprint_status_register_bp4_srwd,
6856 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6857 .write = spi_chip_write_256,
6858 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6859 .voltage = {2700, 3600},
6860 },
6861
6862 {
6863 .vendor = "GigaDevice",
6864 .name = "GD25Q80(B)",
6865 .bustype = BUS_SPI,
6866 .manufacture_id = GIGADEVICE_ID,
6867 .model_id = GIGADEVICE_GD25Q80,
6868 .total_size = 1024,
6869 .page_size = 256,
6870 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6871 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6872 .tested = TEST_OK_PREW,
6873 .probe = probe_spi_rdid,
6874 .probe_timing = TIMING_ZERO,
6875 .block_erasers =
6876 {
6877 {
6878 .eraseblocks = { {4 * 1024, 256} },
6879 .block_erase = spi_block_erase_20,
6880 }, {
6881 .eraseblocks = { {32 * 1024, 32} },
6882 .block_erase = spi_block_erase_52,
6883 }, {
6884 .eraseblocks = { {64 * 1024, 16} },
6885 .block_erase = spi_block_erase_d8,
6886 }, {
6887 .eraseblocks = { {1024 * 1024, 1} },
6888 .block_erase = spi_block_erase_60,
6889 }, {
6890 .eraseblocks = { {1024 * 1024, 1} },
6891 .block_erase = spi_block_erase_c7,
6892 }
6893 },
6894 .printlock = spi_prettyprint_status_register_bp4_srwd,
6895 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6896 .write = spi_chip_write_256,
6897 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6898 .voltage = {2700, 3600},
6899 },
6900
6901 {
6902 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006903 .name = "GD25T80",
6904 .bustype = BUS_SPI,
6905 .manufacture_id = GIGADEVICE_ID,
6906 .model_id = GIGADEVICE_GD25T80,
6907 .total_size = 1024,
6908 .page_size = 256,
6909 /* OTP: 256B total; enter 0x3A */
6910 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6911 .tested = TEST_UNTESTED,
6912 .probe = probe_spi_rdid,
6913 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006914 .block_erasers =
6915 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006916 {
6917 .eraseblocks = { {4 * 1024, 256} },
6918 .block_erase = spi_block_erase_20,
6919 }, {
6920 .eraseblocks = { {64 * 1024, 16} },
6921 .block_erase = spi_block_erase_52,
6922 }, {
6923 .eraseblocks = { {64 * 1024, 16} },
6924 .block_erase = spi_block_erase_d8,
6925 }, {
6926 .eraseblocks = { {1024 * 1024, 1} },
6927 .block_erase = spi_block_erase_60,
6928 }, {
6929 .eraseblocks = { {1024 * 1024, 1} },
6930 .block_erase = spi_block_erase_c7,
6931 }
6932 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006933 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006934 .unlock = spi_disable_blockprotect,
6935 .write = spi_chip_write_256,
6936 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006937 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006938 },
6939
6940 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006941 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006942 .name = "GD25VQ16C",
6943 .bustype = BUS_SPI,
6944 .manufacture_id = GIGADEVICE_ID,
6945 .model_id = GIGADEVICE_GD25VQ16C,
6946 .total_size = 2 * 1024,
6947 .page_size = 256,
6948 /* Supports SFDP */
6949 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6950 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6951 .tested = TEST_UNTESTED,
6952 .probe = probe_spi_rdid,
6953 .probe_timing = TIMING_ZERO,
6954 .block_erasers =
6955 {
6956 {
6957 .eraseblocks = { { 4 * 1024, 512} },
6958 .block_erase = spi_block_erase_20,
6959 }, {
6960 .eraseblocks = { { 32 * 1024, 64} },
6961 .block_erase = spi_block_erase_52,
6962 }, {
6963 .eraseblocks = { { 64 * 1024, 32} },
6964 .block_erase = spi_block_erase_d8,
6965 }, {
6966 .eraseblocks = { {2 * 1024 * 1024, 1} },
6967 .block_erase = spi_block_erase_60,
6968 }, {
6969 .eraseblocks = { {2 * 1024 * 1024, 1} },
6970 .block_erase = spi_block_erase_c7,
6971 }
6972 },
6973 .printlock = spi_prettyprint_status_register_bp4_srwd,
6974 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6975 .write = spi_chip_write_256,
6976 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6977 .voltage = {2300, 3600},
6978 },
6979
6980 {
6981 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006982 .name = "GD25VQ21B",
6983 .bustype = BUS_SPI,
6984 .manufacture_id = GIGADEVICE_ID,
6985 .model_id = GIGADEVICE_GD25VQ21B,
6986 .total_size = 256,
6987 .page_size = 256,
6988 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6989 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6990 .tested = TEST_UNTESTED,
6991 .probe = probe_spi_rdid,
6992 .probe_timing = TIMING_ZERO,
6993 .block_erasers =
6994 {
6995 {
6996 .eraseblocks = { { 4 * 1024, 64} },
6997 .block_erase = spi_block_erase_20,
6998 }, {
6999 .eraseblocks = { { 32 * 1024, 8} },
7000 .block_erase = spi_block_erase_52,
7001 }, {
7002 .eraseblocks = { { 64 * 1024, 4} },
7003 .block_erase = spi_block_erase_d8,
7004 }, {
7005 .eraseblocks = { {256 * 1024, 1} },
7006 .block_erase = spi_block_erase_60,
7007 }, {
7008 .eraseblocks = { {256 * 1024, 1} },
7009 .block_erase = spi_block_erase_c7,
7010 }
7011 },
7012 .printlock = spi_prettyprint_status_register_bp4_srwd,
7013 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7014 .write = spi_chip_write_256,
7015 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7016 .voltage = {2300, 3600},
7017 },
7018
7019 {
7020 .vendor = "GigaDevice",
7021 .name = "GD25VQ40C",
7022 .bustype = BUS_SPI,
7023 .manufacture_id = GIGADEVICE_ID,
7024 .model_id = GIGADEVICE_GD25VQ41B,
7025 .total_size = 512,
7026 .page_size = 256,
7027 /* Supports SFDP */
7028 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7029 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7030 .tested = TEST_UNTESTED,
7031 .probe = probe_spi_rdid,
7032 .probe_timing = TIMING_ZERO,
7033 .block_erasers =
7034 {
7035 {
7036 .eraseblocks = { { 4 * 1024, 128} },
7037 .block_erase = spi_block_erase_20,
7038 }, {
7039 .eraseblocks = { { 32 * 1024, 16} },
7040 .block_erase = spi_block_erase_52,
7041 }, {
7042 .eraseblocks = { { 64 * 1024, 8} },
7043 .block_erase = spi_block_erase_d8,
7044 }, {
7045 .eraseblocks = { {512 * 1024, 1} },
7046 .block_erase = spi_block_erase_60,
7047 }, {
7048 .eraseblocks = { {512 * 1024, 1} },
7049 .block_erase = spi_block_erase_c7,
7050 }
7051 },
7052 .printlock = spi_prettyprint_status_register_bp4_srwd,
7053 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7054 .write = spi_chip_write_256,
7055 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7056 .voltage = {2300, 3600},
7057 },
7058
7059 {
7060 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007061 .name = "GD25VQ41B",
7062 .bustype = BUS_SPI,
7063 .manufacture_id = GIGADEVICE_ID,
7064 .model_id = GIGADEVICE_GD25VQ41B,
7065 .total_size = 512,
7066 .page_size = 256,
7067 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
7068 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007069 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007070 .probe = probe_spi_rdid,
7071 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007072 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007073 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00007074 {
7075 .eraseblocks = { { 4 * 1024, 128} },
7076 .block_erase = spi_block_erase_20,
7077 }, {
7078 .eraseblocks = { { 32 * 1024, 16} },
7079 .block_erase = spi_block_erase_52,
7080 }, {
7081 .eraseblocks = { { 64 * 1024, 8} },
7082 .block_erase = spi_block_erase_d8,
7083 }, {
7084 .eraseblocks = { {512 * 1024, 1} },
7085 .block_erase = spi_block_erase_60,
7086 }, {
7087 .eraseblocks = { {512 * 1024, 1} },
7088 .block_erase = spi_block_erase_c7,
7089 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007090 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007091 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007092 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7093 .write = spi_chip_write_256,
7094 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7095 .voltage = {2300, 3600},
7096 },
7097
7098 {
7099 .vendor = "GigaDevice",
7100 .name = "GD25VQ80C",
7101 .bustype = BUS_SPI,
7102 .manufacture_id = GIGADEVICE_ID,
7103 .model_id = GIGADEVICE_GD25VQ80C,
7104 .total_size = 1024,
7105 .page_size = 256,
7106 /* Supports SFDP */
7107 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7108 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7109 .tested = TEST_UNTESTED,
7110 .probe = probe_spi_rdid,
7111 .probe_timing = TIMING_ZERO,
7112 .block_erasers =
7113 {
7114 {
7115 .eraseblocks = { { 4 * 1024, 256} },
7116 .block_erase = spi_block_erase_20,
7117 }, {
7118 .eraseblocks = { { 32 * 1024, 32} },
7119 .block_erase = spi_block_erase_52,
7120 }, {
7121 .eraseblocks = { { 64 * 1024, 16} },
7122 .block_erase = spi_block_erase_d8,
7123 }, {
7124 .eraseblocks = { {1024 * 1024, 1} },
7125 .block_erase = spi_block_erase_60,
7126 }, {
7127 .eraseblocks = { {1024 * 1024, 1} },
7128 .block_erase = spi_block_erase_c7,
7129 }
7130 },
7131 .printlock = spi_prettyprint_status_register_bp4_srwd,
7132 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7133 .write = spi_chip_write_256,
7134 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7135 .voltage = {2300, 3600},
7136 },
7137
7138 {
Dino Li3214f582020-03-25 17:39:53 +08007139 .vendor = "GigaDevice",
7140 .name = "GD25WQ80E",
7141 .bustype = BUS_SPI,
7142 .manufacture_id = GIGADEVICE_ID,
7143 .model_id = GIGADEVICE_GD25WQ80E,
7144 .total_size = 1024,
7145 .page_size = 256,
7146 .feature_bits = FEATURE_WRSR_WREN,
7147 .tested = TEST_OK_PREW,
7148 .probe = probe_spi_rdid,
7149 .probe_timing = TIMING_ZERO,
7150 .block_erasers =
7151 {
7152 {
7153 .eraseblocks = { {4 * 1024, 256} },
7154 .block_erase = spi_block_erase_20,
7155 }, {
7156 .eraseblocks = { {32 * 1024, 32} },
7157 .block_erase = spi_block_erase_52,
7158 }, {
7159 .eraseblocks = { {64 * 1024, 16} },
7160 .block_erase = spi_block_erase_d8,
7161 }, {
7162 .eraseblocks = { {1 * 1024 * 1024, 1} },
7163 .block_erase = spi_block_erase_60,
7164 }, {
7165 .eraseblocks = { {1 * 1024 * 1024, 1} },
7166 .block_erase = spi_block_erase_c7,
7167 }
7168 },
7169 .printlock = spi_prettyprint_status_register_bp4_srwd,
7170 .unlock = spi_disable_blockprotect_bp4_srwd,
7171 .write = spi_chip_write_256,
7172 .read = spi_chip_read,
7173 .voltage = {1650, 3600},
7174 },
7175
7176 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007177 .vendor = "Hyundai",
7178 .name = "HY29F002B",
7179 .bustype = BUS_PARALLEL,
7180 .manufacture_id = HYUNDAI_ID,
7181 .model_id = HYUNDAI_HY29F002B,
7182 .total_size = 256,
7183 .page_size = 256 * 1024,
7184 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007185 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007186 .probe = probe_jedec,
7187 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007188 .block_erasers =
7189 {
7190 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007191 .eraseblocks = {
7192 {16 * 1024, 1},
7193 {8 * 1024, 2},
7194 {32 * 1024, 1},
7195 {64 * 1024, 3},
7196 },
7197 .block_erase = erase_sector_jedec,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007198 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007199 .eraseblocks = { {256 * 1024, 1} },
7200 .block_erase = erase_chip_block_jedec,
7201 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007202 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007203 .write = write_jedec_1,
7204 .read = read_memmapped,
7205 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007206 },
7207
7208 {
David Borgc96a8bd2010-06-21 16:12:22 +00007209 .vendor = "Hyundai",
7210 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007211 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00007212 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007213 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00007214 .total_size = 256,
7215 .page_size = 256 * 1024,
7216 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007217 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00007218 .probe = probe_jedec,
7219 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7220 .block_erasers =
7221 {
7222 {
7223 .eraseblocks = {
7224 {64 * 1024, 3},
7225 {32 * 1024, 1},
7226 {8 * 1024, 2},
7227 {16 * 1024, 1},
7228 },
7229 .block_erase = erase_sector_jedec,
7230 }, {
7231 .eraseblocks = { {256 * 1024, 1} },
7232 .block_erase = erase_chip_block_jedec,
7233 },
7234 },
7235 .write = write_jedec_1,
7236 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007237 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00007238 },
7239
7240 {
7241 .vendor = "Hyundai",
Joshua Roysf1324e02010-09-16 00:51:51 +00007242 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007243 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007244 .manufacture_id = HYUNDAI_ID,
7245 .model_id = HYUNDAI_HY29F040A,
7246 .total_size = 512,
7247 .page_size = 64 * 1024,
7248 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7249 .tested = TEST_UNTESTED,
7250 .probe = probe_jedec,
7251 .probe_timing = TIMING_ZERO,
7252 .block_erasers =
7253 {
7254 {
7255 .eraseblocks = { {64 * 1024, 8} },
7256 .block_erase = erase_sector_jedec,
7257 }, {
7258 .eraseblocks = { {512 * 1024, 1} },
7259 .block_erase = erase_chip_block_jedec,
7260 },
7261 },
7262 .write = write_jedec_1,
7263 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007264 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00007265 },
7266
7267 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007268 .vendor = "ISSI",
Angel Pons2ef47f32018-09-30 16:47:30 +02007269 .name = "IS25LP064",
7270 .bustype = BUS_SPI,
7271 .manufacture_id = ISSI_ID_SPI,
7272 .model_id = ISSI_IS25LP064,
7273 .total_size = 8192,
7274 .page_size = 256,
7275 /* OTP: 1024B total; read 0x48; write 0x42 */
7276 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7277 .tested = TEST_UNTESTED,
7278 .probe = probe_spi_rdid,
7279 .probe_timing = TIMING_ZERO,
7280 .block_erasers =
7281 {
7282 {
7283 .eraseblocks = { {4 * 1024, 2048} },
7284 .block_erase = spi_block_erase_20,
7285 }, {
7286 .eraseblocks = { {4 * 1024, 2048} },
7287 .block_erase = spi_block_erase_d7,
7288 }, {
7289 .eraseblocks = { {32 * 1024, 256} },
7290 .block_erase = spi_block_erase_52,
7291 }, {
7292 .eraseblocks = { {64 * 1024, 128} },
7293 .block_erase = spi_block_erase_d8,
7294 }, {
7295 .eraseblocks = { {8 * 1024 * 1024, 1} },
7296 .block_erase = spi_block_erase_60,
7297 }, {
7298 .eraseblocks = { {8 * 1024 * 1024, 1} },
7299 .block_erase = spi_block_erase_c7,
7300 }
7301 },
7302 .unlock = spi_disable_blockprotect,
7303 .write = spi_chip_write_256,
7304 .read = spi_chip_read,
7305 .voltage = {2300, 3600},
7306 },
7307
7308 {
7309 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007310 .name = "IS25LP128",
7311 .bustype = BUS_SPI,
7312 .manufacture_id = ISSI_ID_SPI,
7313 .model_id = ISSI_IS25LP128,
7314 .total_size = 16384,
7315 .page_size = 256,
7316 /* OTP: 1024B total; read 0x48; write 0x42 */
7317 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7318 .tested = TEST_OK_PREW,
7319 .probe = probe_spi_rdid,
7320 .probe_timing = TIMING_ZERO,
7321 .block_erasers =
7322 {
7323 {
7324 .eraseblocks = { {4 * 1024, 4096} },
7325 .block_erase = spi_block_erase_20,
7326 }, {
7327 .eraseblocks = { {4 * 1024, 4096} },
7328 .block_erase = spi_block_erase_d7,
7329 }, {
7330 .eraseblocks = { {32 * 1024, 512} },
7331 .block_erase = spi_block_erase_52,
7332 }, {
7333 .eraseblocks = { {64 * 1024, 256} },
7334 .block_erase = spi_block_erase_d8,
7335 }, {
7336 .eraseblocks = { {16 * 1024 * 1024, 1} },
7337 .block_erase = spi_block_erase_60,
7338 }, {
7339 .eraseblocks = { {16 * 1024 * 1024, 1} },
7340 .block_erase = spi_block_erase_c7,
7341 }
7342 },
7343 .unlock = spi_disable_blockprotect,
7344 .write = spi_chip_write_256,
7345 .read = spi_chip_read,
7346 .voltage = {2300, 3600},
7347 },
7348
7349 {
7350 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007351 .name = "IS25LP256",
7352 .bustype = BUS_SPI,
7353 .manufacture_id = ISSI_ID_SPI,
7354 .model_id = ISSI_IS25LP256,
7355 .total_size = 32768,
7356 .page_size = 256,
7357 /* supports SFDP */
7358 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7359 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7360 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7361 .tested = TEST_OK_PREW,
7362 .probe = probe_spi_rdid,
7363 .probe_timing = TIMING_ZERO,
7364 .block_erasers =
7365 {
7366 {
7367 .eraseblocks = { {4 * 1024, 8192} },
7368 .block_erase = spi_block_erase_21,
7369 }, {
7370 .eraseblocks = { {4 * 1024, 8192} },
7371 .block_erase = spi_block_erase_20,
7372 /* could also use spi_block_erase_d7 */
7373 }, {
7374 .eraseblocks = { {32 * 1024, 1024} },
7375 .block_erase = spi_block_erase_5c,
7376 }, {
7377 .eraseblocks = { {32 * 1024, 1024} },
7378 .block_erase = spi_block_erase_52,
7379 }, {
7380 .eraseblocks = { {64 * 1024, 512} },
7381 .block_erase = spi_block_erase_dc,
7382 }, {
7383 .eraseblocks = { {64 * 1024, 512} },
7384 .block_erase = spi_block_erase_d8,
7385 }, {
7386 .eraseblocks = { {32 * 1024 * 1024, 1} },
7387 .block_erase = spi_block_erase_60,
7388 }, {
7389 .eraseblocks = { {32 * 1024 * 1024, 1} },
7390 .block_erase = spi_block_erase_c7,
7391 }
7392 },
7393 .unlock = spi_disable_blockprotect,
7394 .write = spi_chip_write_256,
7395 .read = spi_chip_read,
7396 .voltage = {2300, 3600},
7397 },
7398
7399 {
7400 .vendor = "ISSI",
Nico Huberb27b8d12018-10-02 20:46:21 +02007401 .name = "IS25WP032",
7402 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007403 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007404 .model_id = ISSI_IS25WP032,
7405 .total_size = 4096,
7406 .page_size = 256,
7407 /* OTP: 1024B total; read 0x48; write 0x42 */
7408 /* QPI enable 0x35, disable 0xF5 */
7409 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7410 .tested = TEST_UNTESTED,
7411 .probe = probe_spi_rdid,
7412 .probe_timing = TIMING_ZERO,
7413 .block_erasers =
7414 {
7415 {
7416 .eraseblocks = { {4 * 1024, 1024} },
7417 .block_erase = spi_block_erase_20,
7418 }, {
7419 .eraseblocks = { {4 * 1024, 1024} },
7420 .block_erase = spi_block_erase_d7,
7421 }, {
7422 .eraseblocks = { {32 * 1024, 128} },
7423 .block_erase = spi_block_erase_52,
7424 }, {
7425 .eraseblocks = { {64 * 1024, 64} },
7426 .block_erase = spi_block_erase_d8,
7427 }, {
7428 .eraseblocks = { {4 * 1024 * 1024, 1} },
7429 .block_erase = spi_block_erase_60,
7430 }, {
7431 .eraseblocks = { {4 * 1024 * 1024, 1} },
7432 .block_erase = spi_block_erase_c7,
7433 }
7434 },
7435 .unlock = spi_disable_blockprotect,
7436 .write = spi_chip_write_256,
7437 .read = spi_chip_read,
7438 .voltage = {1650, 1950},
7439 },
7440
7441 {
7442 .vendor = "ISSI",
7443 .name = "IS25WP064",
7444 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007445 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007446 .model_id = ISSI_IS25WP064,
7447 .total_size = 8192,
7448 .page_size = 256,
7449 /* OTP: 1024B total; read 0x48; write 0x42 */
7450 /* QPI enable 0x35, disable 0xF5 */
7451 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7452 .tested = TEST_OK_PREW,
7453 .probe = probe_spi_rdid,
7454 .probe_timing = TIMING_ZERO,
7455 .block_erasers =
7456 {
7457 {
7458 .eraseblocks = { {4 * 1024, 2048} },
7459 .block_erase = spi_block_erase_20,
7460 }, {
7461 .eraseblocks = { {4 * 1024, 2048} },
7462 .block_erase = spi_block_erase_d7,
7463 }, {
7464 .eraseblocks = { {32 * 1024, 256} },
7465 .block_erase = spi_block_erase_52,
7466 }, {
7467 .eraseblocks = { {64 * 1024, 128} },
7468 .block_erase = spi_block_erase_d8,
7469 }, {
7470 .eraseblocks = { {8 * 1024 * 1024, 1} },
7471 .block_erase = spi_block_erase_60,
7472 }, {
7473 .eraseblocks = { {8 * 1024 * 1024, 1} },
7474 .block_erase = spi_block_erase_c7,
7475 }
7476 },
7477 .unlock = spi_disable_blockprotect,
7478 .write = spi_chip_write_256,
7479 .read = spi_chip_read,
7480 .voltage = {1650, 1950},
7481 },
7482
7483 {
7484 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007485 .name = "IS25WP128",
7486 .bustype = BUS_SPI,
7487 .manufacture_id = ISSI_ID_SPI,
7488 .model_id = ISSI_IS25WP128,
7489 .total_size = 16384,
7490 .page_size = 256,
7491 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huberb27b8d12018-10-02 20:46:21 +02007492 /* QPI enable 0x35, disable 0xF5 */
7493 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks3083ed92017-05-02 13:25:56 -07007494 .tested = TEST_OK_PREW,
7495 .probe = probe_spi_rdid,
7496 .probe_timing = TIMING_ZERO,
7497 .block_erasers =
7498 {
7499 {
7500 .eraseblocks = { {4 * 1024, 4096} },
7501 .block_erase = spi_block_erase_20,
7502 }, {
7503 .eraseblocks = { {4 * 1024, 4096} },
7504 .block_erase = spi_block_erase_d7,
7505 }, {
7506 .eraseblocks = { {32 * 1024, 512} },
7507 .block_erase = spi_block_erase_52,
7508 }, {
7509 .eraseblocks = { {64 * 1024, 256} },
7510 .block_erase = spi_block_erase_d8,
7511 }, {
7512 .eraseblocks = { {16 * 1024 * 1024, 1} },
7513 .block_erase = spi_block_erase_60,
7514 }, {
7515 .eraseblocks = { {16 * 1024 * 1024, 1} },
7516 .block_erase = spi_block_erase_c7,
7517 }
7518 },
7519 .unlock = spi_disable_blockprotect,
7520 .write = spi_chip_write_256,
7521 .read = spi_chip_read,
7522 .voltage = {1650, 1950},
7523 },
7524
7525 {
7526 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007527 .name = "IS25WP256",
7528 .bustype = BUS_SPI,
7529 .manufacture_id = ISSI_ID_SPI,
7530 .model_id = ISSI_IS25WP256,
7531 .total_size = 32768,
7532 .page_size = 256,
7533 /* supports SFDP */
7534 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7535 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7536 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7537 .tested = TEST_OK_PREW,
7538 .probe = probe_spi_rdid,
7539 .probe_timing = TIMING_ZERO,
7540 .block_erasers =
7541 {
7542 {
7543 .eraseblocks = { {4 * 1024, 8192} },
7544 .block_erase = spi_block_erase_21,
7545 }, {
7546 .eraseblocks = { {4 * 1024, 8192} },
7547 .block_erase = spi_block_erase_20,
7548 /* could also use spi_block_erase_d7 */
7549 }, {
7550 .eraseblocks = { {32 * 1024, 1024} },
7551 .block_erase = spi_block_erase_5c,
7552 }, {
7553 .eraseblocks = { {32 * 1024, 1024} },
7554 .block_erase = spi_block_erase_52,
7555 }, {
7556 .eraseblocks = { {64 * 1024, 512} },
7557 .block_erase = spi_block_erase_dc,
7558 }, {
7559 .eraseblocks = { {64 * 1024, 512} },
7560 .block_erase = spi_block_erase_d8,
7561 }, {
7562 .eraseblocks = { {32 * 1024 * 1024, 1} },
7563 .block_erase = spi_block_erase_60,
7564 }, {
7565 .eraseblocks = { {32 * 1024 * 1024, 1} },
7566 .block_erase = spi_block_erase_c7,
7567 }
7568 },
7569 .unlock = spi_disable_blockprotect,
7570 .write = spi_chip_write_256,
7571 .read = spi_chip_read,
7572 .voltage = {1650, 1950},
7573 },
7574
7575 {
7576 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007577 .name = "IS29GL064B",
7578 .bustype = BUS_PARALLEL,
7579 .manufacture_id = ISSI_ID,
7580 .model_id = ISSI_PMC_IS29GL064B,
7581 .total_size = 8192,
7582 .page_size = 128 * 1024, /* actual page size is 16 */
7583 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7584 .tested = TEST_UNTESTED,
7585 .probe = probe_jedec_29gl,
7586 .probe_timing = TIMING_ZERO,
7587 .block_erasers =
7588 {
7589 {
7590 .eraseblocks = {
7591 {8 * 1024, 8},
7592 {64 * 1024, 127},
7593 },
7594 .block_erase = erase_sector_jedec,
7595 }, {
7596 .eraseblocks = { {8 * 1024 * 1024, 1} },
7597 .block_erase = erase_chip_block_jedec,
7598 },
7599 },
7600 .write = write_jedec_1,
7601 .read = read_memmapped,
7602 .voltage = {2700, 3600},
7603 },
7604
7605 {
7606 .vendor = "ISSI",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007607 .name = "IS29GL064H/L",
7608 .bustype = BUS_PARALLEL,
7609 .manufacture_id = ISSI_ID,
7610 .model_id = ISSI_PMC_IS29GL064HL,
7611 .total_size = 8192,
7612 .page_size = 128 * 1024, /* actual page size is 16 */
7613 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7614 .tested = TEST_UNTESTED,
7615 .probe = probe_jedec_29gl,
7616 .probe_timing = TIMING_ZERO,
7617 .block_erasers =
7618 {
7619 {
7620 .eraseblocks = { {64 * 1024, 128} },
7621 .block_erase = erase_sector_jedec,
7622 }, {
7623 .eraseblocks = { {8 * 1024 * 1024, 1} },
7624 .block_erase = erase_chip_block_jedec,
7625 },
7626 },
7627 .write = write_jedec_1,
7628 .read = read_memmapped,
7629 .voltage = {2700, 3600},
7630 },
7631
7632 {
7633 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007634 .name = "IS29GL064T",
7635 .bustype = BUS_PARALLEL,
7636 .manufacture_id = ISSI_ID,
7637 .model_id = ISSI_PMC_IS29GL064T,
7638 .total_size = 8192,
7639 .page_size = 128 * 1024, /* actual page size is 16 */
7640 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7641 .tested = TEST_UNTESTED,
7642 .probe = probe_jedec_29gl,
7643 .probe_timing = TIMING_ZERO,
7644 .block_erasers =
7645 {
7646 {
7647 .eraseblocks = {
7648 {64 * 1024, 127},
7649 {8 * 1024, 8},
7650 },
7651 .block_erase = erase_sector_jedec,
7652 }, {
7653 .eraseblocks = { {8 * 1024 * 1024, 1} },
7654 .block_erase = erase_chip_block_jedec,
7655 },
7656 },
7657 .write = write_jedec_1,
7658 .read = read_memmapped,
7659 .voltage = {2700, 3600},
7660 },
7661
7662 {
7663 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007664 .name = "IS29GL128H/L",
7665 .bustype = BUS_PARALLEL,
7666 .manufacture_id = ISSI_ID,
7667 .model_id = ISSI_PMC_IS29GL128HL,
7668 .total_size = 16384,
7669 .page_size = 128 * 1024, /* actual page size is 16 */
7670 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7671 .tested = TEST_UNTESTED,
7672 .probe = probe_jedec_29gl,
7673 .probe_timing = TIMING_ZERO,
7674 .block_erasers =
7675 {
7676 {
7677 .eraseblocks = { {128 * 1024, 128} },
7678 .block_erase = erase_sector_jedec,
7679 }, {
7680 .eraseblocks = { {16 * 1024 * 1024, 1} },
7681 .block_erase = erase_chip_block_jedec,
7682 },
7683 },
7684 .write = write_jedec_1,
7685 .read = read_memmapped,
7686 .voltage = {2700, 3600},
7687 },
7688
7689 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007690 .vendor = "Intel",
7691 .name = "25F160S33B8",
7692 .bustype = BUS_SPI,
7693 .manufacture_id = INTEL_ID,
7694 .model_id = INTEL_25F160S33B8,
7695 .total_size = 2048,
7696 .page_size = 256,
7697 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7698 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7699 .tested = TEST_UNTESTED,
7700 .probe = probe_spi_rdid,
7701 .probe_timing = TIMING_ZERO,
7702 .block_erasers =
7703 {
7704 {
7705 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7706 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7707 * have no effect on the memory contents, but sets a flag in the SR.
7708 .eraseblocks = {
7709 {8 * 1024, 8},
7710 {64 * 1024, 31} // inaccessible
7711 },
7712 .block_erase = spi_block_erase_40,
7713 }, { */
7714 .eraseblocks = { {64 * 1024, 32} },
7715 .block_erase = spi_block_erase_d8,
7716 }, {
7717 .eraseblocks = { {2 * 1024 * 1024, 1} },
7718 .block_erase = spi_block_erase_c7,
7719 }
7720 },
7721 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7722 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7723 .write = spi_chip_write_256,
7724 .read = spi_chip_read, /* also fast read 0x0B */
7725 .voltage = {2700, 3600},
7726 },
7727
7728 {
7729 .vendor = "Intel",
7730 .name = "25F160S33T8",
7731 .bustype = BUS_SPI,
7732 .manufacture_id = INTEL_ID,
7733 .model_id = INTEL_25F160S33T8,
7734 .total_size = 2048,
7735 .page_size = 256,
7736 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7737 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7738 .tested = TEST_UNTESTED,
7739 .probe = probe_spi_rdid,
7740 .probe_timing = TIMING_ZERO,
7741 .block_erasers =
7742 {
7743 {
7744 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7745 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7746 * have no effect on the memory contents, but sets a flag in the SR.
7747 .eraseblocks = {
7748 {64 * 1024, 31}, // inaccessible
7749 {8 * 1024, 8}
7750 },
7751 .block_erase = spi_block_erase_40,
7752 }, { */
7753 .eraseblocks = { {64 * 1024, 32} },
7754 .block_erase = spi_block_erase_d8,
7755 }, {
7756 .eraseblocks = { {2 * 1024 * 1024, 1} },
7757 .block_erase = spi_block_erase_c7,
7758 }
7759 },
7760 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7761 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7762 .write = spi_chip_write_256,
7763 .read = spi_chip_read, /* also fast read 0x0B */
7764 .voltage = {2700, 3600},
7765 },
7766
7767 {
7768 .vendor = "Intel",
7769 .name = "25F320S33B8",
7770 .bustype = BUS_SPI,
7771 .manufacture_id = INTEL_ID,
7772 .model_id = INTEL_25F320S33B8,
7773 .total_size = 4096,
7774 .page_size = 256,
7775 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7776 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7777 .tested = TEST_UNTESTED,
7778 .probe = probe_spi_rdid,
7779 .probe_timing = TIMING_ZERO,
7780 .block_erasers =
7781 {
7782 {
7783 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7784 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7785 * have no effect on the memory contents, but sets a flag in the SR.
7786 .eraseblocks = {
7787 {8 * 1024, 8},
7788 {64 * 1024, 63} // inaccessible
7789 },
7790 .block_erase = spi_block_erase_40,
7791 }, { */
7792 .eraseblocks = { {64 * 1024, 64} },
7793 .block_erase = spi_block_erase_d8,
7794 }, {
7795 .eraseblocks = { {4 * 1024 * 1024, 1} },
7796 .block_erase = spi_block_erase_c7,
7797 }
7798 },
7799 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7800 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7801 .write = spi_chip_write_256,
7802 .read = spi_chip_read, /* also fast read 0x0B */
7803 .voltage = {2700, 3600},
7804 },
7805
7806 {
7807 .vendor = "Intel",
7808 .name = "25F320S33T8",
7809 .bustype = BUS_SPI,
7810 .manufacture_id = INTEL_ID,
7811 .model_id = INTEL_25F320S33T8,
7812 .total_size = 4096,
7813 .page_size = 256,
7814 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7815 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7816 .tested = TEST_UNTESTED,
7817 .probe = probe_spi_rdid,
7818 .probe_timing = TIMING_ZERO,
7819 .block_erasers =
7820 {
7821 {
7822 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7823 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7824 * have no effect on the memory contents, but sets a flag in the SR.
7825 .eraseblocks = {
7826 {64 * 1024, 63}, // inaccessible
7827 {8 * 1024, 8}
7828 },
7829 .block_erase = spi_block_erase_40,
7830 }, { */
7831 .eraseblocks = { {64 * 1024, 64} },
7832 .block_erase = spi_block_erase_d8,
7833 }, {
7834 .eraseblocks = { {4 * 1024 * 1024, 1} },
7835 .block_erase = spi_block_erase_c7,
7836 }
7837 },
7838 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7839 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7840 .write = spi_chip_write_256,
7841 .read = spi_chip_read, /* also fast read 0x0B */
7842 .voltage = {2700, 3600},
7843 },
7844
7845 {
7846 .vendor = "Intel",
7847 .name = "25F640S33B8",
7848 .bustype = BUS_SPI,
7849 .manufacture_id = INTEL_ID,
7850 .model_id = INTEL_25F640S33B8,
7851 .total_size = 8192,
7852 .page_size = 256,
7853 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7854 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Zoltan HERPAIe0e8b2b2020-08-08 16:04:34 +02007855 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007856 .probe = probe_spi_rdid,
7857 .probe_timing = TIMING_ZERO,
7858 .block_erasers =
7859 {
7860 {
7861 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7862 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7863 * have no effect on the memory contents, but sets a flag in the SR.
7864 .eraseblocks = {
7865 {8 * 1024, 8},
7866 {64 * 1024, 127} // inaccessible
7867 },
7868 .block_erase = spi_block_erase_40,
7869 }, { */
7870 .eraseblocks = { {64 * 1024, 128} },
7871 .block_erase = spi_block_erase_d8,
7872 }, {
7873 .eraseblocks = { {8 * 1024 * 1024, 1} },
7874 .block_erase = spi_block_erase_c7,
7875 }
7876 },
7877 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7878 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7879 .write = spi_chip_write_256,
7880 .read = spi_chip_read, /* also fast read 0x0B */
7881 .voltage = {2700, 3600},
7882 },
7883
7884 {
7885 .vendor = "Intel",
7886 .name = "25F640S33T8",
7887 .bustype = BUS_SPI,
7888 .manufacture_id = INTEL_ID,
7889 .model_id = INTEL_25F640S33T8,
7890 .total_size = 8192,
7891 .page_size = 256,
7892 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7893 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7894 .tested = TEST_UNTESTED,
7895 .probe = probe_spi_rdid,
7896 .probe_timing = TIMING_ZERO,
7897 .block_erasers =
7898 {
7899 {
7900 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7901 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7902 * have no effect on the memory contents, but sets a flag in the SR.
7903 .eraseblocks = {
7904 {64 * 1024, 127}, // inaccessible
7905 {8 * 1024, 8}
7906 },
7907 .block_erase = spi_block_erase_40,
7908 }, { */
7909 .eraseblocks = { {64 * 1024, 128} },
7910 .block_erase = spi_block_erase_d8,
7911 }, {
7912 .eraseblocks = { {8 * 1024 * 1024, 1} },
7913 .block_erase = spi_block_erase_c7,
7914 }
7915 },
7916 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7917 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7918 .write = spi_chip_write_256,
7919 .read = spi_chip_read, /* also fast read 0x0B */
7920 .voltage = {2700, 3600},
7921 },
7922
7923 {
7924 .vendor = "Intel",
7925 .name = "28F001BN/BX-B",
7926 .bustype = BUS_PARALLEL,
7927 .manufacture_id = INTEL_ID,
7928 .model_id = INTEL_28F001B,
7929 .total_size = 128,
7930 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
7931 .tested = TEST_UNTESTED,
7932 .probe = probe_jedec,
7933 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7934 .block_erasers =
7935 {
7936 {
7937 .eraseblocks = {
7938 {8 * 1024, 1},
7939 {4 * 1024, 2},
7940 {112 * 1024, 1},
7941 },
7942 .block_erase = erase_block_82802ab,
7943 },
7944 },
7945 .write = write_82802ab,
7946 .read = read_memmapped,
7947 .voltage = {4500, 5500},
7948 },
7949
7950 {
7951 .vendor = "Intel",
7952 .name = "28F001BN/BX-T",
7953 .bustype = BUS_PARALLEL,
7954 .manufacture_id = INTEL_ID,
7955 .model_id = INTEL_28F001T,
7956 .total_size = 128,
7957 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
7958 .tested = TEST_OK_PREW,
7959 .probe = probe_jedec,
7960 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7961 .block_erasers =
7962 {
7963 {
7964 .eraseblocks = {
7965 {112 * 1024, 1},
7966 {4 * 1024, 2},
7967 {8 * 1024, 1},
7968 },
7969 .block_erase = erase_block_82802ab,
7970 },
7971 },
7972 .write = write_82802ab,
7973 .read = read_memmapped,
7974 .voltage = {4500, 5500},
7975 },
7976
7977 {
7978 .vendor = "Intel",
7979 .name = "28F002BC/BL/BV/BX-T",
7980 .bustype = BUS_PARALLEL,
7981 .manufacture_id = INTEL_ID,
7982 .model_id = INTEL_28F002T,
7983 .total_size = 256,
7984 .page_size = 256 * 1024,
7985 .tested = TEST_OK_PRE,
7986 .probe = probe_82802ab,
7987 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7988 .block_erasers =
7989 {
7990 {
7991 .eraseblocks = {
7992 {128 * 1024, 1},
7993 {96 * 1024, 1},
7994 {8 * 1024, 2},
7995 {16 * 1024, 1},
7996 },
7997 .block_erase = erase_block_82802ab,
7998 },
7999 },
8000 .write = write_82802ab,
8001 .read = read_memmapped,
8002 },
8003
8004 {
8005 .vendor = "Intel",
8006 .name = "28F004B5/BE/BV/BX-B",
8007 .bustype = BUS_PARALLEL,
8008 .manufacture_id = INTEL_ID,
8009 .model_id = INTEL_28F004B,
8010 .total_size = 512,
8011 .page_size = 128 * 1024, /* maximal block size */
8012 .tested = TEST_UNTESTED,
8013 .probe = probe_82802ab,
8014 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8015 .block_erasers =
8016 {
8017 {
8018 .eraseblocks = {
8019 {16 * 1024, 1},
8020 {8 * 1024, 2},
8021 {96 * 1024, 1},
8022 {128 * 1024, 3},
8023 },
8024 .block_erase = erase_block_82802ab,
8025 },
8026 },
8027 .write = write_82802ab,
8028 .read = read_memmapped,
8029 },
8030
8031 {
8032 .vendor = "Intel",
8033 .name = "28F004B5/BE/BV/BX-T",
8034 .bustype = BUS_PARALLEL,
8035 .manufacture_id = INTEL_ID,
8036 .model_id = INTEL_28F004T,
8037 .total_size = 512,
8038 .page_size = 128 * 1024, /* maximal block size */
8039 .tested = TEST_UNTESTED,
8040 .probe = probe_82802ab,
8041 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8042 .block_erasers =
8043 {
8044 {
8045 .eraseblocks = {
8046 {128 * 1024, 3},
8047 {96 * 1024, 1},
8048 {8 * 1024, 2},
8049 {16 * 1024, 1},
8050 },
8051 .block_erase = erase_block_82802ab,
8052 },
8053 },
8054 .write = write_82802ab,
8055 .read = read_memmapped,
8056 },
8057
8058 {
8059 .vendor = "Intel",
8060 .name = "28F008S3/S5/SC",
8061 .bustype = BUS_PARALLEL,
8062 .manufacture_id = INTEL_ID,
8063 .model_id = INTEL_28F004S3,
8064 .total_size = 512,
8065 .page_size = 256,
8066 .tested = TEST_UNTESTED,
8067 .probe = probe_82802ab,
8068 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8069 .block_erasers =
8070 {
8071 {
8072 .eraseblocks = { {64 * 1024, 8} },
8073 .block_erase = erase_block_82802ab,
8074 },
8075 },
8076 .unlock = unlock_28f004s5,
8077 .write = write_82802ab,
8078 .read = read_memmapped,
8079 },
8080
8081 {
8082 .vendor = "Intel",
8083 .name = "28F400BV/BX/CE/CV-B",
8084 .bustype = BUS_PARALLEL,
8085 .manufacture_id = INTEL_ID,
8086 .model_id = INTEL_28F400B,
8087 .total_size = 512,
8088 .page_size = 128 * 1024, /* maximal block size */
8089 .feature_bits = FEATURE_ADDR_SHIFTED,
8090 .tested = TEST_UNTESTED,
8091 .probe = probe_82802ab,
8092 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8093 .block_erasers =
8094 {
8095 {
8096 .eraseblocks = {
8097 {16 * 1024, 1},
8098 {8 * 1024, 2},
8099 {96 * 1024, 1},
8100 {128 * 1024, 3},
8101 },
8102 .block_erase = erase_block_82802ab,
8103 },
8104 },
8105 .write = write_82802ab,
8106 .read = read_memmapped,
8107 },
8108
8109 {
8110 .vendor = "Intel",
8111 .name = "28F400BV/BX/CE/CV-T",
8112 .bustype = BUS_PARALLEL,
8113 .manufacture_id = INTEL_ID,
8114 .model_id = INTEL_28F400T,
8115 .total_size = 512,
8116 .page_size = 128 * 1024, /* maximal block size */
8117 .feature_bits = FEATURE_ADDR_SHIFTED,
8118 .tested = TEST_UNTESTED,
8119 .probe = probe_82802ab,
8120 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8121 .block_erasers =
8122 {
8123 {
8124 .eraseblocks = {
8125 {128 * 1024, 3},
8126 {96 * 1024, 1},
8127 {8 * 1024, 2},
8128 {16 * 1024, 1},
8129 },
8130 .block_erase = erase_block_82802ab,
8131 },
8132 },
8133 .write = write_82802ab,
8134 .read = read_memmapped,
8135 },
8136
8137 {
8138 .vendor = "Intel",
8139 .name = "82802AB",
8140 .bustype = BUS_FWH,
8141 .manufacture_id = INTEL_ID,
8142 .model_id = INTEL_82802AB,
8143 .total_size = 512,
8144 .page_size = 64 * 1024,
8145 .feature_bits = FEATURE_REGISTERMAP,
Alan Green88552572019-07-24 13:56:06 +10008146 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008147 .probe = probe_82802ab,
8148 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8149 .block_erasers =
8150 {
8151 {
8152 .eraseblocks = { {64 * 1024, 8} },
8153 .block_erase = erase_block_82802ab,
8154 },
8155 },
8156 .unlock = unlock_regspace2_uniform_64k,
8157 .write = write_82802ab,
8158 .read = read_memmapped,
8159 .voltage = {3000, 3600},
8160 },
8161
8162 {
8163 .vendor = "Intel",
8164 .name = "82802AC",
8165 .bustype = BUS_FWH,
8166 .manufacture_id = INTEL_ID,
8167 .model_id = INTEL_82802AC,
8168 .total_size = 1024,
8169 .page_size = 64 * 1024,
8170 .feature_bits = FEATURE_REGISTERMAP,
8171 .tested = TEST_OK_PR,
8172 .probe = probe_82802ab,
8173 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8174 .block_erasers =
8175 {
8176 {
8177 .eraseblocks = { {64 * 1024, 16} },
8178 .block_erase = erase_block_82802ab,
8179 },
8180 },
8181 .unlock = unlock_regspace2_uniform_64k,
8182 .write = write_82802ab,
8183 .read = read_memmapped,
8184 .voltage = {3000, 3600},
8185 },
8186
8187 {
8188 .vendor = "Macronix",
8189 .name = "MX23L12854",
8190 .bustype = BUS_SPI,
8191 .manufacture_id = MACRONIX_ID,
8192 .model_id = MACRONIX_MX23L12854,
8193 .total_size = 16384,
8194 .page_size = 256,
8195 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8196 .probe = probe_spi_rdid,
8197 .probe_timing = TIMING_ZERO,
8198 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
8199 .read = spi_chip_read, /* Fast read (0x0B) supported */
8200 .voltage = {3000, 3600},
8201 },
8202
8203 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008204 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008205 .name = "MX23L1654",
8206 .bustype = BUS_SPI,
8207 .manufacture_id = MACRONIX_ID,
8208 .model_id = MACRONIX_MX23L1654,
8209 .total_size = 2048,
8210 .page_size = 256,
8211 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8212 .probe = probe_spi_rdid,
8213 .probe_timing = TIMING_ZERO,
8214 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
8215 .read = spi_chip_read, /* Fast read (0x0B) supported */
8216 .voltage = {3000, 3600},
8217 },
8218
8219 {
8220 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008221 .name = "MX23L3254",
8222 .bustype = BUS_SPI,
8223 .manufacture_id = MACRONIX_ID,
8224 .model_id = MACRONIX_MX23L3254,
8225 .total_size = 4096,
8226 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00008227 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008228 .probe = probe_spi_rdid,
8229 .probe_timing = TIMING_ZERO,
8230 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
8231 .read = spi_chip_read, /* Fast read (0x0B) supported */
8232 .voltage = {3000, 3600},
8233 },
8234
8235 {
8236 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008237 .name = "MX23L6454",
8238 .bustype = BUS_SPI,
8239 .manufacture_id = MACRONIX_ID,
8240 .model_id = MACRONIX_MX23L6454,
8241 .total_size = 8192,
8242 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008243 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00008244 .probe = probe_spi_rdid,
8245 .probe_timing = TIMING_ZERO,
8246 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
8247 .read = spi_chip_read, /* Fast read (0x0B) supported */
8248 .voltage = {3000, 3600},
8249 },
8250
8251 {
8252 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00008253 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008254 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008255 .manufacture_id = MACRONIX_ID,
8256 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008257 .total_size = 128,
8258 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008259 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00008260 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00008261 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008262 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008263 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008264 .block_erasers =
8265 {
8266 {
8267 .eraseblocks = { {4 * 1024, 32} },
8268 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008269 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008270 .eraseblocks = { {64 * 1024, 2} },
8271 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008272 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008273 .eraseblocks = { {128 * 1024, 1} },
8274 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008275 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008276 .eraseblocks = { {128 * 1024, 1} },
8277 .block_erase = spi_block_erase_c7,
8278 },
8279 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008280 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008281 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008282 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008283 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008284 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008285 },
8286
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008287 {
8288 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008289 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008290 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008291 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008292 .model_id = MACRONIX_MX25L12805D,
8293 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008294 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008295 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8296 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008297 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008298 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008299 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008300 .block_erasers =
8301 {
8302 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008303 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008304 .block_erase = spi_block_erase_20,
8305 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008306 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008307 .block_erase = spi_block_erase_d8,
8308 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008309 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008310 .block_erase = spi_block_erase_60,
8311 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008312 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008313 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008314 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008315 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008316 .printlock = spi_prettyprint_status_register_bp3_srwd,
8317 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008318 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008319 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008320 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008321 },
8322
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008323 {
8324 .vendor = "Macronix",
Tao Xia571f6ad2021-07-21 16:41:53 +08008325 .name = "MX25L12833F/MX25L12835F/MX25L12845E/MX25L12865E/MX25L12873F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008326 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008327 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008328 .model_id = MACRONIX_MX25L12805D,
8329 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008330 .page_size = 256,
Tao Xia571f6ad2021-07-21 16:41:53 +08008331 /* OTP: MX25L12833F has 1KB total, others have 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10008332 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner8179be52011-06-04 13:13:34 +00008333 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008334 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008335 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008336 .block_erasers =
8337 {
8338 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008339 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008340 .block_erase = spi_block_erase_20,
8341 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008342 .eraseblocks = { {32 * 1024, 512} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008343 .block_erase = spi_block_erase_52,
8344 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008345 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008346 .block_erase = spi_block_erase_d8,
8347 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008348 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008349 .block_erase = spi_block_erase_60,
8350 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008351 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008352 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008353 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008354 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008355 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8356 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8357 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008358 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008359 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008360 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008361 },
8362
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008363 {
8364 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008365 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008366 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008367 .manufacture_id = MACRONIX_ID,
8368 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008369 .total_size = 2048,
8370 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008371 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00008372 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008373 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008374 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008375 .block_erasers =
8376 {
8377 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008378 .eraseblocks = { {64 * 1024, 32} },
8379 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008380 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008381 .eraseblocks = { {64 * 1024, 32} },
8382 .block_erase = spi_block_erase_d8,
8383 }, {
8384 .eraseblocks = { {2 * 1024 * 1024, 1} },
8385 .block_erase = spi_block_erase_60,
8386 }, {
8387 .eraseblocks = { {2 * 1024 * 1024, 1} },
8388 .block_erase = spi_block_erase_c7,
8389 },
8390 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008391 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00008392 .unlock = spi_disable_blockprotect,
8393 .write = spi_chip_write_256,
8394 .read = spi_chip_read, /* Fast read (0x0B) supported */
8395 .voltage = {2700, 3600},
8396 },
8397
8398 {
8399 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008400 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008401 .bustype = BUS_SPI,
8402 .manufacture_id = MACRONIX_ID,
8403 .model_id = MACRONIX_MX25L1605,
8404 .total_size = 2048,
8405 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008406 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008407 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8408 .tested = TEST_OK_PREW,
8409 .probe = probe_spi_rdid,
8410 .probe_timing = TIMING_ZERO,
8411 .block_erasers =
8412 {
8413 {
8414 .eraseblocks = { {4 * 1024, 512} },
8415 .block_erase = spi_block_erase_20,
8416 }, {
8417 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008418 .block_erase = spi_block_erase_52,
8419 }, {
8420 .eraseblocks = { {64 * 1024, 32} },
8421 .block_erase = spi_block_erase_d8,
8422 }, {
8423 .eraseblocks = { {2 * 1024 * 1024, 1} },
8424 .block_erase = spi_block_erase_60,
8425 }, {
8426 .eraseblocks = { {2 * 1024 * 1024, 1} },
8427 .block_erase = spi_block_erase_c7,
8428 },
8429 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008430 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008431 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008432 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008433 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008434 .voltage = {2700, 3600},
8435 },
8436
8437 {
8438 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008439 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008440 .bustype = BUS_SPI,
8441 .manufacture_id = MACRONIX_ID,
8442 .model_id = MACRONIX_MX25L1605,
8443 .total_size = 2048,
8444 .page_size = 256,
8445 .feature_bits = FEATURE_WRSR_WREN,
8446 .tested = TEST_OK_PREW,
8447 .probe = probe_spi_rdid,
8448 .probe_timing = TIMING_ZERO,
8449 .block_erasers =
8450 {
8451 {
8452 .eraseblocks = { {4 * 1024, 512} },
8453 .block_erase = spi_block_erase_20,
8454 }, {
8455 .eraseblocks = { {64 * 1024, 32} },
8456 .block_erase = spi_block_erase_d8,
8457 }, {
8458 .eraseblocks = { {2 * 1024 * 1024, 1} },
8459 .block_erase = spi_block_erase_60,
8460 }, {
8461 .eraseblocks = { {2 * 1024 * 1024, 1} },
8462 .block_erase = spi_block_erase_c7,
8463 },
8464 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008465 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008466 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008467 .write = spi_chip_write_256,
8468 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008469 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008470 },
8471
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008472 {
8473 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008474 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008475 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008476 .manufacture_id = MACRONIX_ID,
8477 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008478 .total_size = 2048,
8479 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008480 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8481 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Ponsc2054872021-01-15 18:57:32 +01008482 .tested = TEST_OK_PREW,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008483 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008484 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008485 .block_erasers =
8486 {
8487 {
8488 .eraseblocks = { {4 * 1024, 512} },
8489 .block_erase = spi_block_erase_20,
8490 }, {
8491 .eraseblocks = { {64 * 1024, 32} },
8492 .block_erase = spi_block_erase_d8,
8493 }, {
8494 .eraseblocks = { {2 * 1024 * 1024, 1} },
8495 .block_erase = spi_block_erase_60,
8496 }, {
8497 .eraseblocks = { {2 * 1024 * 1024, 1} },
8498 .block_erase = spi_block_erase_c7,
8499 }
8500 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008501 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008502 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008503 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008504 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008505 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008506 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00008507
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008508 {
8509 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00008510 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008511 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008512 .manufacture_id = MACRONIX_ID,
8513 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008514 .total_size = 2048,
8515 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008516 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8517 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008518 .tested = TEST_UNTESTED,
8519 .probe = probe_spi_rdid,
8520 .probe_timing = TIMING_ZERO,
8521 .block_erasers =
8522 {
8523 {
8524 .eraseblocks = { {4 * 1024, 512} },
8525 .block_erase = spi_block_erase_20,
8526 }, {
8527 .eraseblocks = { {64 * 1024, 32} },
8528 .block_erase = spi_block_erase_d8,
8529 }, {
8530 .eraseblocks = { {2 * 1024 * 1024, 1} },
8531 .block_erase = spi_block_erase_60,
8532 }, {
8533 .eraseblocks = { {2 * 1024 * 1024, 1} },
8534 .block_erase = spi_block_erase_c7,
8535 }
8536 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008537 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008538 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008539 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008540 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008541 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00008542 },
8543
8544 {
8545 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008546 .name = "MX25L2005(C)/MX25L2006E",
8547 .bustype = BUS_SPI,
8548 .manufacture_id = MACRONIX_ID,
8549 .model_id = MACRONIX_MX25L2005,
8550 .total_size = 256,
8551 .page_size = 256,
8552 .feature_bits = FEATURE_WRSR_WREN,
8553 .tested = TEST_OK_PREW,
8554 .probe = probe_spi_rdid,
8555 .probe_timing = TIMING_ZERO,
8556 .block_erasers =
8557 {
8558 {
8559 .eraseblocks = { {4 * 1024, 64} },
8560 .block_erase = spi_block_erase_20,
8561 }, {
8562 .eraseblocks = { {64 * 1024, 4} },
8563 .block_erase = spi_block_erase_52,
8564 }, {
8565 .eraseblocks = { {64 * 1024, 4} },
8566 .block_erase = spi_block_erase_d8,
8567 }, {
8568 .eraseblocks = { {256 * 1024, 1} },
8569 .block_erase = spi_block_erase_60,
8570 }, {
8571 .eraseblocks = { {256 * 1024, 1} },
8572 .block_erase = spi_block_erase_c7,
8573 },
8574 },
8575 .printlock = spi_prettyprint_status_register_bp1_srwd,
8576 .unlock = spi_disable_blockprotect,
8577 .write = spi_chip_write_256,
8578 .read = spi_chip_read, /* Fast read (0x0B) supported */
8579 .voltage = {2700, 3600},
8580 },
8581
8582 {
8583 .vendor = "Macronix",
Alan Green03707302019-08-26 12:50:43 +10008584 .name = "MX25L25635F/MX25L25645G",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008585 .bustype = BUS_SPI,
8586 .manufacture_id = MACRONIX_ID,
8587 .model_id = MACRONIX_MX25L25635F,
8588 .total_size = 32768,
8589 .page_size = 256,
8590 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8591 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8592 .tested = TEST_OK_PREW,
8593 .probe = probe_spi_rdid,
8594 .probe_timing = TIMING_ZERO,
8595 .block_erasers =
8596 {
8597 {
8598 .eraseblocks = { {4 * 1024, 8192} },
8599 .block_erase = spi_block_erase_21,
8600 }, {
8601 .eraseblocks = { {4 * 1024, 8192} },
8602 .block_erase = spi_block_erase_20,
8603 }, {
8604 .eraseblocks = { {32 * 1024, 1024} },
8605 .block_erase = spi_block_erase_5c,
8606 }, {
8607 .eraseblocks = { {32 * 1024, 1024} },
8608 .block_erase = spi_block_erase_52,
8609 }, {
8610 .eraseblocks = { {64 * 1024, 512} },
8611 .block_erase = spi_block_erase_dc,
8612 }, {
8613 .eraseblocks = { {64 * 1024, 512} },
8614 .block_erase = spi_block_erase_d8,
8615 }, {
8616 .eraseblocks = { {32 * 1024 * 1024, 1} },
8617 .block_erase = spi_block_erase_60,
8618 }, {
8619 .eraseblocks = { {32 * 1024 * 1024, 1} },
8620 .block_erase = spi_block_erase_c7,
8621 }
8622 },
8623 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8624 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8625 .unlock = spi_disable_blockprotect_bp3_srwd,
8626 .write = spi_chip_write_256,
8627 .read = spi_chip_read, /* Fast read (0x0B) supported */
8628 .voltage = {2700, 3600},
8629 },
8630
8631 {
8632 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00008633 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008634 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008635 .manufacture_id = MACRONIX_ID,
8636 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008637 .total_size = 4096,
8638 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008639 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008640 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008641 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008642 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008643 .block_erasers =
8644 {
8645 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008646 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008647 .block_erase = spi_block_erase_20,
8648 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008649 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008650 .block_erase = spi_block_erase_d8,
8651 }, {
8652 .eraseblocks = { {4 * 1024 * 1024, 1} },
8653 .block_erase = spi_block_erase_60,
8654 }, {
8655 .eraseblocks = { {4 * 1024 * 1024, 1} },
8656 .block_erase = spi_block_erase_c7,
8657 },
8658 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008659 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008660 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008661 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008662 .read = spi_chip_read, /* Fast read (0x0B) supported */
8663 .voltage = {2700, 3600},
8664 },
8665
8666 {
8667 .vendor = "Macronix",
8668 .name = "MX25L3205D/MX25L3208D",
8669 .bustype = BUS_SPI,
8670 .manufacture_id = MACRONIX_ID,
8671 .model_id = MACRONIX_MX25L3205,
8672 .total_size = 4096,
8673 .page_size = 256,
8674 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8675 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8676 .tested = TEST_OK_PREW,
8677 .probe = probe_spi_rdid,
8678 .probe_timing = TIMING_ZERO,
8679 .block_erasers =
8680 {
8681 {
8682 .eraseblocks = { {4 * 1024, 1024} },
8683 .block_erase = spi_block_erase_20,
8684 }, {
8685 .eraseblocks = { {64 * 1024, 64} },
8686 .block_erase = spi_block_erase_d8,
8687 }, {
8688 .eraseblocks = { {4 * 1024 * 1024, 1} },
8689 .block_erase = spi_block_erase_60,
8690 }, {
8691 .eraseblocks = { {4 * 1024 * 1024, 1} },
8692 .block_erase = spi_block_erase_c7,
8693 },
8694 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008695 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008696 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008697 .write = spi_chip_write_256,
8698 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8699 .voltage = {2700, 3600},
8700 },
8701
8702 {
8703 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008704 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008705 .bustype = BUS_SPI,
8706 .manufacture_id = MACRONIX_ID,
8707 .model_id = MACRONIX_MX25L3205,
8708 .total_size = 4096,
8709 .page_size = 256,
8710 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8711 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8712 .tested = TEST_OK_PREW,
8713 .probe = probe_spi_rdid,
8714 .probe_timing = TIMING_ZERO,
8715 .block_erasers =
8716 {
8717 {
8718 .eraseblocks = { {4 * 1024, 1024} },
8719 .block_erase = spi_block_erase_20,
8720 }, {
8721 .eraseblocks = { {64 * 1024, 64} },
8722 .block_erase = spi_block_erase_d8,
8723 }, {
8724 .eraseblocks = { {64 * 1024, 64} },
8725 .block_erase = spi_block_erase_52,
8726 }, {
8727 .eraseblocks = { {4 * 1024 * 1024, 1} },
8728 .block_erase = spi_block_erase_60,
8729 }, {
8730 .eraseblocks = { {4 * 1024 * 1024, 1} },
8731 .block_erase = spi_block_erase_c7,
8732 },
8733 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008734 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008735 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008736 .write = spi_chip_write_256,
8737 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008738 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008739 },
8740
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008741 {
8742 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008743 .name = "MX25L3235D",
8744 .bustype = BUS_SPI,
8745 .manufacture_id = MACRONIX_ID,
8746 .model_id = MACRONIX_MX25L3235D,
8747 .total_size = 4096,
8748 .page_size = 256,
8749 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
8750 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8751 .tested = TEST_UNTESTED,
8752 .probe = probe_spi_rdid,
8753 .probe_timing = TIMING_ZERO,
8754 .block_erasers =
8755 {
8756 {
8757 .eraseblocks = { {4 * 1024, 1024} },
8758 .block_erase = spi_block_erase_20,
8759 }, {
8760 .eraseblocks = { {64 * 1024, 64} },
8761 .block_erase = spi_block_erase_d8,
8762 }, {
8763 .eraseblocks = { {4 * 1024 * 1024, 1} },
8764 .block_erase = spi_block_erase_60,
8765 }, {
8766 .eraseblocks = { {4 * 1024 * 1024, 1} },
8767 .block_erase = spi_block_erase_c7,
8768 }
8769 },
8770 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8771 .unlock = spi_disable_blockprotect_bp3_srwd,
8772 .write = spi_chip_write_256,
8773 .read = spi_chip_read,
8774 .voltage = {2700, 3600},
8775 },
8776
8777 {
8778 .vendor = "Macronix",
Nico Huberb6683e02021-04-21 13:04:29 +02008779 .name = "MX25L3233F/MX25L3273E",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008780 .bustype = BUS_SPI,
8781 .manufacture_id = MACRONIX_ID,
8782 .model_id = MACRONIX_MX25L3205,
8783 .total_size = 4096,
8784 .page_size = 256,
Nico Huber6e69e2b2021-04-21 13:03:13 +02008785 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008786 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008787 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008788 .probe = probe_spi_rdid,
8789 .probe_timing = TIMING_ZERO,
8790 .block_erasers =
8791 {
8792 {
8793 .eraseblocks = { {4 * 1024, 1024} },
8794 .block_erase = spi_block_erase_20,
8795 }, {
8796 .eraseblocks = { {32 * 1024, 128} },
8797 .block_erase = spi_block_erase_52,
8798 }, {
8799 .eraseblocks = { {64 * 1024, 64} },
8800 .block_erase = spi_block_erase_d8,
8801 }, {
8802 .eraseblocks = { {4 * 1024 * 1024, 1} },
8803 .block_erase = spi_block_erase_60,
8804 }, {
8805 .eraseblocks = { {4 * 1024 * 1024, 1} },
8806 .block_erase = spi_block_erase_c7,
8807 },
8808 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008809 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008810 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008811 .write = spi_chip_write_256,
8812 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Nico Huberb6683e02021-04-21 13:04:29 +02008813 .voltage = {2700, 3600}, /* 33F 2.65V..3.6V */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008814 },
8815
8816 {
8817 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008818 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008819 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008820 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008821 .model_id = MACRONIX_MX25L4005,
8822 .total_size = 512,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008823 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008824 .feature_bits = FEATURE_WRSR_WREN,
8825 .tested = TEST_OK_PREW,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008826 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008827 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008828 .block_erasers =
8829 {
8830 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008831 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00008832 .block_erase = spi_block_erase_20,
8833 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008834 .eraseblocks = { {64 * 1024, 8} },
8835 .block_erase = spi_block_erase_52,
8836 }, {
8837 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson54596372010-01-09 05:30:14 +00008838 .block_erase = spi_block_erase_d8,
8839 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008840 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008841 .block_erase = spi_block_erase_60,
8842 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008843 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008844 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008845 },
Sean Nelson54596372010-01-09 05:30:14 +00008846 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008847 .printlock = spi_prettyprint_status_register_bp2_srwd,
8848 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008849 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008850 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008851 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008852 },
8853
8854 {
8855 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008856 .name = "MX25L512(E)/MX25V512(C)",
8857 .bustype = BUS_SPI,
8858 .manufacture_id = MACRONIX_ID,
8859 .model_id = MACRONIX_MX25L512,
8860 .total_size = 64,
8861 .page_size = 256,
8862 /* MX25L512E supports SFDP */
8863 .feature_bits = FEATURE_WRSR_WREN,
8864 .tested = TEST_OK_PREW,
8865 .probe = probe_spi_rdid,
8866 .probe_timing = TIMING_ZERO,
8867 .block_erasers =
8868 {
8869 {
8870 .eraseblocks = { {4 * 1024, 16} },
8871 .block_erase = spi_block_erase_20,
8872 }, {
8873 .eraseblocks = { {64 * 1024, 1} },
8874 .block_erase = spi_block_erase_52,
8875 }, {
8876 .eraseblocks = { {64 * 1024, 1} },
8877 .block_erase = spi_block_erase_d8,
8878 }, {
8879 .eraseblocks = { {64 * 1024, 1} },
8880 .block_erase = spi_block_erase_60,
8881 }, {
8882 .eraseblocks = { {64 * 1024, 1} },
8883 .block_erase = spi_block_erase_c7,
8884 },
8885 },
8886 .printlock = spi_prettyprint_status_register_bp1_srwd,
8887 .unlock = spi_disable_blockprotect,
8888 .write = spi_chip_write_256,
8889 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
8890 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
8891 },
8892
8893 {
8894 .vendor = "Macronix",
Steve Markgraf7e6f3a72020-07-13 18:22:56 +02008895 .name = "MX25L5121E",
8896 .bustype = BUS_SPI,
8897 .manufacture_id = MACRONIX_ID,
8898 .model_id = MACRONIX_MX25L5121E,
8899 .total_size = 64,
8900 .page_size = 32,
8901 .feature_bits = FEATURE_WRSR_WREN,
8902 .tested = TEST_OK_PREW,
8903 .probe = probe_spi_rdid,
8904 .probe_timing = TIMING_ZERO,
8905 .block_erasers =
8906 {
8907 {
8908 .eraseblocks = { {4 * 1024, 16} },
8909 .block_erase = spi_block_erase_20,
8910 }, {
8911 .eraseblocks = { {64 * 1024, 1} },
8912 .block_erase = spi_block_erase_52,
8913 }, {
8914 .eraseblocks = { {64 * 1024, 1} },
8915 .block_erase = spi_block_erase_d8,
8916 }, {
8917 .eraseblocks = { {64 * 1024, 1} },
8918 .block_erase = spi_block_erase_60,
8919 }, {
8920 .eraseblocks = { {64 * 1024, 1} },
8921 .block_erase = spi_block_erase_c7,
8922 },
8923 },
8924 .printlock = spi_prettyprint_status_register_bp1_srwd,
8925 .unlock = spi_disable_blockprotect,
8926 .write = spi_chip_write_256,
8927 .read = spi_chip_read, /* Fast read (0x0B) supported */
8928 .voltage = {2700, 3600},
8929 },
8930
8931 {
8932 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008933 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008934 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008935 .manufacture_id = MACRONIX_ID,
8936 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008937 .total_size = 8192,
8938 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008939 /* Has an additional 512B EEPROM sector */
8940 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008941 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008942 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008943 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008944 .block_erasers =
8945 {
8946 {
8947 .eraseblocks = { {64 * 1024, 128} },
8948 .block_erase = spi_block_erase_20,
8949 }, {
8950 .eraseblocks = { {64 * 1024, 128} },
8951 .block_erase = spi_block_erase_d8,
8952 }, {
8953 .eraseblocks = { {8 * 1024 * 1024, 1} },
8954 .block_erase = spi_block_erase_60,
8955 }, {
8956 .eraseblocks = { {8 * 1024 * 1024, 1} },
8957 .block_erase = spi_block_erase_c7,
8958 }
8959 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008960 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008961 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008962 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008963 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008964 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008965 },
8966
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008967 {
8968 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008969 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00008970 .bustype = BUS_SPI,
8971 .manufacture_id = MACRONIX_ID,
8972 .model_id = MACRONIX_MX25L6405,
8973 .total_size = 8192,
8974 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008975 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008976 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8977 .tested = TEST_OK_PREW,
8978 .probe = probe_spi_rdid,
8979 .probe_timing = TIMING_ZERO,
8980 .block_erasers =
8981 {
8982 {
8983 .eraseblocks = { {4 * 1024, 2048} },
8984 .block_erase = spi_block_erase_20,
8985 }, {
8986 .eraseblocks = { {64 * 1024, 128} },
8987 .block_erase = spi_block_erase_d8,
8988 }, {
8989 .eraseblocks = { {8 * 1024 * 1024, 1} },
8990 .block_erase = spi_block_erase_60,
8991 }, {
8992 .eraseblocks = { {8 * 1024 * 1024, 1} },
8993 .block_erase = spi_block_erase_c7,
8994 }
8995 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008996 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008997 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008998 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008999 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00009000 .voltage = {2700, 3600},
9001 },
9002
9003 {
9004 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009005 .name = "MX25L6406E/MX25L6408E",
9006 .bustype = BUS_SPI,
9007 .manufacture_id = MACRONIX_ID,
9008 .model_id = MACRONIX_MX25L6405,
9009 .total_size = 8192,
9010 .page_size = 256,
9011 /* MX25L6406E supports SFDP */
9012 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
9013 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9014 .tested = TEST_OK_PREW,
9015 .probe = probe_spi_rdid,
9016 .probe_timing = TIMING_ZERO,
9017 .block_erasers =
9018 {
9019 {
9020 .eraseblocks = { {4 * 1024, 2048} },
9021 .block_erase = spi_block_erase_20,
9022 }, {
9023 .eraseblocks = { {64 * 1024, 128} },
9024 .block_erase = spi_block_erase_52,
9025 }, {
9026 .eraseblocks = { {64 * 1024, 128} },
9027 .block_erase = spi_block_erase_d8,
9028 }, {
9029 .eraseblocks = { {8 * 1024 * 1024, 1} },
9030 .block_erase = spi_block_erase_60,
9031 }, {
9032 .eraseblocks = { {8 * 1024 * 1024, 1} },
9033 .block_erase = spi_block_erase_c7,
9034 }
9035 },
9036 .printlock = spi_prettyprint_status_register_bp3_srwd,
9037 .unlock = spi_disable_blockprotect_bp3_srwd,
9038 .write = spi_chip_write_256,
9039 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
9040 .voltage = {2700, 3600},
9041 },
9042
9043 {
9044 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01009045 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00009046 .bustype = BUS_SPI,
9047 .manufacture_id = MACRONIX_ID,
9048 .model_id = MACRONIX_MX25L6405,
9049 .total_size = 8192,
9050 .page_size = 256,
9051 /* supports SFDP */
9052 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9053 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9054 .tested = TEST_OK_PREW,
9055 .probe = probe_spi_rdid,
9056 .probe_timing = TIMING_ZERO,
9057 .block_erasers =
9058 {
9059 {
9060 .eraseblocks = { {4 * 1024, 2048} },
9061 .block_erase = spi_block_erase_20,
9062 }, {
9063 .eraseblocks = { {32 * 1024, 256} },
9064 .block_erase = spi_block_erase_52,
9065 }, {
9066 .eraseblocks = { {64 * 1024, 128} },
9067 .block_erase = spi_block_erase_d8,
9068 }, {
9069 .eraseblocks = { {8 * 1024 * 1024, 1} },
9070 .block_erase = spi_block_erase_60,
9071 }, {
9072 .eraseblocks = { {8 * 1024 * 1024, 1} },
9073 .block_erase = spi_block_erase_c7,
9074 }
9075 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009076 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009077 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009078 .write = spi_chip_write_256,
9079 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9080 .voltage = {2700, 3600},
9081 },
9082
9083 {
9084 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009085 .name = "MX25L6495F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009086 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009087 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009088 .model_id = MACRONIX_MX25L6495F,
9089 .total_size = 8192,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009090 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009091 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009092 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00009093 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009094 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009095 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009096 .block_erasers =
9097 {
9098 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009099 .eraseblocks = { {4 * 1024, 2048} },
Sean Nelson54596372010-01-09 05:30:14 +00009100 .block_erase = spi_block_erase_20,
9101 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009102 .eraseblocks = { {64 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00009103 .block_erase = spi_block_erase_d8,
9104 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009105 .eraseblocks = { {32 * 1024, 256} },
9106 .block_erase = spi_block_erase_52,
9107 }, {
9108 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009109 .block_erase = spi_block_erase_60,
9110 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009111 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009112 .block_erase = spi_block_erase_c7,
9113 }
9114 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009115 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009116 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009117 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009118 .voltage = {2700, 3600},
9119 },
9120
9121 {
9122 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009123 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Stefan Tauner5c316f92015-02-08 21:57:52 +00009124 .bustype = BUS_SPI,
9125 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009126 .model_id = MACRONIX_MX25L8005,
9127 .total_size = 1024,
9128 .page_size = 256,
9129 /* MX25L8006E, MX25L8008E support SFDP */
9130 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
9131 .feature_bits = FEATURE_WRSR_WREN,
9132 .tested = TEST_OK_PREW,
9133 .probe = probe_spi_rdid,
9134 .probe_timing = TIMING_ZERO,
9135 .block_erasers =
9136 {
9137 {
9138 .eraseblocks = { {4 * 1024, 256} },
9139 .block_erase = spi_block_erase_20,
9140 }, {
9141 .eraseblocks = { {64 * 1024, 16} },
9142 .block_erase = spi_block_erase_52,
9143 }, {
9144 .eraseblocks = { {64 * 1024, 16} },
9145 .block_erase = spi_block_erase_d8,
9146 }, {
9147 .eraseblocks = { {1024 * 1024, 1} },
9148 .block_erase = spi_block_erase_60,
9149 }, {
9150 .eraseblocks = { {1024 * 1024, 1} },
9151 .block_erase = spi_block_erase_c7,
9152 },
9153 },
9154 .printlock = spi_prettyprint_status_register_bp2_srwd,
9155 .unlock = spi_disable_blockprotect,
9156 .write = spi_chip_write_256,
9157 .read = spi_chip_read, /* Fast read (0x0B) supported */
9158 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
9159 },
9160
9161 {
9162 .vendor = "Macronix",
sibradzicf62623c2020-03-14 17:21:34 +09009163 .name = "MX25R3235F",
9164 .bustype = BUS_SPI,
9165 .manufacture_id = MACRONIX_ID,
9166 .model_id = MACRONIX_MX25R3235F,
9167 .total_size = 4096,
9168 .page_size = 256,
9169 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9170 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9171 .tested = TEST_OK_PREW,
9172 .probe = probe_spi_rdid,
9173 .probe_timing = TIMING_ZERO,
9174 .block_erasers =
9175 {
9176 {
9177 .eraseblocks = { {4 * 1024, 1024} },
9178 .block_erase = spi_block_erase_20,
9179 }, {
9180 .eraseblocks = { {64 * 1024, 64} },
9181 .block_erase = spi_block_erase_d8,
9182 }, {
9183 .eraseblocks = { {32 * 1024, 128} },
9184 .block_erase = spi_block_erase_52,
9185 }, {
9186 .eraseblocks = { {4 * 1024 * 1024, 1} },
9187 .block_erase = spi_block_erase_60,
9188 }, {
9189 .eraseblocks = { {4 * 1024 * 1024, 1} },
9190 .block_erase = spi_block_erase_c7,
9191 }
9192 },
9193 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit 6 is quad enable */
9194 .unlock = spi_disable_blockprotect_bp3_srwd,
9195 .write = spi_chip_write_256,
9196 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9197 .voltage = {1650, 3600},
9198 },
9199
9200 {
9201 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009202 .name = "MX25R6435F",
9203 .bustype = BUS_SPI,
9204 .manufacture_id = MACRONIX_ID,
9205 .model_id = MACRONIX_MX25R6435F,
9206 .total_size = 8192,
9207 .page_size = 256,
9208 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9209 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9210 .tested = TEST_OK_PREW,
9211 .probe = probe_spi_rdid,
9212 .probe_timing = TIMING_ZERO,
9213 .block_erasers =
9214 {
9215 {
9216 .eraseblocks = { {4 * 1024, 2048} },
9217 .block_erase = spi_block_erase_20,
9218 }, {
9219 .eraseblocks = { {64 * 1024, 128} },
9220 .block_erase = spi_block_erase_d8,
9221 }, {
9222 .eraseblocks = { {32 * 1024, 256} },
9223 .block_erase = spi_block_erase_52,
9224 }, {
9225 .eraseblocks = { {8 * 1024 * 1024, 1} },
9226 .block_erase = spi_block_erase_60,
9227 }, {
9228 .eraseblocks = { {8 * 1024 * 1024, 1} },
9229 .block_erase = spi_block_erase_c7,
9230 }
9231 },
9232 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9233 .unlock = spi_disable_blockprotect_bp3_srwd,
9234 .write = spi_chip_write_256,
9235 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9236 .voltage = {1650, 3600},
9237 },
9238
9239 {
9240 .vendor = "Macronix",
9241 .name = "MX25U12835F",
9242 .bustype = BUS_SPI,
9243 .manufacture_id = MACRONIX_ID,
9244 .model_id = MACRONIX_MX25U12835E,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009245 .total_size = 16384,
9246 .page_size = 256,
9247 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009248 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009249 .tested = TEST_OK_PREW,
9250 .probe = probe_spi_rdid,
9251 .probe_timing = TIMING_ZERO,
9252 .block_erasers =
9253 {
9254 {
9255 .eraseblocks = { {4 * 1024, 4096} },
9256 .block_erase = spi_block_erase_20,
9257 }, {
9258 .eraseblocks = { {32 * 1024, 512} },
9259 .block_erase = spi_block_erase_52,
9260 }, {
9261 .eraseblocks = { {64 * 1024, 256} },
9262 .block_erase = spi_block_erase_d8,
9263 }, {
9264 .eraseblocks = { {16 * 1024 * 1024, 1} },
9265 .block_erase = spi_block_erase_60,
9266 }, {
9267 .eraseblocks = { {16 * 1024 * 1024, 1} },
9268 .block_erase = spi_block_erase_c7,
9269 }
9270 },
Angel Ponsf112e242018-09-30 20:14:17 +02009271 /* TODO: security register */
9272 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9273 .unlock = spi_disable_blockprotect_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009274 .write = spi_chip_write_256, /* Multi I/O supported */
Angel Ponsf112e242018-09-30 20:14:17 +02009275 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9276 .voltage = {1650, 2000},
9277 },
9278
9279 {
9280 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00009281 .name = "MX25U1635E",
9282 .bustype = BUS_SPI,
9283 .manufacture_id = MACRONIX_ID,
9284 .model_id = MACRONIX_MX25U1635E,
9285 .total_size = 2048,
9286 .page_size = 256,
9287 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9288 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9289 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009290 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00009291 .probe = probe_spi_rdid,
9292 .probe_timing = TIMING_ZERO,
9293 .block_erasers =
9294 {
9295 {
9296 .eraseblocks = { {4 * 1024, 512} },
9297 .block_erase = spi_block_erase_20,
9298 }, {
9299 .eraseblocks = { {32 * 1024, 64} },
9300 .block_erase = spi_block_erase_52,
9301 }, {
9302 .eraseblocks = { {64 * 1024, 32} },
9303 .block_erase = spi_block_erase_d8,
9304 }, {
9305 .eraseblocks = { {2 * 1024 * 1024, 1} },
9306 .block_erase = spi_block_erase_60,
9307 }, {
9308 .eraseblocks = { {2 * 1024 * 1024, 1} },
9309 .block_erase = spi_block_erase_c7,
9310 }
9311 },
9312 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00009313 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009314 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00009315 .write = spi_chip_write_256,
9316 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9317 .voltage = {1650, 2000},
9318 },
9319
9320 {
9321 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07009322 .name = "MX25U25635F",
9323 .bustype = BUS_SPI,
9324 .manufacture_id = MACRONIX_ID,
9325 .model_id = MACRONIX_MX25U25635F,
9326 .total_size = 32768,
9327 .page_size = 256,
9328 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9329 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
Nikolai Artemiev148254b2021-03-23 17:21:10 +11009330 .tested = TEST_OK_PREW,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009331 .probe = probe_spi_rdid,
9332 .probe_timing = TIMING_ZERO,
9333 .block_erasers =
9334 {
9335 {
9336 .eraseblocks = { {4 * 1024, 8192} },
9337 .block_erase = spi_block_erase_21,
9338 }, {
9339 .eraseblocks = { {4 * 1024, 8192} },
9340 .block_erase = spi_block_erase_20,
9341 }, {
9342 .eraseblocks = { {32 * 1024, 1024} },
9343 .block_erase = spi_block_erase_5c,
9344 }, {
9345 .eraseblocks = { {32 * 1024, 1024} },
9346 .block_erase = spi_block_erase_52,
9347 }, {
9348 .eraseblocks = { {64 * 1024, 512} },
9349 .block_erase = spi_block_erase_dc,
9350 }, {
9351 .eraseblocks = { {64 * 1024, 512} },
9352 .block_erase = spi_block_erase_d8,
9353 }, {
9354 .eraseblocks = { {32 * 1024 * 1024, 1} },
9355 .block_erase = spi_block_erase_60,
9356 }, {
9357 .eraseblocks = { {32 * 1024 * 1024, 1} },
9358 .block_erase = spi_block_erase_c7,
9359 }
9360 },
9361 /* TODO: security register */
9362 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9363 .unlock = spi_disable_blockprotect_bp3_srwd,
9364 .write = spi_chip_write_256, /* Multi I/O supported */
9365 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9366 .voltage = {1650, 2000},
9367 },
9368
9369 {
9370 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009371 .name = "MX25U3235E/F",
9372 .bustype = BUS_SPI,
9373 .manufacture_id = MACRONIX_ID,
9374 .model_id = MACRONIX_MX25U3235E,
9375 .total_size = 4096,
9376 .page_size = 256,
9377 /* F model supports SFDP */
9378 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9379 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9380 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
9381 .tested = TEST_OK_PREW,
9382 .probe = probe_spi_rdid,
9383 .probe_timing = TIMING_ZERO,
9384 .block_erasers =
9385 {
9386 {
9387 .eraseblocks = { {4 * 1024, 1024} },
9388 .block_erase = spi_block_erase_20,
9389 }, {
9390 .eraseblocks = { {32 * 1024, 128} },
9391 .block_erase = spi_block_erase_52,
9392 }, {
9393 .eraseblocks = { {64 * 1024, 64} },
9394 .block_erase = spi_block_erase_d8,
9395 }, {
9396 .eraseblocks = { {4 * 1024 * 1024, 1} },
9397 .block_erase = spi_block_erase_60,
9398 }, {
9399 .eraseblocks = { {4 * 1024 * 1024, 1} },
9400 .block_erase = spi_block_erase_c7,
9401 }
9402 },
9403 /* TODO: security register */
9404 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9405 .unlock = spi_disable_blockprotect_bp3_srwd,
9406 .write = spi_chip_write_256,
9407 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9408 .voltage = {1650, 2000},
9409 },
9410
9411 {
9412 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009413 .name = "MX25U51245G",
9414 .bustype = BUS_SPI,
9415 .manufacture_id = MACRONIX_ID,
9416 .model_id = MACRONIX_MX25U51245G,
9417 .total_size = 65536,
9418 .page_size = 256,
9419 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
9420 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
9421 .tested = TEST_OK_PREW,
9422 .probe = probe_spi_rdid,
9423 .probe_timing = TIMING_ZERO,
9424 .block_erasers =
9425 {
9426 {
9427 .eraseblocks = { {4 * 1024, 16384} },
9428 .block_erase = spi_block_erase_21,
9429 }, {
9430 .eraseblocks = { {4 * 1024, 16384} },
9431 .block_erase = spi_block_erase_20,
9432 }, {
9433 .eraseblocks = { {32 * 1024, 2048} },
9434 .block_erase = spi_block_erase_5c,
9435 }, {
9436 .eraseblocks = { {32 * 1024, 2048} },
9437 .block_erase = spi_block_erase_52,
9438 }, {
9439 .eraseblocks = { {64 * 1024, 1024} },
9440 .block_erase = spi_block_erase_dc,
9441 }, {
9442 .eraseblocks = { {64 * 1024, 1024} },
9443 .block_erase = spi_block_erase_d8,
9444 }, {
9445 .eraseblocks = { {64 * 1024 * 1024, 1} },
9446 .block_erase = spi_block_erase_60,
9447 }, {
9448 .eraseblocks = { {64 * 1024 * 1024, 1} },
9449 .block_erase = spi_block_erase_c7,
9450 }
9451 },
9452 /* TODO: security register */
9453 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9454 .unlock = spi_disable_blockprotect_bp3_srwd,
9455 .write = spi_chip_write_256, /* Multi I/O supported */
9456 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9457 .voltage = {1650, 2000},
9458 },
9459
9460 {
9461 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009462 .name = "MX25U6435E/F",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009463 .bustype = BUS_SPI,
9464 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009465 .model_id = MACRONIX_MX25U6435E,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009466 .total_size = 8192,
9467 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009468 /* F model supports SFDP */
9469 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9470 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9471 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009472 .tested = TEST_OK_PREW,
9473 .probe = probe_spi_rdid,
9474 .probe_timing = TIMING_ZERO,
9475 .block_erasers =
9476 {
9477 {
9478 .eraseblocks = { {4 * 1024, 2048} },
9479 .block_erase = spi_block_erase_20,
9480 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009481 .eraseblocks = { {32 * 1024, 256} },
9482 .block_erase = spi_block_erase_52,
9483 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009484 .eraseblocks = { {64 * 1024, 128} },
9485 .block_erase = spi_block_erase_d8,
9486 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009487 .eraseblocks = { {8 * 1024 * 1024, 1} },
9488 .block_erase = spi_block_erase_60,
9489 }, {
9490 .eraseblocks = { {8 * 1024 * 1024, 1} },
9491 .block_erase = spi_block_erase_c7,
9492 }
9493 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009494 /* TODO: security register */
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009495 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9496 .unlock = spi_disable_blockprotect_bp3_srwd,
9497 .write = spi_chip_write_256,
9498 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009499 .voltage = {1650, 2000},
9500 },
9501
9502 {
9503 .vendor = "Macronix",
9504 .name = "MX25U8032E",
9505 .bustype = BUS_SPI,
9506 .manufacture_id = MACRONIX_ID,
9507 .model_id = MACRONIX_MX25U8032E,
9508 .total_size = 1024,
9509 .page_size = 256,
9510 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9511 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9512 .tested = TEST_OK_PREW,
9513 .probe = probe_spi_rdid,
9514 .probe_timing = TIMING_ZERO,
9515 .block_erasers =
9516 {
9517 {
9518 .eraseblocks = { {4 * 1024, 256} },
9519 .block_erase = spi_block_erase_20,
9520 }, {
9521 .eraseblocks = { {32 * 1024, 32} },
9522 .block_erase = spi_block_erase_52,
9523 }, {
9524 .eraseblocks = { {64 * 1024, 16} },
9525 .block_erase = spi_block_erase_d8,
9526 }, {
9527 .eraseblocks = { {1024 * 1024, 1} },
9528 .block_erase = spi_block_erase_60,
9529 }, {
9530 .eraseblocks = { {1024 * 1024, 1} },
9531 .block_erase = spi_block_erase_c7,
9532 }
9533 },
9534 /* TODO: security register */
9535 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9536 .unlock = spi_disable_blockprotect_bp3_srwd,
9537 .write = spi_chip_write_256,
9538 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9539 .voltage = {1650, 2000},
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009540 },
9541
9542 {
9543 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00009544 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009545 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009546 .manufacture_id = MACRONIX_ID,
9547 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009548 .total_size = 128,
9549 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009550 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9551 .tested = TEST_UNTESTED,
9552 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009553 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009554 .block_erasers =
9555 {
9556 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009557 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009558 {8 * 1024, 1},
9559 {4 * 1024, 2},
9560 {8 * 1024, 2},
9561 {32 * 1024, 1},
9562 {64 * 1024, 1},
9563 },
Sean Nelson35727f72010-01-28 23:55:12 +00009564 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009565 }, {
9566 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009567 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009568 }
9569 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009570 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009571 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009572 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009573 },
9574
9575 {
9576 .vendor = "Macronix",
9577 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009578 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009579 .manufacture_id = MACRONIX_ID,
9580 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009581 .total_size = 128,
9582 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009583 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00009584 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009585 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009586 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009587 .block_erasers =
9588 {
9589 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009590 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009591 {64 * 1024, 1},
9592 {32 * 1024, 1},
9593 {8 * 1024, 2},
9594 {4 * 1024, 2},
9595 {8 * 1024, 1},
9596 },
Sean Nelson35727f72010-01-28 23:55:12 +00009597 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009598 }, {
9599 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009600 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009601 }
9602 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009603 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009604 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009605 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009606 },
9607
9608 {
9609 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009610 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009611 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009612 .manufacture_id = MACRONIX_ID,
9613 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009614 .total_size = 256,
9615 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009616 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009617 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009618 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009619 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009620 .block_erasers =
9621 {
9622 {
9623 .eraseblocks = {
9624 {16 * 1024, 1},
9625 {8 * 1024, 2},
9626 {32 * 1024, 1},
9627 {64 * 1024, 3},
9628 },
Sean Nelson35727f72010-01-28 23:55:12 +00009629 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009630 }, {
9631 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009632 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009633 },
9634 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009635 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009636 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009637 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009638 },
9639
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009640 {
9641 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009642 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009643 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009644 .manufacture_id = MACRONIX_ID,
9645 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009646 .total_size = 256,
9647 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009648 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009649 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009650 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009651 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009652 .block_erasers =
9653 {
9654 {
9655 .eraseblocks = {
9656 {64 * 1024, 3},
9657 {32 * 1024, 1},
9658 {8 * 1024, 2},
9659 {16 * 1024, 1},
9660 },
Sean Nelson35727f72010-01-28 23:55:12 +00009661 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009662 }, {
9663 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009664 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009665 },
9666 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009667 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009668 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009669 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009670 },
9671
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009672 {
9673 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00009674 .name = "MX29F022(N)B",
9675 .bustype = BUS_PARALLEL,
9676 .manufacture_id = MACRONIX_ID,
9677 .model_id = MACRONIX_MX29F022B,
9678 .total_size = 256,
9679 .page_size = 0, /* unused */
9680 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9681 .tested = TEST_UNTESTED,
9682 .probe = probe_jedec,
9683 .probe_timing = TIMING_ZERO,
9684 .block_erasers =
9685 {
9686 {
9687 .eraseblocks = {
9688 {16 * 1024, 1},
9689 {8 * 1024, 2},
9690 {32 * 1024, 1},
9691 {64 * 1024, 3},
9692 },
9693 .block_erase = erase_sector_jedec,
9694 }, {
9695 .eraseblocks = { {256 * 1024, 1} },
9696 .block_erase = erase_chip_block_jedec,
9697 }
9698 },
9699 .write = write_jedec_1,
9700 .read = read_memmapped,
9701 .voltage = {4500, 5500},
9702 },
9703
9704 {
9705 .vendor = "Macronix",
9706 .name = "MX29F022(N)T",
9707 .bustype = BUS_PARALLEL,
9708 .manufacture_id = MACRONIX_ID,
9709 .model_id = MACRONIX_MX29F022T,
9710 .total_size = 256,
9711 .page_size = 0, /* unused */
9712 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9713 .tested = TEST_OK_PREW,
9714 .probe = probe_jedec,
9715 .probe_timing = TIMING_ZERO,
9716 .block_erasers =
9717 {
9718 {
9719 .eraseblocks = {
9720 {64 * 1024, 3},
9721 {32 * 1024, 1},
9722 {8 * 1024, 2},
9723 {16 * 1024, 1},
9724 },
9725 .block_erase = erase_sector_jedec,
9726 }, {
9727 .eraseblocks = { {256 * 1024, 1} },
9728 .block_erase = erase_chip_block_jedec,
9729 }
9730 },
9731 .write = write_jedec_1,
9732 .read = read_memmapped,
9733 .voltage = {4500, 5500},
9734 },
9735
9736 {
9737 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00009738 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009739 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00009740 .manufacture_id = MACRONIX_ID,
9741 .model_id = MACRONIX_MX29F040,
9742 .total_size = 512,
9743 .page_size = 64 * 1024,
9744 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9745 .tested = TEST_UNTESTED,
9746 .probe = probe_jedec,
9747 .probe_timing = TIMING_ZERO,
9748 .block_erasers =
9749 {
9750 {
9751 .eraseblocks = { {64 * 1024, 8} },
9752 .block_erase = erase_sector_jedec,
9753 }, {
9754 .eraseblocks = { {512 * 1024, 1} },
9755 .block_erase = erase_chip_block_jedec,
9756 },
9757 },
9758 .write = write_jedec_1,
9759 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009760 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00009761 },
9762
9763 {
9764 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009765 .name = "MX29GL128F",
9766 .bustype = BUS_PARALLEL,
9767 .manufacture_id = MACRONIX_ID,
9768 .model_id = MACRONIX_MX29GL128F,
9769 .total_size = 16384,
9770 .page_size = 128 * 1024, /* actual page size is 16 */
9771 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9772 .tested = TEST_UNTESTED,
9773 .probe = probe_jedec_29gl,
9774 .probe_timing = TIMING_ZERO,
9775 .block_erasers =
9776 {
9777 {
9778 .eraseblocks = { {128 * 1024, 128} },
9779 .block_erase = erase_sector_jedec,
9780 }, {
9781 .eraseblocks = { {16 * 1024 * 1024, 1} },
9782 .block_erase = erase_chip_block_jedec,
9783 },
9784 },
9785 .write = write_jedec_1,
9786 .read = read_memmapped,
9787 .voltage = {2700, 3600},
9788 },
9789
9790 {
9791 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009792 .name = "MX29GL320EB",
9793 .bustype = BUS_PARALLEL,
9794 .manufacture_id = MACRONIX_ID,
9795 .model_id = MACRONIX_MX29GL320EB,
9796 .total_size = 4096,
9797 .page_size = 128 * 1024, /* actual page size is 16 */
9798 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9799 .tested = TEST_UNTESTED,
9800 .probe = probe_jedec_29gl,
9801 .probe_timing = TIMING_ZERO,
9802 .block_erasers =
9803 {
9804 {
9805 .eraseblocks = {
9806 {8 * 1024, 8},
9807 {64 * 1024, 63},
9808 },
9809 .block_erase = erase_sector_jedec,
9810 }, {
9811 .eraseblocks = { {4 * 1024 * 1024, 1} },
9812 .block_erase = erase_chip_block_jedec,
9813 },
9814 },
9815 .write = write_jedec_1,
9816 .read = read_memmapped,
9817 .voltage = {2700, 3600},
9818 },
9819
9820 {
9821 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009822 .name = "MX29GL320EH/L",
9823 .bustype = BUS_PARALLEL,
9824 .manufacture_id = MACRONIX_ID,
9825 .model_id = MACRONIX_MX29GL320EHL,
9826 .total_size = 4096,
9827 .page_size = 128 * 1024, /* actual page size is 16 */
9828 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9829 .tested = TEST_UNTESTED,
9830 .probe = probe_jedec_29gl,
9831 .probe_timing = TIMING_ZERO,
9832 .block_erasers =
9833 {
9834 {
9835 .eraseblocks = { {64 * 1024, 64} },
9836 .block_erase = erase_sector_jedec,
9837 }, {
9838 .eraseblocks = { {4 * 1024 * 1024, 1} },
9839 .block_erase = erase_chip_block_jedec,
9840 },
9841 },
9842 .write = write_jedec_1,
9843 .read = read_memmapped,
9844 .voltage = {2700, 3600},
9845 },
9846
9847 {
9848 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009849 .name = "MX29GL320ET",
9850 .bustype = BUS_PARALLEL,
9851 .manufacture_id = MACRONIX_ID,
9852 .model_id = MACRONIX_MX29GL320ET,
9853 .total_size = 4096,
9854 .page_size = 128 * 1024, /* actual page size is 16 */
9855 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9856 .tested = TEST_UNTESTED,
9857 .probe = probe_jedec_29gl,
9858 .probe_timing = TIMING_ZERO,
9859 .block_erasers =
9860 {
9861 {
9862 .eraseblocks = {
9863 {64 * 1024, 63},
9864 {8 * 1024, 8},
9865 },
9866 .block_erase = erase_sector_jedec,
9867 }, {
9868 .eraseblocks = { {4 * 1024 * 1024, 1} },
9869 .block_erase = erase_chip_block_jedec,
9870 },
9871 },
9872 .write = write_jedec_1,
9873 .read = read_memmapped,
9874 .voltage = {2700, 3600},
9875 },
9876
9877 {
9878 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009879 .name = "MX29GL640EB",
9880 .bustype = BUS_PARALLEL,
9881 .manufacture_id = MACRONIX_ID,
9882 .model_id = MACRONIX_MX29GL640EB,
9883 .total_size = 8192,
9884 .page_size = 128 * 1024, /* actual page size is 16 */
9885 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9886 .tested = TEST_UNTESTED,
9887 .probe = probe_jedec_29gl,
9888 .probe_timing = TIMING_ZERO,
9889 .block_erasers =
9890 {
9891 {
9892 .eraseblocks = {
9893 {8 * 1024, 8},
9894 {64 * 1024, 127},
9895 },
9896 .block_erase = erase_sector_jedec,
9897 }, {
9898 .eraseblocks = { {8 * 1024 * 1024, 1} },
9899 .block_erase = erase_chip_block_jedec,
9900 },
9901 },
9902 .write = write_jedec_1,
9903 .read = read_memmapped,
9904 .voltage = {2700, 3600},
9905 },
9906
9907 {
9908 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009909 .name = "MX29GL640EH/L",
9910 .bustype = BUS_PARALLEL,
9911 .manufacture_id = MACRONIX_ID,
9912 .model_id = MACRONIX_MX29GL640EHL,
9913 .total_size = 8192,
9914 .page_size = 128 * 1024, /* actual page size is 16 */
9915 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9916 .tested = TEST_UNTESTED,
9917 .probe = probe_jedec_29gl,
9918 .probe_timing = TIMING_ZERO,
9919 .block_erasers =
9920 {
9921 {
9922 .eraseblocks = { {64 * 1024, 128} },
9923 .block_erase = erase_sector_jedec,
9924 }, {
9925 .eraseblocks = { {8 * 1024 * 1024, 1} },
9926 .block_erase = erase_chip_block_jedec,
9927 },
9928 },
9929 .write = write_jedec_1,
9930 .read = read_memmapped,
9931 .voltage = {2700, 3600},
9932 },
9933
9934 {
9935 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009936 .name = "MX29GL640ET",
9937 .bustype = BUS_PARALLEL,
9938 .manufacture_id = MACRONIX_ID,
9939 .model_id = MACRONIX_MX29GL640ET,
9940 .total_size = 8192,
9941 .page_size = 128 * 1024, /* actual page size is 16 */
9942 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9943 .tested = TEST_UNTESTED,
9944 .probe = probe_jedec_29gl,
9945 .probe_timing = TIMING_ZERO,
9946 .block_erasers =
9947 {
9948 {
9949 .eraseblocks = {
9950 {64 * 1024, 127},
9951 {8 * 1024, 8},
9952 },
9953 .block_erase = erase_sector_jedec,
9954 }, {
9955 .eraseblocks = { {8 * 1024 * 1024, 1} },
9956 .block_erase = erase_chip_block_jedec,
9957 },
9958 },
9959 .write = write_jedec_1,
9960 .read = read_memmapped,
9961 .voltage = {2700, 3600},
9962 },
9963
9964 {
9965 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00009966 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009967 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009968 .manufacture_id = MACRONIX_ID,
9969 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009970 .total_size = 512,
9971 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009972 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9973 .tested = TEST_UNTESTED,
9974 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009975 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009976 .block_erasers =
9977 {
9978 {
Stefan Tauner6697f712014-08-06 15:09:15 +00009979 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00009980 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009981 }, {
9982 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009983 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009984 },
9985 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009986 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009987 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009988 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00009989 },
9990
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009991 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009992 .vendor = "Macronix",
Hemanth Guruva Reddya136d422019-07-11 11:08:27 +02009993 .name = "MX66L51235F/MX25L51245G",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009994 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009995 .manufacture_id = MACRONIX_ID,
9996 .model_id = MACRONIX_MX66L51235F,
9997 .total_size = 65536,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009998 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009999 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10000 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010001 .tested = TEST_OK_PREW,
10002 .probe = probe_spi_rdid,
10003 .probe_timing = TIMING_ZERO,
10004 .block_erasers =
10005 {
10006 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010007 .eraseblocks = { {4 * 1024, 16384} },
10008 .block_erase = spi_block_erase_21,
10009 }, {
10010 .eraseblocks = { {4 * 1024, 16384} },
10011 .block_erase = spi_block_erase_20,
10012 }, {
10013 .eraseblocks = { {32 * 1024, 2048} },
10014 .block_erase = spi_block_erase_5c,
10015 }, {
10016 .eraseblocks = { {32 * 1024, 2048} },
10017 .block_erase = spi_block_erase_52,
10018 }, {
10019 .eraseblocks = { {64 * 1024, 1024} },
10020 .block_erase = spi_block_erase_dc,
10021 }, {
10022 .eraseblocks = { {64 * 1024, 1024} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010023 .block_erase = spi_block_erase_d8,
10024 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010025 .eraseblocks = { {64 * 1024 * 1024, 1} },
10026 .block_erase = spi_block_erase_60,
10027 }, {
10028 .eraseblocks = { {64 * 1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010029 .block_erase = spi_block_erase_c7,
10030 }
10031 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100010032 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
10033 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010034 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010035 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010036 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010037 .voltage = {2700, 3600},
10038 },
10039
Patrick Rudolph3ba83152021-06-08 10:52:19 +020010040 {
10041 .vendor = "Macronix",
10042 .name = "MX66L1G45G",
10043 .bustype = BUS_SPI,
10044 .manufacture_id = MACRONIX_ID,
10045 .model_id = MACRONIX_MX66L1G45G,
10046 .total_size = 131072,
10047 .page_size = 256,
10048 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10049 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
10050 .tested = TEST_OK_PREW,
10051 .probe = probe_spi_rdid,
10052 .probe_timing = TIMING_ZERO,
10053 .block_erasers =
10054 {
10055 {
10056 .eraseblocks = { {4 * 1024, 32768} },
10057 .block_erase = spi_block_erase_21,
10058 }, {
10059 .eraseblocks = { {4 * 1024, 32768} },
10060 .block_erase = spi_block_erase_20,
10061 }, {
10062 .eraseblocks = { {32 * 1024, 4096} },
10063 .block_erase = spi_block_erase_5c,
10064 }, {
10065 .eraseblocks = { {32 * 1024, 4096} },
10066 .block_erase = spi_block_erase_52,
10067 }, {
10068 .eraseblocks = { {64 * 1024, 2048} },
10069 .block_erase = spi_block_erase_dc,
10070 }, {
10071 .eraseblocks = { {64 * 1024, 2048} },
10072 .block_erase = spi_block_erase_d8,
10073 }, {
10074 .eraseblocks = { {128 * 1024 * 1024, 1} },
10075 .block_erase = spi_block_erase_60,
10076 }, {
10077 .eraseblocks = { {128 * 1024 * 1024, 1} },
10078 .block_erase = spi_block_erase_c7,
10079 }
10080 },
10081 /* TODO: security register and SBLK/SBULK, configuration register */
10082 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10083 .unlock = spi_disable_blockprotect_bp3_srwd,
10084 .write = spi_chip_write_256,
10085 .read = spi_chip_read, /* Fast read (0x0B) supported */
10086 .voltage = {2700, 3600},
10087 },
10088
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010089 /* The ST M25P05 is a bit of a problem. It has the same ID as the
10090 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
10091 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
10092 * only is successful if RDID does not work.
10093 */
10094 {
10095 .vendor = "Micron/Numonyx/ST",
10096 .name = "M25P05",
10097 .bustype = BUS_SPI,
10098 .manufacture_id = 0, /* Not used. */
10099 .model_id = ST_M25P05_RES,
10100 .total_size = 64,
10101 .page_size = 256,
10102 .feature_bits = FEATURE_WRSR_WREN,
10103 .tested = TEST_UNTESTED,
10104 .probe = probe_spi_res1,
10105 .probe_timing = TIMING_ZERO,
10106 .block_erasers =
10107 {
10108 {
10109 .eraseblocks = { {32 * 1024, 2} },
10110 .block_erase = spi_block_erase_d8,
10111 }, {
10112 .eraseblocks = { {64 * 1024, 1} },
10113 .block_erase = spi_block_erase_c7,
10114 }
10115 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010116 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010117 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010118 .write = spi_chip_write_1, /* 128 */
10119 .read = spi_chip_read,
10120 .voltage = {2700, 3600},
10121 },
10122
10123 {
10124 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010125 .name = "M25P05-A",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010126 .bustype = BUS_SPI,
10127 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010128 .model_id = ST_M25P05A,
10129 .total_size = 64,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010130 .page_size = 256,
10131 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010132 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010133 .probe = probe_spi_rdid,
10134 .probe_timing = TIMING_ZERO,
10135 .block_erasers =
10136 {
10137 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010138 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010139 .block_erase = spi_block_erase_d8,
10140 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010141 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010142 .block_erase = spi_block_erase_c7,
10143 }
10144 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010145 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010146 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010147 .write = spi_chip_write_256,
10148 .read = spi_chip_read,
10149 .voltage = {2700, 3600},
10150 },
10151
10152 /* The ST M25P10 has the same problem as the M25P05. */
10153 {
10154 .vendor = "Micron/Numonyx/ST",
10155 .name = "M25P10",
10156 .bustype = BUS_SPI,
10157 .manufacture_id = 0, /* Not used. */
10158 .model_id = ST_M25P10_RES,
10159 .total_size = 128,
10160 .page_size = 256,
10161 .feature_bits = FEATURE_WRSR_WREN,
10162 .tested = TEST_UNTESTED,
10163 .probe = probe_spi_res1,
10164 .probe_timing = TIMING_ZERO,
10165 .block_erasers =
10166 {
10167 {
10168 .eraseblocks = { {32 * 1024, 4} },
10169 .block_erase = spi_block_erase_d8,
10170 }, {
10171 .eraseblocks = { {128 * 1024, 1} },
10172 .block_erase = spi_block_erase_c7,
10173 }
10174 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010175 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010176 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010177 .write = spi_chip_write_1, /* 128 */
10178 .read = spi_chip_read,
10179 .voltage = {2700, 3600},
10180 },
10181
10182 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010183 .vendor = "Micron/Numonyx/ST",
10184 .name = "M25P10-A",
10185 .bustype = BUS_SPI,
10186 .manufacture_id = ST_ID,
10187 .model_id = ST_M25P10A,
10188 .total_size = 128,
10189 .page_size = 256,
10190 .feature_bits = FEATURE_WRSR_WREN,
10191 .tested = TEST_OK_PREW,
10192 .probe = probe_spi_rdid,
10193 .probe_timing = TIMING_ZERO,
10194 .block_erasers =
10195 {
10196 {
10197 .eraseblocks = { {32 * 1024, 4} },
10198 .block_erase = spi_block_erase_d8,
10199 }, {
10200 .eraseblocks = { {128 * 1024, 1} },
10201 .block_erase = spi_block_erase_c7,
10202 }
10203 },
10204 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10205 .unlock = spi_disable_blockprotect_bp3_srwd,
10206 .write = spi_chip_write_256,
10207 .read = spi_chip_read,
10208 .voltage = {2700, 3600},
10209 },
10210
10211 {
10212 .vendor = "Micron/Numonyx/ST",
10213 .name = "M25P128",
10214 .bustype = BUS_SPI,
10215 .manufacture_id = ST_ID,
10216 .model_id = ST_M25P128,
10217 .total_size = 16384,
10218 .page_size = 256,
10219 .feature_bits = FEATURE_WRSR_WREN,
10220 .tested = TEST_OK_PREW,
10221 .probe = probe_spi_rdid,
10222 .probe_timing = TIMING_ZERO,
10223 .block_erasers =
10224 {
10225 {
10226 .eraseblocks = { {256 * 1024, 64} },
10227 .block_erase = spi_block_erase_d8,
10228 }, {
10229 .eraseblocks = { {16 * 1024 * 1024, 1} },
10230 .block_erase = spi_block_erase_c7,
10231 }
10232 },
10233 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10234 .unlock = spi_disable_blockprotect_bp3_srwd,
10235 .write = spi_chip_write_256,
10236 .read = spi_chip_read,
10237 .voltage = {2700, 3600},
10238 },
10239
10240 {
10241 .vendor = "Micron/Numonyx/ST",
10242 .name = "M25P16",
10243 .bustype = BUS_SPI,
10244 .manufacture_id = ST_ID,
10245 .model_id = ST_M25P16,
10246 .total_size = 2048,
10247 .page_size = 256,
10248 .feature_bits = FEATURE_WRSR_WREN,
10249 .tested = TEST_OK_PREW,
10250 .probe = probe_spi_rdid,
10251 .probe_timing = TIMING_ZERO,
10252 .block_erasers =
10253 {
10254 {
10255 .eraseblocks = { {64 * 1024, 32} },
10256 .block_erase = spi_block_erase_d8,
10257 }, {
10258 .eraseblocks = { {2 * 1024 * 1024, 1} },
10259 .block_erase = spi_block_erase_c7,
10260 }
10261 },
10262 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10263 .unlock = spi_disable_blockprotect_bp3_srwd,
10264 .write = spi_chip_write_256,
10265 .read = spi_chip_read,
10266 .voltage = {2700, 3600},
10267 },
10268
10269 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010270 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10271 .name = "M25P20",
10272 .bustype = BUS_SPI,
10273 .manufacture_id = ST_ID,
10274 .model_id = ST_M25P20,
10275 .total_size = 256,
10276 .page_size = 256,
10277 .feature_bits = FEATURE_WRSR_WREN,
10278 .tested = TEST_UNTESTED,
10279 .probe = probe_spi_rdid,
10280 .probe_timing = TIMING_ZERO,
10281 .block_erasers =
10282 {
10283 {
10284 .eraseblocks = { {64 * 1024, 4} },
10285 .block_erase = spi_block_erase_d8,
10286 }, {
10287 .eraseblocks = { {256 * 1024, 1} },
10288 .block_erase = spi_block_erase_c7,
10289 }
10290 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010291 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010292 .unlock = spi_disable_blockprotect,
10293 .write = spi_chip_write_256,
10294 .read = spi_chip_read, /* Fast read (0x0B) supported */
10295 .voltage = {2700, 3600},
10296 },
10297
10298 {
10299 .vendor = "Micron/Numonyx/ST",
10300 .name = "M25P20-old",
10301 .bustype = BUS_SPI,
10302 .manufacture_id = 0, /* Not used. */
10303 .model_id = ST_M25P20_RES,
10304 .total_size = 256,
10305 .page_size = 256,
10306 .feature_bits = FEATURE_WRSR_WREN,
10307 .tested = TEST_OK_PREW,
10308 .probe = probe_spi_res1,
10309 .probe_timing = TIMING_ZERO,
10310 .block_erasers =
10311 {
10312 {
10313 .eraseblocks = { {64 * 1024, 4} },
10314 .block_erase = spi_block_erase_d8,
10315 }, {
10316 .eraseblocks = { {256 * 1024, 1} },
10317 .block_erase = spi_block_erase_c7,
10318 }
10319 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010320 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010321 .unlock = spi_disable_blockprotect,
10322 .write = spi_chip_write_256,
10323 .read = spi_chip_read, /* Fast read (0x0B) supported */
10324 .voltage = {2700, 3600},
10325 },
10326
10327 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010328 .vendor = "Micron/Numonyx/ST",
10329 .name = "M25P32",
10330 .bustype = BUS_SPI,
10331 .manufacture_id = ST_ID,
10332 .model_id = ST_M25P32,
10333 .total_size = 4096,
10334 .page_size = 256,
10335 .feature_bits = FEATURE_WRSR_WREN,
10336 .tested = TEST_OK_PREW,
10337 .probe = probe_spi_rdid,
10338 .probe_timing = TIMING_ZERO,
10339 .block_erasers =
10340 {
10341 {
10342 .eraseblocks = { {64 * 1024, 64} },
10343 .block_erase = spi_block_erase_d8,
10344 }, {
10345 .eraseblocks = { {4 * 1024 * 1024, 1} },
10346 .block_erase = spi_block_erase_c7,
10347 }
10348 },
10349 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10350 .unlock = spi_disable_blockprotect_bp3_srwd,
10351 .write = spi_chip_write_256,
10352 .read = spi_chip_read,
10353 .voltage = {2700, 3600},
10354 },
10355
10356 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010357 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10358 .name = "M25P40",
10359 .bustype = BUS_SPI,
10360 .manufacture_id = ST_ID,
10361 .model_id = ST_M25P40,
10362 .total_size = 512,
10363 .page_size = 256,
10364 .feature_bits = FEATURE_WRSR_WREN,
10365 .tested = TEST_OK_PREW,
10366 .probe = probe_spi_rdid,
10367 .probe_timing = TIMING_ZERO,
10368 .block_erasers =
10369 {
10370 {
10371 .eraseblocks = { {64 * 1024, 8} },
10372 .block_erase = spi_block_erase_d8,
10373 }, {
10374 .eraseblocks = { {512 * 1024, 1} },
10375 .block_erase = spi_block_erase_c7,
10376 }
10377 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010378 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010379 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010380 .write = spi_chip_write_256,
10381 .read = spi_chip_read,
10382 .voltage = {2700, 3600},
10383 },
10384
10385 {
10386 .vendor = "Micron/Numonyx/ST",
10387 .name = "M25P40-old",
10388 .bustype = BUS_SPI,
10389 .manufacture_id = 0, /* Not used. */
10390 .model_id = ST_M25P40_RES,
10391 .total_size = 512,
10392 .page_size = 256,
10393 .feature_bits = FEATURE_WRSR_WREN,
10394 .tested = TEST_UNTESTED,
10395 .probe = probe_spi_res1,
10396 .probe_timing = TIMING_ZERO,
10397 .block_erasers =
10398 {
10399 {
10400 .eraseblocks = { {64 * 1024, 8} },
10401 .block_erase = spi_block_erase_d8,
10402 }, {
10403 .eraseblocks = { {512 * 1024, 1} },
10404 .block_erase = spi_block_erase_c7,
10405 }
10406 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010407 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010408 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010409 .write = spi_chip_write_256,
10410 .read = spi_chip_read,
10411 },
10412
10413 {
10414 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010415 .name = "M25P64",
10416 .bustype = BUS_SPI,
10417 .manufacture_id = ST_ID,
10418 .model_id = ST_M25P64,
10419 .total_size = 8192,
10420 .page_size = 256,
10421 .feature_bits = FEATURE_WRSR_WREN,
10422 .tested = TEST_OK_PREW,
10423 .probe = probe_spi_rdid,
10424 .probe_timing = TIMING_ZERO,
10425 .block_erasers =
10426 {
10427 {
10428 .eraseblocks = { {64 * 1024, 128} },
10429 .block_erase = spi_block_erase_d8,
10430 }, {
10431 .eraseblocks = { {8 * 1024 * 1024, 1} },
10432 .block_erase = spi_block_erase_c7,
10433 }
10434 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010435 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010436 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010437 .write = spi_chip_write_256,
10438 .read = spi_chip_read,
10439 .voltage = {2700, 3600},
10440 },
10441
10442 {
10443 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010444 .name = "M25P80",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010445 .bustype = BUS_SPI,
10446 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010447 .model_id = ST_M25P80,
10448 .total_size = 1024,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010449 .page_size = 256,
10450 .feature_bits = FEATURE_WRSR_WREN,
10451 .tested = TEST_OK_PREW,
10452 .probe = probe_spi_rdid,
10453 .probe_timing = TIMING_ZERO,
10454 .block_erasers =
10455 {
10456 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010457 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010458 .block_erase = spi_block_erase_d8,
10459 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010460 .eraseblocks = { {1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010461 .block_erase = spi_block_erase_c7,
10462 }
10463 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010464 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010465 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010466 .write = spi_chip_write_256,
10467 .read = spi_chip_read,
10468 .voltage = {2700, 3600},
10469 },
10470
10471 {
10472 .vendor = "Micron/Numonyx/ST",
10473 .name = "M25PE10",
10474 .bustype = BUS_SPI,
10475 .manufacture_id = ST_ID,
10476 .model_id = ST_M25PE10,
10477 .total_size = 128,
10478 .page_size = 256,
10479 .feature_bits = FEATURE_WRSR_WREN,
10480 .tested = TEST_UNTESTED,
10481 .probe = probe_spi_rdid,
10482 .probe_timing = TIMING_ZERO,
10483 .block_erasers =
10484 {
10485 {
10486 .eraseblocks = { {4 * 1024, 32} },
10487 .block_erase = spi_block_erase_20,
10488 }, {
10489 .eraseblocks = { {64 * 1024, 2} },
10490 .block_erase = spi_block_erase_d8,
10491 }, {
10492 .eraseblocks = { {128 * 1024, 1} },
10493 .block_erase = spi_block_erase_c7,
10494 }
10495 },
10496 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10497 .unlock = spi_disable_blockprotect,
10498 .write = spi_chip_write_256,
10499 .read = spi_chip_read,
10500 .voltage = {2700, 3600},
10501 },
10502
10503 {
10504 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010505 .name = "M25PE16",
10506 .bustype = BUS_SPI,
10507 .manufacture_id = ST_ID,
10508 .model_id = ST_M25PE16,
10509 .total_size = 2048,
10510 .page_size = 256,
10511 .feature_bits = FEATURE_WRSR_WREN,
10512 .tested = TEST_UNTESTED,
10513 .probe = probe_spi_rdid,
10514 .probe_timing = TIMING_ZERO,
10515 .block_erasers =
10516 {
10517 {
10518 .eraseblocks = { {4 * 1024, 512} },
10519 .block_erase = spi_block_erase_20,
10520 }, {
10521 .eraseblocks = { {64 * 1024, 32} },
10522 .block_erase = spi_block_erase_d8,
10523 }, {
10524 .eraseblocks = { {2 * 1024 * 1024, 1} },
10525 .block_erase = spi_block_erase_c7,
10526 }
10527 },
10528 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10529 .unlock = spi_disable_blockprotect,
10530 .write = spi_chip_write_256,
10531 .read = spi_chip_read,
10532 .voltage = {2700, 3600},
10533 },
10534
10535 {
10536 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010537 .name = "M25PE20",
10538 .bustype = BUS_SPI,
10539 .manufacture_id = ST_ID,
10540 .model_id = ST_M25PE20,
10541 .total_size = 256,
10542 .page_size = 256,
10543 .feature_bits = FEATURE_WRSR_WREN,
10544 .tested = TEST_UNTESTED,
10545 .probe = probe_spi_rdid,
10546 .probe_timing = TIMING_ZERO,
10547 .block_erasers =
10548 {
10549 {
10550 .eraseblocks = { {4 * 1024, 64} },
10551 .block_erase = spi_block_erase_20,
10552 }, {
10553 .eraseblocks = { {64 * 1024, 4} },
10554 .block_erase = spi_block_erase_d8,
10555 }, {
10556 .eraseblocks = { {256 * 1024, 1} },
10557 .block_erase = spi_block_erase_c7,
10558 }
10559 },
10560 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10561 .unlock = spi_disable_blockprotect,
10562 .write = spi_chip_write_256,
10563 .read = spi_chip_read,
10564 .voltage = {2700, 3600},
10565 },
10566
10567 {
10568 .vendor = "Micron/Numonyx/ST",
10569 .name = "M25PE40",
10570 .bustype = BUS_SPI,
10571 .manufacture_id = ST_ID,
10572 .model_id = ST_M25PE40,
10573 .total_size = 512,
10574 .page_size = 256,
10575 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010576 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010577 .probe = probe_spi_rdid,
10578 .probe_timing = TIMING_ZERO,
10579 .block_erasers =
10580 {
10581 {
10582 .eraseblocks = { {4 * 1024, 128} },
10583 .block_erase = spi_block_erase_20,
10584 }, {
10585 .eraseblocks = { {64 * 1024, 8} },
10586 .block_erase = spi_block_erase_d8,
10587 }, {
10588 .eraseblocks = { {512 * 1024, 1} },
10589 .block_erase = spi_block_erase_c7,
10590 }
10591 },
10592 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10593 .unlock = spi_disable_blockprotect,
10594 .write = spi_chip_write_256,
10595 .read = spi_chip_read,
10596 .voltage = {2700, 3600},
10597 },
10598
10599 {
10600 .vendor = "Micron/Numonyx/ST",
10601 .name = "M25PE80",
10602 .bustype = BUS_SPI,
10603 .manufacture_id = ST_ID,
10604 .model_id = ST_M25PE80,
10605 .total_size = 1024,
10606 .page_size = 256,
10607 .feature_bits = FEATURE_WRSR_WREN,
10608 .tested = TEST_OK_PREW,
10609 .probe = probe_spi_rdid,
10610 .probe_timing = TIMING_ZERO,
10611 .block_erasers =
10612 {
10613 {
10614 .eraseblocks = { {4 * 1024, 256} },
10615 .block_erase = spi_block_erase_20,
10616 }, {
10617 .eraseblocks = { {64 * 1024, 16} },
10618 .block_erase = spi_block_erase_d8,
10619 }, {
10620 .eraseblocks = { {1024 * 1024, 1} },
10621 .block_erase = spi_block_erase_c7,
10622 }
10623 },
10624 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10625 .unlock = spi_disable_blockprotect,
10626 .write = spi_chip_write_256,
10627 .read = spi_chip_read,
10628 .voltage = {2700, 3600},
10629 },
10630
10631 {
10632 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010633 .name = "M25PX16",
10634 .bustype = BUS_SPI,
10635 .manufacture_id = ST_ID,
10636 .model_id = ST_M25PX16,
10637 .total_size = 2048,
10638 .page_size = 256,
10639 /* OTP: 64B total; read 0x4B; write 0x42 */
10640 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10641 .tested = TEST_OK_PREW,
10642 .probe = probe_spi_rdid,
10643 .probe_timing = TIMING_ZERO,
10644 .block_erasers =
10645 {
10646 {
10647 .eraseblocks = { { 4 * 1024, 512 } },
10648 .block_erase = spi_block_erase_20,
10649 }, {
10650 .eraseblocks = { {64 * 1024, 32} },
10651 .block_erase = spi_block_erase_d8,
10652 }, {
10653 .eraseblocks = { {2 * 1024 * 1024, 1} },
10654 .block_erase = spi_block_erase_c7,
10655 }
10656 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010657 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010658 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10659 .write = spi_chip_write_256,
10660 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010661 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010662 },
10663
10664 {
10665 .vendor = "Micron/Numonyx/ST",
10666 .name = "M25PX32",
10667 .bustype = BUS_SPI,
10668 .manufacture_id = ST_ID,
10669 .model_id = ST_M25PX32,
10670 .total_size = 4096,
10671 .page_size = 256,
10672 /* OTP: 64B total; read 0x4B; write 0x42 */
10673 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10674 .tested = TEST_OK_PRE,
10675 .probe = probe_spi_rdid,
10676 .probe_timing = TIMING_ZERO,
10677 .block_erasers =
10678 {
10679 {
10680 .eraseblocks = { { 4 * 1024, 1024 } },
10681 .block_erase = spi_block_erase_20,
10682 }, {
10683 .eraseblocks = { {64 * 1024, 64} },
10684 .block_erase = spi_block_erase_d8,
10685 }, {
10686 .eraseblocks = { {4 * 1024 * 1024, 1} },
10687 .block_erase = spi_block_erase_c7,
10688 }
10689 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010690 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010691 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10692 .write = spi_chip_write_256,
10693 .read = spi_chip_read,
10694 .voltage = {2700, 3600},
10695 },
10696
10697 {
10698 .vendor = "Micron/Numonyx/ST",
10699 .name = "M25PX64",
10700 .bustype = BUS_SPI,
10701 .manufacture_id = ST_ID,
10702 .model_id = ST_M25PX64,
10703 .total_size = 8192,
10704 .page_size = 256,
10705 /* OTP: 64B total; read 0x4B; write 0x42 */
10706 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010707 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010708 .probe = probe_spi_rdid,
10709 .probe_timing = TIMING_ZERO,
10710 .block_erasers =
10711 {
10712 {
10713 .eraseblocks = { { 4 * 1024, 2048 } },
10714 .block_erase = spi_block_erase_20,
10715 }, {
10716 .eraseblocks = { {64 * 1024, 128} },
10717 .block_erase = spi_block_erase_d8,
10718 }, {
10719 .eraseblocks = { {8 * 1024 * 1024, 1} },
10720 .block_erase = spi_block_erase_c7,
10721 }
10722 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010723 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010724 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10725 .write = spi_chip_write_256,
10726 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010727 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010728 },
10729
10730 {
10731 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010732 .name = "M25PX80",
10733 .bustype = BUS_SPI,
10734 .manufacture_id = ST_ID,
10735 .model_id = ST_M25PX80,
10736 .total_size = 1024,
10737 .page_size = 256,
10738 /* OTP: 64B total; read 0x4B, write 0x42 */
10739 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10740 .tested = TEST_OK_PREW,
10741 .probe = probe_spi_rdid,
10742 .probe_timing = TIMING_ZERO,
10743 .block_erasers =
10744 {
10745 {
10746 .eraseblocks = { { 4 * 1024, 256 } },
10747 .block_erase = spi_block_erase_20,
10748 }, {
10749 .eraseblocks = { {64 * 1024, 16} },
10750 .block_erase = spi_block_erase_d8,
10751 }, {
10752 .eraseblocks = { {1024 * 1024, 1} },
10753 .block_erase = spi_block_erase_c7,
10754 }
10755 },
10756 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
10757 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10758 .write = spi_chip_write_256,
10759 .read = spi_chip_read,
10760 .voltage = {2700, 3600},
10761 },
10762
10763 {
10764 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010765 .name = "M45PE10",
10766 .bustype = BUS_SPI,
10767 .manufacture_id = ST_ID,
10768 .model_id = ST_M45PE10,
10769 .total_size = 128,
10770 .page_size = 256,
10771 .tested = TEST_UNTESTED,
10772 .probe = probe_spi_rdid,
10773 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010774 .block_erasers =
10775 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010776 {
10777 .eraseblocks = { {256, 512} },
10778 .block_erase = spi_block_erase_db,
10779 }, {
10780 .eraseblocks = { {64 * 1024, 2} },
10781 .block_erase = spi_block_erase_d8,
10782 }
10783 },
10784 .printlock = spi_prettyprint_status_register_default_welwip,
10785 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10786 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10787 .read = spi_chip_read, /* Fast read (0x0B) supported */
10788 .voltage = {2700, 3600},
10789 },
10790
10791 {
10792 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010793 .name = "M45PE16",
10794 .bustype = BUS_SPI,
10795 .manufacture_id = ST_ID,
10796 .model_id = ST_M45PE16,
10797 .total_size = 2048,
10798 .page_size = 256,
10799 .tested = TEST_UNTESTED,
10800 .probe = probe_spi_rdid,
10801 .probe_timing = TIMING_ZERO,
10802 .block_erasers =
10803 {
10804 {
10805 .eraseblocks = { {256, 8192} },
10806 .block_erase = spi_block_erase_db,
10807 }, {
10808 .eraseblocks = { {64 * 1024, 32} },
10809 .block_erase = spi_block_erase_d8,
10810 }
10811 },
10812 .printlock = spi_prettyprint_status_register_default_welwip,
10813 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10814 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10815 .read = spi_chip_read, /* Fast read (0x0B) supported */
10816 .voltage = {2700, 3600},
10817 },
10818
10819 {
10820 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010821 .name = "M45PE20",
10822 .bustype = BUS_SPI,
10823 .manufacture_id = ST_ID,
10824 .model_id = ST_M45PE20,
10825 .total_size = 256,
10826 .page_size = 256,
10827 .tested = TEST_UNTESTED,
10828 .probe = probe_spi_rdid,
10829 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010830 .block_erasers =
10831 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010832 {
10833 .eraseblocks = { {256, 1024} },
10834 .block_erase = spi_block_erase_db,
10835 }, {
10836 .eraseblocks = { {64 * 1024, 4} },
10837 .block_erase = spi_block_erase_d8,
10838 }
10839 },
10840 .printlock = spi_prettyprint_status_register_default_welwip,
10841 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10842 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10843 .read = spi_chip_read, /* Fast read (0x0B) supported */
10844 .voltage = {2700, 3600},
10845 },
10846
10847 {
10848 .vendor = "Micron/Numonyx/ST",
10849 .name = "M45PE40",
10850 .bustype = BUS_SPI,
10851 .manufacture_id = ST_ID,
10852 .model_id = ST_M45PE40,
10853 .total_size = 512,
10854 .page_size = 256,
10855 .tested = TEST_UNTESTED,
10856 .probe = probe_spi_rdid,
10857 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010858 .block_erasers =
10859 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010860 {
10861 .eraseblocks = { {256, 2048} },
10862 .block_erase = spi_block_erase_db,
10863 }, {
10864 .eraseblocks = { {64 * 1024, 8} },
10865 .block_erase = spi_block_erase_d8,
10866 }
10867 },
10868 .printlock = spi_prettyprint_status_register_default_welwip,
10869 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000010870 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010871 .read = spi_chip_read, /* Fast read (0x0B) supported */
10872 .voltage = {2700, 3600},
10873 },
10874
10875 {
10876 .vendor = "Micron/Numonyx/ST",
10877 .name = "M45PE80",
10878 .bustype = BUS_SPI,
10879 .manufacture_id = ST_ID,
10880 .model_id = ST_M45PE80,
10881 .total_size = 1024,
10882 .page_size = 256,
10883 .tested = TEST_UNTESTED,
10884 .probe = probe_spi_rdid,
10885 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010886 .block_erasers =
10887 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010888 {
10889 .eraseblocks = { {256, 4096} },
10890 .block_erase = spi_block_erase_db,
10891 }, {
10892 .eraseblocks = { {64 * 1024, 16} },
10893 .block_erase = spi_block_erase_d8,
10894 }
10895 },
10896 .printlock = spi_prettyprint_status_register_default_welwip,
10897 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10898 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10899 .read = spi_chip_read, /* Fast read (0x0B) supported */
10900 .voltage = {2700, 3600},
10901 },
10902
10903 {
10904 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010905 .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
10906 .bustype = BUS_SPI,
10907 .manufacture_id = ST_ID,
10908 .model_id = ST_N25Q00A__1G,
10909 .total_size = 131072,
10910 .page_size = 256,
10911 /* supports SFDP */
10912 /* OTP: 64B total; read 0x4B, write 0x42 */
10913 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10914 .tested = TEST_UNTESTED,
10915 .probe = probe_spi_rdid,
10916 .probe_timing = TIMING_ZERO,
10917 .block_erasers =
10918 {
10919 {
10920 .eraseblocks = { {4 * 1024, 32768} },
10921 .block_erase = spi_block_erase_21,
10922 }, {
10923 .eraseblocks = { {4 * 1024, 32768} },
10924 .block_erase = spi_block_erase_20,
10925 }, {
10926 .eraseblocks = { {64 * 1024, 2048} },
10927 .block_erase = spi_block_erase_dc,
10928 }, {
10929 .eraseblocks = { {64 * 1024, 2048} },
10930 .block_erase = spi_block_erase_d8,
10931 }, {
10932 .eraseblocks = { {32768 * 1024, 4} },
10933 .block_erase = spi_block_erase_c4,
10934 }
10935 },
10936 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10937 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10938 .write = spi_chip_write_256, /* Multi I/O supported */
10939 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10940 .voltage = {1700, 2000},
10941 },
10942
10943 {
10944 .vendor = "Micron/Numonyx/ST",
10945 .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
10946 .bustype = BUS_SPI,
10947 .manufacture_id = ST_ID,
10948 .model_id = ST_N25Q00A__3G,
10949 .total_size = 131072,
10950 .page_size = 256,
10951 /* supports SFDP */
10952 /* OTP: 64B total; read 0x4B, write 0x42 */
10953 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10954 .tested = TEST_UNTESTED,
10955 .probe = probe_spi_rdid,
10956 .probe_timing = TIMING_ZERO,
10957 .block_erasers =
10958 {
10959 {
10960 .eraseblocks = { {4 * 1024, 32768} },
10961 .block_erase = spi_block_erase_21,
10962 }, {
10963 .eraseblocks = { {4 * 1024, 32768} },
10964 .block_erase = spi_block_erase_20,
10965 }, {
10966 .eraseblocks = { {64 * 1024, 2048} },
10967 .block_erase = spi_block_erase_dc,
10968 }, {
10969 .eraseblocks = { {64 * 1024, 2048} },
10970 .block_erase = spi_block_erase_d8,
10971 }, {
10972 .eraseblocks = { {32768 * 1024, 4} },
10973 .block_erase = spi_block_erase_c4,
10974 }
10975 },
10976 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10977 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10978 .write = spi_chip_write_256, /* Multi I/O supported */
10979 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10980 .voltage = {2700, 3600},
10981 },
10982
10983 {
10984 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010985 .name = "N25Q016",
10986 .bustype = BUS_SPI,
10987 .manufacture_id = ST_ID,
10988 .model_id = ST_N25Q016__1E,
10989 .total_size = 2048,
10990 .page_size = 256,
10991 /* supports SFDP */
10992 /* OTP: 64B total; read 0x4B, write 0x42 */
10993 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10994 .tested = TEST_UNTESTED,
10995 .probe = probe_spi_rdid,
10996 .probe_timing = TIMING_ZERO,
10997 .block_erasers =
10998 {
10999 {
11000 .eraseblocks = { {4 * 1024, 512} },
11001 .block_erase = spi_block_erase_20,
11002 }, {
11003 .eraseblocks = { {32 * 1024, 64} },
11004 .block_erase = spi_block_erase_52,
11005 }, {
11006 .eraseblocks = { {64 * 1024, 32} },
11007 .block_erase = spi_block_erase_d8,
11008 }, {
11009 .eraseblocks = { {2 * 1024 * 1024, 1} },
11010 .block_erase = spi_block_erase_c7,
11011 }
11012 },
11013 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11014 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11015 .write = spi_chip_write_256, /* Multi I/O supported */
11016 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11017 .voltage = {1700, 2000},
11018 },
11019
11020 {
11021 .vendor = "Micron/Numonyx/ST",
11022 .name = "N25Q032..1E",
11023 .bustype = BUS_SPI,
11024 .manufacture_id = ST_ID,
11025 .model_id = ST_N25Q032__1E,
11026 .total_size = 4096,
11027 .page_size = 256,
11028 /* supports SFDP */
11029 /* OTP: 64B total; read 0x4B, write 0x42 */
11030 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11031 .tested = TEST_UNTESTED,
11032 .probe = probe_spi_rdid,
11033 .probe_timing = TIMING_ZERO,
11034 .block_erasers =
11035 {
11036 {
11037 .eraseblocks = { {4 * 1024, 1024} },
11038 .block_erase = spi_block_erase_20,
11039 }, {
11040 .eraseblocks = { {64 * 1024, 64} },
11041 .block_erase = spi_block_erase_d8,
11042 }, {
11043 .eraseblocks = { {4 * 1024 * 1024, 1} },
11044 .block_erase = spi_block_erase_c7,
11045 }
11046 },
11047 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11048 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11049 .write = spi_chip_write_256, /* Multi I/O supported */
11050 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11051 .voltage = {1700, 2000},
11052 },
11053
11054 {
11055 .vendor = "Micron/Numonyx/ST",
11056 .name = "N25Q032..3E",
11057 .bustype = BUS_SPI,
11058 .manufacture_id = ST_ID,
11059 .model_id = ST_N25Q032__3E,
11060 .total_size = 4096,
11061 .page_size = 256,
11062 /* supports SFDP */
11063 /* OTP: 64B total; read 0x4B, write 0x42 */
11064 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11065 .tested = TEST_OK_PREW,
11066 .probe = probe_spi_rdid,
11067 .probe_timing = TIMING_ZERO,
11068 .block_erasers =
11069 {
11070 {
11071 .eraseblocks = { {4 * 1024, 1024} },
11072 .block_erase = spi_block_erase_20,
11073 }, {
11074 .eraseblocks = { {64 * 1024, 64} },
11075 .block_erase = spi_block_erase_d8,
11076 }, {
11077 .eraseblocks = { {4 * 1024 * 1024, 1} },
11078 .block_erase = spi_block_erase_c7,
11079 }
11080 },
11081 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11082 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11083 .write = spi_chip_write_256, /* Multi I/O supported */
11084 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11085 .voltage = {2700, 3600},
11086 },
11087
11088 {
11089 .vendor = "Micron/Numonyx/ST",
11090 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11091 .bustype = BUS_SPI,
11092 .manufacture_id = ST_ID,
11093 .model_id = ST_N25Q064__1E,
11094 .total_size = 8192,
11095 .page_size = 256,
11096 /* supports SFDP */
11097 /* OTP: 64B total; read 0x4B, write 0x42 */
11098 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011099 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011100 .probe = probe_spi_rdid,
11101 .probe_timing = TIMING_ZERO,
11102 .block_erasers =
11103 {
11104 {
11105 .eraseblocks = { {4 * 1024, 2048 } },
11106 .block_erase = spi_block_erase_20,
11107 }, {
11108 .eraseblocks = { {64 * 1024, 128} },
11109 .block_erase = spi_block_erase_d8,
11110 }, {
11111 .eraseblocks = { {8 * 1024 * 1024, 1} },
11112 .block_erase = spi_block_erase_c7,
11113 }
11114 },
11115 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11116 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11117 .write = spi_chip_write_256, /* Multi I/O supported */
11118 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11119 .voltage = {1700, 2000},
11120 },
11121
11122 {
11123 .vendor = "Micron/Numonyx/ST",
11124 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11125 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011126 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011127 .model_id = ST_N25Q064__3E,
11128 .total_size = 8192,
11129 .page_size = 256,
11130 /* supports SFDP */
11131 /* OTP: 64B total; read 0x4B, write 0x42 */
11132 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11133 .tested = TEST_OK_PREW,
11134 .probe = probe_spi_rdid,
11135 .probe_timing = TIMING_ZERO,
11136 .block_erasers =
11137 {
11138 {
11139 .eraseblocks = { {4 * 1024, 2048 } },
11140 .block_erase = spi_block_erase_20,
11141 }, {
11142 .eraseblocks = { {64 * 1024, 128} },
11143 .block_erase = spi_block_erase_d8,
11144 }, {
11145 .eraseblocks = { {8 * 1024 * 1024, 1} },
11146 .block_erase = spi_block_erase_c7,
11147 }
11148 },
11149 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11150 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11151 .write = spi_chip_write_256, /* Multi I/O supported */
11152 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11153 .voltage = {2700, 3600},
11154 },
11155
11156 {
11157 .vendor = "Micron/Numonyx/ST",
11158 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11159 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011160 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011161 .model_id = ST_N25Q128__1E,
11162 .total_size = 16384,
11163 .page_size = 256,
11164 /* supports SFDP */
11165 /* OTP: 64B total; read 0x4B, write 0x42 */
11166 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011167 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011168 .probe = probe_spi_rdid,
11169 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011170 .block_erasers =
11171 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011172 {
11173 .eraseblocks = { {4 * 1024, 4096 } },
11174 .block_erase = spi_block_erase_20,
11175 }, {
11176 .eraseblocks = { {64 * 1024, 256} },
11177 .block_erase = spi_block_erase_d8,
11178 }, {
11179 .eraseblocks = { {16384 * 1024, 1} },
11180 .block_erase = spi_block_erase_c7,
11181 }
11182 },
11183 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11184 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11185 .write = spi_chip_write_256, /* Multi I/O supported */
11186 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11187 .voltage = {1700, 2000},
11188 },
11189
11190 {
11191 .vendor = "Micron/Numonyx/ST",
11192 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11193 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011194 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011195 .model_id = ST_N25Q128__3E,
11196 .total_size = 16384,
11197 .page_size = 256,
11198 /* supports SFDP */
11199 /* OTP: 64B total; read 0x4B, write 0x42 */
11200 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11201 .tested = TEST_OK_PREW,
11202 .probe = probe_spi_rdid,
11203 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011204 .block_erasers =
11205 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011206 {
11207 .eraseblocks = { {4 * 1024, 4096 } },
11208 .block_erase = spi_block_erase_20,
11209 }, {
11210 .eraseblocks = { {64 * 1024, 256} },
11211 .block_erase = spi_block_erase_d8,
11212 }, {
11213 .eraseblocks = { {16384 * 1024, 1} },
11214 .block_erase = spi_block_erase_c7,
11215 }
11216 },
11217 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11218 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11219 .write = spi_chip_write_256, /* Multi I/O supported */
11220 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11221 .voltage = {2700, 3600},
11222 },
11223
11224 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011225 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011226 .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11227 .bustype = BUS_SPI,
11228 .manufacture_id = ST_ID,
11229 .model_id = ST_N25Q256__1E,
11230 .total_size = 32768,
11231 .page_size = 256,
11232 /* supports SFDP */
11233 /* OTP: 64B total; read 0x4B, write 0x42 */
11234 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11235 .tested = TEST_UNTESTED,
11236 .probe = probe_spi_rdid,
11237 .probe_timing = TIMING_ZERO,
11238 .block_erasers =
11239 {
11240 {
11241 .eraseblocks = { {4 * 1024, 8192} },
11242 .block_erase = spi_block_erase_21,
11243 }, {
11244 .eraseblocks = { {4 * 1024, 8192} },
11245 .block_erase = spi_block_erase_20,
11246 }, {
11247 .eraseblocks = { {64 * 1024, 512} },
11248 .block_erase = spi_block_erase_dc,
11249 }, {
11250 .eraseblocks = { {64 * 1024, 512} },
11251 .block_erase = spi_block_erase_d8,
11252 }, {
11253 .eraseblocks = { {32768 * 1024, 1} },
11254 .block_erase = spi_block_erase_c7,
11255 }
11256 },
11257 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11258 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11259 .write = spi_chip_write_256, /* Multi I/O supported */
11260 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11261 .voltage = {1700, 2000},
11262 },
11263
11264 {
11265 .vendor = "Micron/Numonyx/ST",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011266 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11267 .bustype = BUS_SPI,
11268 .manufacture_id = ST_ID,
11269 .model_id = ST_N25Q256__3E,
11270 .total_size = 32768,
11271 .page_size = 256,
11272 /* supports SFDP */
11273 /* OTP: 64B total; read 0x4B, write 0x42 */
11274 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11275 .tested = TEST_UNTESTED,
11276 .probe = probe_spi_rdid,
11277 .probe_timing = TIMING_ZERO,
11278 .block_erasers =
11279 {
11280 {
11281 .eraseblocks = { {4 * 1024, 8192} },
11282 .block_erase = spi_block_erase_21,
11283 }, {
11284 .eraseblocks = { {4 * 1024, 8192} },
11285 .block_erase = spi_block_erase_20,
11286 }, {
11287 .eraseblocks = { {64 * 1024, 512} },
11288 .block_erase = spi_block_erase_dc,
11289 }, {
11290 .eraseblocks = { {64 * 1024, 512} },
11291 .block_erase = spi_block_erase_d8,
11292 }, {
11293 .eraseblocks = { {32768 * 1024, 1} },
11294 .block_erase = spi_block_erase_c7,
11295 }
11296 },
11297 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11298 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11299 .write = spi_chip_write_256, /* Multi I/O supported */
11300 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11301 .voltage = {2700, 3600},
11302 },
11303
11304 {
11305 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011306 .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011307 .bustype = BUS_SPI,
11308 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011309 .model_id = ST_N25Q512__1G,
11310 .total_size = 65536,
11311 .page_size = 256,
11312 /* supports SFDP */
11313 /* OTP: 64B total; read 0x4B, write 0x42 */
11314 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11315 .tested = TEST_UNTESTED,
11316 .probe = probe_spi_rdid,
11317 .probe_timing = TIMING_ZERO,
11318 .block_erasers =
11319 {
11320 {
11321 .eraseblocks = { {4 * 1024, 16384} },
11322 .block_erase = spi_block_erase_21,
11323 }, {
11324 .eraseblocks = { {4 * 1024, 16384} },
11325 .block_erase = spi_block_erase_20,
11326 }, {
11327 .eraseblocks = { {64 * 1024, 1024} },
11328 .block_erase = spi_block_erase_dc,
11329 }, {
11330 .eraseblocks = { {64 * 1024, 1024} },
11331 .block_erase = spi_block_erase_d8,
11332 }, {
11333 .eraseblocks = { {32768 * 1024, 2} },
11334 .block_erase = spi_block_erase_c4,
11335 }
11336 },
11337 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11338 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11339 .write = spi_chip_write_256, /* Multi I/O supported */
11340 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11341 .voltage = {1700, 2000},
11342 },
11343
11344 {
11345 .vendor = "Micron/Numonyx/ST",
11346 .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
11347 .bustype = BUS_SPI,
11348 .manufacture_id = ST_ID,
11349 .model_id = ST_N25Q512__3G,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011350 .total_size = 65536,
11351 .page_size = 256,
11352 /* supports SFDP */
11353 /* OTP: 64B total; read 0x4B, write 0x42 */
11354 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11355 .tested = TEST_OK_PREW,
11356 .probe = probe_spi_rdid,
11357 .probe_timing = TIMING_ZERO,
11358 .block_erasers =
11359 {
11360 {
11361 .eraseblocks = { {4 * 1024, 16384} },
11362 .block_erase = spi_block_erase_21,
11363 }, {
11364 .eraseblocks = { {4 * 1024, 16384} },
11365 .block_erase = spi_block_erase_20,
11366 }, {
11367 .eraseblocks = { {64 * 1024, 1024} },
11368 .block_erase = spi_block_erase_dc,
11369 }, {
11370 .eraseblocks = { {64 * 1024, 1024} },
11371 .block_erase = spi_block_erase_d8,
11372 }, {
Jacob Creedone8e7b0e2019-07-22 12:21:22 -070011373 .eraseblocks = { {32768 * 1024, 2} },
11374 .block_erase = spi_block_erase_c4,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011375 }
11376 },
11377 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11378 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11379 .write = spi_chip_write_256, /* Multi I/O supported */
11380 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11381 .voltage = {2700, 3600},
11382 },
11383
11384 {
Ed Swierk199ab392017-07-03 13:33:44 -070011385 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011386 .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11387 .bustype = BUS_SPI,
11388 .manufacture_id = ST_ID,
11389 .model_id = ST_N25Q00A__3G,
11390 .total_size = 131072,
11391 .page_size = 256,
11392 /* supports SFDP */
11393 /* OTP: 64B total; read 0x4B, write 0x42 */
11394 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11395 .tested = TEST_OK_PREW,
11396 .probe = probe_spi_rdid,
11397 .probe_timing = TIMING_ZERO,
11398 .block_erasers =
11399 {
11400 {
11401 .eraseblocks = { {4 * 1024, 32768} },
11402 .block_erase = spi_block_erase_21,
11403 }, {
11404 .eraseblocks = { {4 * 1024, 32768} },
11405 .block_erase = spi_block_erase_20,
11406 }, {
11407 .eraseblocks = { {32 * 1024, 4096} },
11408 .block_erase = spi_block_erase_5c,
11409 }, {
11410 .eraseblocks = { {32 * 1024, 4096} },
11411 .block_erase = spi_block_erase_52,
11412 }, {
11413 .eraseblocks = { {64 * 1024, 2048} },
11414 .block_erase = spi_block_erase_dc,
11415 }, {
11416 .eraseblocks = { {64 * 1024, 2048} },
11417 .block_erase = spi_block_erase_d8,
11418 }, {
11419 .eraseblocks = { {65536 * 1024, 2} },
11420 .block_erase = spi_block_erase_c4,
11421 }
11422 },
11423 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11424 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11425 .write = spi_chip_write_256, /* Multi I/O supported */
11426 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11427 .voltage = {2700, 3600},
11428 },
11429
11430 {
11431 .vendor = "Micron",
11432 .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11433 .bustype = BUS_SPI,
11434 .manufacture_id = ST_ID,
11435 .model_id = ST_N25Q00A__1G,
11436 .total_size = 131072,
11437 .page_size = 256,
11438 /* supports SFDP */
11439 /* OTP: 64B total; read 0x4B, write 0x42 */
11440 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11441 .tested = TEST_UNTESTED,
11442 .probe = probe_spi_rdid,
11443 .probe_timing = TIMING_ZERO,
11444 .block_erasers =
11445 {
11446 {
11447 .eraseblocks = { {4 * 1024, 32768} },
11448 .block_erase = spi_block_erase_21,
11449 }, {
11450 .eraseblocks = { {4 * 1024, 32768} },
11451 .block_erase = spi_block_erase_20,
11452 }, {
11453 .eraseblocks = { {32 * 1024, 4096} },
11454 .block_erase = spi_block_erase_5c,
11455 }, {
11456 .eraseblocks = { {32 * 1024, 4096} },
11457 .block_erase = spi_block_erase_52,
11458 }, {
11459 .eraseblocks = { {64 * 1024, 2048} },
11460 .block_erase = spi_block_erase_dc,
11461 }, {
11462 .eraseblocks = { {64 * 1024, 2048} },
11463 .block_erase = spi_block_erase_d8,
11464 }, {
11465 .eraseblocks = { {65536 * 1024, 2} },
11466 .block_erase = spi_block_erase_c4,
11467 }
11468 },
11469 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11470 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11471 .write = spi_chip_write_256, /* Multi I/O supported */
11472 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11473 .voltage = {1700, 2000},
11474 },
11475
11476 {
11477 .vendor = "Micron",
11478 .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11479 .bustype = BUS_SPI,
11480 .manufacture_id = ST_ID,
11481 .model_id = ST_MT25QL02G,
11482 .total_size = 262144,
11483 .page_size = 256,
11484 /* supports SFDP */
11485 /* OTP: 64B total; read 0x4B, write 0x42 */
11486 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11487 .tested = TEST_UNTESTED,
11488 .probe = probe_spi_rdid,
11489 .probe_timing = TIMING_ZERO,
11490 .block_erasers =
11491 {
11492 {
11493 .eraseblocks = { {4 * 1024, 65536} },
11494 .block_erase = spi_block_erase_21,
11495 }, {
11496 .eraseblocks = { {4 * 1024, 65536} },
11497 .block_erase = spi_block_erase_20,
11498 }, {
11499 .eraseblocks = { {32 * 1024, 8192} },
11500 .block_erase = spi_block_erase_5c,
11501 }, {
11502 .eraseblocks = { {32 * 1024, 8192} },
11503 .block_erase = spi_block_erase_52,
11504 }, {
11505 .eraseblocks = { {64 * 1024, 4096} },
11506 .block_erase = spi_block_erase_dc,
11507 }, {
11508 .eraseblocks = { {64 * 1024, 4096} },
11509 .block_erase = spi_block_erase_d8,
11510 }, {
11511 .eraseblocks = { {65536 * 1024, 4} },
11512 .block_erase = spi_block_erase_c4,
11513 }
11514 },
11515 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11516 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11517 .write = spi_chip_write_256, /* Multi I/O supported */
11518 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11519 .voltage = {2700, 3600},
11520 },
11521
11522 {
11523 .vendor = "Micron",
11524 .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11525 .bustype = BUS_SPI,
11526 .manufacture_id = ST_ID,
11527 .model_id = ST_MT25QU02G,
11528 .total_size = 262144,
11529 .page_size = 256,
11530 /* supports SFDP */
11531 /* OTP: 64B total; read 0x4B, write 0x42 */
11532 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11533 .tested = TEST_UNTESTED,
11534 .probe = probe_spi_rdid,
11535 .probe_timing = TIMING_ZERO,
11536 .block_erasers =
11537 {
11538 {
11539 .eraseblocks = { {4 * 1024, 65536} },
11540 .block_erase = spi_block_erase_21,
11541 }, {
11542 .eraseblocks = { {4 * 1024, 65536} },
11543 .block_erase = spi_block_erase_20,
11544 }, {
11545 .eraseblocks = { {32 * 1024, 8192} },
11546 .block_erase = spi_block_erase_5c,
11547 }, {
11548 .eraseblocks = { {32 * 1024, 8192} },
11549 .block_erase = spi_block_erase_52,
11550 }, {
11551 .eraseblocks = { {64 * 1024, 4096} },
11552 .block_erase = spi_block_erase_dc,
11553 }, {
11554 .eraseblocks = { {64 * 1024, 4096} },
11555 .block_erase = spi_block_erase_d8,
11556 }, {
11557 .eraseblocks = { {65536 * 1024, 4} },
11558 .block_erase = spi_block_erase_c4,
11559 }
11560 },
11561 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11562 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11563 .write = spi_chip_write_256, /* Multi I/O supported */
11564 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11565 .voltage = {1700, 2000},
11566 },
11567
11568 {
11569 .vendor = "Micron",
11570 .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11571 .bustype = BUS_SPI,
11572 .manufacture_id = ST_ID,
11573 .model_id = ST_N25Q128__1E,
11574 .total_size = 16384,
11575 .page_size = 256,
11576 /* supports SFDP */
11577 /* OTP: 64B total; read 0x4B, write 0x42 */
11578 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11579 .tested = TEST_UNTESTED,
11580 .probe = probe_spi_rdid,
11581 .probe_timing = TIMING_ZERO,
11582 .block_erasers =
11583 {
11584 {
11585 .eraseblocks = { {4 * 1024, 4096} },
11586 .block_erase = spi_block_erase_20,
11587 }, {
11588 .eraseblocks = { {32 * 1024, 512} },
11589 .block_erase = spi_block_erase_52,
11590 }, {
11591 .eraseblocks = { {64 * 1024, 256} },
11592 .block_erase = spi_block_erase_d8,
11593 }, {
11594 .eraseblocks = { {16384 * 1024, 1} },
11595 .block_erase = spi_block_erase_c7,
11596 }, {
11597 .eraseblocks = { {16384 * 1024, 1} },
11598 .block_erase = spi_block_erase_60,
11599 }
11600 },
11601 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11602 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11603 .write = spi_chip_write_256, /* Multi I/O supported */
11604 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11605 .voltage = {1700, 2000},
11606 },
11607
11608 {
11609 .vendor = "Micron",
11610 .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11611 .bustype = BUS_SPI,
11612 .manufacture_id = ST_ID,
11613 .model_id = ST_N25Q128__3E,
11614 .total_size = 16384,
11615 .page_size = 256,
11616 /* supports SFDP */
11617 /* OTP: 64B total; read 0x4B, write 0x42 */
11618 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11619 .tested = TEST_UNTESTED,
11620 .probe = probe_spi_rdid,
11621 .probe_timing = TIMING_ZERO,
11622 .block_erasers =
11623 {
11624 {
11625 .eraseblocks = { {4 * 1024, 4096} },
11626 .block_erase = spi_block_erase_20,
11627 }, {
11628 .eraseblocks = { {32 * 1024, 512} },
11629 .block_erase = spi_block_erase_52,
11630 }, {
11631 .eraseblocks = { {64 * 1024, 256} },
11632 .block_erase = spi_block_erase_d8,
11633 }, {
11634 .eraseblocks = { {16384 * 1024, 1} },
11635 .block_erase = spi_block_erase_c7,
11636 }, {
11637 .eraseblocks = { {16384 * 1024, 1} },
11638 .block_erase = spi_block_erase_60,
11639 }
11640 },
11641 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11642 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11643 .write = spi_chip_write_256, /* Multi I/O supported */
11644 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11645 .voltage = {2700, 3600},
11646 },
11647
11648 {
11649 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011650 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011651 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011652 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070011653 .model_id = ST_N25Q256__3E,
11654 .total_size = 32768,
11655 .page_size = 256,
11656 /* supports SFDP */
11657 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011658 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Simon Buhrowb7014f92021-02-15 13:16:57 +010011659 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011660 .probe = probe_spi_rdid,
11661 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011662 .block_erasers =
11663 {
Ed Swierk199ab392017-07-03 13:33:44 -070011664 {
11665 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011666 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011667 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011668 .eraseblocks = { {4 * 1024, 8192} },
11669 .block_erase = spi_block_erase_20,
11670 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011671 .eraseblocks = { {32 * 1024, 1024} },
11672 .block_erase = spi_block_erase_5c,
11673 }, {
11674 .eraseblocks = { {32 * 1024, 1024} },
11675 .block_erase = spi_block_erase_52,
11676 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011677 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011678 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011679 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011680 .eraseblocks = { {64 * 1024, 512} },
11681 .block_erase = spi_block_erase_d8,
11682 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011683 .eraseblocks = { {32768 * 1024, 1} },
11684 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011685 }, {
11686 .eraseblocks = { {32768 * 1024, 1} },
11687 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011688 }
11689 },
11690 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11691 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11692 .write = spi_chip_write_256, /* Multi I/O supported */
11693 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11694 .voltage = {2700, 3600},
11695 },
11696
11697 {
11698 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011699 .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11700 .bustype = BUS_SPI,
11701 .manufacture_id = ST_ID,
11702 .model_id = ST_N25Q256__1E,
11703 .total_size = 32768,
11704 .page_size = 256,
11705 /* supports SFDP */
11706 /* OTP: 64B total; read 0x4B, write 0x42 */
11707 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11708 .tested = TEST_UNTESTED,
11709 .probe = probe_spi_rdid,
11710 .probe_timing = TIMING_ZERO,
11711 .block_erasers =
11712 {
11713 {
11714 .eraseblocks = { {4 * 1024, 8192} },
11715 .block_erase = spi_block_erase_21,
11716 }, {
11717 .eraseblocks = { {4 * 1024, 8192} },
11718 .block_erase = spi_block_erase_20,
11719 }, {
11720 .eraseblocks = { {32 * 1024, 1024} },
11721 .block_erase = spi_block_erase_5c,
11722 }, {
11723 .eraseblocks = { {32 * 1024, 1024} },
11724 .block_erase = spi_block_erase_52,
11725 }, {
11726 .eraseblocks = { {64 * 1024, 512} },
11727 .block_erase = spi_block_erase_dc,
11728 }, {
11729 .eraseblocks = { {64 * 1024, 512} },
11730 .block_erase = spi_block_erase_d8,
11731 }, {
11732 .eraseblocks = { {32768 * 1024, 1} },
11733 .block_erase = spi_block_erase_c7,
11734 }, {
11735 .eraseblocks = { {32768 * 1024, 1} },
11736 .block_erase = spi_block_erase_60,
11737 }
11738 },
11739 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11740 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11741 .write = spi_chip_write_256, /* Multi I/O supported */
11742 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11743 .voltage = {1700, 2000},
11744 },
11745
11746 {
11747 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011748 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011749 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011750 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011751 .model_id = ST_N25Q512__3G,
Ed Swierk199ab392017-07-03 13:33:44 -070011752 .total_size = 65536,
11753 .page_size = 256,
11754 /* supports SFDP */
11755 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011756 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020011757 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011758 .probe = probe_spi_rdid,
11759 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011760 .block_erasers =
11761 {
Ed Swierk199ab392017-07-03 13:33:44 -070011762 {
11763 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011764 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011765 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011766 .eraseblocks = { {4 * 1024, 16384} },
11767 .block_erase = spi_block_erase_20,
11768 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011769 .eraseblocks = { {32 * 1024, 2048} },
11770 .block_erase = spi_block_erase_5c,
11771 }, {
11772 .eraseblocks = { {32 * 1024, 2048} },
11773 .block_erase = spi_block_erase_52,
11774 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011775 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011776 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011777 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011778 .eraseblocks = { {64 * 1024, 1024} },
11779 .block_erase = spi_block_erase_d8,
11780 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011781 .eraseblocks = { {65536 * 1024, 1} },
11782 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011783 }, {
11784 .eraseblocks = { {65536 * 1024, 1} },
11785 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011786 }
11787 },
11788 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11789 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11790 .write = spi_chip_write_256, /* Multi I/O supported */
11791 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11792 .voltage = {2700, 3600},
11793 },
11794
11795 {
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011796 .vendor = "Micron",
11797 .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11798 .bustype = BUS_SPI,
11799 .manufacture_id = ST_ID,
11800 .model_id = ST_N25Q512__1G,
11801 .total_size = 65536,
11802 .page_size = 256,
11803 /* supports SFDP */
11804 /* OTP: 64B total; read 0x4B, write 0x42 */
11805 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11806 .tested = TEST_OK_PREW,
11807 .probe = probe_spi_rdid,
11808 .probe_timing = TIMING_ZERO,
11809 .block_erasers =
11810 {
11811 {
11812 .eraseblocks = { {4 * 1024, 16384} },
11813 .block_erase = spi_block_erase_21,
11814 }, {
11815 .eraseblocks = { {4 * 1024, 16384} },
11816 .block_erase = spi_block_erase_20,
11817 }, {
11818 .eraseblocks = { {32 * 1024, 2048} },
11819 .block_erase = spi_block_erase_5c,
11820 }, {
11821 .eraseblocks = { {32 * 1024, 2048} },
11822 .block_erase = spi_block_erase_52,
11823 }, {
11824 .eraseblocks = { {64 * 1024, 1024} },
11825 .block_erase = spi_block_erase_dc,
11826 }, {
11827 .eraseblocks = { {64 * 1024, 1024} },
11828 .block_erase = spi_block_erase_d8,
11829 }, {
11830 .eraseblocks = { {65536 * 1024, 1} },
11831 .block_erase = spi_block_erase_c7,
11832 }, {
11833 .eraseblocks = { {65536 * 1024, 1} },
11834 .block_erase = spi_block_erase_60,
11835 }
11836 },
11837 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11838 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11839 .write = spi_chip_write_256, /* Multi I/O supported */
11840 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11841 .voltage = {1700, 2000},
11842 },
11843
11844 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011845 .vendor = "MoselVitelic",
11846 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011847 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011848 .manufacture_id = SYNCMOS_MVC_ID,
11849 .model_id = MVC_V29C51000B,
11850 .total_size = 64,
11851 .page_size = 512,
11852 .feature_bits = FEATURE_EITHER_RESET,
11853 .tested = TEST_UNTESTED,
11854 .probe = probe_jedec,
11855 .probe_timing = TIMING_ZERO,
11856 .block_erasers =
11857 {
11858 {
11859 .eraseblocks = { {512, 128} },
11860 .block_erase = erase_sector_jedec,
11861 }, {
11862 .eraseblocks = { {64 * 1024, 1} },
11863 .block_erase = erase_chip_block_jedec,
11864 },
11865 },
11866 .write = write_jedec_1,
11867 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011868 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011869 },
11870
11871 {
11872 .vendor = "MoselVitelic",
11873 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011874 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011875 .manufacture_id = SYNCMOS_MVC_ID,
11876 .model_id = MVC_V29C51000T,
11877 .total_size = 64,
11878 .page_size = 512,
11879 .feature_bits = FEATURE_EITHER_RESET,
11880 .tested = TEST_UNTESTED,
11881 .probe = probe_jedec,
11882 .probe_timing = TIMING_ZERO,
11883 .block_erasers =
11884 {
11885 {
11886 .eraseblocks = { {512, 128} },
11887 .block_erase = erase_sector_jedec,
11888 }, {
11889 .eraseblocks = { {64 * 1024, 1} },
11890 .block_erase = erase_chip_block_jedec,
11891 },
11892 },
11893 .write = write_jedec_1,
11894 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011895 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011896 },
11897
11898 {
11899 .vendor = "MoselVitelic",
11900 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011901 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011902 .manufacture_id = SYNCMOS_MVC_ID,
11903 .model_id = MVC_V29C51400B,
11904 .total_size = 512,
11905 .page_size = 1024,
11906 .feature_bits = FEATURE_EITHER_RESET,
11907 .tested = TEST_UNTESTED,
11908 .probe = probe_jedec,
11909 .probe_timing = TIMING_ZERO,
11910 .block_erasers =
11911 {
11912 {
11913 .eraseblocks = { {1024, 512} },
11914 .block_erase = erase_sector_jedec,
11915 }, {
11916 .eraseblocks = { {512 * 1024, 1} },
11917 .block_erase = erase_chip_block_jedec,
11918 },
11919 },
11920 .write = write_jedec_1,
11921 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011922 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011923 },
11924
11925 {
11926 .vendor = "MoselVitelic",
11927 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011928 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011929 .manufacture_id = SYNCMOS_MVC_ID,
11930 .model_id = MVC_V29C51400T,
11931 .total_size = 512,
11932 .page_size = 1024,
11933 .feature_bits = FEATURE_EITHER_RESET,
11934 .tested = TEST_UNTESTED,
11935 .probe = probe_jedec,
11936 .probe_timing = TIMING_ZERO,
11937 .block_erasers =
11938 {
11939 {
11940 .eraseblocks = { {1024, 512} },
11941 .block_erase = erase_sector_jedec,
11942 }, {
11943 .eraseblocks = { {512 * 1024, 1} },
11944 .block_erase = erase_chip_block_jedec,
11945 },
11946 },
11947 .write = write_jedec_1,
11948 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011949 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011950 },
11951
11952 {
11953 .vendor = "MoselVitelic",
11954 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011955 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011956 .manufacture_id = SYNCMOS_MVC_ID,
11957 .model_id = MVC_V29LC51000,
11958 .total_size = 64,
11959 .page_size = 512,
11960 .feature_bits = FEATURE_EITHER_RESET,
11961 .tested = TEST_UNTESTED,
11962 .probe = probe_jedec,
11963 .probe_timing = TIMING_ZERO,
11964 .block_erasers =
11965 {
11966 {
11967 .eraseblocks = { {512, 128} },
11968 .block_erase = erase_sector_jedec,
11969 }, {
11970 .eraseblocks = { {64 * 1024, 1} },
11971 .block_erase = erase_chip_block_jedec,
11972 },
11973 },
11974 .write = write_jedec_1,
11975 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011976 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011977 },
11978
11979 {
11980 .vendor = "MoselVitelic",
11981 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011982 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011983 .manufacture_id = SYNCMOS_MVC_ID,
11984 .model_id = MVC_V29LC51001,
11985 .total_size = 128,
11986 .page_size = 512,
11987 .feature_bits = FEATURE_EITHER_RESET,
11988 .tested = TEST_UNTESTED,
11989 .probe = probe_jedec,
11990 .probe_timing = TIMING_ZERO,
11991 .block_erasers =
11992 {
11993 {
11994 .eraseblocks = { {512, 256} },
11995 .block_erase = erase_sector_jedec,
11996 }, {
11997 .eraseblocks = { {128 * 1024, 1} },
11998 .block_erase = erase_chip_block_jedec,
11999 },
12000 },
12001 .write = write_jedec_1,
12002 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012003 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012004 },
12005
12006 {
12007 .vendor = "MoselVitelic",
12008 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012009 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012010 .manufacture_id = SYNCMOS_MVC_ID,
12011 .model_id = MVC_V29LC51002,
12012 .total_size = 256,
12013 .page_size = 512,
12014 .feature_bits = FEATURE_EITHER_RESET,
12015 .tested = TEST_UNTESTED,
12016 .probe = probe_jedec,
12017 .probe_timing = TIMING_ZERO,
12018 .block_erasers =
12019 {
12020 {
12021 .eraseblocks = { {512, 512} },
12022 .block_erase = erase_sector_jedec,
12023 }, {
12024 .eraseblocks = { {256 * 1024, 1} },
12025 .block_erase = erase_chip_block_jedec,
12026 },
12027 },
12028 .write = write_jedec_1,
12029 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012030 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012031 },
12032
12033 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012034 .vendor = "Nantronics",
12035 .name = "N25S10",
12036 .bustype = BUS_SPI,
12037 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12038 .model_id = NANTRONICS_N25S10,
12039 .total_size = 128,
12040 .page_size = 256,
12041 .feature_bits = FEATURE_WRSR_WREN,
12042 .tested = TEST_UNTESTED,
12043 .probe = probe_spi_rdid,
12044 .probe_timing = TIMING_ZERO,
12045 .block_erasers =
12046 {
12047 {
12048 .eraseblocks = { {4 * 1024, 32} },
12049 .block_erase = spi_block_erase_20,
12050 }, {
12051 .eraseblocks = { {4 * 1024, 32} },
12052 .block_erase = spi_block_erase_d7,
12053 }, {
12054 .eraseblocks = { {32 * 1024, 4} },
12055 .block_erase = spi_block_erase_52,
12056 }, {
12057 .eraseblocks = { {64 * 1024, 2} },
12058 .block_erase = spi_block_erase_d8,
12059 }, {
12060 .eraseblocks = { {128 * 1024, 1} },
12061 .block_erase = spi_block_erase_60,
12062 }, {
12063 .eraseblocks = { {128 * 1024, 1} },
12064 .block_erase = spi_block_erase_c7,
12065 }
12066 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012067 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012068 .unlock = spi_disable_blockprotect_bp3_srwd,
12069 .write = spi_chip_write_256,
12070 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12071 .voltage = {2700, 3600},
12072 },
12073
12074 {
12075 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012076 .name = "N25S16",
12077 .bustype = BUS_SPI,
12078 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12079 .model_id = NANTRONICS_N25S16,
12080 .total_size = 2048,
12081 .page_size = 256,
12082 .feature_bits = FEATURE_WRSR_WREN,
12083 .tested = TEST_UNTESTED,
12084 .probe = probe_spi_rdid,
12085 .probe_timing = TIMING_ZERO,
12086 .block_erasers =
12087 {
12088 {
12089 .eraseblocks = { {4 * 1024, 512} },
12090 .block_erase = spi_block_erase_20,
12091 }, {
12092 .eraseblocks = { {64 * 1024, 32} },
12093 .block_erase = spi_block_erase_d8,
12094 }, {
12095 .eraseblocks = { {2048 * 1024, 1} },
12096 .block_erase = spi_block_erase_60,
12097 }, {
12098 .eraseblocks = { {2048 * 1024, 1} },
12099 .block_erase = spi_block_erase_c7,
12100 }
12101 },
12102 .printlock = spi_prettyprint_status_register_bp3_srwd,
12103 .unlock = spi_disable_blockprotect_bp3_srwd,
12104 .write = spi_chip_write_256,
12105 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12106 .voltage = {2700, 3600},
12107 },
12108
12109 {
12110 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012111 .name = "N25S20",
12112 .bustype = BUS_SPI,
12113 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12114 .model_id = NANTRONICS_N25S20,
12115 .total_size = 256,
12116 .page_size = 256,
12117 .feature_bits = FEATURE_WRSR_WREN,
12118 .tested = TEST_UNTESTED,
12119 .probe = probe_spi_rdid,
12120 .probe_timing = TIMING_ZERO,
12121 .block_erasers =
12122 {
12123 {
12124 .eraseblocks = { {4 * 1024, 64} },
12125 .block_erase = spi_block_erase_20,
12126 }, {
12127 .eraseblocks = { {4 * 1024, 64} },
12128 .block_erase = spi_block_erase_d7,
12129 }, {
12130 .eraseblocks = { {32 * 1024, 8} },
12131 .block_erase = spi_block_erase_52,
12132 }, {
12133 .eraseblocks = { {64 * 1024, 4} },
12134 .block_erase = spi_block_erase_d8,
12135 }, {
12136 .eraseblocks = { {256 * 1024, 1} },
12137 .block_erase = spi_block_erase_60,
12138 }, {
12139 .eraseblocks = { {256 * 1024, 1} },
12140 .block_erase = spi_block_erase_c7,
12141 }
12142 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012143 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012144 .unlock = spi_disable_blockprotect_bp3_srwd,
12145 .write = spi_chip_write_256,
12146 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12147 .voltage = {2700, 3600},
12148 },
12149
12150 {
12151 .vendor = "Nantronics",
12152 .name = "N25S40",
12153 .bustype = BUS_SPI,
12154 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12155 .model_id = NANTRONICS_N25S40,
12156 .total_size = 512,
12157 .page_size = 256,
12158 .feature_bits = FEATURE_WRSR_WREN,
12159 .tested = TEST_UNTESTED,
12160 .probe = probe_spi_rdid,
12161 .probe_timing = TIMING_ZERO,
12162 .block_erasers =
12163 {
12164 {
12165 .eraseblocks = { {4 * 1024, 128} },
12166 .block_erase = spi_block_erase_20,
12167 }, {
12168 .eraseblocks = { {4 * 1024, 128} },
12169 .block_erase = spi_block_erase_d7,
12170 }, {
12171 .eraseblocks = { {32 * 1024, 16} },
12172 .block_erase = spi_block_erase_52,
12173 }, {
12174 .eraseblocks = { {64 * 1024, 8} },
12175 .block_erase = spi_block_erase_d8,
12176 }, {
12177 .eraseblocks = { {512 * 1024, 1} },
12178 .block_erase = spi_block_erase_60,
12179 }, {
12180 .eraseblocks = { {512 * 1024, 1} },
12181 .block_erase = spi_block_erase_c7,
12182 }
12183 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012184 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012185 .unlock = spi_disable_blockprotect_bp3_srwd,
12186 .write = spi_chip_write_256,
12187 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12188 .voltage = {2700, 3600},
12189 },
12190
12191 {
12192 .vendor = "Nantronics",
12193 .name = "N25S80",
12194 .bustype = BUS_SPI,
12195 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12196 .model_id = NANTRONICS_N25S80,
12197 .total_size = 1024,
12198 .page_size = 256,
12199 .feature_bits = FEATURE_WRSR_WREN,
12200 .tested = TEST_UNTESTED,
12201 .probe = probe_spi_rdid,
12202 .probe_timing = TIMING_ZERO,
12203 .block_erasers =
12204 {
12205 {
12206 .eraseblocks = { {4 * 1024, 256} },
12207 .block_erase = spi_block_erase_20,
12208 }, {
12209 .eraseblocks = { {32 * 1024, 32} },
12210 .block_erase = spi_block_erase_52,
12211 }, {
12212 .eraseblocks = { {64 * 1024, 16} },
12213 .block_erase = spi_block_erase_d8,
12214 }, {
12215 .eraseblocks = { {1024 * 1024, 1} },
12216 .block_erase = spi_block_erase_60,
12217 }, {
12218 .eraseblocks = { {1024 * 1024, 1} },
12219 .block_erase = spi_block_erase_c7,
12220 }
12221 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012222 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012223 .unlock = spi_disable_blockprotect_bp3_srwd,
12224 .write = spi_chip_write_256,
12225 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12226 .voltage = {2700, 3600},
12227 },
12228
12229 {
Stefan Taunerf4451612013-04-19 01:59:15 +000012230 .vendor = "PMC",
12231 .name = "Pm25LD010(C)",
12232 .bustype = BUS_SPI,
12233 .manufacture_id = PMC_ID,
12234 .model_id = PMC_PM25LD010,
12235 .total_size = 128,
12236 .page_size = 256,
12237 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012238 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012239 .probe = probe_spi_rdid,
12240 .probe_timing = TIMING_ZERO,
12241 .block_erasers =
12242 {
12243 {
12244 .eraseblocks = { {4 * 1024, 32} },
12245 .block_erase = spi_block_erase_20,
12246 }, {
12247 .eraseblocks = { {4 * 1024, 32} },
12248 .block_erase = spi_block_erase_d7,
12249 }, {
12250 .eraseblocks = { {32 * 1024, 4} },
12251 .block_erase = spi_block_erase_d8,
12252 }, {
12253 .eraseblocks = { {128 * 1024, 1} },
12254 .block_erase = spi_block_erase_60,
12255 }, {
12256 .eraseblocks = { {128 * 1024, 1} },
12257 .block_erase = spi_block_erase_c7,
12258 }
12259 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012260 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012261 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12262 .write = spi_chip_write_256,
12263 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12264 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
12265 },
12266
12267 {
12268 .vendor = "PMC",
12269 .name = "Pm25LD020(C)",
12270 .bustype = BUS_SPI,
12271 .manufacture_id = PMC_ID,
12272 .model_id = PMC_PM25LD020,
12273 .total_size = 256,
12274 .page_size = 256,
12275 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020012276 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012277 .probe = probe_spi_rdid,
12278 .probe_timing = TIMING_ZERO,
12279 .block_erasers =
12280 {
12281 {
12282 .eraseblocks = { {4 * 1024, 64} },
12283 .block_erase = spi_block_erase_20,
12284 }, {
12285 .eraseblocks = { {4 * 1024, 64} },
12286 .block_erase = spi_block_erase_d7,
12287 }, {
12288 .eraseblocks = { {64 * 1024, 4} },
12289 .block_erase = spi_block_erase_d8,
12290 }, {
12291 .eraseblocks = { {256 * 1024, 1} },
12292 .block_erase = spi_block_erase_60,
12293 }, {
12294 .eraseblocks = { {256 * 1024, 1} },
12295 .block_erase = spi_block_erase_c7,
12296 }
12297 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012298 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012299 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12300 .write = spi_chip_write_256,
12301 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12302 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
12303 },
12304
12305 {
12306 .vendor = "PMC",
12307 .name = "Pm25LD040(C)",
12308 .bustype = BUS_SPI,
12309 .manufacture_id = PMC_ID,
12310 .model_id = PMC_PM25LV040,
12311 .total_size = 512,
12312 .page_size = 256,
12313 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020012314 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012315 .probe = probe_spi_rdid,
12316 .probe_timing = TIMING_ZERO,
12317 .block_erasers =
12318 {
12319 {
12320 .eraseblocks = { {4 * 1024, 128} },
12321 .block_erase = spi_block_erase_20,
12322 }, {
12323 .eraseblocks = { {4 * 1024, 128} },
12324 .block_erase = spi_block_erase_d7,
12325 }, {
12326 .eraseblocks = { {64 * 1024, 8} },
12327 .block_erase = spi_block_erase_d8,
12328 }, {
12329 .eraseblocks = { {512 * 1024, 1} },
12330 .block_erase = spi_block_erase_60,
12331 }, {
12332 .eraseblocks = { {512 * 1024, 1} },
12333 .block_erase = spi_block_erase_c7,
12334 }
12335 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012336 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012337 .unlock = spi_disable_blockprotect,
12338 .write = spi_chip_write_256,
12339 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12340 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
12341 },
12342
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012343 {
12344 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012345 .name = "Pm25LD256C",
12346 .bustype = BUS_SPI,
12347 .manufacture_id = PMC_ID,
12348 .model_id = PMC_PM25LD256C,
12349 .total_size = 32,
12350 .page_size = 256,
12351 .feature_bits = FEATURE_WRSR_WREN,
12352 .tested = TEST_UNTESTED,
12353 .probe = probe_spi_rdid,
12354 .probe_timing = TIMING_ZERO,
12355 .block_erasers =
12356 {
12357 {
12358 .eraseblocks = { {4 * 1024, 8} },
12359 .block_erase = spi_block_erase_20,
12360 }, {
12361 .eraseblocks = { {4 * 1024, 8} },
12362 .block_erase = spi_block_erase_d7,
12363 }, {
12364 .eraseblocks = { {32 * 1024, 1} },
12365 .block_erase = spi_block_erase_d8,
12366 }, {
12367 .eraseblocks = { {32 * 1024, 1} },
12368 .block_erase = spi_block_erase_60,
12369 }, {
12370 .eraseblocks = { {32 * 1024, 1} },
12371 .block_erase = spi_block_erase_c7,
12372 }
12373 },
12374 .printlock = spi_prettyprint_status_register_bp2_srwd,
12375 .unlock = spi_disable_blockprotect,
12376 .write = spi_chip_write_256,
12377 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12378 .voltage = {2700, 3600},
12379 },
12380
12381 {
12382 .vendor = "PMC",
12383 .name = "Pm25LD512(C)",
12384 .bustype = BUS_SPI,
12385 .manufacture_id = PMC_ID,
12386 .model_id = PMC_PM25LD512,
12387 .total_size = 64,
12388 .page_size = 256,
12389 .feature_bits = FEATURE_WRSR_WREN,
12390 .tested = TEST_OK_PREW,
12391 .probe = probe_spi_rdid,
12392 .probe_timing = TIMING_ZERO,
12393 .block_erasers =
12394 {
12395 {
12396 .eraseblocks = { {4 * 1024, 16} },
12397 .block_erase = spi_block_erase_20,
12398 }, {
12399 .eraseblocks = { {4 * 1024, 16} },
12400 .block_erase = spi_block_erase_d7,
12401 }, {
12402 .eraseblocks = { {32 * 1024, 2} },
12403 .block_erase = spi_block_erase_d8,
12404 }, {
12405 .eraseblocks = { {64 * 1024, 1} },
12406 .block_erase = spi_block_erase_60,
12407 }, {
12408 .eraseblocks = { {64 * 1024, 1} },
12409 .block_erase = spi_block_erase_c7,
12410 }
12411 },
12412 .printlock = spi_prettyprint_status_register_bp2_srwd,
12413 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12414 .write = spi_chip_write_256,
12415 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12416 .voltage = {2300, 3600},
12417 },
12418
12419 {
12420 .vendor = "PMC",
12421 .name = "Pm25LQ016",
12422 .bustype = BUS_SPI,
12423 .manufacture_id = PMC_ID,
12424 .model_id = PMC_PM25LQ016,
12425 .total_size = 2048,
12426 .page_size = 256,
12427 /* OTP: 256B total; read 0x4B, write 0xB1 */
12428 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12429 .tested = TEST_UNTESTED,
12430 .probe = probe_spi_rdid,
12431 .probe_timing = TIMING_ZERO,
12432 .block_erasers =
12433 {
12434 {
12435 .eraseblocks = { {4 * 1024, 512} },
12436 .block_erase = spi_block_erase_20,
12437 }, {
12438 .eraseblocks = { {4 * 1024, 512} },
12439 .block_erase = spi_block_erase_d7,
12440 }, {
12441 .eraseblocks = { {64 * 1024, 32} },
12442 .block_erase = spi_block_erase_d8,
12443 }, {
12444 .eraseblocks = { {2048 * 1024, 1} },
12445 .block_erase = spi_block_erase_60,
12446 }, {
12447 .eraseblocks = { {2048 * 1024, 1} },
12448 .block_erase = spi_block_erase_c7,
12449 }
12450 },
12451 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12452 .unlock = spi_disable_blockprotect_bp3_srwd,
12453 .write = spi_chip_write_256,
12454 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12455 .voltage = {2300, 3600},
12456 },
12457
12458 {
12459 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012460 .name = "Pm25LQ020",
12461 .bustype = BUS_SPI,
12462 .manufacture_id = PMC_ID,
12463 .model_id = PMC_PM25LQ020,
12464 .total_size = 256,
12465 .page_size = 256,
12466 /* OTP: 256B total; read 0x4B, write 0xB1 */
12467 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12468 .tested = TEST_UNTESTED,
12469 .probe = probe_spi_rdid,
12470 .probe_timing = TIMING_ZERO,
12471 .block_erasers =
12472 {
12473 {
12474 .eraseblocks = { {4 * 1024, 64} },
12475 .block_erase = spi_block_erase_20,
12476 }, {
12477 .eraseblocks = { {4 * 1024, 64} },
12478 .block_erase = spi_block_erase_d7,
12479 }, {
12480 .eraseblocks = { {64 * 1024, 4} },
12481 .block_erase = spi_block_erase_d8,
12482 }, {
12483 .eraseblocks = { {256 * 1024, 1} },
12484 .block_erase = spi_block_erase_60,
12485 }, {
12486 .eraseblocks = { {256 * 1024, 1} },
12487 .block_erase = spi_block_erase_c7,
12488 }
12489 },
12490 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12491 .unlock = spi_disable_blockprotect_bp3_srwd,
12492 .write = spi_chip_write_256,
12493 .read = spi_chip_read,
12494 .voltage = {2300, 3600},
12495 },
12496
12497 {
12498 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012499 .name = "Pm25LQ032C",
12500 .bustype = BUS_SPI,
12501 .manufacture_id = PMC_ID,
12502 .model_id = PMC_PM25LQ032C,
12503 .total_size = 4096,
12504 .page_size = 256,
12505 /* OTP: 64B total; read 0x4B, write 0xB1 */
12506 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12507 .tested = TEST_OK_PREW,
12508 .probe = probe_spi_rdid,
12509 .probe_timing = TIMING_ZERO,
12510 .block_erasers =
12511 {
12512 {
12513 .eraseblocks = { {4 * 1024, 1024} },
12514 .block_erase = spi_block_erase_20,
12515 }, {
12516 .eraseblocks = { {4 * 1024, 1024} },
12517 .block_erase = spi_block_erase_d7,
12518 }, {
12519 .eraseblocks = { {64 * 1024, 64} },
12520 .block_erase = spi_block_erase_d8,
12521 }, {
12522 .eraseblocks = { {4096 * 1024, 1} },
12523 .block_erase = spi_block_erase_60,
12524 }, {
12525 .eraseblocks = { {4096 * 1024, 1} },
12526 .block_erase = spi_block_erase_c7,
12527 }
12528 },
12529 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12530 .unlock = spi_disable_blockprotect_bp3_srwd,
12531 .write = spi_chip_write_256,
12532 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12533 .voltage = {2700, 3600},
12534 },
12535
12536 {
12537 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012538 .name = "Pm25LQ040",
12539 .bustype = BUS_SPI,
12540 .manufacture_id = PMC_ID,
12541 .model_id = PMC_PM25LQ040,
12542 .total_size = 512,
12543 .page_size = 256,
12544 /* OTP: 256B total; read 0x4B, write 0xB1 */
12545 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12546 .tested = TEST_UNTESTED,
12547 .probe = probe_spi_rdid,
12548 .probe_timing = TIMING_ZERO,
12549 .block_erasers =
12550 {
12551 {
12552 .eraseblocks = { {4 * 1024, 128} },
12553 .block_erase = spi_block_erase_20,
12554 }, {
12555 .eraseblocks = { {4 * 1024, 128} },
12556 .block_erase = spi_block_erase_d7,
12557 }, {
12558 .eraseblocks = { {64 * 1024, 8} },
12559 .block_erase = spi_block_erase_d8,
12560 }, {
12561 .eraseblocks = { {512 * 1024, 1} },
12562 .block_erase = spi_block_erase_60,
12563 }, {
12564 .eraseblocks = { {512 * 1024, 1} },
12565 .block_erase = spi_block_erase_c7,
12566 }
12567 },
12568 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12569 .unlock = spi_disable_blockprotect_bp3_srwd,
12570 .write = spi_chip_write_256,
12571 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12572 .voltage = {2300, 3600},
12573 },
12574
12575 {
12576 .vendor = "PMC",
12577 .name = "Pm25LQ080",
12578 .bustype = BUS_SPI,
12579 .manufacture_id = PMC_ID,
12580 .model_id = PMC_PM25LQ080,
12581 .total_size = 1024,
12582 .page_size = 256,
12583 /* OTP: 64B total; read 0x4B, write 0xB1 */
12584 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12585 .tested = TEST_UNTESTED,
12586 .probe = probe_spi_rdid,
12587 .probe_timing = TIMING_ZERO,
12588 .block_erasers =
12589 {
12590 {
12591 .eraseblocks = { {4 * 1024, 256} },
12592 .block_erase = spi_block_erase_20,
12593 }, {
12594 .eraseblocks = { {4 * 1024, 256} },
12595 .block_erase = spi_block_erase_d7,
12596 }, {
12597 .eraseblocks = { {64 * 1024, 16} },
12598 .block_erase = spi_block_erase_d8,
12599 }, {
12600 .eraseblocks = { {1024 * 1024, 1} },
12601 .block_erase = spi_block_erase_60,
12602 }, {
12603 .eraseblocks = { {1024 * 1024, 1} },
12604 .block_erase = spi_block_erase_c7,
12605 }
12606 },
12607 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12608 .unlock = spi_disable_blockprotect_bp3_srwd,
12609 .write = spi_chip_write_256,
12610 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12611 .voltage = {2300, 3600},
12612 },
12613
12614 {
12615 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012616 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012617 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000012618 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012619 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012620 .total_size = 128,
12621 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012622 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000012623 .tested = TEST_OK_PREW,
12624 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012625 .probe_timing = TIMING_ZERO,
12626 .block_erasers =
12627 {
12628 {
12629 .eraseblocks = { {4 * 1024, 32} },
12630 .block_erase = spi_block_erase_d7,
12631 }, {
12632 .eraseblocks = { {32 * 1024, 4} },
12633 .block_erase = spi_block_erase_d8,
12634 }, {
12635 .eraseblocks = { {128 * 1024, 1} },
12636 .block_erase = spi_block_erase_c7,
12637 }
12638 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012639 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012640 .unlock = spi_disable_blockprotect,
12641 .write = spi_chip_write_256,
12642 .read = spi_chip_read, /* Fast read (0x0B) supported */
12643 .voltage = {2700, 3600},
12644 },
12645
12646 {
12647 .vendor = "PMC",
12648 .name = "Pm25LV010A",
12649 .bustype = BUS_SPI,
12650 .manufacture_id = PMC_ID,
12651 .model_id = PMC_PM25LV010,
12652 .total_size = 128,
12653 .page_size = 256,
12654 .feature_bits = FEATURE_WRSR_WREN,
12655 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012656 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012657 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012658 .block_erasers =
12659 {
12660 {
12661 .eraseblocks = { {4 * 1024, 32} },
12662 .block_erase = spi_block_erase_d7,
12663 }, {
12664 .eraseblocks = { {32 * 1024, 4} },
12665 .block_erase = spi_block_erase_d8,
12666 }, {
12667 .eraseblocks = { {128 * 1024, 1} },
12668 .block_erase = spi_block_erase_c7,
12669 }
12670 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012671 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012672 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012673 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012674 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012675 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012676 },
12677
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012678 {
12679 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012680 .name = "Pm25LV016B",
12681 .bustype = BUS_SPI,
12682 .manufacture_id = PMC_ID,
12683 .model_id = PMC_PM25LV016B,
12684 .total_size = 2048,
12685 .page_size = 256,
12686 .feature_bits = FEATURE_WRSR_WREN,
12687 .tested = TEST_UNTESTED,
12688 .probe = probe_spi_rdid,
12689 .probe_timing = TIMING_ZERO,
12690 .block_erasers =
12691 {
12692 {
12693 .eraseblocks = { {4 * 1024, 512} },
12694 .block_erase = spi_block_erase_d7,
12695 }, {
12696 .eraseblocks = { {4 * 1024, 512} },
12697 .block_erase = spi_block_erase_20,
12698 }, {
12699 .eraseblocks = { {64 * 1024, 32} },
12700 .block_erase = spi_block_erase_d8,
12701 }, {
12702 .eraseblocks = { {2 * 1024 * 1024, 1} },
12703 .block_erase = spi_block_erase_60,
12704 }, {
12705 .eraseblocks = { {2 * 1024 * 1024, 1} },
12706 .block_erase = spi_block_erase_c7,
12707 }
12708 },
12709 .printlock = spi_prettyprint_status_register_bp2_srwd,
12710 .unlock = spi_disable_blockprotect,
12711 .write = spi_chip_write_256,
12712 .read = spi_chip_read, /* Fast read (0x0B) supported */
12713 .voltage = {2700, 3600},
12714 },
12715
12716 {
12717 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012718 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012719 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012720 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012721 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012722 .total_size = 256,
12723 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012724 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012725 .tested = TEST_UNTESTED,
12726 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012727 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012728 .block_erasers =
12729 {
12730 {
12731 .eraseblocks = { {4 * 1024, 64} },
12732 .block_erase = spi_block_erase_d7,
12733 }, {
12734 .eraseblocks = { {64 * 1024, 4} },
12735 .block_erase = spi_block_erase_d8,
12736 }, {
12737 .eraseblocks = { {256 * 1024, 1} },
12738 .block_erase = spi_block_erase_c7,
12739 }
12740 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012741 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012742 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012743 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012744 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012745 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012746 },
12747
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012748 {
12749 .vendor = "PMC",
12750 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012751 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012752 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012753 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012754 .total_size = 512,
12755 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012756 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000012757 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012758 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012759 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012760 .block_erasers =
12761 {
12762 {
12763 .eraseblocks = { {4 * 1024, 128} },
12764 .block_erase = spi_block_erase_d7,
12765 }, {
12766 .eraseblocks = { {64 * 1024, 8} },
12767 .block_erase = spi_block_erase_d8,
12768 }, {
12769 .eraseblocks = { {512 * 1024, 1} },
12770 .block_erase = spi_block_erase_c7,
12771 }
12772 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012773 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012774 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012775 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012776 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012777 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012778 },
12779
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012780 {
12781 .vendor = "PMC",
12782 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012783 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012784 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012785 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012786 .total_size = 1024,
12787 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012788 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012789 .tested = TEST_UNTESTED,
12790 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012791 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012792 .block_erasers =
12793 {
12794 {
12795 .eraseblocks = { {4 * 1024, 256} },
12796 .block_erase = spi_block_erase_d7,
12797 }, {
12798 .eraseblocks = { {4 * 1024, 256} },
12799 .block_erase = spi_block_erase_20,
12800 }, {
12801 .eraseblocks = { {64 * 1024, 16} },
12802 .block_erase = spi_block_erase_d8,
12803 }, {
12804 .eraseblocks = { {1024 * 1024, 1} },
12805 .block_erase = spi_block_erase_60,
12806 }, {
12807 .eraseblocks = { {1024 * 1024, 1} },
12808 .block_erase = spi_block_erase_c7,
12809 }
12810 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012811 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012812 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012813 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012814 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012815 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012816 },
12817
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012818 {
12819 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012820 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012821 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012822 .manufacture_id = PMC_ID_NOPREFIX,
12823 .model_id = PMC_PM25LV512,
12824 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012825 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012826 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012827 .tested = TEST_OK_PREW,
12828 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012829 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012830 .block_erasers =
12831 {
12832 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012833 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000012834 .block_erase = spi_block_erase_d7,
12835 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012836 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000012837 .block_erase = spi_block_erase_d8,
12838 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012839 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000012840 .block_erase = spi_block_erase_c7,
12841 }
12842 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100012843 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012844 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012845 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012846 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012847 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012848 },
12849
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012850 {
12851 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000012852 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012853 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012854 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012855 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012856 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000012857 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012858 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012859 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012860 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000012861 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000012862 .block_erasers =
12863 {
12864 {
12865 .eraseblocks = {
12866 {16 * 1024, 1},
12867 {8 * 1024, 2},
12868 {96 * 1024, 1},
12869 {128 * 1024, 1},
12870 },
Sean Nelson35727f72010-01-28 23:55:12 +000012871 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012872 }, {
12873 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000012874 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012875 },
12876 },
Sean Nelson35727f72010-01-28 23:55:12 +000012877 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012878 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012879 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012880 },
12881
12882 {
12883 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012884 .name = "Pm29F002T",
12885 .bustype = BUS_PARALLEL,
12886 .manufacture_id = PMC_ID_NOPREFIX,
12887 .model_id = PMC_PM29F002T,
12888 .total_size = 256,
12889 .page_size = 8 * 1024,
12890 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12891 .tested = TEST_OK_PREW,
12892 .probe = probe_jedec,
12893 .probe_timing = TIMING_FIXME,
12894 .block_erasers =
12895 {
12896 {
12897 .eraseblocks = {
12898 {128 * 1024, 1},
12899 {96 * 1024, 1},
12900 {8 * 1024, 2},
12901 {16 * 1024, 1},
12902 },
12903 .block_erase = erase_sector_jedec,
12904 }, {
12905 .eraseblocks = { {256 * 1024, 1} },
12906 .block_erase = erase_chip_block_jedec,
12907 },
12908 },
12909 .write = write_jedec_1,
12910 .read = read_memmapped,
12911 .voltage = {4500, 5500},
12912 },
12913
12914 {
12915 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012916 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012917 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012918 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012919 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012920 .total_size = 128,
12921 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012922 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012923 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012924 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012925 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000012926 .block_erasers =
12927 {
12928 {
12929 .eraseblocks = { {4 * 1024, 32} },
12930 .block_erase = erase_sector_jedec,
12931 }, {
12932 .eraseblocks = { {64 * 1024, 2} },
12933 .block_erase = erase_block_jedec,
12934 }, {
12935 .eraseblocks = { {128 * 1024, 1} },
12936 .block_erase = erase_chip_block_jedec,
12937 }
12938 },
Sean Nelson35727f72010-01-28 23:55:12 +000012939 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012940 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012941 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012942 },
12943
12944 {
12945 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012946 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012947 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012948 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012949 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012950 .total_size = 256,
12951 .page_size = 4096,
12952 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12953 .tested = TEST_UNTESTED,
12954 .probe = probe_jedec,
12955 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100012956 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012957 {
12958 {
12959 .eraseblocks = { {4 * 1024, 64} },
12960 .block_erase = erase_sector_jedec,
12961 }, {
12962 .eraseblocks = { {64 * 1024, 4} },
12963 .block_erase = erase_block_jedec,
12964 }, {
12965 .eraseblocks = { {256 * 1024, 1} },
12966 .block_erase = erase_chip_block_jedec,
12967 }
12968 },
12969 .write = write_jedec_1,
12970 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012971 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012972 },
12973
12974 {
12975 .vendor = "PMC",
12976 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012977 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012978 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012979 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012980 .total_size = 512,
12981 .page_size = 4096,
12982 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012983 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012984 .probe = probe_jedec,
12985 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100012986 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012987 {
12988 {
12989 .eraseblocks = { {4 * 1024, 128} },
12990 .block_erase = erase_sector_jedec,
12991 }, {
12992 .eraseblocks = { {64 * 1024, 8} },
12993 .block_erase = erase_block_jedec,
12994 }, {
12995 .eraseblocks = { {512 * 1024, 1} },
12996 .block_erase = erase_chip_block_jedec,
12997 }
12998 },
12999 .write = write_jedec_1,
13000 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013001 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013002 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000013003
13004 {
13005 .vendor = "PMC",
13006 .name = "Pm39LV512",
13007 .bustype = BUS_PARALLEL,
13008 .manufacture_id = PMC_ID_NOPREFIX,
13009 .model_id = PMC_PM39LV512,
13010 .total_size = 64,
13011 .page_size = 4096,
13012 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13013 .tested = TEST_OK_PREW,
13014 .probe = probe_jedec,
13015 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13016 .block_erasers =
13017 {
13018 {
13019 .eraseblocks = { {4 * 1024, 16} },
13020 .block_erase = erase_sector_jedec,
13021 }, {
13022 .eraseblocks = { {64 * 1024, 1} },
13023 .block_erase = erase_block_jedec,
13024 }, {
13025 .eraseblocks = { {64 * 1024, 1} },
13026 .block_erase = erase_chip_block_jedec,
13027 }
13028 },
13029 .write = write_jedec_1,
13030 .read = read_memmapped,
13031 .voltage = {2700, 3600},
13032 },
13033
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013034 {
13035 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013036 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013037 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013038 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013039 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013040 .total_size = 256,
13041 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013042 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013043 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013044 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013045 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000013046 .block_erasers =
13047 {
13048 {
13049 .eraseblocks = { {4 * 1024, 64} },
13050 .block_erase = erase_sector_jedec,
13051 }, {
13052 .eraseblocks = { {16 * 1024, 16} },
13053 .block_erase = erase_block_jedec,
13054 }, {
13055 .eraseblocks = { {256 * 1024, 1} },
13056 .block_erase = erase_chip_block_jedec,
13057 }
13058 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013059 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000013060 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013061 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013062 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013063 },
13064
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013065 {
13066 .vendor = "PMC",
13067 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013068 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013069 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013070 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013071 .total_size = 512,
13072 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013073 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013074 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013075 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013076 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013077 .block_erasers =
13078 {
13079 {
13080 .eraseblocks = { {4 * 1024, 128} },
13081 .block_erase = erase_sector_jedec,
13082 }, {
13083 .eraseblocks = { {64 * 1024, 8} },
13084 .block_erase = erase_block_jedec,
13085 }, {
13086 .eraseblocks = { {512 * 1024, 1} },
13087 .block_erase = erase_chip_block_jedec,
13088 }
13089 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013090 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000013091 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013092 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013093 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013094 },
13095
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013096 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013097 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000013098 .name = "SST25LF020A",
13099 .bustype = BUS_SPI,
13100 .manufacture_id = SST_ID,
13101 .model_id = SST_SST25VF020_REMS,
13102 .total_size = 256,
13103 .page_size = 256,
13104 .feature_bits = FEATURE_WRSR_EWSR,
13105 .tested = TEST_OK_PREW,
13106 .probe = probe_spi_rems,
13107 .probe_timing = TIMING_ZERO,
13108 .block_erasers =
13109 {
13110 {
13111 .eraseblocks = { {4 * 1024, 64} },
13112 .block_erase = spi_block_erase_20,
13113 }, {
13114 .eraseblocks = { {32 * 1024, 8} },
13115 .block_erase = spi_block_erase_52,
13116 }, {
13117 .eraseblocks = { {256 * 1024, 1} },
13118 .block_erase = spi_block_erase_60,
13119 },
13120 },
13121 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13122 .unlock = spi_disable_blockprotect,
13123 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13124 .read = spi_chip_read, /* Fast read (0x0B) supported */
13125 .voltage = {2700, 3600},
13126 },
13127
13128 {
13129 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000013130 .name = "SST25LF040A",
13131 .bustype = BUS_SPI,
13132 .manufacture_id = SST_ID,
13133 .model_id = SST_SST25VF040_REMS,
13134 .total_size = 512,
13135 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013136 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000013137 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000013138 .probe = probe_spi_res2,
13139 .probe_timing = TIMING_ZERO,
13140 .block_erasers =
13141 {
13142 {
13143 .eraseblocks = { {4 * 1024, 128} },
13144 .block_erase = spi_block_erase_20,
13145 }, {
13146 .eraseblocks = { {32 * 1024, 16} },
13147 .block_erase = spi_block_erase_52,
13148 }, {
13149 .eraseblocks = { {512 * 1024, 1} },
13150 .block_erase = spi_block_erase_60,
13151 },
13152 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013153 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013154 .unlock = spi_disable_blockprotect,
13155 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13156 .read = spi_chip_read,
13157 .voltage = {3000, 3600},
13158 },
13159
13160 {
13161 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000013162 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000013163 .bustype = BUS_SPI,
13164 .manufacture_id = SST_ID,
13165 .model_id = SST_SST25VF080_REMS,
13166 .total_size = 1024,
13167 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013168 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000013169 .tested = TEST_UNTESTED,
13170 .probe = probe_spi_res2,
13171 .probe_timing = TIMING_ZERO,
13172 .block_erasers =
13173 {
13174 {
13175 .eraseblocks = { {4 * 1024, 256} },
13176 .block_erase = spi_block_erase_20,
13177 }, {
13178 .eraseblocks = { {32 * 1024, 32} },
13179 .block_erase = spi_block_erase_52,
13180 }, {
13181 .eraseblocks = { {1024 * 1024, 1} },
13182 .block_erase = spi_block_erase_60,
13183 },
13184 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013185 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013186 .unlock = spi_disable_blockprotect,
13187 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13188 .read = spi_chip_read,
13189 .voltage = {3000, 3600},
13190 },
13191
13192 {
13193 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000013194 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013195 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000013196 .manufacture_id = SST_ID,
13197 .model_id = SST_SST25VF010_REMS,
13198 .total_size = 128,
13199 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013200 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000013201 .tested = TEST_OK_PREW,
13202 .probe = probe_spi_rems,
13203 .probe_timing = TIMING_ZERO,
13204 .block_erasers =
13205 {
13206 {
13207 .eraseblocks = { {4 * 1024, 32} },
13208 .block_erase = spi_block_erase_20,
13209 }, {
13210 .eraseblocks = { {32 * 1024, 4} },
13211 .block_erase = spi_block_erase_52,
13212 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000013213 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013214 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013215 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000013216 .eraseblocks = { {128 * 1024, 1} },
13217 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000013218 }, {
13219 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013220 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013221 },
13222 },
13223 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13224 .unlock = spi_disable_blockprotect,
13225 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000013226 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013227 .voltage = {2700, 3600},
13228 },
13229
13230 {
13231 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013232 .name = "SST25VF016B",
13233 .bustype = BUS_SPI,
13234 .manufacture_id = SST_ID,
13235 .model_id = SST_SST25VF016B,
13236 .total_size = 2048,
13237 .page_size = 256,
13238 .feature_bits = FEATURE_WRSR_EITHER,
13239 .tested = TEST_OK_PREW,
13240 .probe = probe_spi_rdid,
13241 .probe_timing = TIMING_ZERO,
13242 .block_erasers =
13243 {
13244 {
13245 .eraseblocks = { {4 * 1024, 512} },
13246 .block_erase = spi_block_erase_20,
13247 }, {
13248 .eraseblocks = { {32 * 1024, 64} },
13249 .block_erase = spi_block_erase_52,
13250 }, {
13251 .eraseblocks = { {64 * 1024, 32} },
13252 .block_erase = spi_block_erase_d8,
13253 }, {
13254 .eraseblocks = { {2 * 1024 * 1024, 1} },
13255 .block_erase = spi_block_erase_60,
13256 }, {
13257 .eraseblocks = { {2 * 1024 * 1024, 1} },
13258 .block_erase = spi_block_erase_c7,
13259 },
13260 },
13261 .printlock = spi_prettyprint_status_register_sst25vf016,
13262 .unlock = spi_disable_blockprotect,
13263 .write = spi_aai_write,
13264 .read = spi_chip_read,
13265 .voltage = {2700, 3600},
13266 },
13267
13268 {
13269 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013270 .name = "SST25VF020",
13271 .bustype = BUS_SPI,
13272 .manufacture_id = SST_ID,
13273 .model_id = SST_SST25VF020_REMS,
13274 .total_size = 256,
13275 .page_size = 256,
13276 .feature_bits = FEATURE_WRSR_EWSR,
13277 .tested = TEST_UNTESTED,
13278 .probe = probe_spi_rems,
13279 .probe_timing = TIMING_ZERO,
13280 .block_erasers =
13281 {
13282 {
13283 .eraseblocks = { {4 * 1024, 64} },
13284 .block_erase = spi_block_erase_20,
13285 }, {
13286 .eraseblocks = { {32 * 1024, 8} },
13287 .block_erase = spi_block_erase_52,
13288 }, {
13289 .eraseblocks = { {256 * 1024, 1} },
13290 .block_erase = spi_block_erase_60,
13291 },
13292 },
13293 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13294 .unlock = spi_disable_blockprotect,
13295 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13296 .read = spi_chip_read, /* only */
13297 .voltage = {2700, 3600},
13298 },
13299
13300 {
13301 .vendor = "SST",
13302 .name = "SST25VF020B",
13303 .bustype = BUS_SPI,
13304 .manufacture_id = SST_ID,
13305 .model_id = SST_SST25VF020B,
13306 .total_size = 256,
13307 .page_size = 256,
13308 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013309 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000013310 .probe = probe_spi_rdid,
13311 .probe_timing = TIMING_ZERO,
13312 .block_erasers =
13313 {
13314 {
13315 .eraseblocks = { {4 * 1024, 64} },
13316 .block_erase = spi_block_erase_20,
13317 }, {
13318 .eraseblocks = { {32 * 1024, 8} },
13319 .block_erase = spi_block_erase_52,
13320 }, {
13321 .eraseblocks = { {64 * 1024, 4} },
13322 .block_erase = spi_block_erase_d8,
13323 }, {
13324 .eraseblocks = { {256 * 1024, 1} },
13325 .block_erase = spi_block_erase_60,
13326 }, {
13327 .eraseblocks = { {256 * 1024, 1} },
13328 .block_erase = spi_block_erase_c7,
13329 },
13330 },
13331 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
13332 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
13333 .write = spi_aai_write, /* AAI supported (0xAD) */
13334 .read = spi_chip_read, /* Fast read (0x0B) supported */
13335 .voltage = {2700, 3600},
13336 },
13337
13338 {
13339 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013340 .name = "SST25VF032B",
13341 .bustype = BUS_SPI,
13342 .manufacture_id = SST_ID,
13343 .model_id = SST_SST25VF032B,
13344 .total_size = 4096,
13345 .page_size = 256,
13346 .feature_bits = FEATURE_WRSR_EWSR,
13347 .tested = TEST_OK_PREW,
13348 .probe = probe_spi_rdid,
13349 .probe_timing = TIMING_ZERO,
13350 .block_erasers =
13351 {
13352 {
13353 .eraseblocks = { {4 * 1024, 1024} },
13354 .block_erase = spi_block_erase_20,
13355 }, {
13356 .eraseblocks = { {32 * 1024, 128} },
13357 .block_erase = spi_block_erase_52,
13358 }, {
13359 .eraseblocks = { {64 * 1024, 64} },
13360 .block_erase = spi_block_erase_d8,
13361 }, {
13362 .eraseblocks = { {4 * 1024 * 1024, 1} },
13363 .block_erase = spi_block_erase_60,
13364 }, {
13365 .eraseblocks = { {4 * 1024 * 1024, 1} },
13366 .block_erase = spi_block_erase_c7,
13367 },
13368 },
13369 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13370 .unlock = spi_disable_blockprotect,
13371 .write = spi_aai_write,
13372 .read = spi_chip_read,
13373 .voltage = {2700, 3600},
13374 },
13375
13376 {
13377 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013378 .name = "SST25VF040",
13379 .bustype = BUS_SPI,
13380 .manufacture_id = SST_ID,
13381 .model_id = SST_SST25VF040_REMS,
13382 .total_size = 512,
13383 .page_size = 256,
13384 .feature_bits = FEATURE_WRSR_EWSR,
13385 .tested = TEST_OK_PR,
13386 .probe = probe_spi_rems,
13387 .probe_timing = TIMING_ZERO,
13388 .block_erasers =
13389 {
13390 {
13391 .eraseblocks = { {4 * 1024, 128} },
13392 .block_erase = spi_block_erase_20,
13393 }, {
13394 .eraseblocks = { {32 * 1024, 16} },
13395 .block_erase = spi_block_erase_52,
13396 }, {
13397 .eraseblocks = { {512 * 1024, 1} },
13398 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000013399 },
13400 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013401 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000013402 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000013403 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13404 .read = spi_chip_read,
13405 .voltage = {2700, 3600},
13406 },
13407
13408 {
13409 .vendor = "SST",
13410 .name = "SST25VF040B",
13411 .bustype = BUS_SPI,
13412 .manufacture_id = SST_ID,
13413 .model_id = SST_SST25VF040B,
13414 .total_size = 512,
13415 .page_size = 256,
13416 .feature_bits = FEATURE_WRSR_EWSR,
13417 .tested = TEST_OK_PREW,
13418 .probe = probe_spi_rdid,
13419 .probe_timing = TIMING_ZERO,
13420 .block_erasers =
13421 {
13422 {
13423 .eraseblocks = { {4 * 1024, 128} },
13424 .block_erase = spi_block_erase_20,
13425 }, {
13426 .eraseblocks = { {32 * 1024, 16} },
13427 .block_erase = spi_block_erase_52,
13428 }, {
13429 .eraseblocks = { {64 * 1024, 8} },
13430 .block_erase = spi_block_erase_d8,
13431 }, {
13432 .eraseblocks = { {512 * 1024, 1} },
13433 .block_erase = spi_block_erase_60,
13434 }, {
13435 .eraseblocks = { {512 * 1024, 1} },
13436 .block_erase = spi_block_erase_c7,
13437 },
13438 },
13439 .printlock = spi_prettyprint_status_register_sst25vf040b,
13440 .unlock = spi_disable_blockprotect,
13441 .write = spi_aai_write, /* AAI supported (0xAD) */
13442 .read = spi_chip_read, /* Fast read (0x0B) supported */
13443 .voltage = {2700, 3600},
13444 },
13445
13446 {
13447 .vendor = "SST",
13448 .name = "SST25VF040B.REMS",
13449 .bustype = BUS_SPI,
13450 .manufacture_id = SST_ID,
13451 .model_id = SST_SST25VF040B_REMS,
13452 .total_size = 512,
13453 .page_size = 256,
13454 .feature_bits = FEATURE_WRSR_EWSR,
13455 .tested = TEST_OK_PREW,
13456 .probe = probe_spi_rems,
13457 .probe_timing = TIMING_ZERO,
13458 .block_erasers =
13459 {
13460 {
13461 .eraseblocks = { {4 * 1024, 128} },
13462 .block_erase = spi_block_erase_20,
13463 }, {
13464 .eraseblocks = { {32 * 1024, 16} },
13465 .block_erase = spi_block_erase_52,
13466 }, {
13467 .eraseblocks = { {64 * 1024, 8} },
13468 .block_erase = spi_block_erase_d8,
13469 }, {
13470 .eraseblocks = { {512 * 1024, 1} },
13471 .block_erase = spi_block_erase_60,
13472 }, {
13473 .eraseblocks = { {512 * 1024, 1} },
13474 .block_erase = spi_block_erase_c7,
13475 },
13476 },
13477 .printlock = spi_prettyprint_status_register_sst25vf040b,
13478 .unlock = spi_disable_blockprotect,
13479 .write = spi_aai_write,
13480 .read = spi_chip_read,
13481 .voltage = {2700, 3600},
13482 },
13483
13484 {
13485 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013486 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000013487 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013488 .manufacture_id = SST_ID,
13489 .model_id = SST_SST25VF064C,
13490 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013491 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013492 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013493 .tested = TEST_OK_PREW,
13494 .probe = probe_spi_rdid,
13495 .probe_timing = TIMING_ZERO,
13496 .block_erasers =
13497 {
13498 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013499 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013500 .block_erase = spi_block_erase_20,
13501 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013502 .eraseblocks = { {32 * 1024, 256} },
13503 .block_erase = spi_block_erase_52,
13504 }, {
13505 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013506 .block_erase = spi_block_erase_d8,
13507 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013508 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013509 .block_erase = spi_block_erase_60,
13510 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013511 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013512 .block_erase = spi_block_erase_c7,
13513 },
13514 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013515 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13516 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013517 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013518 .read = spi_chip_read,
13519 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000013520 },
13521
13522 {
13523 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013524 .name = "SST25VF080B",
13525 .bustype = BUS_SPI,
13526 .manufacture_id = SST_ID,
13527 .model_id = SST_SST25VF080B,
13528 .total_size = 1024,
13529 .page_size = 256,
13530 .feature_bits = FEATURE_WRSR_EWSR,
13531 .tested = TEST_OK_PREW,
13532 .probe = probe_spi_rdid,
13533 .probe_timing = TIMING_ZERO,
13534 .block_erasers =
13535 {
13536 {
13537 .eraseblocks = { {4 * 1024, 256} },
13538 .block_erase = spi_block_erase_20,
13539 }, {
13540 .eraseblocks = { {32 * 1024, 32} },
13541 .block_erase = spi_block_erase_52,
13542 }, {
13543 .eraseblocks = { {64 * 1024, 16} },
13544 .block_erase = spi_block_erase_d8,
13545 }, {
13546 .eraseblocks = { {1024 * 1024, 1} },
13547 .block_erase = spi_block_erase_60,
13548 }, {
13549 .eraseblocks = { {1024 * 1024, 1} },
13550 .block_erase = spi_block_erase_c7,
13551 },
13552 },
13553 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13554 .unlock = spi_disable_blockprotect,
13555 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000013556 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013557 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000013558 },
13559
13560 {
13561 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013562 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013563 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013564 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013565 .model_id = SST_SST25VF512_REMS,
13566 .total_size = 64,
13567 .page_size = 256,
13568 .feature_bits = FEATURE_WRSR_EWSR,
13569 .tested = TEST_OK_PREW,
13570 .probe = probe_spi_rems,
13571 .probe_timing = TIMING_ZERO,
13572 .block_erasers =
13573 {
13574 {
13575 .eraseblocks = { {4 * 1024, 16} },
13576 .block_erase = spi_block_erase_20,
13577 }, {
13578 .eraseblocks = { {32 * 1024, 2} },
13579 .block_erase = spi_block_erase_52,
13580 }, {
13581 .eraseblocks = { {32 * 1024, 2} },
13582 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
13583 }, {
13584 .eraseblocks = { {64 * 1024, 1} },
13585 .block_erase = spi_block_erase_60,
13586 }, {
13587 .eraseblocks = { {64 * 1024, 1} },
13588 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
13589 },
13590 },
13591 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13592 .unlock = spi_disable_blockprotect,
13593 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13594 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
13595 .voltage = {2700, 3600},
13596 },
13597
13598 {
13599 .vendor = "SST",
13600 .name = "SST25WF010",
13601 .bustype = BUS_SPI,
13602 .manufacture_id = SST_ID,
13603 .model_id = SST_SST25WF010,
13604 .total_size = 128,
13605 .page_size = 256,
13606 .feature_bits = FEATURE_WRSR_EITHER,
13607 .tested = TEST_UNTESTED,
13608 .probe = probe_spi_rdid,
13609 .probe_timing = TIMING_ZERO,
13610 .block_erasers =
13611 {
13612 {
13613 .eraseblocks = { {4 * 1024, 32} },
13614 .block_erase = spi_block_erase_20,
13615 }, {
13616 .eraseblocks = { {32 * 1024, 4} },
13617 .block_erase = spi_block_erase_52,
13618 }, {
13619 .eraseblocks = { {1024 * 128, 1} },
13620 .block_erase = spi_block_erase_60,
13621 }, {
13622 .eraseblocks = { {1024 * 128, 1} },
13623 .block_erase = spi_block_erase_c7,
13624 },
13625 },
13626 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13627 .unlock = spi_disable_blockprotect_bp2_srwd,
13628 .write = spi_aai_write,
13629 .read = spi_chip_read, /* Fast read (0x0B) supported */
13630 .voltage = {1650, 1950},
13631 },
13632
13633 {
13634 .vendor = "SST",
13635 .name = "SST25WF020",
13636 .bustype = BUS_SPI,
13637 .manufacture_id = SST_ID,
13638 .model_id = SST_SST25WF020,
13639 .total_size = 256,
13640 .page_size = 256,
13641 .feature_bits = FEATURE_WRSR_EITHER,
13642 .tested = TEST_UNTESTED,
13643 .probe = probe_spi_rdid,
13644 .probe_timing = TIMING_ZERO,
13645 .block_erasers =
13646 {
13647 {
13648 .eraseblocks = { {4 * 1024, 64} },
13649 .block_erase = spi_block_erase_20,
13650 }, {
13651 .eraseblocks = { {32 * 1024, 8} },
13652 .block_erase = spi_block_erase_52,
13653 }, {
13654 .eraseblocks = { {64 * 1024, 4} },
13655 .block_erase = spi_block_erase_d8,
13656 }, {
13657 .eraseblocks = { {1024 * 256, 1} },
13658 .block_erase = spi_block_erase_60,
13659 }, {
13660 .eraseblocks = { {1024 * 256, 1} },
13661 .block_erase = spi_block_erase_c7,
13662 },
13663 },
13664 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13665 .unlock = spi_disable_blockprotect_bp2_srwd,
13666 .write = spi_aai_write,
13667 .read = spi_chip_read, /* Fast read (0x0B) supported */
13668 .voltage = {1650, 1950},
13669 },
13670
13671 {
13672 .vendor = "SST",
13673 .name = "SST25WF020A",
13674 .bustype = BUS_SPI,
13675 .manufacture_id = SANYO_ID, /* See flashchips.h */
13676 .model_id = SST_SST25WF020A,
13677 .total_size = 256,
13678 .page_size = 256,
13679 .feature_bits = FEATURE_WRSR_WREN,
13680 .tested = TEST_UNTESTED,
13681 .probe = probe_spi_rdid,
13682 .probe_timing = TIMING_ZERO,
13683 .block_erasers =
13684 {
13685 {
13686 .eraseblocks = { {4 * 1024, 64} },
13687 .block_erase = spi_block_erase_20,
13688 }, {
13689 .eraseblocks = { {64 * 1024, 4} },
13690 .block_erase = spi_block_erase_d8,
13691 }, {
13692 .eraseblocks = { {256 * 1024, 1} },
13693 .block_erase = spi_block_erase_60,
13694 }, {
13695 .eraseblocks = { {256 * 1024, 1} },
13696 .block_erase = spi_block_erase_c7,
13697 },
13698 },
13699 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13700 .unlock = spi_disable_blockprotect_bp2_srwd,
13701 .write = spi_chip_write_256,
13702 .read = spi_chip_read, /* Fast read (0x0B) supported */
13703 .voltage = {1650, 1950},
13704 },
13705
13706 {
13707 .vendor = "SST",
13708 .name = "SST25WF040",
13709 .bustype = BUS_SPI,
13710 .manufacture_id = SST_ID,
13711 .model_id = SST_SST25WF040,
13712 .total_size = 512,
13713 .page_size = 256,
13714 .feature_bits = FEATURE_WRSR_EITHER,
13715 .tested = TEST_UNTESTED,
13716 .probe = probe_spi_rdid,
13717 .probe_timing = TIMING_ZERO,
13718 .block_erasers =
13719 {
13720 {
13721 .eraseblocks = { {4 * 1024, 128} },
13722 .block_erase = spi_block_erase_20,
13723 }, {
13724 .eraseblocks = { {32 * 1024, 16} },
13725 .block_erase = spi_block_erase_52,
13726 }, {
13727 .eraseblocks = { {64 * 1024, 8} },
13728 .block_erase = spi_block_erase_d8,
13729 }, {
13730 .eraseblocks = { {1024 * 512, 1} },
13731 .block_erase = spi_block_erase_60,
13732 }, {
13733 .eraseblocks = { {1024 * 512, 1} },
13734 .block_erase = spi_block_erase_c7,
13735 },
13736 },
13737 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13738 .unlock = spi_disable_blockprotect_bp2_srwd,
13739 .write = spi_aai_write,
13740 .read = spi_chip_read, /* Fast read (0x0B) supported */
13741 .voltage = {1650, 1950},
13742 },
13743
13744 {
13745 .vendor = "SST",
13746 .name = "SST25WF040B",
13747 .bustype = BUS_SPI,
13748 .manufacture_id = SANYO_ID, /* See flashchips.h */
13749 .model_id = SST_SST25WF040B,
13750 .total_size = 512,
13751 .page_size = 256,
13752 .feature_bits = FEATURE_WRSR_WREN,
13753 .tested = TEST_UNTESTED,
13754 .probe = probe_spi_rdid,
13755 .probe_timing = TIMING_ZERO,
13756 .block_erasers =
13757 {
13758 {
13759 .eraseblocks = { {4 * 1024, 128} },
13760 .block_erase = spi_block_erase_20,
13761 }, {
13762 .eraseblocks = { {64 * 1024, 8} },
13763 .block_erase = spi_block_erase_d8,
13764 }, {
13765 .eraseblocks = { {512 * 1024, 1} },
13766 .block_erase = spi_block_erase_60,
13767 }, {
13768 .eraseblocks = { {512 * 1024, 1} },
13769 .block_erase = spi_block_erase_c7,
13770 },
13771 },
13772 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13773 .unlock = spi_disable_blockprotect_bp2_srwd,
13774 .write = spi_chip_write_256,
13775 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13776 .voltage = {1650, 1950},
13777 },
13778
13779 {
13780 .vendor = "SST",
13781 .name = "SST25WF080",
13782 .bustype = BUS_SPI,
13783 .manufacture_id = SST_ID,
13784 .model_id = SST_SST25WF080,
13785 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013786 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013787 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000013788 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013789 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013790 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013791 .block_erasers =
13792 {
13793 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013794 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013795 .block_erase = spi_block_erase_20,
13796 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013797 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013798 .block_erase = spi_block_erase_52,
13799 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013800 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013801 .block_erase = spi_block_erase_d8,
13802 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013803 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013804 .block_erase = spi_block_erase_60,
13805 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013806 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013807 .block_erase = spi_block_erase_c7,
13808 },
13809 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013810 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
13811 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000013812 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013813 .read = spi_chip_read, /* Fast read (0x0B) supported */
13814 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000013815 },
13816
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013817 {
13818 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013819 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013820 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013821 .manufacture_id = SANYO_ID, /* See flashchips.h */
13822 .model_id = SST_SST25WF080B,
13823 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013824 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013825 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000013826 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013827 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013828 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013829 .block_erasers =
13830 {
13831 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013832 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013833 .block_erase = spi_block_erase_20,
13834 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013835 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013836 .block_erase = spi_block_erase_d8,
13837 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013838 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013839 .block_erase = spi_block_erase_60,
13840 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013841 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013842 .block_erase = spi_block_erase_c7,
13843 },
13844 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013845 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13846 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000013847 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013848 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13849 .voltage = {1650, 1950},
13850 },
13851
13852 {
13853 .vendor = "SST",
13854 .name = "SST25WF512",
13855 .bustype = BUS_SPI,
13856 .manufacture_id = SST_ID,
13857 .model_id = SST_SST25WF512,
13858 .total_size = 64,
13859 .page_size = 256,
13860 .feature_bits = FEATURE_WRSR_EITHER,
13861 .tested = TEST_UNTESTED,
13862 .probe = probe_spi_rdid,
13863 .probe_timing = TIMING_ZERO,
13864 .block_erasers =
13865 {
13866 {
13867 .eraseblocks = { {4 * 1024, 16} },
13868 .block_erase = spi_block_erase_20,
13869 }, {
13870 .eraseblocks = { {32 * 1024, 2} },
13871 .block_erase = spi_block_erase_52,
13872 }, {
13873 .eraseblocks = { {1024 * 64, 1} },
13874 .block_erase = spi_block_erase_60,
13875 }, {
13876 .eraseblocks = { {1024 * 64, 1} },
13877 .block_erase = spi_block_erase_c7,
13878 },
13879 },
13880 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13881 .unlock = spi_disable_blockprotect_bp2_srwd,
13882 .write = spi_aai_write,
13883 .read = spi_chip_read, /* Fast read (0x0B) supported */
13884 .voltage = {1650, 1950},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013885 },
13886
13887 {
13888 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070013889 .name = "SST26VF016B(A)",
13890 .bustype = BUS_SPI,
13891 .manufacture_id = SST_ID,
13892 .model_id = SST_SST26VF016B,
13893 .total_size = 2048,
13894 .page_size = 256,
13895 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13896 .tested = TEST_OK_PREW,
13897 .probe = probe_spi_rdid,
13898 .probe_timing = TIMING_ZERO,
13899 .block_erasers =
13900 {
13901 {
13902 .eraseblocks = { {4 * 1024, 512} },
13903 .block_erase = spi_block_erase_20,
13904 }, {
13905 .eraseblocks = {
13906 {8 * 1024, 4},
13907 {32 * 1024, 1},
13908 {64 * 1024, 30},
13909 {32 * 1024, 1},
13910 {8 * 1024, 4},
13911 },
13912 .block_erase = spi_block_erase_d8,
13913 }, {
13914 .eraseblocks = { {2 * 1024 * 1024, 1} },
13915 .block_erase = spi_block_erase_c7,
13916 },
13917 },
13918 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13919 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13920 .write = spi_chip_write_256, /* Multi I/O supported */
13921 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13922 .voltage = {2700, 3600},
13923 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100013924
Wei Hu25584de2018-04-30 14:02:08 -070013925 {
13926 .vendor = "SST",
13927 .name = "SST26VF032B(A)",
13928 .bustype = BUS_SPI,
13929 .manufacture_id = SST_ID,
13930 .model_id = SST_SST26VF032B,
13931 .total_size = 4096,
13932 .page_size = 256,
13933 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13934 .tested = TEST_UNTESTED,
13935 .probe = probe_spi_rdid,
13936 .probe_timing = TIMING_ZERO,
13937 .block_erasers =
13938 {
13939 {
13940 .eraseblocks = { {4 * 1024, 1024} },
13941 .block_erase = spi_block_erase_20,
13942 }, {
13943 .eraseblocks = {
13944 {8 * 1024, 4},
13945 {32 * 1024, 1},
13946 {64 * 1024, 62},
13947 {32 * 1024, 1},
13948 {8 * 1024, 4},
13949 },
13950 .block_erase = spi_block_erase_d8,
13951 }, {
13952 .eraseblocks = { {4 * 1024 * 1024, 1} },
13953 .block_erase = spi_block_erase_c7,
13954 },
13955 },
13956 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13957 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13958 .write = spi_chip_write_256, /* Multi I/O supported */
13959 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13960 .voltage = {2700, 3600},
13961 },
13962
Wei Hu25584de2018-04-30 14:02:08 -070013963 {
13964 .vendor = "SST",
13965 .name = "SST26VF064B(A)",
13966 .bustype = BUS_SPI,
13967 .manufacture_id = SST_ID,
13968 .model_id = SST_SST26VF064B,
13969 .total_size = 8192,
13970 .page_size = 256,
13971 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13972 .tested = TEST_OK_PREW,
13973 .probe = probe_spi_rdid,
13974 .probe_timing = TIMING_ZERO,
13975 .block_erasers =
13976 {
13977 {
13978 .eraseblocks = { {4 * 1024, 2048} },
13979 .block_erase = spi_block_erase_20,
13980 }, {
13981 .eraseblocks = {
13982 {8 * 1024, 4},
13983 {32 * 1024, 1},
13984 {64 * 1024, 126},
13985 {32 * 1024, 1},
13986 {8 * 1024, 4},
13987 },
13988 .block_erase = spi_block_erase_d8,
13989 }, {
13990 .eraseblocks = { {8 * 1024 * 1024, 1} },
13991 .block_erase = spi_block_erase_c7,
13992 },
13993 },
13994 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13995 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13996 .write = spi_chip_write_256, /* Multi I/O supported */
13997 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13998 .voltage = {2700, 3600},
13999 },
14000
14001 {
14002 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014003 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014004 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014005 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014006 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014007 .total_size = 512,
14008 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000014009 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014010 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014011 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014012 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014013 .block_erasers =
14014 {
14015 {
14016 .eraseblocks = { {128, 4096} },
14017 .block_erase = erase_sector_28sf040,
14018 }, {
14019 .eraseblocks = { {512 * 1024, 1} },
14020 .block_erase = erase_chip_28sf040,
14021 }
14022 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014023 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014024 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014025 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014026 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014027 },
14028
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014029 {
14030 .vendor = "SST",
14031 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014032 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014033 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014034 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014035 .total_size = 128,
14036 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014037 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014038 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014039 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014040 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014041 .block_erasers =
14042 {
14043 {
14044 .eraseblocks = { {128 * 1024, 1} },
14045 .block_erase = erase_chip_block_jedec,
14046 }
14047 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014048 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014049 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014050 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014051 },
14052
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014053 {
14054 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014055 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014056 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014057 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014058 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014059 .total_size = 256,
14060 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014061 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014062 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014063 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014064 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014065 .block_erasers =
14066 {
14067 {
14068 .eraseblocks = { {256 * 1024, 1} },
14069 .block_erase = erase_chip_block_jedec,
14070 }
14071 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014072 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014073 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014074 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014075 },
14076
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014077 {
14078 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014079 .name = "SST29LE010",
14080 .bustype = BUS_PARALLEL,
14081 .manufacture_id = SST_ID,
14082 .model_id = SST_SST29LE010,
14083 .total_size = 128,
14084 .page_size = 128,
14085 .feature_bits = FEATURE_LONG_RESET,
14086 .tested = TEST_UNTESTED,
14087 .probe = probe_jedec,
14088 .probe_timing = 10,
14089 .block_erasers =
14090 {
14091 {
14092 .eraseblocks = { {128 * 1024, 1} },
14093 .block_erase = erase_chip_block_jedec,
14094 }
14095 },
14096 .write = write_jedec,
14097 .read = read_memmapped,
14098 .voltage = {3000, 3600},
14099 },
14100
14101 {
14102 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014103 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014104 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014105 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014106 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014107 .total_size = 256,
14108 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014109 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014110 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014111 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014112 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014113 .block_erasers =
14114 {
14115 {
14116 .eraseblocks = { {256 * 1024, 1} },
14117 .block_erase = erase_chip_block_jedec,
14118 }
14119 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014120 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014121 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014122 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014123 },
14124
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014125 {
14126 .vendor = "SST",
14127 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014128 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014129 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014130 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014131 .total_size = 128,
14132 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014133 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014134 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014135 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014136 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014137 .block_erasers =
14138 {
14139 {
14140 .eraseblocks = { {4 * 1024, 32} },
14141 .block_erase = erase_sector_jedec,
14142 }, {
14143 .eraseblocks = { {128 * 1024, 1} },
14144 .block_erase = erase_chip_block_jedec,
14145 }
14146 },
Sean Nelson35727f72010-01-28 23:55:12 +000014147 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014148 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014149 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014150 },
14151
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014152 {
14153 .vendor = "SST",
14154 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014155 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014156 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014157 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014158 .total_size = 256,
14159 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014160 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000014161 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014162 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014163 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014164 .block_erasers =
14165 {
14166 {
14167 .eraseblocks = { {4 * 1024, 64} },
14168 .block_erase = erase_sector_jedec,
14169 }, {
14170 .eraseblocks = { {256 * 1024, 1} },
14171 .block_erase = erase_chip_block_jedec,
14172 }
14173 },
Sean Nelson35727f72010-01-28 23:55:12 +000014174 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014175 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014176 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014177 },
14178
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014179 {
14180 .vendor = "SST",
14181 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014182 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014183 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014184 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014185 .total_size = 512,
14186 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014187 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000014188 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014189 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014190 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014191 .block_erasers =
14192 {
14193 {
14194 .eraseblocks = { {4 * 1024, 128} },
14195 .block_erase = erase_sector_jedec,
14196 }, {
14197 .eraseblocks = { {512 * 1024, 1} },
14198 .block_erase = erase_chip_block_jedec,
14199 }
14200 },
Sean Nelson35727f72010-01-28 23:55:12 +000014201 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014202 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014203 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014204 },
14205
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014206 {
14207 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014208 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014209 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014210 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014211 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014212 .total_size = 64,
14213 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014214 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000014215 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014216 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014217 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014218 .block_erasers =
14219 {
14220 {
14221 .eraseblocks = { {4 * 1024, 16} },
14222 .block_erase = erase_sector_jedec,
14223 }, {
14224 .eraseblocks = { {64 * 1024, 1} },
14225 .block_erase = erase_chip_block_jedec,
14226 }
14227 },
Sean Nelson35727f72010-01-28 23:55:12 +000014228 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014229 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014230 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014231 },
14232
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014233 {
14234 .vendor = "SST",
14235 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014236 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014237 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014238 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014239 .total_size = 128,
14240 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014241 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000014242 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014243 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014244 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014245 .block_erasers =
14246 {
14247 {
14248 .eraseblocks = { {4 * 1024, 32} },
14249 .block_erase = erase_sector_jedec,
14250 }, {
14251 .eraseblocks = { {128 * 1024, 1} },
14252 .block_erase = erase_chip_block_jedec,
14253 }
14254 },
Sean Nelson35727f72010-01-28 23:55:12 +000014255 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014256 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014257 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014258 },
14259
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014260 {
14261 .vendor = "SST",
14262 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014263 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014264 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014265 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014266 .total_size = 256,
14267 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014268 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000014269 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014270 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014271 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014272 .block_erasers =
14273 {
14274 {
14275 .eraseblocks = { {4 * 1024, 64} },
14276 .block_erase = erase_sector_jedec,
14277 }, {
14278 .eraseblocks = { {256 * 1024, 1} },
14279 .block_erase = erase_chip_block_jedec,
14280 }
14281 },
Sean Nelson35727f72010-01-28 23:55:12 +000014282 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014283 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014284 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014285 },
14286
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014287 {
14288 .vendor = "SST",
14289 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014290 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014291 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014292 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014293 .total_size = 512,
14294 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014295 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014296 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014297 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014298 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014299 .block_erasers =
14300 {
14301 {
14302 .eraseblocks = { {4 * 1024, 128} },
14303 .block_erase = erase_sector_jedec,
14304 }, {
14305 .eraseblocks = { {512 * 1024, 1} },
14306 .block_erase = erase_chip_block_jedec,
14307 }
14308 },
Sean Nelson35727f72010-01-28 23:55:12 +000014309 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014310 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014311 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000014312 },
FENG yu ningff692fb2008-12-08 18:15:10 +000014313
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014314 {
14315 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000014316 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014317 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014318 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014319 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000014320 .total_size = 1024,
14321 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014322 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000014323 .tested = TEST_UNTESTED,
14324 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014325 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014326 .block_erasers =
14327 {
14328 {
14329 .eraseblocks = { {4 * 1024, 256} },
14330 .block_erase = erase_sector_jedec,
14331 }, {
14332 .eraseblocks = { {64 * 1024, 16} },
14333 .block_erase = erase_block_jedec,
14334 }, {
14335 .eraseblocks = { {1024 * 1024, 1} },
14336 .block_erase = erase_chip_block_jedec,
14337 }
14338 },
Sean Nelson35727f72010-01-28 23:55:12 +000014339 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014340 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014341 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000014342 },
14343
14344 {
14345 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014346 .name = "SST39VF512",
14347 .bustype = BUS_PARALLEL,
14348 .manufacture_id = SST_ID,
14349 .model_id = SST_SST39VF512,
14350 .total_size = 64,
14351 .page_size = 4096,
14352 .feature_bits = FEATURE_EITHER_RESET,
14353 .tested = TEST_OK_PREW,
14354 .probe = probe_jedec,
14355 .probe_timing = 1, /* 150 ns */
14356 .block_erasers =
14357 {
14358 {
14359 .eraseblocks = { {4 * 1024, 16} },
14360 .block_erase = erase_sector_jedec,
14361 }, {
14362 .eraseblocks = { {64 * 1024, 1} },
14363 .block_erase = erase_chip_block_jedec,
14364 }
14365 },
14366 .write = write_jedec_1,
14367 .read = read_memmapped,
14368 .voltage = {2700, 3600},
14369 },
14370
14371 {
14372 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014373 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014374 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014375 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014376 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014377 .total_size = 256,
14378 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014379 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014380 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014381 .probe = probe_jedec,
14382 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014383 .block_erasers =
14384 {
14385 {
14386 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014387 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014388 }, {
14389 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014390 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014391 }, {
14392 .eraseblocks = { {256 * 1024, 1} },
14393 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14394 }
14395 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014396 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014397 .unlock = unlock_sst_fwhub,
14398 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014399 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014400 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014401 },
14402
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014403 {
14404 .vendor = "SST",
14405 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014406 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014407 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014408 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014409 .total_size = 384,
14410 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014411 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000014412 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014413 .probe = probe_jedec,
14414 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014415 .block_erasers =
14416 {
14417 {
14418 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014419 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014420 }, {
14421 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014422 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014423 }, {
14424 .eraseblocks = { {384 * 1024, 1} },
14425 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14426 }
14427 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014428 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014429 .unlock = unlock_sst_fwhub,
14430 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014431 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014432 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014433 },
14434
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014435 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014436 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
14437 * and is only honored for 64k block erase, but not 4k sector erase.
14438 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014439 .vendor = "SST",
14440 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014441 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014442 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014443 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014444 .total_size = 512,
14445 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014446 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014447 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014448 .probe = probe_jedec,
14449 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014450 .block_erasers =
14451 {
14452 {
14453 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014454 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014455 }, {
14456 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014457 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014458 }, {
14459 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000014460 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014461 },
14462 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014463 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014464 .unlock = unlock_sst_fwhub,
14465 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014466 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014467 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014468 },
14469
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014470 {
14471 .vendor = "SST",
14472 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014473 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014474 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014475 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014476 .total_size = 512,
14477 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014478 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014479 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014480 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014481 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014482 .block_erasers =
14483 {
14484 {
14485 .eraseblocks = { {4 * 1024, 128} },
14486 .block_erase = erase_sector_49lfxxxc,
14487 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014488 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014489 {64 * 1024, 7},
14490 {32 * 1024, 1},
14491 {8 * 1024, 2},
14492 {16 * 1024, 1},
14493 },
Sean Nelson69e58112010-03-23 17:10:28 +000014494 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014495 }
14496 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014497 .printlock = printlock_regspace2_block_eraser_1,
14498 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014499 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014500 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014501 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014502 },
14503
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014504 {
14505 .vendor = "SST",
14506 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014507 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014508 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014509 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014510 .total_size = 1024,
14511 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014512 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014513 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014514 .probe = probe_jedec,
14515 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014516 .block_erasers =
14517 {
14518 {
14519 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014520 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014521 }, {
14522 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014523 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014524 }, {
14525 .eraseblocks = { {1024 * 1024, 1} },
14526 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14527 }
14528 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014529 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014530 .unlock = unlock_sst_fwhub,
14531 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014532 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014533 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014534 },
14535
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014536 {
14537 .vendor = "SST",
14538 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014539 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014540 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014541 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014542 .total_size = 1024,
14543 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014544 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014545 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014546 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014547 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014548 .block_erasers =
14549 {
14550 {
14551 .eraseblocks = { {4 * 1024, 256} },
14552 .block_erase = erase_sector_49lfxxxc,
14553 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014554 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014555 {64 * 1024, 15},
14556 {32 * 1024, 1},
14557 {8 * 1024, 2},
14558 {16 * 1024, 1},
14559 },
Sean Nelson69e58112010-03-23 17:10:28 +000014560 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014561 }
14562 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014563 .printlock = printlock_regspace2_block_eraser_1,
14564 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014565 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014566 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014567 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014568 },
14569
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014570 {
14571 .vendor = "SST",
14572 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014573 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014574 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014575 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014576 .total_size = 2048,
14577 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014578 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014579 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014580 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014581 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014582 .block_erasers =
14583 {
14584 {
14585 .eraseblocks = { {4 * 1024, 512} },
14586 .block_erase = erase_sector_49lfxxxc,
14587 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014588 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014589 {64 * 1024, 31},
14590 {32 * 1024, 1},
14591 {8 * 1024, 2},
14592 {16 * 1024, 1},
14593 },
Sean Nelson69e58112010-03-23 17:10:28 +000014594 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014595 }
14596 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014597 .printlock = printlock_regspace2_block_eraser_1,
14598 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014599 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014600 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014601 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014602 },
14603
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014604 {
14605 .vendor = "SST",
14606 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014607 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014608 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014609 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014610 .total_size = 256,
14611 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014612 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000014613 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014614 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014615 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014616 .block_erasers =
14617 {
14618 {
14619 .eraseblocks = { {4 * 1024, 64} },
14620 .block_erase = erase_sector_jedec,
14621 }, {
14622 .eraseblocks = { {16 * 1024, 16} },
14623 .block_erase = erase_block_jedec,
14624 }, {
14625 .eraseblocks = { {256 * 1024, 1} },
14626 .block_erase = NULL,
14627 }
14628 },
Sean Nelson35727f72010-01-28 23:55:12 +000014629 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014630 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014631 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000014632 },
14633
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014634 {
14635 .vendor = "SST",
14636 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014637 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014638 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014639 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014640 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000014641 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014642 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014643 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014644 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014645 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014646 .block_erasers =
14647 {
14648 {
14649 .eraseblocks = { {4 * 1024, 64} },
14650 .block_erase = erase_sector_jedec,
14651 }, {
14652 .eraseblocks = { {16 * 1024, 16} },
14653 .block_erase = erase_block_jedec,
14654 }, {
14655 .eraseblocks = { {256 * 1024, 1} },
14656 .block_erase = NULL,
14657 }
14658 },
Sean Nelson35727f72010-01-28 23:55:12 +000014659 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014660 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014661 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014662 },
14663
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014664 {
14665 .vendor = "SST",
14666 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014667 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014668 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014669 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014670 .total_size = 512,
14671 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014672 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014673 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014674 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014675 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014676 .block_erasers =
14677 {
14678 {
14679 .eraseblocks = { {4 * 1024, 128} },
14680 .block_erase = erase_sector_jedec,
14681 }, {
14682 .eraseblocks = { {64 * 1024, 8} },
14683 .block_erase = erase_block_jedec,
14684 }, {
14685 .eraseblocks = { {512 * 1024, 1} },
14686 .block_erase = NULL,
14687 }
14688 },
Sean Nelson35727f72010-01-28 23:55:12 +000014689 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014690 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014691 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014692 },
14693
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014694 {
14695 .vendor = "SST",
14696 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014697 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014698 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014699 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014700 .total_size = 512,
14701 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000014702 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014703 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014704 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014705 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014706 .block_erasers =
14707 {
14708 {
14709 .eraseblocks = { {4 * 1024, 128} },
14710 .block_erase = erase_sector_jedec,
14711 }, {
14712 .eraseblocks = { {64 * 1024, 8} },
14713 .block_erase = erase_block_jedec,
14714 }, {
14715 .eraseblocks = { {512 * 1024, 1} },
14716 .block_erase = NULL,
14717 }
14718 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014719 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014720 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014721 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014722 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014723 },
14724
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014725 {
14726 .vendor = "SST",
14727 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014728 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014729 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020014730 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014731 .total_size = 1024,
14732 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014733 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000014734 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014735 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014736 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014737 .block_erasers =
14738 {
14739 {
14740 .eraseblocks = { {4 * 1024, 256} },
14741 .block_erase = erase_sector_jedec,
14742 }, {
14743 .eraseblocks = { {64 * 1024, 16} },
14744 .block_erase = erase_block_jedec,
14745 }, {
14746 .eraseblocks = { {1024 * 1024, 1} },
14747 .block_erase = NULL,
14748 }
14749 },
Sean Nelson35727f72010-01-28 23:55:12 +000014750 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014751 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014752 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014753 },
14754
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014755 {
14756 .vendor = "SST",
14757 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014758 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014759 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014760 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014761 .total_size = 2048,
14762 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014763 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014764 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014765 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014766 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014767 .block_erasers =
14768 {
14769 {
14770 .eraseblocks = { {4 * 1024, 512} },
14771 .block_erase = erase_sector_49lfxxxc,
14772 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014773 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014774 {64 * 1024, 31},
14775 {32 * 1024, 1},
14776 {8 * 1024, 2},
14777 {16 * 1024, 1},
14778 },
Sean Nelson69e58112010-03-23 17:10:28 +000014779 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014780 }
14781 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014782 .printlock = printlock_regspace2_block_eraser_1,
14783 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014784 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014785 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014786 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014787 },
14788
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014789 {
14790 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014791 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014792 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014793 .manufacture_id = ST_ID,
14794 .model_id = ST_M29F002B,
14795 .total_size = 256,
14796 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014797 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014798 .tested = TEST_UNTESTED,
14799 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014800 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014801 .block_erasers =
14802 {
14803 {
14804 .eraseblocks = {
14805 {16 * 1024, 1},
14806 {8 * 1024, 2},
14807 {32 * 1024, 1},
14808 {64 * 1024, 3},
14809 },
14810 .block_erase = erase_sector_jedec,
14811 }, {
14812 .eraseblocks = { {256 * 1024, 1} },
14813 .block_erase = erase_chip_block_jedec,
14814 }
14815 },
Sean Nelson35727f72010-01-28 23:55:12 +000014816 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014817 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014818 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014819 },
14820
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014821 {
14822 .vendor = "ST",
14823 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014824 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014825 .manufacture_id = ST_ID,
14826 .model_id = ST_M29F002T,
14827 .total_size = 256,
14828 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014829 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014830 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014831 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014832 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014833 .block_erasers =
14834 {
14835 {
14836 .eraseblocks = {
14837 {64 * 1024, 3},
14838 {32 * 1024, 1},
14839 {8 * 1024, 2},
14840 {16 * 1024, 1},
14841 },
14842 .block_erase = erase_sector_jedec,
14843 }, {
14844 .eraseblocks = { {256 * 1024, 1} },
14845 .block_erase = erase_chip_block_jedec,
14846 }
14847 },
Sean Nelson35727f72010-01-28 23:55:12 +000014848 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014849 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014850 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014851 },
14852
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014853 {
14854 .vendor = "ST",
14855 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014856 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014857 .manufacture_id = ST_ID,
14858 .model_id = ST_M29F040B,
14859 .total_size = 512,
14860 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014861 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
14862 .tested = TEST_UNTESTED,
14863 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000014864 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000014865 .block_erasers =
14866 {
14867 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014868 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000014869 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014870 }, {
14871 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000014872 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014873 }
14874 },
Sean Nelson35727f72010-01-28 23:55:12 +000014875 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014876 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014877 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014878 },
14879
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014880 {
Sean Nelson35727f72010-01-28 23:55:12 +000014881 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014882 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014883 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014884 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014885 .manufacture_id = ST_ID,
14886 .model_id = ST_M29F400BB,
14887 .total_size = 512,
14888 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014889 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014890 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014891 .probe = probe_jedec,
14892 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014893 .block_erasers =
14894 {
14895 {
14896 .eraseblocks = {
14897 {16 * 1024, 1},
14898 {8 * 1024, 2},
14899 {32 * 1024, 1},
14900 {64 * 1024, 7},
14901 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014902 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014903 }, {
14904 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014905 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014906 }
14907 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014908 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014909 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014910 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014911 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100014912
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014913 {
14914 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
14915 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014916 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014917 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014918 .manufacture_id = ST_ID,
14919 .model_id = ST_M29F400BT,
14920 .total_size = 512,
14921 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014922 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014923 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014924 .probe = probe_jedec,
14925 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000014926 .block_erasers =
14927 {
14928 {
14929 .eraseblocks = {
14930 {64 * 1024, 7},
14931 {32 * 1024, 1},
14932 {8 * 1024, 2},
14933 {16 * 1024, 1},
14934 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014935 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014936 }, {
14937 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014938 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014939 }
14940 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014941 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014942 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014943 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014944 },
14945
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014946 {
14947 .vendor = "ST",
14948 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014949 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014950 .manufacture_id = ST_ID,
14951 .model_id = ST_M29W010B,
14952 .total_size = 128,
14953 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014954 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014955 .tested = TEST_UNTESTED,
14956 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014957 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014958 .block_erasers =
14959 {
14960 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014961 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014962 .block_erase = erase_sector_jedec,
14963 }, {
14964 .eraseblocks = { {128 * 1024, 1} },
14965 .block_erase = erase_chip_block_jedec,
14966 }
14967 },
Sean Nelson35727f72010-01-28 23:55:12 +000014968 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014969 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014970 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014971 },
14972
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014973 {
14974 .vendor = "ST",
14975 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014976 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014977 .manufacture_id = ST_ID,
14978 .model_id = ST_M29W040B,
14979 .total_size = 512,
14980 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014981 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014982 .tested = TEST_UNTESTED,
14983 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014984 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014985 .block_erasers =
14986 {
14987 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014988 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014989 .block_erase = erase_sector_jedec,
14990 }, {
14991 .eraseblocks = { {512 * 1024, 1} },
14992 .block_erase = erase_chip_block_jedec,
14993 }
14994 },
Sean Nelson35727f72010-01-28 23:55:12 +000014995 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014996 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014997 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014998 },
14999
Stefan Taunereb582572012-09-21 12:52:50 +000015000 {
15001 .vendor = "ST",
15002 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015003 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100015004 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000015005 .model_id = ST_M29W512B,
15006 .total_size = 64,
15007 .page_size = 64 * 1024,
15008 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015009 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000015010 .probe = probe_jedec,
15011 .probe_timing = TIMING_ZERO,
15012 .block_erasers =
15013 {
15014 {
15015 .eraseblocks = { {64 * 1024, 1} },
15016 .block_erase = erase_chip_block_jedec,
15017 }
15018 },
15019 .write = write_jedec_1,
15020 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015021 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000015022 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000015023
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015024 {
15025 .vendor = "ST",
15026 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015027 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015028 .manufacture_id = ST_ID,
15029 .model_id = ST_M50FLW040A,
15030 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015031 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015032 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015033 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015034 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015035 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015036 .block_erasers =
15037 {
15038 {
Sean Nelson329bde72010-01-19 16:39:19 +000015039 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015040 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015041 {64 * 1024, 5}, /* block */
15042 {4 * 1024, 16}, /* sector */
15043 {4 * 1024, 16}, /* sector */
15044 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015045 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015046 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015047 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015048 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015049 }
15050 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015051 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015052 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015053 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015054 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015055 },
15056
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015057 {
15058 .vendor = "ST",
15059 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015060 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015061 .manufacture_id = ST_ID,
15062 .model_id = ST_M50FLW040B,
15063 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015064 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015065 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015066 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015067 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015068 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015069 .block_erasers =
15070 {
15071 {
Sean Nelson329bde72010-01-19 16:39:19 +000015072 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015073 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015074 {4 * 1024, 16}, /* sector */
15075 {64 * 1024, 5}, /* block */
15076 {4 * 1024, 16}, /* sector */
15077 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015078 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015079 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015080 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015081 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015082 }
15083 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015084 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015085 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015086 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015087 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015088 },
15089
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015090 {
15091 .vendor = "ST",
15092 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015093 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015094 .manufacture_id = ST_ID,
15095 .model_id = ST_M50FLW080A,
15096 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015097 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015098 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015099 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015100 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015101 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015102 .block_erasers =
15103 {
15104 {
Sean Nelson329bde72010-01-19 16:39:19 +000015105 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015106 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015107 {64 * 1024, 13}, /* block */
15108 {4 * 1024, 16}, /* sector */
15109 {4 * 1024, 16}, /* sector */
15110 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015111 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015112 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015113 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015114 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015115 }
15116 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015117 .printlock = printlock_regspace2_block_eraser_0,
15118 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015119 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015120 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015121 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015122 },
15123
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015124 {
15125 .vendor = "ST",
15126 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015127 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015128 .manufacture_id = ST_ID,
15129 .model_id = ST_M50FLW080B,
15130 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015131 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015132 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015133 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015134 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015135 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015136 .block_erasers =
15137 {
15138 {
Sean Nelson329bde72010-01-19 16:39:19 +000015139 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015140 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015141 {4 * 1024, 16}, /* sector */
15142 {64 * 1024, 13}, /* block */
15143 {4 * 1024, 16}, /* sector */
15144 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015145 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015146 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015147 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015148 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015149 }
15150 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015151 .printlock = printlock_regspace2_block_eraser_0,
15152 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015153 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015154 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015155 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015156 },
15157
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015158 {
15159 .vendor = "ST",
15160 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015161 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015162 .manufacture_id = ST_ID,
15163 .model_id = ST_M50FW002,
15164 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000015165 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015166 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015167 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015168 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015169 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015170 .block_erasers =
15171 {
15172 {
15173 .eraseblocks = {
15174 {64 * 1024, 3},
15175 {32 * 1024, 1},
15176 {8 * 1024, 2},
15177 {16 * 1024, 1},
15178 },
Sean Nelson28accc22010-03-19 18:47:06 +000015179 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015180 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000015181 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015182 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000015183 }
15184 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015185 .printlock = printlock_regspace2_block_eraser_0,
15186 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015187 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015188 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015189 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015190 },
15191
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015192 {
15193 .vendor = "ST",
15194 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015195 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015196 .manufacture_id = ST_ID,
15197 .model_id = ST_M50FW016,
15198 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015199 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015200 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015201 .tested = TEST_UNTESTED,
15202 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015203 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015204 .block_erasers =
15205 {
15206 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015207 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000015208 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015209 }
15210 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015211 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015212 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015213 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015214 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015215 },
15216
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015217 {
15218 .vendor = "ST",
15219 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015220 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015221 .manufacture_id = ST_ID,
15222 .model_id = ST_M50FW040,
15223 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015224 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015225 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000015226 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015227 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015228 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015229 .block_erasers =
15230 {
15231 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015232 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015233 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015234 }
15235 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015236 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015237 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015238 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015239 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015240 },
15241
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015242 {
15243 .vendor = "ST",
15244 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015245 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015246 .manufacture_id = ST_ID,
15247 .model_id = ST_M50FW080,
15248 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015249 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015250 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015251 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015252 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015253 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015254 .block_erasers =
15255 {
15256 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015257 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015258 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015259 }
15260 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015261 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015262 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015263 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015264 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015265 },
15266
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015267 {
15268 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015269 .name = "M50LPW080",
15270 .bustype = BUS_LPC, /* A/A Mux */
15271 .manufacture_id = ST_ID,
15272 .model_id = ST_M50LPW080,
15273 .total_size = 1024,
15274 .page_size = 0,
15275 .feature_bits = FEATURE_REGISTERMAP,
15276 .tested = TEST_UNTESTED,
15277 .probe = probe_82802ab,
15278 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15279 .block_erasers =
15280 {
15281 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015282 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015283 .block_erase = erase_block_82802ab,
15284 }
15285 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015286 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015287 .write = write_82802ab,
15288 .read = read_memmapped,
15289 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
15290 },
15291
15292 {
15293 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015294 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015295 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015296 .manufacture_id = ST_ID,
15297 .model_id = ST_M50LPW116,
15298 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015299 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015300 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015301 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015302 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000015303 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015304 .block_erasers =
15305 {
15306 {
15307 .eraseblocks = {
15308 {4 * 1024, 16},
15309 {64 * 1024, 30},
15310 {32 * 1024, 1},
15311 {8 * 1024, 2},
15312 {16 * 1024, 1},
15313 },
Sean Nelson28accc22010-03-19 18:47:06 +000015314 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015315 }
15316 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015317 .printlock = printlock_regspace2_block_eraser_0,
15318 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015319 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015320 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015321 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015322 },
15323
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015324 {
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030015325 .vendor = "ST",
15326 .name = "M95M02",
15327 .bustype = BUS_SPI,
15328 .manufacture_id = ST_ID,
15329 .model_id = ST_M95M02,
15330 .total_size = 256,
15331 .page_size = 256,
15332 .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO,
15333 .tested = TEST_OK_PREW,
15334 .probe = probe_spi_st95,
15335 .probe_timing = TIMING_ZERO,
15336 .block_erasers =
15337 {
15338 {
15339 .eraseblocks = { {256 * 1024, 1} },
15340 .block_erase = spi_block_erase_emulation,
15341 }
15342 },
15343
15344 .printlock = spi_prettyprint_status_register_bp1_srwd,
15345 .unlock = spi_disable_blockprotect_bp1_srwd,
15346 .write = spi_chip_write_256,
15347 .read = spi_chip_read,
15348 .voltage = {2500, 5500},
15349 },
15350
15351 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100015352 .vendor = "Sanyo",
15353 .name = "LE25FU106B",
15354 .bustype = BUS_SPI,
15355 .manufacture_id = SANYO_ID,
15356 .model_id = SANYO_LE25FU106B,
15357 .total_size = 128,
15358 .page_size = 256,
15359 .feature_bits = FEATURE_WRSR_WREN,
15360 .tested = TEST_UNTESTED,
15361 .probe = probe_spi_res2,
15362 .probe_timing = TIMING_ZERO,
15363 .block_erasers =
15364 {
15365 /* FIXME: Is this correct?
15366 {
15367 .eraseblocks = { {2 * 1024, 64} },
15368 .block_erase = spi_block_erase_d7,
15369 },*/
15370 {
15371 .eraseblocks = { {32 * 1024, 4} },
15372 .block_erase = spi_block_erase_d8,
15373 }, {
15374 .eraseblocks = { {128 * 1024, 1} },
15375 .block_erase = spi_block_erase_c7,
15376 }
15377 },
15378 .printlock = spi_prettyprint_status_register_bp1_srwd,
15379 .unlock = spi_disable_blockprotect_bp1_srwd,
15380 .write = spi_chip_write_256,
15381 .read = spi_chip_read,
15382 .voltage = {2300, 3600},
15383 },
15384
15385 {
15386 .vendor = "Sanyo",
15387 .name = "LE25FU206",
15388 .bustype = BUS_SPI,
15389 .manufacture_id = SANYO_ID,
15390 .model_id = SANYO_LE25FU206,
15391 .total_size = 256,
15392 .page_size = 256,
15393 .feature_bits = FEATURE_WRSR_WREN,
15394 .tested = TEST_UNTESTED,
15395 .probe = probe_spi_res2,
15396 .probe_timing = TIMING_ZERO,
15397 .block_erasers =
15398 {
15399 {
15400 .eraseblocks = { {4 * 1024, 64} },
15401 .block_erase = spi_block_erase_d7,
15402 }, {
15403 .eraseblocks = { {64 * 1024, 4} },
15404 .block_erase = spi_block_erase_d8,
15405 }, {
15406 .eraseblocks = { {256 * 1024, 1} },
15407 .block_erase = spi_block_erase_c7,
15408 }
15409 },
15410 .printlock = spi_prettyprint_status_register_bp1_srwd,
15411 .unlock = spi_disable_blockprotect_bp1_srwd,
15412 .write = spi_chip_write_256,
15413 .read = spi_chip_read,
15414 .voltage = {2300, 3600},
15415 },
15416
15417 {
15418 .vendor = "Sanyo",
15419 .name = "LE25FU206A",
15420 .bustype = BUS_SPI,
15421 .manufacture_id = SANYO_ID,
15422 .model_id = SANYO_LE25FU206A,
15423 .total_size = 256,
15424 .page_size = 256,
15425 .tested = TEST_UNTESTED,
15426 .probe = probe_spi_rdid,
15427 .probe_timing = TIMING_ZERO,
15428 .block_erasers =
15429 {
15430 {
15431 .eraseblocks = { {4 * 1024, 64} },
15432 .block_erase = spi_block_erase_20,
15433 }, {
15434 .eraseblocks = { {4 * 1024, 64} },
15435 .block_erase = spi_block_erase_d7,
15436 }, {
15437 .eraseblocks = { {64 * 1024, 4} },
15438 .block_erase = spi_block_erase_d8,
15439 }, {
15440 .eraseblocks = { {256 * 1024, 1} },
15441 .block_erase = spi_block_erase_60,
15442 }, {
15443 .eraseblocks = { {256 * 1024, 1} },
15444 .block_erase = spi_block_erase_c7,
15445 }
15446 },
15447 .printlock = spi_prettyprint_status_register_bp2_srwd,
15448 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15449 .write = spi_chip_write_256,
15450 .read = spi_chip_read,
15451 .voltage = {2300, 3600},
15452 },
15453
15454 {
15455 .vendor = "Sanyo",
15456 .name = "LE25FU406B",
15457 .bustype = BUS_SPI,
15458 .manufacture_id = SANYO_ID,
15459 .model_id = SANYO_LE25FU406B,
15460 .total_size = 512,
15461 .page_size = 256,
15462 .feature_bits = FEATURE_WRSR_WREN,
15463 .tested = TEST_OK_PREW,
15464 .probe = probe_spi_res2,
15465 .probe_timing = TIMING_ZERO,
15466 .block_erasers =
15467 {
15468 {
15469 .eraseblocks = { {4 * 1024, 128} },
15470 .block_erase = spi_block_erase_d7,
15471 }, {
15472 .eraseblocks = { {64 * 1024, 8} },
15473 .block_erase = spi_block_erase_d8,
15474 }, {
15475 .eraseblocks = { {512 * 1024, 1} },
15476 .block_erase = spi_block_erase_c7,
15477 }
15478 },
15479 .printlock = spi_prettyprint_status_register_bp2_srwd,
15480 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15481 .write = spi_chip_write_256,
15482 .read = spi_chip_read,
15483 .voltage = {2300, 3600},
15484 },
15485
15486 {
15487 .vendor = "Sanyo",
15488 .name = "LE25FU406C/LE25U40CMC",
15489 .bustype = BUS_SPI,
15490 .manufacture_id = SANYO_ID,
15491 .model_id = SANYO_LE25FU406C,
15492 .total_size = 512,
15493 .page_size = 256,
15494 .feature_bits = FEATURE_WRSR_WREN,
15495 .tested = TEST_OK_PREW,
15496 .probe = probe_spi_rdid,
15497 .probe_timing = TIMING_ZERO,
15498 .block_erasers =
15499 {
15500 {
15501 .eraseblocks = { {4 * 1024, 128} },
15502 .block_erase = spi_block_erase_20,
15503 }, {
15504 .eraseblocks = { {4 * 1024, 128} },
15505 .block_erase = spi_block_erase_d7,
15506 }, {
15507 .eraseblocks = { {64 * 1024, 8} },
15508 .block_erase = spi_block_erase_d8,
15509 }, {
15510 .eraseblocks = { {512 * 1024, 1} },
15511 .block_erase = spi_block_erase_60,
15512 }, {
15513 .eraseblocks = { {512 * 1024, 1} },
15514 .block_erase = spi_block_erase_c7,
15515 }
15516 },
15517 .printlock = spi_prettyprint_status_register_bp2_srwd,
15518 .unlock = spi_disable_blockprotect_bp2_srwd,
15519 .write = spi_chip_write_256,
15520 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
15521 .voltage = {2300, 3600},
15522 },
15523
15524 {
15525 .vendor = "Sanyo",
15526 .name = "LE25FW106",
15527 .bustype = BUS_SPI,
15528 .manufacture_id = SANYO_ID,
15529 .model_id = SANYO_LE25FW106,
15530 .total_size = 128,
15531 .page_size = 256,
15532 .feature_bits = FEATURE_WRSR_WREN,
15533 .tested = TEST_OK_PREW,
15534 .probe = probe_spi_res2,
15535 .probe_timing = TIMING_ZERO,
15536 .block_erasers =
15537 {
15538 {
15539 .eraseblocks = { {2 * 1024, 64} },
15540 .block_erase = spi_block_erase_d7,
15541 }, {
15542 .eraseblocks = { {32 * 1024, 4} },
15543 .block_erase = spi_block_erase_d8,
15544 }, {
15545 .eraseblocks = { {128 * 1024, 1} },
15546 .block_erase = spi_block_erase_c7,
15547 }
15548 },
15549 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
15550 .unlock = spi_disable_blockprotect_bp1_srwd,
15551 .write = spi_chip_write_256,
15552 .read = spi_chip_read,
15553 .voltage = {2700, 3600},
15554 },
15555
15556 {
15557 .vendor = "Sanyo",
15558 .name = "LE25FW203A",
15559 .bustype = BUS_SPI,
15560 .manufacture_id = SANYO_ID,
15561 .model_id = SANYO_LE25FW203A,
15562 .total_size = 256,
15563 .page_size = 256,
15564 .tested = TEST_UNTESTED,
15565 .probe = probe_spi_rdid,
15566 .probe_timing = TIMING_ZERO,
15567 .block_erasers =
15568 {
15569 {
15570 .eraseblocks = { {256, 1024} },
15571 .block_erase = spi_block_erase_db,
15572 }, {
15573 .eraseblocks = { {64 * 1024, 4} },
15574 .block_erase = spi_block_erase_d8,
15575 }, {
15576 .eraseblocks = { {256 * 1024, 1} },
15577 .block_erase = spi_block_erase_c7,
15578 }
15579 },
15580 .printlock = spi_prettyprint_status_register_default_welwip,
15581 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15582 .write = spi_chip_write_256,
15583 .read = spi_chip_read,
15584 .voltage = {2700, 3600},
15585 },
15586
15587 {
15588 .vendor = "Sanyo",
15589 .name = "LE25FW403A",
15590 .bustype = BUS_SPI,
15591 .manufacture_id = SANYO_ID,
15592 .model_id = SANYO_LE25FW403A,
15593 .total_size = 512,
15594 .page_size = 256,
15595 .tested = TEST_UNTESTED,
15596 .probe = probe_spi_rdid,
15597 .probe_timing = TIMING_ZERO,
15598 .block_erasers =
15599 {
15600 {
15601 .eraseblocks = { {256, 2 * 1024} },
15602 .block_erase = spi_block_erase_db,
15603 }, {
15604 .eraseblocks = { {64 * 1024, 8} },
15605 .block_erase = spi_block_erase_d8,
15606 }, {
15607 .eraseblocks = { {512 * 1024, 1} },
15608 .block_erase = spi_block_erase_c7,
15609 }
15610 },
15611 .printlock = spi_prettyprint_status_register_default_welwip,
15612 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15613 .write = spi_chip_write_256,
15614 .read = spi_chip_read,
15615 .voltage = {2700, 3600},
15616 },
15617
15618 {
15619 .vendor = "Sanyo",
15620 .name = "LE25FW406A",
15621 .bustype = BUS_SPI,
15622 .manufacture_id = SANYO_ID,
15623 .model_id = SANYO_LE25FW406A,
15624 .total_size = 512,
15625 .page_size = 256,
15626 .feature_bits = FEATURE_WRSR_WREN,
15627 .tested = TEST_OK_PREW,
15628 .probe = probe_spi_res2,
15629 .probe_timing = TIMING_ZERO,
15630 .block_erasers =
15631 {
15632 {
15633 .eraseblocks = { {4 * 1024, 128} },
15634 .block_erase = spi_block_erase_d7,
15635 }, {
15636 .eraseblocks = { {64 * 1024, 8} },
15637 .block_erase = spi_block_erase_d8,
15638 }, {
15639 .eraseblocks = { {512 * 1024, 1} },
15640 .block_erase = spi_block_erase_c7,
15641 }
15642 },
15643 .printlock = spi_prettyprint_status_register_plain,
15644 .unlock = spi_disable_blockprotect,
15645 .write = spi_chip_write_256,
15646 .read = spi_chip_read,
15647 .voltage = {2700, 3600},
15648 },
15649
15650 {
15651 .vendor = "Sanyo",
15652 .name = "LE25FW418A",
15653 .bustype = BUS_SPI,
15654 .manufacture_id = SANYO_ID,
15655 .model_id = SANYO_LE25FW418A,
15656 .total_size = 512,
15657 .page_size = 256,
15658 .feature_bits = FEATURE_WRSR_WREN,
15659 .tested = TEST_UNTESTED,
15660 .probe = probe_spi_res2,
15661 .probe_timing = TIMING_ZERO,
15662 .block_erasers =
15663 {
15664 {
15665 .eraseblocks = { {4 * 1024, 128} },
15666 .block_erase = spi_block_erase_d7,
15667 }, {
15668 .eraseblocks = { {64 * 1024, 8} },
15669 .block_erase = spi_block_erase_d8,
15670 }, {
15671 .eraseblocks = { {512 * 1024, 1} },
15672 .block_erase = spi_block_erase_c7,
15673 }
15674 },
15675 .printlock = spi_prettyprint_status_register_bp2_srwd,
15676 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15677 .write = spi_chip_write_256,
15678 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15679 .voltage = {2700, 3600},
15680 },
15681
15682 {
15683 .vendor = "Sanyo",
15684 .name = "LE25FW806",
15685 .bustype = BUS_SPI,
15686 .manufacture_id = SANYO_ID,
15687 .model_id = SANYO_LE25FW806,
15688 .total_size = 1024,
15689 .page_size = 256,
15690 .feature_bits = FEATURE_WRSR_WREN,
15691 .tested = TEST_UNTESTED,
15692 .probe = probe_spi_res2,
15693 .probe_timing = TIMING_ZERO,
15694 .block_erasers =
15695 {
15696 {
15697 .eraseblocks = { {4 * 1024, 256} },
15698 .block_erase = spi_block_erase_20,
15699 }, {
15700 .eraseblocks = { {4 * 1024, 256} },
15701 .block_erase = spi_block_erase_d7,
15702 }, {
15703 .eraseblocks = { {64 * 1024, 16} },
15704 .block_erase = spi_block_erase_d8,
15705 }, {
15706 .eraseblocks = { {1024 * 1024, 1} },
15707 .block_erase = spi_block_erase_c7,
15708 }
15709 },
15710 .printlock = spi_prettyprint_status_register_bp2_srwd,
15711 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15712 .write = spi_chip_write_256,
15713 .read = spi_chip_read,
15714 .voltage = {2700, 3600},
15715 },
15716
15717 {
15718 .vendor = "Sanyo",
15719 .name = "LE25FW808",
15720 .bustype = BUS_SPI,
15721 .manufacture_id = SANYO_ID,
15722 .model_id = SANYO_LE25FW808,
15723 .total_size = 1024,
15724 .page_size = 256,
15725 .feature_bits = FEATURE_WRSR_WREN,
15726 .tested = TEST_UNTESTED,
15727 .probe = probe_spi_res2,
15728 .probe_timing = TIMING_ZERO,
15729 .block_erasers =
15730 {
15731 {
15732 .eraseblocks = { {8 * 1024, 128} },
15733 .block_erase = spi_block_erase_d7,
15734 }, {
15735 .eraseblocks = { {64 * 1024, 16} },
15736 .block_erase = spi_block_erase_d8,
15737 }, {
15738 .eraseblocks = { {1024 * 1024, 1} },
15739 .block_erase = spi_block_erase_c7,
15740 }
15741 },
15742 .printlock = spi_prettyprint_status_register_bp2_srwd,
15743 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15744 .write = spi_chip_write_256,
15745 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15746 .voltage = {2700, 3600},
15747 },
15748
15749 {
15750 .vendor = "Sharp",
15751 .name = "LH28F008BJT-BTLZ1",
15752 .bustype = BUS_PARALLEL,
15753 .manufacture_id = SHARP_ID,
15754 .model_id = SHARP_LH28F008BJ__PB,
15755 .total_size = 1024,
15756 .page_size = 64 * 1024,
15757 .tested = TEST_OK_PREW,
15758 .probe = probe_82802ab,
15759 .probe_timing = TIMING_ZERO,
15760 .block_erasers =
15761 {
15762 {
15763 .eraseblocks = {
15764 {8 * 1024, 8},
15765 {64 * 1024, 15}
15766 },
15767 .block_erase = erase_block_82802ab,
15768 }, {
15769 .eraseblocks = { {1024 * 1024, 1} },
15770 .block_erase = erase_sector_49lfxxxc,
15771 }
15772 },
15773 .unlock = unlock_lh28f008bjt,
15774 .write = write_82802ab,
15775 .read = read_memmapped,
15776 .voltage = {2700, 3600},
15777 },
15778
15779 {
15780 .vendor = "Sharp",
15781 .name = "LHF00L04",
15782 .bustype = BUS_FWH, /* A/A Mux */
15783 .manufacture_id = SHARP_ID,
15784 .model_id = SHARP_LHF00L04,
15785 .total_size = 1024,
15786 .page_size = 64 * 1024,
15787 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
15788 .tested = TEST_UNTESTED,
15789 .probe = probe_82802ab,
15790 .probe_timing = TIMING_ZERO,
15791 .block_erasers =
15792 {
15793 {
15794 .eraseblocks = {
15795 {64 * 1024, 15},
15796 {8 * 1024, 8}
15797 },
15798 .block_erase = erase_block_82802ab,
15799 }, {
15800 .eraseblocks = {
15801 {1024 * 1024, 1}
15802 },
15803 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
15804 },
15805 },
15806 .unlock = unlock_regspace2_uniform_64k,
15807 .write = write_82802ab,
15808 .read = read_memmapped,
15809 .voltage = {3000, 3600},
15810 },
15811
15812 {
15813 .vendor = "Spansion",
15814 .name = "S25FL004A",
15815 .bustype = BUS_SPI,
15816 .manufacture_id = SPANSION_ID,
15817 .model_id = SPANSION_S25FL004A,
15818 .total_size = 512,
15819 .page_size = 256,
15820 .feature_bits = FEATURE_WRSR_WREN,
15821 .tested = TEST_UNTESTED,
15822 .probe = probe_spi_rdid,
15823 .probe_timing = TIMING_ZERO,
15824 .block_erasers =
15825 {
15826 {
15827 .eraseblocks = { {64 * 1024, 8} },
15828 .block_erase = spi_block_erase_d8,
15829 }, {
15830 .eraseblocks = { {512 * 1024, 1} },
15831 .block_erase = spi_block_erase_c7,
15832 }
15833 },
15834 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15835 .unlock = spi_disable_blockprotect,
15836 .write = spi_chip_write_256,
15837 .read = spi_chip_read,
15838 .voltage = {2700, 3600},
15839 },
15840
15841 {
15842 .vendor = "Spansion",
15843 .name = "S25FL008A",
15844 .bustype = BUS_SPI,
15845 .manufacture_id = SPANSION_ID,
15846 .model_id = SPANSION_S25FL008A,
15847 .total_size = 1024,
15848 .page_size = 256,
15849 .feature_bits = FEATURE_WRSR_WREN,
15850 .tested = TEST_OK_PRE,
15851 .probe = probe_spi_rdid,
15852 .probe_timing = TIMING_ZERO,
15853 .block_erasers =
15854 {
15855 {
15856 .eraseblocks = { {64 * 1024, 16} },
15857 .block_erase = spi_block_erase_d8,
15858 }, {
15859 .eraseblocks = { {1024 * 1024, 1} },
15860 .block_erase = spi_block_erase_c7,
15861 }
15862 },
15863 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15864 .unlock = spi_disable_blockprotect,
15865 .write = spi_chip_write_256,
15866 .read = spi_chip_read,
15867 .voltage = {2700, 3600},
15868 },
15869
15870 {
15871 .vendor = "Spansion",
15872 .name = "S25FL016A",
15873 .bustype = BUS_SPI,
15874 .manufacture_id = SPANSION_ID,
15875 .model_id = SPANSION_S25FL016A,
15876 .total_size = 2048,
15877 .page_size = 256,
15878 .feature_bits = FEATURE_WRSR_WREN,
15879 .tested = TEST_OK_PREW,
15880 .probe = probe_spi_rdid,
15881 .probe_timing = TIMING_ZERO,
15882 .block_erasers =
15883 {
15884 {
15885 .eraseblocks = { {64 * 1024, 32} },
15886 .block_erase = spi_block_erase_d8,
15887 }, {
15888 .eraseblocks = { {2 * 1024 * 1024, 1} },
15889 .block_erase = spi_block_erase_c7,
15890 }
15891 },
15892 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15893 .unlock = spi_disable_blockprotect,
15894 .write = spi_chip_write_256,
15895 .read = spi_chip_read,
15896 .voltage = {2700, 3600},
15897 },
15898
15899 {
15900 .vendor = "Spansion",
15901 .name = "S25FL032A/P",
15902 .bustype = BUS_SPI,
15903 .manufacture_id = SPANSION_ID,
15904 .model_id = SPANSION_S25FL032A,
15905 .total_size = 4096,
15906 .page_size = 256,
15907 .feature_bits = FEATURE_WRSR_WREN,
15908 .tested = TEST_OK_PREW,
15909 .probe = probe_spi_rdid,
15910 .probe_timing = TIMING_ZERO,
15911 .block_erasers =
15912 {
15913 {
15914 .eraseblocks = { {64 * 1024, 64} },
15915 .block_erase = spi_block_erase_d8,
15916 }, {
15917 .eraseblocks = { {4 * 1024 * 1024, 1} },
15918 .block_erase = spi_block_erase_c7,
15919 }
15920 },
15921 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15922 .unlock = spi_disable_blockprotect,
15923 .write = spi_chip_write_256,
15924 .read = spi_chip_read,
15925 .voltage = {2700, 3600},
15926 },
15927
15928 {
15929 .vendor = "Spansion",
15930 .name = "S25FL064A/P",
15931 .bustype = BUS_SPI,
15932 .manufacture_id = SPANSION_ID,
15933 .model_id = SPANSION_S25FL064A,
15934 .total_size = 8192,
15935 .page_size = 256,
15936 .feature_bits = FEATURE_WRSR_WREN,
15937 .tested = TEST_OK_PREW,
15938 .probe = probe_spi_rdid,
15939 .probe_timing = TIMING_ZERO,
15940 .block_erasers =
15941 {
15942 {
15943 .eraseblocks = { {64 * 1024, 128} },
15944 .block_erase = spi_block_erase_d8,
15945 }, {
15946 .eraseblocks = { {8 * 1024 * 1024, 1} },
15947 .block_erase = spi_block_erase_c7,
15948 }
15949 },
15950 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15951 .unlock = spi_disable_blockprotect,
15952 .write = spi_chip_write_256,
15953 .read = spi_chip_read,
15954 .voltage = {2700, 3600},
15955 },
15956
15957 {
15958 .vendor = "Spansion",
15959 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
15960 .bustype = BUS_SPI,
15961 .manufacture_id = SPANSION_ID,
15962 .model_id = SPANSION_S25FL216,
15963 .total_size = 2048,
15964 .page_size = 256,
15965 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
15966 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15967 .tested = TEST_UNTESTED,
15968 .probe = probe_spi_rdid,
15969 .probe_timing = TIMING_ZERO,
15970 .block_erasers =
15971 {
15972 {
15973 .eraseblocks = { {4 * 1024, 512} },
15974 .block_erase = spi_block_erase_20,
15975 }, {
15976 .eraseblocks = { {64 * 1024, 32} },
15977 .block_erase = spi_block_erase_d8,
15978 }, {
15979 .eraseblocks = { { 2048 * 1024, 1} },
15980 .block_erase = spi_block_erase_60,
15981 }, {
15982 .eraseblocks = { { 2048 * 1024, 1} },
15983 .block_erase = spi_block_erase_c7,
15984 }
15985 },
15986 .printlock = spi_prettyprint_status_register_bp3_srwd,
15987 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
15988 .write = spi_chip_write_256,
15989 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
15990 .voltage = {2700, 3600},
15991 },
15992
15993 {
15994 .vendor = "Spansion",
15995 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
15996 .bustype = BUS_SPI,
15997 .manufacture_id = SPANSION_ID,
15998 .model_id = SPANSION_S25FL128,
15999 .total_size = 16384,
16000 .page_size = 512,
16001 /* supports 4B addressing */
16002 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16003 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16004 .tested = TEST_UNTESTED,
16005 .probe = probe_spi_rdid,
16006 .probe_timing = TIMING_ZERO,
16007 .block_erasers =
16008 {
16009 {
16010 .eraseblocks = { {256 * 1024, 64} },
16011 .block_erase = spi_block_erase_d8,
16012 }, {
16013 .eraseblocks = { { 16384 * 1024, 1} },
16014 .block_erase = spi_block_erase_60,
16015 }, {
16016 .eraseblocks = { { 16384 * 1024, 1} },
16017 .block_erase = spi_block_erase_c7,
16018 }
16019 },
16020 .printlock = spi_prettyprint_status_register_bp2_srwd,
16021 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16022 .write = spi_chip_write_256, /* Multi I/O supported */
16023 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16024 .voltage = {2700, 3600},
16025 },
16026
16027 {
16028 .vendor = "Spansion",
16029 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16030 .bustype = BUS_SPI,
16031 .manufacture_id = SPANSION_ID,
16032 .model_id = SPANSION_S25FL128,
16033 .total_size = 16384,
16034 .page_size = 256,
16035 /* supports 4B addressing */
16036 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16037 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16038 .tested = TEST_OK_PREW,
16039 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
16040 .probe = probe_spi_rdid,
16041 .probe_timing = TIMING_ZERO,
16042 .block_erasers =
16043 {
16044 {
16045 /* This chip supports erasing of 32 so-called "parameter sectors" with
16046 * opcode 0x20 which may be configured to be on top or bottom of the address
16047 * space. Trying to access an address outside these 4kB blocks does have no
16048 * effect on the memory contents, e.g.
16049 .eraseblocks = {
16050 {4 * 1024, 32},
16051 {64 * 1024, 254} // inaccessible
16052 },
16053 .block_erase = spi_block_erase_20,
16054 }, { */
16055 .eraseblocks = { { 64 * 1024, 256} },
16056 .block_erase = spi_block_erase_d8,
16057 }, {
16058 .eraseblocks = { { 16384 * 1024, 1} },
16059 .block_erase = spi_block_erase_60,
16060 }, {
16061 .eraseblocks = { { 16384 * 1024, 1} },
16062 .block_erase = spi_block_erase_c7,
16063 }
16064 },
16065 .printlock = spi_prettyprint_status_register_bp2_srwd,
16066 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16067 .write = spi_chip_write_256, /* Multi I/O supported */
16068 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16069 .voltage = {2700, 3600},
16070 },
16071
16072 {
16073 .vendor = "Spansion",
16074 .name = "S25FL128P......0", /* uniform 64 kB sectors */
16075 .bustype = BUS_SPI,
16076 .manufacture_id = SPANSION_ID,
16077 .model_id = SPANSION_S25FL128,
16078 .total_size = 16384,
16079 .page_size = 256,
16080 .feature_bits = FEATURE_WRSR_WREN,
16081 .tested = TEST_OK_PREW,
16082 .probe = probe_spi_rdid,
16083 .probe_timing = TIMING_ZERO,
16084 .block_erasers =
16085 {
16086 {
16087 .eraseblocks = { {64 * 1024, 256} },
16088 .block_erase = spi_block_erase_20,
16089 }, {
16090 .eraseblocks = { {64 * 1024, 256} },
16091 .block_erase = spi_block_erase_d8,
16092 }, {
16093 .eraseblocks = { { 16384 * 1024, 1} },
16094 .block_erase = spi_block_erase_60,
16095 }, {
16096 .eraseblocks = { { 16384 * 1024, 1} },
16097 .block_erase = spi_block_erase_c7,
16098 }
16099 },
16100 .printlock = spi_prettyprint_status_register_bp3_srwd,
16101 .unlock = spi_disable_blockprotect_bp3_srwd,
16102 .write = spi_chip_write_256,
16103 .read = spi_chip_read, /* Fast read (0x0B) supported */
16104 .voltage = {2700, 3600},
16105 },
16106
16107 {
16108 .vendor = "Spansion",
16109 .name = "S25FL128P......1", /* uniform 256kB sectors */
16110 .bustype = BUS_SPI,
16111 .manufacture_id = SPANSION_ID,
16112 .model_id = SPANSION_S25FL128,
16113 .total_size = 16384,
16114 .page_size = 256,
16115 .feature_bits = FEATURE_WRSR_WREN,
16116 .tested = TEST_UNTESTED,
16117 .probe = probe_spi_rdid,
16118 .probe_timing = TIMING_ZERO,
16119 .block_erasers =
16120 {
16121 {
16122 .eraseblocks = { {256 * 1024, 64} },
16123 .block_erase = spi_block_erase_d8,
16124 }, {
16125 .eraseblocks = { { 16384 * 1024, 1} },
16126 .block_erase = spi_block_erase_c7,
16127 }
16128 },
16129 .printlock = spi_prettyprint_status_register_bp2_srwd,
16130 .unlock = spi_disable_blockprotect_bp2_srwd,
16131 .write = spi_chip_write_256,
16132 .read = spi_chip_read, /* Fast read (0x0B) supported */
16133 .voltage = {2700, 3600},
16134 },
16135
16136 {
16137 .vendor = "Spansion",
16138 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16139 .bustype = BUS_SPI,
16140 .manufacture_id = SPANSION_ID,
16141 .model_id = SPANSION_S25FL128,
16142 .total_size = 16384,
16143 .page_size = 256,
16144 /* supports 4B addressing */
16145 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16146 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16147 .tested = TEST_OK_PREW,
16148 .probe = probe_spi_rdid,
16149 .probe_timing = TIMING_ZERO,
16150 .block_erasers =
16151 {
16152 {
16153 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16154 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16155 * have no effect on the memory contents, but sets a flag in the SR.
16156 .eraseblocks = {
16157 {4 * 1024, 32},
16158 {64 * 1024, 254} // inaccessible
16159 },
16160 .block_erase = spi_block_erase_20,
16161 }, { */
16162 .eraseblocks = { { 64 * 1024, 256} },
16163 .block_erase = spi_block_erase_d8,
16164 }, {
16165 .eraseblocks = { { 16384 * 1024, 1} },
16166 .block_erase = spi_block_erase_60,
16167 }, {
16168 .eraseblocks = { { 16384 * 1024, 1} },
16169 .block_erase = spi_block_erase_c7,
16170 }
16171 },
16172 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16173 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16174 .write = spi_chip_write_256, /* Multi I/O supported */
16175 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16176 .voltage = {2700, 3600},
16177 },
16178
16179 {
16180 .vendor = "Spansion",
16181 .name = "S25FL128S......1", /* uniform 256 kB sectors */
16182 .bustype = BUS_SPI,
16183 .manufacture_id = SPANSION_ID,
16184 .model_id = SPANSION_S25FL128,
16185 .total_size = 16384,
16186 .page_size = 512,
16187 /* supports 4B addressing */
16188 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16189 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16190 .tested = TEST_UNTESTED,
16191 .probe = probe_spi_rdid,
16192 .probe_timing = TIMING_ZERO,
16193 .block_erasers =
16194 {
16195 {
16196 .eraseblocks = { {256 * 1024, 64} },
16197 .block_erase = spi_block_erase_d8,
16198 }, {
16199 .eraseblocks = { { 16384 * 1024, 1} },
16200 .block_erase = spi_block_erase_60,
16201 }, {
16202 .eraseblocks = { { 16384 * 1024, 1} },
16203 .block_erase = spi_block_erase_c7,
16204 }
16205 },
16206 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16207 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16208 .write = spi_chip_write_256, /* Multi I/O supported */
16209 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16210 .voltage = {2700, 3600},
16211 },
16212
16213 {
16214 .vendor = "Spansion",
16215 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16216 .bustype = BUS_SPI,
16217 .manufacture_id = SPANSION_ID,
16218 .model_id = SPANSION_S25FL128,
16219 .total_size = 16384,
16220 .page_size = 256,
16221 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16222 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16223 .tested = TEST_OK_PREW,
16224 .probe = probe_spi_rdid,
16225 .probe_timing = TIMING_ZERO,
16226 .block_erasers =
16227 {
16228 {
16229 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
16230 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
16231 * effect on the memory contents, but sets a flag in the SR.
16232 .eraseblocks = {
16233 {4 * 1024, 32},
16234 {64 * 1024, 254} // inaccessible
16235 },
16236 .block_erase = spi_block_erase_20,
16237 }, { */
16238 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
16239 .eraseblocks = {
16240 {8 * 1024, 16},
16241 {64 * 1024, 254} // inaccessible
16242 },
16243 .block_erase = spi_block_erase_40,
16244 }, { */
16245 .eraseblocks = { { 64 * 1024, 256} },
16246 .block_erase = spi_block_erase_d8,
16247 }, {
16248 .eraseblocks = { { 16384 * 1024, 1} },
16249 .block_erase = spi_block_erase_60,
16250 }, {
16251 .eraseblocks = { { 16384 * 1024, 1} },
16252 .block_erase = spi_block_erase_c7,
16253 }
16254 },
16255 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16256 .unlock = spi_disable_blockprotect_bp2_srwd,
16257 .write = spi_chip_write_256, /* Multi I/O supported */
16258 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16259 .voltage = {2700, 3600},
16260 },
16261
16262 {
16263 .vendor = "Spansion",
16264 .name = "S25FL129P......1", /* uniform 256 kB sectors */
16265 .bustype = BUS_SPI,
16266 .manufacture_id = SPANSION_ID,
16267 .model_id = SPANSION_S25FL128,
16268 .total_size = 16384,
16269 .page_size = 256,
16270 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16271 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16272 .tested = TEST_UNTESTED,
16273 .probe = probe_spi_rdid,
16274 .probe_timing = TIMING_ZERO,
16275 .block_erasers =
16276 {
16277 {
16278 .eraseblocks = { {256 * 1024, 64} },
16279 .block_erase = spi_block_erase_d8,
16280 }, {
16281 .eraseblocks = { { 16384 * 1024, 1} },
16282 .block_erase = spi_block_erase_60,
16283 }, {
16284 .eraseblocks = { { 16384 * 1024, 1} },
16285 .block_erase = spi_block_erase_c7,
16286 }
16287 },
16288 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16289 .unlock = spi_disable_blockprotect_bp2_srwd,
16290 .write = spi_chip_write_256, /* Multi I/O supported */
16291 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16292 .voltage = {2700, 3600},
16293 },
16294
16295 {
16296 .vendor = "Spansion",
16297 .name = "S25FL132K",
16298 .bustype = BUS_SPI,
16299 .manufacture_id = SPANSION_ID,
16300 .model_id = SPANSION_S25FL132K,
16301 .total_size = 4096,
16302 .page_size = 256,
16303 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16304 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16305 .tested = TEST_UNTESTED,
16306 .probe = probe_spi_rdid,
16307 .probe_timing = TIMING_ZERO,
16308 .block_erasers =
16309 {
16310 {
16311 .eraseblocks = { {4 * 1024, 1024} },
16312 .block_erase = spi_block_erase_20,
16313 }, {
16314 .eraseblocks = { {64 * 1024, 64} },
16315 .block_erase = spi_block_erase_d8,
16316 }, {
16317 .eraseblocks = { { 4096 * 1024, 1} },
16318 .block_erase = spi_block_erase_60,
16319 }, {
16320 .eraseblocks = { { 4096 * 1024, 1} },
16321 .block_erase = spi_block_erase_c7,
16322 }
16323 },
16324 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16325 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16326 .write = spi_chip_write_256,
16327 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16328 .voltage = {2700, 3600},
16329 },
16330
16331 {
16332 .vendor = "Spansion",
16333 .name = "S25FL164K",
16334 .bustype = BUS_SPI,
16335 .manufacture_id = SPANSION_ID,
16336 .model_id = SPANSION_S25FL164K,
16337 .total_size = 8192,
16338 .page_size = 256,
16339 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16340 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16341 .tested = TEST_OK_PREW,
16342 .probe = probe_spi_rdid,
16343 .probe_timing = TIMING_ZERO,
16344 .block_erasers =
16345 {
16346 {
16347 .eraseblocks = { {4 * 1024, 2048} },
16348 .block_erase = spi_block_erase_20,
16349 }, {
16350 .eraseblocks = { {64 * 1024, 128} },
16351 .block_erase = spi_block_erase_d8,
16352 }, {
16353 .eraseblocks = { { 8192 * 1024, 1} },
16354 .block_erase = spi_block_erase_60,
16355 }, {
16356 .eraseblocks = { { 8192 * 1024, 1} },
16357 .block_erase = spi_block_erase_c7,
16358 }
16359 },
16360 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16361 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16362 .write = spi_chip_write_256,
16363 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16364 .voltage = {2700, 3600},
16365 },
16366
16367 {
16368 .vendor = "Spansion",
16369 .name = "S25FL204K",
16370 .bustype = BUS_SPI,
16371 .manufacture_id = SPANSION_ID,
16372 .model_id = SPANSION_S25FL204,
16373 .total_size = 512,
16374 .page_size = 256,
16375 .feature_bits = FEATURE_WRSR_WREN,
16376 .tested = TEST_OK_PR,
16377 .probe = probe_spi_rdid,
16378 .probe_timing = TIMING_ZERO,
16379 .block_erasers =
16380 {
16381 {
16382 .eraseblocks = { {4 * 1024, 128} },
16383 .block_erase = spi_block_erase_20,
16384 }, {
16385 .eraseblocks = { {64 * 1024, 8} },
16386 .block_erase = spi_block_erase_d8,
16387 }, {
16388 .eraseblocks = { { 512 * 1024, 1} },
16389 .block_erase = spi_block_erase_60,
16390 }, {
16391 .eraseblocks = { { 512 * 1024, 1} },
16392 .block_erase = spi_block_erase_c7,
16393 }
16394 },
16395 .printlock = spi_prettyprint_status_register_bp3_srwd,
16396 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16397 .write = spi_chip_write_256,
16398 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16399 .voltage = {2700, 3600},
16400 },
16401
16402 {
16403 .vendor = "Spansion",
16404 .name = "S25FL208K",
16405 .bustype = BUS_SPI,
16406 .manufacture_id = SPANSION_ID,
16407 .model_id = SPANSION_S25FL208,
16408 .total_size = 1024,
16409 .page_size = 256,
16410 .feature_bits = FEATURE_WRSR_WREN,
16411 .tested = TEST_OK_PREW,
16412 .probe = probe_spi_rdid,
16413 .probe_timing = TIMING_ZERO,
16414 .block_erasers =
16415 {
16416 {
16417 .eraseblocks = { {4 * 1024, 256} },
16418 .block_erase = spi_block_erase_20,
16419 }, {
16420 .eraseblocks = { {64 * 1024, 16} },
16421 .block_erase = spi_block_erase_d8,
16422 }, {
16423 .eraseblocks = { { 1024 * 1024, 1} },
16424 .block_erase = spi_block_erase_60,
16425 }, {
16426 .eraseblocks = { { 1024 * 1024, 1} },
16427 .block_erase = spi_block_erase_c7,
16428 }
16429 },
16430 .printlock = spi_prettyprint_status_register_bp3_srwd,
16431 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16432 .write = spi_chip_write_256,
16433 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16434 .voltage = {2700, 3600},
16435 },
16436
16437 {
16438 .vendor = "Spansion",
16439 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16440 .bustype = BUS_SPI,
16441 .manufacture_id = SPANSION_ID,
16442 .model_id = SPANSION_S25FL256,
16443 .total_size = 32768,
16444 .page_size = 256,
16445 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16446 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_EAR7,
16447 .tested = TEST_OK_PREW,
16448 .probe = probe_spi_rdid,
16449 .probe_timing = TIMING_ZERO,
16450 .block_erasers =
16451 {
16452 {
16453 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16454 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16455 * have no effect on the memory contents, but sets a flag in the SR.
16456 .eraseblocks = {
16457 {4 * 1024, 32},
16458 {64 * 1024, 254} // inaccessible
16459 },
16460 .block_erase = spi_block_erase_20,
16461 }, { */
16462 .eraseblocks = { { 64 * 1024, 512} },
16463 .block_erase = spi_block_erase_dc,
16464 }, {
16465 .eraseblocks = { { 64 * 1024, 512} },
16466 .block_erase = spi_block_erase_d8,
16467 }, {
16468 .eraseblocks = { { 32768 * 1024, 1} },
16469 .block_erase = spi_block_erase_60,
16470 }, {
16471 .eraseblocks = { { 32768 * 1024, 1} },
16472 .block_erase = spi_block_erase_c7,
16473 }
16474 },
16475 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16476 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16477 .write = spi_chip_write_256, /* Multi I/O supported */
16478 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16479 .voltage = {2700, 3600},
16480 .wrea_override = 0x17,
16481 },
16482
16483 {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016484 .vendor = "Spansion",
16485 .name = "S25FL512S",
16486 .bustype = BUS_SPI,
16487 .manufacture_id = SPANSION_ID,
16488 .model_id = SPANSION_S25FL512,
16489 .total_size = 65536, /* 512 Mb (=> 64 MB)) */
16490 .page_size = 256,
16491 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16492 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_NATIVE,
16493 .tested = TEST_OK_PREW,
16494 .probe = probe_spi_rdid,
16495 .probe_timing = TIMING_ZERO,
16496 .block_erasers =
16497 {
16498 {
16499 .eraseblocks = { { 256 * 1024, 256} },
16500 .block_erase = spi_block_erase_dc,
16501 }, {
16502 .eraseblocks = { { 65536 * 1024, 1} },
16503 .block_erase = spi_block_erase_60,
16504 }, {
16505 .eraseblocks = { { 65536 * 1024, 1} },
16506 .block_erase = spi_block_erase_c7,
16507 }
16508 },
16509 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16510 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16511 .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */
16512 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16513 .voltage = {2700, 3600},
16514 },
16515
16516 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016517 .vendor = "SyncMOS/MoselVitelic",
16518 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016519 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016520 .manufacture_id = SYNCMOS_MVC_ID,
16521 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016522 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016523 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016524 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016525 .tested = TEST_UNTESTED,
16526 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016527 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016528 .block_erasers =
16529 {
16530 {
16531 .eraseblocks = { {512, 256} },
16532 .block_erase = erase_sector_jedec,
16533 }, {
16534 .eraseblocks = { {128 * 1024, 1} },
16535 .block_erase = erase_chip_block_jedec,
16536 },
16537 },
Sean Nelson35727f72010-01-28 23:55:12 +000016538 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016539 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016540 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016541 },
16542
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016543 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016544 .vendor = "SyncMOS/MoselVitelic",
16545 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016546 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016547 .manufacture_id = SYNCMOS_MVC_ID,
16548 .model_id = SM_MVC_29C51001T,
16549 .total_size = 128,
16550 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016551 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016552 .tested = TEST_UNTESTED,
16553 .probe = probe_jedec,
16554 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16555 .block_erasers =
16556 {
16557 {
16558 .eraseblocks = { {512, 256} },
16559 .block_erase = erase_sector_jedec,
16560 }, {
16561 .eraseblocks = { {128 * 1024, 1} },
16562 .block_erase = erase_chip_block_jedec,
16563 },
16564 },
16565 .write = write_jedec_1,
16566 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016567 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016568 },
16569
16570 {
16571 .vendor = "SyncMOS/MoselVitelic",
16572 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016573 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016574 .manufacture_id = SYNCMOS_MVC_ID,
16575 .model_id = SM_MVC_29C51002B,
16576 .total_size = 256,
16577 .page_size = 512,
16578 .feature_bits = FEATURE_EITHER_RESET,
16579 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016580 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016581 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016582 .block_erasers =
16583 {
16584 {
16585 .eraseblocks = { {512, 512} },
16586 .block_erase = erase_sector_jedec,
16587 }, {
16588 .eraseblocks = { {256 * 1024, 1} },
16589 .block_erase = erase_chip_block_jedec,
16590 },
16591 },
Sean Nelson35727f72010-01-28 23:55:12 +000016592 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016593 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000016594 },
16595
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016596 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016597 .vendor = "SyncMOS/MoselVitelic",
16598 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016599 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016600 .manufacture_id = SYNCMOS_MVC_ID,
16601 .model_id = SM_MVC_29C51002T,
16602 .total_size = 256,
16603 .page_size = 512,
16604 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016605 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016606 .probe = probe_jedec,
16607 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16608 .block_erasers =
16609 {
16610 {
16611 .eraseblocks = { {512, 512} },
16612 .block_erase = erase_sector_jedec,
16613 }, {
16614 .eraseblocks = { {256 * 1024, 1} },
16615 .block_erase = erase_chip_block_jedec,
16616 },
16617 },
16618 .write = write_jedec_1,
16619 .read = read_memmapped,
16620 },
16621
16622 {
16623 .vendor = "SyncMOS/MoselVitelic",
16624 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016625 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016626 .manufacture_id = SYNCMOS_MVC_ID,
16627 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016628 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016629 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016630 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016631 .tested = TEST_UNTESTED,
16632 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016633 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000016634 .block_erasers =
16635 {
16636 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016637 .eraseblocks = { {1024, 512} },
16638 .block_erase = erase_sector_jedec,
16639 }, {
16640 .eraseblocks = { {512 * 1024, 1} },
16641 .block_erase = erase_chip_block_jedec,
16642 },
16643 },
16644 .write = write_jedec_1,
16645 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016646 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016647 },
16648
16649 {
16650 .vendor = "SyncMOS/MoselVitelic",
16651 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016652 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016653 .manufacture_id = SYNCMOS_MVC_ID,
16654 .model_id = SM_MVC_29C51004T,
16655 .total_size = 512,
16656 .page_size = 1024,
16657 .feature_bits = FEATURE_EITHER_RESET,
16658 .tested = TEST_UNTESTED,
16659 .probe = probe_jedec,
16660 .probe_timing = TIMING_ZERO,
16661 .block_erasers =
16662 {
16663 {
16664 .eraseblocks = { {1024, 512} },
16665 .block_erase = erase_sector_jedec,
16666 }, {
16667 .eraseblocks = { {512 * 1024, 1} },
16668 .block_erase = erase_chip_block_jedec,
16669 },
16670 },
16671 .write = write_jedec_1,
16672 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016673 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016674 },
16675
16676 {
16677 .vendor = "SyncMOS/MoselVitelic",
16678 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016679 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016680 .manufacture_id = SYNCMOS_MVC_ID,
16681 .model_id = SM_MVC_29C31004B,
16682 .total_size = 512,
16683 .page_size = 1024,
16684 .feature_bits = FEATURE_EITHER_RESET,
16685 .tested = TEST_UNTESTED,
16686 .probe = probe_jedec,
16687 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16688 .block_erasers =
16689 {
16690 {
16691 .eraseblocks = { {1024, 512} },
16692 .block_erase = erase_sector_jedec,
16693 }, {
16694 .eraseblocks = { {512 * 1024, 1} },
16695 .block_erase = erase_chip_block_jedec,
16696 },
16697 },
16698 .write = write_jedec_1,
16699 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016700 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016701 },
16702
16703 {
16704 .vendor = "SyncMOS/MoselVitelic",
16705 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016706 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016707 .manufacture_id = SYNCMOS_MVC_ID,
16708 .model_id = SM_MVC_29C31004T,
16709 .total_size = 512,
16710 .page_size = 1024,
16711 .feature_bits = FEATURE_EITHER_RESET,
16712 .tested = TEST_UNTESTED,
16713 .probe = probe_jedec,
16714 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16715 .block_erasers =
16716 {
16717 {
16718 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000016719 .block_erase = erase_sector_jedec,
16720 }, {
16721 .eraseblocks = { {512 * 1024, 1} },
16722 .block_erase = erase_chip_block_jedec,
16723 },
16724 },
Sean Nelson35727f72010-01-28 23:55:12 +000016725 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016726 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016727 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016728 },
16729
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016730 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016731 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016732 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016733 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016734 .manufacture_id = TI_OLD_ID,
16735 .model_id = TI_TMS29F002RB,
16736 .total_size = 256,
16737 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016738 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016739 .tested = TEST_UNTESTED,
16740 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016741 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016742 .block_erasers =
16743 {
16744 {
16745 .eraseblocks = {
16746 {16 * 1024, 1},
16747 {8 * 1024, 2},
16748 {32 * 1024, 1},
16749 {64 * 1024, 3},
16750 },
16751 .block_erase = erase_sector_jedec,
16752 }, {
16753 .eraseblocks = { {256 * 1024, 1} },
16754 .block_erase = erase_chip_block_jedec,
16755 },
16756 },
Sean Nelson35727f72010-01-28 23:55:12 +000016757 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016758 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016759 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016760 },
16761
16762 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016763 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016764 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016765 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016766 .manufacture_id = TI_OLD_ID,
16767 .model_id = TI_TMS29F002RT,
16768 .total_size = 256,
16769 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016770 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016771 .tested = TEST_UNTESTED,
16772 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016773 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016774 .block_erasers =
16775 {
16776 {
16777 .eraseblocks = {
16778 {64 * 1024, 3},
16779 {32 * 1024, 1},
16780 {8 * 1024, 2},
16781 {16 * 1024, 1},
16782 },
16783 .block_erase = erase_sector_jedec,
16784 }, {
16785 .eraseblocks = { {256 * 1024, 1} },
16786 .block_erase = erase_chip_block_jedec,
16787 },
16788 },
Sean Nelson35727f72010-01-28 23:55:12 +000016789 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016790 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016791 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016792 },
16793
16794 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016795 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016796 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016797 .bustype = BUS_SPI,
16798 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016799 .model_id = WINBOND_NEX_W25P16,
16800 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016801 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016802 .feature_bits = FEATURE_WRSR_WREN,
16803 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016804 .probe = probe_spi_rdid,
16805 .probe_timing = TIMING_ZERO,
16806 .block_erasers =
16807 {
16808 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016809 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016810 .block_erase = spi_block_erase_d8,
16811 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016812 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016813 .block_erase = spi_block_erase_c7,
16814 }
16815 },
16816 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16817 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016818 .write = spi_chip_write_256,
16819 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016820 .voltage = {2700, 3600},
16821 },
16822
16823 {
16824 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016825 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016826 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016827 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016828 .model_id = WINBOND_NEX_W25P32,
16829 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016830 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016831 .feature_bits = FEATURE_WRSR_WREN,
16832 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016833 .probe = probe_spi_rdid,
16834 .probe_timing = TIMING_ZERO,
16835 .block_erasers =
16836 {
16837 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016838 .eraseblocks = { {64 * 1024, 64} },
16839 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016840 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016841 .eraseblocks = { {4096 * 1024, 1} },
16842 .block_erase = spi_block_erase_c7,
16843 }
16844 },
16845 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16846 .unlock = spi_disable_blockprotect,
16847 .write = spi_chip_write_256,
16848 .read = spi_chip_read, /* Fast read (0x0B) supported */
16849 .voltage = {2700, 3600},
16850 },
16851
16852 {
16853 .vendor = "Winbond",
16854 .name = "W25P80",
16855 .bustype = BUS_SPI,
16856 .manufacture_id = WINBOND_NEX_ID,
16857 .model_id = WINBOND_NEX_W25P80,
16858 .total_size = 1024,
16859 .page_size = 256,
16860 .feature_bits = FEATURE_WRSR_WREN,
16861 .tested = TEST_UNTESTED,
16862 .probe = probe_spi_rdid,
16863 .probe_timing = TIMING_ZERO,
16864 .block_erasers =
16865 {
16866 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000016867 .eraseblocks = { {64 * 1024, 16} },
16868 .block_erase = spi_block_erase_d8,
16869 }, {
16870 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000016871 .block_erase = spi_block_erase_c7,
16872 }
16873 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016874 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016875 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016876 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016877 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016878 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000016879 },
16880
16881 {
16882 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016883 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016884 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016885 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016886 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016887 .total_size = 16384,
16888 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016889 /* supports SFDP */
16890 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000016891 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016892 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016893 .probe = probe_spi_rdid,
16894 .probe_timing = TIMING_ZERO,
16895 .block_erasers =
16896 {
16897 {
16898 .eraseblocks = { {4 * 1024, 4096} },
16899 .block_erase = spi_block_erase_20,
16900 }, {
16901 .eraseblocks = { {32 * 1024, 512} },
16902 .block_erase = spi_block_erase_52,
16903 }, {
16904 .eraseblocks = { {64 * 1024, 256} },
16905 .block_erase = spi_block_erase_d8,
16906 }, {
16907 .eraseblocks = { {16 * 1024 * 1024, 1} },
16908 .block_erase = spi_block_erase_60,
16909 }, {
16910 .eraseblocks = { {16 * 1024 * 1024, 1} },
16911 .block_erase = spi_block_erase_c7,
16912 }
16913 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016914 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000016915 .unlock = spi_disable_blockprotect,
16916 .write = spi_chip_write_256,
16917 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016918 .voltage = {2700, 3600},
16919 },
16920
16921 {
16922 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020016923 .name = "W25Q128.V..M",
16924 .bustype = BUS_SPI,
16925 .manufacture_id = WINBOND_NEX_ID,
16926 .model_id = WINBOND_NEX_W25Q128_V_M,
16927 .total_size = 16384,
16928 .page_size = 256,
16929 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16930 .tested = TEST_OK_PREW,
16931 .probe = probe_spi_rdid,
16932 .probe_timing = TIMING_ZERO,
16933 .block_erasers =
16934 {
16935 {
16936 .eraseblocks = { {4 * 1024, 4096} },
16937 .block_erase = spi_block_erase_20,
16938 }, {
16939 .eraseblocks = { {32 * 1024, 512} },
16940 .block_erase = spi_block_erase_52,
16941 }, {
16942 .eraseblocks = { {64 * 1024, 256} },
16943 .block_erase = spi_block_erase_d8,
16944 }, {
16945 .eraseblocks = { {16 * 1024 * 1024, 1} },
16946 .block_erase = spi_block_erase_60,
16947 }, {
16948 .eraseblocks = { {16 * 1024 * 1024, 1} },
16949 .block_erase = spi_block_erase_c7,
16950 }
16951 },
Alan Greena1fc01d2019-09-23 17:12:44 +100016952 .printlock = spi_prettyprint_status_register_plain,
Patrick Rudolph34323492018-10-04 14:59:40 +020016953 .unlock = spi_disable_blockprotect,
16954 .write = spi_chip_write_256,
16955 .read = spi_chip_read,
16956 .voltage = {2700, 3600},
16957 },
16958
16959 {
16960 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016961 .name = "W25Q128.W",
16962 .bustype = BUS_SPI,
16963 .manufacture_id = WINBOND_NEX_ID,
16964 .model_id = WINBOND_NEX_W25Q128_W,
16965 .total_size = 16384,
16966 .page_size = 256,
16967 /* supports SFDP */
16968 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16969 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16970 .tested = TEST_OK_PREW,
16971 .probe = probe_spi_rdid,
16972 .probe_timing = TIMING_ZERO,
16973 .block_erasers =
16974 {
16975 {
16976 .eraseblocks = { {4 * 1024, 4096} },
16977 .block_erase = spi_block_erase_20,
16978 }, {
16979 .eraseblocks = { {32 * 1024, 512} },
16980 .block_erase = spi_block_erase_52,
16981 }, {
16982 .eraseblocks = { {64 * 1024, 256} },
16983 .block_erase = spi_block_erase_d8,
16984 }, {
16985 .eraseblocks = { {16 * 1024 * 1024, 1} },
16986 .block_erase = spi_block_erase_60,
16987 }, {
16988 .eraseblocks = { {16 * 1024 * 1024, 1} },
16989 .block_erase = spi_block_erase_c7,
16990 }
16991 },
16992 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16993 .unlock = spi_disable_blockprotect,
16994 .write = spi_chip_write_256,
16995 .read = spi_chip_read,
16996 .voltage = {1650, 1950},
16997 },
16998
16999 {
17000 .vendor = "Winbond",
Peichao Wang1a119492019-11-11 15:26:41 +080017001 .name = "W25Q128.JW.DTR",
17002 .bustype = BUS_SPI,
17003 .manufacture_id = WINBOND_NEX_ID,
17004 .model_id = WINBOND_NEX_W25Q128_DTR,
17005 .total_size = 16384,
17006 .page_size = 256,
17007 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17008 .tested = TEST_OK_PREW,
17009 .probe = probe_spi_rdid,
17010 .probe_timing = TIMING_ZERO,
17011 .block_erasers =
17012 {
17013 {
17014 .eraseblocks = { {4 * 1024, 4096} },
17015 .block_erase = spi_block_erase_20,
17016 }, {
17017 .eraseblocks = { {32 * 1024, 512} },
17018 .block_erase = spi_block_erase_52,
17019 }, {
17020 .eraseblocks = { {64 * 1024, 256} },
17021 .block_erase = spi_block_erase_d8,
17022 }, {
17023 .eraseblocks = { {16 * 1024 * 1024, 1} },
17024 .block_erase = spi_block_erase_60,
17025 }, {
17026 .eraseblocks = { {16 * 1024 * 1024, 1} },
17027 .block_erase = spi_block_erase_c7,
17028 }
17029 },
17030 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17031 .unlock = spi_disable_blockprotect,
17032 .write = spi_chip_write_256,
17033 .read = spi_chip_read,
17034 .voltage = {1650, 1950},
17035 },
17036
17037 {
17038 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017039 .name = "W25Q16.V",
17040 .bustype = BUS_SPI,
17041 .manufacture_id = WINBOND_NEX_ID,
17042 .model_id = WINBOND_NEX_W25Q16_V,
17043 .total_size = 2048,
17044 .page_size = 256,
17045 /* supports SFDP */
17046 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17047 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17048 .tested = TEST_OK_PREW,
17049 .probe = probe_spi_rdid,
17050 .probe_timing = TIMING_ZERO,
17051 .block_erasers =
17052 {
17053 {
17054 .eraseblocks = { {4 * 1024, 512} },
17055 .block_erase = spi_block_erase_20,
17056 }, {
17057 .eraseblocks = { {32 * 1024, 64} },
17058 .block_erase = spi_block_erase_52,
17059 }, {
17060 .eraseblocks = { {64 * 1024, 32} },
17061 .block_erase = spi_block_erase_d8,
17062 }, {
17063 .eraseblocks = { {2 * 1024 * 1024, 1} },
17064 .block_erase = spi_block_erase_60,
17065 }, {
17066 .eraseblocks = { {2 * 1024 * 1024, 1} },
17067 .block_erase = spi_block_erase_c7,
17068 }
17069 },
17070 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17071 .unlock = spi_disable_blockprotect,
17072 .write = spi_chip_write_256,
17073 .read = spi_chip_read,
17074 .voltage = {2700, 3600},
17075 },
17076
17077 {
17078 .vendor = "Winbond",
17079 .name = "W25Q16.W",
17080 .bustype = BUS_SPI,
17081 .manufacture_id = WINBOND_NEX_ID,
17082 .model_id = WINBOND_NEX_W25Q16_W,
17083 .total_size = 2048,
17084 .page_size = 256,
17085 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17086 /* QPI enable 0x38, disable 0xFF */
17087 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17088 .tested = TEST_UNTESTED,
17089 .probe = probe_spi_rdid,
17090 .probe_timing = TIMING_ZERO,
17091 .block_erasers =
17092 {
17093 {
17094 .eraseblocks = { {4 * 1024, 512} },
17095 .block_erase = spi_block_erase_20,
17096 }, {
17097 .eraseblocks = { {32 * 1024, 64} },
17098 .block_erase = spi_block_erase_52,
17099 }, {
17100 .eraseblocks = { {64 * 1024, 32} },
17101 .block_erase = spi_block_erase_d8,
17102 }, {
17103 .eraseblocks = { {2 * 1024 * 1024, 1} },
17104 .block_erase = spi_block_erase_60,
17105 }, {
17106 .eraseblocks = { {2 * 1024 * 1024, 1} },
17107 .block_erase = spi_block_erase_c7,
17108 }
17109 },
17110 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17111 .unlock = spi_disable_blockprotect,
17112 .write = spi_chip_write_256,
17113 .read = spi_chip_read,
17114 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17115 },
17116
17117 {
17118 .vendor = "Winbond",
17119 .name = "W25Q20.W",
17120 .bustype = BUS_SPI,
17121 .manufacture_id = WINBOND_NEX_ID,
17122 .model_id = WINBOND_NEX_W25Q20_W,
17123 .total_size = 256,
17124 .page_size = 256,
17125 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17126 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17127 .tested = TEST_UNTESTED,
17128 .probe = probe_spi_rdid,
17129 .probe_timing = TIMING_ZERO,
17130 .block_erasers =
17131 {
17132 {
17133 .eraseblocks = { {4 * 1024, 64} },
17134 .block_erase = spi_block_erase_20,
17135 }, {
17136 .eraseblocks = { {32 * 1024, 8} },
17137 .block_erase = spi_block_erase_52,
17138 }, {
17139 .eraseblocks = { {64 * 1024, 4} },
17140 .block_erase = spi_block_erase_d8,
17141 }, {
17142 .eraseblocks = { {256 * 1024, 1} },
17143 .block_erase = spi_block_erase_60,
17144 }, {
17145 .eraseblocks = { {256 * 1024, 1} },
17146 .block_erase = spi_block_erase_c7,
17147 }
17148 },
17149 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17150 .unlock = spi_disable_blockprotect,
17151 .write = spi_chip_write_256,
17152 .read = spi_chip_read,
17153 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17154 },
17155
17156 {
17157 .vendor = "Winbond",
Boris Baykovaa6c3742016-06-11 18:29:01 +020017158 .name = "W25Q256.V",
17159 .bustype = BUS_SPI,
17160 .manufacture_id = WINBOND_NEX_ID,
17161 .model_id = WINBOND_NEX_W25Q256_V,
17162 .total_size = 32768,
17163 .page_size = 256,
17164 /* supports SFDP */
17165 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17166 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
Nico Huberaac81422017-11-10 22:54:13 +010017167 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
17168 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
Angel Pons3130cbd2018-09-30 19:32:30 +020017169 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017170 .probe = probe_spi_rdid,
17171 .probe_timing = TIMING_ZERO,
17172 .block_erasers =
17173 {
17174 {
17175 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020017176 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017177 }, {
17178 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020017179 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017180 }, {
17181 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020017182 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017183 }, {
17184 .eraseblocks = { {32 * 1024 * 1024, 1} },
17185 .block_erase = spi_block_erase_60,
17186 }, {
17187 .eraseblocks = { {32 * 1024 * 1024, 1} },
17188 .block_erase = spi_block_erase_c7,
17189 }
17190 },
17191 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17192 .unlock = spi_disable_blockprotect,
17193 .write = spi_chip_write_256,
17194 .read = spi_chip_read,
17195 .voltage = {2700, 3600},
17196 },
17197
17198 {
17199 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000017200 .name = "W25Q256JV_M",
17201 .bustype = BUS_SPI,
17202 .manufacture_id = WINBOND_NEX_ID,
17203 .model_id = WINBOND_NEX_W25Q256JV_M,
17204 .total_size = 32768,
17205 .page_size = 256,
17206 /* supports SFDP */
17207 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17208 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
17209 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17210 .tested = TEST_OK_PREW,
17211 .probe = probe_spi_rdid,
17212 .probe_timing = TIMING_ZERO,
17213 .block_erasers =
17214 {
17215 {
17216 .eraseblocks = { {4 * 1024, 8192} },
17217 .block_erase = spi_block_erase_21,
17218 }, {
17219 .eraseblocks = { {4 * 1024, 8192} },
17220 .block_erase = spi_block_erase_20,
17221 }, {
17222 .eraseblocks = { {32 * 1024, 1024} },
17223 .block_erase = spi_block_erase_52,
17224 }, {
17225 .eraseblocks = { {64 * 1024, 512} },
17226 .block_erase = spi_block_erase_dc,
17227 }, {
17228 .eraseblocks = { {64 * 1024, 512} },
17229 .block_erase = spi_block_erase_d8,
17230 }, {
17231 .eraseblocks = { {32 * 1024 * 1024, 1} },
17232 .block_erase = spi_block_erase_60,
17233 }, {
17234 .eraseblocks = { {32 * 1024 * 1024, 1} },
17235 .block_erase = spi_block_erase_c7,
17236 }
17237 },
17238 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17239 .unlock = spi_disable_blockprotect,
17240 .write = spi_chip_write_256,
17241 .read = spi_chip_read,
17242 .voltage = {2700, 3600},
17243 },
17244
17245 {
17246 .vendor = "Winbond",
el-coderon01209852020-04-29 12:12:53 +020017247 .name = "W25Q256.W",
17248 .bustype = BUS_SPI,
17249 .manufacture_id = WINBOND_NEX_ID,
17250 .model_id = WINBOND_NEX_W25Q256_W,
17251 .total_size = 32768,
17252 .page_size = 256,
17253 /* supports SFDP */
17254 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17255 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
17256 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
17257 .tested = TEST_OK_PREW,
17258 .probe = probe_spi_rdid,
17259 .probe_timing = TIMING_ZERO,
17260 .block_erasers =
17261 {
17262 {
17263 .eraseblocks = { {4 * 1024, 8192} },
17264 .block_erase = spi_block_erase_20,
17265 }, {
17266 .eraseblocks = { {32 * 1024, 1024} },
17267 .block_erase = spi_block_erase_52,
17268 }, {
17269 .eraseblocks = { {64 * 1024, 512} },
17270 .block_erase = spi_block_erase_d8,
17271 }, {
17272 .eraseblocks = { {32 * 1024 * 1024, 1} },
17273 .block_erase = spi_block_erase_60,
17274 }, {
17275 .eraseblocks = { {32 * 1024 * 1024, 1} },
17276 .block_erase = spi_block_erase_c7,
17277 }
17278 },
17279 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17280 .unlock = spi_disable_blockprotect,
17281 .write = spi_chip_write_256,
17282 .read = spi_chip_read,
17283 .voltage = {1650, 1950},
17284 },
17285
17286 {
17287 .vendor = "Winbond",
David Hendricks31532602020-08-16 17:14:56 -070017288 .name = "W25Q256JW_DTR",
17289 .bustype = BUS_SPI,
17290 .manufacture_id = WINBOND_NEX_ID,
17291 .model_id = WINBOND_NEX_W25Q256_DTR,
17292 .total_size = 32768,
17293 .page_size = 256,
17294 /* supports SFDP */
17295 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17296 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
17297 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17298 .tested = TEST_OK_PREW,
17299 .probe = probe_spi_rdid,
17300 .probe_timing = TIMING_ZERO,
17301 .block_erasers =
17302 {
17303 {
17304 .eraseblocks = { {4 * 1024, 8192} },
17305 .block_erase = spi_block_erase_21,
17306 }, {
17307 .eraseblocks = { {4 * 1024, 8192} },
17308 .block_erase = spi_block_erase_20,
17309 }, {
17310 .eraseblocks = { {32 * 1024, 1024} },
17311 .block_erase = spi_block_erase_52,
17312 }, {
17313 .eraseblocks = { {64 * 1024, 512} },
17314 .block_erase = spi_block_erase_dc,
17315 }, {
17316 .eraseblocks = { {64 * 1024, 512} },
17317 .block_erase = spi_block_erase_d8,
17318 }, {
17319 .eraseblocks = { {32 * 1024 * 1024, 1} },
17320 .block_erase = spi_block_erase_60,
17321 }, {
17322 .eraseblocks = { {32 * 1024 * 1024, 1} },
17323 .block_erase = spi_block_erase_c7,
17324 }
17325 },
17326 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17327 .unlock = spi_disable_blockprotect,
17328 .write = spi_chip_write_256,
17329 .read = spi_chip_read,
17330 .voltage = {1700, 1950},
17331 },
17332
17333 {
17334 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017335 .name = "W25Q32.V",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017336 .bustype = BUS_SPI,
17337 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017338 .model_id = WINBOND_NEX_W25Q32_V,
17339 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017340 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017341 /* supports SFDP */
17342 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017343 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017344 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017345 .probe = probe_spi_rdid,
17346 .probe_timing = TIMING_ZERO,
17347 .block_erasers =
17348 {
17349 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017350 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017351 .block_erase = spi_block_erase_20,
17352 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017353 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017354 .block_erase = spi_block_erase_52,
17355 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017356 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017357 .block_erase = spi_block_erase_d8,
17358 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017359 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017360 .block_erase = spi_block_erase_60,
17361 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017362 .eraseblocks = { {4 * 1024 * 1024, 1} },
17363 .block_erase = spi_block_erase_c7,
17364 }
17365 },
17366 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17367 .unlock = spi_disable_blockprotect,
17368 .write = spi_chip_write_256,
17369 .read = spi_chip_read,
17370 .voltage = {2700, 3600},
17371 },
17372
17373 {
17374 .vendor = "Winbond",
17375 .name = "W25Q32.W",
17376 .bustype = BUS_SPI,
17377 .manufacture_id = WINBOND_NEX_ID,
17378 .model_id = WINBOND_NEX_W25Q32_W,
17379 .total_size = 4096,
17380 .page_size = 256,
17381 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17382 /* QPI enable 0x38, disable 0xFF */
17383 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17384 .tested = TEST_OK_PREW,
17385 .probe = probe_spi_rdid,
17386 .probe_timing = TIMING_ZERO,
17387 .block_erasers =
17388 {
17389 {
17390 .eraseblocks = { {4 * 1024, 1024} },
17391 .block_erase = spi_block_erase_20,
17392 }, {
17393 .eraseblocks = { {32 * 1024, 128} },
17394 .block_erase = spi_block_erase_52,
17395 }, {
17396 .eraseblocks = { {64 * 1024, 64} },
17397 .block_erase = spi_block_erase_d8,
17398 }, {
17399 .eraseblocks = { {4 * 1024 * 1024, 1} },
17400 .block_erase = spi_block_erase_60,
17401 }, {
17402 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017403 .block_erase = spi_block_erase_c7,
17404 }
17405 },
17406 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17407 .unlock = spi_disable_blockprotect,
17408 .write = spi_chip_write_256,
17409 .read = spi_chip_read,
17410 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17411 },
17412
17413 {
17414 .vendor = "Winbond",
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100017415 .name = "W25Q32JW...M",
17416 .bustype = BUS_SPI,
17417 .manufacture_id = WINBOND_NEX_ID,
17418 .model_id = WINBOND_NEX_W25Q32JW_M,
17419 .total_size = 4096,
17420 .page_size = 256,
17421 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17422 .tested = TEST_OK_PREW,
17423 .probe = probe_spi_rdid,
17424 .probe_timing = TIMING_ZERO,
17425 .block_erasers =
17426 {
17427 {
17428 .eraseblocks = { {4 * 1024, 1024} },
17429 .block_erase = spi_block_erase_20,
17430 }, {
17431 .eraseblocks = { {32 * 1024, 128} },
17432 .block_erase = spi_block_erase_52,
17433 }, {
17434 .eraseblocks = { {64 * 1024, 64} },
17435 .block_erase = spi_block_erase_d8,
17436 }, {
17437 .eraseblocks = { {4 * 1024 * 1024, 1} },
17438 .block_erase = spi_block_erase_60,
17439 }, {
17440 .eraseblocks = { {4 * 1024 * 1024, 1} },
17441 .block_erase = spi_block_erase_c7,
17442 }
17443 },
17444 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
17445 .unlock = spi_disable_blockprotect_bp2_srwd,
17446 .write = spi_chip_write_256,
17447 .read = spi_chip_read,
17448 .voltage = {1700, 1950},
17449 },
17450
17451 {
17452 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017453 .name = "W25Q40.V",
17454 .bustype = BUS_SPI,
17455 .manufacture_id = WINBOND_NEX_ID,
17456 .model_id = WINBOND_NEX_W25Q40_V,
17457 .total_size = 512,
17458 .page_size = 256,
17459 /* supports SFDP */
17460 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17461 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17462 .tested = TEST_OK_PREW,
17463 .probe = probe_spi_rdid,
17464 .probe_timing = TIMING_ZERO,
17465 .block_erasers =
17466 {
17467 {
17468 .eraseblocks = { {4 * 1024, 128} },
17469 .block_erase = spi_block_erase_20,
17470 }, {
17471 .eraseblocks = { {32 * 1024, 16} },
17472 .block_erase = spi_block_erase_52,
17473 }, {
17474 .eraseblocks = { {64 * 1024, 8} },
17475 .block_erase = spi_block_erase_d8,
17476 }, {
17477 .eraseblocks = { {512 * 1024, 1} },
17478 .block_erase = spi_block_erase_60,
17479 }, {
17480 .eraseblocks = { {512 * 1024, 1} },
17481 .block_erase = spi_block_erase_c7,
17482 }
17483 },
17484 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17485 .unlock = spi_disable_blockprotect,
17486 .write = spi_chip_write_256, /* Multi I/O supported */
17487 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17488 .voltage = {2700, 3600},
17489 },
17490
17491 {
17492 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020017493 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017494 .bustype = BUS_SPI,
17495 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020017496 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017497 .total_size = 512,
17498 .page_size = 256,
17499 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17500 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020017501 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017502 .probe = probe_spi_rdid,
17503 .probe_timing = TIMING_ZERO,
17504 .block_erasers =
17505 {
17506 {
17507 .eraseblocks = { {4 * 1024, 128} },
17508 .block_erase = spi_block_erase_20,
17509 }, {
17510 .eraseblocks = { {32 * 1024, 16} },
17511 .block_erase = spi_block_erase_52,
17512 }, {
17513 .eraseblocks = { {64 * 1024, 8} },
17514 .block_erase = spi_block_erase_d8,
17515 }, {
17516 .eraseblocks = { {512 * 1024, 1} },
17517 .block_erase = spi_block_erase_60,
17518 }, {
17519 .eraseblocks = { {512 * 1024, 1} },
17520 .block_erase = spi_block_erase_c7,
17521 }
17522 },
17523 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17524 .unlock = spi_disable_blockprotect,
17525 .write = spi_chip_write_256,
17526 .read = spi_chip_read,
17527 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17528 },
17529
17530 {
17531 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020017532 .name = "W25Q40EW",
17533 .bustype = BUS_SPI,
17534 .manufacture_id = WINBOND_NEX_ID,
17535 .model_id = WINBOND_NEX_W25Q40EW,
17536 .total_size = 512,
17537 .page_size = 256,
17538 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17539 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green07b8a172019-09-23 16:47:05 +100017540 .tested = TEST_OK_PREW,
Nico Huber25683572018-03-30 13:50:13 +020017541 .probe = probe_spi_rdid,
17542 .probe_timing = TIMING_ZERO,
17543 .block_erasers =
17544 {
17545 {
17546 .eraseblocks = { {4 * 1024, 128} },
17547 .block_erase = spi_block_erase_20,
17548 }, {
17549 .eraseblocks = { {32 * 1024, 16} },
17550 .block_erase = spi_block_erase_52,
17551 }, {
17552 .eraseblocks = { {64 * 1024, 8} },
17553 .block_erase = spi_block_erase_d8,
17554 }, {
17555 .eraseblocks = { {512 * 1024, 1} },
17556 .block_erase = spi_block_erase_60,
17557 }, {
17558 .eraseblocks = { {512 * 1024, 1} },
17559 .block_erase = spi_block_erase_c7,
17560 }
17561 },
17562 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17563 .unlock = spi_disable_blockprotect,
17564 .write = spi_chip_write_256,
17565 .read = spi_chip_read,
17566 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
17567 },
17568
Stanislav Sedovf5775442018-03-07 14:16:51 -080017569 {
17570 .vendor = "Winbond",
Joel Stanley55439612019-07-27 19:25:35 +093017571 .name = "W25Q512JV",
17572 .bustype = BUS_SPI,
17573 .manufacture_id = WINBOND_NEX_ID,
17574 .model_id = WINBOND_NEX_W25Q512JV,
17575 .total_size = 64 * 1024,
17576 .page_size = 256,
17577 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17578 .tested = TEST_OK_PREW,
17579 .probe = probe_spi_rdid,
17580 .probe_timing = TIMING_ZERO,
17581 .block_erasers =
17582 {
17583 {
17584 .eraseblocks = { {4 * 1024, 16384} },
17585 .block_erase = spi_block_erase_21,
17586 }, {
17587 .eraseblocks = { {4 * 1024, 16384} },
17588 .block_erase = spi_block_erase_20,
17589 }, {
17590 .eraseblocks = { {32 * 1024, 2048} },
17591 .block_erase = spi_block_erase_52,
17592 }, {
17593 .eraseblocks = { {64 * 1024, 1024} },
17594 .block_erase = spi_block_erase_dc,
17595 }, {
17596 .eraseblocks = { {64 * 1024, 1024} },
17597 .block_erase = spi_block_erase_d8,
17598 }, {
17599 .eraseblocks = { {64 * 1024 * 1024, 1} },
17600 .block_erase = spi_block_erase_60,
17601 }, {
17602 .eraseblocks = { {64 * 1024 * 1024, 1} },
17603 .block_erase = spi_block_erase_c7,
17604 }
17605 },
17606 .printlock = spi_prettyprint_status_register_plain,
17607 .unlock = spi_disable_blockprotect,
17608 .write = spi_chip_write_256,
17609 .read = spi_chip_read,
17610 .voltage = {2700, 3600},
17611 },
17612
17613 {
17614 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017615 .name = "W25Q64.V",
Stanislav Sedovf5775442018-03-07 14:16:51 -080017616 .bustype = BUS_SPI,
17617 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017618 .model_id = WINBOND_NEX_W25Q64_V,
17619 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080017620 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017621 /* supports SFDP */
17622 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Stanislav Sedovf5775442018-03-07 14:16:51 -080017623 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17624 .tested = TEST_OK_PREW,
17625 .probe = probe_spi_rdid,
17626 .probe_timing = TIMING_ZERO,
17627 .block_erasers =
17628 {
17629 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017630 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017631 .block_erase = spi_block_erase_20,
17632 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017633 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017634 .block_erase = spi_block_erase_52,
17635 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017636 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017637 .block_erase = spi_block_erase_d8,
17638 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017639 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017640 .block_erase = spi_block_erase_60,
17641 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017642 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017643 .block_erase = spi_block_erase_c7,
17644 }
17645 },
17646 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17647 .unlock = spi_disable_blockprotect,
17648 .write = spi_chip_write_256,
17649 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017650 .voltage = {2700, 3600},
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017651 },
17652
17653 {
17654 .vendor = "Winbond",
Simon Buhrow236a38c2021-11-05 11:48:30 +010017655 .name = "W25Q64JV",
17656 .bustype = BUS_SPI,
17657 .manufacture_id = WINBOND_NEX_ID,
17658 .model_id = WINBOND_NEX_W25Q64JV,
17659 .total_size = 8192,
17660 .page_size = 256,
17661 /* supports SFDP */
17662 /* QPI enable 0x38 */
17663 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17664 .tested = TEST_OK_PREW,
17665 .probe = probe_spi_rdid,
17666 .probe_timing = TIMING_ZERO,
17667 .block_erasers =
17668 {
17669 {
17670 .eraseblocks = { {4 * 1024, 2048} },
17671 .block_erase = spi_block_erase_20,
17672 }, {
17673 .eraseblocks = { {32 * 1024, 256} },
17674 .block_erase = spi_block_erase_52,
17675 }, {
17676 .eraseblocks = { {64 * 1024, 128} },
17677 .block_erase = spi_block_erase_d8,
17678 }, {
17679 .eraseblocks = { {8 * 1024 * 1024, 1} },
17680 .block_erase = spi_block_erase_60,
17681 }, {
17682 .eraseblocks = { {8 * 1024 * 1024, 1} },
17683 .block_erase = spi_block_erase_c7,
17684 }
17685 },
17686 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
17687 .unlock = spi_disable_blockprotect_bp2_srwd,
17688 .write = spi_chip_write_256,
17689 .read = spi_chip_read,
17690 .voltage = {2700, 3600},
17691 },
17692
17693 {
17694 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017695 .name = "W25Q64.W",
17696 .bustype = BUS_SPI,
17697 .manufacture_id = WINBOND_NEX_ID,
17698 .model_id = WINBOND_NEX_W25Q64_W,
17699 .total_size = 8192,
17700 .page_size = 256,
17701 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17702 /* QPI enable 0x38, disable 0xFF */
17703 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000017704 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017705 .probe = probe_spi_rdid,
17706 .probe_timing = TIMING_ZERO,
17707 .block_erasers =
17708 {
17709 {
17710 .eraseblocks = { {4 * 1024, 2048} },
17711 .block_erase = spi_block_erase_20,
17712 }, {
17713 .eraseblocks = { {32 * 1024, 256} },
17714 .block_erase = spi_block_erase_52,
17715 }, {
17716 .eraseblocks = { {64 * 1024, 128} },
17717 .block_erase = spi_block_erase_d8,
17718 }, {
17719 .eraseblocks = { {8 * 1024 * 1024, 1} },
17720 .block_erase = spi_block_erase_60,
17721 }, {
17722 .eraseblocks = { {8 * 1024 * 1024, 1} },
17723 .block_erase = spi_block_erase_c7,
17724 }
17725 },
17726 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17727 .unlock = spi_disable_blockprotect,
17728 .write = spi_chip_write_256,
17729 .read = spi_chip_read,
17730 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000017731 },
17732
17733 {
17734 .vendor = "Winbond",
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100017735 .name = "W25Q64JW...M",
Scott Chao1bbc5012020-04-08 22:10:50 +080017736 .bustype = BUS_SPI,
17737 .manufacture_id = WINBOND_NEX_ID,
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100017738 .model_id = WINBOND_NEX_W25Q64JW_M,
Scott Chao1bbc5012020-04-08 22:10:50 +080017739 .total_size = 8192,
17740 .page_size = 256,
17741 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17742 /* QPI enable 0x38, disable 0xFF */
17743 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17744 .tested = TEST_OK_PREW,
17745 .probe = probe_spi_rdid,
17746 .probe_timing = TIMING_ZERO,
17747 .block_erasers =
17748 {
17749 {
17750 .eraseblocks = { {4 * 1024, 2048} },
17751 .block_erase = spi_block_erase_20,
17752 }, {
17753 .eraseblocks = { {32 * 1024, 256} },
17754 .block_erase = spi_block_erase_52,
17755 }, {
17756 .eraseblocks = { {64 * 1024, 128} },
17757 .block_erase = spi_block_erase_d8,
17758 }, {
17759 .eraseblocks = { {8 * 1024 * 1024, 1} },
17760 .block_erase = spi_block_erase_60,
17761 }, {
17762 .eraseblocks = { {8 * 1024 * 1024, 1} },
17763 .block_erase = spi_block_erase_c7,
17764 }
17765 },
17766 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17767 .unlock = spi_disable_blockprotect,
17768 .write = spi_chip_write_256,
17769 .read = spi_chip_read,
17770 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17771 },
17772
17773 {
17774 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017775 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020017776 .bustype = BUS_SPI,
17777 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017778 .model_id = WINBOND_NEX_W25Q80_V,
17779 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020017780 .page_size = 256,
17781 /* supports SFDP */
17782 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100017783 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks48729d32017-12-08 14:44:07 -080017784 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020017785 .probe = probe_spi_rdid,
17786 .probe_timing = TIMING_ZERO,
17787 .block_erasers =
17788 {
17789 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017790 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017791 .block_erase = spi_block_erase_20,
17792 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017793 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017794 .block_erase = spi_block_erase_52,
17795 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017796 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017797 .block_erase = spi_block_erase_d8,
17798 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017799 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017800 .block_erase = spi_block_erase_60,
17801 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017802 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017803 .block_erase = spi_block_erase_c7,
17804 }
17805 },
17806 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17807 .unlock = spi_disable_blockprotect,
17808 .write = spi_chip_write_256,
17809 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017810 .voltage = {2700, 3600},
17811 },
17812
17813 {
17814 .vendor = "Winbond",
17815 .name = "W25Q80BW",
17816 .bustype = BUS_SPI,
17817 .manufacture_id = WINBOND_NEX_ID,
17818 .model_id = WINBOND_NEX_W25Q80BW,
17819 .total_size = 1024,
17820 .page_size = 256,
17821 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17822 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17823 .tested = TEST_OK_PREW,
17824 .probe = probe_spi_rdid,
17825 .probe_timing = TIMING_ZERO,
17826 .block_erasers =
17827 {
17828 {
17829 .eraseblocks = { {4 * 1024, 256} },
17830 .block_erase = spi_block_erase_20,
17831 }, {
17832 .eraseblocks = { {32 * 1024, 32} },
17833 .block_erase = spi_block_erase_52,
17834 }, {
17835 .eraseblocks = { {64 * 1024, 16} },
17836 .block_erase = spi_block_erase_d8,
17837 }, {
17838 .eraseblocks = { {1 * 1024 * 1024, 1} },
17839 .block_erase = spi_block_erase_60,
17840 }, {
17841 .eraseblocks = { {1 * 1024 * 1024, 1} },
17842 .block_erase = spi_block_erase_c7,
17843 }
17844 },
17845 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17846 .unlock = spi_disable_blockprotect,
17847 .write = spi_chip_write_256,
17848 .read = spi_chip_read,
17849 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17850 },
17851
17852 {
17853 .vendor = "Winbond",
17854 .name = "W25Q80EW",
17855 .bustype = BUS_SPI,
17856 .manufacture_id = WINBOND_NEX_ID,
17857 .model_id = WINBOND_NEX_W25Q80EW,
17858 .total_size = 1024,
17859 .page_size = 256,
17860 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17861 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17862 .tested = TEST_OK_PREW,
17863 .probe = probe_spi_rdid,
17864 .probe_timing = TIMING_ZERO,
17865 .block_erasers =
17866 {
17867 {
17868 .eraseblocks = { {4 * 1024, 256} },
17869 .block_erase = spi_block_erase_20,
17870 }, {
17871 .eraseblocks = { {32 * 1024, 32} },
17872 .block_erase = spi_block_erase_52,
17873 }, {
17874 .eraseblocks = { {64 * 1024, 16} },
17875 .block_erase = spi_block_erase_d8,
17876 }, {
17877 .eraseblocks = { {1 * 1024 * 1024, 1} },
17878 .block_erase = spi_block_erase_60,
17879 }, {
17880 .eraseblocks = { {1 * 1024 * 1024, 1} },
17881 .block_erase = spi_block_erase_c7,
17882 }
17883 },
17884 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17885 .unlock = spi_disable_blockprotect,
17886 .write = spi_chip_write_256,
17887 .read = spi_chip_read,
17888 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nico Huber70eed9f2017-04-24 22:19:27 +020017889 },
17890
17891 {
17892 .vendor = "Winbond",
Jacob Appelbaumebbdc022019-09-02 09:10:43 -040017893 .name = "W25X05",
17894 .bustype = BUS_SPI,
17895 .manufacture_id = WINBOND_NEX_ID,
17896 .model_id = WINBOND_NEX_W25X05,
17897 .total_size = 64,
17898 .page_size = 256,
17899 .feature_bits = FEATURE_WRSR_WREN,
17900 .tested = TEST_OK_PREW,
17901 .probe = probe_spi_rdid,
17902 .probe_timing = TIMING_ZERO,
17903 .block_erasers =
17904 {
17905 {
17906 .eraseblocks = { {4 * 1024, 16} },
17907 .block_erase = spi_block_erase_20,
17908 }, {
17909 .eraseblocks = { {32 * 1024, 2} },
17910 .block_erase = spi_block_erase_52,
17911 }, {
17912 .eraseblocks = { {64 * 1024, 1} },
17913 .block_erase = spi_block_erase_d8,
17914 }
17915 },
17916 .printlock = spi_prettyprint_status_register_plain,
17917 .unlock = spi_disable_blockprotect,
17918 .write = spi_chip_write_256,
17919 .read = spi_chip_read,
17920 .voltage = {2300, 3600},
17921 },
17922
17923 {
17924 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017925 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017926 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017927 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017928 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017929 .total_size = 128,
17930 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017931 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000017932 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017933 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017934 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017935 .block_erasers =
17936 {
17937 {
17938 .eraseblocks = { {4 * 1024, 32} },
17939 .block_erase = spi_block_erase_20,
17940 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017941 .eraseblocks = { {64 * 1024, 2} },
17942 .block_erase = spi_block_erase_d8,
17943 }, {
17944 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017945 .block_erase = spi_block_erase_c7,
17946 }
17947 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017948 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017949 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000017950 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017951 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017952 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017953 },
17954
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017955 {
17956 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017957 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017958 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000017959 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017960 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000017961 .total_size = 2048,
17962 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017963 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000017964 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000017965 .probe = probe_spi_rdid,
17966 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017967 .block_erasers =
17968 {
17969 {
17970 .eraseblocks = { {4 * 1024, 512} },
17971 .block_erase = spi_block_erase_20,
17972 }, {
17973 .eraseblocks = { {32 * 1024, 64} },
17974 .block_erase = spi_block_erase_52,
17975 }, {
17976 .eraseblocks = { {64 * 1024, 32} },
17977 .block_erase = spi_block_erase_d8,
17978 }, {
17979 .eraseblocks = { {2 * 1024 * 1024, 1} },
17980 .block_erase = spi_block_erase_60,
17981 }, {
17982 .eraseblocks = { {2 * 1024 * 1024, 1} },
17983 .block_erase = spi_block_erase_c7,
17984 }
17985 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017986 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017987 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000017988 .write = spi_chip_write_256,
17989 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017990 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000017991 },
17992
17993 {
17994 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017995 .name = "W25X20",
17996 .bustype = BUS_SPI,
17997 .manufacture_id = WINBOND_NEX_ID,
17998 .model_id = WINBOND_NEX_W25X20,
17999 .total_size = 256,
18000 .page_size = 256,
18001 .feature_bits = FEATURE_WRSR_WREN,
18002 .tested = TEST_OK_PREW,
18003 .probe = probe_spi_rdid,
18004 .probe_timing = TIMING_ZERO,
18005 .block_erasers =
18006 {
18007 {
18008 .eraseblocks = { {4 * 1024, 64} },
18009 .block_erase = spi_block_erase_20,
18010 }, {
18011 .eraseblocks = { {64 * 1024, 4} },
18012 .block_erase = spi_block_erase_d8,
18013 }, {
18014 .eraseblocks = { {256 * 1024, 1} },
18015 .block_erase = spi_block_erase_c7,
18016 }
18017 },
18018 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18019 .unlock = spi_disable_blockprotect,
18020 .write = spi_chip_write_256,
18021 .read = spi_chip_read,
18022 .voltage = {2700, 3600},
18023 },
18024
18025 {
18026 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018027 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018028 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000018029 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018030 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000018031 .total_size = 4096,
18032 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000018033 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000018034 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000018035 .probe = probe_spi_rdid,
18036 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018037 .block_erasers =
18038 {
18039 {
18040 .eraseblocks = { {4 * 1024, 1024} },
18041 .block_erase = spi_block_erase_20,
18042 }, {
18043 .eraseblocks = { {32 * 1024, 128} },
18044 .block_erase = spi_block_erase_52,
18045 }, {
18046 .eraseblocks = { {64 * 1024, 64} },
18047 .block_erase = spi_block_erase_d8,
18048 }, {
18049 .eraseblocks = { {4 * 1024 * 1024, 1} },
18050 .block_erase = spi_block_erase_60,
18051 }, {
18052 .eraseblocks = { {4 * 1024 * 1024, 1} },
18053 .block_erase = spi_block_erase_c7,
18054 }
18055 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018056 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018057 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000018058 .write = spi_chip_write_256,
18059 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018060 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000018061 },
18062
18063 {
18064 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018065 .name = "W25X40",
18066 .bustype = BUS_SPI,
18067 .manufacture_id = WINBOND_NEX_ID,
18068 .model_id = WINBOND_NEX_W25X40,
18069 .total_size = 512,
18070 .page_size = 256,
18071 .feature_bits = FEATURE_WRSR_WREN,
18072 .tested = TEST_OK_PREW,
18073 .probe = probe_spi_rdid,
18074 .probe_timing = TIMING_ZERO,
18075 .block_erasers =
18076 {
18077 {
18078 .eraseblocks = { {4 * 1024, 128} },
18079 .block_erase = spi_block_erase_20,
18080 }, {
18081 .eraseblocks = { {64 * 1024, 8} },
18082 .block_erase = spi_block_erase_d8,
18083 }, {
18084 .eraseblocks = { {512 * 1024, 1} },
18085 .block_erase = spi_block_erase_c7,
18086 }
18087 },
18088 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18089 .unlock = spi_disable_blockprotect,
18090 .write = spi_chip_write_256,
18091 .read = spi_chip_read,
18092 .voltage = {2700, 3600},
18093 },
18094
18095 {
18096 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018097 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018098 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000018099 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018100 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000018101 .total_size = 8192,
18102 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000018103 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000018104 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000018105 .probe = probe_spi_rdid,
18106 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018107 .block_erasers =
18108 {
18109 {
18110 .eraseblocks = { {4 * 1024, 2048} },
18111 .block_erase = spi_block_erase_20,
18112 }, {
18113 .eraseblocks = { {32 * 1024, 256} },
18114 .block_erase = spi_block_erase_52,
18115 }, {
18116 .eraseblocks = { {64 * 1024, 128} },
18117 .block_erase = spi_block_erase_d8,
18118 }, {
18119 .eraseblocks = { {8 * 1024 * 1024, 1} },
18120 .block_erase = spi_block_erase_60,
18121 }, {
18122 .eraseblocks = { {8 * 1024 * 1024, 1} },
18123 .block_erase = spi_block_erase_c7,
18124 }
18125 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018126 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018127 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000018128 .write = spi_chip_write_256,
18129 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018130 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000018131 },
18132
18133 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100018134 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018135 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100018136 .bustype = BUS_SPI,
18137 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018138 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100018139 .total_size = 1024,
18140 .page_size = 256,
18141 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018142 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100018143 .probe = probe_spi_rdid,
18144 .probe_timing = TIMING_ZERO,
18145 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080018146 {
18147 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018148 .eraseblocks = { {4 * 1024, 256} },
18149 .block_erase = spi_block_erase_20,
18150 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080018151 .eraseblocks = { {64 * 1024, 16} },
18152 .block_erase = spi_block_erase_d8,
18153 }, {
18154 .eraseblocks = { {1024 * 1024, 1} },
18155 .block_erase = spi_block_erase_c7,
18156 }
18157 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100018158 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18159 .unlock = spi_disable_blockprotect,
18160 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018161 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100018162 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080018163 },
18164
Alan Greenf29ea362019-06-27 17:14:02 +100018165 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
18166 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000018167 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018168 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018169 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018170 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018171 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018172 .total_size = 128,
18173 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018174 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000018175 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018176 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018177 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018178 .block_erasers =
18179 {
18180 {
18181 .eraseblocks = { {128 * 1024, 1} },
18182 .block_erase = erase_chip_block_jedec,
18183 }
18184 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018185 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018186 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000018187 },
18188
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018189 {
18190 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018191 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
18192 .bustype = BUS_PARALLEL,
18193 .manufacture_id = WINBOND_ID,
18194 .model_id = WINBOND_W29C010,
18195 .total_size = 128,
18196 .page_size = 128,
18197 .feature_bits = FEATURE_LONG_RESET,
18198 .tested = TEST_OK_PREW,
18199 .probe = probe_w29ee011,
18200 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
18201 .block_erasers =
18202 {
18203 {
18204 .eraseblocks = { {128 * 1024, 1} },
18205 .block_erase = erase_chip_block_jedec,
18206 }
18207 },
18208 .write = write_jedec,
18209 .read = read_memmapped,
18210 },
18211
18212 {
18213 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018214 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018215 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018216 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018217 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018218 .total_size = 256,
18219 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018220 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018221 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018222 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018223 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018224 .block_erasers =
18225 {
18226 {
18227 .eraseblocks = { {256 * 1024, 1} },
18228 .block_erase = erase_chip_block_jedec,
18229 }
18230 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018231 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018233 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018234 },
18235
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018236 {
18237 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018238 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018239 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018240 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018241 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018242 .total_size = 512,
18243 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000018244 .feature_bits = FEATURE_LONG_RESET,
18245 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018246 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000018247 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018248 .block_erasers =
18249 {
18250 {
18251 .eraseblocks = { {512 * 1024, 1} },
18252 .block_erase = erase_chip_block_jedec,
18253 }
18254 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018255 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018256 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018257 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018258 },
18259
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018260 {
18261 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018262 .name = "W29C512A/W29EE512",
18263 .bustype = BUS_PARALLEL,
18264 .manufacture_id = WINBOND_ID,
18265 .model_id = WINBOND_W29C512A,
18266 .total_size = 64,
18267 .page_size = 128,
18268 .feature_bits = FEATURE_LONG_RESET,
18269 .tested = TEST_OK_PREW,
18270 .probe = probe_jedec,
18271 .probe_timing = 10,
18272 .block_erasers =
18273 {
18274 {
18275 .eraseblocks = { {64 * 1024, 1} },
18276 .block_erase = erase_chip_block_jedec,
18277 }
18278 },
18279 .write = write_jedec,
18280 .read = read_memmapped,
18281 .voltage = {4500, 5500},
18282 },
18283
18284 {
18285 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018286 .name = "W29GL032CB",
18287 .bustype = BUS_PARALLEL,
18288 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18289 .model_id = WINBOND_W29GL032CB,
18290 .total_size = 4096,
18291 .page_size = 128 * 1024, /* actual page size is 16 */
18292 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18293 .tested = TEST_UNTESTED,
18294 .probe = probe_jedec_29gl,
18295 .probe_timing = TIMING_ZERO,
18296 .block_erasers =
18297 {
18298 {
18299 .eraseblocks = {
18300 {8 * 1024, 8},
18301 {64 * 1024, 63},
18302 },
18303 .block_erase = erase_sector_jedec,
18304 }, {
18305 .eraseblocks = { {4 * 1024 * 1024, 1} },
18306 .block_erase = erase_chip_block_jedec,
18307 },
18308 },
18309 .write = write_jedec_1,
18310 .read = read_memmapped,
18311 .voltage = {2700, 3600},
18312 },
18313
18314 {
18315 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018316 .name = "W29GL032CH/L",
18317 .bustype = BUS_PARALLEL,
18318 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18319 .model_id = WINBOND_W29GL032CHL,
18320 .total_size = 4096,
18321 .page_size = 128 * 1024, /* actual page size is 16 */
18322 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18323 .tested = TEST_UNTESTED,
18324 .probe = probe_jedec_29gl,
18325 .probe_timing = TIMING_ZERO,
18326 .block_erasers =
18327 {
18328 {
18329 .eraseblocks = { {64 * 1024, 64} },
18330 .block_erase = erase_sector_jedec,
18331 }, {
18332 .eraseblocks = { {4 * 1024 * 1024, 1} },
18333 .block_erase = erase_chip_block_jedec,
18334 },
18335 },
18336 .write = write_jedec_1,
18337 .read = read_memmapped,
18338 .voltage = {2700, 3600},
18339 },
18340
18341 {
18342 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018343 .name = "W29GL032CT",
18344 .bustype = BUS_PARALLEL,
18345 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18346 .model_id = WINBOND_W29GL032CT,
18347 .total_size = 4096,
18348 .page_size = 128 * 1024, /* actual page size is 16 */
18349 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18350 .tested = TEST_UNTESTED,
18351 .probe = probe_jedec_29gl,
18352 .probe_timing = TIMING_ZERO,
18353 .block_erasers =
18354 {
18355 {
18356 .eraseblocks = {
18357 {64 * 1024, 63},
18358 {8 * 1024, 8},
18359 },
18360 .block_erase = erase_sector_jedec,
18361 }, {
18362 .eraseblocks = { {4 * 1024 * 1024, 1} },
18363 .block_erase = erase_chip_block_jedec,
18364 },
18365 },
18366 .write = write_jedec_1,
18367 .read = read_memmapped,
18368 .voltage = {2700, 3600},
18369 },
18370
18371 {
18372 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018373 .name = "W29GL064CB",
18374 .bustype = BUS_PARALLEL,
18375 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18376 .model_id = WINBOND_W29GL064CB,
18377 .total_size = 8192,
18378 .page_size = 128 * 1024, /* actual page size is 16 */
18379 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18380 .tested = TEST_UNTESTED,
18381 .probe = probe_jedec_29gl,
18382 .probe_timing = TIMING_ZERO,
18383 .block_erasers =
18384 {
18385 {
18386 .eraseblocks = {
18387 {8 * 1024, 8},
18388 {64 * 1024, 127},
18389 },
18390 .block_erase = erase_sector_jedec,
18391 }, {
18392 .eraseblocks = { {8 * 1024 * 1024, 1} },
18393 .block_erase = erase_chip_block_jedec,
18394 },
18395 },
18396 .write = write_jedec_1,
18397 .read = read_memmapped,
18398 .voltage = {2700, 3600},
18399 },
18400
18401 {
18402 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018403 .name = "W29GL064CH/L",
18404 .bustype = BUS_PARALLEL,
18405 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18406 .model_id = WINBOND_W29GL064CHL,
18407 .total_size = 8192,
18408 .page_size = 128 * 1024, /* actual page size is 16 */
18409 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18410 .tested = TEST_UNTESTED,
18411 .probe = probe_jedec_29gl,
18412 .probe_timing = TIMING_ZERO,
18413 .block_erasers =
18414 {
18415 {
18416 .eraseblocks = { {64 * 1024, 128} },
18417 .block_erase = erase_sector_jedec,
18418 }, {
18419 .eraseblocks = { {8 * 1024 * 1024, 1} },
18420 .block_erase = erase_chip_block_jedec,
18421 },
18422 },
18423 .write = write_jedec_1,
18424 .read = read_memmapped,
18425 .voltage = {2700, 3600},
18426 },
18427
18428 {
18429 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018430 .name = "W29GL064CT",
18431 .bustype = BUS_PARALLEL,
18432 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18433 .model_id = WINBOND_W29GL064CT,
18434 .total_size = 8192,
18435 .page_size = 128 * 1024, /* actual page size is 16 */
18436 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18437 .tested = TEST_UNTESTED,
18438 .probe = probe_jedec_29gl,
18439 .probe_timing = TIMING_ZERO,
18440 .block_erasers =
18441 {
18442 {
18443 .eraseblocks = {
18444 {64 * 1024, 127},
18445 {8 * 1024, 8},
18446 },
18447 .block_erase = erase_sector_jedec,
18448 }, {
18449 .eraseblocks = { {8 * 1024 * 1024, 1} },
18450 .block_erase = erase_chip_block_jedec,
18451 },
18452 },
18453 .write = write_jedec_1,
18454 .read = read_memmapped,
18455 .voltage = {2700, 3600},
18456 },
18457
18458 {
18459 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018460 .name = "W29GL128C",
18461 .bustype = BUS_PARALLEL,
18462 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18463 .model_id = WINBOND_W29GL128CHL,
18464 .total_size = 16384,
18465 .page_size = 128 * 1024, /* actual page size is 16 */
18466 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18467 .tested = TEST_UNTESTED,
18468 .probe = probe_jedec_29gl,
18469 .probe_timing = TIMING_ZERO,
18470 .block_erasers =
18471 {
18472 {
18473 .eraseblocks = { {128 * 1024, 128} },
18474 .block_erase = erase_sector_jedec,
18475 }, {
18476 .eraseblocks = { {16 * 1024 * 1024, 1} },
18477 .block_erase = erase_chip_block_jedec,
18478 },
18479 },
18480 .write = write_jedec_1,
18481 .read = read_memmapped,
18482 .voltage = {2700, 3600},
18483 },
18484
18485 {
18486 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000018487 .name = "W39F010",
18488 .bustype = BUS_PARALLEL,
18489 .manufacture_id = WINBOND_ID,
18490 .model_id = WINBOND_W39F010,
18491 .total_size = 128,
18492 .page_size = 4 * 1024,
18493 .feature_bits = FEATURE_EITHER_RESET,
18494 .tested = TEST_OK_PREW,
18495 .probe = probe_jedec,
18496 .probe_timing = 10,
18497 .block_erasers =
18498 {
18499 {
18500 .eraseblocks = { {4 * 1024, 32} },
18501 .block_erase = erase_block_jedec,
18502 }, {
18503 .eraseblocks = { {128 * 1024, 1} },
18504 .block_erase = erase_chip_block_jedec,
18505 }
18506 },
18507 .printlock = printlock_w39f010,
18508 .write = write_jedec_1,
18509 .read = read_memmapped,
18510 .voltage = {4500, 5500},
18511 },
18512
18513 {
18514 .vendor = "Winbond",
18515 .name = "W39L010",
18516 .bustype = BUS_PARALLEL,
18517 .manufacture_id = WINBOND_ID,
18518 .model_id = WINBOND_W39L010,
18519 .total_size = 128,
18520 .page_size = 4 * 1024,
18521 .feature_bits = FEATURE_EITHER_RESET,
18522 .tested = TEST_UNTESTED,
18523 .probe = probe_jedec,
18524 .probe_timing = 10,
18525 .block_erasers =
18526 {
18527 {
18528 .eraseblocks = { {4 * 1024, 32} },
18529 .block_erase = erase_block_jedec,
18530 }, {
18531 .eraseblocks = { {128 * 1024, 1} },
18532 .block_erase = erase_chip_block_jedec,
18533 }
18534 },
18535 .printlock = printlock_w39l010,
18536 .write = write_jedec_1,
18537 .read = read_memmapped,
18538 .voltage = {3000, 3600},
18539 },
18540
18541 {
18542 .vendor = "Winbond",
18543 .name = "W39L020",
18544 .bustype = BUS_PARALLEL,
18545 .manufacture_id = WINBOND_ID,
18546 .model_id = WINBOND_W39L020,
18547 .total_size = 256,
18548 .page_size = 4 * 1024,
18549 .feature_bits = FEATURE_EITHER_RESET,
18550 .tested = TEST_UNTESTED,
18551 .probe = probe_jedec,
18552 .probe_timing = 10,
18553 .block_erasers =
18554 {
18555 {
18556 .eraseblocks = { {4 * 1024, 64} },
18557 .block_erase = erase_block_jedec,
18558 }, {
18559 .eraseblocks = { {64 * 1024, 4} },
18560 .block_erase = erase_sector_jedec,
18561 }, {
18562 .eraseblocks = { {256 * 1024, 1} },
18563 .block_erase = erase_chip_block_jedec,
18564 }
18565 },
18566 .printlock = printlock_w39l020,
18567 .write = write_jedec_1,
18568 .read = read_memmapped,
18569 .voltage = {3000, 3600},
18570 },
18571
18572 {
18573 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000018574 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018575 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000018576 .manufacture_id = WINBOND_ID,
18577 .model_id = WINBOND_W39L040,
18578 .total_size = 512,
18579 .page_size = 64 * 1024,
18580 .feature_bits = FEATURE_EITHER_RESET,
18581 .tested = TEST_OK_PR,
18582 .probe = probe_jedec,
18583 .probe_timing = 10,
18584 .block_erasers =
18585 {
18586 {
18587 .eraseblocks = { {4 * 1024, 128} },
18588 .block_erase = erase_block_jedec,
18589 }, {
18590 .eraseblocks = { {64 * 1024, 8} },
18591 .block_erase = erase_sector_jedec,
18592 }, {
18593 .eraseblocks = { {512 * 1024, 1} },
18594 .block_erase = erase_chip_block_jedec,
18595 }
18596 },
18597 .printlock = printlock_w39l040,
18598 .write = write_jedec_1,
18599 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018600 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000018601 },
18602
18603 {
18604 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018605 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018606 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018607 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018608 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018609 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018610 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018611 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000018612 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018613 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000018614 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018615 .block_erasers =
18616 {
18617 {
18618 .eraseblocks = { {64 * 1024, 8} },
18619 .block_erase = erase_sector_jedec,
18620 }, {
18621 .eraseblocks = { {512 * 1024, 1} },
18622 .block_erase = erase_chip_block_jedec,
18623 }
18624 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018625 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000018626 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018627 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018628 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018629 },
18630
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018631 {
18632 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018633 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018634 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018635 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018636 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018637 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018638 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018639 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000018640 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018641 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000018642 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018643 .block_erasers =
18644 {
18645 {
18646 .eraseblocks = { {64 * 1024, 8} },
18647 .block_erase = erase_sector_jedec,
18648 }, {
18649 .eraseblocks = { {512 * 1024, 1} },
18650 .block_erase = erase_chip_block_jedec,
18651 }
18652 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018653 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000018654 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018655 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018656 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018657 },
18658
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018659 {
18660 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018661 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018662 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018663 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018664 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018665 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018666 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018667 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000018668 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000018669 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018670 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018671 .block_erasers =
18672 {
18673 {
18674 .eraseblocks = { {64 * 1024, 8} },
18675 .block_erase = erase_sector_jedec,
18676 }, {
18677 .eraseblocks = { {512 * 1024, 1} },
18678 .block_erase = erase_chip_block_jedec,
18679 }
18680 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000018681 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000018682 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018683 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018684 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018685 },
18686
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018687 {
18688 .vendor = "Winbond",
18689 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018690 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018691 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018692 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018693 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018694 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000018695 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000018696 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018697 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000018698 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018699 .block_erasers =
18700 {
18701 {
18702 .eraseblocks = { {4 * 1024, 128} },
18703 .block_erase = erase_block_jedec,
18704 }, {
18705 .eraseblocks = { {64 * 1024, 8} },
18706 .block_erase = erase_sector_jedec,
18707 }, {
18708 .eraseblocks = { {512 * 1024, 1} },
18709 .block_erase = erase_chip_block_jedec,
18710 }
18711 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018712 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000018713 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000018714 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018715 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018716 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018717 },
18718
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018719 {
18720 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018721 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018722 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018723 .manufacture_id = WINBOND_ID,
18724 .model_id = WINBOND_W39V040B,
18725 .total_size = 512,
18726 .page_size = 64 * 1024,
18727 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000018728 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018729 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000018730 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018731 .block_erasers =
18732 {
18733 {
18734 .eraseblocks = { {64 * 1024, 8} },
18735 .block_erase = erase_sector_jedec,
18736 }, {
18737 .eraseblocks = { {512 * 1024, 1} },
18738 .block_erase = erase_chip_block_jedec,
18739 }
18740 },
18741 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000018742 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018743 .write = write_jedec_1,
18744 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018745 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018746 },
18747
18748 {
18749 .vendor = "Winbond",
18750 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018751 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018752 .manufacture_id = WINBOND_ID,
18753 .model_id = WINBOND_W39V040C,
18754 .total_size = 512,
18755 .page_size = 64 * 1024,
18756 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000018757 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018758 .probe = probe_jedec,
18759 .probe_timing = 10,
18760 .block_erasers =
18761 {
18762 {
18763 .eraseblocks = { {64 * 1024, 8} },
18764 .block_erase = erase_sector_jedec,
18765 }, {
18766 .eraseblocks = { {512 * 1024, 1} },
18767 .block_erase = erase_chip_block_jedec,
18768 }
18769 },
18770 .printlock = printlock_w39v040fc,
18771 .write = write_jedec_1,
18772 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018773 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018774 },
18775
18776 {
18777 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018778 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018779 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018780 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018781 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018782 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000018783 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018784 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000018785 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018786 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000018787 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018788 .block_erasers =
18789 {
18790 {
18791 .eraseblocks = { {64 * 1024, 16} },
18792 .block_erase = erase_sector_jedec,
18793 }, {
18794 .eraseblocks = { {1024 * 1024, 1} },
18795 .block_erase = erase_chip_block_jedec,
18796 }
18797 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018798 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000018799 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018800 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018801 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018802 },
18803
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018804 {
18805 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018806 .name = "W39V080FA",
18807 .bustype = BUS_FWH,
18808 .manufacture_id = WINBOND_ID,
18809 .model_id = WINBOND_W39V080FA,
18810 .total_size = 1024,
18811 .page_size = 64 * 1024,
18812 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
18813 .tested = TEST_OK_PREW,
18814 .probe = probe_jedec,
18815 .probe_timing = 10,
18816 .block_erasers =
18817 {
18818 {
18819 .eraseblocks = { {64 * 1024, 16} },
18820 .block_erase = erase_sector_jedec,
18821 }, {
18822 .eraseblocks = { {1024 * 1024, 1} },
18823 .block_erase = erase_chip_block_jedec,
18824 }
18825 },
18826 .printlock = printlock_w39v080fa,
18827 .unlock = unlock_regspace2_uniform_64k,
18828 .write = write_jedec_1,
18829 .read = read_memmapped,
18830 .voltage = {3000, 3600}, /* Also has 12V fast program */
18831 },
18832
18833 {
18834 .vendor = "Winbond",
18835 .name = "W39V080FA (dual mode)",
18836 .bustype = BUS_FWH,
18837 .manufacture_id = WINBOND_ID,
18838 .model_id = WINBOND_W39V080FA_DM,
18839 .total_size = 512,
18840 .page_size = 64 * 1024,
18841 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
18842 .tested = TEST_UNTESTED,
18843 .probe = probe_jedec,
18844 .probe_timing = 10,
18845 .block_erasers =
18846 {
18847 {
18848 .eraseblocks = { {64 * 1024, 8} },
18849 .block_erase = erase_sector_jedec,
18850 }, {
18851 .eraseblocks = { {512 * 1024, 1} },
18852 .block_erase = erase_chip_block_jedec,
18853 }
18854 },
18855 .printlock = printlock_w39v080fa_dual,
18856 .write = write_jedec_1,
18857 .read = read_memmapped,
18858 .voltage = {3000, 3600}, /* Also has 12V fast program */
18859 },
18860
18861 {
18862 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018863 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018864 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018865 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018866 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018867 .total_size = 256,
18868 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018869 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000018870 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018871 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018872 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018873 .block_erasers =
18874 {
18875 {
18876 .eraseblocks = {
18877 {128 * 1024, 1},
18878 {96 * 1024, 1},
18879 {8 * 1024, 2},
18880 {16 * 1024, 1},
18881 },
18882 .block_erase = erase_sector_jedec,
18883 }, {
18884 .eraseblocks = { {256 * 1024, 1} },
18885 .block_erase = erase_chip_block_jedec,
18886 }
18887 },
Sean Nelson35727f72010-01-28 23:55:12 +000018888 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018889 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018890 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018891 },
18892
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018893 {
18894 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018895 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018896 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018897 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018898 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018899 .total_size = 256,
18900 .page_size = 128,
18901 .feature_bits = FEATURE_EITHER_RESET,
18902 .tested = TEST_OK_PROBE,
18903 .probe = probe_jedec,
18904 .probe_timing = 10,
18905 .block_erasers =
18906 {
18907 {
18908 .eraseblocks = { {256 * 1024, 1} },
18909 .block_erase = erase_chip_block_jedec,
18910 }
18911 },
18912 .write = write_jedec_1,
18913 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018914 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018915 },
18916
18917 {
18918 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018919 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018920 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018921 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018922 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018923 .total_size = 256,
18924 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018925 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018926 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018927 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018928 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018929 .block_erasers =
18930 {
18931 {
18932 .eraseblocks = {
18933 {64 * 1024, 3},
18934 {32 * 1024, 1},
18935 {8 * 1024, 2},
18936 {16 * 1024, 1},
18937 },
18938 .block_erase = erase_sector_jedec,
18939 }, {
18940 .eraseblocks = { {256 * 1024, 1} },
18941 .block_erase = erase_chip_block_jedec,
18942 }
18943 },
Sean Nelson35727f72010-01-28 23:55:12 +000018944 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018945 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018946 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018947 },
18948
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018949 {
18950 .vendor = "Winbond",
18951 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018952 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018953 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018954 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018955 .total_size = 256,
18956 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018957 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000018958 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018959 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018960 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018961 .block_erasers =
18962 {
18963 {
18964 .eraseblocks = {
18965 {64 * 1024, 3},
18966 {32 * 1024, 1},
18967 {8 * 1024, 2},
18968 {16 * 1024, 1},
18969 },
18970 .block_erase = erase_sector_jedec,
18971 }, {
18972 .eraseblocks = { {256 * 1024, 1} },
18973 .block_erase = erase_chip_block_jedec,
18974 }
18975 },
Sean Nelson35727f72010-01-28 23:55:12 +000018976 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018977 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018978 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018979 },
18980
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018981 {
luke heef884232020-12-28 18:22:21 +080018982 .vendor = "XMC",
18983 .name = "XM25QH128C",
18984 .bustype = BUS_SPI,
18985 .manufacture_id = ST_ID,
18986 .model_id = XMC_XM25QH128C,
18987 .total_size = 16384,
18988 .page_size = 256,
18989 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
18990 .tested = TEST_UNTESTED,
18991 .probe = probe_spi_rdid,
18992 .probe_timing = TIMING_ZERO,
18993 .block_erasers =
18994 {
18995 {
18996 .eraseblocks = { {4 * 1024, 4096} },
18997 .block_erase = spi_block_erase_20,
18998 }, {
18999 .eraseblocks = { {32 * 1024, 512} },
19000 .block_erase = spi_block_erase_52,
19001 }, {
19002 .eraseblocks = { {64 * 1024, 256} },
19003 .block_erase = spi_block_erase_d8,
19004 }, {
19005 .eraseblocks = { {16 * 1024 * 1024, 1} },
19006 .block_erase = spi_block_erase_60,
19007 }, {
19008 .eraseblocks = { {16 * 1024 * 1024, 1} },
19009 .block_erase = spi_block_erase_c7,
19010 }
19011 },
19012 .printlock = spi_prettyprint_status_register_plain,
19013 .unlock = spi_disable_blockprotect,
19014 .write = spi_chip_write_256,
19015 .read = spi_chip_read,
19016 .voltage = {2700, 3600},
19017 },
19018
19019 {
19020 .vendor = "XMC",
19021 .name = "XM25QH256C",
19022 .bustype = BUS_SPI,
19023 .manufacture_id = ST_ID,
19024 .model_id = XMC_XM25QH256C,
19025 .total_size = 32768,
19026 .page_size = 256,
19027 /* supports SFDP */
19028 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
19029 .tested = TEST_UNTESTED,
19030 .probe = probe_spi_rdid,
19031 .probe_timing = TIMING_ZERO,
19032 .block_erasers =
19033 {
19034 {
19035 .eraseblocks = { {4 * 1024, 8192} },
19036 .block_erase = spi_block_erase_21,
19037 }, {
19038 .eraseblocks = { {4 * 1024, 8192} },
19039 .block_erase = spi_block_erase_20,
19040 }, {
19041 .eraseblocks = { {32 * 1024, 1024} },
19042 .block_erase = spi_block_erase_52,
19043 }, {
19044 .eraseblocks = { {64 * 1024, 512} },
19045 .block_erase = spi_block_erase_dc,
19046 }, {
19047 .eraseblocks = { {64 * 1024, 512} },
19048 .block_erase = spi_block_erase_d8,
19049 }, {
19050 .eraseblocks = { {32 * 1024 * 1024, 1} },
19051 .block_erase = spi_block_erase_60,
19052 }, {
19053 .eraseblocks = { {32 * 1024 * 1024, 1} },
19054 .block_erase = spi_block_erase_c7,
19055 }
19056 },
19057 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19058 .unlock = spi_disable_blockprotect,
19059 .write = spi_chip_write_256,
19060 .read = spi_chip_read,
19061 .voltage = {2700, 3600},
19062 },
19063
19064 {
19065 .vendor = "XMC",
19066 .name = "XM25QH64C",
19067 .bustype = BUS_SPI,
19068 .manufacture_id = ST_ID,
19069 .model_id = XMC_XM25QH64C,
19070 .total_size = 8192,
19071 .page_size = 256,
19072 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19073 .tested = TEST_UNTESTED,
19074 .probe = probe_spi_rdid,
19075 .probe_timing = TIMING_ZERO,
19076 .block_erasers =
19077 {
19078 {
19079 .eraseblocks = { {4 * 1024, 2048} },
19080 .block_erase = spi_block_erase_20,
19081 }, {
19082 .eraseblocks = { {32 * 1024, 256} },
19083 .block_erase = spi_block_erase_52,
19084 }, {
19085 .eraseblocks = { {64 * 1024, 128} },
19086 .block_erase = spi_block_erase_d8,
19087 }, {
19088 .eraseblocks = { {8 * 1024 * 1024, 1} },
19089 .block_erase = spi_block_erase_60,
19090 }, {
19091 .eraseblocks = { {8 * 1024 * 1024, 1} },
19092 .block_erase = spi_block_erase_c7,
19093 }
19094 },
19095 .printlock = spi_prettyprint_status_register_plain,
19096 .unlock = spi_disable_blockprotect,
19097 .write = spi_chip_write_256,
19098 .read = spi_chip_read,
19099 .voltage = {2700, 3600},
19100 },
19101
19102 {
19103 .vendor = "XMC",
19104 .name = "XM25QU128C",
19105 .bustype = BUS_SPI,
19106 .manufacture_id = ST_ID,
19107 .model_id = XMC_XM25QU128C,
19108 .total_size = 16384,
19109 .page_size = 256,
19110 /* supports SFDP */
19111 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19112 .tested = TEST_UNTESTED,
19113 .probe = probe_spi_rdid,
19114 .probe_timing = TIMING_ZERO,
19115 .block_erasers =
19116 {
19117 {
19118 .eraseblocks = { {4 * 1024, 4096} },
19119 .block_erase = spi_block_erase_20,
19120 }, {
19121 .eraseblocks = { {32 * 1024, 512} },
19122 .block_erase = spi_block_erase_52,
19123 }, {
19124 .eraseblocks = { {64 * 1024, 256} },
19125 .block_erase = spi_block_erase_d8,
19126 }, {
19127 .eraseblocks = { {16 * 1024 * 1024, 1} },
19128 .block_erase = spi_block_erase_60,
19129 }, {
19130 .eraseblocks = { {16 * 1024 * 1024, 1} },
19131 .block_erase = spi_block_erase_c7,
19132 }
19133 },
19134 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19135 .unlock = spi_disable_blockprotect,
19136 .write = spi_chip_write_256,
19137 .read = spi_chip_read,
19138 .voltage = {1650, 1950},
19139 },
19140
19141 {
19142 .vendor = "XMC",
19143 .name = "XM25QU256C",
19144 .bustype = BUS_SPI,
19145 .manufacture_id = ST_ID,
19146 .model_id = XMC_XM25QU256C,
19147 .total_size = 32768,
19148 .page_size = 256,
19149 /* supports SFDP */
19150 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
19151 .tested = TEST_UNTESTED,
19152 .probe = probe_spi_rdid,
19153 .probe_timing = TIMING_ZERO,
19154 .block_erasers =
19155 {
19156 {
19157 .eraseblocks = { {4 * 1024, 8192} },
19158 .block_erase = spi_block_erase_21,
19159 }, {
19160 .eraseblocks = { {4 * 1024, 8192} },
19161 .block_erase = spi_block_erase_20,
19162 }, {
19163 .eraseblocks = { {32 * 1024, 1024} },
19164 .block_erase = spi_block_erase_52,
19165 }, {
19166 .eraseblocks = { {64 * 1024, 512} },
19167 .block_erase = spi_block_erase_dc,
19168 }, {
19169 .eraseblocks = { {64 * 1024, 512} },
19170 .block_erase = spi_block_erase_d8,
19171 }, {
19172 .eraseblocks = { {32 * 1024 * 1024, 1} },
19173 .block_erase = spi_block_erase_60,
19174 }, {
19175 .eraseblocks = { {32 * 1024 * 1024, 1} },
19176 .block_erase = spi_block_erase_c7,
19177 }
19178 },
19179 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19180 .unlock = spi_disable_blockprotect,
19181 .write = spi_chip_write_256,
19182 .read = spi_chip_read,
19183 .voltage = {1650, 1950},
19184 },
19185
19186 {
19187 .vendor = "XMC",
19188 .name = "XM25QU64C",
19189 .bustype = BUS_SPI,
19190 .manufacture_id = ST_ID,
19191 .model_id = XMC_XM25QU64C,
19192 .total_size = 8192,
19193 .page_size = 256,
19194 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19195 .tested = TEST_UNTESTED,
19196 .probe = probe_spi_rdid,
19197 .probe_timing = TIMING_ZERO,
19198 .block_erasers =
19199 {
19200 {
19201 .eraseblocks = { {4 * 1024, 2048} },
19202 .block_erase = spi_block_erase_20,
19203 }, {
19204 .eraseblocks = { {32 * 1024, 256} },
19205 .block_erase = spi_block_erase_52,
19206 }, {
19207 .eraseblocks = { {64 * 1024, 128} },
19208 .block_erase = spi_block_erase_d8,
19209 }, {
19210 .eraseblocks = { {8 * 1024 * 1024, 1} },
19211 .block_erase = spi_block_erase_60,
19212 }, {
19213 .eraseblocks = { {8 * 1024 * 1024, 1} },
19214 .block_erase = spi_block_erase_c7,
19215 }
19216 },
19217 .printlock = spi_prettyprint_status_register_plain,
19218 .unlock = spi_disable_blockprotect,
19219 .write = spi_chip_write_256,
19220 .read = spi_chip_read,
19221 .voltage = {1650, 1950},
19222 },
19223
19224 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100019225 .vendor = "Zetta Device",
19226 .name = "ZD25D20",
19227 .bustype = BUS_SPI,
19228 .manufacture_id = ZETTADEVICE_ID,
19229 .model_id = ZETTADEVICE_ZD25D20,
19230 .total_size = 256,
19231 .page_size = 256,
19232 .feature_bits = FEATURE_WRSR_WREN,
19233 .tested = TEST_UNTESTED,
19234 .probe = probe_spi_rdid,
19235 .probe_timing = TIMING_ZERO,
19236 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080019237 {
19238 {
19239 .eraseblocks = { {4 * 1024, 64} },
19240 .block_erase = spi_block_erase_20,
19241 }, {
19242 .eraseblocks = { {32 * 1024, 8} },
19243 .block_erase = spi_block_erase_52,
19244 }, {
19245 .eraseblocks = { {64 * 1024, 4} },
19246 .block_erase = spi_block_erase_d8,
19247 }, {
19248 .eraseblocks = { {256 * 1024, 1} },
19249 .block_erase = spi_block_erase_60,
19250 }, {
19251 .eraseblocks = { {256 * 1024, 1} },
19252 .block_erase = spi_block_erase_c7,
19253 }
19254 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100019255 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19256 .unlock = spi_disable_blockprotect,
19257 .write = spi_chip_write_256,
19258 .read = spi_chip_read,
19259 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080019260 },
19261
19262 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100019263 .vendor = "Zetta Device",
19264 .name = "ZD25D40",
19265 .bustype = BUS_SPI,
19266 .manufacture_id = ZETTADEVICE_ID,
19267 .model_id = ZETTADEVICE_ZD25D40,
19268 .total_size = 512,
19269 .page_size = 256,
19270 .feature_bits = FEATURE_WRSR_WREN,
19271 .tested = TEST_UNTESTED,
19272 .probe = probe_spi_rdid,
19273 .probe_timing = TIMING_ZERO,
19274 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080019275 {
19276 {
19277 .eraseblocks = { {4 * 1024, 128} },
19278 .block_erase = spi_block_erase_20,
19279 }, {
19280 .eraseblocks = { {32 * 1024, 16} },
19281 .block_erase = spi_block_erase_52,
19282 }, {
19283 .eraseblocks = { {64 * 1024, 8} },
19284 .block_erase = spi_block_erase_d8,
19285 }, {
19286 .eraseblocks = { {512 * 1024, 1} },
19287 .block_erase = spi_block_erase_60,
19288 }, {
19289 .eraseblocks = { {512 * 1024, 1} },
19290 .block_erase = spi_block_erase_c7,
19291 }
19292 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100019293 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19294 .unlock = spi_disable_blockprotect,
19295 .write = spi_chip_write_256,
19296 .read = spi_chip_read,
19297 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080019298 },
19299
Stefan Taunerac1b4c82012-02-17 14:51:04 +000019300 {
Alan Greendd592202019-08-23 10:11:37 +100019301 .vendor = "Unknown",
19302 .name = "SFDP-capable chip",
19303 .bustype = BUS_SPI,
19304 .manufacture_id = GENERIC_MANUF_ID,
19305 .model_id = SFDP_DEVICE_ID,
19306 .total_size = 0, /* set by probing function */
19307 .page_size = 0, /* set by probing function */
19308 .feature_bits = 0, /* set by probing function */
19309 /* We present our own "report this" text hence we do not */
19310 /* want the default "This flash part has status UNTESTED..." */
19311 /* text to be printed. */
19312 .tested = TEST_OK_PREW,
19313 .probe = probe_spi_sfdp,
19314 .block_erasers = {}, /* set by probing function */
19315 .unlock = spi_disable_blockprotect, /* is this safe? */
19316 .write = NULL, /* set by probing function */
19317 .read = spi_chip_read,
19318 /* FIXME: some vendor extensions define this */
19319 .voltage = {0},
19320 },
19321
19322 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000019323 .vendor = "Programmer",
19324 .name = "Opaque flash chip",
19325 .bustype = BUS_PROG,
19326 .manufacture_id = PROGMANUF_ID,
19327 .model_id = PROGDEV_ID,
19328 .total_size = 0,
19329 .page_size = 256,
19330 /* probe is assumed to work, rest will be filled in by probe */
19331 .tested = TEST_OK_PROBE,
19332 .probe = probe_opaque,
19333 /* eraseblock sizes will be set by the probing function */
19334 .block_erasers =
19335 {
19336 {
19337 .block_erase = erase_opaque,
19338 }
19339 },
19340 .write = write_opaque,
19341 .read = read_opaque,
19342 },
19343
19344 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000019345 .vendor = "AMIC",
19346 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019347 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000019348 .manufacture_id = AMIC_ID,
19349 .model_id = GENERIC_DEVICE_ID,
19350 .total_size = 0,
19351 .page_size = 256,
19352 .tested = TEST_BAD_PREW,
19353 .probe = probe_spi_rdid4,
19354 .probe_timing = TIMING_ZERO,
19355 .write = NULL,
19356 .read = NULL,
19357 },
19358
19359 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019360 .vendor = "Atmel",
19361 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019362 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019363 .manufacture_id = ATMEL_ID,
19364 .model_id = GENERIC_DEVICE_ID,
19365 .total_size = 0,
19366 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019367 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019368 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019369 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019370 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019371 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019372 },
19373
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019374 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000019375 .vendor = "Eon",
19376 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019377 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019378 .manufacture_id = EON_ID_NOPREFIX,
19379 .model_id = GENERIC_DEVICE_ID,
19380 .total_size = 0,
19381 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019382 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019383 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019384 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019385 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019386 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019387 },
19388
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019389 {
19390 .vendor = "Macronix",
19391 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019392 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000019393 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019394 .model_id = GENERIC_DEVICE_ID,
19395 .total_size = 0,
19396 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019397 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019398 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019399 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019400 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019401 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019402 },
19403
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019404 {
19405 .vendor = "PMC",
19406 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019407 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019408 .manufacture_id = PMC_ID,
19409 .model_id = GENERIC_DEVICE_ID,
19410 .total_size = 0,
19411 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019412 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019413 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019414 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019415 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019416 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019417 },
19418
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019419 {
19420 .vendor = "SST",
19421 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019422 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019423 .manufacture_id = SST_ID,
19424 .model_id = GENERIC_DEVICE_ID,
19425 .total_size = 0,
19426 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019427 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019428 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019429 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019430 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019431 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019432 },
19433
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019434 {
19435 .vendor = "ST",
19436 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019437 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019438 .manufacture_id = ST_ID,
19439 .model_id = GENERIC_DEVICE_ID,
19440 .total_size = 0,
19441 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019442 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019443 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019444 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019445 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019446 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019447 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000019448
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019449 {
Sean Nelson118e1d62009-11-24 02:08:11 +000019450 .vendor = "Sanyo",
19451 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019452 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000019453 .manufacture_id = SANYO_ID,
19454 .model_id = GENERIC_DEVICE_ID,
19455 .total_size = 0,
19456 .page_size = 256,
19457 .tested = TEST_BAD_PREW,
19458 .probe = probe_spi_rdid,
19459 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000019460 .write = NULL,
19461 .read = NULL,
19462 },
19463
19464 {
Stefan Taunereb582572012-09-21 12:52:50 +000019465 .vendor = "Winbond",
19466 .name = "unknown Winbond (ex Nexcom) SPI chip",
19467 .bustype = BUS_SPI,
19468 .manufacture_id = WINBOND_NEX_ID,
19469 .model_id = GENERIC_DEVICE_ID,
19470 .total_size = 0,
19471 .page_size = 256,
19472 .tested = TEST_BAD_PREW,
19473 .probe = probe_spi_rdid,
19474 .probe_timing = TIMING_ZERO,
19475 .write = NULL,
19476 .read = NULL,
19477 },
19478
19479 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019480 .vendor = "Generic",
19481 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019482 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019483 .manufacture_id = GENERIC_MANUF_ID,
19484 .model_id = GENERIC_DEVICE_ID,
19485 .total_size = 0,
19486 .page_size = 256,
19487 .tested = TEST_BAD_PREW,
19488 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019489 .write = NULL,
19490 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000019491
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019492 {
19493 .vendor = "Generic",
19494 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019495 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019496 .manufacture_id = GENERIC_MANUF_ID,
19497 .model_id = GENERIC_DEVICE_ID,
19498 .total_size = 0,
19499 .page_size = 256,
19500 .tested = TEST_BAD_PREW,
19501 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019502 .write = NULL,
19503 },
19504
Stefan Tauner96658be2014-05-26 22:05:31 +000019505 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000019506};
Stefan Tauner96658be2014-05-26 22:05:31 +000019507
19508const unsigned int flashchips_size = ARRAY_SIZE(flashchips);