blob: 9c9ce66be42cc84f5bbaba6c5d6c8cb6f0629c8e [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 {
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003446 .vendor = "Boya Microelectronics",
3447 .name = "BY25Q128AS",
3448 .bustype = BUS_SPI,
3449 .manufacture_id = BOYA_ID,
3450 .model_id = BOYA_BY25Q128AS,
3451 .total_size = 16384,
3452 .page_size = 256,
3453 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
3454 .tested = TEST_OK_PREW,
3455 .probe = probe_spi_rdid,
3456 .probe_timing = TIMING_ZERO,
3457 .block_erasers =
3458 {
3459 {
3460 .eraseblocks = { {4 * 1024, 4096} },
3461 .block_erase = spi_block_erase_20,
3462 }, {
3463 .eraseblocks = { {32 * 1024, 512} },
3464 .block_erase = spi_block_erase_52,
3465 }, {
3466 .eraseblocks = { {64 * 1024, 256} },
3467 .block_erase = spi_block_erase_d8,
3468 }, {
3469 .eraseblocks = { {16 * 1024 * 1024, 1} },
3470 .block_erase = spi_block_erase_60,
3471 }, {
3472 .eraseblocks = { {16 * 1024 * 1024, 1} },
3473 .block_erase = spi_block_erase_c7,
3474 }
3475 },
3476 .printlock = spi_prettyprint_status_register_plain,
3477 .unlock = spi_disable_blockprotect_at25fs040,
3478 .write = spi_chip_write_256,
3479 .read = spi_chip_read,
3480 .voltage = {2700, 3600},
3481 },
3482
3483 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003484 .vendor = "Bright",
3485 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003486 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003487 .manufacture_id = BRIGHT_ID,
3488 .model_id = BRIGHT_BM29F040,
3489 .total_size = 512,
3490 .page_size = 64 * 1024,
3491 .feature_bits = FEATURE_EITHER_RESET,
3492 .tested = TEST_OK_PR,
3493 .probe = probe_jedec,
3494 .probe_timing = TIMING_ZERO,
3495 .block_erasers =
3496 {
3497 {
3498 .eraseblocks = { {64 * 1024, 8} },
3499 .block_erase = erase_sector_jedec,
3500 }, {
3501 .eraseblocks = { {512 * 1024, 1} },
3502 .block_erase = erase_chip_block_jedec,
3503 },
3504 },
3505 .write = write_jedec_1,
3506 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003507 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003508 },
3509
3510 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003511 .vendor = "Catalyst",
3512 .name = "CAT28F512",
3513 .bustype = BUS_PARALLEL,
3514 .manufacture_id = CATALYST_ID,
3515 .model_id = CATALYST_CAT28F512,
3516 .total_size = 64,
3517 .page_size = 0, /* unused */
3518 .feature_bits = 0,
Alan Green908adf42019-07-03 15:34:06 +10003519 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD},
Alan Green1f9cc7d2019-07-01 11:10:45 +10003520 .probe = probe_jedec, /* FIXME! */
3521 .probe_timing = TIMING_ZERO,
3522 .block_erasers =
3523 {
3524 {
3525 .eraseblocks = { {64 * 1024, 1} },
3526 .block_erase = NULL, /* TODO */
3527 },
3528 },
3529 .write = NULL, /* TODO */
3530 .read = read_memmapped,
3531 .voltage = {4500, 5500},
3532 },
3533
3534 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003535 .vendor = "ENE",
3536 .name = "KB9012 (EDI)",
3537 .bustype = BUS_SPI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003538 .total_size = 128,
3539 .page_size = 128,
3540 .feature_bits = FEATURE_ERASED_ZERO,
3541 .tested = TEST_OK_PREW,
Alan Greenc1863ca2019-06-27 15:08:03 +10003542 .spi_cmd_set = SPI_EDI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003543 .probe = edi_probe_kb9012,
3544 .probe_timing = TIMING_ZERO,
3545 .block_erasers =
3546 {
3547 {
3548 .eraseblocks = { {128, 1024} },
3549 .block_erase = edi_chip_block_erase,
3550 },
3551 },
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003552 .write = edi_chip_write,
3553 .read = edi_chip_read,
3554 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10003555 .gran = write_gran_128bytes,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003556 },
3557
3558 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003559 .vendor = "ESI",
3560 .name = "ES25P16",
3561 .bustype = BUS_SPI,
3562 .manufacture_id = EXCEL_ID_NOPREFIX,
3563 .model_id = EXCEL_ES25P16,
3564 .total_size = 2 * 1024,
3565 .page_size = 256,
3566 /* 256-byte parameter page separate from memory array:
3567 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3568 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003569 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003570 .probe = probe_spi_rdid,
3571 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003572 .block_erasers =
3573 {
3574 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003575 .eraseblocks = { {64 * 1024, 32} },
3576 .block_erase = spi_block_erase_d8,
Sean Nelson54596372010-01-09 05:30:14 +00003577 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003578 .eraseblocks = { {2 * 1024 * 1024, 1} },
3579 .block_erase = spi_block_erase_c7,
Sean Nelson54596372010-01-09 05:30:14 +00003580 }
3581 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003582 .printlock = spi_prettyprint_status_register_bp2_srwd,
3583 .unlock = spi_disable_blockprotect_bp2_srwd,
3584 .write = spi_chip_write_256,
3585 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3586 .voltage = {2700, 3600},
3587 },
3588
3589 {
3590 .vendor = "ESI",
3591 .name = "ES25P40",
3592 .bustype = BUS_SPI,
3593 .manufacture_id = EXCEL_ID_NOPREFIX,
3594 .model_id = EXCEL_ES25P40,
3595 .total_size = 512,
3596 .page_size = 256,
3597 /* 256-byte parameter page separate from memory array:
3598 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3599 .feature_bits = FEATURE_WRSR_WREN,
3600 .tested = TEST_UNTESTED,
3601 .probe = probe_spi_rdid,
3602 .probe_timing = TIMING_ZERO,
3603 .block_erasers =
3604 {
3605 {
3606 .eraseblocks = { {64 * 1024, 8} },
3607 .block_erase = spi_block_erase_d8,
3608 }, {
3609 .eraseblocks = { {512 * 1024, 1} },
3610 .block_erase = spi_block_erase_c7,
3611 }
3612 },
3613 .printlock = spi_prettyprint_status_register_bp2_srwd,
3614 .unlock = spi_disable_blockprotect_bp2_srwd,
3615 .write = spi_chip_write_256,
3616 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3617 .voltage = {2700, 3600},
3618 },
3619
3620 {
3621 .vendor = "ESI",
3622 .name = "ES25P80",
3623 .bustype = BUS_SPI,
3624 .manufacture_id = EXCEL_ID_NOPREFIX,
3625 .model_id = EXCEL_ES25P80,
3626 .total_size = 1024,
3627 .page_size = 256,
3628 /* 256-byte parameter page separate from memory array:
3629 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3630 .feature_bits = FEATURE_WRSR_WREN,
3631 .tested = TEST_UNTESTED,
3632 .probe = probe_spi_rdid,
3633 .probe_timing = TIMING_ZERO,
3634 .block_erasers =
3635 {
3636 {
3637 .eraseblocks = { {64 * 1024, 16} },
3638 .block_erase = spi_block_erase_d8,
3639 }, {
3640 .eraseblocks = { {1024 * 1024, 1} },
3641 .block_erase = spi_block_erase_c7,
3642 }
3643 },
3644 .printlock = spi_prettyprint_status_register_bp2_srwd,
3645 .unlock = spi_disable_blockprotect_bp2_srwd,
3646 .write = spi_chip_write_256,
3647 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3648 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003649 },
3650
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003651 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003652 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003653 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003654 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003655 .manufacture_id = ESMT_ID,
3656 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003657 .total_size = 1024,
3658 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003659 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003660 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003661 .probe = probe_spi_rdid,
3662 .probe_timing = TIMING_ZERO,
3663 .block_erasers =
3664 {
3665 {
3666 .eraseblocks = { {4 * 1024, 256} },
3667 .block_erase = spi_block_erase_20,
3668 }, {
3669 .eraseblocks = { {64 * 1024, 16} },
3670 .block_erase = spi_block_erase_d8,
3671 }, {
3672 .eraseblocks = { {1024 * 1024, 1} },
3673 .block_erase = spi_block_erase_60,
3674 }, {
3675 .eraseblocks = { {1024 * 1024, 1} },
3676 .block_erase = spi_block_erase_c7,
3677 }
3678 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003679 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003680 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003681 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003682 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003683 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003684 },
3685
3686 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003687 .vendor = "ESMT",
3688 .name = "F25L32PA",
3689 .bustype = BUS_SPI,
3690 .manufacture_id = ESMT_ID,
3691 .model_id = ESMT_F25L32PA,
3692 .total_size = 4096,
3693 .page_size = 256,
3694 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3695 .tested = TEST_UNTESTED,
3696 .probe = probe_spi_rdid,
3697 .probe_timing = TIMING_ZERO,
3698 .block_erasers =
3699 {
3700 {
3701 .eraseblocks = { {4 * 1024, 1024} },
3702 .block_erase = spi_block_erase_20,
3703 }, {
3704 .eraseblocks = { {64 * 1024, 64} },
3705 .block_erase = spi_block_erase_d8,
3706 }, {
3707 .eraseblocks = { {4 * 1024 * 1024, 1} },
3708 .block_erase = spi_block_erase_60,
3709 }, {
3710 .eraseblocks = { {4 * 1024 * 1024, 1} },
3711 .block_erase = spi_block_erase_c7,
3712 }
3713 },
3714 .printlock = spi_prettyprint_status_register_bp2_bpl,
3715 .unlock = spi_disable_blockprotect,
3716 .write = spi_chip_write_256,
3717 .read = spi_chip_read,
3718 .voltage = {2700, 3600},
3719 },
3720
3721 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003722 .vendor = "ESMT",
3723 .name = "F49B002UA",
3724 .bustype = BUS_PARALLEL,
3725 .manufacture_id = ESMT_ID,
3726 .model_id = ESMT_F49B002UA,
3727 .total_size = 256,
3728 .page_size = 4096,
3729 .feature_bits = FEATURE_EITHER_RESET,
3730 .tested = TEST_UNTESTED,
3731 .probe = probe_jedec,
3732 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3733 .block_erasers =
3734 {
3735 {
3736 .eraseblocks = {
3737 {128 * 1024, 1},
3738 {96 * 1024, 1},
3739 {8 * 1024, 2},
3740 {16 * 1024, 1},
3741 },
3742 .block_erase = erase_sector_jedec,
3743 }, {
3744 .eraseblocks = { {256 * 1024, 1} },
3745 .block_erase = erase_chip_block_jedec,
3746 }
3747 },
3748 .write = write_jedec_1,
3749 .read = read_memmapped,
3750 .voltage = {4500, 5500},
3751 },
3752
3753 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003754 .vendor = "Eon",
3755 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003756 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003757 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003758 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003759 .total_size = 64,
3760 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003761 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003762 .tested = TEST_UNTESTED,
3763 .probe = probe_spi_rdid,
3764 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003765 .block_erasers =
3766 {
3767 {
3768 .eraseblocks = {
3769 {4 * 1024, 2},
3770 {8 * 1024, 1},
3771 {16 * 1024, 1},
3772 {32 * 1024, 1},
3773 },
3774 .block_erase = spi_block_erase_d8,
3775 }, {
3776 .eraseblocks = { {64 * 1024, 1} },
3777 .block_erase = spi_block_erase_c7,
3778 }
3779 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003780 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003781 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003782 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003783 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003784 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003785 },
3786
3787 {
3788 .vendor = "Eon",
3789 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003790 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003791 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003792 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003793 .total_size = 64,
3794 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003795 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003796 .tested = TEST_UNTESTED,
3797 .probe = probe_spi_rdid,
3798 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003799 .block_erasers =
3800 {
3801 {
3802 .eraseblocks = {
3803 {32 * 1024, 1},
3804 {16 * 1024, 1},
3805 {8 * 1024, 1},
3806 {4 * 1024, 2},
3807 },
3808 .block_erase = spi_block_erase_d8,
3809 }, {
3810 .eraseblocks = { {64 * 1024, 1} },
3811 .block_erase = spi_block_erase_c7,
3812 }
3813 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003814 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003815 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003816 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003817 .read = spi_chip_read, /* Fast read (0x0B) supported */
3818 .voltage = {2700, 3600},
3819 },
3820
3821 {
3822 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003823 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003824 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003825 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003826 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003827 .total_size = 128,
3828 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003829 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003830 .tested = TEST_UNTESTED,
3831 .probe = probe_spi_rdid,
3832 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003833 .block_erasers =
3834 {
3835 {
3836 .eraseblocks = {
3837 {4 * 1024, 2},
3838 {8 * 1024, 1},
3839 {16 * 1024, 1},
3840 {32 * 1024, 3},
3841 },
3842 .block_erase = spi_block_erase_d8,
3843 }, {
3844 .eraseblocks = { {128 * 1024, 1} },
3845 .block_erase = spi_block_erase_c7,
3846 }
3847 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003848 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003849 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003850 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003851 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003852 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003853 },
3854
3855 {
3856 .vendor = "Eon",
3857 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003858 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003859 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003860 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003861 .total_size = 128,
3862 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003863 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003864 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003865 .probe = probe_spi_rdid,
3866 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003867 .block_erasers =
3868 {
3869 {
3870 .eraseblocks = {
3871 {32 * 1024, 3},
3872 {16 * 1024, 1},
3873 {8 * 1024, 1},
3874 {4 * 1024, 2},
3875 },
3876 .block_erase = spi_block_erase_d8,
3877 }, {
3878 .eraseblocks = { {128 * 1024, 1} },
3879 .block_erase = spi_block_erase_c7,
3880 }
3881 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003882 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003883 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003884 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003885 .read = spi_chip_read, /* Fast read (0x0B) supported */
3886 .voltage = {2700, 3600},
3887 },
3888
3889 {
3890 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003891 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003892 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003893 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003894 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003895 .total_size = 2048,
3896 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003897 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003898 .tested = TEST_UNTESTED,
3899 .probe = probe_spi_rdid,
3900 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003901 .block_erasers =
3902 {
3903 {
3904 .eraseblocks = {
3905 {4 * 1024, 2},
3906 {8 * 1024, 1},
3907 {16 * 1024, 1},
3908 {32 * 1024, 1},
3909 {64 * 1024, 31},
3910 },
3911 .block_erase = spi_block_erase_d8,
3912 }, {
3913 .eraseblocks = { {2 * 1024 * 1024, 1} },
3914 .block_erase = spi_block_erase_c7,
3915 }
3916 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003917 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003918 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003919 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003920 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003921 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003922 },
3923
3924 {
3925 .vendor = "Eon",
3926 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003927 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003928 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003929 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003930 .total_size = 2048,
3931 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003932 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003933 .tested = TEST_UNTESTED,
3934 .probe = probe_spi_rdid,
3935 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003936 .block_erasers =
3937 {
3938 {
3939 .eraseblocks = {
3940 {64 * 1024, 31},
3941 {32 * 1024, 1},
3942 {16 * 1024, 1},
3943 {8 * 1024, 1},
3944 {4 * 1024, 2},
3945 },
3946 .block_erase = spi_block_erase_d8,
3947 }, {
3948 .eraseblocks = { {2 * 1024 * 1024, 1} },
3949 .block_erase = spi_block_erase_c7,
3950 }
3951 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003952 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003953 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003954 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003955 .read = spi_chip_read, /* Fast read (0x0B) supported */
3956 .voltage = {2700, 3600},
3957 },
3958
3959 {
3960 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003961 .name = "EN25B20",
Stefan Taunerb175af52015-01-24 15:06:27 +00003962 .bustype = BUS_SPI,
3963 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003964 .model_id = EON_EN25B20,
3965 .total_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003966 .page_size = 256,
3967 .feature_bits = FEATURE_WRSR_WREN,
3968 .tested = TEST_UNTESTED,
3969 .probe = probe_spi_rdid,
3970 .probe_timing = TIMING_ZERO,
3971 .block_erasers =
3972 {
3973 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003974 .eraseblocks = {
3975 {4 * 1024, 2},
3976 {8 * 1024, 1},
3977 {16 * 1024, 1},
3978 {32 * 1024, 1},
3979 {64 * 1024, 3}
3980 },
Stefan Taunerb175af52015-01-24 15:06:27 +00003981 .block_erase = spi_block_erase_d8,
3982 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003983 .eraseblocks = { {256 * 1024, 1} },
3984 .block_erase = spi_block_erase_c7,
3985 }
3986 },
3987 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3988 .unlock = spi_disable_blockprotect,
3989 .write = spi_chip_write_256,
3990 .read = spi_chip_read, /* Fast read (0x0B) supported */
3991 .voltage = {2700, 3600},
3992 },
3993
3994 {
3995 .vendor = "Eon",
3996 .name = "EN25B20T",
3997 .bustype = BUS_SPI,
3998 .manufacture_id = EON_ID_NOPREFIX,
3999 .model_id = EON_EN25B20,
4000 .total_size = 256,
4001 .page_size = 256,
4002 .feature_bits = FEATURE_WRSR_WREN,
4003 .tested = TEST_UNTESTED,
4004 .probe = probe_spi_rdid,
4005 .probe_timing = TIMING_ZERO,
4006 .block_erasers =
4007 {
4008 {
4009 .eraseblocks = {
4010 {64 * 1024, 3},
4011 {32 * 1024, 1},
4012 {16 * 1024, 1},
4013 {8 * 1024, 1},
4014 {4 * 1024, 2},
4015 },
4016 .block_erase = spi_block_erase_d8,
4017 }, {
4018 .eraseblocks = { {256 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004019 .block_erase = spi_block_erase_c7,
4020 }
4021 },
4022 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4023 .unlock = spi_disable_blockprotect,
4024 .write = spi_chip_write_256,
4025 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004026 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004027 },
4028
4029 {
4030 .vendor = "Eon",
4031 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004032 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004033 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004034 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004035 .total_size = 4096,
4036 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004037 /* OTP: 512B total; enter 0x3A */
4038 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004039 .tested = TEST_UNTESTED,
4040 .probe = probe_spi_rdid,
4041 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004042 .block_erasers =
4043 {
4044 {
4045 .eraseblocks = {
4046 {4 * 1024, 2},
4047 {8 * 1024, 1},
4048 {16 * 1024, 1},
4049 {32 * 1024, 1},
4050 {64 * 1024, 63},
4051 },
4052 .block_erase = spi_block_erase_d8,
4053 }, {
4054 .eraseblocks = { {4 * 1024 * 1024, 1} },
4055 .block_erase = spi_block_erase_c7,
4056 }
4057 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004058 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004059 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004060 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004061 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004062 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004063 },
4064
4065 {
4066 .vendor = "Eon",
4067 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004068 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004069 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004070 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004071 .total_size = 4096,
4072 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004073 /* OTP: 512B total; enter 0x3A */
4074 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004075 .tested = TEST_UNTESTED,
4076 .probe = probe_spi_rdid,
4077 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004078 .block_erasers =
4079 {
4080 {
4081 .eraseblocks = {
4082 {64 * 1024, 63},
4083 {32 * 1024, 1},
4084 {16 * 1024, 1},
4085 {8 * 1024, 1},
4086 {4 * 1024, 2},
4087 },
4088 .block_erase = spi_block_erase_d8,
4089 }, {
4090 .eraseblocks = { {4 * 1024 * 1024, 1} },
4091 .block_erase = spi_block_erase_c7,
4092 }
4093 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004094 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004095 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004096 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004097 .read = spi_chip_read, /* Fast read (0x0B) supported */
4098 .voltage = {2700, 3600},
4099 },
4100
4101 {
4102 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004103 .name = "EN25B40",
Stefan Taunerb175af52015-01-24 15:06:27 +00004104 .bustype = BUS_SPI,
4105 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004106 .model_id = EON_EN25B40,
4107 .total_size = 512,
Stefan Taunerb175af52015-01-24 15:06:27 +00004108 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004109 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004110 .tested = TEST_UNTESTED,
4111 .probe = probe_spi_rdid,
4112 .probe_timing = TIMING_ZERO,
4113 .block_erasers =
4114 {
4115 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004116 .eraseblocks = {
4117 {4 * 1024, 2},
4118 {8 * 1024, 1},
4119 {16 * 1024, 1},
4120 {32 * 1024, 1},
4121 {64 * 1024, 7}
4122 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004123 .block_erase = spi_block_erase_d8,
4124 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004125 .eraseblocks = { {512 * 1024, 1} },
4126 .block_erase = spi_block_erase_c7,
4127 }
4128 },
4129 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4130 .unlock = spi_disable_blockprotect,
4131 .write = spi_chip_write_256,
4132 .read = spi_chip_read, /* Fast read (0x0B) supported */
4133 .voltage = {2700, 3600},
4134 },
4135
4136 {
4137 .vendor = "Eon",
4138 .name = "EN25B40T",
4139 .bustype = BUS_SPI,
4140 .manufacture_id = EON_ID_NOPREFIX,
4141 .model_id = EON_EN25B40,
4142 .total_size = 512,
4143 .page_size = 256,
4144 .feature_bits = FEATURE_WRSR_WREN,
4145 .tested = TEST_UNTESTED,
4146 .probe = probe_spi_rdid,
4147 .probe_timing = TIMING_ZERO,
4148 .block_erasers =
4149 {
4150 {
4151 .eraseblocks = {
4152 {64 * 1024, 7},
4153 {32 * 1024, 1},
4154 {16 * 1024, 1},
4155 {8 * 1024, 1},
4156 {4 * 1024, 2},
4157 },
4158 .block_erase = spi_block_erase_d8,
4159 }, {
4160 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004161 .block_erase = spi_block_erase_c7,
4162 }
4163 },
4164 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4165 .unlock = spi_disable_blockprotect,
4166 .write = spi_chip_write_256,
4167 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004168 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004169 },
4170
4171 {
4172 .vendor = "Eon",
4173 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004174 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004175 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004176 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004177 .total_size = 8192,
4178 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004179 /* OTP: 512B total; enter 0x3A */
4180 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004181 .tested = TEST_UNTESTED,
4182 .probe = probe_spi_rdid,
4183 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004184 .block_erasers =
4185 {
4186 {
4187 .eraseblocks = {
4188 {4 * 1024, 2},
4189 {8 * 1024, 1},
4190 {16 * 1024, 1},
4191 {32 * 1024, 1},
4192 {64 * 1024, 127},
4193 },
4194 .block_erase = spi_block_erase_d8,
4195 }, {
4196 .eraseblocks = { {8 * 1024 * 1024, 1} },
4197 .block_erase = spi_block_erase_c7,
4198 }
4199 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004200 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004201 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004202 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004203 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004204 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004205 },
4206
4207 {
4208 .vendor = "Eon",
4209 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004210 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004211 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004212 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004213 .total_size = 8192,
4214 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004215 /* OTP: 512B total; enter 0x3A */
4216 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004217 .tested = TEST_UNTESTED,
4218 .probe = probe_spi_rdid,
4219 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004220 .block_erasers =
4221 {
4222 {
4223 .eraseblocks = {
4224 {64 * 1024, 127},
4225 {32 * 1024, 1},
4226 {16 * 1024, 1},
4227 {8 * 1024, 1},
4228 {4 * 1024, 2},
4229 },
4230 .block_erase = spi_block_erase_d8,
4231 }, {
4232 .eraseblocks = { {8 * 1024 * 1024, 1} },
4233 .block_erase = spi_block_erase_c7,
4234 }
4235 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004236 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004237 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004238 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004239 .read = spi_chip_read, /* Fast read (0x0B) supported */
4240 .voltage = {2700, 3600},
4241 },
4242
4243 {
4244 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004245 .name = "EN25B80",
Stefan Taunerb175af52015-01-24 15:06:27 +00004246 .bustype = BUS_SPI,
4247 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004248 .model_id = EON_EN25B80,
4249 .total_size = 1024,
Stefan Taunerb175af52015-01-24 15:06:27 +00004250 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004251 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004252 .tested = TEST_UNTESTED,
4253 .probe = probe_spi_rdid,
4254 .probe_timing = TIMING_ZERO,
4255 .block_erasers =
4256 {
4257 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004258 .eraseblocks = {
4259 {4 * 1024, 2},
4260 {8 * 1024, 1},
4261 {16 * 1024, 1},
4262 {32 * 1024, 1},
4263 {64 * 1024, 15}
4264 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004265 .block_erase = spi_block_erase_d8,
4266 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004267 .eraseblocks = { {1024 * 1024, 1} },
4268 .block_erase = spi_block_erase_c7,
4269 }
4270 },
4271 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4272 .unlock = spi_disable_blockprotect,
4273 .write = spi_chip_write_256,
4274 .read = spi_chip_read, /* Fast read (0x0B) supported */
4275 .voltage = {2700, 3600},
4276 },
4277
4278 {
4279 .vendor = "Eon",
4280 .name = "EN25B80T",
4281 .bustype = BUS_SPI,
4282 .manufacture_id = EON_ID_NOPREFIX,
4283 .model_id = EON_EN25B80,
4284 .total_size = 1024,
4285 .page_size = 256,
4286 .feature_bits = FEATURE_WRSR_WREN,
4287 .tested = TEST_UNTESTED,
4288 .probe = probe_spi_rdid,
4289 .probe_timing = TIMING_ZERO,
4290 .block_erasers =
4291 {
4292 {
4293 .eraseblocks = {
4294 {64 * 1024, 15},
4295 {32 * 1024, 1},
4296 {16 * 1024, 1},
4297 {8 * 1024, 1},
4298 {4 * 1024, 2},
4299 },
4300 .block_erase = spi_block_erase_d8,
4301 }, {
4302 .eraseblocks = { {1024 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004303 .block_erase = spi_block_erase_c7,
4304 }
4305 },
4306 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4307 .unlock = spi_disable_blockprotect,
4308 .write = spi_chip_write_256,
4309 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004310 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004311 },
4312
4313 {
4314 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004315 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004316 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004317 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004318 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004319 .total_size = 64,
4320 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004321 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004322 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004323 .probe = probe_spi_rdid,
4324 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004325 .block_erasers =
4326 {
4327 {
4328 .eraseblocks = { {4 * 1024, 16} },
4329 .block_erase = spi_block_erase_20,
4330 }, {
4331 .eraseblocks = { {32 * 1024, 2} },
4332 .block_erase = spi_block_erase_d8,
4333 }, {
4334 .eraseblocks = { {32 * 1024, 2} },
4335 .block_erase = spi_block_erase_52,
4336 }, {
4337 .eraseblocks = { {64 * 1024, 1} },
4338 .block_erase = spi_block_erase_60,
4339 }, {
4340 .eraseblocks = { {64 * 1024, 1} },
4341 .block_erase = spi_block_erase_c7,
4342 }
4343 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004344 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004345 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004346 .write = spi_chip_write_256,
4347 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004348 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004349 },
4350
4351 {
4352 .vendor = "Eon",
4353 .name = "EN25F10",
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_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004357 .total_size = 128,
4358 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004359 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004360 .tested = TEST_UNTESTED,
4361 .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, 32} },
4367 .block_erase = spi_block_erase_20,
4368 }, {
4369 .eraseblocks = { {32 * 1024, 4} },
4370 .block_erase = spi_block_erase_d8,
4371 }, {
4372 .eraseblocks = { {32 * 1024, 4} },
4373 .block_erase = spi_block_erase_52,
4374 }, {
4375 .eraseblocks = { {128 * 1024, 1} },
4376 .block_erase = spi_block_erase_60,
4377 }, {
4378 .eraseblocks = { {128 * 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",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004391 .name = "EN25F16",
4392 .bustype = BUS_SPI,
4393 .manufacture_id = EON_ID_NOPREFIX,
4394 .model_id = EON_EN25F16,
4395 .total_size = 2048,
4396 .page_size = 256,
4397 .feature_bits = FEATURE_WRSR_WREN,
4398 .tested = TEST_OK_PREW,
4399 .probe = probe_spi_rdid,
4400 .probe_timing = TIMING_ZERO,
4401 .block_erasers =
4402 {
4403 {
4404 .eraseblocks = { {4 * 1024, 512} },
4405 .block_erase = spi_block_erase_20,
4406 }, {
4407 .eraseblocks = { {64 * 1024, 32} },
4408 .block_erase = spi_block_erase_d8,
4409 }, {
4410 .eraseblocks = { {2 * 1024 * 1024, 1} },
4411 .block_erase = spi_block_erase_60,
4412 }, {
4413 .eraseblocks = { {2 * 1024 * 1024, 1} },
4414 .block_erase = spi_block_erase_c7,
4415 }
4416 },
4417 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4418 .unlock = spi_disable_blockprotect,
4419 .write = spi_chip_write_256,
4420 .read = spi_chip_read,
4421 .voltage = {2700, 3600},
4422 },
4423
4424 {
4425 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004426 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004427 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004428 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004429 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004430 .total_size = 256,
4431 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004432 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004433 .tested = TEST_UNTESTED,
4434 .probe = probe_spi_rdid,
4435 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004436 .block_erasers =
4437 {
4438 {
4439 .eraseblocks = { {4 * 1024, 64} },
4440 .block_erase = spi_block_erase_20,
4441 }, {
4442 .eraseblocks = { {64 * 1024, 4} },
4443 .block_erase = spi_block_erase_d8,
4444 }, {
4445 .eraseblocks = { {64 * 1024, 4} },
4446 .block_erase = spi_block_erase_52,
4447 }, {
4448 .eraseblocks = { {256 * 1024, 1} },
4449 .block_erase = spi_block_erase_60,
4450 }, {
4451 .eraseblocks = { {256 * 1024, 1} },
4452 .block_erase = spi_block_erase_c7,
4453 }
4454 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004455 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004456 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004457 .write = spi_chip_write_256,
4458 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004459 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004460 },
4461
4462 {
4463 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004464 .name = "EN25F32",
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_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004468 .total_size = 4096,
4469 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004470 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004471 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004472 .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, 1024} },
4478 .block_erase = spi_block_erase_20,
4479 }, {
4480 .eraseblocks = { {64 * 1024, 64} },
4481 .block_erase = spi_block_erase_d8,
4482 }, {
4483 .eraseblocks = { {4 * 1024 * 1024, 1} },
4484 .block_erase = spi_block_erase_60,
4485 }, {
4486 .eraseblocks = { {4 * 1024 * 1024, 1} },
4487 .block_erase = spi_block_erase_c7,
4488 }
4489 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004490 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004491 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004492 .write = spi_chip_write_256,
4493 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004494 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004495 },
4496
4497 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004498 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004499 .name = "EN25F40",
4500 .bustype = BUS_SPI,
4501 .manufacture_id = EON_ID_NOPREFIX,
4502 .model_id = EON_EN25F40,
4503 .total_size = 512,
4504 .page_size = 256,
4505 .feature_bits = FEATURE_WRSR_WREN,
4506 .tested = TEST_OK_PREW,
4507 .probe = probe_spi_rdid,
4508 .probe_timing = TIMING_ZERO,
4509 .block_erasers =
4510 {
4511 {
4512 .eraseblocks = { {4 * 1024, 128} },
4513 .block_erase = spi_block_erase_20,
4514 }, {
4515 .eraseblocks = { {64 * 1024, 8} },
4516 .block_erase = spi_block_erase_d8,
4517 }, {
4518 .eraseblocks = { {512 * 1024, 1} },
4519 .block_erase = spi_block_erase_60,
4520 }, {
4521 .eraseblocks = { {512 * 1024, 1} },
4522 .block_erase = spi_block_erase_c7,
4523 },
4524 },
4525 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4526 .unlock = spi_disable_blockprotect,
4527 .write = spi_chip_write_256,
4528 .read = spi_chip_read,
4529 .voltage = {2700, 3600},
4530 },
4531
4532 {
4533 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004534 .name = "EN25F64",
4535 .bustype = BUS_SPI,
4536 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004537 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004538 .total_size = 8192,
4539 .page_size = 256,
4540 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004541 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004542 .probe = probe_spi_rdid,
4543 .probe_timing = TIMING_ZERO,
4544 .block_erasers =
4545 {
4546 {
4547 .eraseblocks = { {4 * 1024, 2048} },
4548 .block_erase = spi_block_erase_20,
4549 }, {
4550 .eraseblocks = { {64 * 1024, 128} },
4551 .block_erase = spi_block_erase_d8,
4552 }, {
4553 .eraseblocks = { {8 * 1024 * 1024, 1} },
4554 .block_erase = spi_block_erase_60,
4555 }, {
4556 .eraseblocks = { {8 * 1024 * 1024, 1} },
4557 .block_erase = spi_block_erase_c7,
4558 }
4559 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004560 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004561 .unlock = spi_disable_blockprotect,
4562 .write = spi_chip_write_256,
4563 .read = spi_chip_read,
4564 .voltage = {2700, 3600},
4565 },
4566
4567 {
4568 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004569 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004570 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004571 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004572 .model_id = EON_EN25F80,
David Hendricks6d715302011-07-24 22:21:57 +00004573 .total_size = 1024,
4574 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004575 .feature_bits = FEATURE_WRSR_WREN,
4576 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004577 .probe = probe_spi_rdid,
4578 .probe_timing = TIMING_ZERO,
4579 .block_erasers =
4580 {
4581 {
4582 .eraseblocks = { {4 * 1024, 256} },
4583 .block_erase = spi_block_erase_20,
4584 }, {
4585 .eraseblocks = { {64 * 1024, 16} },
4586 .block_erase = spi_block_erase_d8,
4587 }, {
4588 .eraseblocks = { {1024 * 1024, 1} },
4589 .block_erase = spi_block_erase_60,
4590 }, {
4591 .eraseblocks = { {1024 * 1024, 1} },
4592 .block_erase = spi_block_erase_c7,
4593 }
4594 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004595 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004596 .unlock = spi_disable_blockprotect,
4597 .write = spi_chip_write_256,
4598 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004599 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004600 },
4601
4602 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004603 .vendor = "Eon",
4604 .name = "EN25P05",
4605 .bustype = BUS_SPI,
4606 .manufacture_id = EON_ID_NOPREFIX,
4607 .model_id = EON_EN25B05,
4608 .total_size = 64,
4609 .page_size = 256,
4610 .feature_bits = FEATURE_WRSR_WREN,
4611 .tested = TEST_UNTESTED,
4612 .probe = probe_spi_rdid,
4613 .probe_timing = TIMING_ZERO,
4614 .block_erasers =
4615 {
4616 {
4617 .eraseblocks = {
4618 {32 * 1024, 2} },
4619 .block_erase = spi_block_erase_d8,
4620 }, {
4621 .eraseblocks = { {64 * 1024, 1} },
4622 .block_erase = spi_block_erase_c7,
4623 }
4624 },
4625 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4626 .unlock = spi_disable_blockprotect,
4627 .write = spi_chip_write_256,
4628 .read = spi_chip_read, /* Fast read (0x0B) supported */
4629 .voltage = {2700, 3600},
4630 },
4631
4632 {
4633 .vendor = "Eon",
4634 .name = "EN25P10",
4635 .bustype = BUS_SPI,
4636 .manufacture_id = EON_ID_NOPREFIX,
4637 .model_id = EON_EN25B10,
4638 .total_size = 128,
4639 .page_size = 256,
4640 .feature_bits = FEATURE_WRSR_WREN,
4641 .tested = TEST_UNTESTED,
4642 .probe = probe_spi_rdid,
4643 .probe_timing = TIMING_ZERO,
4644 .block_erasers =
4645 {
4646 {
4647 .eraseblocks = { {32 * 1024, 4} },
4648 .block_erase = spi_block_erase_d8,
4649 }, {
4650 .eraseblocks = { {128 * 1024, 1} },
4651 .block_erase = spi_block_erase_c7,
4652 }
4653 },
4654 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4655 .unlock = spi_disable_blockprotect,
4656 .write = spi_chip_write_256,
4657 .read = spi_chip_read, /* Fast read (0x0B) supported */
4658 .voltage = {2700, 3600},
4659 },
4660
4661 {
4662 .vendor = "Eon",
4663 .name = "EN25P16",
4664 .bustype = BUS_SPI,
4665 .manufacture_id = EON_ID_NOPREFIX,
4666 .model_id = EON_EN25B16,
4667 .total_size = 2048,
4668 .page_size = 256,
4669 .feature_bits = FEATURE_WRSR_WREN,
4670 .tested = TEST_UNTESTED,
4671 .probe = probe_spi_rdid,
4672 .probe_timing = TIMING_ZERO,
4673 .block_erasers =
4674 {
4675 {
4676 .eraseblocks = { {64 * 1024, 32} },
4677 .block_erase = spi_block_erase_d8,
4678 }, {
4679 .eraseblocks = { {2 * 1024 * 1024, 1} },
4680 .block_erase = spi_block_erase_c7,
4681 }
4682 },
4683 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4684 .unlock = spi_disable_blockprotect,
4685 .write = spi_chip_write_256,
4686 .read = spi_chip_read, /* Fast read (0x0B) supported */
4687 .voltage = {2700, 3600},
4688 },
4689
4690 {
4691 .vendor = "Eon",
4692 .name = "EN25P20",
4693 .bustype = BUS_SPI,
4694 .manufacture_id = EON_ID_NOPREFIX,
4695 .model_id = EON_EN25B20,
4696 .total_size = 256,
4697 .page_size = 256,
4698 .feature_bits = FEATURE_WRSR_WREN,
4699 .tested = TEST_UNTESTED,
4700 .probe = probe_spi_rdid,
4701 .probe_timing = TIMING_ZERO,
4702 .block_erasers =
4703 {
4704 {
4705 .eraseblocks = { {64 * 1024, 4} },
4706 .block_erase = spi_block_erase_d8,
4707 }, {
4708 .eraseblocks = { {256 * 1024, 1} },
4709 .block_erase = spi_block_erase_c7,
4710 }
4711 },
4712 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4713 .unlock = spi_disable_blockprotect,
4714 .write = spi_chip_write_256,
4715 .read = spi_chip_read, /* Fast read (0x0B) supported */
4716 .voltage = {2700, 3600},
4717 },
4718
4719 {
4720 .vendor = "Eon",
4721 .name = "EN25P32", /* Uniform version of EN25B32 */
4722 .bustype = BUS_SPI,
4723 .manufacture_id = EON_ID_NOPREFIX,
4724 .model_id = EON_EN25B32,
4725 .total_size = 4096,
4726 .page_size = 256,
4727 /* OTP: 512B total; enter 0x3A */
4728 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4729 .tested = TEST_UNTESTED,
4730 .probe = probe_spi_rdid,
4731 .probe_timing = TIMING_ZERO,
4732 .block_erasers =
4733 {
4734 {
4735 .eraseblocks = { {64 * 1024, 64} },
4736 .block_erase = spi_block_erase_d8,
4737 }, {
4738 .eraseblocks = { {4 * 1024 * 1024, 1} },
4739 .block_erase = spi_block_erase_c7,
4740 }
4741 },
4742 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4743 .unlock = spi_disable_blockprotect,
4744 .write = spi_chip_write_256,
4745 .read = spi_chip_read, /* Fast read (0x0B) supported */
4746 .voltage = {2700, 3600},
4747 },
4748
4749 {
4750 .vendor = "Eon",
4751 .name = "EN25P40",
4752 .bustype = BUS_SPI,
4753 .manufacture_id = EON_ID_NOPREFIX,
4754 .model_id = EON_EN25B40,
4755 .total_size = 512,
4756 .page_size = 256,
4757 .feature_bits = FEATURE_WRSR_WREN,
4758 .tested = TEST_UNTESTED,
4759 .probe = probe_spi_rdid,
4760 .probe_timing = TIMING_ZERO,
4761 .block_erasers =
4762 {
4763 {
4764 .eraseblocks = { {64 * 1024, 8} },
4765 .block_erase = spi_block_erase_d8,
4766 }, {
4767 .eraseblocks = { {512 * 1024, 1} },
4768 .block_erase = spi_block_erase_c7,
4769 }
4770 },
4771 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4772 .unlock = spi_disable_blockprotect,
4773 .write = spi_chip_write_256,
4774 .read = spi_chip_read, /* Fast read (0x0B) supported */
4775 .voltage = {2700, 3600},
4776 },
4777
4778 {
4779 .vendor = "Eon",
4780 .name = "EN25P64",
4781 .bustype = BUS_SPI,
4782 .manufacture_id = EON_ID_NOPREFIX,
4783 .model_id = EON_EN25B64,
4784 .total_size = 8192,
4785 .page_size = 256,
4786 /* OTP: 512B total; enter 0x3A */
4787 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4788 .tested = TEST_UNTESTED,
4789 .probe = probe_spi_rdid,
4790 .probe_timing = TIMING_ZERO,
4791 .block_erasers =
4792 {
4793 {
4794 .eraseblocks = { {64 * 1024, 128} },
4795 .block_erase = spi_block_erase_d8,
4796 }, {
4797 .eraseblocks = { {8 * 1024 * 1024, 1} },
4798 .block_erase = spi_block_erase_c7,
4799 }
4800 },
4801 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4802 .unlock = spi_disable_blockprotect,
4803 .write = spi_chip_write_256,
4804 .read = spi_chip_read, /* Fast read (0x0B) supported */
4805 .voltage = {2700, 3600},
4806 },
4807
4808 {
4809 .vendor = "Eon",
4810 .name = "EN25P80",
4811 .bustype = BUS_SPI,
4812 .manufacture_id = EON_ID_NOPREFIX,
4813 .model_id = EON_EN25B80,
4814 .total_size = 1024,
4815 .page_size = 256,
4816 .feature_bits = FEATURE_WRSR_WREN,
4817 .tested = TEST_UNTESTED,
4818 .probe = probe_spi_rdid,
4819 .probe_timing = TIMING_ZERO,
4820 .block_erasers =
4821 {
4822 {
4823 .eraseblocks = { {64 * 1024, 16} },
4824 .block_erase = spi_block_erase_d8,
4825 }, {
4826 .eraseblocks = { {1024 * 1024, 1} },
4827 .block_erase = spi_block_erase_c7,
4828 }
4829 },
4830 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4831 .unlock = spi_disable_blockprotect,
4832 .write = spi_chip_write_256,
4833 .read = spi_chip_read, /* Fast read (0x0B) supported */
4834 .voltage = {2700, 3600},
4835 },
4836
4837 {
4838 .vendor = "Eon",
4839 .name = "EN25Q128",
4840 .bustype = BUS_SPI,
4841 .manufacture_id = EON_ID_NOPREFIX,
4842 .model_id = EON_EN25Q128,
4843 .total_size = 16384,
4844 .page_size = 256,
4845 /* OTP: 512B total; enter 0x3A */
4846 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4847 .tested = TEST_OK_PREW,
4848 .probe = probe_spi_rdid,
4849 .probe_timing = TIMING_ZERO,
4850 .block_erasers =
4851 {
4852 {
4853 .eraseblocks = { {4 * 1024, 4096} },
4854 .block_erase = spi_block_erase_20,
4855 }, {
4856 .eraseblocks = { {64 * 1024, 256} },
4857 .block_erase = spi_block_erase_d8,
4858 }, {
4859 .eraseblocks = { {16 * 1024 * 1024, 1} },
4860 .block_erase = spi_block_erase_60,
4861 }, {
4862 .eraseblocks = { {16 * 1024 * 1024, 1} },
4863 .block_erase = spi_block_erase_c7,
4864 }
4865 },
4866 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4867 .unlock = spi_disable_blockprotect,
4868 .write = spi_chip_write_256,
4869 .read = spi_chip_read,
4870 },
4871
4872 {
David Hendricks6d715302011-07-24 22:21:57 +00004873 /* Note: EN25D16 is an evil twin which shares the model ID
4874 but has different write protection capabilities */
4875 .vendor = "Eon",
4876 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004877 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004878 .manufacture_id = EON_ID_NOPREFIX,
4879 .model_id = EON_EN25Q16,
4880 .total_size = 2048,
4881 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004882 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4883 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004884 .tested = TEST_UNTESTED,
4885 .probe = probe_spi_rdid,
4886 .probe_timing = TIMING_ZERO,
4887 .block_erasers =
4888 {
4889 {
4890 .eraseblocks = { {4 * 1024, 512} },
4891 .block_erase = spi_block_erase_20,
4892 }, {
4893 .eraseblocks = { {64 * 1024, 32} },
4894 .block_erase = spi_block_erase_d8,
4895 }, {
4896 /* not supported by Q16 version */
4897 .eraseblocks = { {64 * 1024, 32} },
4898 .block_erase = spi_block_erase_52,
4899 }, {
4900 .eraseblocks = { {2 * 1024 * 1024, 1} },
4901 .block_erase = spi_block_erase_60,
4902 }, {
4903 .eraseblocks = { {2 * 1024 * 1024, 1} },
4904 .block_erase = spi_block_erase_c7,
4905 }
4906 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004907 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004908 .unlock = spi_disable_blockprotect,
4909 .write = spi_chip_write_256,
4910 .read = spi_chip_read,
4911 .voltage = {2700, 3600},
4912 },
4913
4914 {
4915 .vendor = "Eon",
4916 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004917 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004918 .manufacture_id = EON_ID_NOPREFIX,
4919 .model_id = EON_EN25Q32,
4920 .total_size = 4096,
4921 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004922 /* OTP: 512B total; enter 0x3A */
4923 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004924 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004925 .probe = probe_spi_rdid,
4926 .probe_timing = TIMING_ZERO,
4927 .block_erasers =
4928 {
4929 {
4930 .eraseblocks = { {4 * 1024, 1024} },
4931 .block_erase = spi_block_erase_20,
4932 }, {
4933 .eraseblocks = { {64 * 1024, 64} },
4934 .block_erase = spi_block_erase_d8,
4935 }, {
4936 .eraseblocks = { {4 * 1024 * 1024, 1} },
4937 .block_erase = spi_block_erase_60,
4938 }, {
4939 .eraseblocks = { {4 * 1024 * 1024, 1} },
4940 .block_erase = spi_block_erase_c7,
4941 }
4942 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004943 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004944 .unlock = spi_disable_blockprotect,
4945 .write = spi_chip_write_256,
4946 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004947 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004948 },
4949
4950 {
4951 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004952 .name = "EN25Q40",
4953 .bustype = BUS_SPI,
4954 .manufacture_id = EON_ID_NOPREFIX,
4955 .model_id = EON_EN25Q40,
4956 .total_size = 512,
4957 .page_size = 256,
4958 /* OTP: 256B total; enter 0x3A */
4959 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4960 .tested = TEST_UNTESTED,
4961 .probe = probe_spi_rdid,
4962 .probe_timing = TIMING_ZERO,
4963 .block_erasers =
4964 {
4965 {
4966 .eraseblocks = { {4 * 1024, 128} },
4967 .block_erase = spi_block_erase_20,
4968 }, {
4969 .eraseblocks = { {64 * 1024, 8} },
4970 .block_erase = spi_block_erase_d8,
4971 }, {
4972 .eraseblocks = { {512 * 1024, 1} },
4973 .block_erase = spi_block_erase_60,
4974 }, {
4975 .eraseblocks = { {512 * 1024, 1} },
4976 .block_erase = spi_block_erase_c7,
4977 }
4978 },
4979 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4980 .unlock = spi_disable_blockprotect,
4981 .write = spi_chip_write_256,
4982 .read = spi_chip_read,
4983 .voltage = {2700, 3600},
4984 },
4985
4986 {
4987 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004988 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004989 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004990 .manufacture_id = EON_ID_NOPREFIX,
4991 .model_id = EON_EN25Q64,
4992 .total_size = 8192,
4993 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004994 /* OTP: 512B total; enter 0x3A */
4995 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004996 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004997 .probe = probe_spi_rdid,
4998 .probe_timing = TIMING_ZERO,
4999 .block_erasers =
5000 {
5001 {
5002 .eraseblocks = { {4 * 1024, 2048} },
5003 .block_erase = spi_block_erase_20,
5004 }, {
5005 .eraseblocks = { {64 * 1024, 128} },
5006 .block_erase = spi_block_erase_d8,
5007 }, {
5008 .eraseblocks = { {8 * 1024 * 1024, 1} },
5009 .block_erase = spi_block_erase_60,
5010 }, {
5011 .eraseblocks = { {8 * 1024 * 1024, 1} },
5012 .block_erase = spi_block_erase_c7,
5013 }
5014 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005015 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00005016 .unlock = spi_disable_blockprotect,
5017 .write = spi_chip_write_256,
5018 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00005019 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005020 },
5021
5022 {
5023 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005024 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005025 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005026 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005027 .model_id = EON_EN25Q80,
5028 .total_size = 1024,
5029 .page_size = 256,
5030 /* OTP: 256B total; enter 0x3A */
5031 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5032 .tested = TEST_UNTESTED,
5033 .probe = probe_spi_rdid,
5034 .probe_timing = TIMING_ZERO,
5035 .block_erasers =
5036 {
5037 {
5038 .eraseblocks = { {4 * 1024, 256} },
5039 .block_erase = spi_block_erase_20,
5040 }, {
5041 .eraseblocks = { {64 * 1024, 16} },
5042 .block_erase = spi_block_erase_d8,
5043 }, {
5044 .eraseblocks = { {1024 * 1024, 1} },
5045 .block_erase = spi_block_erase_60,
5046 }, {
5047 .eraseblocks = { {1024 * 1024, 1} },
5048 .block_erase = spi_block_erase_c7,
5049 }
5050 },
5051 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5052 .unlock = spi_disable_blockprotect,
5053 .write = spi_chip_write_256,
5054 .read = spi_chip_read,
5055 .voltage = {2700, 3600},
5056 },
5057
5058 {
5059 .vendor = "Eon",
5060 .name = "EN25QH128",
5061 .bustype = BUS_SPI,
5062 .manufacture_id = EON_ID_NOPREFIX,
5063 .model_id = EON_EN25QH128,
David Hendricks6d715302011-07-24 22:21:57 +00005064 .total_size = 16384,
5065 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005066 /* supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00005067 /* OTP: 512B total; enter 0x3A */
Alan Green1f9cc7d2019-07-01 11:10:45 +10005068 /* QPI enable 0x38, disable 0xFF */
5069 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5070 .tested = TEST_UNTESTED,
David Hendricks6d715302011-07-24 22:21:57 +00005071 .probe = probe_spi_rdid,
5072 .probe_timing = TIMING_ZERO,
5073 .block_erasers =
5074 {
5075 {
5076 .eraseblocks = { {4 * 1024, 4096} },
5077 .block_erase = spi_block_erase_20,
5078 }, {
5079 .eraseblocks = { {64 * 1024, 256} },
5080 .block_erase = spi_block_erase_d8,
5081 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005082 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005083 .block_erase = spi_block_erase_60,
5084 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005085 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005086 .block_erase = spi_block_erase_c7,
5087 }
5088 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005089 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5090 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005091 .write = spi_chip_write_256,
5092 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005093 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005094 },
5095
5096 {
5097 .vendor = "Eon",
5098 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005099 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005100 .manufacture_id = EON_ID_NOPREFIX,
5101 .model_id = EON_EN25QH16,
5102 .total_size = 2048,
5103 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005104 /* supports SFDP */
5105 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005106 /* QPI enable 0x38, disable 0xFF */
5107 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00005108 .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, 512} },
5115 .block_erase = spi_block_erase_20,
5116 }, {
5117 .eraseblocks = { {64 * 1024, 32} },
5118 .block_erase = spi_block_erase_d8,
5119 }, {
5120 .eraseblocks = { {1024 * 2048, 1} },
5121 .block_erase = spi_block_erase_60,
5122 }, {
5123 .eraseblocks = { {1024 * 2048, 1} },
5124 .block_erase = spi_block_erase_c7,
5125 }
5126 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005127 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005128 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005129 .write = spi_chip_write_256,
5130 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005131 .voltage = {2700, 3600},
5132 },
5133
5134 {
5135 .vendor = "Eon",
5136 .name = "EN25QH32",
5137 .bustype = BUS_SPI,
5138 .manufacture_id = EON_ID_NOPREFIX,
5139 .model_id = EON_EN25QH32,
5140 .total_size = 4096,
5141 .page_size = 256,
5142 /* 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 Tauner23e10b82016-01-23 16:16:49 +00005146 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005147 .probe = probe_spi_rdid,
5148 .probe_timing = TIMING_ZERO,
5149 .block_erasers =
5150 {
5151 {
5152 .eraseblocks = { {4 * 1024, 1024} },
5153 .block_erase = spi_block_erase_20,
5154 }, {
5155 .eraseblocks = { {64 * 1024, 64} },
5156 .block_erase = spi_block_erase_d8,
5157 }, {
5158 .eraseblocks = { {1024 * 4096, 1} },
5159 .block_erase = spi_block_erase_60,
5160 }, {
5161 .eraseblocks = { {1024 * 4096, 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,
5167 .write = spi_chip_write_256,
5168 .read = spi_chip_read,
5169 .voltage = {2700, 3600},
5170 },
5171
5172 {
5173 .vendor = "Eon",
5174 .name = "EN25QH64",
5175 .bustype = BUS_SPI,
5176 .manufacture_id = EON_ID_NOPREFIX,
5177 .model_id = EON_EN25QH64,
5178 .total_size = 8192,
5179 .page_size = 256,
5180 /* supports SFDP */
5181 /* OTP: 512B total; enter 0x3A */
5182 /* 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,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005185 .probe = probe_spi_rdid,
5186 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005187 .block_erasers =
5188 {
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005189 {
5190 .eraseblocks = { {4 * 1024, 2048} },
5191 .block_erase = spi_block_erase_20,
5192 }, {
5193 .eraseblocks = { {64 * 1024, 128} },
5194 .block_erase = spi_block_erase_d8,
5195 }, {
5196 .eraseblocks = { { 8192 * 1024, 1} },
5197 .block_erase = spi_block_erase_60,
5198 }, {
5199 .eraseblocks = { { 8192 * 1024, 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",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005212 .name = "EN25S10",
5213 .bustype = BUS_SPI,
5214 .manufacture_id = EON_ID_NOPREFIX,
5215 .model_id = EON_EN25S10,
5216 .total_size = 128,
5217 .page_size = 256,
5218 /* OTP: 256B total; enter 0x3A */
5219 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5220 .tested = TEST_UNTESTED,
5221 .probe = probe_spi_rdid,
5222 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005223 .block_erasers =
5224 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005225 {
5226 .eraseblocks = { {4 * 1024, 32} },
5227 .block_erase = spi_block_erase_20,
5228 }, {
5229 .eraseblocks = { {32 * 1024, 4} },
5230 .block_erase = spi_block_erase_52,
5231 }, {
5232 .eraseblocks = { {128 * 1024, 1} },
5233 .block_erase = spi_block_erase_60,
5234 }, {
5235 .eraseblocks = { {128 * 1024, 1} },
5236 .block_erase = spi_block_erase_c7,
5237 }
5238 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005239 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005240 .unlock = spi_disable_blockprotect,
5241 .write = spi_chip_write_256,
5242 .read = spi_chip_read,
5243 .voltage = {1650, 1950},
5244 },
5245
5246 {
5247 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005248 .name = "EN25S16",
5249 .bustype = BUS_SPI,
5250 .manufacture_id = EON_ID_NOPREFIX,
5251 .model_id = EON_EN25S16,
5252 .total_size = 2048,
5253 .page_size = 256,
5254 /* OTP: 512B total; enter 0x3A */
5255 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5256 .tested = TEST_UNTESTED,
5257 .probe = probe_spi_rdid,
5258 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005259 .block_erasers =
5260 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005261 {
5262 .eraseblocks = { {4 * 1024, 512} },
5263 .block_erase = spi_block_erase_20,
5264 }, {
5265 .eraseblocks = { {64 * 1024, 32} },
5266 .block_erase = spi_block_erase_52,
5267 }, {
5268 .eraseblocks = { {32 * 1024, 64} },
5269 .block_erase = spi_block_erase_d8,
5270 }, {
5271 .eraseblocks = { {2048 * 1024, 1} },
5272 .block_erase = spi_block_erase_60,
5273 }, {
5274 .eraseblocks = { {2048 * 1024, 1} },
5275 .block_erase = spi_block_erase_c7,
5276 }
5277 },
5278 .printlock = spi_prettyprint_status_register_en25s_wp,
5279 .unlock = spi_disable_blockprotect_bp3_srwd,
5280 .write = spi_chip_write_256,
5281 .read = spi_chip_read,
5282 .voltage = {1650, 1950},
5283 },
5284
5285 {
5286 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005287 .name = "EN25S20",
5288 .bustype = BUS_SPI,
5289 .manufacture_id = EON_ID_NOPREFIX,
5290 .model_id = EON_EN25S20,
5291 .total_size = 256,
5292 .page_size = 256,
5293 /* OTP: 256B total; enter 0x3A */
5294 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5295 .tested = TEST_UNTESTED,
5296 .probe = probe_spi_rdid,
5297 .probe_timing = TIMING_ZERO,
5298 .block_erasers =
5299 {
5300 {
5301 .eraseblocks = { {4 * 1024, 64} },
5302 .block_erase = spi_block_erase_20,
5303 }, {
5304 .eraseblocks = { {64 * 1024, 4} },
5305 .block_erase = spi_block_erase_d8,
5306 }, {
5307 .eraseblocks = { {256 * 1024, 1} },
5308 .block_erase = spi_block_erase_60,
5309 }, {
5310 .eraseblocks = { {256 * 1024, 1} },
5311 .block_erase = spi_block_erase_c7,
5312 }
5313 },
5314 .printlock = spi_prettyprint_status_register_bp2_srwd,
5315 .unlock = spi_disable_blockprotect,
5316 .write = spi_chip_write_256,
5317 .read = spi_chip_read,
5318 .voltage = {1650, 1950},
5319 },
5320
5321 {
5322 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005323 .name = "EN25S32",
5324 .bustype = BUS_SPI,
5325 .manufacture_id = EON_ID_NOPREFIX,
5326 .model_id = EON_EN25S32,
5327 .total_size = 4096,
5328 .page_size = 256,
5329 /* OTP: 512B total; enter 0x3A */
5330 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5331 .tested = TEST_UNTESTED,
5332 .probe = probe_spi_rdid,
5333 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005334 .block_erasers =
5335 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005336 {
5337 .eraseblocks = { {4 * 1024, 1024} },
5338 .block_erase = spi_block_erase_20,
5339 }, {
5340 .eraseblocks = { {32 * 1024, 128} },
5341 .block_erase = spi_block_erase_52,
5342 }, {
5343 .eraseblocks = { {64 * 1024, 64} },
5344 .block_erase = spi_block_erase_d8,
5345 }, {
5346 .eraseblocks = { {4096 * 1024, 1} },
5347 .block_erase = spi_block_erase_60,
5348 }, {
5349 .eraseblocks = { {4096 * 1024, 1} },
5350 .block_erase = spi_block_erase_c7,
5351 }
5352 },
5353 .printlock = spi_prettyprint_status_register_en25s_wp,
5354 .unlock = spi_disable_blockprotect_bp3_srwd,
5355 .write = spi_chip_write_256,
5356 .read = spi_chip_read,
5357 .voltage = {1650, 1950},
5358 },
5359
5360 {
5361 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005362 .name = "EN25S40",
5363 .bustype = BUS_SPI,
5364 .manufacture_id = EON_ID_NOPREFIX,
5365 .model_id = EON_EN25S40,
5366 .total_size = 512,
5367 .page_size = 256,
5368 /* OTP: 256B total; enter 0x3A */
5369 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5370 .tested = TEST_OK_PREW,
5371 .probe = probe_spi_rdid,
5372 .probe_timing = TIMING_ZERO,
5373 .block_erasers =
5374 {
5375 {
5376 .eraseblocks = { {4 * 1024, 128} },
5377 .block_erase = spi_block_erase_20,
5378 }, {
5379 .eraseblocks = { {64 * 1024, 8} },
5380 .block_erase = spi_block_erase_d8,
5381 }, {
5382 .eraseblocks = { {512 * 1024, 1} },
5383 .block_erase = spi_block_erase_60,
5384 }, {
5385 .eraseblocks = { {512 * 1024, 1} },
5386 .block_erase = spi_block_erase_c7,
5387 }
5388 },
5389 .printlock = spi_prettyprint_status_register_bp2_srwd,
5390 .unlock = spi_disable_blockprotect,
5391 .write = spi_chip_write_256,
5392 .read = spi_chip_read,
5393 .voltage = {1650, 1950},
5394 },
5395
5396 {
5397 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005398 .name = "EN25S64",
5399 .bustype = BUS_SPI,
5400 .manufacture_id = EON_ID_NOPREFIX,
5401 .model_id = EON_EN25S64,
5402 .total_size = 8192,
5403 .page_size = 256,
5404 /* OTP: 512B total; enter 0x3A */
5405 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5406 .tested = TEST_UNTESTED,
5407 .probe = probe_spi_rdid,
5408 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005409 .block_erasers =
5410 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005411 {
5412 .eraseblocks = { {4 * 1024, 2048} },
5413 .block_erase = spi_block_erase_20,
5414 }, {
5415 .eraseblocks = { {64 * 1024, 128} },
5416 .block_erase = spi_block_erase_d8,
5417 }, {
5418 .eraseblocks = { {8192 * 1024, 1} },
5419 .block_erase = spi_block_erase_60,
5420 }, {
5421 .eraseblocks = { {8192 * 1024, 1} },
5422 .block_erase = spi_block_erase_c7,
5423 }
5424 },
5425 .printlock = spi_prettyprint_status_register_en25s_wp,
5426 .unlock = spi_disable_blockprotect_bp3_srwd,
5427 .write = spi_chip_write_256,
5428 .read = spi_chip_read,
5429 .voltage = {1650, 1950},
5430 },
5431
5432 {
5433 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005434 .name = "EN25S80",
5435 .bustype = BUS_SPI,
5436 .manufacture_id = EON_ID_NOPREFIX,
5437 .model_id = EON_EN25S80,
5438 .total_size = 1024,
5439 .page_size = 256,
5440 /* OTP: 256B total; enter 0x3A */
5441 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5442 .tested = TEST_UNTESTED,
5443 .probe = probe_spi_rdid,
5444 .probe_timing = TIMING_ZERO,
Russ Dill3cd5a122010-03-05 08:44:11 +00005445 .block_erasers =
5446 {
5447 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005448 .eraseblocks = { {4 * 1024, 256} },
5449 .block_erase = spi_block_erase_20,
5450 }, {
5451 .eraseblocks = { {64 * 1024, 16} },
5452 .block_erase = spi_block_erase_d8,
5453 }, {
5454 .eraseblocks = { {1024 * 1024, 1} },
5455 .block_erase = spi_block_erase_60,
5456 }, {
5457 .eraseblocks = { {1024 * 1024, 1} },
5458 .block_erase = spi_block_erase_c7,
5459 }
Russ Dill3cd5a122010-03-05 08:44:11 +00005460 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005461 .printlock = spi_prettyprint_status_register_bp2_srwd,
5462 .unlock = spi_disable_blockprotect,
5463 .write = spi_chip_write_256,
5464 .read = spi_chip_read,
5465 .voltage = {1650, 1950},
Russ Dill3cd5a122010-03-05 08:44:11 +00005466 },
5467
5468 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005469 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005470 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005471 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005472 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005473 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005474 .total_size = 256,
5475 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005476 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Alan Green4362e622019-08-26 15:02:12 +10005477 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005478 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005479 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005480 .block_erasers =
5481 {
5482 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005483 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005484 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005485 {8 * 1024, 2},
5486 {32 * 1024, 1},
5487 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005488 },
5489 .block_erase = erase_sector_jedec,
5490 }, {
5491 .eraseblocks = { {256 * 1024, 1} },
5492 .block_erase = erase_chip_block_jedec,
5493 },
5494 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005495 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005496 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005497 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005498 },
5499
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005500 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005501 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005502 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005503 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005504 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005505 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005506 .total_size = 256,
5507 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005508 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005509 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005510 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005511 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005512 .block_erasers =
5513 {
5514 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005515 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005516 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005517 {32 * 1024, 1},
5518 {8 * 1024, 2},
5519 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005520 },
5521 .block_erase = erase_sector_jedec,
5522 }, {
5523 .eraseblocks = { {256 * 1024, 1} },
5524 .block_erase = erase_chip_block_jedec,
5525 },
5526 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005527 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005528 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005529 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005530 },
5531
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005532 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005533 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005534 .name = "EN29F010",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005535 .bustype = BUS_PARALLEL,
5536 .manufacture_id = EON_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005537 .model_id = EON_EN29F010,
5538 .total_size = 128,
5539 .page_size = 128,
5540 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5541 .tested = TEST_OK_PRE,
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005542 .probe = probe_jedec,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005543 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005544 .block_erasers =
5545 {
5546 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005547 .eraseblocks = { {16 * 1024, 8} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005548 .block_erase = erase_sector_jedec,
5549 },
5550 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005551 .eraseblocks = { {128 * 1024, 1} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005552 .block_erase = erase_chip_block_jedec,
5553 },
5554 },
5555 .write = write_jedec_1,
5556 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005557 .voltage = {4500, 5500},
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005558 },
5559
5560 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005561 .vendor = "Eon",
5562 .name = "EN29GL064(A)B",
5563 .bustype = BUS_PARALLEL,
5564 .manufacture_id = EON_ID,
5565 .model_id = EON_EN29GL064B,
5566 .total_size = 8192,
5567 .page_size = 128 * 1024, /* actual page size is 16 */
5568 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5569 .tested = TEST_UNTESTED,
5570 .probe = probe_jedec_29gl,
5571 .probe_timing = TIMING_ZERO,
5572 .block_erasers =
5573 {
5574 {
5575 .eraseblocks = {
5576 {8 * 1024, 8},
5577 {64 * 1024, 127},
5578 },
5579 .block_erase = erase_sector_jedec,
5580 }, {
5581 .eraseblocks = { {8 * 1024 * 1024, 1} },
5582 .block_erase = erase_chip_block_jedec,
5583 },
5584 },
5585 .write = write_jedec_1,
5586 .read = read_memmapped,
5587 .voltage = {2700, 3600},
5588 },
5589
5590 {
5591 .vendor = "Eon",
5592 .name = "EN29GL064(A)T",
5593 .bustype = BUS_PARALLEL,
5594 .manufacture_id = EON_ID,
5595 .model_id = EON_EN29GL064T,
5596 .total_size = 8192,
5597 .page_size = 128 * 1024, /* actual page size is 16 */
5598 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5599 .tested = TEST_UNTESTED,
5600 .probe = probe_jedec_29gl,
5601 .probe_timing = TIMING_ZERO,
5602 .block_erasers =
5603 {
5604 {
5605 .eraseblocks = {
5606 {64 * 1024, 127},
5607 {8 * 1024, 8},
5608 },
5609 .block_erase = erase_sector_jedec,
5610 }, {
5611 .eraseblocks = { {8 * 1024 * 1024, 1} },
5612 .block_erase = erase_chip_block_jedec,
5613 },
5614 },
5615 .write = write_jedec_1,
5616 .read = read_memmapped,
5617 .voltage = {2700, 3600},
5618 },
5619
5620 {
5621 .vendor = "Eon",
5622 .name = "EN29GL064H/L",
5623 .bustype = BUS_PARALLEL,
5624 .manufacture_id = EON_ID,
5625 .model_id = EON_EN29GL064HL,
5626 .total_size = 8192,
5627 .page_size = 128 * 1024, /* actual page size is 16 */
5628 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5629 .tested = TEST_UNTESTED,
5630 .probe = probe_jedec_29gl,
5631 .probe_timing = TIMING_ZERO,
5632 .block_erasers =
5633 {
5634 {
5635 .eraseblocks = { {64 * 1024, 128} },
5636 .block_erase = erase_sector_jedec,
5637 }, {
5638 .eraseblocks = { {8 * 1024 * 1024, 1} },
5639 .block_erase = erase_chip_block_jedec,
5640 },
5641 },
5642 .write = write_jedec_1,
5643 .read = read_memmapped,
5644 .voltage = {2700, 3600},
5645 },
5646
5647 {
5648 .vendor = "Eon",
5649 .name = "EN29GL128",
5650 .bustype = BUS_PARALLEL,
5651 .manufacture_id = EON_ID,
5652 .model_id = EON_EN29GL128HL,
5653 .total_size = 16384,
5654 .page_size = 128 * 1024, /* actual page size is 16 */
5655 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5656 .tested = TEST_UNTESTED,
5657 .probe = probe_jedec_29gl,
5658 .probe_timing = TIMING_ZERO,
5659 .block_erasers =
5660 {
5661 {
5662 .eraseblocks = { {128 * 1024, 128} },
5663 .block_erase = erase_sector_jedec,
5664 }, {
5665 .eraseblocks = { {16 * 1024 * 1024, 1} },
5666 .block_erase = erase_chip_block_jedec,
5667 },
5668 },
5669 .write = write_jedec_1,
5670 .read = read_memmapped,
5671 .voltage = {2700, 3600},
5672 },
5673
5674 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005675 .vendor = "Eon",
5676 .name = "EN29LV040(A)",
5677 .bustype = BUS_PARALLEL,
5678 .manufacture_id = EON_ID,
5679 .model_id = EON_EN29LV040,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005680 .total_size = 512,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005681 .page_size = 4 * 1024,
5682 .tested = TEST_OK_PREW,
5683 .probe = probe_jedec,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005684 .probe_timing = TIMING_ZERO,
5685 .block_erasers =
5686 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005687 {
5688 .eraseblocks = { {64 * 1024, 8} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005689 .block_erase = erase_sector_jedec,
5690 },
5691 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005692 .eraseblocks = { {512 * 1024, 1} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005693 .block_erase = erase_chip_block_jedec,
5694 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005695 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005696 .write = write_jedec_1,
5697 .read = read_memmapped,
5698 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005699 },
5700
5701 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005702 .vendor = "Eon",
5703 .name = "EN29LV640B",
5704 .bustype = BUS_PARALLEL,
5705 .manufacture_id = EON_ID,
5706 .model_id = EON_EN29LV640B,
5707 .total_size = 8192,
5708 .page_size = 8192,
5709 .feature_bits = FEATURE_ADDR_SHIFTED,
5710 .tested = TEST_OK_PREW,
5711 .probe = probe_en29lv640b,
5712 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005713 .block_erasers =
5714 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005715 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005716 .eraseblocks = {
5717 {8 * 1024, 8},
5718 {64 * 1024, 127},
5719 },
5720 .block_erase = erase_block_jedec,
Stefan Tauner0be072c2016-03-13 15:16:30 +00005721 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005722 .eraseblocks = { {8 * 1024 * 1024, 1} },
5723 .block_erase = erase_chip_block_jedec,
5724 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005725 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005726 .write = write_en29lv640b,
5727 .read = read_memmapped,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005728 .voltage = {2700, 3600},
5729 },
5730
5731 {
Jakob Petersson0cf3e122019-02-18 01:55:43 +01005732 .vendor = "Fudan",
5733 .name = "FM25F005",
5734 .bustype = BUS_SPI,
5735 .manufacture_id = FUDAN_ID_NOPREFIX,
5736 .model_id = FUDAN_FM25F005,
5737 .total_size = 64,
5738 .page_size = 256,
5739 /* OTP: 256B total; enter 0x3A */
5740 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5741 .tested = TEST_UNTESTED,
5742 .probe = probe_spi_rdid,
5743 .probe_timing = TIMING_ZERO,
5744 .block_erasers = {
5745 {
5746 .eraseblocks = { {4 * 1024, 16} },
5747 .block_erase = spi_block_erase_20,
5748 }, {
5749 .eraseblocks = { {32 * 1024, 2} },
5750 .block_erase = spi_block_erase_52,
5751 }, {
5752 .eraseblocks = { {64 * 1024, 1} },
5753 .block_erase = spi_block_erase_d8,
5754 }, {
5755 .eraseblocks = { {64 * 1024, 1} },
5756 .block_erase = spi_block_erase_60,
5757 }, {
5758 .eraseblocks = { {64 * 1024, 1} },
5759 .block_erase = spi_block_erase_c7,
5760 }
5761 },
5762 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5763 .unlock = spi_disable_blockprotect_bp2_srwd,
5764 .write = spi_chip_write_256,
5765 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5766 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5767 },
5768
5769 {
5770 .vendor = "Fudan",
5771 .name = "FM25F01",
5772 .bustype = BUS_SPI,
5773 .manufacture_id = FUDAN_ID_NOPREFIX,
5774 .model_id = FUDAN_FM25F01,
5775 .total_size = 128,
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, 32} },
5785 .block_erase = spi_block_erase_20,
5786 }, {
5787 .eraseblocks = { {32 * 1024, 4} },
5788 .block_erase = spi_block_erase_52,
5789 }, {
5790 .eraseblocks = { {64 * 1024, 2} },
5791 .block_erase = spi_block_erase_d8,
5792 }, {
5793 .eraseblocks = { {128 * 1024, 1} },
5794 .block_erase = spi_block_erase_60,
5795 }, {
5796 .eraseblocks = { {128 * 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 = "FM25F02(A)",
5810 .bustype = BUS_SPI,
5811 .manufacture_id = FUDAN_ID_NOPREFIX,
5812 .model_id = FUDAN_FM25F02,
5813 .total_size = 256,
5814 .page_size = 256,
5815 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
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, 64} },
5823 .block_erase = spi_block_erase_20,
5824 }, {
5825 .eraseblocks = { {32 * 1024, 8} },
5826 .block_erase = spi_block_erase_52,
5827 }, {
5828 .eraseblocks = { {64 * 1024, 4} },
5829 .block_erase = spi_block_erase_d8,
5830 }, {
5831 .eraseblocks = { {1024 * 256, 1} },
5832 .block_erase = spi_block_erase_60,
5833 }, {
5834 .eraseblocks = { {1024 * 256, 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 = "FM25F04(A)",
5848 .bustype = BUS_SPI,
5849 .manufacture_id = FUDAN_ID_NOPREFIX,
5850 .model_id = FUDAN_FM25F04,
5851 .total_size = 512,
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, 128} },
5861 .block_erase = spi_block_erase_20,
5862 }, {
5863 .eraseblocks = { {32 * 1024, 16} },
5864 .block_erase = spi_block_erase_52,
5865 }, {
5866 .eraseblocks = { {64 * 1024, 8} },
5867 .block_erase = spi_block_erase_d8,
5868 }, {
5869 .eraseblocks = { {1024 * 512, 1} },
5870 .block_erase = spi_block_erase_60,
5871 }, {
5872 .eraseblocks = { {1024 * 512, 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},
5881 },
5882
5883 {
5884 .vendor = "Fudan",
5885 .name = "FM25Q08",
5886 .bustype = BUS_SPI,
5887 .manufacture_id = FUDAN_ID_NOPREFIX,
5888 .model_id = FUDAN_FM25Q08,
5889 .total_size = 1024,
5890 .page_size = 256,
5891 /* supports SFDP */
5892 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
5893 /* QPI enable 0x38, disable 0xFF */
5894 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5895 .tested = TEST_UNTESTED,
5896 .probe = probe_spi_rdid,
5897 .probe_timing = TIMING_ZERO,
5898 .block_erasers = {
5899 {
5900 .eraseblocks = { {4 * 1024, 256} },
5901 .block_erase = spi_block_erase_20,
5902 }, {
5903 .eraseblocks = { {32 * 1024, 32} },
5904 .block_erase = spi_block_erase_52,
5905 }, {
5906 .eraseblocks = { {64 * 1024, 16} },
5907 .block_erase = spi_block_erase_d8,
5908 }, {
5909 .eraseblocks = { {1024 * 1024, 1} },
5910 .block_erase = spi_block_erase_60,
5911 }, {
5912 .eraseblocks = { {1024 * 1024, 1} },
5913 .block_erase = spi_block_erase_c7,
5914 },
5915 },
5916 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
5917 .unlock = spi_disable_blockprotect_bp2_srwd,
5918 .write = spi_chip_write_256,
5919 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5920 .voltage = {2700, 3600},
5921 },
5922
5923 {
5924 .vendor = "Fudan",
5925 .name = "FM25Q16",
5926 .bustype = BUS_SPI,
5927 .manufacture_id = FUDAN_ID_NOPREFIX,
5928 .model_id = FUDAN_FM25Q16,
5929 .total_size = 2048,
5930 .page_size = 256,
5931 /* supports SFDP */
5932 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
5933 /* QPI enable 0x38, disable 0xFF */
5934 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5935 .tested = TEST_UNTESTED,
5936 .probe = probe_spi_rdid,
5937 .probe_timing = TIMING_ZERO,
5938 .block_erasers = {
5939 {
5940 .eraseblocks = { {4 * 1024, 512} },
5941 .block_erase = spi_block_erase_20,
5942 }, {
5943 .eraseblocks = { {32 * 1024, 64} },
5944 .block_erase = spi_block_erase_52,
5945 }, {
5946 .eraseblocks = { {64 * 1024, 32} },
5947 .block_erase = spi_block_erase_d8,
5948 }, {
5949 .eraseblocks = { {2 * 1024 * 1024, 1} },
5950 .block_erase = spi_block_erase_60,
5951 }, {
5952 .eraseblocks = { {2 * 1024 * 1024, 1} },
5953 .block_erase = spi_block_erase_c7,
5954 }
5955 },
5956 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
5957 .unlock = spi_disable_blockprotect_bp2_srwd,
5958 .write = spi_chip_write_256,
5959 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5960 .voltage = {2700, 3600},
5961 },
5962
5963 {
5964 .vendor = "Fudan",
5965 .name = "FM25Q32",
5966 .bustype = BUS_SPI,
5967 .manufacture_id = FUDAN_ID_NOPREFIX,
5968 .model_id = FUDAN_FM25Q32,
5969 .total_size = 4096,
5970 .page_size = 256,
5971 /* supports SFDP */
5972 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
5973 /* QPI enable 0x38, disable 0xFF */
5974 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5975 .tested = TEST_UNTESTED,
5976 .probe = probe_spi_rdid,
5977 .probe_timing = TIMING_ZERO,
5978 .block_erasers = {
5979 {
5980 .eraseblocks = { {4 * 1024, 1024} },
5981 .block_erase = spi_block_erase_20,
5982 }, {
5983 .eraseblocks = { {32 * 1024, 128} },
5984 .block_erase = spi_block_erase_52,
5985 }, {
5986 .eraseblocks = { {64 * 1024, 64} },
5987 .block_erase = spi_block_erase_d8,
5988 }, {
5989 .eraseblocks = { {4 * 1024 * 1024, 1} },
5990 .block_erase = spi_block_erase_60,
5991 }, {
5992 .eraseblocks = { {4 * 1024 * 1024, 1} },
5993 .block_erase = spi_block_erase_c7,
5994 },
5995 },
5996 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
5997 .unlock = spi_disable_blockprotect_bp2_srwd,
5998 .write = spi_chip_write_256,
5999 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6000 .voltage = {2700, 3600},
6001 },
6002
6003 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006004 .vendor = "Fujitsu",
6005 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006006 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006007 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006008 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006009 .total_size = 512,
6010 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006011 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006012 .tested = TEST_UNTESTED,
6013 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006014 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006015 .block_erasers =
6016 {
6017 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006018 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006019 {16 * 1024, 1},
6020 {8 * 1024, 2},
6021 {32 * 1024, 1},
6022 {64 * 1024, 7},
6023 },
Sean Nelson35727f72010-01-28 23:55:12 +00006024 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006025 }, {
6026 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006027 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006028 },
6029 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006030 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006031 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006032 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006033 },
6034
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006035 {
6036 .vendor = "Fujitsu",
6037 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006038 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006039 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006040 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006041 .total_size = 512,
6042 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006043 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006044 .tested = TEST_UNTESTED,
6045 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006046 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006047 .block_erasers =
6048 {
6049 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006050 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006051 {64 * 1024, 7},
6052 {32 * 1024, 1},
6053 {8 * 1024, 2},
6054 {16 * 1024, 1},
6055 },
Sean Nelson35727f72010-01-28 23:55:12 +00006056 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006057 }, {
6058 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006059 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006060 },
6061 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006062 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006063 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006064 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006065 },
6066
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006067 {
Sean Nelson35727f72010-01-28 23:55:12 +00006068 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006069 .vendor = "Fujitsu",
6070 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006071 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006072 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006073 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006074 .total_size = 512,
6075 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006076 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006077 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006078 .probe = probe_jedec,
6079 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006080 .block_erasers =
6081 {
6082 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006083 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006084 {16 * 1024, 1},
6085 {8 * 1024, 2},
6086 {32 * 1024, 1},
6087 {64 * 1024, 7},
6088 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006089 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006090 }, {
6091 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006092 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006093 },
6094 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006095 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006096 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006097 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00006098 },
6099
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006100 {
6101 .vendor = "Fujitsu",
6102 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006103 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006104 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006105 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006106 .total_size = 512,
6107 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006108 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006109 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006110 .probe = probe_jedec,
6111 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006112 .block_erasers =
6113 {
6114 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006115 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006116 {64 * 1024, 7},
6117 {32 * 1024, 1},
6118 {8 * 1024, 2},
6119 {16 * 1024, 1},
6120 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006121 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006122 }, {
6123 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006124 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006125 },
6126 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006127 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006128 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006129 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00006130 },
6131
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006132 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006133 .vendor = "Fujitsu",
6134 .name = "MBM29LV160BE",
6135 .bustype = BUS_PARALLEL,
6136 .manufacture_id = FUJITSU_ID,
6137 .model_id = FUJITSU_MBM29LV160BE,
6138 .total_size = 2 * 1024,
6139 .page_size = 0,
6140 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6141 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006142 .probe = probe_jedec,
6143 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006144 .block_erasers =
6145 {
6146 {
6147 .eraseblocks = {
6148 {16 * 1024, 1},
6149 {8 * 1024, 2},
6150 {32 * 1024, 1},
6151 {64 * 1024, 31},
6152 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006153 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006154 }, {
6155 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006156 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006157 },
6158 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006159 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006160 .read = read_memmapped,
6161 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
6162 },
6163
6164 {
6165 .vendor = "Fujitsu",
6166 .name = "MBM29LV160TE",
6167 .bustype = BUS_PARALLEL,
6168 .manufacture_id = FUJITSU_ID,
6169 .model_id = FUJITSU_MBM29LV160TE,
6170 .total_size = 2 * 1024,
6171 .page_size = 0,
6172 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6173 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006174 .probe = probe_jedec,
6175 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006176 .block_erasers =
6177 {
6178 {
6179 .eraseblocks = {
6180 {64 * 1024, 31},
6181 {32 * 1024, 1},
6182 {8 * 1024, 2},
6183 {16 * 1024, 1},
6184 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006185 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006186 }, {
6187 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006188 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006189 },
6190 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006191 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006192 .read = read_memmapped,
6193 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
6194 },
6195
6196 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006197 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006198 .name = "GD25B128B/GD25Q128B",
Roman Titov95edc892015-04-03 21:29:04 +00006199 .bustype = BUS_SPI,
6200 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006201 .model_id = GIGADEVICE_GD25Q128,
6202 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006203 .page_size = 256,
6204 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6205 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006206 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006207 .probe = probe_spi_rdid,
6208 .probe_timing = TIMING_ZERO,
6209 .block_erasers =
6210 {
6211 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006212 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006213 .block_erase = spi_block_erase_20,
6214 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006215 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006216 .block_erase = spi_block_erase_52,
6217 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006218 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006219 .block_erase = spi_block_erase_d8,
6220 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006221 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006222 .block_erase = spi_block_erase_60,
6223 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006224 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006225 .block_erase = spi_block_erase_c7,
6226 }
6227 },
6228 .printlock = spi_prettyprint_status_register_bp4_srwd,
6229 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6230 .write = spi_chip_write_256,
6231 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10006232 .voltage = {2700, 3600},
Roman Titov95edc892015-04-03 21:29:04 +00006233 },
6234
6235 {
6236 .vendor = "GigaDevice",
Alan Green188127e2019-08-06 16:10:34 +10006237 .name = "GD25LQ128C/GD25LQ128D",
Roman Titov95edc892015-04-03 21:29:04 +00006238 .bustype = BUS_SPI,
6239 .manufacture_id = GIGADEVICE_ID,
Alan Green188127e2019-08-06 16:10:34 +10006240 .model_id = GIGADEVICE_GD25LQ128CD,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006241 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006242 .page_size = 256,
6243 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6244 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green813a7e22021-01-08 08:48:17 +11006245 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006246 .probe = probe_spi_rdid,
6247 .probe_timing = TIMING_ZERO,
6248 .block_erasers =
6249 {
6250 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006251 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006252 .block_erase = spi_block_erase_20,
6253 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006254 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006255 .block_erase = spi_block_erase_52,
6256 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006257 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006258 .block_erase = spi_block_erase_d8,
6259 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006260 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006261 .block_erase = spi_block_erase_60,
6262 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006263 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006264 .block_erase = spi_block_erase_c7,
6265 }
6266 },
6267 .printlock = spi_prettyprint_status_register_bp4_srwd,
6268 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6269 .write = spi_chip_write_256,
6270 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6271 .voltage = {1695, 1950},
6272 },
6273
6274 {
6275 .vendor = "GigaDevice",
6276 .name = "GD25LQ16",
6277 .bustype = BUS_SPI,
6278 .manufacture_id = GIGADEVICE_ID,
6279 .model_id = GIGADEVICE_GD25LQ16,
6280 .total_size = 2048,
6281 .page_size = 256,
6282 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6283 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6284 .tested = TEST_UNTESTED,
6285 .probe = probe_spi_rdid,
6286 .probe_timing = TIMING_ZERO,
6287 .block_erasers =
6288 {
6289 {
6290 .eraseblocks = { {4 * 1024, 512} },
6291 .block_erase = spi_block_erase_20,
6292 }, {
6293 .eraseblocks = { {32 * 1024, 64} },
6294 .block_erase = spi_block_erase_52,
6295 }, {
6296 .eraseblocks = { {64 * 1024, 32} },
6297 .block_erase = spi_block_erase_d8,
6298 }, {
6299 .eraseblocks = { {2 * 1024 * 1024, 1} },
6300 .block_erase = spi_block_erase_60,
6301 }, {
6302 .eraseblocks = { {2 * 1024 * 1024, 1} },
6303 .block_erase = spi_block_erase_c7,
6304 }
6305 },
6306 .printlock = spi_prettyprint_status_register_bp4_srwd,
6307 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6308 .write = spi_chip_write_256,
6309 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6310 .voltage = {1695, 1950},
6311 },
6312
6313 {
6314 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006315 .name = "GD25LQ32",
6316 .bustype = BUS_SPI,
6317 .manufacture_id = GIGADEVICE_ID,
6318 .model_id = GIGADEVICE_GD25LQ32,
6319 .total_size = 4096,
6320 .page_size = 256,
6321 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6322 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6323 .tested = TEST_OK_PREW,
6324 .probe = probe_spi_rdid,
6325 .probe_timing = TIMING_ZERO,
6326 .block_erasers =
6327 {
6328 {
6329 .eraseblocks = { {4 * 1024, 1024} },
6330 .block_erase = spi_block_erase_20,
6331 }, {
6332 .eraseblocks = { {32 * 1024, 128} },
6333 .block_erase = spi_block_erase_52,
6334 }, {
6335 .eraseblocks = { {64 * 1024, 64} },
6336 .block_erase = spi_block_erase_d8,
6337 }, {
6338 .eraseblocks = { {4 * 1024 * 1024, 1} },
6339 .block_erase = spi_block_erase_60,
6340 }, {
6341 .eraseblocks = { {4 * 1024 * 1024, 1} },
6342 .block_erase = spi_block_erase_c7,
6343 }
6344 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006345 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006346 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6347 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00006348 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6349 .voltage = {1695, 1950},
6350 },
6351
6352 {
6353 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006354 .name = "GD25LQ40",
6355 .bustype = BUS_SPI,
6356 .manufacture_id = GIGADEVICE_ID,
6357 .model_id = GIGADEVICE_GD25LQ40,
6358 .total_size = 512,
6359 .page_size = 256,
6360 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6361 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6362 .tested = TEST_UNTESTED,
6363 .probe = probe_spi_rdid,
6364 .probe_timing = TIMING_ZERO,
6365 .block_erasers =
6366 {
6367 {
6368 .eraseblocks = { {4 * 1024, 128} },
6369 .block_erase = spi_block_erase_20,
6370 }, {
6371 .eraseblocks = { {32 * 1024, 16} },
6372 .block_erase = spi_block_erase_52,
6373 }, {
6374 .eraseblocks = { {64 * 1024, 8} },
6375 .block_erase = spi_block_erase_d8,
6376 }, {
6377 .eraseblocks = { {512 * 1024, 1} },
6378 .block_erase = spi_block_erase_60,
6379 }, {
6380 .eraseblocks = { {512 * 1024, 1} },
6381 .block_erase = spi_block_erase_c7,
6382 }
6383 },
6384 .printlock = spi_prettyprint_status_register_bp4_srwd,
6385 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6386 .write = spi_chip_write_256,
6387 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6388 .voltage = {1695, 1950},
6389 },
6390
6391 {
6392 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00006393 .name = "GD25LQ64(B)",
6394 .bustype = BUS_SPI,
6395 .manufacture_id = GIGADEVICE_ID,
6396 .model_id = GIGADEVICE_GD25LQ64,
6397 .total_size = 8192,
6398 .page_size = 256,
6399 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6400 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00006401 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006402 .probe = probe_spi_rdid,
6403 .probe_timing = TIMING_ZERO,
6404 .block_erasers =
6405 {
6406 {
6407 .eraseblocks = { {4 * 1024, 2048} },
6408 .block_erase = spi_block_erase_20,
6409 }, {
6410 .eraseblocks = { {32 * 1024, 256} },
6411 .block_erase = spi_block_erase_52,
6412 }, {
6413 .eraseblocks = { {64 * 1024, 128} },
6414 .block_erase = spi_block_erase_d8,
6415 }, {
6416 .eraseblocks = { {8 * 1024 * 1024, 1} },
6417 .block_erase = spi_block_erase_60,
6418 }, {
6419 .eraseblocks = { {8 * 1024 * 1024, 1} },
6420 .block_erase = spi_block_erase_c7,
6421 }
6422 },
6423 .printlock = spi_prettyprint_status_register_bp4_srwd,
6424 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6425 .write = spi_chip_write_256,
6426 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6427 .voltage = {1695, 1950},
6428 },
6429
6430 {
6431 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006432 .name = "GD25LQ80",
Roman Titov95edc892015-04-03 21:29:04 +00006433 .bustype = BUS_SPI,
6434 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006435 .model_id = GIGADEVICE_GD25LQ80,
6436 .total_size = 1024,
Roman Titov95edc892015-04-03 21:29:04 +00006437 .page_size = 256,
6438 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6439 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6440 .tested = TEST_UNTESTED,
6441 .probe = probe_spi_rdid,
6442 .probe_timing = TIMING_ZERO,
6443 .block_erasers =
6444 {
6445 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006446 .eraseblocks = { {4 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006447 .block_erase = spi_block_erase_20,
6448 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006449 .eraseblocks = { {32 * 1024, 32} },
Roman Titov95edc892015-04-03 21:29:04 +00006450 .block_erase = spi_block_erase_52,
6451 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006452 .eraseblocks = { {64 * 1024, 16} },
Roman Titov95edc892015-04-03 21:29:04 +00006453 .block_erase = spi_block_erase_d8,
6454 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006455 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006456 .block_erase = spi_block_erase_60,
6457 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006458 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006459 .block_erase = spi_block_erase_c7,
6460 }
6461 },
6462 .printlock = spi_prettyprint_status_register_bp4_srwd,
6463 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6464 .write = spi_chip_write_256,
6465 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6466 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006467 },
6468
6469 {
6470 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006471 .name = "GD25Q10",
6472 .bustype = BUS_SPI,
6473 .manufacture_id = GIGADEVICE_ID,
6474 .model_id = GIGADEVICE_GD25Q10,
6475 .total_size = 128,
6476 .page_size = 256,
6477 .feature_bits = FEATURE_WRSR_WREN,
6478 .tested = TEST_UNTESTED,
6479 .probe = probe_spi_rdid,
6480 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006481 .block_erasers =
6482 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006483 {
6484 .eraseblocks = { {4 * 1024, 32} },
6485 .block_erase = spi_block_erase_20,
6486 }, {
6487 .eraseblocks = { {32 * 1024, 4} },
6488 .block_erase = spi_block_erase_52,
6489 }, {
6490 .eraseblocks = { {64 * 1024, 2} },
6491 .block_erase = spi_block_erase_d8,
6492 }, {
6493 .eraseblocks = { {128 * 1024, 1} },
6494 .block_erase = spi_block_erase_60,
6495 }, {
6496 .eraseblocks = { {128 * 1024, 1} },
6497 .block_erase = spi_block_erase_c7,
6498 }
6499 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006500 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006501 .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 = {2700, 3600},
6505 },
6506
6507 {
6508 .vendor = "GigaDevice",
Alan Green4f009122019-08-26 10:45:18 +10006509 .name = "GD25Q127C/GD25Q128C",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006510 .bustype = BUS_SPI,
6511 .manufacture_id = GIGADEVICE_ID,
6512 .model_id = GIGADEVICE_GD25Q128,
6513 .total_size = 16384,
6514 .page_size = 256,
6515 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6516 /* QPI: enable 0x38, disable 0xFF */
6517 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Angel Ponsbce364c2018-09-30 20:04:14 +02006518 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006519 .probe = probe_spi_rdid,
6520 .probe_timing = TIMING_ZERO,
6521 .block_erasers =
6522 {
6523 {
6524 .eraseblocks = { {4 * 1024, 4096} },
6525 .block_erase = spi_block_erase_20,
6526 }, {
6527 .eraseblocks = { {32 * 1024, 512} },
6528 .block_erase = spi_block_erase_52,
6529 }, {
6530 .eraseblocks = { {64 * 1024, 256} },
6531 .block_erase = spi_block_erase_d8,
6532 }, {
6533 .eraseblocks = { {16 * 1024 * 1024, 1} },
6534 .block_erase = spi_block_erase_60,
6535 }, {
6536 .eraseblocks = { {16 * 1024 * 1024, 1} },
6537 .block_erase = spi_block_erase_c7,
6538 }
6539 },
6540 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6541 .printlock = spi_prettyprint_status_register_bp4_srwd,
6542 .unlock = spi_disable_blockprotect_bp4_srwd,
6543 .write = spi_chip_write_256,
6544 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6545 .voltage = {2700, 3600},
6546 },
6547
6548 {
6549 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006550 .name = "GD25Q16(B)",
6551 .bustype = BUS_SPI,
6552 .manufacture_id = GIGADEVICE_ID,
6553 .model_id = GIGADEVICE_GD25Q16,
6554 .total_size = 2048,
6555 .page_size = 256,
6556 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6557 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6558 .tested = TEST_OK_PREW,
6559 .probe = probe_spi_rdid,
6560 .probe_timing = TIMING_ZERO,
6561 .block_erasers =
6562 {
6563 {
6564 .eraseblocks = { {4 * 1024, 512} },
6565 .block_erase = spi_block_erase_20,
6566 }, {
6567 .eraseblocks = { {32 * 1024, 64} },
6568 .block_erase = spi_block_erase_52,
6569 }, {
6570 .eraseblocks = { {64 * 1024, 32} },
6571 .block_erase = spi_block_erase_d8,
6572 }, {
6573 .eraseblocks = { {2 * 1024 * 1024, 1} },
6574 .block_erase = spi_block_erase_60,
6575 }, {
6576 .eraseblocks = { {2 * 1024 * 1024, 1} },
6577 .block_erase = spi_block_erase_c7,
6578 }
6579 },
6580 .printlock = spi_prettyprint_status_register_bp4_srwd,
6581 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6582 .write = spi_chip_write_256,
6583 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6584 .voltage = {2700, 3600},
6585 },
6586
6587 {
6588 .vendor = "GigaDevice",
6589 .name = "GD25Q20(B)",
6590 .bustype = BUS_SPI,
6591 .manufacture_id = GIGADEVICE_ID,
6592 .model_id = GIGADEVICE_GD25Q20,
6593 .total_size = 256,
6594 .page_size = 256,
6595 .feature_bits = FEATURE_WRSR_WREN,
6596 .tested = TEST_OK_PREW,
6597 .probe = probe_spi_rdid,
6598 .probe_timing = TIMING_ZERO,
6599 .block_erasers =
6600 {
6601 {
6602 .eraseblocks = { {4 * 1024, 64} },
6603 .block_erase = spi_block_erase_20,
6604 }, {
6605 .eraseblocks = { {32 * 1024, 8} },
6606 .block_erase = spi_block_erase_52,
6607 }, {
6608 .eraseblocks = { {64 * 1024, 4} },
6609 .block_erase = spi_block_erase_d8,
6610 }, {
6611 .eraseblocks = { {256 * 1024, 1} },
6612 .block_erase = spi_block_erase_60,
6613 }, {
6614 .eraseblocks = { {256 * 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",
Alan Green86fc9cf2019-08-26 15:02:12 +10006627 .name = "GD25Q256D",
6628 .bustype = BUS_SPI,
6629 .manufacture_id = GIGADEVICE_ID,
6630 .model_id = GIGADEVICE_GD25Q256D,
6631 .total_size = 32768,
6632 .page_size = 256,
6633 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
6634 .tested = TEST_UNTESTED,
6635 .probe = probe_spi_rdid,
6636 .probe_timing = TIMING_ZERO,
6637 .block_erasers =
6638 {
6639 {
6640 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber5374dc32019-10-04 16:16:15 +02006641 .block_erase = spi_block_erase_21,
6642 }, {
6643 .eraseblocks = { {4 * 1024, 8192} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006644 .block_erase = spi_block_erase_20,
6645 }, {
6646 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber5374dc32019-10-04 16:16:15 +02006647 .block_erase = spi_block_erase_5c,
6648 }, {
6649 .eraseblocks = { {32 * 1024, 1024} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006650 .block_erase = spi_block_erase_52,
6651 }, {
6652 .eraseblocks = { {64 * 1024, 512} },
Nico Huber5374dc32019-10-04 16:16:15 +02006653 .block_erase = spi_block_erase_dc,
6654 }, {
6655 .eraseblocks = { {64 * 1024, 512} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006656 .block_erase = spi_block_erase_d8,
6657 }, {
6658 .eraseblocks = { {32 * 1024 * 1024, 1} },
6659 .block_erase = spi_block_erase_60,
6660 }, {
6661 .eraseblocks = { {32 * 1024 * 1024, 1} },
6662 .block_erase = spi_block_erase_c7,
6663 }
6664 },
6665 .printlock = spi_prettyprint_status_register_bp3_srwd,
6666 .unlock = spi_disable_blockprotect,
6667 .write = spi_chip_write_256,
6668 .read = spi_chip_read,
6669 .voltage = {2700, 3600},
6670 },
6671
6672 {
6673 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006674 .name = "GD25Q32(B)",
6675 .bustype = BUS_SPI,
6676 .manufacture_id = GIGADEVICE_ID,
6677 .model_id = GIGADEVICE_GD25Q32,
6678 .total_size = 4096,
6679 .page_size = 256,
6680 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6681 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6682 .tested = TEST_OK_PREW,
6683 .probe = probe_spi_rdid,
6684 .probe_timing = TIMING_ZERO,
6685 .block_erasers =
6686 {
6687 {
6688 .eraseblocks = { {4 * 1024, 1024} },
6689 .block_erase = spi_block_erase_20,
6690 }, {
6691 .eraseblocks = { {32 * 1024, 128} },
6692 .block_erase = spi_block_erase_52,
6693 }, {
6694 .eraseblocks = { {64 * 1024, 64} },
6695 .block_erase = spi_block_erase_d8,
6696 }, {
6697 .eraseblocks = { {4 * 1024 * 1024, 1} },
6698 .block_erase = spi_block_erase_60,
6699 }, {
6700 .eraseblocks = { {4 * 1024 * 1024, 1} },
6701 .block_erase = spi_block_erase_c7,
6702 }
6703 },
6704 .printlock = spi_prettyprint_status_register_bp4_srwd,
6705 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6706 .write = spi_chip_write_256,
6707 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6708 .voltage = {2700, 3600},
6709 },
6710
6711 {
6712 .vendor = "GigaDevice",
6713 .name = "GD25Q40(B)",
6714 .bustype = BUS_SPI,
6715 .manufacture_id = GIGADEVICE_ID,
6716 .model_id = GIGADEVICE_GD25Q40,
6717 .total_size = 512,
6718 .page_size = 256,
6719 .feature_bits = FEATURE_WRSR_WREN,
6720 .tested = TEST_UNTESTED,
6721 .probe = probe_spi_rdid,
6722 .probe_timing = TIMING_ZERO,
6723 .block_erasers =
6724 {
6725 {
6726 .eraseblocks = { {4 * 1024, 128} },
6727 .block_erase = spi_block_erase_20,
6728 }, {
6729 .eraseblocks = { {32 * 1024, 16} },
6730 .block_erase = spi_block_erase_52,
6731 }, {
6732 .eraseblocks = { {64 * 1024, 8} },
6733 .block_erase = spi_block_erase_d8,
6734 }, {
6735 .eraseblocks = { {512 * 1024, 1} },
6736 .block_erase = spi_block_erase_60,
6737 }, {
6738 .eraseblocks = { {512 * 1024, 1} },
6739 .block_erase = spi_block_erase_c7,
6740 }
6741 },
6742 .printlock = spi_prettyprint_status_register_bp4_srwd,
6743 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6744 .write = spi_chip_write_256,
6745 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6746 .voltage = {2700, 3600},
6747 },
6748
6749 {
6750 .vendor = "GigaDevice",
6751 .name = "GD25Q512",
6752 .bustype = BUS_SPI,
6753 .manufacture_id = GIGADEVICE_ID,
6754 .model_id = GIGADEVICE_GD25Q512,
6755 .total_size = 64,
6756 .page_size = 256,
6757 .feature_bits = FEATURE_WRSR_WREN,
6758 .tested = TEST_OK_PREW,
6759 .probe = probe_spi_rdid,
6760 .probe_timing = TIMING_ZERO,
6761 .block_erasers =
6762 {
6763 {
6764 .eraseblocks = { {4 * 1024, 16} },
6765 .block_erase = spi_block_erase_20,
6766 }, {
6767 .eraseblocks = { {32 * 1024, 2} },
6768 .block_erase = spi_block_erase_52,
6769 }, {
6770 .eraseblocks = { {64 * 1024, 1} },
6771 .block_erase = spi_block_erase_60,
6772 }, {
6773 .eraseblocks = { {64 * 1024, 1} },
6774 .block_erase = spi_block_erase_c7,
6775 }
6776 },
6777 .printlock = spi_prettyprint_status_register_bp4_srwd,
6778 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6779 .write = spi_chip_write_256,
6780 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6781 .voltage = {2700, 3600},
6782 },
6783
6784 {
6785 .vendor = "GigaDevice",
6786 .name = "GD25Q64(B)",
6787 .bustype = BUS_SPI,
6788 .manufacture_id = GIGADEVICE_ID,
6789 .model_id = GIGADEVICE_GD25Q64,
6790 .total_size = 8192,
6791 .page_size = 256,
6792 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6793 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6794 .tested = TEST_OK_PREW,
6795 .probe = probe_spi_rdid,
6796 .probe_timing = TIMING_ZERO,
6797 .block_erasers =
6798 {
6799 {
6800 .eraseblocks = { {4 * 1024, 2048} },
6801 .block_erase = spi_block_erase_20,
6802 }, {
6803 .eraseblocks = { {32 * 1024, 256} },
6804 .block_erase = spi_block_erase_52,
6805 }, {
6806 .eraseblocks = { {64 * 1024, 128} },
6807 .block_erase = spi_block_erase_d8,
6808 }, {
6809 .eraseblocks = { {8 * 1024 * 1024, 1} },
6810 .block_erase = spi_block_erase_60,
6811 }, {
6812 .eraseblocks = { {8 * 1024 * 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 = "GD25Q80(B)",
6826 .bustype = BUS_SPI,
6827 .manufacture_id = GIGADEVICE_ID,
6828 .model_id = GIGADEVICE_GD25Q80,
6829 .total_size = 1024,
6830 .page_size = 256,
6831 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
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, 256} },
6840 .block_erase = spi_block_erase_20,
6841 }, {
6842 .eraseblocks = { {32 * 1024, 32} },
6843 .block_erase = spi_block_erase_52,
6844 }, {
6845 .eraseblocks = { {64 * 1024, 16} },
6846 .block_erase = spi_block_erase_d8,
6847 }, {
6848 .eraseblocks = { {1024 * 1024, 1} },
6849 .block_erase = spi_block_erase_60,
6850 }, {
6851 .eraseblocks = { {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",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006864 .name = "GD25T80",
6865 .bustype = BUS_SPI,
6866 .manufacture_id = GIGADEVICE_ID,
6867 .model_id = GIGADEVICE_GD25T80,
6868 .total_size = 1024,
6869 .page_size = 256,
6870 /* OTP: 256B total; enter 0x3A */
6871 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6872 .tested = TEST_UNTESTED,
6873 .probe = probe_spi_rdid,
6874 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006875 .block_erasers =
6876 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006877 {
6878 .eraseblocks = { {4 * 1024, 256} },
6879 .block_erase = spi_block_erase_20,
6880 }, {
6881 .eraseblocks = { {64 * 1024, 16} },
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 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006894 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006895 .unlock = spi_disable_blockprotect,
6896 .write = spi_chip_write_256,
6897 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006898 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006899 },
6900
6901 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006902 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006903 .name = "GD25VQ16C",
6904 .bustype = BUS_SPI,
6905 .manufacture_id = GIGADEVICE_ID,
6906 .model_id = GIGADEVICE_GD25VQ16C,
6907 .total_size = 2 * 1024,
6908 .page_size = 256,
6909 /* Supports SFDP */
6910 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6911 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6912 .tested = TEST_UNTESTED,
6913 .probe = probe_spi_rdid,
6914 .probe_timing = TIMING_ZERO,
6915 .block_erasers =
6916 {
6917 {
6918 .eraseblocks = { { 4 * 1024, 512} },
6919 .block_erase = spi_block_erase_20,
6920 }, {
6921 .eraseblocks = { { 32 * 1024, 64} },
6922 .block_erase = spi_block_erase_52,
6923 }, {
6924 .eraseblocks = { { 64 * 1024, 32} },
6925 .block_erase = spi_block_erase_d8,
6926 }, {
6927 .eraseblocks = { {2 * 1024 * 1024, 1} },
6928 .block_erase = spi_block_erase_60,
6929 }, {
6930 .eraseblocks = { {2 * 1024 * 1024, 1} },
6931 .block_erase = spi_block_erase_c7,
6932 }
6933 },
6934 .printlock = spi_prettyprint_status_register_bp4_srwd,
6935 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6936 .write = spi_chip_write_256,
6937 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6938 .voltage = {2300, 3600},
6939 },
6940
6941 {
6942 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006943 .name = "GD25VQ21B",
6944 .bustype = BUS_SPI,
6945 .manufacture_id = GIGADEVICE_ID,
6946 .model_id = GIGADEVICE_GD25VQ21B,
6947 .total_size = 256,
6948 .page_size = 256,
6949 /* OTP: 1536B 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, 64} },
6958 .block_erase = spi_block_erase_20,
6959 }, {
6960 .eraseblocks = { { 32 * 1024, 8} },
6961 .block_erase = spi_block_erase_52,
6962 }, {
6963 .eraseblocks = { { 64 * 1024, 4} },
6964 .block_erase = spi_block_erase_d8,
6965 }, {
6966 .eraseblocks = { {256 * 1024, 1} },
6967 .block_erase = spi_block_erase_60,
6968 }, {
6969 .eraseblocks = { {256 * 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",
6982 .name = "GD25VQ40C",
6983 .bustype = BUS_SPI,
6984 .manufacture_id = GIGADEVICE_ID,
6985 .model_id = GIGADEVICE_GD25VQ41B,
6986 .total_size = 512,
6987 .page_size = 256,
6988 /* Supports SFDP */
6989 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6990 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6991 .tested = TEST_UNTESTED,
6992 .probe = probe_spi_rdid,
6993 .probe_timing = TIMING_ZERO,
6994 .block_erasers =
6995 {
6996 {
6997 .eraseblocks = { { 4 * 1024, 128} },
6998 .block_erase = spi_block_erase_20,
6999 }, {
7000 .eraseblocks = { { 32 * 1024, 16} },
7001 .block_erase = spi_block_erase_52,
7002 }, {
7003 .eraseblocks = { { 64 * 1024, 8} },
7004 .block_erase = spi_block_erase_d8,
7005 }, {
7006 .eraseblocks = { {512 * 1024, 1} },
7007 .block_erase = spi_block_erase_60,
7008 }, {
7009 .eraseblocks = { {512 * 1024, 1} },
7010 .block_erase = spi_block_erase_c7,
7011 }
7012 },
7013 .printlock = spi_prettyprint_status_register_bp4_srwd,
7014 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7015 .write = spi_chip_write_256,
7016 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7017 .voltage = {2300, 3600},
7018 },
7019
7020 {
7021 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007022 .name = "GD25VQ41B",
7023 .bustype = BUS_SPI,
7024 .manufacture_id = GIGADEVICE_ID,
7025 .model_id = GIGADEVICE_GD25VQ41B,
7026 .total_size = 512,
7027 .page_size = 256,
7028 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
7029 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007030 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007031 .probe = probe_spi_rdid,
7032 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007033 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007034 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00007035 {
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 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007051 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007052 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007053 .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",
7061 .name = "GD25VQ80C",
7062 .bustype = BUS_SPI,
7063 .manufacture_id = GIGADEVICE_ID,
7064 .model_id = GIGADEVICE_GD25VQ80C,
7065 .total_size = 1024,
7066 .page_size = 256,
7067 /* Supports SFDP */
7068 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7069 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7070 .tested = TEST_UNTESTED,
7071 .probe = probe_spi_rdid,
7072 .probe_timing = TIMING_ZERO,
7073 .block_erasers =
7074 {
7075 {
7076 .eraseblocks = { { 4 * 1024, 256} },
7077 .block_erase = spi_block_erase_20,
7078 }, {
7079 .eraseblocks = { { 32 * 1024, 32} },
7080 .block_erase = spi_block_erase_52,
7081 }, {
7082 .eraseblocks = { { 64 * 1024, 16} },
7083 .block_erase = spi_block_erase_d8,
7084 }, {
7085 .eraseblocks = { {1024 * 1024, 1} },
7086 .block_erase = spi_block_erase_60,
7087 }, {
7088 .eraseblocks = { {1024 * 1024, 1} },
7089 .block_erase = spi_block_erase_c7,
7090 }
7091 },
7092 .printlock = spi_prettyprint_status_register_bp4_srwd,
7093 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7094 .write = spi_chip_write_256,
7095 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7096 .voltage = {2300, 3600},
7097 },
7098
7099 {
Dino Li3214f582020-03-25 17:39:53 +08007100 .vendor = "GigaDevice",
7101 .name = "GD25WQ80E",
7102 .bustype = BUS_SPI,
7103 .manufacture_id = GIGADEVICE_ID,
7104 .model_id = GIGADEVICE_GD25WQ80E,
7105 .total_size = 1024,
7106 .page_size = 256,
7107 .feature_bits = FEATURE_WRSR_WREN,
7108 .tested = TEST_OK_PREW,
7109 .probe = probe_spi_rdid,
7110 .probe_timing = TIMING_ZERO,
7111 .block_erasers =
7112 {
7113 {
7114 .eraseblocks = { {4 * 1024, 256} },
7115 .block_erase = spi_block_erase_20,
7116 }, {
7117 .eraseblocks = { {32 * 1024, 32} },
7118 .block_erase = spi_block_erase_52,
7119 }, {
7120 .eraseblocks = { {64 * 1024, 16} },
7121 .block_erase = spi_block_erase_d8,
7122 }, {
7123 .eraseblocks = { {1 * 1024 * 1024, 1} },
7124 .block_erase = spi_block_erase_60,
7125 }, {
7126 .eraseblocks = { {1 * 1024 * 1024, 1} },
7127 .block_erase = spi_block_erase_c7,
7128 }
7129 },
7130 .printlock = spi_prettyprint_status_register_bp4_srwd,
7131 .unlock = spi_disable_blockprotect_bp4_srwd,
7132 .write = spi_chip_write_256,
7133 .read = spi_chip_read,
7134 .voltage = {1650, 3600},
7135 },
7136
7137 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007138 .vendor = "Hyundai",
7139 .name = "HY29F002B",
7140 .bustype = BUS_PARALLEL,
7141 .manufacture_id = HYUNDAI_ID,
7142 .model_id = HYUNDAI_HY29F002B,
7143 .total_size = 256,
7144 .page_size = 256 * 1024,
7145 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007146 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007147 .probe = probe_jedec,
7148 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007149 .block_erasers =
7150 {
7151 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007152 .eraseblocks = {
7153 {16 * 1024, 1},
7154 {8 * 1024, 2},
7155 {32 * 1024, 1},
7156 {64 * 1024, 3},
7157 },
7158 .block_erase = erase_sector_jedec,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007159 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007160 .eraseblocks = { {256 * 1024, 1} },
7161 .block_erase = erase_chip_block_jedec,
7162 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007163 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007164 .write = write_jedec_1,
7165 .read = read_memmapped,
7166 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007167 },
7168
7169 {
David Borgc96a8bd2010-06-21 16:12:22 +00007170 .vendor = "Hyundai",
7171 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007172 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00007173 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007174 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00007175 .total_size = 256,
7176 .page_size = 256 * 1024,
7177 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007178 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00007179 .probe = probe_jedec,
7180 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7181 .block_erasers =
7182 {
7183 {
7184 .eraseblocks = {
7185 {64 * 1024, 3},
7186 {32 * 1024, 1},
7187 {8 * 1024, 2},
7188 {16 * 1024, 1},
7189 },
7190 .block_erase = erase_sector_jedec,
7191 }, {
7192 .eraseblocks = { {256 * 1024, 1} },
7193 .block_erase = erase_chip_block_jedec,
7194 },
7195 },
7196 .write = write_jedec_1,
7197 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007198 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00007199 },
7200
7201 {
7202 .vendor = "Hyundai",
Joshua Roysf1324e02010-09-16 00:51:51 +00007203 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007204 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007205 .manufacture_id = HYUNDAI_ID,
7206 .model_id = HYUNDAI_HY29F040A,
7207 .total_size = 512,
7208 .page_size = 64 * 1024,
7209 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7210 .tested = TEST_UNTESTED,
7211 .probe = probe_jedec,
7212 .probe_timing = TIMING_ZERO,
7213 .block_erasers =
7214 {
7215 {
7216 .eraseblocks = { {64 * 1024, 8} },
7217 .block_erase = erase_sector_jedec,
7218 }, {
7219 .eraseblocks = { {512 * 1024, 1} },
7220 .block_erase = erase_chip_block_jedec,
7221 },
7222 },
7223 .write = write_jedec_1,
7224 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007225 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00007226 },
7227
7228 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007229 .vendor = "ISSI",
Angel Pons2ef47f32018-09-30 16:47:30 +02007230 .name = "IS25LP064",
7231 .bustype = BUS_SPI,
7232 .manufacture_id = ISSI_ID_SPI,
7233 .model_id = ISSI_IS25LP064,
7234 .total_size = 8192,
7235 .page_size = 256,
7236 /* OTP: 1024B total; read 0x48; write 0x42 */
7237 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7238 .tested = TEST_UNTESTED,
7239 .probe = probe_spi_rdid,
7240 .probe_timing = TIMING_ZERO,
7241 .block_erasers =
7242 {
7243 {
7244 .eraseblocks = { {4 * 1024, 2048} },
7245 .block_erase = spi_block_erase_20,
7246 }, {
7247 .eraseblocks = { {4 * 1024, 2048} },
7248 .block_erase = spi_block_erase_d7,
7249 }, {
7250 .eraseblocks = { {32 * 1024, 256} },
7251 .block_erase = spi_block_erase_52,
7252 }, {
7253 .eraseblocks = { {64 * 1024, 128} },
7254 .block_erase = spi_block_erase_d8,
7255 }, {
7256 .eraseblocks = { {8 * 1024 * 1024, 1} },
7257 .block_erase = spi_block_erase_60,
7258 }, {
7259 .eraseblocks = { {8 * 1024 * 1024, 1} },
7260 .block_erase = spi_block_erase_c7,
7261 }
7262 },
7263 .unlock = spi_disable_blockprotect,
7264 .write = spi_chip_write_256,
7265 .read = spi_chip_read,
7266 .voltage = {2300, 3600},
7267 },
7268
7269 {
7270 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007271 .name = "IS25LP128",
7272 .bustype = BUS_SPI,
7273 .manufacture_id = ISSI_ID_SPI,
7274 .model_id = ISSI_IS25LP128,
7275 .total_size = 16384,
7276 .page_size = 256,
7277 /* OTP: 1024B total; read 0x48; write 0x42 */
7278 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7279 .tested = TEST_OK_PREW,
7280 .probe = probe_spi_rdid,
7281 .probe_timing = TIMING_ZERO,
7282 .block_erasers =
7283 {
7284 {
7285 .eraseblocks = { {4 * 1024, 4096} },
7286 .block_erase = spi_block_erase_20,
7287 }, {
7288 .eraseblocks = { {4 * 1024, 4096} },
7289 .block_erase = spi_block_erase_d7,
7290 }, {
7291 .eraseblocks = { {32 * 1024, 512} },
7292 .block_erase = spi_block_erase_52,
7293 }, {
7294 .eraseblocks = { {64 * 1024, 256} },
7295 .block_erase = spi_block_erase_d8,
7296 }, {
7297 .eraseblocks = { {16 * 1024 * 1024, 1} },
7298 .block_erase = spi_block_erase_60,
7299 }, {
7300 .eraseblocks = { {16 * 1024 * 1024, 1} },
7301 .block_erase = spi_block_erase_c7,
7302 }
7303 },
7304 .unlock = spi_disable_blockprotect,
7305 .write = spi_chip_write_256,
7306 .read = spi_chip_read,
7307 .voltage = {2300, 3600},
7308 },
7309
7310 {
7311 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007312 .name = "IS25LP256",
7313 .bustype = BUS_SPI,
7314 .manufacture_id = ISSI_ID_SPI,
7315 .model_id = ISSI_IS25LP256,
7316 .total_size = 32768,
7317 .page_size = 256,
7318 /* supports SFDP */
7319 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7320 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7321 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7322 .tested = TEST_OK_PREW,
7323 .probe = probe_spi_rdid,
7324 .probe_timing = TIMING_ZERO,
7325 .block_erasers =
7326 {
7327 {
7328 .eraseblocks = { {4 * 1024, 8192} },
7329 .block_erase = spi_block_erase_21,
7330 }, {
7331 .eraseblocks = { {4 * 1024, 8192} },
7332 .block_erase = spi_block_erase_20,
7333 /* could also use spi_block_erase_d7 */
7334 }, {
7335 .eraseblocks = { {32 * 1024, 1024} },
7336 .block_erase = spi_block_erase_5c,
7337 }, {
7338 .eraseblocks = { {32 * 1024, 1024} },
7339 .block_erase = spi_block_erase_52,
7340 }, {
7341 .eraseblocks = { {64 * 1024, 512} },
7342 .block_erase = spi_block_erase_dc,
7343 }, {
7344 .eraseblocks = { {64 * 1024, 512} },
7345 .block_erase = spi_block_erase_d8,
7346 }, {
7347 .eraseblocks = { {32 * 1024 * 1024, 1} },
7348 .block_erase = spi_block_erase_60,
7349 }, {
7350 .eraseblocks = { {32 * 1024 * 1024, 1} },
7351 .block_erase = spi_block_erase_c7,
7352 }
7353 },
7354 .unlock = spi_disable_blockprotect,
7355 .write = spi_chip_write_256,
7356 .read = spi_chip_read,
7357 .voltage = {2300, 3600},
7358 },
7359
7360 {
7361 .vendor = "ISSI",
Nico Huberb27b8d12018-10-02 20:46:21 +02007362 .name = "IS25WP032",
7363 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007364 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007365 .model_id = ISSI_IS25WP032,
7366 .total_size = 4096,
7367 .page_size = 256,
7368 /* OTP: 1024B total; read 0x48; write 0x42 */
7369 /* QPI enable 0x35, disable 0xF5 */
7370 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7371 .tested = TEST_UNTESTED,
7372 .probe = probe_spi_rdid,
7373 .probe_timing = TIMING_ZERO,
7374 .block_erasers =
7375 {
7376 {
7377 .eraseblocks = { {4 * 1024, 1024} },
7378 .block_erase = spi_block_erase_20,
7379 }, {
7380 .eraseblocks = { {4 * 1024, 1024} },
7381 .block_erase = spi_block_erase_d7,
7382 }, {
7383 .eraseblocks = { {32 * 1024, 128} },
7384 .block_erase = spi_block_erase_52,
7385 }, {
7386 .eraseblocks = { {64 * 1024, 64} },
7387 .block_erase = spi_block_erase_d8,
7388 }, {
7389 .eraseblocks = { {4 * 1024 * 1024, 1} },
7390 .block_erase = spi_block_erase_60,
7391 }, {
7392 .eraseblocks = { {4 * 1024 * 1024, 1} },
7393 .block_erase = spi_block_erase_c7,
7394 }
7395 },
7396 .unlock = spi_disable_blockprotect,
7397 .write = spi_chip_write_256,
7398 .read = spi_chip_read,
7399 .voltage = {1650, 1950},
7400 },
7401
7402 {
7403 .vendor = "ISSI",
7404 .name = "IS25WP064",
7405 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007406 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007407 .model_id = ISSI_IS25WP064,
7408 .total_size = 8192,
7409 .page_size = 256,
7410 /* OTP: 1024B total; read 0x48; write 0x42 */
7411 /* QPI enable 0x35, disable 0xF5 */
7412 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7413 .tested = TEST_OK_PREW,
7414 .probe = probe_spi_rdid,
7415 .probe_timing = TIMING_ZERO,
7416 .block_erasers =
7417 {
7418 {
7419 .eraseblocks = { {4 * 1024, 2048} },
7420 .block_erase = spi_block_erase_20,
7421 }, {
7422 .eraseblocks = { {4 * 1024, 2048} },
7423 .block_erase = spi_block_erase_d7,
7424 }, {
7425 .eraseblocks = { {32 * 1024, 256} },
7426 .block_erase = spi_block_erase_52,
7427 }, {
7428 .eraseblocks = { {64 * 1024, 128} },
7429 .block_erase = spi_block_erase_d8,
7430 }, {
7431 .eraseblocks = { {8 * 1024 * 1024, 1} },
7432 .block_erase = spi_block_erase_60,
7433 }, {
7434 .eraseblocks = { {8 * 1024 * 1024, 1} },
7435 .block_erase = spi_block_erase_c7,
7436 }
7437 },
7438 .unlock = spi_disable_blockprotect,
7439 .write = spi_chip_write_256,
7440 .read = spi_chip_read,
7441 .voltage = {1650, 1950},
7442 },
7443
7444 {
7445 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007446 .name = "IS25WP128",
7447 .bustype = BUS_SPI,
7448 .manufacture_id = ISSI_ID_SPI,
7449 .model_id = ISSI_IS25WP128,
7450 .total_size = 16384,
7451 .page_size = 256,
7452 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huberb27b8d12018-10-02 20:46:21 +02007453 /* QPI enable 0x35, disable 0xF5 */
7454 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks3083ed92017-05-02 13:25:56 -07007455 .tested = TEST_OK_PREW,
7456 .probe = probe_spi_rdid,
7457 .probe_timing = TIMING_ZERO,
7458 .block_erasers =
7459 {
7460 {
7461 .eraseblocks = { {4 * 1024, 4096} },
7462 .block_erase = spi_block_erase_20,
7463 }, {
7464 .eraseblocks = { {4 * 1024, 4096} },
7465 .block_erase = spi_block_erase_d7,
7466 }, {
7467 .eraseblocks = { {32 * 1024, 512} },
7468 .block_erase = spi_block_erase_52,
7469 }, {
7470 .eraseblocks = { {64 * 1024, 256} },
7471 .block_erase = spi_block_erase_d8,
7472 }, {
7473 .eraseblocks = { {16 * 1024 * 1024, 1} },
7474 .block_erase = spi_block_erase_60,
7475 }, {
7476 .eraseblocks = { {16 * 1024 * 1024, 1} },
7477 .block_erase = spi_block_erase_c7,
7478 }
7479 },
7480 .unlock = spi_disable_blockprotect,
7481 .write = spi_chip_write_256,
7482 .read = spi_chip_read,
7483 .voltage = {1650, 1950},
7484 },
7485
7486 {
7487 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007488 .name = "IS25WP256",
7489 .bustype = BUS_SPI,
7490 .manufacture_id = ISSI_ID_SPI,
7491 .model_id = ISSI_IS25WP256,
7492 .total_size = 32768,
7493 .page_size = 256,
7494 /* supports SFDP */
7495 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7496 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7497 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7498 .tested = TEST_OK_PREW,
7499 .probe = probe_spi_rdid,
7500 .probe_timing = TIMING_ZERO,
7501 .block_erasers =
7502 {
7503 {
7504 .eraseblocks = { {4 * 1024, 8192} },
7505 .block_erase = spi_block_erase_21,
7506 }, {
7507 .eraseblocks = { {4 * 1024, 8192} },
7508 .block_erase = spi_block_erase_20,
7509 /* could also use spi_block_erase_d7 */
7510 }, {
7511 .eraseblocks = { {32 * 1024, 1024} },
7512 .block_erase = spi_block_erase_5c,
7513 }, {
7514 .eraseblocks = { {32 * 1024, 1024} },
7515 .block_erase = spi_block_erase_52,
7516 }, {
7517 .eraseblocks = { {64 * 1024, 512} },
7518 .block_erase = spi_block_erase_dc,
7519 }, {
7520 .eraseblocks = { {64 * 1024, 512} },
7521 .block_erase = spi_block_erase_d8,
7522 }, {
7523 .eraseblocks = { {32 * 1024 * 1024, 1} },
7524 .block_erase = spi_block_erase_60,
7525 }, {
7526 .eraseblocks = { {32 * 1024 * 1024, 1} },
7527 .block_erase = spi_block_erase_c7,
7528 }
7529 },
7530 .unlock = spi_disable_blockprotect,
7531 .write = spi_chip_write_256,
7532 .read = spi_chip_read,
7533 .voltage = {1650, 1950},
7534 },
7535
7536 {
7537 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007538 .name = "IS29GL064B",
7539 .bustype = BUS_PARALLEL,
7540 .manufacture_id = ISSI_ID,
7541 .model_id = ISSI_PMC_IS29GL064B,
7542 .total_size = 8192,
7543 .page_size = 128 * 1024, /* actual page size is 16 */
7544 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7545 .tested = TEST_UNTESTED,
7546 .probe = probe_jedec_29gl,
7547 .probe_timing = TIMING_ZERO,
7548 .block_erasers =
7549 {
7550 {
7551 .eraseblocks = {
7552 {8 * 1024, 8},
7553 {64 * 1024, 127},
7554 },
7555 .block_erase = erase_sector_jedec,
7556 }, {
7557 .eraseblocks = { {8 * 1024 * 1024, 1} },
7558 .block_erase = erase_chip_block_jedec,
7559 },
7560 },
7561 .write = write_jedec_1,
7562 .read = read_memmapped,
7563 .voltage = {2700, 3600},
7564 },
7565
7566 {
7567 .vendor = "ISSI",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007568 .name = "IS29GL064H/L",
7569 .bustype = BUS_PARALLEL,
7570 .manufacture_id = ISSI_ID,
7571 .model_id = ISSI_PMC_IS29GL064HL,
7572 .total_size = 8192,
7573 .page_size = 128 * 1024, /* actual page size is 16 */
7574 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7575 .tested = TEST_UNTESTED,
7576 .probe = probe_jedec_29gl,
7577 .probe_timing = TIMING_ZERO,
7578 .block_erasers =
7579 {
7580 {
7581 .eraseblocks = { {64 * 1024, 128} },
7582 .block_erase = erase_sector_jedec,
7583 }, {
7584 .eraseblocks = { {8 * 1024 * 1024, 1} },
7585 .block_erase = erase_chip_block_jedec,
7586 },
7587 },
7588 .write = write_jedec_1,
7589 .read = read_memmapped,
7590 .voltage = {2700, 3600},
7591 },
7592
7593 {
7594 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007595 .name = "IS29GL064T",
7596 .bustype = BUS_PARALLEL,
7597 .manufacture_id = ISSI_ID,
7598 .model_id = ISSI_PMC_IS29GL064T,
7599 .total_size = 8192,
7600 .page_size = 128 * 1024, /* actual page size is 16 */
7601 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7602 .tested = TEST_UNTESTED,
7603 .probe = probe_jedec_29gl,
7604 .probe_timing = TIMING_ZERO,
7605 .block_erasers =
7606 {
7607 {
7608 .eraseblocks = {
7609 {64 * 1024, 127},
7610 {8 * 1024, 8},
7611 },
7612 .block_erase = erase_sector_jedec,
7613 }, {
7614 .eraseblocks = { {8 * 1024 * 1024, 1} },
7615 .block_erase = erase_chip_block_jedec,
7616 },
7617 },
7618 .write = write_jedec_1,
7619 .read = read_memmapped,
7620 .voltage = {2700, 3600},
7621 },
7622
7623 {
7624 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007625 .name = "IS29GL128H/L",
7626 .bustype = BUS_PARALLEL,
7627 .manufacture_id = ISSI_ID,
7628 .model_id = ISSI_PMC_IS29GL128HL,
7629 .total_size = 16384,
7630 .page_size = 128 * 1024, /* actual page size is 16 */
7631 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7632 .tested = TEST_UNTESTED,
7633 .probe = probe_jedec_29gl,
7634 .probe_timing = TIMING_ZERO,
7635 .block_erasers =
7636 {
7637 {
7638 .eraseblocks = { {128 * 1024, 128} },
7639 .block_erase = erase_sector_jedec,
7640 }, {
7641 .eraseblocks = { {16 * 1024 * 1024, 1} },
7642 .block_erase = erase_chip_block_jedec,
7643 },
7644 },
7645 .write = write_jedec_1,
7646 .read = read_memmapped,
7647 .voltage = {2700, 3600},
7648 },
7649
7650 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007651 .vendor = "Intel",
7652 .name = "25F160S33B8",
7653 .bustype = BUS_SPI,
7654 .manufacture_id = INTEL_ID,
7655 .model_id = INTEL_25F160S33B8,
7656 .total_size = 2048,
7657 .page_size = 256,
7658 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7659 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7660 .tested = TEST_UNTESTED,
7661 .probe = probe_spi_rdid,
7662 .probe_timing = TIMING_ZERO,
7663 .block_erasers =
7664 {
7665 {
7666 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7667 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7668 * have no effect on the memory contents, but sets a flag in the SR.
7669 .eraseblocks = {
7670 {8 * 1024, 8},
7671 {64 * 1024, 31} // inaccessible
7672 },
7673 .block_erase = spi_block_erase_40,
7674 }, { */
7675 .eraseblocks = { {64 * 1024, 32} },
7676 .block_erase = spi_block_erase_d8,
7677 }, {
7678 .eraseblocks = { {2 * 1024 * 1024, 1} },
7679 .block_erase = spi_block_erase_c7,
7680 }
7681 },
7682 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7683 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7684 .write = spi_chip_write_256,
7685 .read = spi_chip_read, /* also fast read 0x0B */
7686 .voltage = {2700, 3600},
7687 },
7688
7689 {
7690 .vendor = "Intel",
7691 .name = "25F160S33T8",
7692 .bustype = BUS_SPI,
7693 .manufacture_id = INTEL_ID,
7694 .model_id = INTEL_25F160S33T8,
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 {64 * 1024, 31}, // inaccessible
7710 {8 * 1024, 8}
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 = "25F320S33B8",
7731 .bustype = BUS_SPI,
7732 .manufacture_id = INTEL_ID,
7733 .model_id = INTEL_25F320S33B8,
7734 .total_size = 4096,
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 {8 * 1024, 8},
7749 {64 * 1024, 63} // inaccessible
7750 },
7751 .block_erase = spi_block_erase_40,
7752 }, { */
7753 .eraseblocks = { {64 * 1024, 64} },
7754 .block_erase = spi_block_erase_d8,
7755 }, {
7756 .eraseblocks = { {4 * 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 = "25F320S33T8",
7770 .bustype = BUS_SPI,
7771 .manufacture_id = INTEL_ID,
7772 .model_id = INTEL_25F320S33T8,
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 {64 * 1024, 63}, // inaccessible
7788 {8 * 1024, 8}
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 = "25F640S33B8",
7809 .bustype = BUS_SPI,
7810 .manufacture_id = INTEL_ID,
7811 .model_id = INTEL_25F640S33B8,
7812 .total_size = 8192,
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,
Zoltan HERPAIe0e8b2b2020-08-08 16:04:34 +02007816 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007817 .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 {8 * 1024, 8},
7827 {64 * 1024, 127} // inaccessible
7828 },
7829 .block_erase = spi_block_erase_40,
7830 }, { */
7831 .eraseblocks = { {64 * 1024, 128} },
7832 .block_erase = spi_block_erase_d8,
7833 }, {
7834 .eraseblocks = { {8 * 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 = "25F640S33T8",
7848 .bustype = BUS_SPI,
7849 .manufacture_id = INTEL_ID,
7850 .model_id = INTEL_25F640S33T8,
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,
7855 .tested = TEST_UNTESTED,
7856 .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 {64 * 1024, 127}, // inaccessible
7866 {8 * 1024, 8}
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 = "28F001BN/BX-B",
7887 .bustype = BUS_PARALLEL,
7888 .manufacture_id = INTEL_ID,
7889 .model_id = INTEL_28F001B,
7890 .total_size = 128,
7891 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
7892 .tested = TEST_UNTESTED,
7893 .probe = probe_jedec,
7894 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7895 .block_erasers =
7896 {
7897 {
7898 .eraseblocks = {
7899 {8 * 1024, 1},
7900 {4 * 1024, 2},
7901 {112 * 1024, 1},
7902 },
7903 .block_erase = erase_block_82802ab,
7904 },
7905 },
7906 .write = write_82802ab,
7907 .read = read_memmapped,
7908 .voltage = {4500, 5500},
7909 },
7910
7911 {
7912 .vendor = "Intel",
7913 .name = "28F001BN/BX-T",
7914 .bustype = BUS_PARALLEL,
7915 .manufacture_id = INTEL_ID,
7916 .model_id = INTEL_28F001T,
7917 .total_size = 128,
7918 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
7919 .tested = TEST_OK_PREW,
7920 .probe = probe_jedec,
7921 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7922 .block_erasers =
7923 {
7924 {
7925 .eraseblocks = {
7926 {112 * 1024, 1},
7927 {4 * 1024, 2},
7928 {8 * 1024, 1},
7929 },
7930 .block_erase = erase_block_82802ab,
7931 },
7932 },
7933 .write = write_82802ab,
7934 .read = read_memmapped,
7935 .voltage = {4500, 5500},
7936 },
7937
7938 {
7939 .vendor = "Intel",
7940 .name = "28F002BC/BL/BV/BX-T",
7941 .bustype = BUS_PARALLEL,
7942 .manufacture_id = INTEL_ID,
7943 .model_id = INTEL_28F002T,
7944 .total_size = 256,
7945 .page_size = 256 * 1024,
7946 .tested = TEST_OK_PRE,
7947 .probe = probe_82802ab,
7948 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7949 .block_erasers =
7950 {
7951 {
7952 .eraseblocks = {
7953 {128 * 1024, 1},
7954 {96 * 1024, 1},
7955 {8 * 1024, 2},
7956 {16 * 1024, 1},
7957 },
7958 .block_erase = erase_block_82802ab,
7959 },
7960 },
7961 .write = write_82802ab,
7962 .read = read_memmapped,
7963 },
7964
7965 {
7966 .vendor = "Intel",
7967 .name = "28F004B5/BE/BV/BX-B",
7968 .bustype = BUS_PARALLEL,
7969 .manufacture_id = INTEL_ID,
7970 .model_id = INTEL_28F004B,
7971 .total_size = 512,
7972 .page_size = 128 * 1024, /* maximal block size */
7973 .tested = TEST_UNTESTED,
7974 .probe = probe_82802ab,
7975 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7976 .block_erasers =
7977 {
7978 {
7979 .eraseblocks = {
7980 {16 * 1024, 1},
7981 {8 * 1024, 2},
7982 {96 * 1024, 1},
7983 {128 * 1024, 3},
7984 },
7985 .block_erase = erase_block_82802ab,
7986 },
7987 },
7988 .write = write_82802ab,
7989 .read = read_memmapped,
7990 },
7991
7992 {
7993 .vendor = "Intel",
7994 .name = "28F004B5/BE/BV/BX-T",
7995 .bustype = BUS_PARALLEL,
7996 .manufacture_id = INTEL_ID,
7997 .model_id = INTEL_28F004T,
7998 .total_size = 512,
7999 .page_size = 128 * 1024, /* maximal block size */
8000 .tested = TEST_UNTESTED,
8001 .probe = probe_82802ab,
8002 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8003 .block_erasers =
8004 {
8005 {
8006 .eraseblocks = {
8007 {128 * 1024, 3},
8008 {96 * 1024, 1},
8009 {8 * 1024, 2},
8010 {16 * 1024, 1},
8011 },
8012 .block_erase = erase_block_82802ab,
8013 },
8014 },
8015 .write = write_82802ab,
8016 .read = read_memmapped,
8017 },
8018
8019 {
8020 .vendor = "Intel",
8021 .name = "28F008S3/S5/SC",
8022 .bustype = BUS_PARALLEL,
8023 .manufacture_id = INTEL_ID,
8024 .model_id = INTEL_28F004S3,
8025 .total_size = 512,
8026 .page_size = 256,
8027 .tested = TEST_UNTESTED,
8028 .probe = probe_82802ab,
8029 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8030 .block_erasers =
8031 {
8032 {
8033 .eraseblocks = { {64 * 1024, 8} },
8034 .block_erase = erase_block_82802ab,
8035 },
8036 },
8037 .unlock = unlock_28f004s5,
8038 .write = write_82802ab,
8039 .read = read_memmapped,
8040 },
8041
8042 {
8043 .vendor = "Intel",
8044 .name = "28F400BV/BX/CE/CV-B",
8045 .bustype = BUS_PARALLEL,
8046 .manufacture_id = INTEL_ID,
8047 .model_id = INTEL_28F400B,
8048 .total_size = 512,
8049 .page_size = 128 * 1024, /* maximal block size */
8050 .feature_bits = FEATURE_ADDR_SHIFTED,
8051 .tested = TEST_UNTESTED,
8052 .probe = probe_82802ab,
8053 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8054 .block_erasers =
8055 {
8056 {
8057 .eraseblocks = {
8058 {16 * 1024, 1},
8059 {8 * 1024, 2},
8060 {96 * 1024, 1},
8061 {128 * 1024, 3},
8062 },
8063 .block_erase = erase_block_82802ab,
8064 },
8065 },
8066 .write = write_82802ab,
8067 .read = read_memmapped,
8068 },
8069
8070 {
8071 .vendor = "Intel",
8072 .name = "28F400BV/BX/CE/CV-T",
8073 .bustype = BUS_PARALLEL,
8074 .manufacture_id = INTEL_ID,
8075 .model_id = INTEL_28F400T,
8076 .total_size = 512,
8077 .page_size = 128 * 1024, /* maximal block size */
8078 .feature_bits = FEATURE_ADDR_SHIFTED,
8079 .tested = TEST_UNTESTED,
8080 .probe = probe_82802ab,
8081 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8082 .block_erasers =
8083 {
8084 {
8085 .eraseblocks = {
8086 {128 * 1024, 3},
8087 {96 * 1024, 1},
8088 {8 * 1024, 2},
8089 {16 * 1024, 1},
8090 },
8091 .block_erase = erase_block_82802ab,
8092 },
8093 },
8094 .write = write_82802ab,
8095 .read = read_memmapped,
8096 },
8097
8098 {
8099 .vendor = "Intel",
8100 .name = "82802AB",
8101 .bustype = BUS_FWH,
8102 .manufacture_id = INTEL_ID,
8103 .model_id = INTEL_82802AB,
8104 .total_size = 512,
8105 .page_size = 64 * 1024,
8106 .feature_bits = FEATURE_REGISTERMAP,
Alan Green88552572019-07-24 13:56:06 +10008107 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008108 .probe = probe_82802ab,
8109 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8110 .block_erasers =
8111 {
8112 {
8113 .eraseblocks = { {64 * 1024, 8} },
8114 .block_erase = erase_block_82802ab,
8115 },
8116 },
8117 .unlock = unlock_regspace2_uniform_64k,
8118 .write = write_82802ab,
8119 .read = read_memmapped,
8120 .voltage = {3000, 3600},
8121 },
8122
8123 {
8124 .vendor = "Intel",
8125 .name = "82802AC",
8126 .bustype = BUS_FWH,
8127 .manufacture_id = INTEL_ID,
8128 .model_id = INTEL_82802AC,
8129 .total_size = 1024,
8130 .page_size = 64 * 1024,
8131 .feature_bits = FEATURE_REGISTERMAP,
8132 .tested = TEST_OK_PR,
8133 .probe = probe_82802ab,
8134 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8135 .block_erasers =
8136 {
8137 {
8138 .eraseblocks = { {64 * 1024, 16} },
8139 .block_erase = erase_block_82802ab,
8140 },
8141 },
8142 .unlock = unlock_regspace2_uniform_64k,
8143 .write = write_82802ab,
8144 .read = read_memmapped,
8145 .voltage = {3000, 3600},
8146 },
8147
8148 {
8149 .vendor = "Macronix",
8150 .name = "MX23L12854",
8151 .bustype = BUS_SPI,
8152 .manufacture_id = MACRONIX_ID,
8153 .model_id = MACRONIX_MX23L12854,
8154 .total_size = 16384,
8155 .page_size = 256,
8156 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8157 .probe = probe_spi_rdid,
8158 .probe_timing = TIMING_ZERO,
8159 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
8160 .read = spi_chip_read, /* Fast read (0x0B) supported */
8161 .voltage = {3000, 3600},
8162 },
8163
8164 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008165 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008166 .name = "MX23L1654",
8167 .bustype = BUS_SPI,
8168 .manufacture_id = MACRONIX_ID,
8169 .model_id = MACRONIX_MX23L1654,
8170 .total_size = 2048,
8171 .page_size = 256,
8172 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8173 .probe = probe_spi_rdid,
8174 .probe_timing = TIMING_ZERO,
8175 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
8176 .read = spi_chip_read, /* Fast read (0x0B) supported */
8177 .voltage = {3000, 3600},
8178 },
8179
8180 {
8181 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008182 .name = "MX23L3254",
8183 .bustype = BUS_SPI,
8184 .manufacture_id = MACRONIX_ID,
8185 .model_id = MACRONIX_MX23L3254,
8186 .total_size = 4096,
8187 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00008188 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008189 .probe = probe_spi_rdid,
8190 .probe_timing = TIMING_ZERO,
8191 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
8192 .read = spi_chip_read, /* Fast read (0x0B) supported */
8193 .voltage = {3000, 3600},
8194 },
8195
8196 {
8197 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008198 .name = "MX23L6454",
8199 .bustype = BUS_SPI,
8200 .manufacture_id = MACRONIX_ID,
8201 .model_id = MACRONIX_MX23L6454,
8202 .total_size = 8192,
8203 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008204 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00008205 .probe = probe_spi_rdid,
8206 .probe_timing = TIMING_ZERO,
8207 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
8208 .read = spi_chip_read, /* Fast read (0x0B) supported */
8209 .voltage = {3000, 3600},
8210 },
8211
8212 {
8213 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00008214 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008215 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008216 .manufacture_id = MACRONIX_ID,
8217 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008218 .total_size = 128,
8219 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008220 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00008221 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00008222 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008223 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008224 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008225 .block_erasers =
8226 {
8227 {
8228 .eraseblocks = { {4 * 1024, 32} },
8229 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008230 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008231 .eraseblocks = { {64 * 1024, 2} },
8232 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008233 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008234 .eraseblocks = { {128 * 1024, 1} },
8235 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008236 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008237 .eraseblocks = { {128 * 1024, 1} },
8238 .block_erase = spi_block_erase_c7,
8239 },
8240 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008241 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008242 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008243 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008244 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008245 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008246 },
8247
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008248 {
8249 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008250 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008251 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008252 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008253 .model_id = MACRONIX_MX25L12805D,
8254 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008255 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008256 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8257 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008258 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008259 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008260 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008261 .block_erasers =
8262 {
8263 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008264 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008265 .block_erase = spi_block_erase_20,
8266 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008267 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008268 .block_erase = spi_block_erase_d8,
8269 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008270 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008271 .block_erase = spi_block_erase_60,
8272 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008273 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008274 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008275 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008276 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008277 .printlock = spi_prettyprint_status_register_bp3_srwd,
8278 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008279 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008280 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008281 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008282 },
8283
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008284 {
8285 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008286 .name = "MX25L12835F/MX25L12845E/MX25L12865E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008287 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008288 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008289 .model_id = MACRONIX_MX25L12805D,
8290 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008291 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008292 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8293 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner8179be52011-06-04 13:13:34 +00008294 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008295 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008296 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008297 .block_erasers =
8298 {
8299 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008300 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008301 .block_erase = spi_block_erase_20,
8302 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008303 .eraseblocks = { {32 * 1024, 512} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008304 .block_erase = spi_block_erase_52,
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 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8317 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8318 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008319 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008320 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008321 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008322 },
8323
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008324 {
8325 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008326 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008327 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008328 .manufacture_id = MACRONIX_ID,
8329 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008330 .total_size = 2048,
8331 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008332 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +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 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008339 .eraseblocks = { {64 * 1024, 32} },
8340 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008341 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008342 .eraseblocks = { {64 * 1024, 32} },
8343 .block_erase = spi_block_erase_d8,
8344 }, {
8345 .eraseblocks = { {2 * 1024 * 1024, 1} },
8346 .block_erase = spi_block_erase_60,
8347 }, {
8348 .eraseblocks = { {2 * 1024 * 1024, 1} },
8349 .block_erase = spi_block_erase_c7,
8350 },
8351 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008352 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00008353 .unlock = spi_disable_blockprotect,
8354 .write = spi_chip_write_256,
8355 .read = spi_chip_read, /* Fast read (0x0B) supported */
8356 .voltage = {2700, 3600},
8357 },
8358
8359 {
8360 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008361 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008362 .bustype = BUS_SPI,
8363 .manufacture_id = MACRONIX_ID,
8364 .model_id = MACRONIX_MX25L1605,
8365 .total_size = 2048,
8366 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008367 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008368 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8369 .tested = TEST_OK_PREW,
8370 .probe = probe_spi_rdid,
8371 .probe_timing = TIMING_ZERO,
8372 .block_erasers =
8373 {
8374 {
8375 .eraseblocks = { {4 * 1024, 512} },
8376 .block_erase = spi_block_erase_20,
8377 }, {
8378 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008379 .block_erase = spi_block_erase_52,
8380 }, {
8381 .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_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008392 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008393 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008394 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008395 .voltage = {2700, 3600},
8396 },
8397
8398 {
8399 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008400 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
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,
8406 .feature_bits = FEATURE_WRSR_WREN,
8407 .tested = TEST_OK_PREW,
8408 .probe = probe_spi_rdid,
8409 .probe_timing = TIMING_ZERO,
8410 .block_erasers =
8411 {
8412 {
8413 .eraseblocks = { {4 * 1024, 512} },
8414 .block_erase = spi_block_erase_20,
8415 }, {
8416 .eraseblocks = { {64 * 1024, 32} },
8417 .block_erase = spi_block_erase_d8,
8418 }, {
8419 .eraseblocks = { {2 * 1024 * 1024, 1} },
8420 .block_erase = spi_block_erase_60,
8421 }, {
8422 .eraseblocks = { {2 * 1024 * 1024, 1} },
8423 .block_erase = spi_block_erase_c7,
8424 },
8425 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008426 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008427 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008428 .write = spi_chip_write_256,
8429 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008430 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008431 },
8432
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008433 {
8434 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008435 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008436 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008437 .manufacture_id = MACRONIX_ID,
8438 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008439 .total_size = 2048,
8440 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008441 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8442 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Ponsc2054872021-01-15 18:57:32 +01008443 .tested = TEST_OK_PREW,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008444 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008445 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008446 .block_erasers =
8447 {
8448 {
8449 .eraseblocks = { {4 * 1024, 512} },
8450 .block_erase = spi_block_erase_20,
8451 }, {
8452 .eraseblocks = { {64 * 1024, 32} },
8453 .block_erase = spi_block_erase_d8,
8454 }, {
8455 .eraseblocks = { {2 * 1024 * 1024, 1} },
8456 .block_erase = spi_block_erase_60,
8457 }, {
8458 .eraseblocks = { {2 * 1024 * 1024, 1} },
8459 .block_erase = spi_block_erase_c7,
8460 }
8461 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008462 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008463 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008464 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008465 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008466 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008467 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00008468
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008469 {
8470 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00008471 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008472 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008473 .manufacture_id = MACRONIX_ID,
8474 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008475 .total_size = 2048,
8476 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008477 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8478 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008479 .tested = TEST_UNTESTED,
8480 .probe = probe_spi_rdid,
8481 .probe_timing = TIMING_ZERO,
8482 .block_erasers =
8483 {
8484 {
8485 .eraseblocks = { {4 * 1024, 512} },
8486 .block_erase = spi_block_erase_20,
8487 }, {
8488 .eraseblocks = { {64 * 1024, 32} },
8489 .block_erase = spi_block_erase_d8,
8490 }, {
8491 .eraseblocks = { {2 * 1024 * 1024, 1} },
8492 .block_erase = spi_block_erase_60,
8493 }, {
8494 .eraseblocks = { {2 * 1024 * 1024, 1} },
8495 .block_erase = spi_block_erase_c7,
8496 }
8497 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008498 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008499 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008500 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008501 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008502 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00008503 },
8504
8505 {
8506 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008507 .name = "MX25L2005(C)/MX25L2006E",
8508 .bustype = BUS_SPI,
8509 .manufacture_id = MACRONIX_ID,
8510 .model_id = MACRONIX_MX25L2005,
8511 .total_size = 256,
8512 .page_size = 256,
8513 .feature_bits = FEATURE_WRSR_WREN,
8514 .tested = TEST_OK_PREW,
8515 .probe = probe_spi_rdid,
8516 .probe_timing = TIMING_ZERO,
8517 .block_erasers =
8518 {
8519 {
8520 .eraseblocks = { {4 * 1024, 64} },
8521 .block_erase = spi_block_erase_20,
8522 }, {
8523 .eraseblocks = { {64 * 1024, 4} },
8524 .block_erase = spi_block_erase_52,
8525 }, {
8526 .eraseblocks = { {64 * 1024, 4} },
8527 .block_erase = spi_block_erase_d8,
8528 }, {
8529 .eraseblocks = { {256 * 1024, 1} },
8530 .block_erase = spi_block_erase_60,
8531 }, {
8532 .eraseblocks = { {256 * 1024, 1} },
8533 .block_erase = spi_block_erase_c7,
8534 },
8535 },
8536 .printlock = spi_prettyprint_status_register_bp1_srwd,
8537 .unlock = spi_disable_blockprotect,
8538 .write = spi_chip_write_256,
8539 .read = spi_chip_read, /* Fast read (0x0B) supported */
8540 .voltage = {2700, 3600},
8541 },
8542
8543 {
8544 .vendor = "Macronix",
Alan Green03707302019-08-26 12:50:43 +10008545 .name = "MX25L25635F/MX25L25645G",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008546 .bustype = BUS_SPI,
8547 .manufacture_id = MACRONIX_ID,
8548 .model_id = MACRONIX_MX25L25635F,
8549 .total_size = 32768,
8550 .page_size = 256,
8551 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8552 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8553 .tested = TEST_OK_PREW,
8554 .probe = probe_spi_rdid,
8555 .probe_timing = TIMING_ZERO,
8556 .block_erasers =
8557 {
8558 {
8559 .eraseblocks = { {4 * 1024, 8192} },
8560 .block_erase = spi_block_erase_21,
8561 }, {
8562 .eraseblocks = { {4 * 1024, 8192} },
8563 .block_erase = spi_block_erase_20,
8564 }, {
8565 .eraseblocks = { {32 * 1024, 1024} },
8566 .block_erase = spi_block_erase_5c,
8567 }, {
8568 .eraseblocks = { {32 * 1024, 1024} },
8569 .block_erase = spi_block_erase_52,
8570 }, {
8571 .eraseblocks = { {64 * 1024, 512} },
8572 .block_erase = spi_block_erase_dc,
8573 }, {
8574 .eraseblocks = { {64 * 1024, 512} },
8575 .block_erase = spi_block_erase_d8,
8576 }, {
8577 .eraseblocks = { {32 * 1024 * 1024, 1} },
8578 .block_erase = spi_block_erase_60,
8579 }, {
8580 .eraseblocks = { {32 * 1024 * 1024, 1} },
8581 .block_erase = spi_block_erase_c7,
8582 }
8583 },
8584 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8585 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8586 .unlock = spi_disable_blockprotect_bp3_srwd,
8587 .write = spi_chip_write_256,
8588 .read = spi_chip_read, /* Fast read (0x0B) supported */
8589 .voltage = {2700, 3600},
8590 },
8591
8592 {
8593 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00008594 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008595 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008596 .manufacture_id = MACRONIX_ID,
8597 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008598 .total_size = 4096,
8599 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008600 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008601 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008602 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008603 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008604 .block_erasers =
8605 {
8606 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008607 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008608 .block_erase = spi_block_erase_20,
8609 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008610 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008611 .block_erase = spi_block_erase_d8,
8612 }, {
8613 .eraseblocks = { {4 * 1024 * 1024, 1} },
8614 .block_erase = spi_block_erase_60,
8615 }, {
8616 .eraseblocks = { {4 * 1024 * 1024, 1} },
8617 .block_erase = spi_block_erase_c7,
8618 },
8619 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008620 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008621 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008622 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008623 .read = spi_chip_read, /* Fast read (0x0B) supported */
8624 .voltage = {2700, 3600},
8625 },
8626
8627 {
8628 .vendor = "Macronix",
8629 .name = "MX25L3205D/MX25L3208D",
8630 .bustype = BUS_SPI,
8631 .manufacture_id = MACRONIX_ID,
8632 .model_id = MACRONIX_MX25L3205,
8633 .total_size = 4096,
8634 .page_size = 256,
8635 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8636 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8637 .tested = TEST_OK_PREW,
8638 .probe = probe_spi_rdid,
8639 .probe_timing = TIMING_ZERO,
8640 .block_erasers =
8641 {
8642 {
8643 .eraseblocks = { {4 * 1024, 1024} },
8644 .block_erase = spi_block_erase_20,
8645 }, {
8646 .eraseblocks = { {64 * 1024, 64} },
8647 .block_erase = spi_block_erase_d8,
8648 }, {
8649 .eraseblocks = { {4 * 1024 * 1024, 1} },
8650 .block_erase = spi_block_erase_60,
8651 }, {
8652 .eraseblocks = { {4 * 1024 * 1024, 1} },
8653 .block_erase = spi_block_erase_c7,
8654 },
8655 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008656 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008657 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008658 .write = spi_chip_write_256,
8659 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8660 .voltage = {2700, 3600},
8661 },
8662
8663 {
8664 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008665 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008666 .bustype = BUS_SPI,
8667 .manufacture_id = MACRONIX_ID,
8668 .model_id = MACRONIX_MX25L3205,
8669 .total_size = 4096,
8670 .page_size = 256,
8671 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8672 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8673 .tested = TEST_OK_PREW,
8674 .probe = probe_spi_rdid,
8675 .probe_timing = TIMING_ZERO,
8676 .block_erasers =
8677 {
8678 {
8679 .eraseblocks = { {4 * 1024, 1024} },
8680 .block_erase = spi_block_erase_20,
8681 }, {
8682 .eraseblocks = { {64 * 1024, 64} },
8683 .block_erase = spi_block_erase_d8,
8684 }, {
8685 .eraseblocks = { {64 * 1024, 64} },
8686 .block_erase = spi_block_erase_52,
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 Tauner12f3d512014-05-27 21:27:27 +00008695 .printlock = spi_prettyprint_status_register_bp3_srwd,
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 */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008699 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008700 },
8701
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008702 {
8703 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008704 .name = "MX25L3235D",
8705 .bustype = BUS_SPI,
8706 .manufacture_id = MACRONIX_ID,
8707 .model_id = MACRONIX_MX25L3235D,
8708 .total_size = 4096,
8709 .page_size = 256,
8710 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
8711 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8712 .tested = TEST_UNTESTED,
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 = { {4 * 1024 * 1024, 1} },
8725 .block_erase = spi_block_erase_60,
8726 }, {
8727 .eraseblocks = { {4 * 1024 * 1024, 1} },
8728 .block_erase = spi_block_erase_c7,
8729 }
8730 },
8731 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8732 .unlock = spi_disable_blockprotect_bp3_srwd,
8733 .write = spi_chip_write_256,
8734 .read = spi_chip_read,
8735 .voltage = {2700, 3600},
8736 },
8737
8738 {
8739 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008740 .name = "MX25L3273E",
8741 .bustype = BUS_SPI,
8742 .manufacture_id = MACRONIX_ID,
8743 .model_id = MACRONIX_MX25L3205,
8744 .total_size = 4096,
8745 .page_size = 256,
8746 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8747 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008748 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008749 .probe = probe_spi_rdid,
8750 .probe_timing = TIMING_ZERO,
8751 .block_erasers =
8752 {
8753 {
8754 .eraseblocks = { {4 * 1024, 1024} },
8755 .block_erase = spi_block_erase_20,
8756 }, {
8757 .eraseblocks = { {32 * 1024, 128} },
8758 .block_erase = spi_block_erase_52,
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 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008770 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008771 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008772 .write = spi_chip_write_256,
8773 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8774 .voltage = {2700, 3600},
8775 },
8776
8777 {
8778 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008779 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008780 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008781 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008782 .model_id = MACRONIX_MX25L4005,
8783 .total_size = 512,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008784 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008785 .feature_bits = FEATURE_WRSR_WREN,
8786 .tested = TEST_OK_PREW,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008787 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008788 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008789 .block_erasers =
8790 {
8791 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008792 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00008793 .block_erase = spi_block_erase_20,
8794 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008795 .eraseblocks = { {64 * 1024, 8} },
8796 .block_erase = spi_block_erase_52,
8797 }, {
8798 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson54596372010-01-09 05:30:14 +00008799 .block_erase = spi_block_erase_d8,
8800 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008801 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008802 .block_erase = spi_block_erase_60,
8803 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008804 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008805 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008806 },
Sean Nelson54596372010-01-09 05:30:14 +00008807 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008808 .printlock = spi_prettyprint_status_register_bp2_srwd,
8809 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008810 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008811 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008812 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008813 },
8814
8815 {
8816 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008817 .name = "MX25L512(E)/MX25V512(C)",
8818 .bustype = BUS_SPI,
8819 .manufacture_id = MACRONIX_ID,
8820 .model_id = MACRONIX_MX25L512,
8821 .total_size = 64,
8822 .page_size = 256,
8823 /* MX25L512E supports SFDP */
8824 .feature_bits = FEATURE_WRSR_WREN,
8825 .tested = TEST_OK_PREW,
8826 .probe = probe_spi_rdid,
8827 .probe_timing = TIMING_ZERO,
8828 .block_erasers =
8829 {
8830 {
8831 .eraseblocks = { {4 * 1024, 16} },
8832 .block_erase = spi_block_erase_20,
8833 }, {
8834 .eraseblocks = { {64 * 1024, 1} },
8835 .block_erase = spi_block_erase_52,
8836 }, {
8837 .eraseblocks = { {64 * 1024, 1} },
8838 .block_erase = spi_block_erase_d8,
8839 }, {
8840 .eraseblocks = { {64 * 1024, 1} },
8841 .block_erase = spi_block_erase_60,
8842 }, {
8843 .eraseblocks = { {64 * 1024, 1} },
8844 .block_erase = spi_block_erase_c7,
8845 },
8846 },
8847 .printlock = spi_prettyprint_status_register_bp1_srwd,
8848 .unlock = spi_disable_blockprotect,
8849 .write = spi_chip_write_256,
8850 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
8851 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
8852 },
8853
8854 {
8855 .vendor = "Macronix",
Steve Markgraf7e6f3a72020-07-13 18:22:56 +02008856 .name = "MX25L5121E",
8857 .bustype = BUS_SPI,
8858 .manufacture_id = MACRONIX_ID,
8859 .model_id = MACRONIX_MX25L5121E,
8860 .total_size = 64,
8861 .page_size = 32,
8862 .feature_bits = FEATURE_WRSR_WREN,
8863 .tested = TEST_OK_PREW,
8864 .probe = probe_spi_rdid,
8865 .probe_timing = TIMING_ZERO,
8866 .block_erasers =
8867 {
8868 {
8869 .eraseblocks = { {4 * 1024, 16} },
8870 .block_erase = spi_block_erase_20,
8871 }, {
8872 .eraseblocks = { {64 * 1024, 1} },
8873 .block_erase = spi_block_erase_52,
8874 }, {
8875 .eraseblocks = { {64 * 1024, 1} },
8876 .block_erase = spi_block_erase_d8,
8877 }, {
8878 .eraseblocks = { {64 * 1024, 1} },
8879 .block_erase = spi_block_erase_60,
8880 }, {
8881 .eraseblocks = { {64 * 1024, 1} },
8882 .block_erase = spi_block_erase_c7,
8883 },
8884 },
8885 .printlock = spi_prettyprint_status_register_bp1_srwd,
8886 .unlock = spi_disable_blockprotect,
8887 .write = spi_chip_write_256,
8888 .read = spi_chip_read, /* Fast read (0x0B) supported */
8889 .voltage = {2700, 3600},
8890 },
8891
8892 {
8893 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008894 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008895 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008896 .manufacture_id = MACRONIX_ID,
8897 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008898 .total_size = 8192,
8899 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008900 /* Has an additional 512B EEPROM sector */
8901 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008902 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008903 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008904 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008905 .block_erasers =
8906 {
8907 {
8908 .eraseblocks = { {64 * 1024, 128} },
8909 .block_erase = spi_block_erase_20,
8910 }, {
8911 .eraseblocks = { {64 * 1024, 128} },
8912 .block_erase = spi_block_erase_d8,
8913 }, {
8914 .eraseblocks = { {8 * 1024 * 1024, 1} },
8915 .block_erase = spi_block_erase_60,
8916 }, {
8917 .eraseblocks = { {8 * 1024 * 1024, 1} },
8918 .block_erase = spi_block_erase_c7,
8919 }
8920 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008921 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008922 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008923 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008924 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008925 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008926 },
8927
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008928 {
8929 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008930 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00008931 .bustype = BUS_SPI,
8932 .manufacture_id = MACRONIX_ID,
8933 .model_id = MACRONIX_MX25L6405,
8934 .total_size = 8192,
8935 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008936 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008937 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8938 .tested = TEST_OK_PREW,
8939 .probe = probe_spi_rdid,
8940 .probe_timing = TIMING_ZERO,
8941 .block_erasers =
8942 {
8943 {
8944 .eraseblocks = { {4 * 1024, 2048} },
8945 .block_erase = spi_block_erase_20,
8946 }, {
8947 .eraseblocks = { {64 * 1024, 128} },
8948 .block_erase = spi_block_erase_d8,
8949 }, {
8950 .eraseblocks = { {8 * 1024 * 1024, 1} },
8951 .block_erase = spi_block_erase_60,
8952 }, {
8953 .eraseblocks = { {8 * 1024 * 1024, 1} },
8954 .block_erase = spi_block_erase_c7,
8955 }
8956 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008957 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008958 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008959 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008960 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00008961 .voltage = {2700, 3600},
8962 },
8963
8964 {
8965 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008966 .name = "MX25L6406E/MX25L6408E",
8967 .bustype = BUS_SPI,
8968 .manufacture_id = MACRONIX_ID,
8969 .model_id = MACRONIX_MX25L6405,
8970 .total_size = 8192,
8971 .page_size = 256,
8972 /* MX25L6406E supports SFDP */
8973 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
8974 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8975 .tested = TEST_OK_PREW,
8976 .probe = probe_spi_rdid,
8977 .probe_timing = TIMING_ZERO,
8978 .block_erasers =
8979 {
8980 {
8981 .eraseblocks = { {4 * 1024, 2048} },
8982 .block_erase = spi_block_erase_20,
8983 }, {
8984 .eraseblocks = { {64 * 1024, 128} },
8985 .block_erase = spi_block_erase_52,
8986 }, {
8987 .eraseblocks = { {64 * 1024, 128} },
8988 .block_erase = spi_block_erase_d8,
8989 }, {
8990 .eraseblocks = { {8 * 1024 * 1024, 1} },
8991 .block_erase = spi_block_erase_60,
8992 }, {
8993 .eraseblocks = { {8 * 1024 * 1024, 1} },
8994 .block_erase = spi_block_erase_c7,
8995 }
8996 },
8997 .printlock = spi_prettyprint_status_register_bp3_srwd,
8998 .unlock = spi_disable_blockprotect_bp3_srwd,
8999 .write = spi_chip_write_256,
9000 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
9001 .voltage = {2700, 3600},
9002 },
9003
9004 {
9005 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01009006 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00009007 .bustype = BUS_SPI,
9008 .manufacture_id = MACRONIX_ID,
9009 .model_id = MACRONIX_MX25L6405,
9010 .total_size = 8192,
9011 .page_size = 256,
9012 /* supports SFDP */
9013 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9014 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9015 .tested = TEST_OK_PREW,
9016 .probe = probe_spi_rdid,
9017 .probe_timing = TIMING_ZERO,
9018 .block_erasers =
9019 {
9020 {
9021 .eraseblocks = { {4 * 1024, 2048} },
9022 .block_erase = spi_block_erase_20,
9023 }, {
9024 .eraseblocks = { {32 * 1024, 256} },
9025 .block_erase = spi_block_erase_52,
9026 }, {
9027 .eraseblocks = { {64 * 1024, 128} },
9028 .block_erase = spi_block_erase_d8,
9029 }, {
9030 .eraseblocks = { {8 * 1024 * 1024, 1} },
9031 .block_erase = spi_block_erase_60,
9032 }, {
9033 .eraseblocks = { {8 * 1024 * 1024, 1} },
9034 .block_erase = spi_block_erase_c7,
9035 }
9036 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009037 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009038 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009039 .write = spi_chip_write_256,
9040 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9041 .voltage = {2700, 3600},
9042 },
9043
9044 {
9045 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009046 .name = "MX25L6495F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009047 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009048 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009049 .model_id = MACRONIX_MX25L6495F,
9050 .total_size = 8192,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009051 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009052 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009053 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00009054 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009055 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009056 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009057 .block_erasers =
9058 {
9059 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009060 .eraseblocks = { {4 * 1024, 2048} },
Sean Nelson54596372010-01-09 05:30:14 +00009061 .block_erase = spi_block_erase_20,
9062 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009063 .eraseblocks = { {64 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00009064 .block_erase = spi_block_erase_d8,
9065 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009066 .eraseblocks = { {32 * 1024, 256} },
9067 .block_erase = spi_block_erase_52,
9068 }, {
9069 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009070 .block_erase = spi_block_erase_60,
9071 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009072 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009073 .block_erase = spi_block_erase_c7,
9074 }
9075 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009076 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009077 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009078 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009079 .voltage = {2700, 3600},
9080 },
9081
9082 {
9083 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009084 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Stefan Tauner5c316f92015-02-08 21:57:52 +00009085 .bustype = BUS_SPI,
9086 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009087 .model_id = MACRONIX_MX25L8005,
9088 .total_size = 1024,
9089 .page_size = 256,
9090 /* MX25L8006E, MX25L8008E support SFDP */
9091 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
9092 .feature_bits = FEATURE_WRSR_WREN,
9093 .tested = TEST_OK_PREW,
9094 .probe = probe_spi_rdid,
9095 .probe_timing = TIMING_ZERO,
9096 .block_erasers =
9097 {
9098 {
9099 .eraseblocks = { {4 * 1024, 256} },
9100 .block_erase = spi_block_erase_20,
9101 }, {
9102 .eraseblocks = { {64 * 1024, 16} },
9103 .block_erase = spi_block_erase_52,
9104 }, {
9105 .eraseblocks = { {64 * 1024, 16} },
9106 .block_erase = spi_block_erase_d8,
9107 }, {
9108 .eraseblocks = { {1024 * 1024, 1} },
9109 .block_erase = spi_block_erase_60,
9110 }, {
9111 .eraseblocks = { {1024 * 1024, 1} },
9112 .block_erase = spi_block_erase_c7,
9113 },
9114 },
9115 .printlock = spi_prettyprint_status_register_bp2_srwd,
9116 .unlock = spi_disable_blockprotect,
9117 .write = spi_chip_write_256,
9118 .read = spi_chip_read, /* Fast read (0x0B) supported */
9119 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
9120 },
9121
9122 {
9123 .vendor = "Macronix",
sibradzicf62623c2020-03-14 17:21:34 +09009124 .name = "MX25R3235F",
9125 .bustype = BUS_SPI,
9126 .manufacture_id = MACRONIX_ID,
9127 .model_id = MACRONIX_MX25R3235F,
9128 .total_size = 4096,
9129 .page_size = 256,
9130 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9131 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9132 .tested = TEST_OK_PREW,
9133 .probe = probe_spi_rdid,
9134 .probe_timing = TIMING_ZERO,
9135 .block_erasers =
9136 {
9137 {
9138 .eraseblocks = { {4 * 1024, 1024} },
9139 .block_erase = spi_block_erase_20,
9140 }, {
9141 .eraseblocks = { {64 * 1024, 64} },
9142 .block_erase = spi_block_erase_d8,
9143 }, {
9144 .eraseblocks = { {32 * 1024, 128} },
9145 .block_erase = spi_block_erase_52,
9146 }, {
9147 .eraseblocks = { {4 * 1024 * 1024, 1} },
9148 .block_erase = spi_block_erase_60,
9149 }, {
9150 .eraseblocks = { {4 * 1024 * 1024, 1} },
9151 .block_erase = spi_block_erase_c7,
9152 }
9153 },
9154 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit 6 is quad enable */
9155 .unlock = spi_disable_blockprotect_bp3_srwd,
9156 .write = spi_chip_write_256,
9157 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9158 .voltage = {1650, 3600},
9159 },
9160
9161 {
9162 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009163 .name = "MX25R6435F",
9164 .bustype = BUS_SPI,
9165 .manufacture_id = MACRONIX_ID,
9166 .model_id = MACRONIX_MX25R6435F,
9167 .total_size = 8192,
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, 2048} },
9178 .block_erase = spi_block_erase_20,
9179 }, {
9180 .eraseblocks = { {64 * 1024, 128} },
9181 .block_erase = spi_block_erase_d8,
9182 }, {
9183 .eraseblocks = { {32 * 1024, 256} },
9184 .block_erase = spi_block_erase_52,
9185 }, {
9186 .eraseblocks = { {8 * 1024 * 1024, 1} },
9187 .block_erase = spi_block_erase_60,
9188 }, {
9189 .eraseblocks = { {8 * 1024 * 1024, 1} },
9190 .block_erase = spi_block_erase_c7,
9191 }
9192 },
9193 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 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",
9202 .name = "MX25U12835F",
9203 .bustype = BUS_SPI,
9204 .manufacture_id = MACRONIX_ID,
9205 .model_id = MACRONIX_MX25U12835E,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009206 .total_size = 16384,
9207 .page_size = 256,
9208 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009209 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009210 .tested = TEST_OK_PREW,
9211 .probe = probe_spi_rdid,
9212 .probe_timing = TIMING_ZERO,
9213 .block_erasers =
9214 {
9215 {
9216 .eraseblocks = { {4 * 1024, 4096} },
9217 .block_erase = spi_block_erase_20,
9218 }, {
9219 .eraseblocks = { {32 * 1024, 512} },
9220 .block_erase = spi_block_erase_52,
9221 }, {
9222 .eraseblocks = { {64 * 1024, 256} },
9223 .block_erase = spi_block_erase_d8,
9224 }, {
9225 .eraseblocks = { {16 * 1024 * 1024, 1} },
9226 .block_erase = spi_block_erase_60,
9227 }, {
9228 .eraseblocks = { {16 * 1024 * 1024, 1} },
9229 .block_erase = spi_block_erase_c7,
9230 }
9231 },
Angel Ponsf112e242018-09-30 20:14:17 +02009232 /* TODO: security register */
9233 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9234 .unlock = spi_disable_blockprotect_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009235 .write = spi_chip_write_256, /* Multi I/O supported */
Angel Ponsf112e242018-09-30 20:14:17 +02009236 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9237 .voltage = {1650, 2000},
9238 },
9239
9240 {
9241 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00009242 .name = "MX25U1635E",
9243 .bustype = BUS_SPI,
9244 .manufacture_id = MACRONIX_ID,
9245 .model_id = MACRONIX_MX25U1635E,
9246 .total_size = 2048,
9247 .page_size = 256,
9248 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9249 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9250 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009251 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00009252 .probe = probe_spi_rdid,
9253 .probe_timing = TIMING_ZERO,
9254 .block_erasers =
9255 {
9256 {
9257 .eraseblocks = { {4 * 1024, 512} },
9258 .block_erase = spi_block_erase_20,
9259 }, {
9260 .eraseblocks = { {32 * 1024, 64} },
9261 .block_erase = spi_block_erase_52,
9262 }, {
9263 .eraseblocks = { {64 * 1024, 32} },
9264 .block_erase = spi_block_erase_d8,
9265 }, {
9266 .eraseblocks = { {2 * 1024 * 1024, 1} },
9267 .block_erase = spi_block_erase_60,
9268 }, {
9269 .eraseblocks = { {2 * 1024 * 1024, 1} },
9270 .block_erase = spi_block_erase_c7,
9271 }
9272 },
9273 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00009274 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009275 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00009276 .write = spi_chip_write_256,
9277 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9278 .voltage = {1650, 2000},
9279 },
9280
9281 {
9282 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07009283 .name = "MX25U25635F",
9284 .bustype = BUS_SPI,
9285 .manufacture_id = MACRONIX_ID,
9286 .model_id = MACRONIX_MX25U25635F,
9287 .total_size = 32768,
9288 .page_size = 256,
9289 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9290 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
9291 .tested = TEST_OK_PR,
9292 .probe = probe_spi_rdid,
9293 .probe_timing = TIMING_ZERO,
9294 .block_erasers =
9295 {
9296 {
9297 .eraseblocks = { {4 * 1024, 8192} },
9298 .block_erase = spi_block_erase_21,
9299 }, {
9300 .eraseblocks = { {4 * 1024, 8192} },
9301 .block_erase = spi_block_erase_20,
9302 }, {
9303 .eraseblocks = { {32 * 1024, 1024} },
9304 .block_erase = spi_block_erase_5c,
9305 }, {
9306 .eraseblocks = { {32 * 1024, 1024} },
9307 .block_erase = spi_block_erase_52,
9308 }, {
9309 .eraseblocks = { {64 * 1024, 512} },
9310 .block_erase = spi_block_erase_dc,
9311 }, {
9312 .eraseblocks = { {64 * 1024, 512} },
9313 .block_erase = spi_block_erase_d8,
9314 }, {
9315 .eraseblocks = { {32 * 1024 * 1024, 1} },
9316 .block_erase = spi_block_erase_60,
9317 }, {
9318 .eraseblocks = { {32 * 1024 * 1024, 1} },
9319 .block_erase = spi_block_erase_c7,
9320 }
9321 },
9322 /* TODO: security register */
9323 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9324 .unlock = spi_disable_blockprotect_bp3_srwd,
9325 .write = spi_chip_write_256, /* Multi I/O supported */
9326 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9327 .voltage = {1650, 2000},
9328 },
9329
9330 {
9331 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009332 .name = "MX25U3235E/F",
9333 .bustype = BUS_SPI,
9334 .manufacture_id = MACRONIX_ID,
9335 .model_id = MACRONIX_MX25U3235E,
9336 .total_size = 4096,
9337 .page_size = 256,
9338 /* F model supports SFDP */
9339 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9340 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9341 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
9342 .tested = TEST_OK_PREW,
9343 .probe = probe_spi_rdid,
9344 .probe_timing = TIMING_ZERO,
9345 .block_erasers =
9346 {
9347 {
9348 .eraseblocks = { {4 * 1024, 1024} },
9349 .block_erase = spi_block_erase_20,
9350 }, {
9351 .eraseblocks = { {32 * 1024, 128} },
9352 .block_erase = spi_block_erase_52,
9353 }, {
9354 .eraseblocks = { {64 * 1024, 64} },
9355 .block_erase = spi_block_erase_d8,
9356 }, {
9357 .eraseblocks = { {4 * 1024 * 1024, 1} },
9358 .block_erase = spi_block_erase_60,
9359 }, {
9360 .eraseblocks = { {4 * 1024 * 1024, 1} },
9361 .block_erase = spi_block_erase_c7,
9362 }
9363 },
9364 /* TODO: security register */
9365 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9366 .unlock = spi_disable_blockprotect_bp3_srwd,
9367 .write = spi_chip_write_256,
9368 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9369 .voltage = {1650, 2000},
9370 },
9371
9372 {
9373 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009374 .name = "MX25U51245G",
9375 .bustype = BUS_SPI,
9376 .manufacture_id = MACRONIX_ID,
9377 .model_id = MACRONIX_MX25U51245G,
9378 .total_size = 65536,
9379 .page_size = 256,
9380 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
9381 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
9382 .tested = TEST_OK_PREW,
9383 .probe = probe_spi_rdid,
9384 .probe_timing = TIMING_ZERO,
9385 .block_erasers =
9386 {
9387 {
9388 .eraseblocks = { {4 * 1024, 16384} },
9389 .block_erase = spi_block_erase_21,
9390 }, {
9391 .eraseblocks = { {4 * 1024, 16384} },
9392 .block_erase = spi_block_erase_20,
9393 }, {
9394 .eraseblocks = { {32 * 1024, 2048} },
9395 .block_erase = spi_block_erase_5c,
9396 }, {
9397 .eraseblocks = { {32 * 1024, 2048} },
9398 .block_erase = spi_block_erase_52,
9399 }, {
9400 .eraseblocks = { {64 * 1024, 1024} },
9401 .block_erase = spi_block_erase_dc,
9402 }, {
9403 .eraseblocks = { {64 * 1024, 1024} },
9404 .block_erase = spi_block_erase_d8,
9405 }, {
9406 .eraseblocks = { {64 * 1024 * 1024, 1} },
9407 .block_erase = spi_block_erase_60,
9408 }, {
9409 .eraseblocks = { {64 * 1024 * 1024, 1} },
9410 .block_erase = spi_block_erase_c7,
9411 }
9412 },
9413 /* TODO: security register */
9414 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9415 .unlock = spi_disable_blockprotect_bp3_srwd,
9416 .write = spi_chip_write_256, /* Multi I/O supported */
9417 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9418 .voltage = {1650, 2000},
9419 },
9420
9421 {
9422 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009423 .name = "MX25U6435E/F",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009424 .bustype = BUS_SPI,
9425 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009426 .model_id = MACRONIX_MX25U6435E,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009427 .total_size = 8192,
9428 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009429 /* F model supports SFDP */
9430 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9431 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9432 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009433 .tested = TEST_OK_PREW,
9434 .probe = probe_spi_rdid,
9435 .probe_timing = TIMING_ZERO,
9436 .block_erasers =
9437 {
9438 {
9439 .eraseblocks = { {4 * 1024, 2048} },
9440 .block_erase = spi_block_erase_20,
9441 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009442 .eraseblocks = { {32 * 1024, 256} },
9443 .block_erase = spi_block_erase_52,
9444 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009445 .eraseblocks = { {64 * 1024, 128} },
9446 .block_erase = spi_block_erase_d8,
9447 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009448 .eraseblocks = { {8 * 1024 * 1024, 1} },
9449 .block_erase = spi_block_erase_60,
9450 }, {
9451 .eraseblocks = { {8 * 1024 * 1024, 1} },
9452 .block_erase = spi_block_erase_c7,
9453 }
9454 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009455 /* TODO: security register */
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009456 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9457 .unlock = spi_disable_blockprotect_bp3_srwd,
9458 .write = spi_chip_write_256,
9459 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009460 .voltage = {1650, 2000},
9461 },
9462
9463 {
9464 .vendor = "Macronix",
9465 .name = "MX25U8032E",
9466 .bustype = BUS_SPI,
9467 .manufacture_id = MACRONIX_ID,
9468 .model_id = MACRONIX_MX25U8032E,
9469 .total_size = 1024,
9470 .page_size = 256,
9471 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9472 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9473 .tested = TEST_OK_PREW,
9474 .probe = probe_spi_rdid,
9475 .probe_timing = TIMING_ZERO,
9476 .block_erasers =
9477 {
9478 {
9479 .eraseblocks = { {4 * 1024, 256} },
9480 .block_erase = spi_block_erase_20,
9481 }, {
9482 .eraseblocks = { {32 * 1024, 32} },
9483 .block_erase = spi_block_erase_52,
9484 }, {
9485 .eraseblocks = { {64 * 1024, 16} },
9486 .block_erase = spi_block_erase_d8,
9487 }, {
9488 .eraseblocks = { {1024 * 1024, 1} },
9489 .block_erase = spi_block_erase_60,
9490 }, {
9491 .eraseblocks = { {1024 * 1024, 1} },
9492 .block_erase = spi_block_erase_c7,
9493 }
9494 },
9495 /* TODO: security register */
9496 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9497 .unlock = spi_disable_blockprotect_bp3_srwd,
9498 .write = spi_chip_write_256,
9499 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9500 .voltage = {1650, 2000},
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009501 },
9502
9503 {
9504 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00009505 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009506 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009507 .manufacture_id = MACRONIX_ID,
9508 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009509 .total_size = 128,
9510 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009511 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9512 .tested = TEST_UNTESTED,
9513 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009514 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009515 .block_erasers =
9516 {
9517 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009518 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009519 {8 * 1024, 1},
9520 {4 * 1024, 2},
9521 {8 * 1024, 2},
9522 {32 * 1024, 1},
9523 {64 * 1024, 1},
9524 },
Sean Nelson35727f72010-01-28 23:55:12 +00009525 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009526 }, {
9527 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009528 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009529 }
9530 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009531 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009532 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009533 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009534 },
9535
9536 {
9537 .vendor = "Macronix",
9538 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009539 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009540 .manufacture_id = MACRONIX_ID,
9541 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009542 .total_size = 128,
9543 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009544 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00009545 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009546 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009547 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009548 .block_erasers =
9549 {
9550 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009551 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009552 {64 * 1024, 1},
9553 {32 * 1024, 1},
9554 {8 * 1024, 2},
9555 {4 * 1024, 2},
9556 {8 * 1024, 1},
9557 },
Sean Nelson35727f72010-01-28 23:55:12 +00009558 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009559 }, {
9560 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009561 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009562 }
9563 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009564 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009565 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009566 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009567 },
9568
9569 {
9570 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009571 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009572 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009573 .manufacture_id = MACRONIX_ID,
9574 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009575 .total_size = 256,
9576 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009577 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009578 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009579 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009580 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009581 .block_erasers =
9582 {
9583 {
9584 .eraseblocks = {
9585 {16 * 1024, 1},
9586 {8 * 1024, 2},
9587 {32 * 1024, 1},
9588 {64 * 1024, 3},
9589 },
Sean Nelson35727f72010-01-28 23:55:12 +00009590 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009591 }, {
9592 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009593 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009594 },
9595 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009596 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009597 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009598 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009599 },
9600
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009601 {
9602 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009603 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009604 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009605 .manufacture_id = MACRONIX_ID,
9606 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009607 .total_size = 256,
9608 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009609 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009610 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009611 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009612 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009613 .block_erasers =
9614 {
9615 {
9616 .eraseblocks = {
9617 {64 * 1024, 3},
9618 {32 * 1024, 1},
9619 {8 * 1024, 2},
9620 {16 * 1024, 1},
9621 },
Sean Nelson35727f72010-01-28 23:55:12 +00009622 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009623 }, {
9624 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009625 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009626 },
9627 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009628 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009629 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009630 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009631 },
9632
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009633 {
9634 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00009635 .name = "MX29F022(N)B",
9636 .bustype = BUS_PARALLEL,
9637 .manufacture_id = MACRONIX_ID,
9638 .model_id = MACRONIX_MX29F022B,
9639 .total_size = 256,
9640 .page_size = 0, /* unused */
9641 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9642 .tested = TEST_UNTESTED,
9643 .probe = probe_jedec,
9644 .probe_timing = TIMING_ZERO,
9645 .block_erasers =
9646 {
9647 {
9648 .eraseblocks = {
9649 {16 * 1024, 1},
9650 {8 * 1024, 2},
9651 {32 * 1024, 1},
9652 {64 * 1024, 3},
9653 },
9654 .block_erase = erase_sector_jedec,
9655 }, {
9656 .eraseblocks = { {256 * 1024, 1} },
9657 .block_erase = erase_chip_block_jedec,
9658 }
9659 },
9660 .write = write_jedec_1,
9661 .read = read_memmapped,
9662 .voltage = {4500, 5500},
9663 },
9664
9665 {
9666 .vendor = "Macronix",
9667 .name = "MX29F022(N)T",
9668 .bustype = BUS_PARALLEL,
9669 .manufacture_id = MACRONIX_ID,
9670 .model_id = MACRONIX_MX29F022T,
9671 .total_size = 256,
9672 .page_size = 0, /* unused */
9673 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9674 .tested = TEST_OK_PREW,
9675 .probe = probe_jedec,
9676 .probe_timing = TIMING_ZERO,
9677 .block_erasers =
9678 {
9679 {
9680 .eraseblocks = {
9681 {64 * 1024, 3},
9682 {32 * 1024, 1},
9683 {8 * 1024, 2},
9684 {16 * 1024, 1},
9685 },
9686 .block_erase = erase_sector_jedec,
9687 }, {
9688 .eraseblocks = { {256 * 1024, 1} },
9689 .block_erase = erase_chip_block_jedec,
9690 }
9691 },
9692 .write = write_jedec_1,
9693 .read = read_memmapped,
9694 .voltage = {4500, 5500},
9695 },
9696
9697 {
9698 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00009699 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009700 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00009701 .manufacture_id = MACRONIX_ID,
9702 .model_id = MACRONIX_MX29F040,
9703 .total_size = 512,
9704 .page_size = 64 * 1024,
9705 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9706 .tested = TEST_UNTESTED,
9707 .probe = probe_jedec,
9708 .probe_timing = TIMING_ZERO,
9709 .block_erasers =
9710 {
9711 {
9712 .eraseblocks = { {64 * 1024, 8} },
9713 .block_erase = erase_sector_jedec,
9714 }, {
9715 .eraseblocks = { {512 * 1024, 1} },
9716 .block_erase = erase_chip_block_jedec,
9717 },
9718 },
9719 .write = write_jedec_1,
9720 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009721 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00009722 },
9723
9724 {
9725 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009726 .name = "MX29GL128F",
9727 .bustype = BUS_PARALLEL,
9728 .manufacture_id = MACRONIX_ID,
9729 .model_id = MACRONIX_MX29GL128F,
9730 .total_size = 16384,
9731 .page_size = 128 * 1024, /* actual page size is 16 */
9732 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9733 .tested = TEST_UNTESTED,
9734 .probe = probe_jedec_29gl,
9735 .probe_timing = TIMING_ZERO,
9736 .block_erasers =
9737 {
9738 {
9739 .eraseblocks = { {128 * 1024, 128} },
9740 .block_erase = erase_sector_jedec,
9741 }, {
9742 .eraseblocks = { {16 * 1024 * 1024, 1} },
9743 .block_erase = erase_chip_block_jedec,
9744 },
9745 },
9746 .write = write_jedec_1,
9747 .read = read_memmapped,
9748 .voltage = {2700, 3600},
9749 },
9750
9751 {
9752 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009753 .name = "MX29GL320EB",
9754 .bustype = BUS_PARALLEL,
9755 .manufacture_id = MACRONIX_ID,
9756 .model_id = MACRONIX_MX29GL320EB,
9757 .total_size = 4096,
9758 .page_size = 128 * 1024, /* actual page size is 16 */
9759 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9760 .tested = TEST_UNTESTED,
9761 .probe = probe_jedec_29gl,
9762 .probe_timing = TIMING_ZERO,
9763 .block_erasers =
9764 {
9765 {
9766 .eraseblocks = {
9767 {8 * 1024, 8},
9768 {64 * 1024, 63},
9769 },
9770 .block_erase = erase_sector_jedec,
9771 }, {
9772 .eraseblocks = { {4 * 1024 * 1024, 1} },
9773 .block_erase = erase_chip_block_jedec,
9774 },
9775 },
9776 .write = write_jedec_1,
9777 .read = read_memmapped,
9778 .voltage = {2700, 3600},
9779 },
9780
9781 {
9782 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009783 .name = "MX29GL320EH/L",
9784 .bustype = BUS_PARALLEL,
9785 .manufacture_id = MACRONIX_ID,
9786 .model_id = MACRONIX_MX29GL320EHL,
9787 .total_size = 4096,
9788 .page_size = 128 * 1024, /* actual page size is 16 */
9789 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9790 .tested = TEST_UNTESTED,
9791 .probe = probe_jedec_29gl,
9792 .probe_timing = TIMING_ZERO,
9793 .block_erasers =
9794 {
9795 {
9796 .eraseblocks = { {64 * 1024, 64} },
9797 .block_erase = erase_sector_jedec,
9798 }, {
9799 .eraseblocks = { {4 * 1024 * 1024, 1} },
9800 .block_erase = erase_chip_block_jedec,
9801 },
9802 },
9803 .write = write_jedec_1,
9804 .read = read_memmapped,
9805 .voltage = {2700, 3600},
9806 },
9807
9808 {
9809 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009810 .name = "MX29GL320ET",
9811 .bustype = BUS_PARALLEL,
9812 .manufacture_id = MACRONIX_ID,
9813 .model_id = MACRONIX_MX29GL320ET,
9814 .total_size = 4096,
9815 .page_size = 128 * 1024, /* actual page size is 16 */
9816 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9817 .tested = TEST_UNTESTED,
9818 .probe = probe_jedec_29gl,
9819 .probe_timing = TIMING_ZERO,
9820 .block_erasers =
9821 {
9822 {
9823 .eraseblocks = {
9824 {64 * 1024, 63},
9825 {8 * 1024, 8},
9826 },
9827 .block_erase = erase_sector_jedec,
9828 }, {
9829 .eraseblocks = { {4 * 1024 * 1024, 1} },
9830 .block_erase = erase_chip_block_jedec,
9831 },
9832 },
9833 .write = write_jedec_1,
9834 .read = read_memmapped,
9835 .voltage = {2700, 3600},
9836 },
9837
9838 {
9839 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009840 .name = "MX29GL640EB",
9841 .bustype = BUS_PARALLEL,
9842 .manufacture_id = MACRONIX_ID,
9843 .model_id = MACRONIX_MX29GL640EB,
9844 .total_size = 8192,
9845 .page_size = 128 * 1024, /* actual page size is 16 */
9846 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9847 .tested = TEST_UNTESTED,
9848 .probe = probe_jedec_29gl,
9849 .probe_timing = TIMING_ZERO,
9850 .block_erasers =
9851 {
9852 {
9853 .eraseblocks = {
9854 {8 * 1024, 8},
9855 {64 * 1024, 127},
9856 },
9857 .block_erase = erase_sector_jedec,
9858 }, {
9859 .eraseblocks = { {8 * 1024 * 1024, 1} },
9860 .block_erase = erase_chip_block_jedec,
9861 },
9862 },
9863 .write = write_jedec_1,
9864 .read = read_memmapped,
9865 .voltage = {2700, 3600},
9866 },
9867
9868 {
9869 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009870 .name = "MX29GL640EH/L",
9871 .bustype = BUS_PARALLEL,
9872 .manufacture_id = MACRONIX_ID,
9873 .model_id = MACRONIX_MX29GL640EHL,
9874 .total_size = 8192,
9875 .page_size = 128 * 1024, /* actual page size is 16 */
9876 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9877 .tested = TEST_UNTESTED,
9878 .probe = probe_jedec_29gl,
9879 .probe_timing = TIMING_ZERO,
9880 .block_erasers =
9881 {
9882 {
9883 .eraseblocks = { {64 * 1024, 128} },
9884 .block_erase = erase_sector_jedec,
9885 }, {
9886 .eraseblocks = { {8 * 1024 * 1024, 1} },
9887 .block_erase = erase_chip_block_jedec,
9888 },
9889 },
9890 .write = write_jedec_1,
9891 .read = read_memmapped,
9892 .voltage = {2700, 3600},
9893 },
9894
9895 {
9896 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009897 .name = "MX29GL640ET",
9898 .bustype = BUS_PARALLEL,
9899 .manufacture_id = MACRONIX_ID,
9900 .model_id = MACRONIX_MX29GL640ET,
9901 .total_size = 8192,
9902 .page_size = 128 * 1024, /* actual page size is 16 */
9903 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9904 .tested = TEST_UNTESTED,
9905 .probe = probe_jedec_29gl,
9906 .probe_timing = TIMING_ZERO,
9907 .block_erasers =
9908 {
9909 {
9910 .eraseblocks = {
9911 {64 * 1024, 127},
9912 {8 * 1024, 8},
9913 },
9914 .block_erase = erase_sector_jedec,
9915 }, {
9916 .eraseblocks = { {8 * 1024 * 1024, 1} },
9917 .block_erase = erase_chip_block_jedec,
9918 },
9919 },
9920 .write = write_jedec_1,
9921 .read = read_memmapped,
9922 .voltage = {2700, 3600},
9923 },
9924
9925 {
9926 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00009927 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009928 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009929 .manufacture_id = MACRONIX_ID,
9930 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009931 .total_size = 512,
9932 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009933 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9934 .tested = TEST_UNTESTED,
9935 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009936 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009937 .block_erasers =
9938 {
9939 {
Stefan Tauner6697f712014-08-06 15:09:15 +00009940 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00009941 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009942 }, {
9943 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009944 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009945 },
9946 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009947 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009948 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009949 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00009950 },
9951
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009952 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009953 .vendor = "Macronix",
Hemanth Guruva Reddya136d422019-07-11 11:08:27 +02009954 .name = "MX66L51235F/MX25L51245G",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009955 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009956 .manufacture_id = MACRONIX_ID,
9957 .model_id = MACRONIX_MX66L51235F,
9958 .total_size = 65536,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009959 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009960 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9961 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009962 .tested = TEST_OK_PREW,
9963 .probe = probe_spi_rdid,
9964 .probe_timing = TIMING_ZERO,
9965 .block_erasers =
9966 {
9967 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009968 .eraseblocks = { {4 * 1024, 16384} },
9969 .block_erase = spi_block_erase_21,
9970 }, {
9971 .eraseblocks = { {4 * 1024, 16384} },
9972 .block_erase = spi_block_erase_20,
9973 }, {
9974 .eraseblocks = { {32 * 1024, 2048} },
9975 .block_erase = spi_block_erase_5c,
9976 }, {
9977 .eraseblocks = { {32 * 1024, 2048} },
9978 .block_erase = spi_block_erase_52,
9979 }, {
9980 .eraseblocks = { {64 * 1024, 1024} },
9981 .block_erase = spi_block_erase_dc,
9982 }, {
9983 .eraseblocks = { {64 * 1024, 1024} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009984 .block_erase = spi_block_erase_d8,
9985 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009986 .eraseblocks = { {64 * 1024 * 1024, 1} },
9987 .block_erase = spi_block_erase_60,
9988 }, {
9989 .eraseblocks = { {64 * 1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009990 .block_erase = spi_block_erase_c7,
9991 }
9992 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009993 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
9994 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009995 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009996 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009997 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009998 .voltage = {2700, 3600},
9999 },
10000
10001 /* The ST M25P05 is a bit of a problem. It has the same ID as the
10002 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
10003 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
10004 * only is successful if RDID does not work.
10005 */
10006 {
10007 .vendor = "Micron/Numonyx/ST",
10008 .name = "M25P05",
10009 .bustype = BUS_SPI,
10010 .manufacture_id = 0, /* Not used. */
10011 .model_id = ST_M25P05_RES,
10012 .total_size = 64,
10013 .page_size = 256,
10014 .feature_bits = FEATURE_WRSR_WREN,
10015 .tested = TEST_UNTESTED,
10016 .probe = probe_spi_res1,
10017 .probe_timing = TIMING_ZERO,
10018 .block_erasers =
10019 {
10020 {
10021 .eraseblocks = { {32 * 1024, 2} },
10022 .block_erase = spi_block_erase_d8,
10023 }, {
10024 .eraseblocks = { {64 * 1024, 1} },
10025 .block_erase = spi_block_erase_c7,
10026 }
10027 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010028 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010029 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010030 .write = spi_chip_write_1, /* 128 */
10031 .read = spi_chip_read,
10032 .voltage = {2700, 3600},
10033 },
10034
10035 {
10036 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010037 .name = "M25P05-A",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010038 .bustype = BUS_SPI,
10039 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010040 .model_id = ST_M25P05A,
10041 .total_size = 64,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010042 .page_size = 256,
10043 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010044 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010045 .probe = probe_spi_rdid,
10046 .probe_timing = TIMING_ZERO,
10047 .block_erasers =
10048 {
10049 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010050 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010051 .block_erase = spi_block_erase_d8,
10052 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010053 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010054 .block_erase = spi_block_erase_c7,
10055 }
10056 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010057 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010058 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010059 .write = spi_chip_write_256,
10060 .read = spi_chip_read,
10061 .voltage = {2700, 3600},
10062 },
10063
10064 /* The ST M25P10 has the same problem as the M25P05. */
10065 {
10066 .vendor = "Micron/Numonyx/ST",
10067 .name = "M25P10",
10068 .bustype = BUS_SPI,
10069 .manufacture_id = 0, /* Not used. */
10070 .model_id = ST_M25P10_RES,
10071 .total_size = 128,
10072 .page_size = 256,
10073 .feature_bits = FEATURE_WRSR_WREN,
10074 .tested = TEST_UNTESTED,
10075 .probe = probe_spi_res1,
10076 .probe_timing = TIMING_ZERO,
10077 .block_erasers =
10078 {
10079 {
10080 .eraseblocks = { {32 * 1024, 4} },
10081 .block_erase = spi_block_erase_d8,
10082 }, {
10083 .eraseblocks = { {128 * 1024, 1} },
10084 .block_erase = spi_block_erase_c7,
10085 }
10086 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010087 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010088 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010089 .write = spi_chip_write_1, /* 128 */
10090 .read = spi_chip_read,
10091 .voltage = {2700, 3600},
10092 },
10093
10094 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010095 .vendor = "Micron/Numonyx/ST",
10096 .name = "M25P10-A",
10097 .bustype = BUS_SPI,
10098 .manufacture_id = ST_ID,
10099 .model_id = ST_M25P10A,
10100 .total_size = 128,
10101 .page_size = 256,
10102 .feature_bits = FEATURE_WRSR_WREN,
10103 .tested = TEST_OK_PREW,
10104 .probe = probe_spi_rdid,
10105 .probe_timing = TIMING_ZERO,
10106 .block_erasers =
10107 {
10108 {
10109 .eraseblocks = { {32 * 1024, 4} },
10110 .block_erase = spi_block_erase_d8,
10111 }, {
10112 .eraseblocks = { {128 * 1024, 1} },
10113 .block_erase = spi_block_erase_c7,
10114 }
10115 },
10116 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10117 .unlock = spi_disable_blockprotect_bp3_srwd,
10118 .write = spi_chip_write_256,
10119 .read = spi_chip_read,
10120 .voltage = {2700, 3600},
10121 },
10122
10123 {
10124 .vendor = "Micron/Numonyx/ST",
10125 .name = "M25P128",
10126 .bustype = BUS_SPI,
10127 .manufacture_id = ST_ID,
10128 .model_id = ST_M25P128,
10129 .total_size = 16384,
10130 .page_size = 256,
10131 .feature_bits = FEATURE_WRSR_WREN,
10132 .tested = TEST_OK_PREW,
10133 .probe = probe_spi_rdid,
10134 .probe_timing = TIMING_ZERO,
10135 .block_erasers =
10136 {
10137 {
10138 .eraseblocks = { {256 * 1024, 64} },
10139 .block_erase = spi_block_erase_d8,
10140 }, {
10141 .eraseblocks = { {16 * 1024 * 1024, 1} },
10142 .block_erase = spi_block_erase_c7,
10143 }
10144 },
10145 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10146 .unlock = spi_disable_blockprotect_bp3_srwd,
10147 .write = spi_chip_write_256,
10148 .read = spi_chip_read,
10149 .voltage = {2700, 3600},
10150 },
10151
10152 {
10153 .vendor = "Micron/Numonyx/ST",
10154 .name = "M25P16",
10155 .bustype = BUS_SPI,
10156 .manufacture_id = ST_ID,
10157 .model_id = ST_M25P16,
10158 .total_size = 2048,
10159 .page_size = 256,
10160 .feature_bits = FEATURE_WRSR_WREN,
10161 .tested = TEST_OK_PREW,
10162 .probe = probe_spi_rdid,
10163 .probe_timing = TIMING_ZERO,
10164 .block_erasers =
10165 {
10166 {
10167 .eraseblocks = { {64 * 1024, 32} },
10168 .block_erase = spi_block_erase_d8,
10169 }, {
10170 .eraseblocks = { {2 * 1024 * 1024, 1} },
10171 .block_erase = spi_block_erase_c7,
10172 }
10173 },
10174 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10175 .unlock = spi_disable_blockprotect_bp3_srwd,
10176 .write = spi_chip_write_256,
10177 .read = spi_chip_read,
10178 .voltage = {2700, 3600},
10179 },
10180
10181 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010182 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10183 .name = "M25P20",
10184 .bustype = BUS_SPI,
10185 .manufacture_id = ST_ID,
10186 .model_id = ST_M25P20,
10187 .total_size = 256,
10188 .page_size = 256,
10189 .feature_bits = FEATURE_WRSR_WREN,
10190 .tested = TEST_UNTESTED,
10191 .probe = probe_spi_rdid,
10192 .probe_timing = TIMING_ZERO,
10193 .block_erasers =
10194 {
10195 {
10196 .eraseblocks = { {64 * 1024, 4} },
10197 .block_erase = spi_block_erase_d8,
10198 }, {
10199 .eraseblocks = { {256 * 1024, 1} },
10200 .block_erase = spi_block_erase_c7,
10201 }
10202 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010203 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010204 .unlock = spi_disable_blockprotect,
10205 .write = spi_chip_write_256,
10206 .read = spi_chip_read, /* Fast read (0x0B) supported */
10207 .voltage = {2700, 3600},
10208 },
10209
10210 {
10211 .vendor = "Micron/Numonyx/ST",
10212 .name = "M25P20-old",
10213 .bustype = BUS_SPI,
10214 .manufacture_id = 0, /* Not used. */
10215 .model_id = ST_M25P20_RES,
10216 .total_size = 256,
10217 .page_size = 256,
10218 .feature_bits = FEATURE_WRSR_WREN,
10219 .tested = TEST_OK_PREW,
10220 .probe = probe_spi_res1,
10221 .probe_timing = TIMING_ZERO,
10222 .block_erasers =
10223 {
10224 {
10225 .eraseblocks = { {64 * 1024, 4} },
10226 .block_erase = spi_block_erase_d8,
10227 }, {
10228 .eraseblocks = { {256 * 1024, 1} },
10229 .block_erase = spi_block_erase_c7,
10230 }
10231 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010232 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010233 .unlock = spi_disable_blockprotect,
10234 .write = spi_chip_write_256,
10235 .read = spi_chip_read, /* Fast read (0x0B) supported */
10236 .voltage = {2700, 3600},
10237 },
10238
10239 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010240 .vendor = "Micron/Numonyx/ST",
10241 .name = "M25P32",
10242 .bustype = BUS_SPI,
10243 .manufacture_id = ST_ID,
10244 .model_id = ST_M25P32,
10245 .total_size = 4096,
10246 .page_size = 256,
10247 .feature_bits = FEATURE_WRSR_WREN,
10248 .tested = TEST_OK_PREW,
10249 .probe = probe_spi_rdid,
10250 .probe_timing = TIMING_ZERO,
10251 .block_erasers =
10252 {
10253 {
10254 .eraseblocks = { {64 * 1024, 64} },
10255 .block_erase = spi_block_erase_d8,
10256 }, {
10257 .eraseblocks = { {4 * 1024 * 1024, 1} },
10258 .block_erase = spi_block_erase_c7,
10259 }
10260 },
10261 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10262 .unlock = spi_disable_blockprotect_bp3_srwd,
10263 .write = spi_chip_write_256,
10264 .read = spi_chip_read,
10265 .voltage = {2700, 3600},
10266 },
10267
10268 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010269 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10270 .name = "M25P40",
10271 .bustype = BUS_SPI,
10272 .manufacture_id = ST_ID,
10273 .model_id = ST_M25P40,
10274 .total_size = 512,
10275 .page_size = 256,
10276 .feature_bits = FEATURE_WRSR_WREN,
10277 .tested = TEST_OK_PREW,
10278 .probe = probe_spi_rdid,
10279 .probe_timing = TIMING_ZERO,
10280 .block_erasers =
10281 {
10282 {
10283 .eraseblocks = { {64 * 1024, 8} },
10284 .block_erase = spi_block_erase_d8,
10285 }, {
10286 .eraseblocks = { {512 * 1024, 1} },
10287 .block_erase = spi_block_erase_c7,
10288 }
10289 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010290 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010291 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010292 .write = spi_chip_write_256,
10293 .read = spi_chip_read,
10294 .voltage = {2700, 3600},
10295 },
10296
10297 {
10298 .vendor = "Micron/Numonyx/ST",
10299 .name = "M25P40-old",
10300 .bustype = BUS_SPI,
10301 .manufacture_id = 0, /* Not used. */
10302 .model_id = ST_M25P40_RES,
10303 .total_size = 512,
10304 .page_size = 256,
10305 .feature_bits = FEATURE_WRSR_WREN,
10306 .tested = TEST_UNTESTED,
10307 .probe = probe_spi_res1,
10308 .probe_timing = TIMING_ZERO,
10309 .block_erasers =
10310 {
10311 {
10312 .eraseblocks = { {64 * 1024, 8} },
10313 .block_erase = spi_block_erase_d8,
10314 }, {
10315 .eraseblocks = { {512 * 1024, 1} },
10316 .block_erase = spi_block_erase_c7,
10317 }
10318 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010319 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010320 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010321 .write = spi_chip_write_256,
10322 .read = spi_chip_read,
10323 },
10324
10325 {
10326 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010327 .name = "M25P64",
10328 .bustype = BUS_SPI,
10329 .manufacture_id = ST_ID,
10330 .model_id = ST_M25P64,
10331 .total_size = 8192,
10332 .page_size = 256,
10333 .feature_bits = FEATURE_WRSR_WREN,
10334 .tested = TEST_OK_PREW,
10335 .probe = probe_spi_rdid,
10336 .probe_timing = TIMING_ZERO,
10337 .block_erasers =
10338 {
10339 {
10340 .eraseblocks = { {64 * 1024, 128} },
10341 .block_erase = spi_block_erase_d8,
10342 }, {
10343 .eraseblocks = { {8 * 1024 * 1024, 1} },
10344 .block_erase = spi_block_erase_c7,
10345 }
10346 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010347 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010348 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010349 .write = spi_chip_write_256,
10350 .read = spi_chip_read,
10351 .voltage = {2700, 3600},
10352 },
10353
10354 {
10355 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010356 .name = "M25P80",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010357 .bustype = BUS_SPI,
10358 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010359 .model_id = ST_M25P80,
10360 .total_size = 1024,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010361 .page_size = 256,
10362 .feature_bits = FEATURE_WRSR_WREN,
10363 .tested = TEST_OK_PREW,
10364 .probe = probe_spi_rdid,
10365 .probe_timing = TIMING_ZERO,
10366 .block_erasers =
10367 {
10368 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010369 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010370 .block_erase = spi_block_erase_d8,
10371 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010372 .eraseblocks = { {1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010373 .block_erase = spi_block_erase_c7,
10374 }
10375 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010376 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010377 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010378 .write = spi_chip_write_256,
10379 .read = spi_chip_read,
10380 .voltage = {2700, 3600},
10381 },
10382
10383 {
10384 .vendor = "Micron/Numonyx/ST",
10385 .name = "M25PE10",
10386 .bustype = BUS_SPI,
10387 .manufacture_id = ST_ID,
10388 .model_id = ST_M25PE10,
10389 .total_size = 128,
10390 .page_size = 256,
10391 .feature_bits = FEATURE_WRSR_WREN,
10392 .tested = TEST_UNTESTED,
10393 .probe = probe_spi_rdid,
10394 .probe_timing = TIMING_ZERO,
10395 .block_erasers =
10396 {
10397 {
10398 .eraseblocks = { {4 * 1024, 32} },
10399 .block_erase = spi_block_erase_20,
10400 }, {
10401 .eraseblocks = { {64 * 1024, 2} },
10402 .block_erase = spi_block_erase_d8,
10403 }, {
10404 .eraseblocks = { {128 * 1024, 1} },
10405 .block_erase = spi_block_erase_c7,
10406 }
10407 },
10408 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10409 .unlock = spi_disable_blockprotect,
10410 .write = spi_chip_write_256,
10411 .read = spi_chip_read,
10412 .voltage = {2700, 3600},
10413 },
10414
10415 {
10416 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010417 .name = "M25PE16",
10418 .bustype = BUS_SPI,
10419 .manufacture_id = ST_ID,
10420 .model_id = ST_M25PE16,
10421 .total_size = 2048,
10422 .page_size = 256,
10423 .feature_bits = FEATURE_WRSR_WREN,
10424 .tested = TEST_UNTESTED,
10425 .probe = probe_spi_rdid,
10426 .probe_timing = TIMING_ZERO,
10427 .block_erasers =
10428 {
10429 {
10430 .eraseblocks = { {4 * 1024, 512} },
10431 .block_erase = spi_block_erase_20,
10432 }, {
10433 .eraseblocks = { {64 * 1024, 32} },
10434 .block_erase = spi_block_erase_d8,
10435 }, {
10436 .eraseblocks = { {2 * 1024 * 1024, 1} },
10437 .block_erase = spi_block_erase_c7,
10438 }
10439 },
10440 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10441 .unlock = spi_disable_blockprotect,
10442 .write = spi_chip_write_256,
10443 .read = spi_chip_read,
10444 .voltage = {2700, 3600},
10445 },
10446
10447 {
10448 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010449 .name = "M25PE20",
10450 .bustype = BUS_SPI,
10451 .manufacture_id = ST_ID,
10452 .model_id = ST_M25PE20,
10453 .total_size = 256,
10454 .page_size = 256,
10455 .feature_bits = FEATURE_WRSR_WREN,
10456 .tested = TEST_UNTESTED,
10457 .probe = probe_spi_rdid,
10458 .probe_timing = TIMING_ZERO,
10459 .block_erasers =
10460 {
10461 {
10462 .eraseblocks = { {4 * 1024, 64} },
10463 .block_erase = spi_block_erase_20,
10464 }, {
10465 .eraseblocks = { {64 * 1024, 4} },
10466 .block_erase = spi_block_erase_d8,
10467 }, {
10468 .eraseblocks = { {256 * 1024, 1} },
10469 .block_erase = spi_block_erase_c7,
10470 }
10471 },
10472 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10473 .unlock = spi_disable_blockprotect,
10474 .write = spi_chip_write_256,
10475 .read = spi_chip_read,
10476 .voltage = {2700, 3600},
10477 },
10478
10479 {
10480 .vendor = "Micron/Numonyx/ST",
10481 .name = "M25PE40",
10482 .bustype = BUS_SPI,
10483 .manufacture_id = ST_ID,
10484 .model_id = ST_M25PE40,
10485 .total_size = 512,
10486 .page_size = 256,
10487 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010488 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010489 .probe = probe_spi_rdid,
10490 .probe_timing = TIMING_ZERO,
10491 .block_erasers =
10492 {
10493 {
10494 .eraseblocks = { {4 * 1024, 128} },
10495 .block_erase = spi_block_erase_20,
10496 }, {
10497 .eraseblocks = { {64 * 1024, 8} },
10498 .block_erase = spi_block_erase_d8,
10499 }, {
10500 .eraseblocks = { {512 * 1024, 1} },
10501 .block_erase = spi_block_erase_c7,
10502 }
10503 },
10504 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10505 .unlock = spi_disable_blockprotect,
10506 .write = spi_chip_write_256,
10507 .read = spi_chip_read,
10508 .voltage = {2700, 3600},
10509 },
10510
10511 {
10512 .vendor = "Micron/Numonyx/ST",
10513 .name = "M25PE80",
10514 .bustype = BUS_SPI,
10515 .manufacture_id = ST_ID,
10516 .model_id = ST_M25PE80,
10517 .total_size = 1024,
10518 .page_size = 256,
10519 .feature_bits = FEATURE_WRSR_WREN,
10520 .tested = TEST_OK_PREW,
10521 .probe = probe_spi_rdid,
10522 .probe_timing = TIMING_ZERO,
10523 .block_erasers =
10524 {
10525 {
10526 .eraseblocks = { {4 * 1024, 256} },
10527 .block_erase = spi_block_erase_20,
10528 }, {
10529 .eraseblocks = { {64 * 1024, 16} },
10530 .block_erase = spi_block_erase_d8,
10531 }, {
10532 .eraseblocks = { {1024 * 1024, 1} },
10533 .block_erase = spi_block_erase_c7,
10534 }
10535 },
10536 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10537 .unlock = spi_disable_blockprotect,
10538 .write = spi_chip_write_256,
10539 .read = spi_chip_read,
10540 .voltage = {2700, 3600},
10541 },
10542
10543 {
10544 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010545 .name = "M25PX16",
10546 .bustype = BUS_SPI,
10547 .manufacture_id = ST_ID,
10548 .model_id = ST_M25PX16,
10549 .total_size = 2048,
10550 .page_size = 256,
10551 /* OTP: 64B total; read 0x4B; write 0x42 */
10552 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10553 .tested = TEST_OK_PREW,
10554 .probe = probe_spi_rdid,
10555 .probe_timing = TIMING_ZERO,
10556 .block_erasers =
10557 {
10558 {
10559 .eraseblocks = { { 4 * 1024, 512 } },
10560 .block_erase = spi_block_erase_20,
10561 }, {
10562 .eraseblocks = { {64 * 1024, 32} },
10563 .block_erase = spi_block_erase_d8,
10564 }, {
10565 .eraseblocks = { {2 * 1024 * 1024, 1} },
10566 .block_erase = spi_block_erase_c7,
10567 }
10568 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010569 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010570 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10571 .write = spi_chip_write_256,
10572 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010573 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010574 },
10575
10576 {
10577 .vendor = "Micron/Numonyx/ST",
10578 .name = "M25PX32",
10579 .bustype = BUS_SPI,
10580 .manufacture_id = ST_ID,
10581 .model_id = ST_M25PX32,
10582 .total_size = 4096,
10583 .page_size = 256,
10584 /* OTP: 64B total; read 0x4B; write 0x42 */
10585 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10586 .tested = TEST_OK_PRE,
10587 .probe = probe_spi_rdid,
10588 .probe_timing = TIMING_ZERO,
10589 .block_erasers =
10590 {
10591 {
10592 .eraseblocks = { { 4 * 1024, 1024 } },
10593 .block_erase = spi_block_erase_20,
10594 }, {
10595 .eraseblocks = { {64 * 1024, 64} },
10596 .block_erase = spi_block_erase_d8,
10597 }, {
10598 .eraseblocks = { {4 * 1024 * 1024, 1} },
10599 .block_erase = spi_block_erase_c7,
10600 }
10601 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010602 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010603 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10604 .write = spi_chip_write_256,
10605 .read = spi_chip_read,
10606 .voltage = {2700, 3600},
10607 },
10608
10609 {
10610 .vendor = "Micron/Numonyx/ST",
10611 .name = "M25PX64",
10612 .bustype = BUS_SPI,
10613 .manufacture_id = ST_ID,
10614 .model_id = ST_M25PX64,
10615 .total_size = 8192,
10616 .page_size = 256,
10617 /* OTP: 64B total; read 0x4B; write 0x42 */
10618 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010619 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010620 .probe = probe_spi_rdid,
10621 .probe_timing = TIMING_ZERO,
10622 .block_erasers =
10623 {
10624 {
10625 .eraseblocks = { { 4 * 1024, 2048 } },
10626 .block_erase = spi_block_erase_20,
10627 }, {
10628 .eraseblocks = { {64 * 1024, 128} },
10629 .block_erase = spi_block_erase_d8,
10630 }, {
10631 .eraseblocks = { {8 * 1024 * 1024, 1} },
10632 .block_erase = spi_block_erase_c7,
10633 }
10634 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010635 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010636 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10637 .write = spi_chip_write_256,
10638 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010639 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010640 },
10641
10642 {
10643 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010644 .name = "M25PX80",
10645 .bustype = BUS_SPI,
10646 .manufacture_id = ST_ID,
10647 .model_id = ST_M25PX80,
10648 .total_size = 1024,
10649 .page_size = 256,
10650 /* OTP: 64B total; read 0x4B, write 0x42 */
10651 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10652 .tested = TEST_OK_PREW,
10653 .probe = probe_spi_rdid,
10654 .probe_timing = TIMING_ZERO,
10655 .block_erasers =
10656 {
10657 {
10658 .eraseblocks = { { 4 * 1024, 256 } },
10659 .block_erase = spi_block_erase_20,
10660 }, {
10661 .eraseblocks = { {64 * 1024, 16} },
10662 .block_erase = spi_block_erase_d8,
10663 }, {
10664 .eraseblocks = { {1024 * 1024, 1} },
10665 .block_erase = spi_block_erase_c7,
10666 }
10667 },
10668 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
10669 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10670 .write = spi_chip_write_256,
10671 .read = spi_chip_read,
10672 .voltage = {2700, 3600},
10673 },
10674
10675 {
10676 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010677 .name = "M45PE10",
10678 .bustype = BUS_SPI,
10679 .manufacture_id = ST_ID,
10680 .model_id = ST_M45PE10,
10681 .total_size = 128,
10682 .page_size = 256,
10683 .tested = TEST_UNTESTED,
10684 .probe = probe_spi_rdid,
10685 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010686 .block_erasers =
10687 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010688 {
10689 .eraseblocks = { {256, 512} },
10690 .block_erase = spi_block_erase_db,
10691 }, {
10692 .eraseblocks = { {64 * 1024, 2} },
10693 .block_erase = spi_block_erase_d8,
10694 }
10695 },
10696 .printlock = spi_prettyprint_status_register_default_welwip,
10697 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10698 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10699 .read = spi_chip_read, /* Fast read (0x0B) supported */
10700 .voltage = {2700, 3600},
10701 },
10702
10703 {
10704 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010705 .name = "M45PE16",
10706 .bustype = BUS_SPI,
10707 .manufacture_id = ST_ID,
10708 .model_id = ST_M45PE16,
10709 .total_size = 2048,
10710 .page_size = 256,
10711 .tested = TEST_UNTESTED,
10712 .probe = probe_spi_rdid,
10713 .probe_timing = TIMING_ZERO,
10714 .block_erasers =
10715 {
10716 {
10717 .eraseblocks = { {256, 8192} },
10718 .block_erase = spi_block_erase_db,
10719 }, {
10720 .eraseblocks = { {64 * 1024, 32} },
10721 .block_erase = spi_block_erase_d8,
10722 }
10723 },
10724 .printlock = spi_prettyprint_status_register_default_welwip,
10725 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10726 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10727 .read = spi_chip_read, /* Fast read (0x0B) supported */
10728 .voltage = {2700, 3600},
10729 },
10730
10731 {
10732 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010733 .name = "M45PE20",
10734 .bustype = BUS_SPI,
10735 .manufacture_id = ST_ID,
10736 .model_id = ST_M45PE20,
10737 .total_size = 256,
10738 .page_size = 256,
10739 .tested = TEST_UNTESTED,
10740 .probe = probe_spi_rdid,
10741 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010742 .block_erasers =
10743 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010744 {
10745 .eraseblocks = { {256, 1024} },
10746 .block_erase = spi_block_erase_db,
10747 }, {
10748 .eraseblocks = { {64 * 1024, 4} },
10749 .block_erase = spi_block_erase_d8,
10750 }
10751 },
10752 .printlock = spi_prettyprint_status_register_default_welwip,
10753 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10754 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10755 .read = spi_chip_read, /* Fast read (0x0B) supported */
10756 .voltage = {2700, 3600},
10757 },
10758
10759 {
10760 .vendor = "Micron/Numonyx/ST",
10761 .name = "M45PE40",
10762 .bustype = BUS_SPI,
10763 .manufacture_id = ST_ID,
10764 .model_id = ST_M45PE40,
10765 .total_size = 512,
10766 .page_size = 256,
10767 .tested = TEST_UNTESTED,
10768 .probe = probe_spi_rdid,
10769 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010770 .block_erasers =
10771 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010772 {
10773 .eraseblocks = { {256, 2048} },
10774 .block_erase = spi_block_erase_db,
10775 }, {
10776 .eraseblocks = { {64 * 1024, 8} },
10777 .block_erase = spi_block_erase_d8,
10778 }
10779 },
10780 .printlock = spi_prettyprint_status_register_default_welwip,
10781 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000010782 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010783 .read = spi_chip_read, /* Fast read (0x0B) supported */
10784 .voltage = {2700, 3600},
10785 },
10786
10787 {
10788 .vendor = "Micron/Numonyx/ST",
10789 .name = "M45PE80",
10790 .bustype = BUS_SPI,
10791 .manufacture_id = ST_ID,
10792 .model_id = ST_M45PE80,
10793 .total_size = 1024,
10794 .page_size = 256,
10795 .tested = TEST_UNTESTED,
10796 .probe = probe_spi_rdid,
10797 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010798 .block_erasers =
10799 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010800 {
10801 .eraseblocks = { {256, 4096} },
10802 .block_erase = spi_block_erase_db,
10803 }, {
10804 .eraseblocks = { {64 * 1024, 16} },
10805 .block_erase = spi_block_erase_d8,
10806 }
10807 },
10808 .printlock = spi_prettyprint_status_register_default_welwip,
10809 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10810 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10811 .read = spi_chip_read, /* Fast read (0x0B) supported */
10812 .voltage = {2700, 3600},
10813 },
10814
10815 {
10816 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010817 .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
10818 .bustype = BUS_SPI,
10819 .manufacture_id = ST_ID,
10820 .model_id = ST_N25Q00A__1G,
10821 .total_size = 131072,
10822 .page_size = 256,
10823 /* supports SFDP */
10824 /* OTP: 64B total; read 0x4B, write 0x42 */
10825 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10826 .tested = TEST_UNTESTED,
10827 .probe = probe_spi_rdid,
10828 .probe_timing = TIMING_ZERO,
10829 .block_erasers =
10830 {
10831 {
10832 .eraseblocks = { {4 * 1024, 32768} },
10833 .block_erase = spi_block_erase_21,
10834 }, {
10835 .eraseblocks = { {4 * 1024, 32768} },
10836 .block_erase = spi_block_erase_20,
10837 }, {
10838 .eraseblocks = { {64 * 1024, 2048} },
10839 .block_erase = spi_block_erase_dc,
10840 }, {
10841 .eraseblocks = { {64 * 1024, 2048} },
10842 .block_erase = spi_block_erase_d8,
10843 }, {
10844 .eraseblocks = { {32768 * 1024, 4} },
10845 .block_erase = spi_block_erase_c4,
10846 }
10847 },
10848 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10849 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10850 .write = spi_chip_write_256, /* Multi I/O supported */
10851 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10852 .voltage = {1700, 2000},
10853 },
10854
10855 {
10856 .vendor = "Micron/Numonyx/ST",
10857 .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
10858 .bustype = BUS_SPI,
10859 .manufacture_id = ST_ID,
10860 .model_id = ST_N25Q00A__3G,
10861 .total_size = 131072,
10862 .page_size = 256,
10863 /* supports SFDP */
10864 /* OTP: 64B total; read 0x4B, write 0x42 */
10865 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10866 .tested = TEST_UNTESTED,
10867 .probe = probe_spi_rdid,
10868 .probe_timing = TIMING_ZERO,
10869 .block_erasers =
10870 {
10871 {
10872 .eraseblocks = { {4 * 1024, 32768} },
10873 .block_erase = spi_block_erase_21,
10874 }, {
10875 .eraseblocks = { {4 * 1024, 32768} },
10876 .block_erase = spi_block_erase_20,
10877 }, {
10878 .eraseblocks = { {64 * 1024, 2048} },
10879 .block_erase = spi_block_erase_dc,
10880 }, {
10881 .eraseblocks = { {64 * 1024, 2048} },
10882 .block_erase = spi_block_erase_d8,
10883 }, {
10884 .eraseblocks = { {32768 * 1024, 4} },
10885 .block_erase = spi_block_erase_c4,
10886 }
10887 },
10888 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10889 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10890 .write = spi_chip_write_256, /* Multi I/O supported */
10891 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10892 .voltage = {2700, 3600},
10893 },
10894
10895 {
10896 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010897 .name = "N25Q016",
10898 .bustype = BUS_SPI,
10899 .manufacture_id = ST_ID,
10900 .model_id = ST_N25Q016__1E,
10901 .total_size = 2048,
10902 .page_size = 256,
10903 /* supports SFDP */
10904 /* OTP: 64B total; read 0x4B, write 0x42 */
10905 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10906 .tested = TEST_UNTESTED,
10907 .probe = probe_spi_rdid,
10908 .probe_timing = TIMING_ZERO,
10909 .block_erasers =
10910 {
10911 {
10912 .eraseblocks = { {4 * 1024, 512} },
10913 .block_erase = spi_block_erase_20,
10914 }, {
10915 .eraseblocks = { {32 * 1024, 64} },
10916 .block_erase = spi_block_erase_52,
10917 }, {
10918 .eraseblocks = { {64 * 1024, 32} },
10919 .block_erase = spi_block_erase_d8,
10920 }, {
10921 .eraseblocks = { {2 * 1024 * 1024, 1} },
10922 .block_erase = spi_block_erase_c7,
10923 }
10924 },
10925 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10926 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10927 .write = spi_chip_write_256, /* Multi I/O supported */
10928 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10929 .voltage = {1700, 2000},
10930 },
10931
10932 {
10933 .vendor = "Micron/Numonyx/ST",
10934 .name = "N25Q032..1E",
10935 .bustype = BUS_SPI,
10936 .manufacture_id = ST_ID,
10937 .model_id = ST_N25Q032__1E,
10938 .total_size = 4096,
10939 .page_size = 256,
10940 /* supports SFDP */
10941 /* OTP: 64B total; read 0x4B, write 0x42 */
10942 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10943 .tested = TEST_UNTESTED,
10944 .probe = probe_spi_rdid,
10945 .probe_timing = TIMING_ZERO,
10946 .block_erasers =
10947 {
10948 {
10949 .eraseblocks = { {4 * 1024, 1024} },
10950 .block_erase = spi_block_erase_20,
10951 }, {
10952 .eraseblocks = { {64 * 1024, 64} },
10953 .block_erase = spi_block_erase_d8,
10954 }, {
10955 .eraseblocks = { {4 * 1024 * 1024, 1} },
10956 .block_erase = spi_block_erase_c7,
10957 }
10958 },
10959 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10960 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10961 .write = spi_chip_write_256, /* Multi I/O supported */
10962 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10963 .voltage = {1700, 2000},
10964 },
10965
10966 {
10967 .vendor = "Micron/Numonyx/ST",
10968 .name = "N25Q032..3E",
10969 .bustype = BUS_SPI,
10970 .manufacture_id = ST_ID,
10971 .model_id = ST_N25Q032__3E,
10972 .total_size = 4096,
10973 .page_size = 256,
10974 /* supports SFDP */
10975 /* OTP: 64B total; read 0x4B, write 0x42 */
10976 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10977 .tested = TEST_OK_PREW,
10978 .probe = probe_spi_rdid,
10979 .probe_timing = TIMING_ZERO,
10980 .block_erasers =
10981 {
10982 {
10983 .eraseblocks = { {4 * 1024, 1024} },
10984 .block_erase = spi_block_erase_20,
10985 }, {
10986 .eraseblocks = { {64 * 1024, 64} },
10987 .block_erase = spi_block_erase_d8,
10988 }, {
10989 .eraseblocks = { {4 * 1024 * 1024, 1} },
10990 .block_erase = spi_block_erase_c7,
10991 }
10992 },
10993 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10994 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10995 .write = spi_chip_write_256, /* Multi I/O supported */
10996 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10997 .voltage = {2700, 3600},
10998 },
10999
11000 {
11001 .vendor = "Micron/Numonyx/ST",
11002 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11003 .bustype = BUS_SPI,
11004 .manufacture_id = ST_ID,
11005 .model_id = ST_N25Q064__1E,
11006 .total_size = 8192,
11007 .page_size = 256,
11008 /* supports SFDP */
11009 /* OTP: 64B total; read 0x4B, write 0x42 */
11010 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011011 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011012 .probe = probe_spi_rdid,
11013 .probe_timing = TIMING_ZERO,
11014 .block_erasers =
11015 {
11016 {
11017 .eraseblocks = { {4 * 1024, 2048 } },
11018 .block_erase = spi_block_erase_20,
11019 }, {
11020 .eraseblocks = { {64 * 1024, 128} },
11021 .block_erase = spi_block_erase_d8,
11022 }, {
11023 .eraseblocks = { {8 * 1024 * 1024, 1} },
11024 .block_erase = spi_block_erase_c7,
11025 }
11026 },
11027 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11028 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11029 .write = spi_chip_write_256, /* Multi I/O supported */
11030 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11031 .voltage = {1700, 2000},
11032 },
11033
11034 {
11035 .vendor = "Micron/Numonyx/ST",
11036 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11037 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011038 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011039 .model_id = ST_N25Q064__3E,
11040 .total_size = 8192,
11041 .page_size = 256,
11042 /* supports SFDP */
11043 /* OTP: 64B total; read 0x4B, write 0x42 */
11044 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11045 .tested = TEST_OK_PREW,
11046 .probe = probe_spi_rdid,
11047 .probe_timing = TIMING_ZERO,
11048 .block_erasers =
11049 {
11050 {
11051 .eraseblocks = { {4 * 1024, 2048 } },
11052 .block_erase = spi_block_erase_20,
11053 }, {
11054 .eraseblocks = { {64 * 1024, 128} },
11055 .block_erase = spi_block_erase_d8,
11056 }, {
11057 .eraseblocks = { {8 * 1024 * 1024, 1} },
11058 .block_erase = spi_block_erase_c7,
11059 }
11060 },
11061 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11062 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11063 .write = spi_chip_write_256, /* Multi I/O supported */
11064 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11065 .voltage = {2700, 3600},
11066 },
11067
11068 {
11069 .vendor = "Micron/Numonyx/ST",
11070 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11071 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011072 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011073 .model_id = ST_N25Q128__1E,
11074 .total_size = 16384,
11075 .page_size = 256,
11076 /* supports SFDP */
11077 /* OTP: 64B total; read 0x4B, write 0x42 */
11078 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011079 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011080 .probe = probe_spi_rdid,
11081 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011082 .block_erasers =
11083 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011084 {
11085 .eraseblocks = { {4 * 1024, 4096 } },
11086 .block_erase = spi_block_erase_20,
11087 }, {
11088 .eraseblocks = { {64 * 1024, 256} },
11089 .block_erase = spi_block_erase_d8,
11090 }, {
11091 .eraseblocks = { {16384 * 1024, 1} },
11092 .block_erase = spi_block_erase_c7,
11093 }
11094 },
11095 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11096 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11097 .write = spi_chip_write_256, /* Multi I/O supported */
11098 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11099 .voltage = {1700, 2000},
11100 },
11101
11102 {
11103 .vendor = "Micron/Numonyx/ST",
11104 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11105 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011106 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011107 .model_id = ST_N25Q128__3E,
11108 .total_size = 16384,
11109 .page_size = 256,
11110 /* supports SFDP */
11111 /* OTP: 64B total; read 0x4B, write 0x42 */
11112 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11113 .tested = TEST_OK_PREW,
11114 .probe = probe_spi_rdid,
11115 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011116 .block_erasers =
11117 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011118 {
11119 .eraseblocks = { {4 * 1024, 4096 } },
11120 .block_erase = spi_block_erase_20,
11121 }, {
11122 .eraseblocks = { {64 * 1024, 256} },
11123 .block_erase = spi_block_erase_d8,
11124 }, {
11125 .eraseblocks = { {16384 * 1024, 1} },
11126 .block_erase = spi_block_erase_c7,
11127 }
11128 },
11129 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11130 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11131 .write = spi_chip_write_256, /* Multi I/O supported */
11132 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11133 .voltage = {2700, 3600},
11134 },
11135
11136 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011137 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011138 .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11139 .bustype = BUS_SPI,
11140 .manufacture_id = ST_ID,
11141 .model_id = ST_N25Q256__1E,
11142 .total_size = 32768,
11143 .page_size = 256,
11144 /* supports SFDP */
11145 /* OTP: 64B total; read 0x4B, write 0x42 */
11146 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11147 .tested = TEST_UNTESTED,
11148 .probe = probe_spi_rdid,
11149 .probe_timing = TIMING_ZERO,
11150 .block_erasers =
11151 {
11152 {
11153 .eraseblocks = { {4 * 1024, 8192} },
11154 .block_erase = spi_block_erase_21,
11155 }, {
11156 .eraseblocks = { {4 * 1024, 8192} },
11157 .block_erase = spi_block_erase_20,
11158 }, {
11159 .eraseblocks = { {64 * 1024, 512} },
11160 .block_erase = spi_block_erase_dc,
11161 }, {
11162 .eraseblocks = { {64 * 1024, 512} },
11163 .block_erase = spi_block_erase_d8,
11164 }, {
11165 .eraseblocks = { {32768 * 1024, 1} },
11166 .block_erase = spi_block_erase_c7,
11167 }
11168 },
11169 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11170 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11171 .write = spi_chip_write_256, /* Multi I/O supported */
11172 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11173 .voltage = {1700, 2000},
11174 },
11175
11176 {
11177 .vendor = "Micron/Numonyx/ST",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011178 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11179 .bustype = BUS_SPI,
11180 .manufacture_id = ST_ID,
11181 .model_id = ST_N25Q256__3E,
11182 .total_size = 32768,
11183 .page_size = 256,
11184 /* supports SFDP */
11185 /* OTP: 64B total; read 0x4B, write 0x42 */
11186 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11187 .tested = TEST_UNTESTED,
11188 .probe = probe_spi_rdid,
11189 .probe_timing = TIMING_ZERO,
11190 .block_erasers =
11191 {
11192 {
11193 .eraseblocks = { {4 * 1024, 8192} },
11194 .block_erase = spi_block_erase_21,
11195 }, {
11196 .eraseblocks = { {4 * 1024, 8192} },
11197 .block_erase = spi_block_erase_20,
11198 }, {
11199 .eraseblocks = { {64 * 1024, 512} },
11200 .block_erase = spi_block_erase_dc,
11201 }, {
11202 .eraseblocks = { {64 * 1024, 512} },
11203 .block_erase = spi_block_erase_d8,
11204 }, {
11205 .eraseblocks = { {32768 * 1024, 1} },
11206 .block_erase = spi_block_erase_c7,
11207 }
11208 },
11209 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11210 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11211 .write = spi_chip_write_256, /* Multi I/O supported */
11212 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11213 .voltage = {2700, 3600},
11214 },
11215
11216 {
11217 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011218 .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011219 .bustype = BUS_SPI,
11220 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011221 .model_id = ST_N25Q512__1G,
11222 .total_size = 65536,
11223 .page_size = 256,
11224 /* supports SFDP */
11225 /* OTP: 64B total; read 0x4B, write 0x42 */
11226 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11227 .tested = TEST_UNTESTED,
11228 .probe = probe_spi_rdid,
11229 .probe_timing = TIMING_ZERO,
11230 .block_erasers =
11231 {
11232 {
11233 .eraseblocks = { {4 * 1024, 16384} },
11234 .block_erase = spi_block_erase_21,
11235 }, {
11236 .eraseblocks = { {4 * 1024, 16384} },
11237 .block_erase = spi_block_erase_20,
11238 }, {
11239 .eraseblocks = { {64 * 1024, 1024} },
11240 .block_erase = spi_block_erase_dc,
11241 }, {
11242 .eraseblocks = { {64 * 1024, 1024} },
11243 .block_erase = spi_block_erase_d8,
11244 }, {
11245 .eraseblocks = { {32768 * 1024, 2} },
11246 .block_erase = spi_block_erase_c4,
11247 }
11248 },
11249 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11250 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11251 .write = spi_chip_write_256, /* Multi I/O supported */
11252 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11253 .voltage = {1700, 2000},
11254 },
11255
11256 {
11257 .vendor = "Micron/Numonyx/ST",
11258 .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
11259 .bustype = BUS_SPI,
11260 .manufacture_id = ST_ID,
11261 .model_id = ST_N25Q512__3G,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011262 .total_size = 65536,
11263 .page_size = 256,
11264 /* supports SFDP */
11265 /* OTP: 64B total; read 0x4B, write 0x42 */
11266 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11267 .tested = TEST_OK_PREW,
11268 .probe = probe_spi_rdid,
11269 .probe_timing = TIMING_ZERO,
11270 .block_erasers =
11271 {
11272 {
11273 .eraseblocks = { {4 * 1024, 16384} },
11274 .block_erase = spi_block_erase_21,
11275 }, {
11276 .eraseblocks = { {4 * 1024, 16384} },
11277 .block_erase = spi_block_erase_20,
11278 }, {
11279 .eraseblocks = { {64 * 1024, 1024} },
11280 .block_erase = spi_block_erase_dc,
11281 }, {
11282 .eraseblocks = { {64 * 1024, 1024} },
11283 .block_erase = spi_block_erase_d8,
11284 }, {
Jacob Creedone8e7b0e2019-07-22 12:21:22 -070011285 .eraseblocks = { {32768 * 1024, 2} },
11286 .block_erase = spi_block_erase_c4,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011287 }
11288 },
11289 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11290 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11291 .write = spi_chip_write_256, /* Multi I/O supported */
11292 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11293 .voltage = {2700, 3600},
11294 },
11295
11296 {
Ed Swierk199ab392017-07-03 13:33:44 -070011297 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011298 .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11299 .bustype = BUS_SPI,
11300 .manufacture_id = ST_ID,
11301 .model_id = ST_N25Q00A__3G,
11302 .total_size = 131072,
11303 .page_size = 256,
11304 /* supports SFDP */
11305 /* OTP: 64B total; read 0x4B, write 0x42 */
11306 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11307 .tested = TEST_OK_PREW,
11308 .probe = probe_spi_rdid,
11309 .probe_timing = TIMING_ZERO,
11310 .block_erasers =
11311 {
11312 {
11313 .eraseblocks = { {4 * 1024, 32768} },
11314 .block_erase = spi_block_erase_21,
11315 }, {
11316 .eraseblocks = { {4 * 1024, 32768} },
11317 .block_erase = spi_block_erase_20,
11318 }, {
11319 .eraseblocks = { {32 * 1024, 4096} },
11320 .block_erase = spi_block_erase_5c,
11321 }, {
11322 .eraseblocks = { {32 * 1024, 4096} },
11323 .block_erase = spi_block_erase_52,
11324 }, {
11325 .eraseblocks = { {64 * 1024, 2048} },
11326 .block_erase = spi_block_erase_dc,
11327 }, {
11328 .eraseblocks = { {64 * 1024, 2048} },
11329 .block_erase = spi_block_erase_d8,
11330 }, {
11331 .eraseblocks = { {65536 * 1024, 2} },
11332 .block_erase = spi_block_erase_c4,
11333 }
11334 },
11335 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11336 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11337 .write = spi_chip_write_256, /* Multi I/O supported */
11338 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11339 .voltage = {2700, 3600},
11340 },
11341
11342 {
11343 .vendor = "Micron",
11344 .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11345 .bustype = BUS_SPI,
11346 .manufacture_id = ST_ID,
11347 .model_id = ST_N25Q00A__1G,
11348 .total_size = 131072,
11349 .page_size = 256,
11350 /* supports SFDP */
11351 /* OTP: 64B total; read 0x4B, write 0x42 */
11352 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11353 .tested = TEST_UNTESTED,
11354 .probe = probe_spi_rdid,
11355 .probe_timing = TIMING_ZERO,
11356 .block_erasers =
11357 {
11358 {
11359 .eraseblocks = { {4 * 1024, 32768} },
11360 .block_erase = spi_block_erase_21,
11361 }, {
11362 .eraseblocks = { {4 * 1024, 32768} },
11363 .block_erase = spi_block_erase_20,
11364 }, {
11365 .eraseblocks = { {32 * 1024, 4096} },
11366 .block_erase = spi_block_erase_5c,
11367 }, {
11368 .eraseblocks = { {32 * 1024, 4096} },
11369 .block_erase = spi_block_erase_52,
11370 }, {
11371 .eraseblocks = { {64 * 1024, 2048} },
11372 .block_erase = spi_block_erase_dc,
11373 }, {
11374 .eraseblocks = { {64 * 1024, 2048} },
11375 .block_erase = spi_block_erase_d8,
11376 }, {
11377 .eraseblocks = { {65536 * 1024, 2} },
11378 .block_erase = spi_block_erase_c4,
11379 }
11380 },
11381 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11382 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11383 .write = spi_chip_write_256, /* Multi I/O supported */
11384 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11385 .voltage = {1700, 2000},
11386 },
11387
11388 {
11389 .vendor = "Micron",
11390 .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11391 .bustype = BUS_SPI,
11392 .manufacture_id = ST_ID,
11393 .model_id = ST_MT25QL02G,
11394 .total_size = 262144,
11395 .page_size = 256,
11396 /* supports SFDP */
11397 /* OTP: 64B total; read 0x4B, write 0x42 */
11398 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11399 .tested = TEST_UNTESTED,
11400 .probe = probe_spi_rdid,
11401 .probe_timing = TIMING_ZERO,
11402 .block_erasers =
11403 {
11404 {
11405 .eraseblocks = { {4 * 1024, 65536} },
11406 .block_erase = spi_block_erase_21,
11407 }, {
11408 .eraseblocks = { {4 * 1024, 65536} },
11409 .block_erase = spi_block_erase_20,
11410 }, {
11411 .eraseblocks = { {32 * 1024, 8192} },
11412 .block_erase = spi_block_erase_5c,
11413 }, {
11414 .eraseblocks = { {32 * 1024, 8192} },
11415 .block_erase = spi_block_erase_52,
11416 }, {
11417 .eraseblocks = { {64 * 1024, 4096} },
11418 .block_erase = spi_block_erase_dc,
11419 }, {
11420 .eraseblocks = { {64 * 1024, 4096} },
11421 .block_erase = spi_block_erase_d8,
11422 }, {
11423 .eraseblocks = { {65536 * 1024, 4} },
11424 .block_erase = spi_block_erase_c4,
11425 }
11426 },
11427 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11428 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11429 .write = spi_chip_write_256, /* Multi I/O supported */
11430 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11431 .voltage = {2700, 3600},
11432 },
11433
11434 {
11435 .vendor = "Micron",
11436 .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11437 .bustype = BUS_SPI,
11438 .manufacture_id = ST_ID,
11439 .model_id = ST_MT25QU02G,
11440 .total_size = 262144,
11441 .page_size = 256,
11442 /* supports SFDP */
11443 /* OTP: 64B total; read 0x4B, write 0x42 */
11444 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11445 .tested = TEST_UNTESTED,
11446 .probe = probe_spi_rdid,
11447 .probe_timing = TIMING_ZERO,
11448 .block_erasers =
11449 {
11450 {
11451 .eraseblocks = { {4 * 1024, 65536} },
11452 .block_erase = spi_block_erase_21,
11453 }, {
11454 .eraseblocks = { {4 * 1024, 65536} },
11455 .block_erase = spi_block_erase_20,
11456 }, {
11457 .eraseblocks = { {32 * 1024, 8192} },
11458 .block_erase = spi_block_erase_5c,
11459 }, {
11460 .eraseblocks = { {32 * 1024, 8192} },
11461 .block_erase = spi_block_erase_52,
11462 }, {
11463 .eraseblocks = { {64 * 1024, 4096} },
11464 .block_erase = spi_block_erase_dc,
11465 }, {
11466 .eraseblocks = { {64 * 1024, 4096} },
11467 .block_erase = spi_block_erase_d8,
11468 }, {
11469 .eraseblocks = { {65536 * 1024, 4} },
11470 .block_erase = spi_block_erase_c4,
11471 }
11472 },
11473 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11474 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11475 .write = spi_chip_write_256, /* Multi I/O supported */
11476 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11477 .voltage = {1700, 2000},
11478 },
11479
11480 {
11481 .vendor = "Micron",
11482 .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11483 .bustype = BUS_SPI,
11484 .manufacture_id = ST_ID,
11485 .model_id = ST_N25Q128__1E,
11486 .total_size = 16384,
11487 .page_size = 256,
11488 /* supports SFDP */
11489 /* OTP: 64B total; read 0x4B, write 0x42 */
11490 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11491 .tested = TEST_UNTESTED,
11492 .probe = probe_spi_rdid,
11493 .probe_timing = TIMING_ZERO,
11494 .block_erasers =
11495 {
11496 {
11497 .eraseblocks = { {4 * 1024, 4096} },
11498 .block_erase = spi_block_erase_20,
11499 }, {
11500 .eraseblocks = { {32 * 1024, 512} },
11501 .block_erase = spi_block_erase_52,
11502 }, {
11503 .eraseblocks = { {64 * 1024, 256} },
11504 .block_erase = spi_block_erase_d8,
11505 }, {
11506 .eraseblocks = { {16384 * 1024, 1} },
11507 .block_erase = spi_block_erase_c7,
11508 }, {
11509 .eraseblocks = { {16384 * 1024, 1} },
11510 .block_erase = spi_block_erase_60,
11511 }
11512 },
11513 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11514 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11515 .write = spi_chip_write_256, /* Multi I/O supported */
11516 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11517 .voltage = {1700, 2000},
11518 },
11519
11520 {
11521 .vendor = "Micron",
11522 .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11523 .bustype = BUS_SPI,
11524 .manufacture_id = ST_ID,
11525 .model_id = ST_N25Q128__3E,
11526 .total_size = 16384,
11527 .page_size = 256,
11528 /* supports SFDP */
11529 /* OTP: 64B total; read 0x4B, write 0x42 */
11530 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11531 .tested = TEST_UNTESTED,
11532 .probe = probe_spi_rdid,
11533 .probe_timing = TIMING_ZERO,
11534 .block_erasers =
11535 {
11536 {
11537 .eraseblocks = { {4 * 1024, 4096} },
11538 .block_erase = spi_block_erase_20,
11539 }, {
11540 .eraseblocks = { {32 * 1024, 512} },
11541 .block_erase = spi_block_erase_52,
11542 }, {
11543 .eraseblocks = { {64 * 1024, 256} },
11544 .block_erase = spi_block_erase_d8,
11545 }, {
11546 .eraseblocks = { {16384 * 1024, 1} },
11547 .block_erase = spi_block_erase_c7,
11548 }, {
11549 .eraseblocks = { {16384 * 1024, 1} },
11550 .block_erase = spi_block_erase_60,
11551 }
11552 },
11553 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11554 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11555 .write = spi_chip_write_256, /* Multi I/O supported */
11556 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11557 .voltage = {2700, 3600},
11558 },
11559
11560 {
11561 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011562 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011563 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011564 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070011565 .model_id = ST_N25Q256__3E,
11566 .total_size = 32768,
11567 .page_size = 256,
11568 /* supports SFDP */
11569 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011570 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11571 .tested = TEST_UNTESTED,
Ed Swierk199ab392017-07-03 13:33:44 -070011572 .probe = probe_spi_rdid,
11573 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011574 .block_erasers =
11575 {
Ed Swierk199ab392017-07-03 13:33:44 -070011576 {
11577 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011578 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011579 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011580 .eraseblocks = { {4 * 1024, 8192} },
11581 .block_erase = spi_block_erase_20,
11582 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011583 .eraseblocks = { {32 * 1024, 1024} },
11584 .block_erase = spi_block_erase_5c,
11585 }, {
11586 .eraseblocks = { {32 * 1024, 1024} },
11587 .block_erase = spi_block_erase_52,
11588 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011589 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011590 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011591 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011592 .eraseblocks = { {64 * 1024, 512} },
11593 .block_erase = spi_block_erase_d8,
11594 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011595 .eraseblocks = { {32768 * 1024, 1} },
11596 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011597 }, {
11598 .eraseblocks = { {32768 * 1024, 1} },
11599 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011600 }
11601 },
11602 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11603 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11604 .write = spi_chip_write_256, /* Multi I/O supported */
11605 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11606 .voltage = {2700, 3600},
11607 },
11608
11609 {
11610 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011611 .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11612 .bustype = BUS_SPI,
11613 .manufacture_id = ST_ID,
11614 .model_id = ST_N25Q256__1E,
11615 .total_size = 32768,
11616 .page_size = 256,
11617 /* supports SFDP */
11618 /* OTP: 64B total; read 0x4B, write 0x42 */
11619 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11620 .tested = TEST_UNTESTED,
11621 .probe = probe_spi_rdid,
11622 .probe_timing = TIMING_ZERO,
11623 .block_erasers =
11624 {
11625 {
11626 .eraseblocks = { {4 * 1024, 8192} },
11627 .block_erase = spi_block_erase_21,
11628 }, {
11629 .eraseblocks = { {4 * 1024, 8192} },
11630 .block_erase = spi_block_erase_20,
11631 }, {
11632 .eraseblocks = { {32 * 1024, 1024} },
11633 .block_erase = spi_block_erase_5c,
11634 }, {
11635 .eraseblocks = { {32 * 1024, 1024} },
11636 .block_erase = spi_block_erase_52,
11637 }, {
11638 .eraseblocks = { {64 * 1024, 512} },
11639 .block_erase = spi_block_erase_dc,
11640 }, {
11641 .eraseblocks = { {64 * 1024, 512} },
11642 .block_erase = spi_block_erase_d8,
11643 }, {
11644 .eraseblocks = { {32768 * 1024, 1} },
11645 .block_erase = spi_block_erase_c7,
11646 }, {
11647 .eraseblocks = { {32768 * 1024, 1} },
11648 .block_erase = spi_block_erase_60,
11649 }
11650 },
11651 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11652 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11653 .write = spi_chip_write_256, /* Multi I/O supported */
11654 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11655 .voltage = {1700, 2000},
11656 },
11657
11658 {
11659 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011660 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011661 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011662 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011663 .model_id = ST_N25Q512__3G,
Ed Swierk199ab392017-07-03 13:33:44 -070011664 .total_size = 65536,
11665 .page_size = 256,
11666 /* supports SFDP */
11667 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011668 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020011669 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011670 .probe = probe_spi_rdid,
11671 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011672 .block_erasers =
11673 {
Ed Swierk199ab392017-07-03 13:33:44 -070011674 {
11675 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011676 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011677 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011678 .eraseblocks = { {4 * 1024, 16384} },
11679 .block_erase = spi_block_erase_20,
11680 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011681 .eraseblocks = { {32 * 1024, 2048} },
11682 .block_erase = spi_block_erase_5c,
11683 }, {
11684 .eraseblocks = { {32 * 1024, 2048} },
11685 .block_erase = spi_block_erase_52,
11686 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011687 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011688 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011689 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011690 .eraseblocks = { {64 * 1024, 1024} },
11691 .block_erase = spi_block_erase_d8,
11692 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011693 .eraseblocks = { {65536 * 1024, 1} },
11694 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011695 }, {
11696 .eraseblocks = { {65536 * 1024, 1} },
11697 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011698 }
11699 },
11700 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11701 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11702 .write = spi_chip_write_256, /* Multi I/O supported */
11703 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11704 .voltage = {2700, 3600},
11705 },
11706
11707 {
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011708 .vendor = "Micron",
11709 .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11710 .bustype = BUS_SPI,
11711 .manufacture_id = ST_ID,
11712 .model_id = ST_N25Q512__1G,
11713 .total_size = 65536,
11714 .page_size = 256,
11715 /* supports SFDP */
11716 /* OTP: 64B total; read 0x4B, write 0x42 */
11717 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11718 .tested = TEST_OK_PREW,
11719 .probe = probe_spi_rdid,
11720 .probe_timing = TIMING_ZERO,
11721 .block_erasers =
11722 {
11723 {
11724 .eraseblocks = { {4 * 1024, 16384} },
11725 .block_erase = spi_block_erase_21,
11726 }, {
11727 .eraseblocks = { {4 * 1024, 16384} },
11728 .block_erase = spi_block_erase_20,
11729 }, {
11730 .eraseblocks = { {32 * 1024, 2048} },
11731 .block_erase = spi_block_erase_5c,
11732 }, {
11733 .eraseblocks = { {32 * 1024, 2048} },
11734 .block_erase = spi_block_erase_52,
11735 }, {
11736 .eraseblocks = { {64 * 1024, 1024} },
11737 .block_erase = spi_block_erase_dc,
11738 }, {
11739 .eraseblocks = { {64 * 1024, 1024} },
11740 .block_erase = spi_block_erase_d8,
11741 }, {
11742 .eraseblocks = { {65536 * 1024, 1} },
11743 .block_erase = spi_block_erase_c7,
11744 }, {
11745 .eraseblocks = { {65536 * 1024, 1} },
11746 .block_erase = spi_block_erase_60,
11747 }
11748 },
11749 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11750 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11751 .write = spi_chip_write_256, /* Multi I/O supported */
11752 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11753 .voltage = {1700, 2000},
11754 },
11755
11756 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011757 .vendor = "MoselVitelic",
11758 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011759 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011760 .manufacture_id = SYNCMOS_MVC_ID,
11761 .model_id = MVC_V29C51000B,
11762 .total_size = 64,
11763 .page_size = 512,
11764 .feature_bits = FEATURE_EITHER_RESET,
11765 .tested = TEST_UNTESTED,
11766 .probe = probe_jedec,
11767 .probe_timing = TIMING_ZERO,
11768 .block_erasers =
11769 {
11770 {
11771 .eraseblocks = { {512, 128} },
11772 .block_erase = erase_sector_jedec,
11773 }, {
11774 .eraseblocks = { {64 * 1024, 1} },
11775 .block_erase = erase_chip_block_jedec,
11776 },
11777 },
11778 .write = write_jedec_1,
11779 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011780 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011781 },
11782
11783 {
11784 .vendor = "MoselVitelic",
11785 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011786 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011787 .manufacture_id = SYNCMOS_MVC_ID,
11788 .model_id = MVC_V29C51000T,
11789 .total_size = 64,
11790 .page_size = 512,
11791 .feature_bits = FEATURE_EITHER_RESET,
11792 .tested = TEST_UNTESTED,
11793 .probe = probe_jedec,
11794 .probe_timing = TIMING_ZERO,
11795 .block_erasers =
11796 {
11797 {
11798 .eraseblocks = { {512, 128} },
11799 .block_erase = erase_sector_jedec,
11800 }, {
11801 .eraseblocks = { {64 * 1024, 1} },
11802 .block_erase = erase_chip_block_jedec,
11803 },
11804 },
11805 .write = write_jedec_1,
11806 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011807 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011808 },
11809
11810 {
11811 .vendor = "MoselVitelic",
11812 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011813 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011814 .manufacture_id = SYNCMOS_MVC_ID,
11815 .model_id = MVC_V29C51400B,
11816 .total_size = 512,
11817 .page_size = 1024,
11818 .feature_bits = FEATURE_EITHER_RESET,
11819 .tested = TEST_UNTESTED,
11820 .probe = probe_jedec,
11821 .probe_timing = TIMING_ZERO,
11822 .block_erasers =
11823 {
11824 {
11825 .eraseblocks = { {1024, 512} },
11826 .block_erase = erase_sector_jedec,
11827 }, {
11828 .eraseblocks = { {512 * 1024, 1} },
11829 .block_erase = erase_chip_block_jedec,
11830 },
11831 },
11832 .write = write_jedec_1,
11833 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011834 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011835 },
11836
11837 {
11838 .vendor = "MoselVitelic",
11839 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011840 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011841 .manufacture_id = SYNCMOS_MVC_ID,
11842 .model_id = MVC_V29C51400T,
11843 .total_size = 512,
11844 .page_size = 1024,
11845 .feature_bits = FEATURE_EITHER_RESET,
11846 .tested = TEST_UNTESTED,
11847 .probe = probe_jedec,
11848 .probe_timing = TIMING_ZERO,
11849 .block_erasers =
11850 {
11851 {
11852 .eraseblocks = { {1024, 512} },
11853 .block_erase = erase_sector_jedec,
11854 }, {
11855 .eraseblocks = { {512 * 1024, 1} },
11856 .block_erase = erase_chip_block_jedec,
11857 },
11858 },
11859 .write = write_jedec_1,
11860 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011861 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011862 },
11863
11864 {
11865 .vendor = "MoselVitelic",
11866 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011867 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011868 .manufacture_id = SYNCMOS_MVC_ID,
11869 .model_id = MVC_V29LC51000,
11870 .total_size = 64,
11871 .page_size = 512,
11872 .feature_bits = FEATURE_EITHER_RESET,
11873 .tested = TEST_UNTESTED,
11874 .probe = probe_jedec,
11875 .probe_timing = TIMING_ZERO,
11876 .block_erasers =
11877 {
11878 {
11879 .eraseblocks = { {512, 128} },
11880 .block_erase = erase_sector_jedec,
11881 }, {
11882 .eraseblocks = { {64 * 1024, 1} },
11883 .block_erase = erase_chip_block_jedec,
11884 },
11885 },
11886 .write = write_jedec_1,
11887 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011888 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011889 },
11890
11891 {
11892 .vendor = "MoselVitelic",
11893 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011894 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011895 .manufacture_id = SYNCMOS_MVC_ID,
11896 .model_id = MVC_V29LC51001,
11897 .total_size = 128,
11898 .page_size = 512,
11899 .feature_bits = FEATURE_EITHER_RESET,
11900 .tested = TEST_UNTESTED,
11901 .probe = probe_jedec,
11902 .probe_timing = TIMING_ZERO,
11903 .block_erasers =
11904 {
11905 {
11906 .eraseblocks = { {512, 256} },
11907 .block_erase = erase_sector_jedec,
11908 }, {
11909 .eraseblocks = { {128 * 1024, 1} },
11910 .block_erase = erase_chip_block_jedec,
11911 },
11912 },
11913 .write = write_jedec_1,
11914 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011915 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011916 },
11917
11918 {
11919 .vendor = "MoselVitelic",
11920 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011921 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011922 .manufacture_id = SYNCMOS_MVC_ID,
11923 .model_id = MVC_V29LC51002,
11924 .total_size = 256,
11925 .page_size = 512,
11926 .feature_bits = FEATURE_EITHER_RESET,
11927 .tested = TEST_UNTESTED,
11928 .probe = probe_jedec,
11929 .probe_timing = TIMING_ZERO,
11930 .block_erasers =
11931 {
11932 {
11933 .eraseblocks = { {512, 512} },
11934 .block_erase = erase_sector_jedec,
11935 }, {
11936 .eraseblocks = { {256 * 1024, 1} },
11937 .block_erase = erase_chip_block_jedec,
11938 },
11939 },
11940 .write = write_jedec_1,
11941 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011942 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011943 },
11944
11945 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011946 .vendor = "Nantronics",
11947 .name = "N25S10",
11948 .bustype = BUS_SPI,
11949 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11950 .model_id = NANTRONICS_N25S10,
11951 .total_size = 128,
11952 .page_size = 256,
11953 .feature_bits = FEATURE_WRSR_WREN,
11954 .tested = TEST_UNTESTED,
11955 .probe = probe_spi_rdid,
11956 .probe_timing = TIMING_ZERO,
11957 .block_erasers =
11958 {
11959 {
11960 .eraseblocks = { {4 * 1024, 32} },
11961 .block_erase = spi_block_erase_20,
11962 }, {
11963 .eraseblocks = { {4 * 1024, 32} },
11964 .block_erase = spi_block_erase_d7,
11965 }, {
11966 .eraseblocks = { {32 * 1024, 4} },
11967 .block_erase = spi_block_erase_52,
11968 }, {
11969 .eraseblocks = { {64 * 1024, 2} },
11970 .block_erase = spi_block_erase_d8,
11971 }, {
11972 .eraseblocks = { {128 * 1024, 1} },
11973 .block_erase = spi_block_erase_60,
11974 }, {
11975 .eraseblocks = { {128 * 1024, 1} },
11976 .block_erase = spi_block_erase_c7,
11977 }
11978 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011979 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011980 .unlock = spi_disable_blockprotect_bp3_srwd,
11981 .write = spi_chip_write_256,
11982 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11983 .voltage = {2700, 3600},
11984 },
11985
11986 {
11987 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011988 .name = "N25S16",
11989 .bustype = BUS_SPI,
11990 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11991 .model_id = NANTRONICS_N25S16,
11992 .total_size = 2048,
11993 .page_size = 256,
11994 .feature_bits = FEATURE_WRSR_WREN,
11995 .tested = TEST_UNTESTED,
11996 .probe = probe_spi_rdid,
11997 .probe_timing = TIMING_ZERO,
11998 .block_erasers =
11999 {
12000 {
12001 .eraseblocks = { {4 * 1024, 512} },
12002 .block_erase = spi_block_erase_20,
12003 }, {
12004 .eraseblocks = { {64 * 1024, 32} },
12005 .block_erase = spi_block_erase_d8,
12006 }, {
12007 .eraseblocks = { {2048 * 1024, 1} },
12008 .block_erase = spi_block_erase_60,
12009 }, {
12010 .eraseblocks = { {2048 * 1024, 1} },
12011 .block_erase = spi_block_erase_c7,
12012 }
12013 },
12014 .printlock = spi_prettyprint_status_register_bp3_srwd,
12015 .unlock = spi_disable_blockprotect_bp3_srwd,
12016 .write = spi_chip_write_256,
12017 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12018 .voltage = {2700, 3600},
12019 },
12020
12021 {
12022 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012023 .name = "N25S20",
12024 .bustype = BUS_SPI,
12025 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12026 .model_id = NANTRONICS_N25S20,
12027 .total_size = 256,
12028 .page_size = 256,
12029 .feature_bits = FEATURE_WRSR_WREN,
12030 .tested = TEST_UNTESTED,
12031 .probe = probe_spi_rdid,
12032 .probe_timing = TIMING_ZERO,
12033 .block_erasers =
12034 {
12035 {
12036 .eraseblocks = { {4 * 1024, 64} },
12037 .block_erase = spi_block_erase_20,
12038 }, {
12039 .eraseblocks = { {4 * 1024, 64} },
12040 .block_erase = spi_block_erase_d7,
12041 }, {
12042 .eraseblocks = { {32 * 1024, 8} },
12043 .block_erase = spi_block_erase_52,
12044 }, {
12045 .eraseblocks = { {64 * 1024, 4} },
12046 .block_erase = spi_block_erase_d8,
12047 }, {
12048 .eraseblocks = { {256 * 1024, 1} },
12049 .block_erase = spi_block_erase_60,
12050 }, {
12051 .eraseblocks = { {256 * 1024, 1} },
12052 .block_erase = spi_block_erase_c7,
12053 }
12054 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012055 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012056 .unlock = spi_disable_blockprotect_bp3_srwd,
12057 .write = spi_chip_write_256,
12058 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12059 .voltage = {2700, 3600},
12060 },
12061
12062 {
12063 .vendor = "Nantronics",
12064 .name = "N25S40",
12065 .bustype = BUS_SPI,
12066 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12067 .model_id = NANTRONICS_N25S40,
12068 .total_size = 512,
12069 .page_size = 256,
12070 .feature_bits = FEATURE_WRSR_WREN,
12071 .tested = TEST_UNTESTED,
12072 .probe = probe_spi_rdid,
12073 .probe_timing = TIMING_ZERO,
12074 .block_erasers =
12075 {
12076 {
12077 .eraseblocks = { {4 * 1024, 128} },
12078 .block_erase = spi_block_erase_20,
12079 }, {
12080 .eraseblocks = { {4 * 1024, 128} },
12081 .block_erase = spi_block_erase_d7,
12082 }, {
12083 .eraseblocks = { {32 * 1024, 16} },
12084 .block_erase = spi_block_erase_52,
12085 }, {
12086 .eraseblocks = { {64 * 1024, 8} },
12087 .block_erase = spi_block_erase_d8,
12088 }, {
12089 .eraseblocks = { {512 * 1024, 1} },
12090 .block_erase = spi_block_erase_60,
12091 }, {
12092 .eraseblocks = { {512 * 1024, 1} },
12093 .block_erase = spi_block_erase_c7,
12094 }
12095 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012096 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012097 .unlock = spi_disable_blockprotect_bp3_srwd,
12098 .write = spi_chip_write_256,
12099 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12100 .voltage = {2700, 3600},
12101 },
12102
12103 {
12104 .vendor = "Nantronics",
12105 .name = "N25S80",
12106 .bustype = BUS_SPI,
12107 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12108 .model_id = NANTRONICS_N25S80,
12109 .total_size = 1024,
12110 .page_size = 256,
12111 .feature_bits = FEATURE_WRSR_WREN,
12112 .tested = TEST_UNTESTED,
12113 .probe = probe_spi_rdid,
12114 .probe_timing = TIMING_ZERO,
12115 .block_erasers =
12116 {
12117 {
12118 .eraseblocks = { {4 * 1024, 256} },
12119 .block_erase = spi_block_erase_20,
12120 }, {
12121 .eraseblocks = { {32 * 1024, 32} },
12122 .block_erase = spi_block_erase_52,
12123 }, {
12124 .eraseblocks = { {64 * 1024, 16} },
12125 .block_erase = spi_block_erase_d8,
12126 }, {
12127 .eraseblocks = { {1024 * 1024, 1} },
12128 .block_erase = spi_block_erase_60,
12129 }, {
12130 .eraseblocks = { {1024 * 1024, 1} },
12131 .block_erase = spi_block_erase_c7,
12132 }
12133 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012134 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012135 .unlock = spi_disable_blockprotect_bp3_srwd,
12136 .write = spi_chip_write_256,
12137 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12138 .voltage = {2700, 3600},
12139 },
12140
12141 {
Stefan Taunerf4451612013-04-19 01:59:15 +000012142 .vendor = "PMC",
12143 .name = "Pm25LD010(C)",
12144 .bustype = BUS_SPI,
12145 .manufacture_id = PMC_ID,
12146 .model_id = PMC_PM25LD010,
12147 .total_size = 128,
12148 .page_size = 256,
12149 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012150 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012151 .probe = probe_spi_rdid,
12152 .probe_timing = TIMING_ZERO,
12153 .block_erasers =
12154 {
12155 {
12156 .eraseblocks = { {4 * 1024, 32} },
12157 .block_erase = spi_block_erase_20,
12158 }, {
12159 .eraseblocks = { {4 * 1024, 32} },
12160 .block_erase = spi_block_erase_d7,
12161 }, {
12162 .eraseblocks = { {32 * 1024, 4} },
12163 .block_erase = spi_block_erase_d8,
12164 }, {
12165 .eraseblocks = { {128 * 1024, 1} },
12166 .block_erase = spi_block_erase_60,
12167 }, {
12168 .eraseblocks = { {128 * 1024, 1} },
12169 .block_erase = spi_block_erase_c7,
12170 }
12171 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012172 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012173 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12174 .write = spi_chip_write_256,
12175 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12176 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
12177 },
12178
12179 {
12180 .vendor = "PMC",
12181 .name = "Pm25LD020(C)",
12182 .bustype = BUS_SPI,
12183 .manufacture_id = PMC_ID,
12184 .model_id = PMC_PM25LD020,
12185 .total_size = 256,
12186 .page_size = 256,
12187 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020012188 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012189 .probe = probe_spi_rdid,
12190 .probe_timing = TIMING_ZERO,
12191 .block_erasers =
12192 {
12193 {
12194 .eraseblocks = { {4 * 1024, 64} },
12195 .block_erase = spi_block_erase_20,
12196 }, {
12197 .eraseblocks = { {4 * 1024, 64} },
12198 .block_erase = spi_block_erase_d7,
12199 }, {
12200 .eraseblocks = { {64 * 1024, 4} },
12201 .block_erase = spi_block_erase_d8,
12202 }, {
12203 .eraseblocks = { {256 * 1024, 1} },
12204 .block_erase = spi_block_erase_60,
12205 }, {
12206 .eraseblocks = { {256 * 1024, 1} },
12207 .block_erase = spi_block_erase_c7,
12208 }
12209 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012210 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012211 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12212 .write = spi_chip_write_256,
12213 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12214 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
12215 },
12216
12217 {
12218 .vendor = "PMC",
12219 .name = "Pm25LD040(C)",
12220 .bustype = BUS_SPI,
12221 .manufacture_id = PMC_ID,
12222 .model_id = PMC_PM25LV040,
12223 .total_size = 512,
12224 .page_size = 256,
12225 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020012226 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012227 .probe = probe_spi_rdid,
12228 .probe_timing = TIMING_ZERO,
12229 .block_erasers =
12230 {
12231 {
12232 .eraseblocks = { {4 * 1024, 128} },
12233 .block_erase = spi_block_erase_20,
12234 }, {
12235 .eraseblocks = { {4 * 1024, 128} },
12236 .block_erase = spi_block_erase_d7,
12237 }, {
12238 .eraseblocks = { {64 * 1024, 8} },
12239 .block_erase = spi_block_erase_d8,
12240 }, {
12241 .eraseblocks = { {512 * 1024, 1} },
12242 .block_erase = spi_block_erase_60,
12243 }, {
12244 .eraseblocks = { {512 * 1024, 1} },
12245 .block_erase = spi_block_erase_c7,
12246 }
12247 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012248 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012249 .unlock = spi_disable_blockprotect,
12250 .write = spi_chip_write_256,
12251 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12252 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
12253 },
12254
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012255 {
12256 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012257 .name = "Pm25LD256C",
12258 .bustype = BUS_SPI,
12259 .manufacture_id = PMC_ID,
12260 .model_id = PMC_PM25LD256C,
12261 .total_size = 32,
12262 .page_size = 256,
12263 .feature_bits = FEATURE_WRSR_WREN,
12264 .tested = TEST_UNTESTED,
12265 .probe = probe_spi_rdid,
12266 .probe_timing = TIMING_ZERO,
12267 .block_erasers =
12268 {
12269 {
12270 .eraseblocks = { {4 * 1024, 8} },
12271 .block_erase = spi_block_erase_20,
12272 }, {
12273 .eraseblocks = { {4 * 1024, 8} },
12274 .block_erase = spi_block_erase_d7,
12275 }, {
12276 .eraseblocks = { {32 * 1024, 1} },
12277 .block_erase = spi_block_erase_d8,
12278 }, {
12279 .eraseblocks = { {32 * 1024, 1} },
12280 .block_erase = spi_block_erase_60,
12281 }, {
12282 .eraseblocks = { {32 * 1024, 1} },
12283 .block_erase = spi_block_erase_c7,
12284 }
12285 },
12286 .printlock = spi_prettyprint_status_register_bp2_srwd,
12287 .unlock = spi_disable_blockprotect,
12288 .write = spi_chip_write_256,
12289 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12290 .voltage = {2700, 3600},
12291 },
12292
12293 {
12294 .vendor = "PMC",
12295 .name = "Pm25LD512(C)",
12296 .bustype = BUS_SPI,
12297 .manufacture_id = PMC_ID,
12298 .model_id = PMC_PM25LD512,
12299 .total_size = 64,
12300 .page_size = 256,
12301 .feature_bits = FEATURE_WRSR_WREN,
12302 .tested = TEST_OK_PREW,
12303 .probe = probe_spi_rdid,
12304 .probe_timing = TIMING_ZERO,
12305 .block_erasers =
12306 {
12307 {
12308 .eraseblocks = { {4 * 1024, 16} },
12309 .block_erase = spi_block_erase_20,
12310 }, {
12311 .eraseblocks = { {4 * 1024, 16} },
12312 .block_erase = spi_block_erase_d7,
12313 }, {
12314 .eraseblocks = { {32 * 1024, 2} },
12315 .block_erase = spi_block_erase_d8,
12316 }, {
12317 .eraseblocks = { {64 * 1024, 1} },
12318 .block_erase = spi_block_erase_60,
12319 }, {
12320 .eraseblocks = { {64 * 1024, 1} },
12321 .block_erase = spi_block_erase_c7,
12322 }
12323 },
12324 .printlock = spi_prettyprint_status_register_bp2_srwd,
12325 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12326 .write = spi_chip_write_256,
12327 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12328 .voltage = {2300, 3600},
12329 },
12330
12331 {
12332 .vendor = "PMC",
12333 .name = "Pm25LQ016",
12334 .bustype = BUS_SPI,
12335 .manufacture_id = PMC_ID,
12336 .model_id = PMC_PM25LQ016,
12337 .total_size = 2048,
12338 .page_size = 256,
12339 /* OTP: 256B total; read 0x4B, write 0xB1 */
12340 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12341 .tested = TEST_UNTESTED,
12342 .probe = probe_spi_rdid,
12343 .probe_timing = TIMING_ZERO,
12344 .block_erasers =
12345 {
12346 {
12347 .eraseblocks = { {4 * 1024, 512} },
12348 .block_erase = spi_block_erase_20,
12349 }, {
12350 .eraseblocks = { {4 * 1024, 512} },
12351 .block_erase = spi_block_erase_d7,
12352 }, {
12353 .eraseblocks = { {64 * 1024, 32} },
12354 .block_erase = spi_block_erase_d8,
12355 }, {
12356 .eraseblocks = { {2048 * 1024, 1} },
12357 .block_erase = spi_block_erase_60,
12358 }, {
12359 .eraseblocks = { {2048 * 1024, 1} },
12360 .block_erase = spi_block_erase_c7,
12361 }
12362 },
12363 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12364 .unlock = spi_disable_blockprotect_bp3_srwd,
12365 .write = spi_chip_write_256,
12366 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12367 .voltage = {2300, 3600},
12368 },
12369
12370 {
12371 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012372 .name = "Pm25LQ020",
12373 .bustype = BUS_SPI,
12374 .manufacture_id = PMC_ID,
12375 .model_id = PMC_PM25LQ020,
12376 .total_size = 256,
12377 .page_size = 256,
12378 /* OTP: 256B total; read 0x4B, write 0xB1 */
12379 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12380 .tested = TEST_UNTESTED,
12381 .probe = probe_spi_rdid,
12382 .probe_timing = TIMING_ZERO,
12383 .block_erasers =
12384 {
12385 {
12386 .eraseblocks = { {4 * 1024, 64} },
12387 .block_erase = spi_block_erase_20,
12388 }, {
12389 .eraseblocks = { {4 * 1024, 64} },
12390 .block_erase = spi_block_erase_d7,
12391 }, {
12392 .eraseblocks = { {64 * 1024, 4} },
12393 .block_erase = spi_block_erase_d8,
12394 }, {
12395 .eraseblocks = { {256 * 1024, 1} },
12396 .block_erase = spi_block_erase_60,
12397 }, {
12398 .eraseblocks = { {256 * 1024, 1} },
12399 .block_erase = spi_block_erase_c7,
12400 }
12401 },
12402 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12403 .unlock = spi_disable_blockprotect_bp3_srwd,
12404 .write = spi_chip_write_256,
12405 .read = spi_chip_read,
12406 .voltage = {2300, 3600},
12407 },
12408
12409 {
12410 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012411 .name = "Pm25LQ032C",
12412 .bustype = BUS_SPI,
12413 .manufacture_id = PMC_ID,
12414 .model_id = PMC_PM25LQ032C,
12415 .total_size = 4096,
12416 .page_size = 256,
12417 /* OTP: 64B total; read 0x4B, write 0xB1 */
12418 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12419 .tested = TEST_OK_PREW,
12420 .probe = probe_spi_rdid,
12421 .probe_timing = TIMING_ZERO,
12422 .block_erasers =
12423 {
12424 {
12425 .eraseblocks = { {4 * 1024, 1024} },
12426 .block_erase = spi_block_erase_20,
12427 }, {
12428 .eraseblocks = { {4 * 1024, 1024} },
12429 .block_erase = spi_block_erase_d7,
12430 }, {
12431 .eraseblocks = { {64 * 1024, 64} },
12432 .block_erase = spi_block_erase_d8,
12433 }, {
12434 .eraseblocks = { {4096 * 1024, 1} },
12435 .block_erase = spi_block_erase_60,
12436 }, {
12437 .eraseblocks = { {4096 * 1024, 1} },
12438 .block_erase = spi_block_erase_c7,
12439 }
12440 },
12441 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12442 .unlock = spi_disable_blockprotect_bp3_srwd,
12443 .write = spi_chip_write_256,
12444 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12445 .voltage = {2700, 3600},
12446 },
12447
12448 {
12449 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012450 .name = "Pm25LQ040",
12451 .bustype = BUS_SPI,
12452 .manufacture_id = PMC_ID,
12453 .model_id = PMC_PM25LQ040,
12454 .total_size = 512,
12455 .page_size = 256,
12456 /* OTP: 256B total; read 0x4B, write 0xB1 */
12457 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12458 .tested = TEST_UNTESTED,
12459 .probe = probe_spi_rdid,
12460 .probe_timing = TIMING_ZERO,
12461 .block_erasers =
12462 {
12463 {
12464 .eraseblocks = { {4 * 1024, 128} },
12465 .block_erase = spi_block_erase_20,
12466 }, {
12467 .eraseblocks = { {4 * 1024, 128} },
12468 .block_erase = spi_block_erase_d7,
12469 }, {
12470 .eraseblocks = { {64 * 1024, 8} },
12471 .block_erase = spi_block_erase_d8,
12472 }, {
12473 .eraseblocks = { {512 * 1024, 1} },
12474 .block_erase = spi_block_erase_60,
12475 }, {
12476 .eraseblocks = { {512 * 1024, 1} },
12477 .block_erase = spi_block_erase_c7,
12478 }
12479 },
12480 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12481 .unlock = spi_disable_blockprotect_bp3_srwd,
12482 .write = spi_chip_write_256,
12483 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12484 .voltage = {2300, 3600},
12485 },
12486
12487 {
12488 .vendor = "PMC",
12489 .name = "Pm25LQ080",
12490 .bustype = BUS_SPI,
12491 .manufacture_id = PMC_ID,
12492 .model_id = PMC_PM25LQ080,
12493 .total_size = 1024,
12494 .page_size = 256,
12495 /* OTP: 64B total; read 0x4B, write 0xB1 */
12496 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12497 .tested = TEST_UNTESTED,
12498 .probe = probe_spi_rdid,
12499 .probe_timing = TIMING_ZERO,
12500 .block_erasers =
12501 {
12502 {
12503 .eraseblocks = { {4 * 1024, 256} },
12504 .block_erase = spi_block_erase_20,
12505 }, {
12506 .eraseblocks = { {4 * 1024, 256} },
12507 .block_erase = spi_block_erase_d7,
12508 }, {
12509 .eraseblocks = { {64 * 1024, 16} },
12510 .block_erase = spi_block_erase_d8,
12511 }, {
12512 .eraseblocks = { {1024 * 1024, 1} },
12513 .block_erase = spi_block_erase_60,
12514 }, {
12515 .eraseblocks = { {1024 * 1024, 1} },
12516 .block_erase = spi_block_erase_c7,
12517 }
12518 },
12519 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12520 .unlock = spi_disable_blockprotect_bp3_srwd,
12521 .write = spi_chip_write_256,
12522 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12523 .voltage = {2300, 3600},
12524 },
12525
12526 {
12527 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012528 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012529 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000012530 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012531 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012532 .total_size = 128,
12533 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012534 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000012535 .tested = TEST_OK_PREW,
12536 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012537 .probe_timing = TIMING_ZERO,
12538 .block_erasers =
12539 {
12540 {
12541 .eraseblocks = { {4 * 1024, 32} },
12542 .block_erase = spi_block_erase_d7,
12543 }, {
12544 .eraseblocks = { {32 * 1024, 4} },
12545 .block_erase = spi_block_erase_d8,
12546 }, {
12547 .eraseblocks = { {128 * 1024, 1} },
12548 .block_erase = spi_block_erase_c7,
12549 }
12550 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012551 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012552 .unlock = spi_disable_blockprotect,
12553 .write = spi_chip_write_256,
12554 .read = spi_chip_read, /* Fast read (0x0B) supported */
12555 .voltage = {2700, 3600},
12556 },
12557
12558 {
12559 .vendor = "PMC",
12560 .name = "Pm25LV010A",
12561 .bustype = BUS_SPI,
12562 .manufacture_id = PMC_ID,
12563 .model_id = PMC_PM25LV010,
12564 .total_size = 128,
12565 .page_size = 256,
12566 .feature_bits = FEATURE_WRSR_WREN,
12567 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012568 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012569 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012570 .block_erasers =
12571 {
12572 {
12573 .eraseblocks = { {4 * 1024, 32} },
12574 .block_erase = spi_block_erase_d7,
12575 }, {
12576 .eraseblocks = { {32 * 1024, 4} },
12577 .block_erase = spi_block_erase_d8,
12578 }, {
12579 .eraseblocks = { {128 * 1024, 1} },
12580 .block_erase = spi_block_erase_c7,
12581 }
12582 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012583 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012584 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012585 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012586 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012587 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012588 },
12589
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012590 {
12591 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012592 .name = "Pm25LV016B",
12593 .bustype = BUS_SPI,
12594 .manufacture_id = PMC_ID,
12595 .model_id = PMC_PM25LV016B,
12596 .total_size = 2048,
12597 .page_size = 256,
12598 .feature_bits = FEATURE_WRSR_WREN,
12599 .tested = TEST_UNTESTED,
12600 .probe = probe_spi_rdid,
12601 .probe_timing = TIMING_ZERO,
12602 .block_erasers =
12603 {
12604 {
12605 .eraseblocks = { {4 * 1024, 512} },
12606 .block_erase = spi_block_erase_d7,
12607 }, {
12608 .eraseblocks = { {4 * 1024, 512} },
12609 .block_erase = spi_block_erase_20,
12610 }, {
12611 .eraseblocks = { {64 * 1024, 32} },
12612 .block_erase = spi_block_erase_d8,
12613 }, {
12614 .eraseblocks = { {2 * 1024 * 1024, 1} },
12615 .block_erase = spi_block_erase_60,
12616 }, {
12617 .eraseblocks = { {2 * 1024 * 1024, 1} },
12618 .block_erase = spi_block_erase_c7,
12619 }
12620 },
12621 .printlock = spi_prettyprint_status_register_bp2_srwd,
12622 .unlock = spi_disable_blockprotect,
12623 .write = spi_chip_write_256,
12624 .read = spi_chip_read, /* Fast read (0x0B) supported */
12625 .voltage = {2700, 3600},
12626 },
12627
12628 {
12629 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012630 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012631 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012632 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012633 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012634 .total_size = 256,
12635 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012636 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012637 .tested = TEST_UNTESTED,
12638 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012639 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012640 .block_erasers =
12641 {
12642 {
12643 .eraseblocks = { {4 * 1024, 64} },
12644 .block_erase = spi_block_erase_d7,
12645 }, {
12646 .eraseblocks = { {64 * 1024, 4} },
12647 .block_erase = spi_block_erase_d8,
12648 }, {
12649 .eraseblocks = { {256 * 1024, 1} },
12650 .block_erase = spi_block_erase_c7,
12651 }
12652 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012653 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012654 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012655 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012656 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012657 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012658 },
12659
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012660 {
12661 .vendor = "PMC",
12662 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012663 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012664 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012665 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012666 .total_size = 512,
12667 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012668 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000012669 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012670 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012671 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012672 .block_erasers =
12673 {
12674 {
12675 .eraseblocks = { {4 * 1024, 128} },
12676 .block_erase = spi_block_erase_d7,
12677 }, {
12678 .eraseblocks = { {64 * 1024, 8} },
12679 .block_erase = spi_block_erase_d8,
12680 }, {
12681 .eraseblocks = { {512 * 1024, 1} },
12682 .block_erase = spi_block_erase_c7,
12683 }
12684 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012685 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012686 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012687 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012688 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012689 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012690 },
12691
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012692 {
12693 .vendor = "PMC",
12694 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012695 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012696 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012697 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012698 .total_size = 1024,
12699 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012700 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012701 .tested = TEST_UNTESTED,
12702 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012703 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012704 .block_erasers =
12705 {
12706 {
12707 .eraseblocks = { {4 * 1024, 256} },
12708 .block_erase = spi_block_erase_d7,
12709 }, {
12710 .eraseblocks = { {4 * 1024, 256} },
12711 .block_erase = spi_block_erase_20,
12712 }, {
12713 .eraseblocks = { {64 * 1024, 16} },
12714 .block_erase = spi_block_erase_d8,
12715 }, {
12716 .eraseblocks = { {1024 * 1024, 1} },
12717 .block_erase = spi_block_erase_60,
12718 }, {
12719 .eraseblocks = { {1024 * 1024, 1} },
12720 .block_erase = spi_block_erase_c7,
12721 }
12722 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012723 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012724 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012725 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012726 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012727 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012728 },
12729
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012730 {
12731 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012732 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012733 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012734 .manufacture_id = PMC_ID_NOPREFIX,
12735 .model_id = PMC_PM25LV512,
12736 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012737 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012738 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012739 .tested = TEST_OK_PREW,
12740 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012741 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012742 .block_erasers =
12743 {
12744 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012745 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000012746 .block_erase = spi_block_erase_d7,
12747 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012748 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000012749 .block_erase = spi_block_erase_d8,
12750 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012751 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000012752 .block_erase = spi_block_erase_c7,
12753 }
12754 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100012755 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012756 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012757 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012758 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012759 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012760 },
12761
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012762 {
12763 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000012764 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012765 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012766 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012767 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012768 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000012769 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012770 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012771 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012772 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000012773 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000012774 .block_erasers =
12775 {
12776 {
12777 .eraseblocks = {
12778 {16 * 1024, 1},
12779 {8 * 1024, 2},
12780 {96 * 1024, 1},
12781 {128 * 1024, 1},
12782 },
Sean Nelson35727f72010-01-28 23:55:12 +000012783 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012784 }, {
12785 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000012786 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012787 },
12788 },
Sean Nelson35727f72010-01-28 23:55:12 +000012789 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012790 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012791 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012792 },
12793
12794 {
12795 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012796 .name = "Pm29F002T",
12797 .bustype = BUS_PARALLEL,
12798 .manufacture_id = PMC_ID_NOPREFIX,
12799 .model_id = PMC_PM29F002T,
12800 .total_size = 256,
12801 .page_size = 8 * 1024,
12802 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12803 .tested = TEST_OK_PREW,
12804 .probe = probe_jedec,
12805 .probe_timing = TIMING_FIXME,
12806 .block_erasers =
12807 {
12808 {
12809 .eraseblocks = {
12810 {128 * 1024, 1},
12811 {96 * 1024, 1},
12812 {8 * 1024, 2},
12813 {16 * 1024, 1},
12814 },
12815 .block_erase = erase_sector_jedec,
12816 }, {
12817 .eraseblocks = { {256 * 1024, 1} },
12818 .block_erase = erase_chip_block_jedec,
12819 },
12820 },
12821 .write = write_jedec_1,
12822 .read = read_memmapped,
12823 .voltage = {4500, 5500},
12824 },
12825
12826 {
12827 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012828 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012829 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012830 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012831 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012832 .total_size = 128,
12833 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012834 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012835 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012836 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012837 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000012838 .block_erasers =
12839 {
12840 {
12841 .eraseblocks = { {4 * 1024, 32} },
12842 .block_erase = erase_sector_jedec,
12843 }, {
12844 .eraseblocks = { {64 * 1024, 2} },
12845 .block_erase = erase_block_jedec,
12846 }, {
12847 .eraseblocks = { {128 * 1024, 1} },
12848 .block_erase = erase_chip_block_jedec,
12849 }
12850 },
Sean Nelson35727f72010-01-28 23:55:12 +000012851 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012852 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012853 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012854 },
12855
12856 {
12857 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012858 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012859 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012860 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012861 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012862 .total_size = 256,
12863 .page_size = 4096,
12864 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12865 .tested = TEST_UNTESTED,
12866 .probe = probe_jedec,
12867 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100012868 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012869 {
12870 {
12871 .eraseblocks = { {4 * 1024, 64} },
12872 .block_erase = erase_sector_jedec,
12873 }, {
12874 .eraseblocks = { {64 * 1024, 4} },
12875 .block_erase = erase_block_jedec,
12876 }, {
12877 .eraseblocks = { {256 * 1024, 1} },
12878 .block_erase = erase_chip_block_jedec,
12879 }
12880 },
12881 .write = write_jedec_1,
12882 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012883 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012884 },
12885
12886 {
12887 .vendor = "PMC",
12888 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012889 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012890 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012891 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012892 .total_size = 512,
12893 .page_size = 4096,
12894 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012895 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012896 .probe = probe_jedec,
12897 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100012898 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012899 {
12900 {
12901 .eraseblocks = { {4 * 1024, 128} },
12902 .block_erase = erase_sector_jedec,
12903 }, {
12904 .eraseblocks = { {64 * 1024, 8} },
12905 .block_erase = erase_block_jedec,
12906 }, {
12907 .eraseblocks = { {512 * 1024, 1} },
12908 .block_erase = erase_chip_block_jedec,
12909 }
12910 },
12911 .write = write_jedec_1,
12912 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012913 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012914 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000012915
12916 {
12917 .vendor = "PMC",
12918 .name = "Pm39LV512",
12919 .bustype = BUS_PARALLEL,
12920 .manufacture_id = PMC_ID_NOPREFIX,
12921 .model_id = PMC_PM39LV512,
12922 .total_size = 64,
12923 .page_size = 4096,
12924 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12925 .tested = TEST_OK_PREW,
12926 .probe = probe_jedec,
12927 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12928 .block_erasers =
12929 {
12930 {
12931 .eraseblocks = { {4 * 1024, 16} },
12932 .block_erase = erase_sector_jedec,
12933 }, {
12934 .eraseblocks = { {64 * 1024, 1} },
12935 .block_erase = erase_block_jedec,
12936 }, {
12937 .eraseblocks = { {64 * 1024, 1} },
12938 .block_erase = erase_chip_block_jedec,
12939 }
12940 },
12941 .write = write_jedec_1,
12942 .read = read_memmapped,
12943 .voltage = {2700, 3600},
12944 },
12945
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012946 {
12947 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012948 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012949 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012950 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012951 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012952 .total_size = 256,
12953 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012954 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012955 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012956 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012957 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000012958 .block_erasers =
12959 {
12960 {
12961 .eraseblocks = { {4 * 1024, 64} },
12962 .block_erase = erase_sector_jedec,
12963 }, {
12964 .eraseblocks = { {16 * 1024, 16} },
12965 .block_erase = erase_block_jedec,
12966 }, {
12967 .eraseblocks = { {256 * 1024, 1} },
12968 .block_erase = erase_chip_block_jedec,
12969 }
12970 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012971 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000012972 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012973 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012974 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012975 },
12976
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012977 {
12978 .vendor = "PMC",
12979 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012980 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012981 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012982 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012983 .total_size = 512,
12984 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012985 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000012986 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012987 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000012988 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012989 .block_erasers =
12990 {
12991 {
12992 .eraseblocks = { {4 * 1024, 128} },
12993 .block_erase = erase_sector_jedec,
12994 }, {
12995 .eraseblocks = { {64 * 1024, 8} },
12996 .block_erase = erase_block_jedec,
12997 }, {
12998 .eraseblocks = { {512 * 1024, 1} },
12999 .block_erase = erase_chip_block_jedec,
13000 }
13001 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013002 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000013003 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013004 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013005 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013006 },
13007
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013008 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013009 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000013010 .name = "SST25LF020A",
13011 .bustype = BUS_SPI,
13012 .manufacture_id = SST_ID,
13013 .model_id = SST_SST25VF020_REMS,
13014 .total_size = 256,
13015 .page_size = 256,
13016 .feature_bits = FEATURE_WRSR_EWSR,
13017 .tested = TEST_OK_PREW,
13018 .probe = probe_spi_rems,
13019 .probe_timing = TIMING_ZERO,
13020 .block_erasers =
13021 {
13022 {
13023 .eraseblocks = { {4 * 1024, 64} },
13024 .block_erase = spi_block_erase_20,
13025 }, {
13026 .eraseblocks = { {32 * 1024, 8} },
13027 .block_erase = spi_block_erase_52,
13028 }, {
13029 .eraseblocks = { {256 * 1024, 1} },
13030 .block_erase = spi_block_erase_60,
13031 },
13032 },
13033 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13034 .unlock = spi_disable_blockprotect,
13035 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13036 .read = spi_chip_read, /* Fast read (0x0B) supported */
13037 .voltage = {2700, 3600},
13038 },
13039
13040 {
13041 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000013042 .name = "SST25LF040A",
13043 .bustype = BUS_SPI,
13044 .manufacture_id = SST_ID,
13045 .model_id = SST_SST25VF040_REMS,
13046 .total_size = 512,
13047 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013048 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000013049 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000013050 .probe = probe_spi_res2,
13051 .probe_timing = TIMING_ZERO,
13052 .block_erasers =
13053 {
13054 {
13055 .eraseblocks = { {4 * 1024, 128} },
13056 .block_erase = spi_block_erase_20,
13057 }, {
13058 .eraseblocks = { {32 * 1024, 16} },
13059 .block_erase = spi_block_erase_52,
13060 }, {
13061 .eraseblocks = { {512 * 1024, 1} },
13062 .block_erase = spi_block_erase_60,
13063 },
13064 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013065 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013066 .unlock = spi_disable_blockprotect,
13067 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13068 .read = spi_chip_read,
13069 .voltage = {3000, 3600},
13070 },
13071
13072 {
13073 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000013074 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000013075 .bustype = BUS_SPI,
13076 .manufacture_id = SST_ID,
13077 .model_id = SST_SST25VF080_REMS,
13078 .total_size = 1024,
13079 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013080 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000013081 .tested = TEST_UNTESTED,
13082 .probe = probe_spi_res2,
13083 .probe_timing = TIMING_ZERO,
13084 .block_erasers =
13085 {
13086 {
13087 .eraseblocks = { {4 * 1024, 256} },
13088 .block_erase = spi_block_erase_20,
13089 }, {
13090 .eraseblocks = { {32 * 1024, 32} },
13091 .block_erase = spi_block_erase_52,
13092 }, {
13093 .eraseblocks = { {1024 * 1024, 1} },
13094 .block_erase = spi_block_erase_60,
13095 },
13096 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013097 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013098 .unlock = spi_disable_blockprotect,
13099 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13100 .read = spi_chip_read,
13101 .voltage = {3000, 3600},
13102 },
13103
13104 {
13105 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000013106 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013107 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000013108 .manufacture_id = SST_ID,
13109 .model_id = SST_SST25VF010_REMS,
13110 .total_size = 128,
13111 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013112 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000013113 .tested = TEST_OK_PREW,
13114 .probe = probe_spi_rems,
13115 .probe_timing = TIMING_ZERO,
13116 .block_erasers =
13117 {
13118 {
13119 .eraseblocks = { {4 * 1024, 32} },
13120 .block_erase = spi_block_erase_20,
13121 }, {
13122 .eraseblocks = { {32 * 1024, 4} },
13123 .block_erase = spi_block_erase_52,
13124 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000013125 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013126 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013127 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000013128 .eraseblocks = { {128 * 1024, 1} },
13129 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000013130 }, {
13131 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013132 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013133 },
13134 },
13135 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13136 .unlock = spi_disable_blockprotect,
13137 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000013138 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013139 .voltage = {2700, 3600},
13140 },
13141
13142 {
13143 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013144 .name = "SST25VF016B",
13145 .bustype = BUS_SPI,
13146 .manufacture_id = SST_ID,
13147 .model_id = SST_SST25VF016B,
13148 .total_size = 2048,
13149 .page_size = 256,
13150 .feature_bits = FEATURE_WRSR_EITHER,
13151 .tested = TEST_OK_PREW,
13152 .probe = probe_spi_rdid,
13153 .probe_timing = TIMING_ZERO,
13154 .block_erasers =
13155 {
13156 {
13157 .eraseblocks = { {4 * 1024, 512} },
13158 .block_erase = spi_block_erase_20,
13159 }, {
13160 .eraseblocks = { {32 * 1024, 64} },
13161 .block_erase = spi_block_erase_52,
13162 }, {
13163 .eraseblocks = { {64 * 1024, 32} },
13164 .block_erase = spi_block_erase_d8,
13165 }, {
13166 .eraseblocks = { {2 * 1024 * 1024, 1} },
13167 .block_erase = spi_block_erase_60,
13168 }, {
13169 .eraseblocks = { {2 * 1024 * 1024, 1} },
13170 .block_erase = spi_block_erase_c7,
13171 },
13172 },
13173 .printlock = spi_prettyprint_status_register_sst25vf016,
13174 .unlock = spi_disable_blockprotect,
13175 .write = spi_aai_write,
13176 .read = spi_chip_read,
13177 .voltage = {2700, 3600},
13178 },
13179
13180 {
13181 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013182 .name = "SST25VF020",
13183 .bustype = BUS_SPI,
13184 .manufacture_id = SST_ID,
13185 .model_id = SST_SST25VF020_REMS,
13186 .total_size = 256,
13187 .page_size = 256,
13188 .feature_bits = FEATURE_WRSR_EWSR,
13189 .tested = TEST_UNTESTED,
13190 .probe = probe_spi_rems,
13191 .probe_timing = TIMING_ZERO,
13192 .block_erasers =
13193 {
13194 {
13195 .eraseblocks = { {4 * 1024, 64} },
13196 .block_erase = spi_block_erase_20,
13197 }, {
13198 .eraseblocks = { {32 * 1024, 8} },
13199 .block_erase = spi_block_erase_52,
13200 }, {
13201 .eraseblocks = { {256 * 1024, 1} },
13202 .block_erase = spi_block_erase_60,
13203 },
13204 },
13205 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13206 .unlock = spi_disable_blockprotect,
13207 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13208 .read = spi_chip_read, /* only */
13209 .voltage = {2700, 3600},
13210 },
13211
13212 {
13213 .vendor = "SST",
13214 .name = "SST25VF020B",
13215 .bustype = BUS_SPI,
13216 .manufacture_id = SST_ID,
13217 .model_id = SST_SST25VF020B,
13218 .total_size = 256,
13219 .page_size = 256,
13220 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013221 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000013222 .probe = probe_spi_rdid,
13223 .probe_timing = TIMING_ZERO,
13224 .block_erasers =
13225 {
13226 {
13227 .eraseblocks = { {4 * 1024, 64} },
13228 .block_erase = spi_block_erase_20,
13229 }, {
13230 .eraseblocks = { {32 * 1024, 8} },
13231 .block_erase = spi_block_erase_52,
13232 }, {
13233 .eraseblocks = { {64 * 1024, 4} },
13234 .block_erase = spi_block_erase_d8,
13235 }, {
13236 .eraseblocks = { {256 * 1024, 1} },
13237 .block_erase = spi_block_erase_60,
13238 }, {
13239 .eraseblocks = { {256 * 1024, 1} },
13240 .block_erase = spi_block_erase_c7,
13241 },
13242 },
13243 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
13244 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
13245 .write = spi_aai_write, /* AAI supported (0xAD) */
13246 .read = spi_chip_read, /* Fast read (0x0B) supported */
13247 .voltage = {2700, 3600},
13248 },
13249
13250 {
13251 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013252 .name = "SST25VF032B",
13253 .bustype = BUS_SPI,
13254 .manufacture_id = SST_ID,
13255 .model_id = SST_SST25VF032B,
13256 .total_size = 4096,
13257 .page_size = 256,
13258 .feature_bits = FEATURE_WRSR_EWSR,
13259 .tested = TEST_OK_PREW,
13260 .probe = probe_spi_rdid,
13261 .probe_timing = TIMING_ZERO,
13262 .block_erasers =
13263 {
13264 {
13265 .eraseblocks = { {4 * 1024, 1024} },
13266 .block_erase = spi_block_erase_20,
13267 }, {
13268 .eraseblocks = { {32 * 1024, 128} },
13269 .block_erase = spi_block_erase_52,
13270 }, {
13271 .eraseblocks = { {64 * 1024, 64} },
13272 .block_erase = spi_block_erase_d8,
13273 }, {
13274 .eraseblocks = { {4 * 1024 * 1024, 1} },
13275 .block_erase = spi_block_erase_60,
13276 }, {
13277 .eraseblocks = { {4 * 1024 * 1024, 1} },
13278 .block_erase = spi_block_erase_c7,
13279 },
13280 },
13281 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13282 .unlock = spi_disable_blockprotect,
13283 .write = spi_aai_write,
13284 .read = spi_chip_read,
13285 .voltage = {2700, 3600},
13286 },
13287
13288 {
13289 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013290 .name = "SST25VF040",
13291 .bustype = BUS_SPI,
13292 .manufacture_id = SST_ID,
13293 .model_id = SST_SST25VF040_REMS,
13294 .total_size = 512,
13295 .page_size = 256,
13296 .feature_bits = FEATURE_WRSR_EWSR,
13297 .tested = TEST_OK_PR,
13298 .probe = probe_spi_rems,
13299 .probe_timing = TIMING_ZERO,
13300 .block_erasers =
13301 {
13302 {
13303 .eraseblocks = { {4 * 1024, 128} },
13304 .block_erase = spi_block_erase_20,
13305 }, {
13306 .eraseblocks = { {32 * 1024, 16} },
13307 .block_erase = spi_block_erase_52,
13308 }, {
13309 .eraseblocks = { {512 * 1024, 1} },
13310 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000013311 },
13312 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013313 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000013314 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000013315 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13316 .read = spi_chip_read,
13317 .voltage = {2700, 3600},
13318 },
13319
13320 {
13321 .vendor = "SST",
13322 .name = "SST25VF040B",
13323 .bustype = BUS_SPI,
13324 .manufacture_id = SST_ID,
13325 .model_id = SST_SST25VF040B,
13326 .total_size = 512,
13327 .page_size = 256,
13328 .feature_bits = FEATURE_WRSR_EWSR,
13329 .tested = TEST_OK_PREW,
13330 .probe = probe_spi_rdid,
13331 .probe_timing = TIMING_ZERO,
13332 .block_erasers =
13333 {
13334 {
13335 .eraseblocks = { {4 * 1024, 128} },
13336 .block_erase = spi_block_erase_20,
13337 }, {
13338 .eraseblocks = { {32 * 1024, 16} },
13339 .block_erase = spi_block_erase_52,
13340 }, {
13341 .eraseblocks = { {64 * 1024, 8} },
13342 .block_erase = spi_block_erase_d8,
13343 }, {
13344 .eraseblocks = { {512 * 1024, 1} },
13345 .block_erase = spi_block_erase_60,
13346 }, {
13347 .eraseblocks = { {512 * 1024, 1} },
13348 .block_erase = spi_block_erase_c7,
13349 },
13350 },
13351 .printlock = spi_prettyprint_status_register_sst25vf040b,
13352 .unlock = spi_disable_blockprotect,
13353 .write = spi_aai_write, /* AAI supported (0xAD) */
13354 .read = spi_chip_read, /* Fast read (0x0B) supported */
13355 .voltage = {2700, 3600},
13356 },
13357
13358 {
13359 .vendor = "SST",
13360 .name = "SST25VF040B.REMS",
13361 .bustype = BUS_SPI,
13362 .manufacture_id = SST_ID,
13363 .model_id = SST_SST25VF040B_REMS,
13364 .total_size = 512,
13365 .page_size = 256,
13366 .feature_bits = FEATURE_WRSR_EWSR,
13367 .tested = TEST_OK_PREW,
13368 .probe = probe_spi_rems,
13369 .probe_timing = TIMING_ZERO,
13370 .block_erasers =
13371 {
13372 {
13373 .eraseblocks = { {4 * 1024, 128} },
13374 .block_erase = spi_block_erase_20,
13375 }, {
13376 .eraseblocks = { {32 * 1024, 16} },
13377 .block_erase = spi_block_erase_52,
13378 }, {
13379 .eraseblocks = { {64 * 1024, 8} },
13380 .block_erase = spi_block_erase_d8,
13381 }, {
13382 .eraseblocks = { {512 * 1024, 1} },
13383 .block_erase = spi_block_erase_60,
13384 }, {
13385 .eraseblocks = { {512 * 1024, 1} },
13386 .block_erase = spi_block_erase_c7,
13387 },
13388 },
13389 .printlock = spi_prettyprint_status_register_sst25vf040b,
13390 .unlock = spi_disable_blockprotect,
13391 .write = spi_aai_write,
13392 .read = spi_chip_read,
13393 .voltage = {2700, 3600},
13394 },
13395
13396 {
13397 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013398 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000013399 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013400 .manufacture_id = SST_ID,
13401 .model_id = SST_SST25VF064C,
13402 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013403 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013404 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013405 .tested = TEST_OK_PREW,
13406 .probe = probe_spi_rdid,
13407 .probe_timing = TIMING_ZERO,
13408 .block_erasers =
13409 {
13410 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013411 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013412 .block_erase = spi_block_erase_20,
13413 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013414 .eraseblocks = { {32 * 1024, 256} },
13415 .block_erase = spi_block_erase_52,
13416 }, {
13417 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013418 .block_erase = spi_block_erase_d8,
13419 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013420 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013421 .block_erase = spi_block_erase_60,
13422 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013423 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013424 .block_erase = spi_block_erase_c7,
13425 },
13426 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013427 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13428 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013429 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013430 .read = spi_chip_read,
13431 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000013432 },
13433
13434 {
13435 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013436 .name = "SST25VF080B",
13437 .bustype = BUS_SPI,
13438 .manufacture_id = SST_ID,
13439 .model_id = SST_SST25VF080B,
13440 .total_size = 1024,
13441 .page_size = 256,
13442 .feature_bits = FEATURE_WRSR_EWSR,
13443 .tested = TEST_OK_PREW,
13444 .probe = probe_spi_rdid,
13445 .probe_timing = TIMING_ZERO,
13446 .block_erasers =
13447 {
13448 {
13449 .eraseblocks = { {4 * 1024, 256} },
13450 .block_erase = spi_block_erase_20,
13451 }, {
13452 .eraseblocks = { {32 * 1024, 32} },
13453 .block_erase = spi_block_erase_52,
13454 }, {
13455 .eraseblocks = { {64 * 1024, 16} },
13456 .block_erase = spi_block_erase_d8,
13457 }, {
13458 .eraseblocks = { {1024 * 1024, 1} },
13459 .block_erase = spi_block_erase_60,
13460 }, {
13461 .eraseblocks = { {1024 * 1024, 1} },
13462 .block_erase = spi_block_erase_c7,
13463 },
13464 },
13465 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13466 .unlock = spi_disable_blockprotect,
13467 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000013468 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013469 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000013470 },
13471
13472 {
13473 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013474 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013475 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013476 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013477 .model_id = SST_SST25VF512_REMS,
13478 .total_size = 64,
13479 .page_size = 256,
13480 .feature_bits = FEATURE_WRSR_EWSR,
13481 .tested = TEST_OK_PREW,
13482 .probe = probe_spi_rems,
13483 .probe_timing = TIMING_ZERO,
13484 .block_erasers =
13485 {
13486 {
13487 .eraseblocks = { {4 * 1024, 16} },
13488 .block_erase = spi_block_erase_20,
13489 }, {
13490 .eraseblocks = { {32 * 1024, 2} },
13491 .block_erase = spi_block_erase_52,
13492 }, {
13493 .eraseblocks = { {32 * 1024, 2} },
13494 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
13495 }, {
13496 .eraseblocks = { {64 * 1024, 1} },
13497 .block_erase = spi_block_erase_60,
13498 }, {
13499 .eraseblocks = { {64 * 1024, 1} },
13500 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
13501 },
13502 },
13503 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13504 .unlock = spi_disable_blockprotect,
13505 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13506 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
13507 .voltage = {2700, 3600},
13508 },
13509
13510 {
13511 .vendor = "SST",
13512 .name = "SST25WF010",
13513 .bustype = BUS_SPI,
13514 .manufacture_id = SST_ID,
13515 .model_id = SST_SST25WF010,
13516 .total_size = 128,
13517 .page_size = 256,
13518 .feature_bits = FEATURE_WRSR_EITHER,
13519 .tested = TEST_UNTESTED,
13520 .probe = probe_spi_rdid,
13521 .probe_timing = TIMING_ZERO,
13522 .block_erasers =
13523 {
13524 {
13525 .eraseblocks = { {4 * 1024, 32} },
13526 .block_erase = spi_block_erase_20,
13527 }, {
13528 .eraseblocks = { {32 * 1024, 4} },
13529 .block_erase = spi_block_erase_52,
13530 }, {
13531 .eraseblocks = { {1024 * 128, 1} },
13532 .block_erase = spi_block_erase_60,
13533 }, {
13534 .eraseblocks = { {1024 * 128, 1} },
13535 .block_erase = spi_block_erase_c7,
13536 },
13537 },
13538 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13539 .unlock = spi_disable_blockprotect_bp2_srwd,
13540 .write = spi_aai_write,
13541 .read = spi_chip_read, /* Fast read (0x0B) supported */
13542 .voltage = {1650, 1950},
13543 },
13544
13545 {
13546 .vendor = "SST",
13547 .name = "SST25WF020",
13548 .bustype = BUS_SPI,
13549 .manufacture_id = SST_ID,
13550 .model_id = SST_SST25WF020,
13551 .total_size = 256,
13552 .page_size = 256,
13553 .feature_bits = FEATURE_WRSR_EITHER,
13554 .tested = TEST_UNTESTED,
13555 .probe = probe_spi_rdid,
13556 .probe_timing = TIMING_ZERO,
13557 .block_erasers =
13558 {
13559 {
13560 .eraseblocks = { {4 * 1024, 64} },
13561 .block_erase = spi_block_erase_20,
13562 }, {
13563 .eraseblocks = { {32 * 1024, 8} },
13564 .block_erase = spi_block_erase_52,
13565 }, {
13566 .eraseblocks = { {64 * 1024, 4} },
13567 .block_erase = spi_block_erase_d8,
13568 }, {
13569 .eraseblocks = { {1024 * 256, 1} },
13570 .block_erase = spi_block_erase_60,
13571 }, {
13572 .eraseblocks = { {1024 * 256, 1} },
13573 .block_erase = spi_block_erase_c7,
13574 },
13575 },
13576 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13577 .unlock = spi_disable_blockprotect_bp2_srwd,
13578 .write = spi_aai_write,
13579 .read = spi_chip_read, /* Fast read (0x0B) supported */
13580 .voltage = {1650, 1950},
13581 },
13582
13583 {
13584 .vendor = "SST",
13585 .name = "SST25WF020A",
13586 .bustype = BUS_SPI,
13587 .manufacture_id = SANYO_ID, /* See flashchips.h */
13588 .model_id = SST_SST25WF020A,
13589 .total_size = 256,
13590 .page_size = 256,
13591 .feature_bits = FEATURE_WRSR_WREN,
13592 .tested = TEST_UNTESTED,
13593 .probe = probe_spi_rdid,
13594 .probe_timing = TIMING_ZERO,
13595 .block_erasers =
13596 {
13597 {
13598 .eraseblocks = { {4 * 1024, 64} },
13599 .block_erase = spi_block_erase_20,
13600 }, {
13601 .eraseblocks = { {64 * 1024, 4} },
13602 .block_erase = spi_block_erase_d8,
13603 }, {
13604 .eraseblocks = { {256 * 1024, 1} },
13605 .block_erase = spi_block_erase_60,
13606 }, {
13607 .eraseblocks = { {256 * 1024, 1} },
13608 .block_erase = spi_block_erase_c7,
13609 },
13610 },
13611 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13612 .unlock = spi_disable_blockprotect_bp2_srwd,
13613 .write = spi_chip_write_256,
13614 .read = spi_chip_read, /* Fast read (0x0B) supported */
13615 .voltage = {1650, 1950},
13616 },
13617
13618 {
13619 .vendor = "SST",
13620 .name = "SST25WF040",
13621 .bustype = BUS_SPI,
13622 .manufacture_id = SST_ID,
13623 .model_id = SST_SST25WF040,
13624 .total_size = 512,
13625 .page_size = 256,
13626 .feature_bits = FEATURE_WRSR_EITHER,
13627 .tested = TEST_UNTESTED,
13628 .probe = probe_spi_rdid,
13629 .probe_timing = TIMING_ZERO,
13630 .block_erasers =
13631 {
13632 {
13633 .eraseblocks = { {4 * 1024, 128} },
13634 .block_erase = spi_block_erase_20,
13635 }, {
13636 .eraseblocks = { {32 * 1024, 16} },
13637 .block_erase = spi_block_erase_52,
13638 }, {
13639 .eraseblocks = { {64 * 1024, 8} },
13640 .block_erase = spi_block_erase_d8,
13641 }, {
13642 .eraseblocks = { {1024 * 512, 1} },
13643 .block_erase = spi_block_erase_60,
13644 }, {
13645 .eraseblocks = { {1024 * 512, 1} },
13646 .block_erase = spi_block_erase_c7,
13647 },
13648 },
13649 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13650 .unlock = spi_disable_blockprotect_bp2_srwd,
13651 .write = spi_aai_write,
13652 .read = spi_chip_read, /* Fast read (0x0B) supported */
13653 .voltage = {1650, 1950},
13654 },
13655
13656 {
13657 .vendor = "SST",
13658 .name = "SST25WF040B",
13659 .bustype = BUS_SPI,
13660 .manufacture_id = SANYO_ID, /* See flashchips.h */
13661 .model_id = SST_SST25WF040B,
13662 .total_size = 512,
13663 .page_size = 256,
13664 .feature_bits = FEATURE_WRSR_WREN,
13665 .tested = TEST_UNTESTED,
13666 .probe = probe_spi_rdid,
13667 .probe_timing = TIMING_ZERO,
13668 .block_erasers =
13669 {
13670 {
13671 .eraseblocks = { {4 * 1024, 128} },
13672 .block_erase = spi_block_erase_20,
13673 }, {
13674 .eraseblocks = { {64 * 1024, 8} },
13675 .block_erase = spi_block_erase_d8,
13676 }, {
13677 .eraseblocks = { {512 * 1024, 1} },
13678 .block_erase = spi_block_erase_60,
13679 }, {
13680 .eraseblocks = { {512 * 1024, 1} },
13681 .block_erase = spi_block_erase_c7,
13682 },
13683 },
13684 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13685 .unlock = spi_disable_blockprotect_bp2_srwd,
13686 .write = spi_chip_write_256,
13687 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13688 .voltage = {1650, 1950},
13689 },
13690
13691 {
13692 .vendor = "SST",
13693 .name = "SST25WF080",
13694 .bustype = BUS_SPI,
13695 .manufacture_id = SST_ID,
13696 .model_id = SST_SST25WF080,
13697 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013698 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013699 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000013700 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013701 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013702 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013703 .block_erasers =
13704 {
13705 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013706 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013707 .block_erase = spi_block_erase_20,
13708 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013709 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013710 .block_erase = spi_block_erase_52,
13711 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013712 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013713 .block_erase = spi_block_erase_d8,
13714 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013715 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013716 .block_erase = spi_block_erase_60,
13717 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013718 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013719 .block_erase = spi_block_erase_c7,
13720 },
13721 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013722 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
13723 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000013724 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013725 .read = spi_chip_read, /* Fast read (0x0B) supported */
13726 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000013727 },
13728
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013729 {
13730 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013731 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013732 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013733 .manufacture_id = SANYO_ID, /* See flashchips.h */
13734 .model_id = SST_SST25WF080B,
13735 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013736 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013737 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000013738 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013739 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013740 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013741 .block_erasers =
13742 {
13743 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013744 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013745 .block_erase = spi_block_erase_20,
13746 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013747 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013748 .block_erase = spi_block_erase_d8,
13749 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013750 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013751 .block_erase = spi_block_erase_60,
13752 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013753 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013754 .block_erase = spi_block_erase_c7,
13755 },
13756 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013757 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13758 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000013759 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013760 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13761 .voltage = {1650, 1950},
13762 },
13763
13764 {
13765 .vendor = "SST",
13766 .name = "SST25WF512",
13767 .bustype = BUS_SPI,
13768 .manufacture_id = SST_ID,
13769 .model_id = SST_SST25WF512,
13770 .total_size = 64,
13771 .page_size = 256,
13772 .feature_bits = FEATURE_WRSR_EITHER,
13773 .tested = TEST_UNTESTED,
13774 .probe = probe_spi_rdid,
13775 .probe_timing = TIMING_ZERO,
13776 .block_erasers =
13777 {
13778 {
13779 .eraseblocks = { {4 * 1024, 16} },
13780 .block_erase = spi_block_erase_20,
13781 }, {
13782 .eraseblocks = { {32 * 1024, 2} },
13783 .block_erase = spi_block_erase_52,
13784 }, {
13785 .eraseblocks = { {1024 * 64, 1} },
13786 .block_erase = spi_block_erase_60,
13787 }, {
13788 .eraseblocks = { {1024 * 64, 1} },
13789 .block_erase = spi_block_erase_c7,
13790 },
13791 },
13792 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13793 .unlock = spi_disable_blockprotect_bp2_srwd,
13794 .write = spi_aai_write,
13795 .read = spi_chip_read, /* Fast read (0x0B) supported */
13796 .voltage = {1650, 1950},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013797 },
13798
13799 {
13800 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070013801 .name = "SST26VF016B(A)",
13802 .bustype = BUS_SPI,
13803 .manufacture_id = SST_ID,
13804 .model_id = SST_SST26VF016B,
13805 .total_size = 2048,
13806 .page_size = 256,
13807 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13808 .tested = TEST_OK_PREW,
13809 .probe = probe_spi_rdid,
13810 .probe_timing = TIMING_ZERO,
13811 .block_erasers =
13812 {
13813 {
13814 .eraseblocks = { {4 * 1024, 512} },
13815 .block_erase = spi_block_erase_20,
13816 }, {
13817 .eraseblocks = {
13818 {8 * 1024, 4},
13819 {32 * 1024, 1},
13820 {64 * 1024, 30},
13821 {32 * 1024, 1},
13822 {8 * 1024, 4},
13823 },
13824 .block_erase = spi_block_erase_d8,
13825 }, {
13826 .eraseblocks = { {2 * 1024 * 1024, 1} },
13827 .block_erase = spi_block_erase_c7,
13828 },
13829 },
13830 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13831 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13832 .write = spi_chip_write_256, /* Multi I/O supported */
13833 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13834 .voltage = {2700, 3600},
13835 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100013836
Wei Hu25584de2018-04-30 14:02:08 -070013837 {
13838 .vendor = "SST",
13839 .name = "SST26VF032B(A)",
13840 .bustype = BUS_SPI,
13841 .manufacture_id = SST_ID,
13842 .model_id = SST_SST26VF032B,
13843 .total_size = 4096,
13844 .page_size = 256,
13845 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13846 .tested = TEST_UNTESTED,
13847 .probe = probe_spi_rdid,
13848 .probe_timing = TIMING_ZERO,
13849 .block_erasers =
13850 {
13851 {
13852 .eraseblocks = { {4 * 1024, 1024} },
13853 .block_erase = spi_block_erase_20,
13854 }, {
13855 .eraseblocks = {
13856 {8 * 1024, 4},
13857 {32 * 1024, 1},
13858 {64 * 1024, 62},
13859 {32 * 1024, 1},
13860 {8 * 1024, 4},
13861 },
13862 .block_erase = spi_block_erase_d8,
13863 }, {
13864 .eraseblocks = { {4 * 1024 * 1024, 1} },
13865 .block_erase = spi_block_erase_c7,
13866 },
13867 },
13868 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13869 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13870 .write = spi_chip_write_256, /* Multi I/O supported */
13871 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13872 .voltage = {2700, 3600},
13873 },
13874
Wei Hu25584de2018-04-30 14:02:08 -070013875 {
13876 .vendor = "SST",
13877 .name = "SST26VF064B(A)",
13878 .bustype = BUS_SPI,
13879 .manufacture_id = SST_ID,
13880 .model_id = SST_SST26VF064B,
13881 .total_size = 8192,
13882 .page_size = 256,
13883 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13884 .tested = TEST_OK_PREW,
13885 .probe = probe_spi_rdid,
13886 .probe_timing = TIMING_ZERO,
13887 .block_erasers =
13888 {
13889 {
13890 .eraseblocks = { {4 * 1024, 2048} },
13891 .block_erase = spi_block_erase_20,
13892 }, {
13893 .eraseblocks = {
13894 {8 * 1024, 4},
13895 {32 * 1024, 1},
13896 {64 * 1024, 126},
13897 {32 * 1024, 1},
13898 {8 * 1024, 4},
13899 },
13900 .block_erase = spi_block_erase_d8,
13901 }, {
13902 .eraseblocks = { {8 * 1024 * 1024, 1} },
13903 .block_erase = spi_block_erase_c7,
13904 },
13905 },
13906 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13907 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13908 .write = spi_chip_write_256, /* Multi I/O supported */
13909 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13910 .voltage = {2700, 3600},
13911 },
13912
13913 {
13914 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013915 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013916 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013917 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013918 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013919 .total_size = 512,
13920 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000013921 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013922 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013923 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013924 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013925 .block_erasers =
13926 {
13927 {
13928 .eraseblocks = { {128, 4096} },
13929 .block_erase = erase_sector_28sf040,
13930 }, {
13931 .eraseblocks = { {512 * 1024, 1} },
13932 .block_erase = erase_chip_28sf040,
13933 }
13934 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013935 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013936 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013937 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013938 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013939 },
13940
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013941 {
13942 .vendor = "SST",
13943 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013944 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013945 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013946 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013947 .total_size = 128,
13948 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013949 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013950 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013951 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013952 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013953 .block_erasers =
13954 {
13955 {
13956 .eraseblocks = { {128 * 1024, 1} },
13957 .block_erase = erase_chip_block_jedec,
13958 }
13959 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013960 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013961 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013962 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013963 },
13964
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013965 {
13966 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013967 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013968 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013969 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013970 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013971 .total_size = 256,
13972 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013973 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013974 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013975 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013976 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013977 .block_erasers =
13978 {
13979 {
13980 .eraseblocks = { {256 * 1024, 1} },
13981 .block_erase = erase_chip_block_jedec,
13982 }
13983 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013984 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013985 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013986 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013987 },
13988
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013989 {
13990 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013991 .name = "SST29LE010",
13992 .bustype = BUS_PARALLEL,
13993 .manufacture_id = SST_ID,
13994 .model_id = SST_SST29LE010,
13995 .total_size = 128,
13996 .page_size = 128,
13997 .feature_bits = FEATURE_LONG_RESET,
13998 .tested = TEST_UNTESTED,
13999 .probe = probe_jedec,
14000 .probe_timing = 10,
14001 .block_erasers =
14002 {
14003 {
14004 .eraseblocks = { {128 * 1024, 1} },
14005 .block_erase = erase_chip_block_jedec,
14006 }
14007 },
14008 .write = write_jedec,
14009 .read = read_memmapped,
14010 .voltage = {3000, 3600},
14011 },
14012
14013 {
14014 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014015 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014016 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014017 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014018 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014019 .total_size = 256,
14020 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014021 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014022 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014023 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014024 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014025 .block_erasers =
14026 {
14027 {
14028 .eraseblocks = { {256 * 1024, 1} },
14029 .block_erase = erase_chip_block_jedec,
14030 }
14031 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014032 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014033 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014034 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014035 },
14036
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014037 {
14038 .vendor = "SST",
14039 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014040 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014041 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014042 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014043 .total_size = 128,
14044 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014045 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014046 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014047 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014048 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014049 .block_erasers =
14050 {
14051 {
14052 .eraseblocks = { {4 * 1024, 32} },
14053 .block_erase = erase_sector_jedec,
14054 }, {
14055 .eraseblocks = { {128 * 1024, 1} },
14056 .block_erase = erase_chip_block_jedec,
14057 }
14058 },
Sean Nelson35727f72010-01-28 23:55:12 +000014059 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014060 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014061 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014062 },
14063
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014064 {
14065 .vendor = "SST",
14066 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014067 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014068 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014069 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014070 .total_size = 256,
14071 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014072 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000014073 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014074 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014075 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014076 .block_erasers =
14077 {
14078 {
14079 .eraseblocks = { {4 * 1024, 64} },
14080 .block_erase = erase_sector_jedec,
14081 }, {
14082 .eraseblocks = { {256 * 1024, 1} },
14083 .block_erase = erase_chip_block_jedec,
14084 }
14085 },
Sean Nelson35727f72010-01-28 23:55:12 +000014086 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014087 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014088 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014089 },
14090
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014091 {
14092 .vendor = "SST",
14093 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014094 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014095 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014096 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014097 .total_size = 512,
14098 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014099 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000014100 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014101 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014102 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014103 .block_erasers =
14104 {
14105 {
14106 .eraseblocks = { {4 * 1024, 128} },
14107 .block_erase = erase_sector_jedec,
14108 }, {
14109 .eraseblocks = { {512 * 1024, 1} },
14110 .block_erase = erase_chip_block_jedec,
14111 }
14112 },
Sean Nelson35727f72010-01-28 23:55:12 +000014113 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014114 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014115 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014116 },
14117
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014118 {
14119 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014120 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014121 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014122 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014123 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014124 .total_size = 64,
14125 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014126 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000014127 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014128 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014129 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014130 .block_erasers =
14131 {
14132 {
14133 .eraseblocks = { {4 * 1024, 16} },
14134 .block_erase = erase_sector_jedec,
14135 }, {
14136 .eraseblocks = { {64 * 1024, 1} },
14137 .block_erase = erase_chip_block_jedec,
14138 }
14139 },
Sean Nelson35727f72010-01-28 23:55:12 +000014140 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014141 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014142 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014143 },
14144
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014145 {
14146 .vendor = "SST",
14147 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014148 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014149 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014150 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014151 .total_size = 128,
14152 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014153 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000014154 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014155 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014156 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014157 .block_erasers =
14158 {
14159 {
14160 .eraseblocks = { {4 * 1024, 32} },
14161 .block_erase = erase_sector_jedec,
14162 }, {
14163 .eraseblocks = { {128 * 1024, 1} },
14164 .block_erase = erase_chip_block_jedec,
14165 }
14166 },
Sean Nelson35727f72010-01-28 23:55:12 +000014167 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014168 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014169 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014170 },
14171
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014172 {
14173 .vendor = "SST",
14174 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014175 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014176 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014177 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014178 .total_size = 256,
14179 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014180 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000014181 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014182 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014183 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014184 .block_erasers =
14185 {
14186 {
14187 .eraseblocks = { {4 * 1024, 64} },
14188 .block_erase = erase_sector_jedec,
14189 }, {
14190 .eraseblocks = { {256 * 1024, 1} },
14191 .block_erase = erase_chip_block_jedec,
14192 }
14193 },
Sean Nelson35727f72010-01-28 23:55:12 +000014194 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014195 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014196 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014197 },
14198
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014199 {
14200 .vendor = "SST",
14201 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014202 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014203 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014204 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014205 .total_size = 512,
14206 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014207 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014208 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014209 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014210 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014211 .block_erasers =
14212 {
14213 {
14214 .eraseblocks = { {4 * 1024, 128} },
14215 .block_erase = erase_sector_jedec,
14216 }, {
14217 .eraseblocks = { {512 * 1024, 1} },
14218 .block_erase = erase_chip_block_jedec,
14219 }
14220 },
Sean Nelson35727f72010-01-28 23:55:12 +000014221 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014222 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014223 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000014224 },
FENG yu ningff692fb2008-12-08 18:15:10 +000014225
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014226 {
14227 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000014228 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014229 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014230 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014231 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000014232 .total_size = 1024,
14233 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014234 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000014235 .tested = TEST_UNTESTED,
14236 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014237 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014238 .block_erasers =
14239 {
14240 {
14241 .eraseblocks = { {4 * 1024, 256} },
14242 .block_erase = erase_sector_jedec,
14243 }, {
14244 .eraseblocks = { {64 * 1024, 16} },
14245 .block_erase = erase_block_jedec,
14246 }, {
14247 .eraseblocks = { {1024 * 1024, 1} },
14248 .block_erase = erase_chip_block_jedec,
14249 }
14250 },
Sean Nelson35727f72010-01-28 23:55:12 +000014251 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014252 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014253 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000014254 },
14255
14256 {
14257 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014258 .name = "SST39VF512",
14259 .bustype = BUS_PARALLEL,
14260 .manufacture_id = SST_ID,
14261 .model_id = SST_SST39VF512,
14262 .total_size = 64,
14263 .page_size = 4096,
14264 .feature_bits = FEATURE_EITHER_RESET,
14265 .tested = TEST_OK_PREW,
14266 .probe = probe_jedec,
14267 .probe_timing = 1, /* 150 ns */
14268 .block_erasers =
14269 {
14270 {
14271 .eraseblocks = { {4 * 1024, 16} },
14272 .block_erase = erase_sector_jedec,
14273 }, {
14274 .eraseblocks = { {64 * 1024, 1} },
14275 .block_erase = erase_chip_block_jedec,
14276 }
14277 },
14278 .write = write_jedec_1,
14279 .read = read_memmapped,
14280 .voltage = {2700, 3600},
14281 },
14282
14283 {
14284 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014285 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014286 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014287 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014288 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014289 .total_size = 256,
14290 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014291 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014292 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014293 .probe = probe_jedec,
14294 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014295 .block_erasers =
14296 {
14297 {
14298 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014299 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014300 }, {
14301 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014302 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014303 }, {
14304 .eraseblocks = { {256 * 1024, 1} },
14305 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14306 }
14307 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014308 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014309 .unlock = unlock_sst_fwhub,
14310 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014311 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014312 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014313 },
14314
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014315 {
14316 .vendor = "SST",
14317 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014318 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014319 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014320 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014321 .total_size = 384,
14322 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014323 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000014324 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014325 .probe = probe_jedec,
14326 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014327 .block_erasers =
14328 {
14329 {
14330 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014331 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014332 }, {
14333 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014334 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014335 }, {
14336 .eraseblocks = { {384 * 1024, 1} },
14337 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14338 }
14339 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014340 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014341 .unlock = unlock_sst_fwhub,
14342 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014343 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014344 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014345 },
14346
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014347 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014348 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
14349 * and is only honored for 64k block erase, but not 4k sector erase.
14350 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014351 .vendor = "SST",
14352 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014353 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014354 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014355 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014356 .total_size = 512,
14357 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014358 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014359 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014360 .probe = probe_jedec,
14361 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014362 .block_erasers =
14363 {
14364 {
14365 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014366 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014367 }, {
14368 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014369 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014370 }, {
14371 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000014372 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014373 },
14374 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014375 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014376 .unlock = unlock_sst_fwhub,
14377 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014378 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014379 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014380 },
14381
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014382 {
14383 .vendor = "SST",
14384 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014385 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014386 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014387 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014388 .total_size = 512,
14389 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014390 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014391 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014392 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014393 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014394 .block_erasers =
14395 {
14396 {
14397 .eraseblocks = { {4 * 1024, 128} },
14398 .block_erase = erase_sector_49lfxxxc,
14399 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014400 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014401 {64 * 1024, 7},
14402 {32 * 1024, 1},
14403 {8 * 1024, 2},
14404 {16 * 1024, 1},
14405 },
Sean Nelson69e58112010-03-23 17:10:28 +000014406 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014407 }
14408 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014409 .printlock = printlock_regspace2_block_eraser_1,
14410 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014411 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014412 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014413 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014414 },
14415
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014416 {
14417 .vendor = "SST",
14418 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014419 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014420 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014421 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014422 .total_size = 1024,
14423 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014424 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014425 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014426 .probe = probe_jedec,
14427 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014428 .block_erasers =
14429 {
14430 {
14431 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014432 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014433 }, {
14434 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014435 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014436 }, {
14437 .eraseblocks = { {1024 * 1024, 1} },
14438 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14439 }
14440 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014441 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014442 .unlock = unlock_sst_fwhub,
14443 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014444 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014445 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014446 },
14447
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014448 {
14449 .vendor = "SST",
14450 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014451 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014452 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014453 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014454 .total_size = 1024,
14455 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014456 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014457 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014458 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014459 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014460 .block_erasers =
14461 {
14462 {
14463 .eraseblocks = { {4 * 1024, 256} },
14464 .block_erase = erase_sector_49lfxxxc,
14465 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014466 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014467 {64 * 1024, 15},
14468 {32 * 1024, 1},
14469 {8 * 1024, 2},
14470 {16 * 1024, 1},
14471 },
Sean Nelson69e58112010-03-23 17:10:28 +000014472 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014473 }
14474 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014475 .printlock = printlock_regspace2_block_eraser_1,
14476 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014477 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014478 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014479 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014480 },
14481
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014482 {
14483 .vendor = "SST",
14484 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014485 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014486 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014487 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014488 .total_size = 2048,
14489 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014490 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014491 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014492 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014493 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014494 .block_erasers =
14495 {
14496 {
14497 .eraseblocks = { {4 * 1024, 512} },
14498 .block_erase = erase_sector_49lfxxxc,
14499 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014500 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014501 {64 * 1024, 31},
14502 {32 * 1024, 1},
14503 {8 * 1024, 2},
14504 {16 * 1024, 1},
14505 },
Sean Nelson69e58112010-03-23 17:10:28 +000014506 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014507 }
14508 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014509 .printlock = printlock_regspace2_block_eraser_1,
14510 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014511 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014512 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014513 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014514 },
14515
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014516 {
14517 .vendor = "SST",
14518 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014519 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014520 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014521 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014522 .total_size = 256,
14523 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014524 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000014525 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014526 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014527 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014528 .block_erasers =
14529 {
14530 {
14531 .eraseblocks = { {4 * 1024, 64} },
14532 .block_erase = erase_sector_jedec,
14533 }, {
14534 .eraseblocks = { {16 * 1024, 16} },
14535 .block_erase = erase_block_jedec,
14536 }, {
14537 .eraseblocks = { {256 * 1024, 1} },
14538 .block_erase = NULL,
14539 }
14540 },
Sean Nelson35727f72010-01-28 23:55:12 +000014541 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014542 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014543 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000014544 },
14545
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014546 {
14547 .vendor = "SST",
14548 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014549 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014550 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014551 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014552 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000014553 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014554 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014555 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014556 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014557 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014558 .block_erasers =
14559 {
14560 {
14561 .eraseblocks = { {4 * 1024, 64} },
14562 .block_erase = erase_sector_jedec,
14563 }, {
14564 .eraseblocks = { {16 * 1024, 16} },
14565 .block_erase = erase_block_jedec,
14566 }, {
14567 .eraseblocks = { {256 * 1024, 1} },
14568 .block_erase = NULL,
14569 }
14570 },
Sean Nelson35727f72010-01-28 23:55:12 +000014571 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014572 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014573 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014574 },
14575
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014576 {
14577 .vendor = "SST",
14578 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014579 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014580 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014581 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014582 .total_size = 512,
14583 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014584 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014585 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014586 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014587 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014588 .block_erasers =
14589 {
14590 {
14591 .eraseblocks = { {4 * 1024, 128} },
14592 .block_erase = erase_sector_jedec,
14593 }, {
14594 .eraseblocks = { {64 * 1024, 8} },
14595 .block_erase = erase_block_jedec,
14596 }, {
14597 .eraseblocks = { {512 * 1024, 1} },
14598 .block_erase = NULL,
14599 }
14600 },
Sean Nelson35727f72010-01-28 23:55:12 +000014601 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014602 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014603 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014604 },
14605
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014606 {
14607 .vendor = "SST",
14608 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014609 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014610 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014611 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014612 .total_size = 512,
14613 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000014614 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014615 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014616 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014617 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014618 .block_erasers =
14619 {
14620 {
14621 .eraseblocks = { {4 * 1024, 128} },
14622 .block_erase = erase_sector_jedec,
14623 }, {
14624 .eraseblocks = { {64 * 1024, 8} },
14625 .block_erase = erase_block_jedec,
14626 }, {
14627 .eraseblocks = { {512 * 1024, 1} },
14628 .block_erase = NULL,
14629 }
14630 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014631 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014632 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014633 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014634 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014635 },
14636
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014637 {
14638 .vendor = "SST",
14639 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014640 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014641 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020014642 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014643 .total_size = 1024,
14644 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014645 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000014646 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014647 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014648 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014649 .block_erasers =
14650 {
14651 {
14652 .eraseblocks = { {4 * 1024, 256} },
14653 .block_erase = erase_sector_jedec,
14654 }, {
14655 .eraseblocks = { {64 * 1024, 16} },
14656 .block_erase = erase_block_jedec,
14657 }, {
14658 .eraseblocks = { {1024 * 1024, 1} },
14659 .block_erase = NULL,
14660 }
14661 },
Sean Nelson35727f72010-01-28 23:55:12 +000014662 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014663 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014664 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014665 },
14666
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014667 {
14668 .vendor = "SST",
14669 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014670 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014671 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014672 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014673 .total_size = 2048,
14674 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014675 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014676 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014677 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014678 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014679 .block_erasers =
14680 {
14681 {
14682 .eraseblocks = { {4 * 1024, 512} },
14683 .block_erase = erase_sector_49lfxxxc,
14684 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014685 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014686 {64 * 1024, 31},
14687 {32 * 1024, 1},
14688 {8 * 1024, 2},
14689 {16 * 1024, 1},
14690 },
Sean Nelson69e58112010-03-23 17:10:28 +000014691 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014692 }
14693 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014694 .printlock = printlock_regspace2_block_eraser_1,
14695 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014696 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014697 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014698 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014699 },
14700
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014701 {
14702 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014703 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014704 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014705 .manufacture_id = ST_ID,
14706 .model_id = ST_M29F002B,
14707 .total_size = 256,
14708 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014709 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014710 .tested = TEST_UNTESTED,
14711 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014712 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014713 .block_erasers =
14714 {
14715 {
14716 .eraseblocks = {
14717 {16 * 1024, 1},
14718 {8 * 1024, 2},
14719 {32 * 1024, 1},
14720 {64 * 1024, 3},
14721 },
14722 .block_erase = erase_sector_jedec,
14723 }, {
14724 .eraseblocks = { {256 * 1024, 1} },
14725 .block_erase = erase_chip_block_jedec,
14726 }
14727 },
Sean Nelson35727f72010-01-28 23:55:12 +000014728 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014729 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014730 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014731 },
14732
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014733 {
14734 .vendor = "ST",
14735 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014736 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014737 .manufacture_id = ST_ID,
14738 .model_id = ST_M29F002T,
14739 .total_size = 256,
14740 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014741 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014742 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014743 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014744 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014745 .block_erasers =
14746 {
14747 {
14748 .eraseblocks = {
14749 {64 * 1024, 3},
14750 {32 * 1024, 1},
14751 {8 * 1024, 2},
14752 {16 * 1024, 1},
14753 },
14754 .block_erase = erase_sector_jedec,
14755 }, {
14756 .eraseblocks = { {256 * 1024, 1} },
14757 .block_erase = erase_chip_block_jedec,
14758 }
14759 },
Sean Nelson35727f72010-01-28 23:55:12 +000014760 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014761 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014762 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014763 },
14764
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014765 {
14766 .vendor = "ST",
14767 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014768 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014769 .manufacture_id = ST_ID,
14770 .model_id = ST_M29F040B,
14771 .total_size = 512,
14772 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014773 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
14774 .tested = TEST_UNTESTED,
14775 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000014776 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000014777 .block_erasers =
14778 {
14779 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014780 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000014781 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014782 }, {
14783 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000014784 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014785 }
14786 },
Sean Nelson35727f72010-01-28 23:55:12 +000014787 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014788 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014789 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014790 },
14791
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014792 {
Sean Nelson35727f72010-01-28 23:55:12 +000014793 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014794 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014795 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014796 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014797 .manufacture_id = ST_ID,
14798 .model_id = ST_M29F400BB,
14799 .total_size = 512,
14800 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014801 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014802 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014803 .probe = probe_jedec,
14804 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014805 .block_erasers =
14806 {
14807 {
14808 .eraseblocks = {
14809 {16 * 1024, 1},
14810 {8 * 1024, 2},
14811 {32 * 1024, 1},
14812 {64 * 1024, 7},
14813 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014814 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014815 }, {
14816 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014817 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014818 }
14819 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014820 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014821 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014822 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014823 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100014824
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014825 {
14826 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
14827 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014828 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014829 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014830 .manufacture_id = ST_ID,
14831 .model_id = ST_M29F400BT,
14832 .total_size = 512,
14833 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014834 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014835 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014836 .probe = probe_jedec,
14837 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000014838 .block_erasers =
14839 {
14840 {
14841 .eraseblocks = {
14842 {64 * 1024, 7},
14843 {32 * 1024, 1},
14844 {8 * 1024, 2},
14845 {16 * 1024, 1},
14846 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014847 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014848 }, {
14849 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014850 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014851 }
14852 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014853 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014854 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014855 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014856 },
14857
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014858 {
14859 .vendor = "ST",
14860 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014861 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014862 .manufacture_id = ST_ID,
14863 .model_id = ST_M29W010B,
14864 .total_size = 128,
14865 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014866 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014867 .tested = TEST_UNTESTED,
14868 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014869 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014870 .block_erasers =
14871 {
14872 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014873 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014874 .block_erase = erase_sector_jedec,
14875 }, {
14876 .eraseblocks = { {128 * 1024, 1} },
14877 .block_erase = erase_chip_block_jedec,
14878 }
14879 },
Sean Nelson35727f72010-01-28 23:55:12 +000014880 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014881 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014882 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014883 },
14884
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014885 {
14886 .vendor = "ST",
14887 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014888 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014889 .manufacture_id = ST_ID,
14890 .model_id = ST_M29W040B,
14891 .total_size = 512,
14892 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014893 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014894 .tested = TEST_UNTESTED,
14895 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014896 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014897 .block_erasers =
14898 {
14899 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014900 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014901 .block_erase = erase_sector_jedec,
14902 }, {
14903 .eraseblocks = { {512 * 1024, 1} },
14904 .block_erase = erase_chip_block_jedec,
14905 }
14906 },
Sean Nelson35727f72010-01-28 23:55:12 +000014907 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014908 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014909 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014910 },
14911
Stefan Taunereb582572012-09-21 12:52:50 +000014912 {
14913 .vendor = "ST",
14914 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014915 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100014916 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000014917 .model_id = ST_M29W512B,
14918 .total_size = 64,
14919 .page_size = 64 * 1024,
14920 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014921 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000014922 .probe = probe_jedec,
14923 .probe_timing = TIMING_ZERO,
14924 .block_erasers =
14925 {
14926 {
14927 .eraseblocks = { {64 * 1024, 1} },
14928 .block_erase = erase_chip_block_jedec,
14929 }
14930 },
14931 .write = write_jedec_1,
14932 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014933 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000014934 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000014935
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014936 {
14937 .vendor = "ST",
14938 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014939 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014940 .manufacture_id = ST_ID,
14941 .model_id = ST_M50FLW040A,
14942 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014943 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014944 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014945 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014946 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014947 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014948 .block_erasers =
14949 {
14950 {
Sean Nelson329bde72010-01-19 16:39:19 +000014951 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014952 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014953 {64 * 1024, 5}, /* block */
14954 {4 * 1024, 16}, /* sector */
14955 {4 * 1024, 16}, /* sector */
14956 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014957 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014958 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014959 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014960 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014961 }
14962 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014963 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100014964 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014965 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014966 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014967 },
14968
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014969 {
14970 .vendor = "ST",
14971 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014972 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014973 .manufacture_id = ST_ID,
14974 .model_id = ST_M50FLW040B,
14975 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014976 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014977 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014978 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014979 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014980 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014981 .block_erasers =
14982 {
14983 {
Sean Nelson329bde72010-01-19 16:39:19 +000014984 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014985 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014986 {4 * 1024, 16}, /* sector */
14987 {64 * 1024, 5}, /* block */
14988 {4 * 1024, 16}, /* sector */
14989 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014990 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014991 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014992 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014993 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014994 }
14995 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014996 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100014997 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014998 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014999 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015000 },
15001
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015002 {
15003 .vendor = "ST",
15004 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015005 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015006 .manufacture_id = ST_ID,
15007 .model_id = ST_M50FLW080A,
15008 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015009 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015010 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015011 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015012 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015013 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015014 .block_erasers =
15015 {
15016 {
Sean Nelson329bde72010-01-19 16:39:19 +000015017 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015018 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015019 {64 * 1024, 13}, /* block */
15020 {4 * 1024, 16}, /* sector */
15021 {4 * 1024, 16}, /* sector */
15022 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015023 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015024 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015025 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015026 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015027 }
15028 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015029 .printlock = printlock_regspace2_block_eraser_0,
15030 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015031 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015032 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015033 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015034 },
15035
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015036 {
15037 .vendor = "ST",
15038 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015039 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015040 .manufacture_id = ST_ID,
15041 .model_id = ST_M50FLW080B,
15042 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015043 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015044 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015045 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015046 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015047 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015048 .block_erasers =
15049 {
15050 {
Sean Nelson329bde72010-01-19 16:39:19 +000015051 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015052 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015053 {4 * 1024, 16}, /* sector */
15054 {64 * 1024, 13}, /* block */
15055 {4 * 1024, 16}, /* sector */
15056 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015057 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015058 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015059 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015060 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015061 }
15062 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015063 .printlock = printlock_regspace2_block_eraser_0,
15064 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015065 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015066 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015067 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015068 },
15069
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015070 {
15071 .vendor = "ST",
15072 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015073 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015074 .manufacture_id = ST_ID,
15075 .model_id = ST_M50FW002,
15076 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000015077 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015078 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015079 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015080 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015081 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015082 .block_erasers =
15083 {
15084 {
15085 .eraseblocks = {
15086 {64 * 1024, 3},
15087 {32 * 1024, 1},
15088 {8 * 1024, 2},
15089 {16 * 1024, 1},
15090 },
Sean Nelson28accc22010-03-19 18:47:06 +000015091 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015092 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000015093 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015094 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000015095 }
15096 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015097 .printlock = printlock_regspace2_block_eraser_0,
15098 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015099 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015100 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015101 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015102 },
15103
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015104 {
15105 .vendor = "ST",
15106 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015107 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015108 .manufacture_id = ST_ID,
15109 .model_id = ST_M50FW016,
15110 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015111 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015112 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015113 .tested = TEST_UNTESTED,
15114 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015115 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015116 .block_erasers =
15117 {
15118 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015119 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000015120 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015121 }
15122 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015123 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015124 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015125 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015126 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015127 },
15128
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015129 {
15130 .vendor = "ST",
15131 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015132 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015133 .manufacture_id = ST_ID,
15134 .model_id = ST_M50FW040,
15135 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015136 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015137 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000015138 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015139 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015140 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015141 .block_erasers =
15142 {
15143 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015144 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015145 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015146 }
15147 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015148 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015149 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015150 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015151 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015152 },
15153
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015154 {
15155 .vendor = "ST",
15156 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015157 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015158 .manufacture_id = ST_ID,
15159 .model_id = ST_M50FW080,
15160 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015161 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015162 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015163 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015164 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015165 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015166 .block_erasers =
15167 {
15168 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015169 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015170 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015171 }
15172 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015173 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015174 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015175 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015176 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015177 },
15178
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015179 {
15180 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015181 .name = "M50LPW080",
15182 .bustype = BUS_LPC, /* A/A Mux */
15183 .manufacture_id = ST_ID,
15184 .model_id = ST_M50LPW080,
15185 .total_size = 1024,
15186 .page_size = 0,
15187 .feature_bits = FEATURE_REGISTERMAP,
15188 .tested = TEST_UNTESTED,
15189 .probe = probe_82802ab,
15190 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15191 .block_erasers =
15192 {
15193 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015194 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015195 .block_erase = erase_block_82802ab,
15196 }
15197 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015198 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015199 .write = write_82802ab,
15200 .read = read_memmapped,
15201 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
15202 },
15203
15204 {
15205 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015206 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015207 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015208 .manufacture_id = ST_ID,
15209 .model_id = ST_M50LPW116,
15210 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015211 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015212 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015213 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015214 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000015215 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015216 .block_erasers =
15217 {
15218 {
15219 .eraseblocks = {
15220 {4 * 1024, 16},
15221 {64 * 1024, 30},
15222 {32 * 1024, 1},
15223 {8 * 1024, 2},
15224 {16 * 1024, 1},
15225 },
Sean Nelson28accc22010-03-19 18:47:06 +000015226 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015227 }
15228 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015229 .printlock = printlock_regspace2_block_eraser_0,
15230 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015231 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015233 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015234 },
15235
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015236 {
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030015237 .vendor = "ST",
15238 .name = "M95M02",
15239 .bustype = BUS_SPI,
15240 .manufacture_id = ST_ID,
15241 .model_id = ST_M95M02,
15242 .total_size = 256,
15243 .page_size = 256,
15244 .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO,
15245 .tested = TEST_OK_PREW,
15246 .probe = probe_spi_st95,
15247 .probe_timing = TIMING_ZERO,
15248 .block_erasers =
15249 {
15250 {
15251 .eraseblocks = { {256 * 1024, 1} },
15252 .block_erase = spi_block_erase_emulation,
15253 }
15254 },
15255
15256 .printlock = spi_prettyprint_status_register_bp1_srwd,
15257 .unlock = spi_disable_blockprotect_bp1_srwd,
15258 .write = spi_chip_write_256,
15259 .read = spi_chip_read,
15260 .voltage = {2500, 5500},
15261 },
15262
15263 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100015264 .vendor = "Sanyo",
15265 .name = "LE25FU106B",
15266 .bustype = BUS_SPI,
15267 .manufacture_id = SANYO_ID,
15268 .model_id = SANYO_LE25FU106B,
15269 .total_size = 128,
15270 .page_size = 256,
15271 .feature_bits = FEATURE_WRSR_WREN,
15272 .tested = TEST_UNTESTED,
15273 .probe = probe_spi_res2,
15274 .probe_timing = TIMING_ZERO,
15275 .block_erasers =
15276 {
15277 /* FIXME: Is this correct?
15278 {
15279 .eraseblocks = { {2 * 1024, 64} },
15280 .block_erase = spi_block_erase_d7,
15281 },*/
15282 {
15283 .eraseblocks = { {32 * 1024, 4} },
15284 .block_erase = spi_block_erase_d8,
15285 }, {
15286 .eraseblocks = { {128 * 1024, 1} },
15287 .block_erase = spi_block_erase_c7,
15288 }
15289 },
15290 .printlock = spi_prettyprint_status_register_bp1_srwd,
15291 .unlock = spi_disable_blockprotect_bp1_srwd,
15292 .write = spi_chip_write_256,
15293 .read = spi_chip_read,
15294 .voltage = {2300, 3600},
15295 },
15296
15297 {
15298 .vendor = "Sanyo",
15299 .name = "LE25FU206",
15300 .bustype = BUS_SPI,
15301 .manufacture_id = SANYO_ID,
15302 .model_id = SANYO_LE25FU206,
15303 .total_size = 256,
15304 .page_size = 256,
15305 .feature_bits = FEATURE_WRSR_WREN,
15306 .tested = TEST_UNTESTED,
15307 .probe = probe_spi_res2,
15308 .probe_timing = TIMING_ZERO,
15309 .block_erasers =
15310 {
15311 {
15312 .eraseblocks = { {4 * 1024, 64} },
15313 .block_erase = spi_block_erase_d7,
15314 }, {
15315 .eraseblocks = { {64 * 1024, 4} },
15316 .block_erase = spi_block_erase_d8,
15317 }, {
15318 .eraseblocks = { {256 * 1024, 1} },
15319 .block_erase = spi_block_erase_c7,
15320 }
15321 },
15322 .printlock = spi_prettyprint_status_register_bp1_srwd,
15323 .unlock = spi_disable_blockprotect_bp1_srwd,
15324 .write = spi_chip_write_256,
15325 .read = spi_chip_read,
15326 .voltage = {2300, 3600},
15327 },
15328
15329 {
15330 .vendor = "Sanyo",
15331 .name = "LE25FU206A",
15332 .bustype = BUS_SPI,
15333 .manufacture_id = SANYO_ID,
15334 .model_id = SANYO_LE25FU206A,
15335 .total_size = 256,
15336 .page_size = 256,
15337 .tested = TEST_UNTESTED,
15338 .probe = probe_spi_rdid,
15339 .probe_timing = TIMING_ZERO,
15340 .block_erasers =
15341 {
15342 {
15343 .eraseblocks = { {4 * 1024, 64} },
15344 .block_erase = spi_block_erase_20,
15345 }, {
15346 .eraseblocks = { {4 * 1024, 64} },
15347 .block_erase = spi_block_erase_d7,
15348 }, {
15349 .eraseblocks = { {64 * 1024, 4} },
15350 .block_erase = spi_block_erase_d8,
15351 }, {
15352 .eraseblocks = { {256 * 1024, 1} },
15353 .block_erase = spi_block_erase_60,
15354 }, {
15355 .eraseblocks = { {256 * 1024, 1} },
15356 .block_erase = spi_block_erase_c7,
15357 }
15358 },
15359 .printlock = spi_prettyprint_status_register_bp2_srwd,
15360 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15361 .write = spi_chip_write_256,
15362 .read = spi_chip_read,
15363 .voltage = {2300, 3600},
15364 },
15365
15366 {
15367 .vendor = "Sanyo",
15368 .name = "LE25FU406B",
15369 .bustype = BUS_SPI,
15370 .manufacture_id = SANYO_ID,
15371 .model_id = SANYO_LE25FU406B,
15372 .total_size = 512,
15373 .page_size = 256,
15374 .feature_bits = FEATURE_WRSR_WREN,
15375 .tested = TEST_OK_PREW,
15376 .probe = probe_spi_res2,
15377 .probe_timing = TIMING_ZERO,
15378 .block_erasers =
15379 {
15380 {
15381 .eraseblocks = { {4 * 1024, 128} },
15382 .block_erase = spi_block_erase_d7,
15383 }, {
15384 .eraseblocks = { {64 * 1024, 8} },
15385 .block_erase = spi_block_erase_d8,
15386 }, {
15387 .eraseblocks = { {512 * 1024, 1} },
15388 .block_erase = spi_block_erase_c7,
15389 }
15390 },
15391 .printlock = spi_prettyprint_status_register_bp2_srwd,
15392 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15393 .write = spi_chip_write_256,
15394 .read = spi_chip_read,
15395 .voltage = {2300, 3600},
15396 },
15397
15398 {
15399 .vendor = "Sanyo",
15400 .name = "LE25FU406C/LE25U40CMC",
15401 .bustype = BUS_SPI,
15402 .manufacture_id = SANYO_ID,
15403 .model_id = SANYO_LE25FU406C,
15404 .total_size = 512,
15405 .page_size = 256,
15406 .feature_bits = FEATURE_WRSR_WREN,
15407 .tested = TEST_OK_PREW,
15408 .probe = probe_spi_rdid,
15409 .probe_timing = TIMING_ZERO,
15410 .block_erasers =
15411 {
15412 {
15413 .eraseblocks = { {4 * 1024, 128} },
15414 .block_erase = spi_block_erase_20,
15415 }, {
15416 .eraseblocks = { {4 * 1024, 128} },
15417 .block_erase = spi_block_erase_d7,
15418 }, {
15419 .eraseblocks = { {64 * 1024, 8} },
15420 .block_erase = spi_block_erase_d8,
15421 }, {
15422 .eraseblocks = { {512 * 1024, 1} },
15423 .block_erase = spi_block_erase_60,
15424 }, {
15425 .eraseblocks = { {512 * 1024, 1} },
15426 .block_erase = spi_block_erase_c7,
15427 }
15428 },
15429 .printlock = spi_prettyprint_status_register_bp2_srwd,
15430 .unlock = spi_disable_blockprotect_bp2_srwd,
15431 .write = spi_chip_write_256,
15432 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
15433 .voltage = {2300, 3600},
15434 },
15435
15436 {
15437 .vendor = "Sanyo",
15438 .name = "LE25FW106",
15439 .bustype = BUS_SPI,
15440 .manufacture_id = SANYO_ID,
15441 .model_id = SANYO_LE25FW106,
15442 .total_size = 128,
15443 .page_size = 256,
15444 .feature_bits = FEATURE_WRSR_WREN,
15445 .tested = TEST_OK_PREW,
15446 .probe = probe_spi_res2,
15447 .probe_timing = TIMING_ZERO,
15448 .block_erasers =
15449 {
15450 {
15451 .eraseblocks = { {2 * 1024, 64} },
15452 .block_erase = spi_block_erase_d7,
15453 }, {
15454 .eraseblocks = { {32 * 1024, 4} },
15455 .block_erase = spi_block_erase_d8,
15456 }, {
15457 .eraseblocks = { {128 * 1024, 1} },
15458 .block_erase = spi_block_erase_c7,
15459 }
15460 },
15461 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
15462 .unlock = spi_disable_blockprotect_bp1_srwd,
15463 .write = spi_chip_write_256,
15464 .read = spi_chip_read,
15465 .voltage = {2700, 3600},
15466 },
15467
15468 {
15469 .vendor = "Sanyo",
15470 .name = "LE25FW203A",
15471 .bustype = BUS_SPI,
15472 .manufacture_id = SANYO_ID,
15473 .model_id = SANYO_LE25FW203A,
15474 .total_size = 256,
15475 .page_size = 256,
15476 .tested = TEST_UNTESTED,
15477 .probe = probe_spi_rdid,
15478 .probe_timing = TIMING_ZERO,
15479 .block_erasers =
15480 {
15481 {
15482 .eraseblocks = { {256, 1024} },
15483 .block_erase = spi_block_erase_db,
15484 }, {
15485 .eraseblocks = { {64 * 1024, 4} },
15486 .block_erase = spi_block_erase_d8,
15487 }, {
15488 .eraseblocks = { {256 * 1024, 1} },
15489 .block_erase = spi_block_erase_c7,
15490 }
15491 },
15492 .printlock = spi_prettyprint_status_register_default_welwip,
15493 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15494 .write = spi_chip_write_256,
15495 .read = spi_chip_read,
15496 .voltage = {2700, 3600},
15497 },
15498
15499 {
15500 .vendor = "Sanyo",
15501 .name = "LE25FW403A",
15502 .bustype = BUS_SPI,
15503 .manufacture_id = SANYO_ID,
15504 .model_id = SANYO_LE25FW403A,
15505 .total_size = 512,
15506 .page_size = 256,
15507 .tested = TEST_UNTESTED,
15508 .probe = probe_spi_rdid,
15509 .probe_timing = TIMING_ZERO,
15510 .block_erasers =
15511 {
15512 {
15513 .eraseblocks = { {256, 2 * 1024} },
15514 .block_erase = spi_block_erase_db,
15515 }, {
15516 .eraseblocks = { {64 * 1024, 8} },
15517 .block_erase = spi_block_erase_d8,
15518 }, {
15519 .eraseblocks = { {512 * 1024, 1} },
15520 .block_erase = spi_block_erase_c7,
15521 }
15522 },
15523 .printlock = spi_prettyprint_status_register_default_welwip,
15524 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15525 .write = spi_chip_write_256,
15526 .read = spi_chip_read,
15527 .voltage = {2700, 3600},
15528 },
15529
15530 {
15531 .vendor = "Sanyo",
15532 .name = "LE25FW406A",
15533 .bustype = BUS_SPI,
15534 .manufacture_id = SANYO_ID,
15535 .model_id = SANYO_LE25FW406A,
15536 .total_size = 512,
15537 .page_size = 256,
15538 .feature_bits = FEATURE_WRSR_WREN,
15539 .tested = TEST_OK_PREW,
15540 .probe = probe_spi_res2,
15541 .probe_timing = TIMING_ZERO,
15542 .block_erasers =
15543 {
15544 {
15545 .eraseblocks = { {4 * 1024, 128} },
15546 .block_erase = spi_block_erase_d7,
15547 }, {
15548 .eraseblocks = { {64 * 1024, 8} },
15549 .block_erase = spi_block_erase_d8,
15550 }, {
15551 .eraseblocks = { {512 * 1024, 1} },
15552 .block_erase = spi_block_erase_c7,
15553 }
15554 },
15555 .printlock = spi_prettyprint_status_register_plain,
15556 .unlock = spi_disable_blockprotect,
15557 .write = spi_chip_write_256,
15558 .read = spi_chip_read,
15559 .voltage = {2700, 3600},
15560 },
15561
15562 {
15563 .vendor = "Sanyo",
15564 .name = "LE25FW418A",
15565 .bustype = BUS_SPI,
15566 .manufacture_id = SANYO_ID,
15567 .model_id = SANYO_LE25FW418A,
15568 .total_size = 512,
15569 .page_size = 256,
15570 .feature_bits = FEATURE_WRSR_WREN,
15571 .tested = TEST_UNTESTED,
15572 .probe = probe_spi_res2,
15573 .probe_timing = TIMING_ZERO,
15574 .block_erasers =
15575 {
15576 {
15577 .eraseblocks = { {4 * 1024, 128} },
15578 .block_erase = spi_block_erase_d7,
15579 }, {
15580 .eraseblocks = { {64 * 1024, 8} },
15581 .block_erase = spi_block_erase_d8,
15582 }, {
15583 .eraseblocks = { {512 * 1024, 1} },
15584 .block_erase = spi_block_erase_c7,
15585 }
15586 },
15587 .printlock = spi_prettyprint_status_register_bp2_srwd,
15588 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15589 .write = spi_chip_write_256,
15590 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15591 .voltage = {2700, 3600},
15592 },
15593
15594 {
15595 .vendor = "Sanyo",
15596 .name = "LE25FW806",
15597 .bustype = BUS_SPI,
15598 .manufacture_id = SANYO_ID,
15599 .model_id = SANYO_LE25FW806,
15600 .total_size = 1024,
15601 .page_size = 256,
15602 .feature_bits = FEATURE_WRSR_WREN,
15603 .tested = TEST_UNTESTED,
15604 .probe = probe_spi_res2,
15605 .probe_timing = TIMING_ZERO,
15606 .block_erasers =
15607 {
15608 {
15609 .eraseblocks = { {4 * 1024, 256} },
15610 .block_erase = spi_block_erase_20,
15611 }, {
15612 .eraseblocks = { {4 * 1024, 256} },
15613 .block_erase = spi_block_erase_d7,
15614 }, {
15615 .eraseblocks = { {64 * 1024, 16} },
15616 .block_erase = spi_block_erase_d8,
15617 }, {
15618 .eraseblocks = { {1024 * 1024, 1} },
15619 .block_erase = spi_block_erase_c7,
15620 }
15621 },
15622 .printlock = spi_prettyprint_status_register_bp2_srwd,
15623 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15624 .write = spi_chip_write_256,
15625 .read = spi_chip_read,
15626 .voltage = {2700, 3600},
15627 },
15628
15629 {
15630 .vendor = "Sanyo",
15631 .name = "LE25FW808",
15632 .bustype = BUS_SPI,
15633 .manufacture_id = SANYO_ID,
15634 .model_id = SANYO_LE25FW808,
15635 .total_size = 1024,
15636 .page_size = 256,
15637 .feature_bits = FEATURE_WRSR_WREN,
15638 .tested = TEST_UNTESTED,
15639 .probe = probe_spi_res2,
15640 .probe_timing = TIMING_ZERO,
15641 .block_erasers =
15642 {
15643 {
15644 .eraseblocks = { {8 * 1024, 128} },
15645 .block_erase = spi_block_erase_d7,
15646 }, {
15647 .eraseblocks = { {64 * 1024, 16} },
15648 .block_erase = spi_block_erase_d8,
15649 }, {
15650 .eraseblocks = { {1024 * 1024, 1} },
15651 .block_erase = spi_block_erase_c7,
15652 }
15653 },
15654 .printlock = spi_prettyprint_status_register_bp2_srwd,
15655 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15656 .write = spi_chip_write_256,
15657 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15658 .voltage = {2700, 3600},
15659 },
15660
15661 {
15662 .vendor = "Sharp",
15663 .name = "LH28F008BJT-BTLZ1",
15664 .bustype = BUS_PARALLEL,
15665 .manufacture_id = SHARP_ID,
15666 .model_id = SHARP_LH28F008BJ__PB,
15667 .total_size = 1024,
15668 .page_size = 64 * 1024,
15669 .tested = TEST_OK_PREW,
15670 .probe = probe_82802ab,
15671 .probe_timing = TIMING_ZERO,
15672 .block_erasers =
15673 {
15674 {
15675 .eraseblocks = {
15676 {8 * 1024, 8},
15677 {64 * 1024, 15}
15678 },
15679 .block_erase = erase_block_82802ab,
15680 }, {
15681 .eraseblocks = { {1024 * 1024, 1} },
15682 .block_erase = erase_sector_49lfxxxc,
15683 }
15684 },
15685 .unlock = unlock_lh28f008bjt,
15686 .write = write_82802ab,
15687 .read = read_memmapped,
15688 .voltage = {2700, 3600},
15689 },
15690
15691 {
15692 .vendor = "Sharp",
15693 .name = "LHF00L04",
15694 .bustype = BUS_FWH, /* A/A Mux */
15695 .manufacture_id = SHARP_ID,
15696 .model_id = SHARP_LHF00L04,
15697 .total_size = 1024,
15698 .page_size = 64 * 1024,
15699 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
15700 .tested = TEST_UNTESTED,
15701 .probe = probe_82802ab,
15702 .probe_timing = TIMING_ZERO,
15703 .block_erasers =
15704 {
15705 {
15706 .eraseblocks = {
15707 {64 * 1024, 15},
15708 {8 * 1024, 8}
15709 },
15710 .block_erase = erase_block_82802ab,
15711 }, {
15712 .eraseblocks = {
15713 {1024 * 1024, 1}
15714 },
15715 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
15716 },
15717 },
15718 .unlock = unlock_regspace2_uniform_64k,
15719 .write = write_82802ab,
15720 .read = read_memmapped,
15721 .voltage = {3000, 3600},
15722 },
15723
15724 {
15725 .vendor = "Spansion",
15726 .name = "S25FL004A",
15727 .bustype = BUS_SPI,
15728 .manufacture_id = SPANSION_ID,
15729 .model_id = SPANSION_S25FL004A,
15730 .total_size = 512,
15731 .page_size = 256,
15732 .feature_bits = FEATURE_WRSR_WREN,
15733 .tested = TEST_UNTESTED,
15734 .probe = probe_spi_rdid,
15735 .probe_timing = TIMING_ZERO,
15736 .block_erasers =
15737 {
15738 {
15739 .eraseblocks = { {64 * 1024, 8} },
15740 .block_erase = spi_block_erase_d8,
15741 }, {
15742 .eraseblocks = { {512 * 1024, 1} },
15743 .block_erase = spi_block_erase_c7,
15744 }
15745 },
15746 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15747 .unlock = spi_disable_blockprotect,
15748 .write = spi_chip_write_256,
15749 .read = spi_chip_read,
15750 .voltage = {2700, 3600},
15751 },
15752
15753 {
15754 .vendor = "Spansion",
15755 .name = "S25FL008A",
15756 .bustype = BUS_SPI,
15757 .manufacture_id = SPANSION_ID,
15758 .model_id = SPANSION_S25FL008A,
15759 .total_size = 1024,
15760 .page_size = 256,
15761 .feature_bits = FEATURE_WRSR_WREN,
15762 .tested = TEST_OK_PRE,
15763 .probe = probe_spi_rdid,
15764 .probe_timing = TIMING_ZERO,
15765 .block_erasers =
15766 {
15767 {
15768 .eraseblocks = { {64 * 1024, 16} },
15769 .block_erase = spi_block_erase_d8,
15770 }, {
15771 .eraseblocks = { {1024 * 1024, 1} },
15772 .block_erase = spi_block_erase_c7,
15773 }
15774 },
15775 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15776 .unlock = spi_disable_blockprotect,
15777 .write = spi_chip_write_256,
15778 .read = spi_chip_read,
15779 .voltage = {2700, 3600},
15780 },
15781
15782 {
15783 .vendor = "Spansion",
15784 .name = "S25FL016A",
15785 .bustype = BUS_SPI,
15786 .manufacture_id = SPANSION_ID,
15787 .model_id = SPANSION_S25FL016A,
15788 .total_size = 2048,
15789 .page_size = 256,
15790 .feature_bits = FEATURE_WRSR_WREN,
15791 .tested = TEST_OK_PREW,
15792 .probe = probe_spi_rdid,
15793 .probe_timing = TIMING_ZERO,
15794 .block_erasers =
15795 {
15796 {
15797 .eraseblocks = { {64 * 1024, 32} },
15798 .block_erase = spi_block_erase_d8,
15799 }, {
15800 .eraseblocks = { {2 * 1024 * 1024, 1} },
15801 .block_erase = spi_block_erase_c7,
15802 }
15803 },
15804 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15805 .unlock = spi_disable_blockprotect,
15806 .write = spi_chip_write_256,
15807 .read = spi_chip_read,
15808 .voltage = {2700, 3600},
15809 },
15810
15811 {
15812 .vendor = "Spansion",
15813 .name = "S25FL032A/P",
15814 .bustype = BUS_SPI,
15815 .manufacture_id = SPANSION_ID,
15816 .model_id = SPANSION_S25FL032A,
15817 .total_size = 4096,
15818 .page_size = 256,
15819 .feature_bits = FEATURE_WRSR_WREN,
15820 .tested = TEST_OK_PREW,
15821 .probe = probe_spi_rdid,
15822 .probe_timing = TIMING_ZERO,
15823 .block_erasers =
15824 {
15825 {
15826 .eraseblocks = { {64 * 1024, 64} },
15827 .block_erase = spi_block_erase_d8,
15828 }, {
15829 .eraseblocks = { {4 * 1024 * 1024, 1} },
15830 .block_erase = spi_block_erase_c7,
15831 }
15832 },
15833 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15834 .unlock = spi_disable_blockprotect,
15835 .write = spi_chip_write_256,
15836 .read = spi_chip_read,
15837 .voltage = {2700, 3600},
15838 },
15839
15840 {
15841 .vendor = "Spansion",
15842 .name = "S25FL064A/P",
15843 .bustype = BUS_SPI,
15844 .manufacture_id = SPANSION_ID,
15845 .model_id = SPANSION_S25FL064A,
15846 .total_size = 8192,
15847 .page_size = 256,
15848 .feature_bits = FEATURE_WRSR_WREN,
15849 .tested = TEST_OK_PREW,
15850 .probe = probe_spi_rdid,
15851 .probe_timing = TIMING_ZERO,
15852 .block_erasers =
15853 {
15854 {
15855 .eraseblocks = { {64 * 1024, 128} },
15856 .block_erase = spi_block_erase_d8,
15857 }, {
15858 .eraseblocks = { {8 * 1024 * 1024, 1} },
15859 .block_erase = spi_block_erase_c7,
15860 }
15861 },
15862 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15863 .unlock = spi_disable_blockprotect,
15864 .write = spi_chip_write_256,
15865 .read = spi_chip_read,
15866 .voltage = {2700, 3600},
15867 },
15868
15869 {
15870 .vendor = "Spansion",
15871 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
15872 .bustype = BUS_SPI,
15873 .manufacture_id = SPANSION_ID,
15874 .model_id = SPANSION_S25FL216,
15875 .total_size = 2048,
15876 .page_size = 256,
15877 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
15878 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15879 .tested = TEST_UNTESTED,
15880 .probe = probe_spi_rdid,
15881 .probe_timing = TIMING_ZERO,
15882 .block_erasers =
15883 {
15884 {
15885 .eraseblocks = { {4 * 1024, 512} },
15886 .block_erase = spi_block_erase_20,
15887 }, {
15888 .eraseblocks = { {64 * 1024, 32} },
15889 .block_erase = spi_block_erase_d8,
15890 }, {
15891 .eraseblocks = { { 2048 * 1024, 1} },
15892 .block_erase = spi_block_erase_60,
15893 }, {
15894 .eraseblocks = { { 2048 * 1024, 1} },
15895 .block_erase = spi_block_erase_c7,
15896 }
15897 },
15898 .printlock = spi_prettyprint_status_register_bp3_srwd,
15899 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
15900 .write = spi_chip_write_256,
15901 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
15902 .voltage = {2700, 3600},
15903 },
15904
15905 {
15906 .vendor = "Spansion",
15907 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
15908 .bustype = BUS_SPI,
15909 .manufacture_id = SPANSION_ID,
15910 .model_id = SPANSION_S25FL128,
15911 .total_size = 16384,
15912 .page_size = 512,
15913 /* supports 4B addressing */
15914 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15915 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15916 .tested = TEST_UNTESTED,
15917 .probe = probe_spi_rdid,
15918 .probe_timing = TIMING_ZERO,
15919 .block_erasers =
15920 {
15921 {
15922 .eraseblocks = { {256 * 1024, 64} },
15923 .block_erase = spi_block_erase_d8,
15924 }, {
15925 .eraseblocks = { { 16384 * 1024, 1} },
15926 .block_erase = spi_block_erase_60,
15927 }, {
15928 .eraseblocks = { { 16384 * 1024, 1} },
15929 .block_erase = spi_block_erase_c7,
15930 }
15931 },
15932 .printlock = spi_prettyprint_status_register_bp2_srwd,
15933 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15934 .write = spi_chip_write_256, /* Multi I/O supported */
15935 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15936 .voltage = {2700, 3600},
15937 },
15938
15939 {
15940 .vendor = "Spansion",
15941 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15942 .bustype = BUS_SPI,
15943 .manufacture_id = SPANSION_ID,
15944 .model_id = SPANSION_S25FL128,
15945 .total_size = 16384,
15946 .page_size = 256,
15947 /* supports 4B addressing */
15948 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15949 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15950 .tested = TEST_OK_PREW,
15951 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
15952 .probe = probe_spi_rdid,
15953 .probe_timing = TIMING_ZERO,
15954 .block_erasers =
15955 {
15956 {
15957 /* This chip supports erasing of 32 so-called "parameter sectors" with
15958 * opcode 0x20 which may be configured to be on top or bottom of the address
15959 * space. Trying to access an address outside these 4kB blocks does have no
15960 * effect on the memory contents, e.g.
15961 .eraseblocks = {
15962 {4 * 1024, 32},
15963 {64 * 1024, 254} // inaccessible
15964 },
15965 .block_erase = spi_block_erase_20,
15966 }, { */
15967 .eraseblocks = { { 64 * 1024, 256} },
15968 .block_erase = spi_block_erase_d8,
15969 }, {
15970 .eraseblocks = { { 16384 * 1024, 1} },
15971 .block_erase = spi_block_erase_60,
15972 }, {
15973 .eraseblocks = { { 16384 * 1024, 1} },
15974 .block_erase = spi_block_erase_c7,
15975 }
15976 },
15977 .printlock = spi_prettyprint_status_register_bp2_srwd,
15978 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15979 .write = spi_chip_write_256, /* Multi I/O supported */
15980 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15981 .voltage = {2700, 3600},
15982 },
15983
15984 {
15985 .vendor = "Spansion",
15986 .name = "S25FL128P......0", /* uniform 64 kB sectors */
15987 .bustype = BUS_SPI,
15988 .manufacture_id = SPANSION_ID,
15989 .model_id = SPANSION_S25FL128,
15990 .total_size = 16384,
15991 .page_size = 256,
15992 .feature_bits = FEATURE_WRSR_WREN,
15993 .tested = TEST_OK_PREW,
15994 .probe = probe_spi_rdid,
15995 .probe_timing = TIMING_ZERO,
15996 .block_erasers =
15997 {
15998 {
15999 .eraseblocks = { {64 * 1024, 256} },
16000 .block_erase = spi_block_erase_20,
16001 }, {
16002 .eraseblocks = { {64 * 1024, 256} },
16003 .block_erase = spi_block_erase_d8,
16004 }, {
16005 .eraseblocks = { { 16384 * 1024, 1} },
16006 .block_erase = spi_block_erase_60,
16007 }, {
16008 .eraseblocks = { { 16384 * 1024, 1} },
16009 .block_erase = spi_block_erase_c7,
16010 }
16011 },
16012 .printlock = spi_prettyprint_status_register_bp3_srwd,
16013 .unlock = spi_disable_blockprotect_bp3_srwd,
16014 .write = spi_chip_write_256,
16015 .read = spi_chip_read, /* Fast read (0x0B) supported */
16016 .voltage = {2700, 3600},
16017 },
16018
16019 {
16020 .vendor = "Spansion",
16021 .name = "S25FL128P......1", /* uniform 256kB sectors */
16022 .bustype = BUS_SPI,
16023 .manufacture_id = SPANSION_ID,
16024 .model_id = SPANSION_S25FL128,
16025 .total_size = 16384,
16026 .page_size = 256,
16027 .feature_bits = FEATURE_WRSR_WREN,
16028 .tested = TEST_UNTESTED,
16029 .probe = probe_spi_rdid,
16030 .probe_timing = TIMING_ZERO,
16031 .block_erasers =
16032 {
16033 {
16034 .eraseblocks = { {256 * 1024, 64} },
16035 .block_erase = spi_block_erase_d8,
16036 }, {
16037 .eraseblocks = { { 16384 * 1024, 1} },
16038 .block_erase = spi_block_erase_c7,
16039 }
16040 },
16041 .printlock = spi_prettyprint_status_register_bp2_srwd,
16042 .unlock = spi_disable_blockprotect_bp2_srwd,
16043 .write = spi_chip_write_256,
16044 .read = spi_chip_read, /* Fast read (0x0B) supported */
16045 .voltage = {2700, 3600},
16046 },
16047
16048 {
16049 .vendor = "Spansion",
16050 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16051 .bustype = BUS_SPI,
16052 .manufacture_id = SPANSION_ID,
16053 .model_id = SPANSION_S25FL128,
16054 .total_size = 16384,
16055 .page_size = 256,
16056 /* supports 4B addressing */
16057 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16058 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16059 .tested = TEST_OK_PREW,
16060 .probe = probe_spi_rdid,
16061 .probe_timing = TIMING_ZERO,
16062 .block_erasers =
16063 {
16064 {
16065 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16066 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16067 * have no effect on the memory contents, but sets a flag in the SR.
16068 .eraseblocks = {
16069 {4 * 1024, 32},
16070 {64 * 1024, 254} // inaccessible
16071 },
16072 .block_erase = spi_block_erase_20,
16073 }, { */
16074 .eraseblocks = { { 64 * 1024, 256} },
16075 .block_erase = spi_block_erase_d8,
16076 }, {
16077 .eraseblocks = { { 16384 * 1024, 1} },
16078 .block_erase = spi_block_erase_60,
16079 }, {
16080 .eraseblocks = { { 16384 * 1024, 1} },
16081 .block_erase = spi_block_erase_c7,
16082 }
16083 },
16084 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16085 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16086 .write = spi_chip_write_256, /* Multi I/O supported */
16087 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16088 .voltage = {2700, 3600},
16089 },
16090
16091 {
16092 .vendor = "Spansion",
16093 .name = "S25FL128S......1", /* uniform 256 kB sectors */
16094 .bustype = BUS_SPI,
16095 .manufacture_id = SPANSION_ID,
16096 .model_id = SPANSION_S25FL128,
16097 .total_size = 16384,
16098 .page_size = 512,
16099 /* supports 4B addressing */
16100 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16101 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16102 .tested = TEST_UNTESTED,
16103 .probe = probe_spi_rdid,
16104 .probe_timing = TIMING_ZERO,
16105 .block_erasers =
16106 {
16107 {
16108 .eraseblocks = { {256 * 1024, 64} },
16109 .block_erase = spi_block_erase_d8,
16110 }, {
16111 .eraseblocks = { { 16384 * 1024, 1} },
16112 .block_erase = spi_block_erase_60,
16113 }, {
16114 .eraseblocks = { { 16384 * 1024, 1} },
16115 .block_erase = spi_block_erase_c7,
16116 }
16117 },
16118 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16119 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16120 .write = spi_chip_write_256, /* Multi I/O supported */
16121 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16122 .voltage = {2700, 3600},
16123 },
16124
16125 {
16126 .vendor = "Spansion",
16127 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16128 .bustype = BUS_SPI,
16129 .manufacture_id = SPANSION_ID,
16130 .model_id = SPANSION_S25FL128,
16131 .total_size = 16384,
16132 .page_size = 256,
16133 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16134 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16135 .tested = TEST_OK_PREW,
16136 .probe = probe_spi_rdid,
16137 .probe_timing = TIMING_ZERO,
16138 .block_erasers =
16139 {
16140 {
16141 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
16142 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
16143 * effect on the memory contents, but sets a flag in the SR.
16144 .eraseblocks = {
16145 {4 * 1024, 32},
16146 {64 * 1024, 254} // inaccessible
16147 },
16148 .block_erase = spi_block_erase_20,
16149 }, { */
16150 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
16151 .eraseblocks = {
16152 {8 * 1024, 16},
16153 {64 * 1024, 254} // inaccessible
16154 },
16155 .block_erase = spi_block_erase_40,
16156 }, { */
16157 .eraseblocks = { { 64 * 1024, 256} },
16158 .block_erase = spi_block_erase_d8,
16159 }, {
16160 .eraseblocks = { { 16384 * 1024, 1} },
16161 .block_erase = spi_block_erase_60,
16162 }, {
16163 .eraseblocks = { { 16384 * 1024, 1} },
16164 .block_erase = spi_block_erase_c7,
16165 }
16166 },
16167 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16168 .unlock = spi_disable_blockprotect_bp2_srwd,
16169 .write = spi_chip_write_256, /* Multi I/O supported */
16170 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16171 .voltage = {2700, 3600},
16172 },
16173
16174 {
16175 .vendor = "Spansion",
16176 .name = "S25FL129P......1", /* uniform 256 kB sectors */
16177 .bustype = BUS_SPI,
16178 .manufacture_id = SPANSION_ID,
16179 .model_id = SPANSION_S25FL128,
16180 .total_size = 16384,
16181 .page_size = 256,
16182 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16183 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16184 .tested = TEST_UNTESTED,
16185 .probe = probe_spi_rdid,
16186 .probe_timing = TIMING_ZERO,
16187 .block_erasers =
16188 {
16189 {
16190 .eraseblocks = { {256 * 1024, 64} },
16191 .block_erase = spi_block_erase_d8,
16192 }, {
16193 .eraseblocks = { { 16384 * 1024, 1} },
16194 .block_erase = spi_block_erase_60,
16195 }, {
16196 .eraseblocks = { { 16384 * 1024, 1} },
16197 .block_erase = spi_block_erase_c7,
16198 }
16199 },
16200 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16201 .unlock = spi_disable_blockprotect_bp2_srwd,
16202 .write = spi_chip_write_256, /* Multi I/O supported */
16203 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16204 .voltage = {2700, 3600},
16205 },
16206
16207 {
16208 .vendor = "Spansion",
16209 .name = "S25FL132K",
16210 .bustype = BUS_SPI,
16211 .manufacture_id = SPANSION_ID,
16212 .model_id = SPANSION_S25FL132K,
16213 .total_size = 4096,
16214 .page_size = 256,
16215 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16216 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16217 .tested = TEST_UNTESTED,
16218 .probe = probe_spi_rdid,
16219 .probe_timing = TIMING_ZERO,
16220 .block_erasers =
16221 {
16222 {
16223 .eraseblocks = { {4 * 1024, 1024} },
16224 .block_erase = spi_block_erase_20,
16225 }, {
16226 .eraseblocks = { {64 * 1024, 64} },
16227 .block_erase = spi_block_erase_d8,
16228 }, {
16229 .eraseblocks = { { 4096 * 1024, 1} },
16230 .block_erase = spi_block_erase_60,
16231 }, {
16232 .eraseblocks = { { 4096 * 1024, 1} },
16233 .block_erase = spi_block_erase_c7,
16234 }
16235 },
16236 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16237 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16238 .write = spi_chip_write_256,
16239 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16240 .voltage = {2700, 3600},
16241 },
16242
16243 {
16244 .vendor = "Spansion",
16245 .name = "S25FL164K",
16246 .bustype = BUS_SPI,
16247 .manufacture_id = SPANSION_ID,
16248 .model_id = SPANSION_S25FL164K,
16249 .total_size = 8192,
16250 .page_size = 256,
16251 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16252 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16253 .tested = TEST_OK_PREW,
16254 .probe = probe_spi_rdid,
16255 .probe_timing = TIMING_ZERO,
16256 .block_erasers =
16257 {
16258 {
16259 .eraseblocks = { {4 * 1024, 2048} },
16260 .block_erase = spi_block_erase_20,
16261 }, {
16262 .eraseblocks = { {64 * 1024, 128} },
16263 .block_erase = spi_block_erase_d8,
16264 }, {
16265 .eraseblocks = { { 8192 * 1024, 1} },
16266 .block_erase = spi_block_erase_60,
16267 }, {
16268 .eraseblocks = { { 8192 * 1024, 1} },
16269 .block_erase = spi_block_erase_c7,
16270 }
16271 },
16272 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16273 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16274 .write = spi_chip_write_256,
16275 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16276 .voltage = {2700, 3600},
16277 },
16278
16279 {
16280 .vendor = "Spansion",
16281 .name = "S25FL204K",
16282 .bustype = BUS_SPI,
16283 .manufacture_id = SPANSION_ID,
16284 .model_id = SPANSION_S25FL204,
16285 .total_size = 512,
16286 .page_size = 256,
16287 .feature_bits = FEATURE_WRSR_WREN,
16288 .tested = TEST_OK_PR,
16289 .probe = probe_spi_rdid,
16290 .probe_timing = TIMING_ZERO,
16291 .block_erasers =
16292 {
16293 {
16294 .eraseblocks = { {4 * 1024, 128} },
16295 .block_erase = spi_block_erase_20,
16296 }, {
16297 .eraseblocks = { {64 * 1024, 8} },
16298 .block_erase = spi_block_erase_d8,
16299 }, {
16300 .eraseblocks = { { 512 * 1024, 1} },
16301 .block_erase = spi_block_erase_60,
16302 }, {
16303 .eraseblocks = { { 512 * 1024, 1} },
16304 .block_erase = spi_block_erase_c7,
16305 }
16306 },
16307 .printlock = spi_prettyprint_status_register_bp3_srwd,
16308 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16309 .write = spi_chip_write_256,
16310 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16311 .voltage = {2700, 3600},
16312 },
16313
16314 {
16315 .vendor = "Spansion",
16316 .name = "S25FL208K",
16317 .bustype = BUS_SPI,
16318 .manufacture_id = SPANSION_ID,
16319 .model_id = SPANSION_S25FL208,
16320 .total_size = 1024,
16321 .page_size = 256,
16322 .feature_bits = FEATURE_WRSR_WREN,
16323 .tested = TEST_OK_PREW,
16324 .probe = probe_spi_rdid,
16325 .probe_timing = TIMING_ZERO,
16326 .block_erasers =
16327 {
16328 {
16329 .eraseblocks = { {4 * 1024, 256} },
16330 .block_erase = spi_block_erase_20,
16331 }, {
16332 .eraseblocks = { {64 * 1024, 16} },
16333 .block_erase = spi_block_erase_d8,
16334 }, {
16335 .eraseblocks = { { 1024 * 1024, 1} },
16336 .block_erase = spi_block_erase_60,
16337 }, {
16338 .eraseblocks = { { 1024 * 1024, 1} },
16339 .block_erase = spi_block_erase_c7,
16340 }
16341 },
16342 .printlock = spi_prettyprint_status_register_bp3_srwd,
16343 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16344 .write = spi_chip_write_256,
16345 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16346 .voltage = {2700, 3600},
16347 },
16348
16349 {
16350 .vendor = "Spansion",
16351 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16352 .bustype = BUS_SPI,
16353 .manufacture_id = SPANSION_ID,
16354 .model_id = SPANSION_S25FL256,
16355 .total_size = 32768,
16356 .page_size = 256,
16357 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16358 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_EAR7,
16359 .tested = TEST_OK_PREW,
16360 .probe = probe_spi_rdid,
16361 .probe_timing = TIMING_ZERO,
16362 .block_erasers =
16363 {
16364 {
16365 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16366 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16367 * have no effect on the memory contents, but sets a flag in the SR.
16368 .eraseblocks = {
16369 {4 * 1024, 32},
16370 {64 * 1024, 254} // inaccessible
16371 },
16372 .block_erase = spi_block_erase_20,
16373 }, { */
16374 .eraseblocks = { { 64 * 1024, 512} },
16375 .block_erase = spi_block_erase_dc,
16376 }, {
16377 .eraseblocks = { { 64 * 1024, 512} },
16378 .block_erase = spi_block_erase_d8,
16379 }, {
16380 .eraseblocks = { { 32768 * 1024, 1} },
16381 .block_erase = spi_block_erase_60,
16382 }, {
16383 .eraseblocks = { { 32768 * 1024, 1} },
16384 .block_erase = spi_block_erase_c7,
16385 }
16386 },
16387 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16388 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16389 .write = spi_chip_write_256, /* Multi I/O supported */
16390 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16391 .voltage = {2700, 3600},
16392 .wrea_override = 0x17,
16393 },
16394
16395 {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016396 .vendor = "Spansion",
16397 .name = "S25FL512S",
16398 .bustype = BUS_SPI,
16399 .manufacture_id = SPANSION_ID,
16400 .model_id = SPANSION_S25FL512,
16401 .total_size = 65536, /* 512 Mb (=> 64 MB)) */
16402 .page_size = 256,
16403 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16404 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_NATIVE,
16405 .tested = TEST_OK_PREW,
16406 .probe = probe_spi_rdid,
16407 .probe_timing = TIMING_ZERO,
16408 .block_erasers =
16409 {
16410 {
16411 .eraseblocks = { { 256 * 1024, 256} },
16412 .block_erase = spi_block_erase_dc,
16413 }, {
16414 .eraseblocks = { { 65536 * 1024, 1} },
16415 .block_erase = spi_block_erase_60,
16416 }, {
16417 .eraseblocks = { { 65536 * 1024, 1} },
16418 .block_erase = spi_block_erase_c7,
16419 }
16420 },
16421 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16422 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16423 .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */
16424 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16425 .voltage = {2700, 3600},
16426 },
16427
16428 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016429 .vendor = "SyncMOS/MoselVitelic",
16430 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016431 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016432 .manufacture_id = SYNCMOS_MVC_ID,
16433 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016434 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016435 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016436 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016437 .tested = TEST_UNTESTED,
16438 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016439 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016440 .block_erasers =
16441 {
16442 {
16443 .eraseblocks = { {512, 256} },
16444 .block_erase = erase_sector_jedec,
16445 }, {
16446 .eraseblocks = { {128 * 1024, 1} },
16447 .block_erase = erase_chip_block_jedec,
16448 },
16449 },
Sean Nelson35727f72010-01-28 23:55:12 +000016450 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016451 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016452 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016453 },
16454
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016455 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016456 .vendor = "SyncMOS/MoselVitelic",
16457 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016458 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016459 .manufacture_id = SYNCMOS_MVC_ID,
16460 .model_id = SM_MVC_29C51001T,
16461 .total_size = 128,
16462 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016463 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016464 .tested = TEST_UNTESTED,
16465 .probe = probe_jedec,
16466 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16467 .block_erasers =
16468 {
16469 {
16470 .eraseblocks = { {512, 256} },
16471 .block_erase = erase_sector_jedec,
16472 }, {
16473 .eraseblocks = { {128 * 1024, 1} },
16474 .block_erase = erase_chip_block_jedec,
16475 },
16476 },
16477 .write = write_jedec_1,
16478 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016479 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016480 },
16481
16482 {
16483 .vendor = "SyncMOS/MoselVitelic",
16484 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016485 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016486 .manufacture_id = SYNCMOS_MVC_ID,
16487 .model_id = SM_MVC_29C51002B,
16488 .total_size = 256,
16489 .page_size = 512,
16490 .feature_bits = FEATURE_EITHER_RESET,
16491 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016492 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016493 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016494 .block_erasers =
16495 {
16496 {
16497 .eraseblocks = { {512, 512} },
16498 .block_erase = erase_sector_jedec,
16499 }, {
16500 .eraseblocks = { {256 * 1024, 1} },
16501 .block_erase = erase_chip_block_jedec,
16502 },
16503 },
Sean Nelson35727f72010-01-28 23:55:12 +000016504 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016505 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000016506 },
16507
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016508 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016509 .vendor = "SyncMOS/MoselVitelic",
16510 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016511 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016512 .manufacture_id = SYNCMOS_MVC_ID,
16513 .model_id = SM_MVC_29C51002T,
16514 .total_size = 256,
16515 .page_size = 512,
16516 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016517 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016518 .probe = probe_jedec,
16519 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16520 .block_erasers =
16521 {
16522 {
16523 .eraseblocks = { {512, 512} },
16524 .block_erase = erase_sector_jedec,
16525 }, {
16526 .eraseblocks = { {256 * 1024, 1} },
16527 .block_erase = erase_chip_block_jedec,
16528 },
16529 },
16530 .write = write_jedec_1,
16531 .read = read_memmapped,
16532 },
16533
16534 {
16535 .vendor = "SyncMOS/MoselVitelic",
16536 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016537 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016538 .manufacture_id = SYNCMOS_MVC_ID,
16539 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016540 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016541 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016542 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016543 .tested = TEST_UNTESTED,
16544 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016545 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000016546 .block_erasers =
16547 {
16548 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016549 .eraseblocks = { {1024, 512} },
16550 .block_erase = erase_sector_jedec,
16551 }, {
16552 .eraseblocks = { {512 * 1024, 1} },
16553 .block_erase = erase_chip_block_jedec,
16554 },
16555 },
16556 .write = write_jedec_1,
16557 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016558 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016559 },
16560
16561 {
16562 .vendor = "SyncMOS/MoselVitelic",
16563 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016564 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016565 .manufacture_id = SYNCMOS_MVC_ID,
16566 .model_id = SM_MVC_29C51004T,
16567 .total_size = 512,
16568 .page_size = 1024,
16569 .feature_bits = FEATURE_EITHER_RESET,
16570 .tested = TEST_UNTESTED,
16571 .probe = probe_jedec,
16572 .probe_timing = TIMING_ZERO,
16573 .block_erasers =
16574 {
16575 {
16576 .eraseblocks = { {1024, 512} },
16577 .block_erase = erase_sector_jedec,
16578 }, {
16579 .eraseblocks = { {512 * 1024, 1} },
16580 .block_erase = erase_chip_block_jedec,
16581 },
16582 },
16583 .write = write_jedec_1,
16584 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016585 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016586 },
16587
16588 {
16589 .vendor = "SyncMOS/MoselVitelic",
16590 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016591 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016592 .manufacture_id = SYNCMOS_MVC_ID,
16593 .model_id = SM_MVC_29C31004B,
16594 .total_size = 512,
16595 .page_size = 1024,
16596 .feature_bits = FEATURE_EITHER_RESET,
16597 .tested = TEST_UNTESTED,
16598 .probe = probe_jedec,
16599 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16600 .block_erasers =
16601 {
16602 {
16603 .eraseblocks = { {1024, 512} },
16604 .block_erase = erase_sector_jedec,
16605 }, {
16606 .eraseblocks = { {512 * 1024, 1} },
16607 .block_erase = erase_chip_block_jedec,
16608 },
16609 },
16610 .write = write_jedec_1,
16611 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016612 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016613 },
16614
16615 {
16616 .vendor = "SyncMOS/MoselVitelic",
16617 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016618 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016619 .manufacture_id = SYNCMOS_MVC_ID,
16620 .model_id = SM_MVC_29C31004T,
16621 .total_size = 512,
16622 .page_size = 1024,
16623 .feature_bits = FEATURE_EITHER_RESET,
16624 .tested = TEST_UNTESTED,
16625 .probe = probe_jedec,
16626 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16627 .block_erasers =
16628 {
16629 {
16630 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000016631 .block_erase = erase_sector_jedec,
16632 }, {
16633 .eraseblocks = { {512 * 1024, 1} },
16634 .block_erase = erase_chip_block_jedec,
16635 },
16636 },
Sean Nelson35727f72010-01-28 23:55:12 +000016637 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016638 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016639 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016640 },
16641
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016642 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016643 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016644 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016645 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016646 .manufacture_id = TI_OLD_ID,
16647 .model_id = TI_TMS29F002RB,
16648 .total_size = 256,
16649 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016650 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016651 .tested = TEST_UNTESTED,
16652 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016653 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016654 .block_erasers =
16655 {
16656 {
16657 .eraseblocks = {
16658 {16 * 1024, 1},
16659 {8 * 1024, 2},
16660 {32 * 1024, 1},
16661 {64 * 1024, 3},
16662 },
16663 .block_erase = erase_sector_jedec,
16664 }, {
16665 .eraseblocks = { {256 * 1024, 1} },
16666 .block_erase = erase_chip_block_jedec,
16667 },
16668 },
Sean Nelson35727f72010-01-28 23:55:12 +000016669 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016670 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016671 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016672 },
16673
16674 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016675 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016676 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016677 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016678 .manufacture_id = TI_OLD_ID,
16679 .model_id = TI_TMS29F002RT,
16680 .total_size = 256,
16681 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016682 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016683 .tested = TEST_UNTESTED,
16684 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016685 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016686 .block_erasers =
16687 {
16688 {
16689 .eraseblocks = {
16690 {64 * 1024, 3},
16691 {32 * 1024, 1},
16692 {8 * 1024, 2},
16693 {16 * 1024, 1},
16694 },
16695 .block_erase = erase_sector_jedec,
16696 }, {
16697 .eraseblocks = { {256 * 1024, 1} },
16698 .block_erase = erase_chip_block_jedec,
16699 },
16700 },
Sean Nelson35727f72010-01-28 23:55:12 +000016701 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016702 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016703 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016704 },
16705
16706 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016707 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016708 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016709 .bustype = BUS_SPI,
16710 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016711 .model_id = WINBOND_NEX_W25P16,
16712 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016713 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016714 .feature_bits = FEATURE_WRSR_WREN,
16715 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016716 .probe = probe_spi_rdid,
16717 .probe_timing = TIMING_ZERO,
16718 .block_erasers =
16719 {
16720 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016721 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016722 .block_erase = spi_block_erase_d8,
16723 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016724 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016725 .block_erase = spi_block_erase_c7,
16726 }
16727 },
16728 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16729 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016730 .write = spi_chip_write_256,
16731 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016732 .voltage = {2700, 3600},
16733 },
16734
16735 {
16736 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016737 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016738 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016739 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016740 .model_id = WINBOND_NEX_W25P32,
16741 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016742 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016743 .feature_bits = FEATURE_WRSR_WREN,
16744 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016745 .probe = probe_spi_rdid,
16746 .probe_timing = TIMING_ZERO,
16747 .block_erasers =
16748 {
16749 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016750 .eraseblocks = { {64 * 1024, 64} },
16751 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016752 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016753 .eraseblocks = { {4096 * 1024, 1} },
16754 .block_erase = spi_block_erase_c7,
16755 }
16756 },
16757 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16758 .unlock = spi_disable_blockprotect,
16759 .write = spi_chip_write_256,
16760 .read = spi_chip_read, /* Fast read (0x0B) supported */
16761 .voltage = {2700, 3600},
16762 },
16763
16764 {
16765 .vendor = "Winbond",
16766 .name = "W25P80",
16767 .bustype = BUS_SPI,
16768 .manufacture_id = WINBOND_NEX_ID,
16769 .model_id = WINBOND_NEX_W25P80,
16770 .total_size = 1024,
16771 .page_size = 256,
16772 .feature_bits = FEATURE_WRSR_WREN,
16773 .tested = TEST_UNTESTED,
16774 .probe = probe_spi_rdid,
16775 .probe_timing = TIMING_ZERO,
16776 .block_erasers =
16777 {
16778 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000016779 .eraseblocks = { {64 * 1024, 16} },
16780 .block_erase = spi_block_erase_d8,
16781 }, {
16782 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000016783 .block_erase = spi_block_erase_c7,
16784 }
16785 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016786 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016787 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016788 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016789 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016790 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000016791 },
16792
16793 {
16794 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016795 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016796 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016797 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016798 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016799 .total_size = 16384,
16800 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016801 /* supports SFDP */
16802 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000016803 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016804 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016805 .probe = probe_spi_rdid,
16806 .probe_timing = TIMING_ZERO,
16807 .block_erasers =
16808 {
16809 {
16810 .eraseblocks = { {4 * 1024, 4096} },
16811 .block_erase = spi_block_erase_20,
16812 }, {
16813 .eraseblocks = { {32 * 1024, 512} },
16814 .block_erase = spi_block_erase_52,
16815 }, {
16816 .eraseblocks = { {64 * 1024, 256} },
16817 .block_erase = spi_block_erase_d8,
16818 }, {
16819 .eraseblocks = { {16 * 1024 * 1024, 1} },
16820 .block_erase = spi_block_erase_60,
16821 }, {
16822 .eraseblocks = { {16 * 1024 * 1024, 1} },
16823 .block_erase = spi_block_erase_c7,
16824 }
16825 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016826 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000016827 .unlock = spi_disable_blockprotect,
16828 .write = spi_chip_write_256,
16829 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016830 .voltage = {2700, 3600},
16831 },
16832
16833 {
16834 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020016835 .name = "W25Q128.V..M",
16836 .bustype = BUS_SPI,
16837 .manufacture_id = WINBOND_NEX_ID,
16838 .model_id = WINBOND_NEX_W25Q128_V_M,
16839 .total_size = 16384,
16840 .page_size = 256,
16841 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16842 .tested = TEST_OK_PREW,
16843 .probe = probe_spi_rdid,
16844 .probe_timing = TIMING_ZERO,
16845 .block_erasers =
16846 {
16847 {
16848 .eraseblocks = { {4 * 1024, 4096} },
16849 .block_erase = spi_block_erase_20,
16850 }, {
16851 .eraseblocks = { {32 * 1024, 512} },
16852 .block_erase = spi_block_erase_52,
16853 }, {
16854 .eraseblocks = { {64 * 1024, 256} },
16855 .block_erase = spi_block_erase_d8,
16856 }, {
16857 .eraseblocks = { {16 * 1024 * 1024, 1} },
16858 .block_erase = spi_block_erase_60,
16859 }, {
16860 .eraseblocks = { {16 * 1024 * 1024, 1} },
16861 .block_erase = spi_block_erase_c7,
16862 }
16863 },
Alan Greena1fc01d2019-09-23 17:12:44 +100016864 .printlock = spi_prettyprint_status_register_plain,
Patrick Rudolph34323492018-10-04 14:59:40 +020016865 .unlock = spi_disable_blockprotect,
16866 .write = spi_chip_write_256,
16867 .read = spi_chip_read,
16868 .voltage = {2700, 3600},
16869 },
16870
16871 {
16872 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016873 .name = "W25Q128.W",
16874 .bustype = BUS_SPI,
16875 .manufacture_id = WINBOND_NEX_ID,
16876 .model_id = WINBOND_NEX_W25Q128_W,
16877 .total_size = 16384,
16878 .page_size = 256,
16879 /* supports SFDP */
16880 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16881 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16882 .tested = TEST_OK_PREW,
16883 .probe = probe_spi_rdid,
16884 .probe_timing = TIMING_ZERO,
16885 .block_erasers =
16886 {
16887 {
16888 .eraseblocks = { {4 * 1024, 4096} },
16889 .block_erase = spi_block_erase_20,
16890 }, {
16891 .eraseblocks = { {32 * 1024, 512} },
16892 .block_erase = spi_block_erase_52,
16893 }, {
16894 .eraseblocks = { {64 * 1024, 256} },
16895 .block_erase = spi_block_erase_d8,
16896 }, {
16897 .eraseblocks = { {16 * 1024 * 1024, 1} },
16898 .block_erase = spi_block_erase_60,
16899 }, {
16900 .eraseblocks = { {16 * 1024 * 1024, 1} },
16901 .block_erase = spi_block_erase_c7,
16902 }
16903 },
16904 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16905 .unlock = spi_disable_blockprotect,
16906 .write = spi_chip_write_256,
16907 .read = spi_chip_read,
16908 .voltage = {1650, 1950},
16909 },
16910
16911 {
16912 .vendor = "Winbond",
Peichao Wang1a119492019-11-11 15:26:41 +080016913 .name = "W25Q128.JW.DTR",
16914 .bustype = BUS_SPI,
16915 .manufacture_id = WINBOND_NEX_ID,
16916 .model_id = WINBOND_NEX_W25Q128_DTR,
16917 .total_size = 16384,
16918 .page_size = 256,
16919 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16920 .tested = TEST_OK_PREW,
16921 .probe = probe_spi_rdid,
16922 .probe_timing = TIMING_ZERO,
16923 .block_erasers =
16924 {
16925 {
16926 .eraseblocks = { {4 * 1024, 4096} },
16927 .block_erase = spi_block_erase_20,
16928 }, {
16929 .eraseblocks = { {32 * 1024, 512} },
16930 .block_erase = spi_block_erase_52,
16931 }, {
16932 .eraseblocks = { {64 * 1024, 256} },
16933 .block_erase = spi_block_erase_d8,
16934 }, {
16935 .eraseblocks = { {16 * 1024 * 1024, 1} },
16936 .block_erase = spi_block_erase_60,
16937 }, {
16938 .eraseblocks = { {16 * 1024 * 1024, 1} },
16939 .block_erase = spi_block_erase_c7,
16940 }
16941 },
16942 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16943 .unlock = spi_disable_blockprotect,
16944 .write = spi_chip_write_256,
16945 .read = spi_chip_read,
16946 .voltage = {1650, 1950},
16947 },
16948
16949 {
16950 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016951 .name = "W25Q16.V",
16952 .bustype = BUS_SPI,
16953 .manufacture_id = WINBOND_NEX_ID,
16954 .model_id = WINBOND_NEX_W25Q16_V,
16955 .total_size = 2048,
16956 .page_size = 256,
16957 /* supports SFDP */
16958 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16959 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16960 .tested = TEST_OK_PREW,
16961 .probe = probe_spi_rdid,
16962 .probe_timing = TIMING_ZERO,
16963 .block_erasers =
16964 {
16965 {
16966 .eraseblocks = { {4 * 1024, 512} },
16967 .block_erase = spi_block_erase_20,
16968 }, {
16969 .eraseblocks = { {32 * 1024, 64} },
16970 .block_erase = spi_block_erase_52,
16971 }, {
16972 .eraseblocks = { {64 * 1024, 32} },
16973 .block_erase = spi_block_erase_d8,
16974 }, {
16975 .eraseblocks = { {2 * 1024 * 1024, 1} },
16976 .block_erase = spi_block_erase_60,
16977 }, {
16978 .eraseblocks = { {2 * 1024 * 1024, 1} },
16979 .block_erase = spi_block_erase_c7,
16980 }
16981 },
16982 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16983 .unlock = spi_disable_blockprotect,
16984 .write = spi_chip_write_256,
16985 .read = spi_chip_read,
16986 .voltage = {2700, 3600},
16987 },
16988
16989 {
16990 .vendor = "Winbond",
16991 .name = "W25Q16.W",
16992 .bustype = BUS_SPI,
16993 .manufacture_id = WINBOND_NEX_ID,
16994 .model_id = WINBOND_NEX_W25Q16_W,
16995 .total_size = 2048,
16996 .page_size = 256,
16997 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16998 /* QPI enable 0x38, disable 0xFF */
16999 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17000 .tested = TEST_UNTESTED,
17001 .probe = probe_spi_rdid,
17002 .probe_timing = TIMING_ZERO,
17003 .block_erasers =
17004 {
17005 {
17006 .eraseblocks = { {4 * 1024, 512} },
17007 .block_erase = spi_block_erase_20,
17008 }, {
17009 .eraseblocks = { {32 * 1024, 64} },
17010 .block_erase = spi_block_erase_52,
17011 }, {
17012 .eraseblocks = { {64 * 1024, 32} },
17013 .block_erase = spi_block_erase_d8,
17014 }, {
17015 .eraseblocks = { {2 * 1024 * 1024, 1} },
17016 .block_erase = spi_block_erase_60,
17017 }, {
17018 .eraseblocks = { {2 * 1024 * 1024, 1} },
17019 .block_erase = spi_block_erase_c7,
17020 }
17021 },
17022 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17023 .unlock = spi_disable_blockprotect,
17024 .write = spi_chip_write_256,
17025 .read = spi_chip_read,
17026 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17027 },
17028
17029 {
17030 .vendor = "Winbond",
17031 .name = "W25Q20.W",
17032 .bustype = BUS_SPI,
17033 .manufacture_id = WINBOND_NEX_ID,
17034 .model_id = WINBOND_NEX_W25Q20_W,
17035 .total_size = 256,
17036 .page_size = 256,
17037 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17038 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17039 .tested = TEST_UNTESTED,
17040 .probe = probe_spi_rdid,
17041 .probe_timing = TIMING_ZERO,
17042 .block_erasers =
17043 {
17044 {
17045 .eraseblocks = { {4 * 1024, 64} },
17046 .block_erase = spi_block_erase_20,
17047 }, {
17048 .eraseblocks = { {32 * 1024, 8} },
17049 .block_erase = spi_block_erase_52,
17050 }, {
17051 .eraseblocks = { {64 * 1024, 4} },
17052 .block_erase = spi_block_erase_d8,
17053 }, {
17054 .eraseblocks = { {256 * 1024, 1} },
17055 .block_erase = spi_block_erase_60,
17056 }, {
17057 .eraseblocks = { {256 * 1024, 1} },
17058 .block_erase = spi_block_erase_c7,
17059 }
17060 },
17061 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17062 .unlock = spi_disable_blockprotect,
17063 .write = spi_chip_write_256,
17064 .read = spi_chip_read,
17065 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17066 },
17067
17068 {
17069 .vendor = "Winbond",
Boris Baykovaa6c3742016-06-11 18:29:01 +020017070 .name = "W25Q256.V",
17071 .bustype = BUS_SPI,
17072 .manufacture_id = WINBOND_NEX_ID,
17073 .model_id = WINBOND_NEX_W25Q256_V,
17074 .total_size = 32768,
17075 .page_size = 256,
17076 /* supports SFDP */
17077 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17078 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
Nico Huberaac81422017-11-10 22:54:13 +010017079 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
17080 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
Angel Pons3130cbd2018-09-30 19:32:30 +020017081 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017082 .probe = probe_spi_rdid,
17083 .probe_timing = TIMING_ZERO,
17084 .block_erasers =
17085 {
17086 {
17087 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020017088 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017089 }, {
17090 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020017091 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017092 }, {
17093 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020017094 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017095 }, {
17096 .eraseblocks = { {32 * 1024 * 1024, 1} },
17097 .block_erase = spi_block_erase_60,
17098 }, {
17099 .eraseblocks = { {32 * 1024 * 1024, 1} },
17100 .block_erase = spi_block_erase_c7,
17101 }
17102 },
17103 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17104 .unlock = spi_disable_blockprotect,
17105 .write = spi_chip_write_256,
17106 .read = spi_chip_read,
17107 .voltage = {2700, 3600},
17108 },
17109
17110 {
17111 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000017112 .name = "W25Q256JV_M",
17113 .bustype = BUS_SPI,
17114 .manufacture_id = WINBOND_NEX_ID,
17115 .model_id = WINBOND_NEX_W25Q256JV_M,
17116 .total_size = 32768,
17117 .page_size = 256,
17118 /* supports SFDP */
17119 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17120 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
17121 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17122 .tested = TEST_OK_PREW,
17123 .probe = probe_spi_rdid,
17124 .probe_timing = TIMING_ZERO,
17125 .block_erasers =
17126 {
17127 {
17128 .eraseblocks = { {4 * 1024, 8192} },
17129 .block_erase = spi_block_erase_21,
17130 }, {
17131 .eraseblocks = { {4 * 1024, 8192} },
17132 .block_erase = spi_block_erase_20,
17133 }, {
17134 .eraseblocks = { {32 * 1024, 1024} },
17135 .block_erase = spi_block_erase_52,
17136 }, {
17137 .eraseblocks = { {64 * 1024, 512} },
17138 .block_erase = spi_block_erase_dc,
17139 }, {
17140 .eraseblocks = { {64 * 1024, 512} },
17141 .block_erase = spi_block_erase_d8,
17142 }, {
17143 .eraseblocks = { {32 * 1024 * 1024, 1} },
17144 .block_erase = spi_block_erase_60,
17145 }, {
17146 .eraseblocks = { {32 * 1024 * 1024, 1} },
17147 .block_erase = spi_block_erase_c7,
17148 }
17149 },
17150 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17151 .unlock = spi_disable_blockprotect,
17152 .write = spi_chip_write_256,
17153 .read = spi_chip_read,
17154 .voltage = {2700, 3600},
17155 },
17156
17157 {
17158 .vendor = "Winbond",
el-coderon01209852020-04-29 12:12:53 +020017159 .name = "W25Q256.W",
17160 .bustype = BUS_SPI,
17161 .manufacture_id = WINBOND_NEX_ID,
17162 .model_id = WINBOND_NEX_W25Q256_W,
17163 .total_size = 32768,
17164 .page_size = 256,
17165 /* supports SFDP */
17166 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17167 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
17168 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
17169 .tested = TEST_OK_PREW,
17170 .probe = probe_spi_rdid,
17171 .probe_timing = TIMING_ZERO,
17172 .block_erasers =
17173 {
17174 {
17175 .eraseblocks = { {4 * 1024, 8192} },
17176 .block_erase = spi_block_erase_20,
17177 }, {
17178 .eraseblocks = { {32 * 1024, 1024} },
17179 .block_erase = spi_block_erase_52,
17180 }, {
17181 .eraseblocks = { {64 * 1024, 512} },
17182 .block_erase = spi_block_erase_d8,
17183 }, {
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 = {1650, 1950},
17196 },
17197
17198 {
17199 .vendor = "Winbond",
David Hendricks31532602020-08-16 17:14:56 -070017200 .name = "W25Q256JW_DTR",
17201 .bustype = BUS_SPI,
17202 .manufacture_id = WINBOND_NEX_ID,
17203 .model_id = WINBOND_NEX_W25Q256_DTR,
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 = {1700, 1950},
17243 },
17244
17245 {
17246 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017247 .name = "W25Q32.V",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017248 .bustype = BUS_SPI,
17249 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017250 .model_id = WINBOND_NEX_W25Q32_V,
17251 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017252 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017253 /* supports SFDP */
17254 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017255 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017256 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017257 .probe = probe_spi_rdid,
17258 .probe_timing = TIMING_ZERO,
17259 .block_erasers =
17260 {
17261 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017262 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017263 .block_erase = spi_block_erase_20,
17264 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017265 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017266 .block_erase = spi_block_erase_52,
17267 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017268 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017269 .block_erase = spi_block_erase_d8,
17270 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017271 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017272 .block_erase = spi_block_erase_60,
17273 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017274 .eraseblocks = { {4 * 1024 * 1024, 1} },
17275 .block_erase = spi_block_erase_c7,
17276 }
17277 },
17278 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17279 .unlock = spi_disable_blockprotect,
17280 .write = spi_chip_write_256,
17281 .read = spi_chip_read,
17282 .voltage = {2700, 3600},
17283 },
17284
17285 {
17286 .vendor = "Winbond",
17287 .name = "W25Q32.W",
17288 .bustype = BUS_SPI,
17289 .manufacture_id = WINBOND_NEX_ID,
17290 .model_id = WINBOND_NEX_W25Q32_W,
17291 .total_size = 4096,
17292 .page_size = 256,
17293 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17294 /* QPI enable 0x38, disable 0xFF */
17295 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17296 .tested = TEST_OK_PREW,
17297 .probe = probe_spi_rdid,
17298 .probe_timing = TIMING_ZERO,
17299 .block_erasers =
17300 {
17301 {
17302 .eraseblocks = { {4 * 1024, 1024} },
17303 .block_erase = spi_block_erase_20,
17304 }, {
17305 .eraseblocks = { {32 * 1024, 128} },
17306 .block_erase = spi_block_erase_52,
17307 }, {
17308 .eraseblocks = { {64 * 1024, 64} },
17309 .block_erase = spi_block_erase_d8,
17310 }, {
17311 .eraseblocks = { {4 * 1024 * 1024, 1} },
17312 .block_erase = spi_block_erase_60,
17313 }, {
17314 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017315 .block_erase = spi_block_erase_c7,
17316 }
17317 },
17318 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17319 .unlock = spi_disable_blockprotect,
17320 .write = spi_chip_write_256,
17321 .read = spi_chip_read,
17322 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17323 },
17324
17325 {
17326 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017327 .name = "W25Q40.V",
17328 .bustype = BUS_SPI,
17329 .manufacture_id = WINBOND_NEX_ID,
17330 .model_id = WINBOND_NEX_W25Q40_V,
17331 .total_size = 512,
17332 .page_size = 256,
17333 /* supports SFDP */
17334 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17335 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17336 .tested = TEST_OK_PREW,
17337 .probe = probe_spi_rdid,
17338 .probe_timing = TIMING_ZERO,
17339 .block_erasers =
17340 {
17341 {
17342 .eraseblocks = { {4 * 1024, 128} },
17343 .block_erase = spi_block_erase_20,
17344 }, {
17345 .eraseblocks = { {32 * 1024, 16} },
17346 .block_erase = spi_block_erase_52,
17347 }, {
17348 .eraseblocks = { {64 * 1024, 8} },
17349 .block_erase = spi_block_erase_d8,
17350 }, {
17351 .eraseblocks = { {512 * 1024, 1} },
17352 .block_erase = spi_block_erase_60,
17353 }, {
17354 .eraseblocks = { {512 * 1024, 1} },
17355 .block_erase = spi_block_erase_c7,
17356 }
17357 },
17358 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17359 .unlock = spi_disable_blockprotect,
17360 .write = spi_chip_write_256, /* Multi I/O supported */
17361 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17362 .voltage = {2700, 3600},
17363 },
17364
17365 {
17366 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020017367 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017368 .bustype = BUS_SPI,
17369 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020017370 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017371 .total_size = 512,
17372 .page_size = 256,
17373 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17374 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020017375 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017376 .probe = probe_spi_rdid,
17377 .probe_timing = TIMING_ZERO,
17378 .block_erasers =
17379 {
17380 {
17381 .eraseblocks = { {4 * 1024, 128} },
17382 .block_erase = spi_block_erase_20,
17383 }, {
17384 .eraseblocks = { {32 * 1024, 16} },
17385 .block_erase = spi_block_erase_52,
17386 }, {
17387 .eraseblocks = { {64 * 1024, 8} },
17388 .block_erase = spi_block_erase_d8,
17389 }, {
17390 .eraseblocks = { {512 * 1024, 1} },
17391 .block_erase = spi_block_erase_60,
17392 }, {
17393 .eraseblocks = { {512 * 1024, 1} },
17394 .block_erase = spi_block_erase_c7,
17395 }
17396 },
17397 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17398 .unlock = spi_disable_blockprotect,
17399 .write = spi_chip_write_256,
17400 .read = spi_chip_read,
17401 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17402 },
17403
17404 {
17405 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020017406 .name = "W25Q40EW",
17407 .bustype = BUS_SPI,
17408 .manufacture_id = WINBOND_NEX_ID,
17409 .model_id = WINBOND_NEX_W25Q40EW,
17410 .total_size = 512,
17411 .page_size = 256,
17412 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17413 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green07b8a172019-09-23 16:47:05 +100017414 .tested = TEST_OK_PREW,
Nico Huber25683572018-03-30 13:50:13 +020017415 .probe = probe_spi_rdid,
17416 .probe_timing = TIMING_ZERO,
17417 .block_erasers =
17418 {
17419 {
17420 .eraseblocks = { {4 * 1024, 128} },
17421 .block_erase = spi_block_erase_20,
17422 }, {
17423 .eraseblocks = { {32 * 1024, 16} },
17424 .block_erase = spi_block_erase_52,
17425 }, {
17426 .eraseblocks = { {64 * 1024, 8} },
17427 .block_erase = spi_block_erase_d8,
17428 }, {
17429 .eraseblocks = { {512 * 1024, 1} },
17430 .block_erase = spi_block_erase_60,
17431 }, {
17432 .eraseblocks = { {512 * 1024, 1} },
17433 .block_erase = spi_block_erase_c7,
17434 }
17435 },
17436 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17437 .unlock = spi_disable_blockprotect,
17438 .write = spi_chip_write_256,
17439 .read = spi_chip_read,
17440 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
17441 },
17442
Stanislav Sedovf5775442018-03-07 14:16:51 -080017443 {
17444 .vendor = "Winbond",
Joel Stanley55439612019-07-27 19:25:35 +093017445 .name = "W25Q512JV",
17446 .bustype = BUS_SPI,
17447 .manufacture_id = WINBOND_NEX_ID,
17448 .model_id = WINBOND_NEX_W25Q512JV,
17449 .total_size = 64 * 1024,
17450 .page_size = 256,
17451 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17452 .tested = TEST_OK_PREW,
17453 .probe = probe_spi_rdid,
17454 .probe_timing = TIMING_ZERO,
17455 .block_erasers =
17456 {
17457 {
17458 .eraseblocks = { {4 * 1024, 16384} },
17459 .block_erase = spi_block_erase_21,
17460 }, {
17461 .eraseblocks = { {4 * 1024, 16384} },
17462 .block_erase = spi_block_erase_20,
17463 }, {
17464 .eraseblocks = { {32 * 1024, 2048} },
17465 .block_erase = spi_block_erase_52,
17466 }, {
17467 .eraseblocks = { {64 * 1024, 1024} },
17468 .block_erase = spi_block_erase_dc,
17469 }, {
17470 .eraseblocks = { {64 * 1024, 1024} },
17471 .block_erase = spi_block_erase_d8,
17472 }, {
17473 .eraseblocks = { {64 * 1024 * 1024, 1} },
17474 .block_erase = spi_block_erase_60,
17475 }, {
17476 .eraseblocks = { {64 * 1024 * 1024, 1} },
17477 .block_erase = spi_block_erase_c7,
17478 }
17479 },
17480 .printlock = spi_prettyprint_status_register_plain,
17481 .unlock = spi_disable_blockprotect,
17482 .write = spi_chip_write_256,
17483 .read = spi_chip_read,
17484 .voltage = {2700, 3600},
17485 },
17486
17487 {
17488 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017489 .name = "W25Q64.V",
Stanislav Sedovf5775442018-03-07 14:16:51 -080017490 .bustype = BUS_SPI,
17491 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017492 .model_id = WINBOND_NEX_W25Q64_V,
17493 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080017494 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017495 /* supports SFDP */
17496 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Stanislav Sedovf5775442018-03-07 14:16:51 -080017497 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17498 .tested = TEST_OK_PREW,
17499 .probe = probe_spi_rdid,
17500 .probe_timing = TIMING_ZERO,
17501 .block_erasers =
17502 {
17503 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017504 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017505 .block_erase = spi_block_erase_20,
17506 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017507 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017508 .block_erase = spi_block_erase_52,
17509 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017510 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017511 .block_erase = spi_block_erase_d8,
17512 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017513 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017514 .block_erase = spi_block_erase_60,
17515 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017516 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017517 .block_erase = spi_block_erase_c7,
17518 }
17519 },
17520 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17521 .unlock = spi_disable_blockprotect,
17522 .write = spi_chip_write_256,
17523 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017524 .voltage = {2700, 3600},
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017525 },
17526
17527 {
17528 .vendor = "Winbond",
17529 .name = "W25Q64.W",
17530 .bustype = BUS_SPI,
17531 .manufacture_id = WINBOND_NEX_ID,
17532 .model_id = WINBOND_NEX_W25Q64_W,
17533 .total_size = 8192,
17534 .page_size = 256,
17535 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17536 /* QPI enable 0x38, disable 0xFF */
17537 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000017538 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017539 .probe = probe_spi_rdid,
17540 .probe_timing = TIMING_ZERO,
17541 .block_erasers =
17542 {
17543 {
17544 .eraseblocks = { {4 * 1024, 2048} },
17545 .block_erase = spi_block_erase_20,
17546 }, {
17547 .eraseblocks = { {32 * 1024, 256} },
17548 .block_erase = spi_block_erase_52,
17549 }, {
17550 .eraseblocks = { {64 * 1024, 128} },
17551 .block_erase = spi_block_erase_d8,
17552 }, {
17553 .eraseblocks = { {8 * 1024 * 1024, 1} },
17554 .block_erase = spi_block_erase_60,
17555 }, {
17556 .eraseblocks = { {8 * 1024 * 1024, 1} },
17557 .block_erase = spi_block_erase_c7,
17558 }
17559 },
17560 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17561 .unlock = spi_disable_blockprotect,
17562 .write = spi_chip_write_256,
17563 .read = spi_chip_read,
17564 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000017565 },
17566
17567 {
17568 .vendor = "Winbond",
Scott Chao1bbc5012020-04-08 22:10:50 +080017569 .name = "W25Q64JW",
17570 .bustype = BUS_SPI,
17571 .manufacture_id = WINBOND_NEX_ID,
17572 .model_id = WINBOND_NEX_W25Q64JW,
17573 .total_size = 8192,
17574 .page_size = 256,
17575 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17576 /* QPI enable 0x38, disable 0xFF */
17577 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17578 .tested = TEST_OK_PREW,
17579 .probe = probe_spi_rdid,
17580 .probe_timing = TIMING_ZERO,
17581 .block_erasers =
17582 {
17583 {
17584 .eraseblocks = { {4 * 1024, 2048} },
17585 .block_erase = spi_block_erase_20,
17586 }, {
17587 .eraseblocks = { {32 * 1024, 256} },
17588 .block_erase = spi_block_erase_52,
17589 }, {
17590 .eraseblocks = { {64 * 1024, 128} },
17591 .block_erase = spi_block_erase_d8,
17592 }, {
17593 .eraseblocks = { {8 * 1024 * 1024, 1} },
17594 .block_erase = spi_block_erase_60,
17595 }, {
17596 .eraseblocks = { {8 * 1024 * 1024, 1} },
17597 .block_erase = spi_block_erase_c7,
17598 }
17599 },
17600 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17601 .unlock = spi_disable_blockprotect,
17602 .write = spi_chip_write_256,
17603 .read = spi_chip_read,
17604 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17605 },
17606
17607 {
17608 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017609 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020017610 .bustype = BUS_SPI,
17611 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017612 .model_id = WINBOND_NEX_W25Q80_V,
17613 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020017614 .page_size = 256,
17615 /* supports SFDP */
17616 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100017617 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks48729d32017-12-08 14:44:07 -080017618 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020017619 .probe = probe_spi_rdid,
17620 .probe_timing = TIMING_ZERO,
17621 .block_erasers =
17622 {
17623 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017624 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017625 .block_erase = spi_block_erase_20,
17626 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017627 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017628 .block_erase = spi_block_erase_52,
17629 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017630 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017631 .block_erase = spi_block_erase_d8,
17632 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017633 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017634 .block_erase = spi_block_erase_60,
17635 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017636 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017637 .block_erase = spi_block_erase_c7,
17638 }
17639 },
17640 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17641 .unlock = spi_disable_blockprotect,
17642 .write = spi_chip_write_256,
17643 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017644 .voltage = {2700, 3600},
17645 },
17646
17647 {
17648 .vendor = "Winbond",
17649 .name = "W25Q80BW",
17650 .bustype = BUS_SPI,
17651 .manufacture_id = WINBOND_NEX_ID,
17652 .model_id = WINBOND_NEX_W25Q80BW,
17653 .total_size = 1024,
17654 .page_size = 256,
17655 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17656 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17657 .tested = TEST_OK_PREW,
17658 .probe = probe_spi_rdid,
17659 .probe_timing = TIMING_ZERO,
17660 .block_erasers =
17661 {
17662 {
17663 .eraseblocks = { {4 * 1024, 256} },
17664 .block_erase = spi_block_erase_20,
17665 }, {
17666 .eraseblocks = { {32 * 1024, 32} },
17667 .block_erase = spi_block_erase_52,
17668 }, {
17669 .eraseblocks = { {64 * 1024, 16} },
17670 .block_erase = spi_block_erase_d8,
17671 }, {
17672 .eraseblocks = { {1 * 1024 * 1024, 1} },
17673 .block_erase = spi_block_erase_60,
17674 }, {
17675 .eraseblocks = { {1 * 1024 * 1024, 1} },
17676 .block_erase = spi_block_erase_c7,
17677 }
17678 },
17679 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17680 .unlock = spi_disable_blockprotect,
17681 .write = spi_chip_write_256,
17682 .read = spi_chip_read,
17683 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17684 },
17685
17686 {
17687 .vendor = "Winbond",
17688 .name = "W25Q80EW",
17689 .bustype = BUS_SPI,
17690 .manufacture_id = WINBOND_NEX_ID,
17691 .model_id = WINBOND_NEX_W25Q80EW,
17692 .total_size = 1024,
17693 .page_size = 256,
17694 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17695 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17696 .tested = TEST_OK_PREW,
17697 .probe = probe_spi_rdid,
17698 .probe_timing = TIMING_ZERO,
17699 .block_erasers =
17700 {
17701 {
17702 .eraseblocks = { {4 * 1024, 256} },
17703 .block_erase = spi_block_erase_20,
17704 }, {
17705 .eraseblocks = { {32 * 1024, 32} },
17706 .block_erase = spi_block_erase_52,
17707 }, {
17708 .eraseblocks = { {64 * 1024, 16} },
17709 .block_erase = spi_block_erase_d8,
17710 }, {
17711 .eraseblocks = { {1 * 1024 * 1024, 1} },
17712 .block_erase = spi_block_erase_60,
17713 }, {
17714 .eraseblocks = { {1 * 1024 * 1024, 1} },
17715 .block_erase = spi_block_erase_c7,
17716 }
17717 },
17718 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17719 .unlock = spi_disable_blockprotect,
17720 .write = spi_chip_write_256,
17721 .read = spi_chip_read,
17722 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nico Huber70eed9f2017-04-24 22:19:27 +020017723 },
17724
17725 {
17726 .vendor = "Winbond",
Jacob Appelbaumebbdc022019-09-02 09:10:43 -040017727 .name = "W25X05",
17728 .bustype = BUS_SPI,
17729 .manufacture_id = WINBOND_NEX_ID,
17730 .model_id = WINBOND_NEX_W25X05,
17731 .total_size = 64,
17732 .page_size = 256,
17733 .feature_bits = FEATURE_WRSR_WREN,
17734 .tested = TEST_OK_PREW,
17735 .probe = probe_spi_rdid,
17736 .probe_timing = TIMING_ZERO,
17737 .block_erasers =
17738 {
17739 {
17740 .eraseblocks = { {4 * 1024, 16} },
17741 .block_erase = spi_block_erase_20,
17742 }, {
17743 .eraseblocks = { {32 * 1024, 2} },
17744 .block_erase = spi_block_erase_52,
17745 }, {
17746 .eraseblocks = { {64 * 1024, 1} },
17747 .block_erase = spi_block_erase_d8,
17748 }
17749 },
17750 .printlock = spi_prettyprint_status_register_plain,
17751 .unlock = spi_disable_blockprotect,
17752 .write = spi_chip_write_256,
17753 .read = spi_chip_read,
17754 .voltage = {2300, 3600},
17755 },
17756
17757 {
17758 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017759 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017760 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017761 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017762 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017763 .total_size = 128,
17764 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017765 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000017766 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017767 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017768 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017769 .block_erasers =
17770 {
17771 {
17772 .eraseblocks = { {4 * 1024, 32} },
17773 .block_erase = spi_block_erase_20,
17774 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017775 .eraseblocks = { {64 * 1024, 2} },
17776 .block_erase = spi_block_erase_d8,
17777 }, {
17778 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017779 .block_erase = spi_block_erase_c7,
17780 }
17781 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017782 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017783 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000017784 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017785 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017786 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017787 },
17788
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017789 {
17790 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017791 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017792 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000017793 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017794 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000017795 .total_size = 2048,
17796 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017797 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000017798 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000017799 .probe = probe_spi_rdid,
17800 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017801 .block_erasers =
17802 {
17803 {
17804 .eraseblocks = { {4 * 1024, 512} },
17805 .block_erase = spi_block_erase_20,
17806 }, {
17807 .eraseblocks = { {32 * 1024, 64} },
17808 .block_erase = spi_block_erase_52,
17809 }, {
17810 .eraseblocks = { {64 * 1024, 32} },
17811 .block_erase = spi_block_erase_d8,
17812 }, {
17813 .eraseblocks = { {2 * 1024 * 1024, 1} },
17814 .block_erase = spi_block_erase_60,
17815 }, {
17816 .eraseblocks = { {2 * 1024 * 1024, 1} },
17817 .block_erase = spi_block_erase_c7,
17818 }
17819 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017820 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017821 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000017822 .write = spi_chip_write_256,
17823 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017824 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000017825 },
17826
17827 {
17828 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017829 .name = "W25X20",
17830 .bustype = BUS_SPI,
17831 .manufacture_id = WINBOND_NEX_ID,
17832 .model_id = WINBOND_NEX_W25X20,
17833 .total_size = 256,
17834 .page_size = 256,
17835 .feature_bits = FEATURE_WRSR_WREN,
17836 .tested = TEST_OK_PREW,
17837 .probe = probe_spi_rdid,
17838 .probe_timing = TIMING_ZERO,
17839 .block_erasers =
17840 {
17841 {
17842 .eraseblocks = { {4 * 1024, 64} },
17843 .block_erase = spi_block_erase_20,
17844 }, {
17845 .eraseblocks = { {64 * 1024, 4} },
17846 .block_erase = spi_block_erase_d8,
17847 }, {
17848 .eraseblocks = { {256 * 1024, 1} },
17849 .block_erase = spi_block_erase_c7,
17850 }
17851 },
17852 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17853 .unlock = spi_disable_blockprotect,
17854 .write = spi_chip_write_256,
17855 .read = spi_chip_read,
17856 .voltage = {2700, 3600},
17857 },
17858
17859 {
17860 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017861 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017862 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000017863 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017864 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000017865 .total_size = 4096,
17866 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017867 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000017868 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000017869 .probe = probe_spi_rdid,
17870 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017871 .block_erasers =
17872 {
17873 {
17874 .eraseblocks = { {4 * 1024, 1024} },
17875 .block_erase = spi_block_erase_20,
17876 }, {
17877 .eraseblocks = { {32 * 1024, 128} },
17878 .block_erase = spi_block_erase_52,
17879 }, {
17880 .eraseblocks = { {64 * 1024, 64} },
17881 .block_erase = spi_block_erase_d8,
17882 }, {
17883 .eraseblocks = { {4 * 1024 * 1024, 1} },
17884 .block_erase = spi_block_erase_60,
17885 }, {
17886 .eraseblocks = { {4 * 1024 * 1024, 1} },
17887 .block_erase = spi_block_erase_c7,
17888 }
17889 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017890 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017891 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000017892 .write = spi_chip_write_256,
17893 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017894 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000017895 },
17896
17897 {
17898 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017899 .name = "W25X40",
17900 .bustype = BUS_SPI,
17901 .manufacture_id = WINBOND_NEX_ID,
17902 .model_id = WINBOND_NEX_W25X40,
17903 .total_size = 512,
17904 .page_size = 256,
17905 .feature_bits = FEATURE_WRSR_WREN,
17906 .tested = TEST_OK_PREW,
17907 .probe = probe_spi_rdid,
17908 .probe_timing = TIMING_ZERO,
17909 .block_erasers =
17910 {
17911 {
17912 .eraseblocks = { {4 * 1024, 128} },
17913 .block_erase = spi_block_erase_20,
17914 }, {
17915 .eraseblocks = { {64 * 1024, 8} },
17916 .block_erase = spi_block_erase_d8,
17917 }, {
17918 .eraseblocks = { {512 * 1024, 1} },
17919 .block_erase = spi_block_erase_c7,
17920 }
17921 },
17922 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17923 .unlock = spi_disable_blockprotect,
17924 .write = spi_chip_write_256,
17925 .read = spi_chip_read,
17926 .voltage = {2700, 3600},
17927 },
17928
17929 {
17930 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017931 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017932 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000017933 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017934 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000017935 .total_size = 8192,
17936 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017937 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000017938 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000017939 .probe = probe_spi_rdid,
17940 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017941 .block_erasers =
17942 {
17943 {
17944 .eraseblocks = { {4 * 1024, 2048} },
17945 .block_erase = spi_block_erase_20,
17946 }, {
17947 .eraseblocks = { {32 * 1024, 256} },
17948 .block_erase = spi_block_erase_52,
17949 }, {
17950 .eraseblocks = { {64 * 1024, 128} },
17951 .block_erase = spi_block_erase_d8,
17952 }, {
17953 .eraseblocks = { {8 * 1024 * 1024, 1} },
17954 .block_erase = spi_block_erase_60,
17955 }, {
17956 .eraseblocks = { {8 * 1024 * 1024, 1} },
17957 .block_erase = spi_block_erase_c7,
17958 }
17959 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017960 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017961 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000017962 .write = spi_chip_write_256,
17963 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017964 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000017965 },
17966
17967 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100017968 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017969 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100017970 .bustype = BUS_SPI,
17971 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017972 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100017973 .total_size = 1024,
17974 .page_size = 256,
17975 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017976 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100017977 .probe = probe_spi_rdid,
17978 .probe_timing = TIMING_ZERO,
17979 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080017980 {
17981 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017982 .eraseblocks = { {4 * 1024, 256} },
17983 .block_erase = spi_block_erase_20,
17984 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080017985 .eraseblocks = { {64 * 1024, 16} },
17986 .block_erase = spi_block_erase_d8,
17987 }, {
17988 .eraseblocks = { {1024 * 1024, 1} },
17989 .block_erase = spi_block_erase_c7,
17990 }
17991 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100017992 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17993 .unlock = spi_disable_blockprotect,
17994 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017995 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100017996 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080017997 },
17998
Alan Greenf29ea362019-06-27 17:14:02 +100017999 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
18000 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000018001 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018002 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018003 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018004 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018005 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018006 .total_size = 128,
18007 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018008 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000018009 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018010 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018011 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018012 .block_erasers =
18013 {
18014 {
18015 .eraseblocks = { {128 * 1024, 1} },
18016 .block_erase = erase_chip_block_jedec,
18017 }
18018 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018019 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018020 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000018021 },
18022
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018023 {
18024 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018025 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
18026 .bustype = BUS_PARALLEL,
18027 .manufacture_id = WINBOND_ID,
18028 .model_id = WINBOND_W29C010,
18029 .total_size = 128,
18030 .page_size = 128,
18031 .feature_bits = FEATURE_LONG_RESET,
18032 .tested = TEST_OK_PREW,
18033 .probe = probe_w29ee011,
18034 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
18035 .block_erasers =
18036 {
18037 {
18038 .eraseblocks = { {128 * 1024, 1} },
18039 .block_erase = erase_chip_block_jedec,
18040 }
18041 },
18042 .write = write_jedec,
18043 .read = read_memmapped,
18044 },
18045
18046 {
18047 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018048 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018049 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018050 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018051 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018052 .total_size = 256,
18053 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018054 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018055 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018056 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018057 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018058 .block_erasers =
18059 {
18060 {
18061 .eraseblocks = { {256 * 1024, 1} },
18062 .block_erase = erase_chip_block_jedec,
18063 }
18064 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018065 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018066 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018067 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018068 },
18069
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018070 {
18071 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018072 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018073 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018074 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018075 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018076 .total_size = 512,
18077 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000018078 .feature_bits = FEATURE_LONG_RESET,
18079 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018080 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000018081 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018082 .block_erasers =
18083 {
18084 {
18085 .eraseblocks = { {512 * 1024, 1} },
18086 .block_erase = erase_chip_block_jedec,
18087 }
18088 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018089 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018090 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018091 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018092 },
18093
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018094 {
18095 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018096 .name = "W29C512A/W29EE512",
18097 .bustype = BUS_PARALLEL,
18098 .manufacture_id = WINBOND_ID,
18099 .model_id = WINBOND_W29C512A,
18100 .total_size = 64,
18101 .page_size = 128,
18102 .feature_bits = FEATURE_LONG_RESET,
18103 .tested = TEST_OK_PREW,
18104 .probe = probe_jedec,
18105 .probe_timing = 10,
18106 .block_erasers =
18107 {
18108 {
18109 .eraseblocks = { {64 * 1024, 1} },
18110 .block_erase = erase_chip_block_jedec,
18111 }
18112 },
18113 .write = write_jedec,
18114 .read = read_memmapped,
18115 .voltage = {4500, 5500},
18116 },
18117
18118 {
18119 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018120 .name = "W29GL032CB",
18121 .bustype = BUS_PARALLEL,
18122 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18123 .model_id = WINBOND_W29GL032CB,
18124 .total_size = 4096,
18125 .page_size = 128 * 1024, /* actual page size is 16 */
18126 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18127 .tested = TEST_UNTESTED,
18128 .probe = probe_jedec_29gl,
18129 .probe_timing = TIMING_ZERO,
18130 .block_erasers =
18131 {
18132 {
18133 .eraseblocks = {
18134 {8 * 1024, 8},
18135 {64 * 1024, 63},
18136 },
18137 .block_erase = erase_sector_jedec,
18138 }, {
18139 .eraseblocks = { {4 * 1024 * 1024, 1} },
18140 .block_erase = erase_chip_block_jedec,
18141 },
18142 },
18143 .write = write_jedec_1,
18144 .read = read_memmapped,
18145 .voltage = {2700, 3600},
18146 },
18147
18148 {
18149 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018150 .name = "W29GL032CH/L",
18151 .bustype = BUS_PARALLEL,
18152 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18153 .model_id = WINBOND_W29GL032CHL,
18154 .total_size = 4096,
18155 .page_size = 128 * 1024, /* actual page size is 16 */
18156 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18157 .tested = TEST_UNTESTED,
18158 .probe = probe_jedec_29gl,
18159 .probe_timing = TIMING_ZERO,
18160 .block_erasers =
18161 {
18162 {
18163 .eraseblocks = { {64 * 1024, 64} },
18164 .block_erase = erase_sector_jedec,
18165 }, {
18166 .eraseblocks = { {4 * 1024 * 1024, 1} },
18167 .block_erase = erase_chip_block_jedec,
18168 },
18169 },
18170 .write = write_jedec_1,
18171 .read = read_memmapped,
18172 .voltage = {2700, 3600},
18173 },
18174
18175 {
18176 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018177 .name = "W29GL032CT",
18178 .bustype = BUS_PARALLEL,
18179 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18180 .model_id = WINBOND_W29GL032CT,
18181 .total_size = 4096,
18182 .page_size = 128 * 1024, /* actual page size is 16 */
18183 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18184 .tested = TEST_UNTESTED,
18185 .probe = probe_jedec_29gl,
18186 .probe_timing = TIMING_ZERO,
18187 .block_erasers =
18188 {
18189 {
18190 .eraseblocks = {
18191 {64 * 1024, 63},
18192 {8 * 1024, 8},
18193 },
18194 .block_erase = erase_sector_jedec,
18195 }, {
18196 .eraseblocks = { {4 * 1024 * 1024, 1} },
18197 .block_erase = erase_chip_block_jedec,
18198 },
18199 },
18200 .write = write_jedec_1,
18201 .read = read_memmapped,
18202 .voltage = {2700, 3600},
18203 },
18204
18205 {
18206 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018207 .name = "W29GL064CB",
18208 .bustype = BUS_PARALLEL,
18209 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18210 .model_id = WINBOND_W29GL064CB,
18211 .total_size = 8192,
18212 .page_size = 128 * 1024, /* actual page size is 16 */
18213 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18214 .tested = TEST_UNTESTED,
18215 .probe = probe_jedec_29gl,
18216 .probe_timing = TIMING_ZERO,
18217 .block_erasers =
18218 {
18219 {
18220 .eraseblocks = {
18221 {8 * 1024, 8},
18222 {64 * 1024, 127},
18223 },
18224 .block_erase = erase_sector_jedec,
18225 }, {
18226 .eraseblocks = { {8 * 1024 * 1024, 1} },
18227 .block_erase = erase_chip_block_jedec,
18228 },
18229 },
18230 .write = write_jedec_1,
18231 .read = read_memmapped,
18232 .voltage = {2700, 3600},
18233 },
18234
18235 {
18236 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018237 .name = "W29GL064CH/L",
18238 .bustype = BUS_PARALLEL,
18239 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18240 .model_id = WINBOND_W29GL064CHL,
18241 .total_size = 8192,
18242 .page_size = 128 * 1024, /* actual page size is 16 */
18243 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18244 .tested = TEST_UNTESTED,
18245 .probe = probe_jedec_29gl,
18246 .probe_timing = TIMING_ZERO,
18247 .block_erasers =
18248 {
18249 {
18250 .eraseblocks = { {64 * 1024, 128} },
18251 .block_erase = erase_sector_jedec,
18252 }, {
18253 .eraseblocks = { {8 * 1024 * 1024, 1} },
18254 .block_erase = erase_chip_block_jedec,
18255 },
18256 },
18257 .write = write_jedec_1,
18258 .read = read_memmapped,
18259 .voltage = {2700, 3600},
18260 },
18261
18262 {
18263 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018264 .name = "W29GL064CT",
18265 .bustype = BUS_PARALLEL,
18266 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18267 .model_id = WINBOND_W29GL064CT,
18268 .total_size = 8192,
18269 .page_size = 128 * 1024, /* actual page size is 16 */
18270 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18271 .tested = TEST_UNTESTED,
18272 .probe = probe_jedec_29gl,
18273 .probe_timing = TIMING_ZERO,
18274 .block_erasers =
18275 {
18276 {
18277 .eraseblocks = {
18278 {64 * 1024, 127},
18279 {8 * 1024, 8},
18280 },
18281 .block_erase = erase_sector_jedec,
18282 }, {
18283 .eraseblocks = { {8 * 1024 * 1024, 1} },
18284 .block_erase = erase_chip_block_jedec,
18285 },
18286 },
18287 .write = write_jedec_1,
18288 .read = read_memmapped,
18289 .voltage = {2700, 3600},
18290 },
18291
18292 {
18293 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018294 .name = "W29GL128C",
18295 .bustype = BUS_PARALLEL,
18296 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18297 .model_id = WINBOND_W29GL128CHL,
18298 .total_size = 16384,
18299 .page_size = 128 * 1024, /* actual page size is 16 */
18300 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18301 .tested = TEST_UNTESTED,
18302 .probe = probe_jedec_29gl,
18303 .probe_timing = TIMING_ZERO,
18304 .block_erasers =
18305 {
18306 {
18307 .eraseblocks = { {128 * 1024, 128} },
18308 .block_erase = erase_sector_jedec,
18309 }, {
18310 .eraseblocks = { {16 * 1024 * 1024, 1} },
18311 .block_erase = erase_chip_block_jedec,
18312 },
18313 },
18314 .write = write_jedec_1,
18315 .read = read_memmapped,
18316 .voltage = {2700, 3600},
18317 },
18318
18319 {
18320 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000018321 .name = "W39F010",
18322 .bustype = BUS_PARALLEL,
18323 .manufacture_id = WINBOND_ID,
18324 .model_id = WINBOND_W39F010,
18325 .total_size = 128,
18326 .page_size = 4 * 1024,
18327 .feature_bits = FEATURE_EITHER_RESET,
18328 .tested = TEST_OK_PREW,
18329 .probe = probe_jedec,
18330 .probe_timing = 10,
18331 .block_erasers =
18332 {
18333 {
18334 .eraseblocks = { {4 * 1024, 32} },
18335 .block_erase = erase_block_jedec,
18336 }, {
18337 .eraseblocks = { {128 * 1024, 1} },
18338 .block_erase = erase_chip_block_jedec,
18339 }
18340 },
18341 .printlock = printlock_w39f010,
18342 .write = write_jedec_1,
18343 .read = read_memmapped,
18344 .voltage = {4500, 5500},
18345 },
18346
18347 {
18348 .vendor = "Winbond",
18349 .name = "W39L010",
18350 .bustype = BUS_PARALLEL,
18351 .manufacture_id = WINBOND_ID,
18352 .model_id = WINBOND_W39L010,
18353 .total_size = 128,
18354 .page_size = 4 * 1024,
18355 .feature_bits = FEATURE_EITHER_RESET,
18356 .tested = TEST_UNTESTED,
18357 .probe = probe_jedec,
18358 .probe_timing = 10,
18359 .block_erasers =
18360 {
18361 {
18362 .eraseblocks = { {4 * 1024, 32} },
18363 .block_erase = erase_block_jedec,
18364 }, {
18365 .eraseblocks = { {128 * 1024, 1} },
18366 .block_erase = erase_chip_block_jedec,
18367 }
18368 },
18369 .printlock = printlock_w39l010,
18370 .write = write_jedec_1,
18371 .read = read_memmapped,
18372 .voltage = {3000, 3600},
18373 },
18374
18375 {
18376 .vendor = "Winbond",
18377 .name = "W39L020",
18378 .bustype = BUS_PARALLEL,
18379 .manufacture_id = WINBOND_ID,
18380 .model_id = WINBOND_W39L020,
18381 .total_size = 256,
18382 .page_size = 4 * 1024,
18383 .feature_bits = FEATURE_EITHER_RESET,
18384 .tested = TEST_UNTESTED,
18385 .probe = probe_jedec,
18386 .probe_timing = 10,
18387 .block_erasers =
18388 {
18389 {
18390 .eraseblocks = { {4 * 1024, 64} },
18391 .block_erase = erase_block_jedec,
18392 }, {
18393 .eraseblocks = { {64 * 1024, 4} },
18394 .block_erase = erase_sector_jedec,
18395 }, {
18396 .eraseblocks = { {256 * 1024, 1} },
18397 .block_erase = erase_chip_block_jedec,
18398 }
18399 },
18400 .printlock = printlock_w39l020,
18401 .write = write_jedec_1,
18402 .read = read_memmapped,
18403 .voltage = {3000, 3600},
18404 },
18405
18406 {
18407 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000018408 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018409 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000018410 .manufacture_id = WINBOND_ID,
18411 .model_id = WINBOND_W39L040,
18412 .total_size = 512,
18413 .page_size = 64 * 1024,
18414 .feature_bits = FEATURE_EITHER_RESET,
18415 .tested = TEST_OK_PR,
18416 .probe = probe_jedec,
18417 .probe_timing = 10,
18418 .block_erasers =
18419 {
18420 {
18421 .eraseblocks = { {4 * 1024, 128} },
18422 .block_erase = erase_block_jedec,
18423 }, {
18424 .eraseblocks = { {64 * 1024, 8} },
18425 .block_erase = erase_sector_jedec,
18426 }, {
18427 .eraseblocks = { {512 * 1024, 1} },
18428 .block_erase = erase_chip_block_jedec,
18429 }
18430 },
18431 .printlock = printlock_w39l040,
18432 .write = write_jedec_1,
18433 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018434 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000018435 },
18436
18437 {
18438 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018439 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018440 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018441 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018442 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018443 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018444 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018445 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000018446 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018447 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000018448 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018449 .block_erasers =
18450 {
18451 {
18452 .eraseblocks = { {64 * 1024, 8} },
18453 .block_erase = erase_sector_jedec,
18454 }, {
18455 .eraseblocks = { {512 * 1024, 1} },
18456 .block_erase = erase_chip_block_jedec,
18457 }
18458 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018459 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000018460 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018461 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018462 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018463 },
18464
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018465 {
18466 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018467 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018468 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018469 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018470 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018471 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018472 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018473 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000018474 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018475 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000018476 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018477 .block_erasers =
18478 {
18479 {
18480 .eraseblocks = { {64 * 1024, 8} },
18481 .block_erase = erase_sector_jedec,
18482 }, {
18483 .eraseblocks = { {512 * 1024, 1} },
18484 .block_erase = erase_chip_block_jedec,
18485 }
18486 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018487 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000018488 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018489 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018490 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018491 },
18492
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018493 {
18494 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018495 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018496 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018497 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018498 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018499 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018500 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018501 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000018502 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000018503 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018504 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018505 .block_erasers =
18506 {
18507 {
18508 .eraseblocks = { {64 * 1024, 8} },
18509 .block_erase = erase_sector_jedec,
18510 }, {
18511 .eraseblocks = { {512 * 1024, 1} },
18512 .block_erase = erase_chip_block_jedec,
18513 }
18514 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000018515 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000018516 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018517 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018518 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018519 },
18520
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018521 {
18522 .vendor = "Winbond",
18523 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018524 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018525 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018526 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018527 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018528 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000018529 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000018530 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018531 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000018532 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018533 .block_erasers =
18534 {
18535 {
18536 .eraseblocks = { {4 * 1024, 128} },
18537 .block_erase = erase_block_jedec,
18538 }, {
18539 .eraseblocks = { {64 * 1024, 8} },
18540 .block_erase = erase_sector_jedec,
18541 }, {
18542 .eraseblocks = { {512 * 1024, 1} },
18543 .block_erase = erase_chip_block_jedec,
18544 }
18545 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018546 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000018547 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000018548 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018549 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018550 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018551 },
18552
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018553 {
18554 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018555 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018556 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018557 .manufacture_id = WINBOND_ID,
18558 .model_id = WINBOND_W39V040B,
18559 .total_size = 512,
18560 .page_size = 64 * 1024,
18561 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000018562 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018563 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000018564 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018565 .block_erasers =
18566 {
18567 {
18568 .eraseblocks = { {64 * 1024, 8} },
18569 .block_erase = erase_sector_jedec,
18570 }, {
18571 .eraseblocks = { {512 * 1024, 1} },
18572 .block_erase = erase_chip_block_jedec,
18573 }
18574 },
18575 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000018576 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018577 .write = write_jedec_1,
18578 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018579 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018580 },
18581
18582 {
18583 .vendor = "Winbond",
18584 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018585 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018586 .manufacture_id = WINBOND_ID,
18587 .model_id = WINBOND_W39V040C,
18588 .total_size = 512,
18589 .page_size = 64 * 1024,
18590 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000018591 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018592 .probe = probe_jedec,
18593 .probe_timing = 10,
18594 .block_erasers =
18595 {
18596 {
18597 .eraseblocks = { {64 * 1024, 8} },
18598 .block_erase = erase_sector_jedec,
18599 }, {
18600 .eraseblocks = { {512 * 1024, 1} },
18601 .block_erase = erase_chip_block_jedec,
18602 }
18603 },
18604 .printlock = printlock_w39v040fc,
18605 .write = write_jedec_1,
18606 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018607 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018608 },
18609
18610 {
18611 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018612 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018613 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018614 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018615 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018616 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000018617 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018618 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000018619 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018620 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000018621 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018622 .block_erasers =
18623 {
18624 {
18625 .eraseblocks = { {64 * 1024, 16} },
18626 .block_erase = erase_sector_jedec,
18627 }, {
18628 .eraseblocks = { {1024 * 1024, 1} },
18629 .block_erase = erase_chip_block_jedec,
18630 }
18631 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018632 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000018633 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018634 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018635 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018636 },
18637
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018638 {
18639 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018640 .name = "W39V080FA",
18641 .bustype = BUS_FWH,
18642 .manufacture_id = WINBOND_ID,
18643 .model_id = WINBOND_W39V080FA,
18644 .total_size = 1024,
18645 .page_size = 64 * 1024,
18646 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
18647 .tested = TEST_OK_PREW,
18648 .probe = probe_jedec,
18649 .probe_timing = 10,
18650 .block_erasers =
18651 {
18652 {
18653 .eraseblocks = { {64 * 1024, 16} },
18654 .block_erase = erase_sector_jedec,
18655 }, {
18656 .eraseblocks = { {1024 * 1024, 1} },
18657 .block_erase = erase_chip_block_jedec,
18658 }
18659 },
18660 .printlock = printlock_w39v080fa,
18661 .unlock = unlock_regspace2_uniform_64k,
18662 .write = write_jedec_1,
18663 .read = read_memmapped,
18664 .voltage = {3000, 3600}, /* Also has 12V fast program */
18665 },
18666
18667 {
18668 .vendor = "Winbond",
18669 .name = "W39V080FA (dual mode)",
18670 .bustype = BUS_FWH,
18671 .manufacture_id = WINBOND_ID,
18672 .model_id = WINBOND_W39V080FA_DM,
18673 .total_size = 512,
18674 .page_size = 64 * 1024,
18675 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
18676 .tested = TEST_UNTESTED,
18677 .probe = probe_jedec,
18678 .probe_timing = 10,
18679 .block_erasers =
18680 {
18681 {
18682 .eraseblocks = { {64 * 1024, 8} },
18683 .block_erase = erase_sector_jedec,
18684 }, {
18685 .eraseblocks = { {512 * 1024, 1} },
18686 .block_erase = erase_chip_block_jedec,
18687 }
18688 },
18689 .printlock = printlock_w39v080fa_dual,
18690 .write = write_jedec_1,
18691 .read = read_memmapped,
18692 .voltage = {3000, 3600}, /* Also has 12V fast program */
18693 },
18694
18695 {
18696 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018697 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018698 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018699 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018700 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018701 .total_size = 256,
18702 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018703 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000018704 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018705 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018706 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018707 .block_erasers =
18708 {
18709 {
18710 .eraseblocks = {
18711 {128 * 1024, 1},
18712 {96 * 1024, 1},
18713 {8 * 1024, 2},
18714 {16 * 1024, 1},
18715 },
18716 .block_erase = erase_sector_jedec,
18717 }, {
18718 .eraseblocks = { {256 * 1024, 1} },
18719 .block_erase = erase_chip_block_jedec,
18720 }
18721 },
Sean Nelson35727f72010-01-28 23:55:12 +000018722 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018723 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018724 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018725 },
18726
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018727 {
18728 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018729 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018730 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018731 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018732 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018733 .total_size = 256,
18734 .page_size = 128,
18735 .feature_bits = FEATURE_EITHER_RESET,
18736 .tested = TEST_OK_PROBE,
18737 .probe = probe_jedec,
18738 .probe_timing = 10,
18739 .block_erasers =
18740 {
18741 {
18742 .eraseblocks = { {256 * 1024, 1} },
18743 .block_erase = erase_chip_block_jedec,
18744 }
18745 },
18746 .write = write_jedec_1,
18747 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018748 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018749 },
18750
18751 {
18752 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018753 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018754 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018755 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018756 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018757 .total_size = 256,
18758 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018759 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018760 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018761 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018762 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018763 .block_erasers =
18764 {
18765 {
18766 .eraseblocks = {
18767 {64 * 1024, 3},
18768 {32 * 1024, 1},
18769 {8 * 1024, 2},
18770 {16 * 1024, 1},
18771 },
18772 .block_erase = erase_sector_jedec,
18773 }, {
18774 .eraseblocks = { {256 * 1024, 1} },
18775 .block_erase = erase_chip_block_jedec,
18776 }
18777 },
Sean Nelson35727f72010-01-28 23:55:12 +000018778 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018779 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018780 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018781 },
18782
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018783 {
18784 .vendor = "Winbond",
18785 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018786 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018787 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018788 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018789 .total_size = 256,
18790 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018791 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000018792 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018793 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018794 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018795 .block_erasers =
18796 {
18797 {
18798 .eraseblocks = {
18799 {64 * 1024, 3},
18800 {32 * 1024, 1},
18801 {8 * 1024, 2},
18802 {16 * 1024, 1},
18803 },
18804 .block_erase = erase_sector_jedec,
18805 }, {
18806 .eraseblocks = { {256 * 1024, 1} },
18807 .block_erase = erase_chip_block_jedec,
18808 }
18809 },
Sean Nelson35727f72010-01-28 23:55:12 +000018810 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018811 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018812 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018813 },
18814
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018815 {
luke heef884232020-12-28 18:22:21 +080018816 .vendor = "XMC",
18817 .name = "XM25QH128C",
18818 .bustype = BUS_SPI,
18819 .manufacture_id = ST_ID,
18820 .model_id = XMC_XM25QH128C,
18821 .total_size = 16384,
18822 .page_size = 256,
18823 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
18824 .tested = TEST_UNTESTED,
18825 .probe = probe_spi_rdid,
18826 .probe_timing = TIMING_ZERO,
18827 .block_erasers =
18828 {
18829 {
18830 .eraseblocks = { {4 * 1024, 4096} },
18831 .block_erase = spi_block_erase_20,
18832 }, {
18833 .eraseblocks = { {32 * 1024, 512} },
18834 .block_erase = spi_block_erase_52,
18835 }, {
18836 .eraseblocks = { {64 * 1024, 256} },
18837 .block_erase = spi_block_erase_d8,
18838 }, {
18839 .eraseblocks = { {16 * 1024 * 1024, 1} },
18840 .block_erase = spi_block_erase_60,
18841 }, {
18842 .eraseblocks = { {16 * 1024 * 1024, 1} },
18843 .block_erase = spi_block_erase_c7,
18844 }
18845 },
18846 .printlock = spi_prettyprint_status_register_plain,
18847 .unlock = spi_disable_blockprotect,
18848 .write = spi_chip_write_256,
18849 .read = spi_chip_read,
18850 .voltage = {2700, 3600},
18851 },
18852
18853 {
18854 .vendor = "XMC",
18855 .name = "XM25QH256C",
18856 .bustype = BUS_SPI,
18857 .manufacture_id = ST_ID,
18858 .model_id = XMC_XM25QH256C,
18859 .total_size = 32768,
18860 .page_size = 256,
18861 /* supports SFDP */
18862 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
18863 .tested = TEST_UNTESTED,
18864 .probe = probe_spi_rdid,
18865 .probe_timing = TIMING_ZERO,
18866 .block_erasers =
18867 {
18868 {
18869 .eraseblocks = { {4 * 1024, 8192} },
18870 .block_erase = spi_block_erase_21,
18871 }, {
18872 .eraseblocks = { {4 * 1024, 8192} },
18873 .block_erase = spi_block_erase_20,
18874 }, {
18875 .eraseblocks = { {32 * 1024, 1024} },
18876 .block_erase = spi_block_erase_52,
18877 }, {
18878 .eraseblocks = { {64 * 1024, 512} },
18879 .block_erase = spi_block_erase_dc,
18880 }, {
18881 .eraseblocks = { {64 * 1024, 512} },
18882 .block_erase = spi_block_erase_d8,
18883 }, {
18884 .eraseblocks = { {32 * 1024 * 1024, 1} },
18885 .block_erase = spi_block_erase_60,
18886 }, {
18887 .eraseblocks = { {32 * 1024 * 1024, 1} },
18888 .block_erase = spi_block_erase_c7,
18889 }
18890 },
18891 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18892 .unlock = spi_disable_blockprotect,
18893 .write = spi_chip_write_256,
18894 .read = spi_chip_read,
18895 .voltage = {2700, 3600},
18896 },
18897
18898 {
18899 .vendor = "XMC",
18900 .name = "XM25QH64C",
18901 .bustype = BUS_SPI,
18902 .manufacture_id = ST_ID,
18903 .model_id = XMC_XM25QH64C,
18904 .total_size = 8192,
18905 .page_size = 256,
18906 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
18907 .tested = TEST_UNTESTED,
18908 .probe = probe_spi_rdid,
18909 .probe_timing = TIMING_ZERO,
18910 .block_erasers =
18911 {
18912 {
18913 .eraseblocks = { {4 * 1024, 2048} },
18914 .block_erase = spi_block_erase_20,
18915 }, {
18916 .eraseblocks = { {32 * 1024, 256} },
18917 .block_erase = spi_block_erase_52,
18918 }, {
18919 .eraseblocks = { {64 * 1024, 128} },
18920 .block_erase = spi_block_erase_d8,
18921 }, {
18922 .eraseblocks = { {8 * 1024 * 1024, 1} },
18923 .block_erase = spi_block_erase_60,
18924 }, {
18925 .eraseblocks = { {8 * 1024 * 1024, 1} },
18926 .block_erase = spi_block_erase_c7,
18927 }
18928 },
18929 .printlock = spi_prettyprint_status_register_plain,
18930 .unlock = spi_disable_blockprotect,
18931 .write = spi_chip_write_256,
18932 .read = spi_chip_read,
18933 .voltage = {2700, 3600},
18934 },
18935
18936 {
18937 .vendor = "XMC",
18938 .name = "XM25QU128C",
18939 .bustype = BUS_SPI,
18940 .manufacture_id = ST_ID,
18941 .model_id = XMC_XM25QU128C,
18942 .total_size = 16384,
18943 .page_size = 256,
18944 /* supports SFDP */
18945 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
18946 .tested = TEST_UNTESTED,
18947 .probe = probe_spi_rdid,
18948 .probe_timing = TIMING_ZERO,
18949 .block_erasers =
18950 {
18951 {
18952 .eraseblocks = { {4 * 1024, 4096} },
18953 .block_erase = spi_block_erase_20,
18954 }, {
18955 .eraseblocks = { {32 * 1024, 512} },
18956 .block_erase = spi_block_erase_52,
18957 }, {
18958 .eraseblocks = { {64 * 1024, 256} },
18959 .block_erase = spi_block_erase_d8,
18960 }, {
18961 .eraseblocks = { {16 * 1024 * 1024, 1} },
18962 .block_erase = spi_block_erase_60,
18963 }, {
18964 .eraseblocks = { {16 * 1024 * 1024, 1} },
18965 .block_erase = spi_block_erase_c7,
18966 }
18967 },
18968 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18969 .unlock = spi_disable_blockprotect,
18970 .write = spi_chip_write_256,
18971 .read = spi_chip_read,
18972 .voltage = {1650, 1950},
18973 },
18974
18975 {
18976 .vendor = "XMC",
18977 .name = "XM25QU256C",
18978 .bustype = BUS_SPI,
18979 .manufacture_id = ST_ID,
18980 .model_id = XMC_XM25QU256C,
18981 .total_size = 32768,
18982 .page_size = 256,
18983 /* supports SFDP */
18984 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
18985 .tested = TEST_UNTESTED,
18986 .probe = probe_spi_rdid,
18987 .probe_timing = TIMING_ZERO,
18988 .block_erasers =
18989 {
18990 {
18991 .eraseblocks = { {4 * 1024, 8192} },
18992 .block_erase = spi_block_erase_21,
18993 }, {
18994 .eraseblocks = { {4 * 1024, 8192} },
18995 .block_erase = spi_block_erase_20,
18996 }, {
18997 .eraseblocks = { {32 * 1024, 1024} },
18998 .block_erase = spi_block_erase_52,
18999 }, {
19000 .eraseblocks = { {64 * 1024, 512} },
19001 .block_erase = spi_block_erase_dc,
19002 }, {
19003 .eraseblocks = { {64 * 1024, 512} },
19004 .block_erase = spi_block_erase_d8,
19005 }, {
19006 .eraseblocks = { {32 * 1024 * 1024, 1} },
19007 .block_erase = spi_block_erase_60,
19008 }, {
19009 .eraseblocks = { {32 * 1024 * 1024, 1} },
19010 .block_erase = spi_block_erase_c7,
19011 }
19012 },
19013 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19014 .unlock = spi_disable_blockprotect,
19015 .write = spi_chip_write_256,
19016 .read = spi_chip_read,
19017 .voltage = {1650, 1950},
19018 },
19019
19020 {
19021 .vendor = "XMC",
19022 .name = "XM25QU64C",
19023 .bustype = BUS_SPI,
19024 .manufacture_id = ST_ID,
19025 .model_id = XMC_XM25QU64C,
19026 .total_size = 8192,
19027 .page_size = 256,
19028 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19029 .tested = TEST_UNTESTED,
19030 .probe = probe_spi_rdid,
19031 .probe_timing = TIMING_ZERO,
19032 .block_erasers =
19033 {
19034 {
19035 .eraseblocks = { {4 * 1024, 2048} },
19036 .block_erase = spi_block_erase_20,
19037 }, {
19038 .eraseblocks = { {32 * 1024, 256} },
19039 .block_erase = spi_block_erase_52,
19040 }, {
19041 .eraseblocks = { {64 * 1024, 128} },
19042 .block_erase = spi_block_erase_d8,
19043 }, {
19044 .eraseblocks = { {8 * 1024 * 1024, 1} },
19045 .block_erase = spi_block_erase_60,
19046 }, {
19047 .eraseblocks = { {8 * 1024 * 1024, 1} },
19048 .block_erase = spi_block_erase_c7,
19049 }
19050 },
19051 .printlock = spi_prettyprint_status_register_plain,
19052 .unlock = spi_disable_blockprotect,
19053 .write = spi_chip_write_256,
19054 .read = spi_chip_read,
19055 .voltage = {1650, 1950},
19056 },
19057
19058 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100019059 .vendor = "Zetta Device",
19060 .name = "ZD25D20",
19061 .bustype = BUS_SPI,
19062 .manufacture_id = ZETTADEVICE_ID,
19063 .model_id = ZETTADEVICE_ZD25D20,
19064 .total_size = 256,
19065 .page_size = 256,
19066 .feature_bits = FEATURE_WRSR_WREN,
19067 .tested = TEST_UNTESTED,
19068 .probe = probe_spi_rdid,
19069 .probe_timing = TIMING_ZERO,
19070 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080019071 {
19072 {
19073 .eraseblocks = { {4 * 1024, 64} },
19074 .block_erase = spi_block_erase_20,
19075 }, {
19076 .eraseblocks = { {32 * 1024, 8} },
19077 .block_erase = spi_block_erase_52,
19078 }, {
19079 .eraseblocks = { {64 * 1024, 4} },
19080 .block_erase = spi_block_erase_d8,
19081 }, {
19082 .eraseblocks = { {256 * 1024, 1} },
19083 .block_erase = spi_block_erase_60,
19084 }, {
19085 .eraseblocks = { {256 * 1024, 1} },
19086 .block_erase = spi_block_erase_c7,
19087 }
19088 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100019089 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19090 .unlock = spi_disable_blockprotect,
19091 .write = spi_chip_write_256,
19092 .read = spi_chip_read,
19093 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080019094 },
19095
19096 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100019097 .vendor = "Zetta Device",
19098 .name = "ZD25D40",
19099 .bustype = BUS_SPI,
19100 .manufacture_id = ZETTADEVICE_ID,
19101 .model_id = ZETTADEVICE_ZD25D40,
19102 .total_size = 512,
19103 .page_size = 256,
19104 .feature_bits = FEATURE_WRSR_WREN,
19105 .tested = TEST_UNTESTED,
19106 .probe = probe_spi_rdid,
19107 .probe_timing = TIMING_ZERO,
19108 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080019109 {
19110 {
19111 .eraseblocks = { {4 * 1024, 128} },
19112 .block_erase = spi_block_erase_20,
19113 }, {
19114 .eraseblocks = { {32 * 1024, 16} },
19115 .block_erase = spi_block_erase_52,
19116 }, {
19117 .eraseblocks = { {64 * 1024, 8} },
19118 .block_erase = spi_block_erase_d8,
19119 }, {
19120 .eraseblocks = { {512 * 1024, 1} },
19121 .block_erase = spi_block_erase_60,
19122 }, {
19123 .eraseblocks = { {512 * 1024, 1} },
19124 .block_erase = spi_block_erase_c7,
19125 }
19126 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100019127 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19128 .unlock = spi_disable_blockprotect,
19129 .write = spi_chip_write_256,
19130 .read = spi_chip_read,
19131 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080019132 },
19133
Stefan Taunerac1b4c82012-02-17 14:51:04 +000019134 {
Alan Greendd592202019-08-23 10:11:37 +100019135 .vendor = "Unknown",
19136 .name = "SFDP-capable chip",
19137 .bustype = BUS_SPI,
19138 .manufacture_id = GENERIC_MANUF_ID,
19139 .model_id = SFDP_DEVICE_ID,
19140 .total_size = 0, /* set by probing function */
19141 .page_size = 0, /* set by probing function */
19142 .feature_bits = 0, /* set by probing function */
19143 /* We present our own "report this" text hence we do not */
19144 /* want the default "This flash part has status UNTESTED..." */
19145 /* text to be printed. */
19146 .tested = TEST_OK_PREW,
19147 .probe = probe_spi_sfdp,
19148 .block_erasers = {}, /* set by probing function */
19149 .unlock = spi_disable_blockprotect, /* is this safe? */
19150 .write = NULL, /* set by probing function */
19151 .read = spi_chip_read,
19152 /* FIXME: some vendor extensions define this */
19153 .voltage = {0},
19154 },
19155
19156 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000019157 .vendor = "Programmer",
19158 .name = "Opaque flash chip",
19159 .bustype = BUS_PROG,
19160 .manufacture_id = PROGMANUF_ID,
19161 .model_id = PROGDEV_ID,
19162 .total_size = 0,
19163 .page_size = 256,
19164 /* probe is assumed to work, rest will be filled in by probe */
19165 .tested = TEST_OK_PROBE,
19166 .probe = probe_opaque,
19167 /* eraseblock sizes will be set by the probing function */
19168 .block_erasers =
19169 {
19170 {
19171 .block_erase = erase_opaque,
19172 }
19173 },
19174 .write = write_opaque,
19175 .read = read_opaque,
19176 },
19177
19178 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000019179 .vendor = "AMIC",
19180 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019181 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000019182 .manufacture_id = AMIC_ID,
19183 .model_id = GENERIC_DEVICE_ID,
19184 .total_size = 0,
19185 .page_size = 256,
19186 .tested = TEST_BAD_PREW,
19187 .probe = probe_spi_rdid4,
19188 .probe_timing = TIMING_ZERO,
19189 .write = NULL,
19190 .read = NULL,
19191 },
19192
19193 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019194 .vendor = "Atmel",
19195 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019196 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019197 .manufacture_id = ATMEL_ID,
19198 .model_id = GENERIC_DEVICE_ID,
19199 .total_size = 0,
19200 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019201 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019202 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019203 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019204 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019205 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019206 },
19207
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019208 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000019209 .vendor = "Eon",
19210 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019211 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019212 .manufacture_id = EON_ID_NOPREFIX,
19213 .model_id = GENERIC_DEVICE_ID,
19214 .total_size = 0,
19215 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019216 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019217 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019218 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019219 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019220 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019221 },
19222
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019223 {
19224 .vendor = "Macronix",
19225 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019226 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000019227 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019228 .model_id = GENERIC_DEVICE_ID,
19229 .total_size = 0,
19230 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019231 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019232 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019233 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019234 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019235 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019236 },
19237
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019238 {
19239 .vendor = "PMC",
19240 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019241 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019242 .manufacture_id = PMC_ID,
19243 .model_id = GENERIC_DEVICE_ID,
19244 .total_size = 0,
19245 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019246 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019247 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019248 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019249 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019250 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019251 },
19252
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019253 {
19254 .vendor = "SST",
19255 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019256 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019257 .manufacture_id = SST_ID,
19258 .model_id = GENERIC_DEVICE_ID,
19259 .total_size = 0,
19260 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019261 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019262 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019263 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019264 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019265 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019266 },
19267
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019268 {
19269 .vendor = "ST",
19270 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019271 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019272 .manufacture_id = ST_ID,
19273 .model_id = GENERIC_DEVICE_ID,
19274 .total_size = 0,
19275 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019276 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019277 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019278 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019279 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019280 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019281 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000019282
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019283 {
Sean Nelson118e1d62009-11-24 02:08:11 +000019284 .vendor = "Sanyo",
19285 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019286 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000019287 .manufacture_id = SANYO_ID,
19288 .model_id = GENERIC_DEVICE_ID,
19289 .total_size = 0,
19290 .page_size = 256,
19291 .tested = TEST_BAD_PREW,
19292 .probe = probe_spi_rdid,
19293 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000019294 .write = NULL,
19295 .read = NULL,
19296 },
19297
19298 {
Stefan Taunereb582572012-09-21 12:52:50 +000019299 .vendor = "Winbond",
19300 .name = "unknown Winbond (ex Nexcom) SPI chip",
19301 .bustype = BUS_SPI,
19302 .manufacture_id = WINBOND_NEX_ID,
19303 .model_id = GENERIC_DEVICE_ID,
19304 .total_size = 0,
19305 .page_size = 256,
19306 .tested = TEST_BAD_PREW,
19307 .probe = probe_spi_rdid,
19308 .probe_timing = TIMING_ZERO,
19309 .write = NULL,
19310 .read = NULL,
19311 },
19312
19313 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019314 .vendor = "Generic",
19315 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019316 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019317 .manufacture_id = GENERIC_MANUF_ID,
19318 .model_id = GENERIC_DEVICE_ID,
19319 .total_size = 0,
19320 .page_size = 256,
19321 .tested = TEST_BAD_PREW,
19322 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019323 .write = NULL,
19324 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000019325
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019326 {
19327 .vendor = "Generic",
19328 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019329 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019330 .manufacture_id = GENERIC_MANUF_ID,
19331 .model_id = GENERIC_DEVICE_ID,
19332 .total_size = 0,
19333 .page_size = 256,
19334 .tested = TEST_BAD_PREW,
19335 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019336 .write = NULL,
19337 },
19338
Stefan Tauner96658be2014-05-26 22:05:31 +000019339 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000019340};
Stefan Tauner96658be2014-05-26 22:05:31 +000019341
19342const unsigned int flashchips_size = ARRAY_SIZE(flashchips);