blob: 942cbc26ff655cd53de8a991ba283bab51e5ebde [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 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003446 .vendor = "Bright",
3447 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003448 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003449 .manufacture_id = BRIGHT_ID,
3450 .model_id = BRIGHT_BM29F040,
3451 .total_size = 512,
3452 .page_size = 64 * 1024,
3453 .feature_bits = FEATURE_EITHER_RESET,
3454 .tested = TEST_OK_PR,
3455 .probe = probe_jedec,
3456 .probe_timing = TIMING_ZERO,
3457 .block_erasers =
3458 {
3459 {
3460 .eraseblocks = { {64 * 1024, 8} },
3461 .block_erase = erase_sector_jedec,
3462 }, {
3463 .eraseblocks = { {512 * 1024, 1} },
3464 .block_erase = erase_chip_block_jedec,
3465 },
3466 },
3467 .write = write_jedec_1,
3468 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003469 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003470 },
3471
3472 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003473 .vendor = "Catalyst",
3474 .name = "CAT28F512",
3475 .bustype = BUS_PARALLEL,
3476 .manufacture_id = CATALYST_ID,
3477 .model_id = CATALYST_CAT28F512,
3478 .total_size = 64,
3479 .page_size = 0, /* unused */
3480 .feature_bits = 0,
Alan Green908adf42019-07-03 15:34:06 +10003481 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD},
Alan Green1f9cc7d2019-07-01 11:10:45 +10003482 .probe = probe_jedec, /* FIXME! */
3483 .probe_timing = TIMING_ZERO,
3484 .block_erasers =
3485 {
3486 {
3487 .eraseblocks = { {64 * 1024, 1} },
3488 .block_erase = NULL, /* TODO */
3489 },
3490 },
3491 .write = NULL, /* TODO */
3492 .read = read_memmapped,
3493 .voltage = {4500, 5500},
3494 },
3495
3496 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003497 .vendor = "ENE",
3498 .name = "KB9012 (EDI)",
3499 .bustype = BUS_SPI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003500 .total_size = 128,
3501 .page_size = 128,
3502 .feature_bits = FEATURE_ERASED_ZERO,
3503 .tested = TEST_OK_PREW,
Alan Greenc1863ca2019-06-27 15:08:03 +10003504 .spi_cmd_set = SPI_EDI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003505 .probe = edi_probe_kb9012,
3506 .probe_timing = TIMING_ZERO,
3507 .block_erasers =
3508 {
3509 {
3510 .eraseblocks = { {128, 1024} },
3511 .block_erase = edi_chip_block_erase,
3512 },
3513 },
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003514 .write = edi_chip_write,
3515 .read = edi_chip_read,
3516 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10003517 .gran = write_gran_128bytes,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003518 },
3519
3520 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003521 .vendor = "ESI",
3522 .name = "ES25P16",
3523 .bustype = BUS_SPI,
3524 .manufacture_id = EXCEL_ID_NOPREFIX,
3525 .model_id = EXCEL_ES25P16,
3526 .total_size = 2 * 1024,
3527 .page_size = 256,
3528 /* 256-byte parameter page separate from memory array:
3529 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3530 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003531 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003532 .probe = probe_spi_rdid,
3533 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003534 .block_erasers =
3535 {
3536 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003537 .eraseblocks = { {64 * 1024, 32} },
3538 .block_erase = spi_block_erase_d8,
Sean Nelson54596372010-01-09 05:30:14 +00003539 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003540 .eraseblocks = { {2 * 1024 * 1024, 1} },
3541 .block_erase = spi_block_erase_c7,
Sean Nelson54596372010-01-09 05:30:14 +00003542 }
3543 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003544 .printlock = spi_prettyprint_status_register_bp2_srwd,
3545 .unlock = spi_disable_blockprotect_bp2_srwd,
3546 .write = spi_chip_write_256,
3547 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3548 .voltage = {2700, 3600},
3549 },
3550
3551 {
3552 .vendor = "ESI",
3553 .name = "ES25P40",
3554 .bustype = BUS_SPI,
3555 .manufacture_id = EXCEL_ID_NOPREFIX,
3556 .model_id = EXCEL_ES25P40,
3557 .total_size = 512,
3558 .page_size = 256,
3559 /* 256-byte parameter page separate from memory array:
3560 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3561 .feature_bits = FEATURE_WRSR_WREN,
3562 .tested = TEST_UNTESTED,
3563 .probe = probe_spi_rdid,
3564 .probe_timing = TIMING_ZERO,
3565 .block_erasers =
3566 {
3567 {
3568 .eraseblocks = { {64 * 1024, 8} },
3569 .block_erase = spi_block_erase_d8,
3570 }, {
3571 .eraseblocks = { {512 * 1024, 1} },
3572 .block_erase = spi_block_erase_c7,
3573 }
3574 },
3575 .printlock = spi_prettyprint_status_register_bp2_srwd,
3576 .unlock = spi_disable_blockprotect_bp2_srwd,
3577 .write = spi_chip_write_256,
3578 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3579 .voltage = {2700, 3600},
3580 },
3581
3582 {
3583 .vendor = "ESI",
3584 .name = "ES25P80",
3585 .bustype = BUS_SPI,
3586 .manufacture_id = EXCEL_ID_NOPREFIX,
3587 .model_id = EXCEL_ES25P80,
3588 .total_size = 1024,
3589 .page_size = 256,
3590 /* 256-byte parameter page separate from memory array:
3591 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3592 .feature_bits = FEATURE_WRSR_WREN,
3593 .tested = TEST_UNTESTED,
3594 .probe = probe_spi_rdid,
3595 .probe_timing = TIMING_ZERO,
3596 .block_erasers =
3597 {
3598 {
3599 .eraseblocks = { {64 * 1024, 16} },
3600 .block_erase = spi_block_erase_d8,
3601 }, {
3602 .eraseblocks = { {1024 * 1024, 1} },
3603 .block_erase = spi_block_erase_c7,
3604 }
3605 },
3606 .printlock = spi_prettyprint_status_register_bp2_srwd,
3607 .unlock = spi_disable_blockprotect_bp2_srwd,
3608 .write = spi_chip_write_256,
3609 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3610 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003611 },
3612
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003613 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003614 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003615 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003616 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003617 .manufacture_id = ESMT_ID,
3618 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003619 .total_size = 1024,
3620 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003621 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003622 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003623 .probe = probe_spi_rdid,
3624 .probe_timing = TIMING_ZERO,
3625 .block_erasers =
3626 {
3627 {
3628 .eraseblocks = { {4 * 1024, 256} },
3629 .block_erase = spi_block_erase_20,
3630 }, {
3631 .eraseblocks = { {64 * 1024, 16} },
3632 .block_erase = spi_block_erase_d8,
3633 }, {
3634 .eraseblocks = { {1024 * 1024, 1} },
3635 .block_erase = spi_block_erase_60,
3636 }, {
3637 .eraseblocks = { {1024 * 1024, 1} },
3638 .block_erase = spi_block_erase_c7,
3639 }
3640 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003641 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003642 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003643 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003644 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003645 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003646 },
3647
3648 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003649 .vendor = "ESMT",
3650 .name = "F25L32PA",
3651 .bustype = BUS_SPI,
3652 .manufacture_id = ESMT_ID,
3653 .model_id = ESMT_F25L32PA,
3654 .total_size = 4096,
3655 .page_size = 256,
3656 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3657 .tested = TEST_UNTESTED,
3658 .probe = probe_spi_rdid,
3659 .probe_timing = TIMING_ZERO,
3660 .block_erasers =
3661 {
3662 {
3663 .eraseblocks = { {4 * 1024, 1024} },
3664 .block_erase = spi_block_erase_20,
3665 }, {
3666 .eraseblocks = { {64 * 1024, 64} },
3667 .block_erase = spi_block_erase_d8,
3668 }, {
3669 .eraseblocks = { {4 * 1024 * 1024, 1} },
3670 .block_erase = spi_block_erase_60,
3671 }, {
3672 .eraseblocks = { {4 * 1024 * 1024, 1} },
3673 .block_erase = spi_block_erase_c7,
3674 }
3675 },
3676 .printlock = spi_prettyprint_status_register_bp2_bpl,
3677 .unlock = spi_disable_blockprotect,
3678 .write = spi_chip_write_256,
3679 .read = spi_chip_read,
3680 .voltage = {2700, 3600},
3681 },
3682
3683 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003684 .vendor = "ESMT",
3685 .name = "F49B002UA",
3686 .bustype = BUS_PARALLEL,
3687 .manufacture_id = ESMT_ID,
3688 .model_id = ESMT_F49B002UA,
3689 .total_size = 256,
3690 .page_size = 4096,
3691 .feature_bits = FEATURE_EITHER_RESET,
3692 .tested = TEST_UNTESTED,
3693 .probe = probe_jedec,
3694 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3695 .block_erasers =
3696 {
3697 {
3698 .eraseblocks = {
3699 {128 * 1024, 1},
3700 {96 * 1024, 1},
3701 {8 * 1024, 2},
3702 {16 * 1024, 1},
3703 },
3704 .block_erase = erase_sector_jedec,
3705 }, {
3706 .eraseblocks = { {256 * 1024, 1} },
3707 .block_erase = erase_chip_block_jedec,
3708 }
3709 },
3710 .write = write_jedec_1,
3711 .read = read_memmapped,
3712 .voltage = {4500, 5500},
3713 },
3714
3715 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003716 .vendor = "Eon",
3717 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003718 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003719 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003720 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003721 .total_size = 64,
3722 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003723 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003724 .tested = TEST_UNTESTED,
3725 .probe = probe_spi_rdid,
3726 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003727 .block_erasers =
3728 {
3729 {
3730 .eraseblocks = {
3731 {4 * 1024, 2},
3732 {8 * 1024, 1},
3733 {16 * 1024, 1},
3734 {32 * 1024, 1},
3735 },
3736 .block_erase = spi_block_erase_d8,
3737 }, {
3738 .eraseblocks = { {64 * 1024, 1} },
3739 .block_erase = spi_block_erase_c7,
3740 }
3741 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003742 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003743 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003744 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003745 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003746 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003747 },
3748
3749 {
3750 .vendor = "Eon",
3751 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003752 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003753 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003754 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003755 .total_size = 64,
3756 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003757 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003758 .tested = TEST_UNTESTED,
3759 .probe = probe_spi_rdid,
3760 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003761 .block_erasers =
3762 {
3763 {
3764 .eraseblocks = {
3765 {32 * 1024, 1},
3766 {16 * 1024, 1},
3767 {8 * 1024, 1},
3768 {4 * 1024, 2},
3769 },
3770 .block_erase = spi_block_erase_d8,
3771 }, {
3772 .eraseblocks = { {64 * 1024, 1} },
3773 .block_erase = spi_block_erase_c7,
3774 }
3775 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003776 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003777 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003778 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003779 .read = spi_chip_read, /* Fast read (0x0B) supported */
3780 .voltage = {2700, 3600},
3781 },
3782
3783 {
3784 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003785 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003786 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003787 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003788 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003789 .total_size = 128,
3790 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003791 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003792 .tested = TEST_UNTESTED,
3793 .probe = probe_spi_rdid,
3794 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003795 .block_erasers =
3796 {
3797 {
3798 .eraseblocks = {
3799 {4 * 1024, 2},
3800 {8 * 1024, 1},
3801 {16 * 1024, 1},
3802 {32 * 1024, 3},
3803 },
3804 .block_erase = spi_block_erase_d8,
3805 }, {
3806 .eraseblocks = { {128 * 1024, 1} },
3807 .block_erase = spi_block_erase_c7,
3808 }
3809 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003810 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003811 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003812 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003813 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003814 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003815 },
3816
3817 {
3818 .vendor = "Eon",
3819 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003820 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003821 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003822 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003823 .total_size = 128,
3824 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003825 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003826 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003827 .probe = probe_spi_rdid,
3828 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003829 .block_erasers =
3830 {
3831 {
3832 .eraseblocks = {
3833 {32 * 1024, 3},
3834 {16 * 1024, 1},
3835 {8 * 1024, 1},
3836 {4 * 1024, 2},
3837 },
3838 .block_erase = spi_block_erase_d8,
3839 }, {
3840 .eraseblocks = { {128 * 1024, 1} },
3841 .block_erase = spi_block_erase_c7,
3842 }
3843 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003844 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003845 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003846 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003847 .read = spi_chip_read, /* Fast read (0x0B) supported */
3848 .voltage = {2700, 3600},
3849 },
3850
3851 {
3852 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003853 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003854 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003855 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003856 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003857 .total_size = 2048,
3858 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003859 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003860 .tested = TEST_UNTESTED,
3861 .probe = probe_spi_rdid,
3862 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003863 .block_erasers =
3864 {
3865 {
3866 .eraseblocks = {
3867 {4 * 1024, 2},
3868 {8 * 1024, 1},
3869 {16 * 1024, 1},
3870 {32 * 1024, 1},
3871 {64 * 1024, 31},
3872 },
3873 .block_erase = spi_block_erase_d8,
3874 }, {
3875 .eraseblocks = { {2 * 1024 * 1024, 1} },
3876 .block_erase = spi_block_erase_c7,
3877 }
3878 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003879 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003880 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003881 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003882 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003883 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003884 },
3885
3886 {
3887 .vendor = "Eon",
3888 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003889 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003890 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003891 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003892 .total_size = 2048,
3893 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003894 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003895 .tested = TEST_UNTESTED,
3896 .probe = probe_spi_rdid,
3897 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003898 .block_erasers =
3899 {
3900 {
3901 .eraseblocks = {
3902 {64 * 1024, 31},
3903 {32 * 1024, 1},
3904 {16 * 1024, 1},
3905 {8 * 1024, 1},
3906 {4 * 1024, 2},
3907 },
3908 .block_erase = spi_block_erase_d8,
3909 }, {
3910 .eraseblocks = { {2 * 1024 * 1024, 1} },
3911 .block_erase = spi_block_erase_c7,
3912 }
3913 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003914 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003915 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003916 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003917 .read = spi_chip_read, /* Fast read (0x0B) supported */
3918 .voltage = {2700, 3600},
3919 },
3920
3921 {
3922 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003923 .name = "EN25B20",
Stefan Taunerb175af52015-01-24 15:06:27 +00003924 .bustype = BUS_SPI,
3925 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003926 .model_id = EON_EN25B20,
3927 .total_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003928 .page_size = 256,
3929 .feature_bits = FEATURE_WRSR_WREN,
3930 .tested = TEST_UNTESTED,
3931 .probe = probe_spi_rdid,
3932 .probe_timing = TIMING_ZERO,
3933 .block_erasers =
3934 {
3935 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003936 .eraseblocks = {
3937 {4 * 1024, 2},
3938 {8 * 1024, 1},
3939 {16 * 1024, 1},
3940 {32 * 1024, 1},
3941 {64 * 1024, 3}
3942 },
Stefan Taunerb175af52015-01-24 15:06:27 +00003943 .block_erase = spi_block_erase_d8,
3944 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003945 .eraseblocks = { {256 * 1024, 1} },
3946 .block_erase = spi_block_erase_c7,
3947 }
3948 },
3949 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3950 .unlock = spi_disable_blockprotect,
3951 .write = spi_chip_write_256,
3952 .read = spi_chip_read, /* Fast read (0x0B) supported */
3953 .voltage = {2700, 3600},
3954 },
3955
3956 {
3957 .vendor = "Eon",
3958 .name = "EN25B20T",
3959 .bustype = BUS_SPI,
3960 .manufacture_id = EON_ID_NOPREFIX,
3961 .model_id = EON_EN25B20,
3962 .total_size = 256,
3963 .page_size = 256,
3964 .feature_bits = FEATURE_WRSR_WREN,
3965 .tested = TEST_UNTESTED,
3966 .probe = probe_spi_rdid,
3967 .probe_timing = TIMING_ZERO,
3968 .block_erasers =
3969 {
3970 {
3971 .eraseblocks = {
3972 {64 * 1024, 3},
3973 {32 * 1024, 1},
3974 {16 * 1024, 1},
3975 {8 * 1024, 1},
3976 {4 * 1024, 2},
3977 },
3978 .block_erase = spi_block_erase_d8,
3979 }, {
3980 .eraseblocks = { {256 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00003981 .block_erase = spi_block_erase_c7,
3982 }
3983 },
3984 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3985 .unlock = spi_disable_blockprotect,
3986 .write = spi_chip_write_256,
3987 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003988 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003989 },
3990
3991 {
3992 .vendor = "Eon",
3993 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003994 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003995 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003996 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003997 .total_size = 4096,
3998 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003999 /* OTP: 512B total; enter 0x3A */
4000 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004001 .tested = TEST_UNTESTED,
4002 .probe = probe_spi_rdid,
4003 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004004 .block_erasers =
4005 {
4006 {
4007 .eraseblocks = {
4008 {4 * 1024, 2},
4009 {8 * 1024, 1},
4010 {16 * 1024, 1},
4011 {32 * 1024, 1},
4012 {64 * 1024, 63},
4013 },
4014 .block_erase = spi_block_erase_d8,
4015 }, {
4016 .eraseblocks = { {4 * 1024 * 1024, 1} },
4017 .block_erase = spi_block_erase_c7,
4018 }
4019 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004020 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004021 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004022 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004023 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004024 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004025 },
4026
4027 {
4028 .vendor = "Eon",
4029 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004030 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004031 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004032 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004033 .total_size = 4096,
4034 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004035 /* OTP: 512B total; enter 0x3A */
4036 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004037 .tested = TEST_UNTESTED,
4038 .probe = probe_spi_rdid,
4039 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004040 .block_erasers =
4041 {
4042 {
4043 .eraseblocks = {
4044 {64 * 1024, 63},
4045 {32 * 1024, 1},
4046 {16 * 1024, 1},
4047 {8 * 1024, 1},
4048 {4 * 1024, 2},
4049 },
4050 .block_erase = spi_block_erase_d8,
4051 }, {
4052 .eraseblocks = { {4 * 1024 * 1024, 1} },
4053 .block_erase = spi_block_erase_c7,
4054 }
4055 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004056 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004057 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004058 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004059 .read = spi_chip_read, /* Fast read (0x0B) supported */
4060 .voltage = {2700, 3600},
4061 },
4062
4063 {
4064 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004065 .name = "EN25B40",
Stefan Taunerb175af52015-01-24 15:06:27 +00004066 .bustype = BUS_SPI,
4067 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004068 .model_id = EON_EN25B40,
4069 .total_size = 512,
Stefan Taunerb175af52015-01-24 15:06:27 +00004070 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004071 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004072 .tested = TEST_UNTESTED,
4073 .probe = probe_spi_rdid,
4074 .probe_timing = TIMING_ZERO,
4075 .block_erasers =
4076 {
4077 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004078 .eraseblocks = {
4079 {4 * 1024, 2},
4080 {8 * 1024, 1},
4081 {16 * 1024, 1},
4082 {32 * 1024, 1},
4083 {64 * 1024, 7}
4084 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004085 .block_erase = spi_block_erase_d8,
4086 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004087 .eraseblocks = { {512 * 1024, 1} },
4088 .block_erase = spi_block_erase_c7,
4089 }
4090 },
4091 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4092 .unlock = spi_disable_blockprotect,
4093 .write = spi_chip_write_256,
4094 .read = spi_chip_read, /* Fast read (0x0B) supported */
4095 .voltage = {2700, 3600},
4096 },
4097
4098 {
4099 .vendor = "Eon",
4100 .name = "EN25B40T",
4101 .bustype = BUS_SPI,
4102 .manufacture_id = EON_ID_NOPREFIX,
4103 .model_id = EON_EN25B40,
4104 .total_size = 512,
4105 .page_size = 256,
4106 .feature_bits = FEATURE_WRSR_WREN,
4107 .tested = TEST_UNTESTED,
4108 .probe = probe_spi_rdid,
4109 .probe_timing = TIMING_ZERO,
4110 .block_erasers =
4111 {
4112 {
4113 .eraseblocks = {
4114 {64 * 1024, 7},
4115 {32 * 1024, 1},
4116 {16 * 1024, 1},
4117 {8 * 1024, 1},
4118 {4 * 1024, 2},
4119 },
4120 .block_erase = spi_block_erase_d8,
4121 }, {
4122 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004123 .block_erase = spi_block_erase_c7,
4124 }
4125 },
4126 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4127 .unlock = spi_disable_blockprotect,
4128 .write = spi_chip_write_256,
4129 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004130 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004131 },
4132
4133 {
4134 .vendor = "Eon",
4135 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004136 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004137 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004138 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004139 .total_size = 8192,
4140 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004141 /* OTP: 512B total; enter 0x3A */
4142 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004143 .tested = TEST_UNTESTED,
4144 .probe = probe_spi_rdid,
4145 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004146 .block_erasers =
4147 {
4148 {
4149 .eraseblocks = {
4150 {4 * 1024, 2},
4151 {8 * 1024, 1},
4152 {16 * 1024, 1},
4153 {32 * 1024, 1},
4154 {64 * 1024, 127},
4155 },
4156 .block_erase = spi_block_erase_d8,
4157 }, {
4158 .eraseblocks = { {8 * 1024 * 1024, 1} },
4159 .block_erase = spi_block_erase_c7,
4160 }
4161 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004162 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004163 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004164 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004165 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004166 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004167 },
4168
4169 {
4170 .vendor = "Eon",
4171 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004172 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004173 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004174 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004175 .total_size = 8192,
4176 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004177 /* OTP: 512B total; enter 0x3A */
4178 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004179 .tested = TEST_UNTESTED,
4180 .probe = probe_spi_rdid,
4181 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004182 .block_erasers =
4183 {
4184 {
4185 .eraseblocks = {
4186 {64 * 1024, 127},
4187 {32 * 1024, 1},
4188 {16 * 1024, 1},
4189 {8 * 1024, 1},
4190 {4 * 1024, 2},
4191 },
4192 .block_erase = spi_block_erase_d8,
4193 }, {
4194 .eraseblocks = { {8 * 1024 * 1024, 1} },
4195 .block_erase = spi_block_erase_c7,
4196 }
4197 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004198 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004199 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004200 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004201 .read = spi_chip_read, /* Fast read (0x0B) supported */
4202 .voltage = {2700, 3600},
4203 },
4204
4205 {
4206 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004207 .name = "EN25B80",
Stefan Taunerb175af52015-01-24 15:06:27 +00004208 .bustype = BUS_SPI,
4209 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004210 .model_id = EON_EN25B80,
4211 .total_size = 1024,
Stefan Taunerb175af52015-01-24 15:06:27 +00004212 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004213 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004214 .tested = TEST_UNTESTED,
4215 .probe = probe_spi_rdid,
4216 .probe_timing = TIMING_ZERO,
4217 .block_erasers =
4218 {
4219 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004220 .eraseblocks = {
4221 {4 * 1024, 2},
4222 {8 * 1024, 1},
4223 {16 * 1024, 1},
4224 {32 * 1024, 1},
4225 {64 * 1024, 15}
4226 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004227 .block_erase = spi_block_erase_d8,
4228 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004229 .eraseblocks = { {1024 * 1024, 1} },
4230 .block_erase = spi_block_erase_c7,
4231 }
4232 },
4233 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4234 .unlock = spi_disable_blockprotect,
4235 .write = spi_chip_write_256,
4236 .read = spi_chip_read, /* Fast read (0x0B) supported */
4237 .voltage = {2700, 3600},
4238 },
4239
4240 {
4241 .vendor = "Eon",
4242 .name = "EN25B80T",
4243 .bustype = BUS_SPI,
4244 .manufacture_id = EON_ID_NOPREFIX,
4245 .model_id = EON_EN25B80,
4246 .total_size = 1024,
4247 .page_size = 256,
4248 .feature_bits = FEATURE_WRSR_WREN,
4249 .tested = TEST_UNTESTED,
4250 .probe = probe_spi_rdid,
4251 .probe_timing = TIMING_ZERO,
4252 .block_erasers =
4253 {
4254 {
4255 .eraseblocks = {
4256 {64 * 1024, 15},
4257 {32 * 1024, 1},
4258 {16 * 1024, 1},
4259 {8 * 1024, 1},
4260 {4 * 1024, 2},
4261 },
4262 .block_erase = spi_block_erase_d8,
4263 }, {
4264 .eraseblocks = { {1024 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004265 .block_erase = spi_block_erase_c7,
4266 }
4267 },
4268 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4269 .unlock = spi_disable_blockprotect,
4270 .write = spi_chip_write_256,
4271 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004272 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004273 },
4274
4275 {
4276 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004277 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004278 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004279 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004280 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004281 .total_size = 64,
4282 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004283 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004284 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004285 .probe = probe_spi_rdid,
4286 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004287 .block_erasers =
4288 {
4289 {
4290 .eraseblocks = { {4 * 1024, 16} },
4291 .block_erase = spi_block_erase_20,
4292 }, {
4293 .eraseblocks = { {32 * 1024, 2} },
4294 .block_erase = spi_block_erase_d8,
4295 }, {
4296 .eraseblocks = { {32 * 1024, 2} },
4297 .block_erase = spi_block_erase_52,
4298 }, {
4299 .eraseblocks = { {64 * 1024, 1} },
4300 .block_erase = spi_block_erase_60,
4301 }, {
4302 .eraseblocks = { {64 * 1024, 1} },
4303 .block_erase = spi_block_erase_c7,
4304 }
4305 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004306 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004307 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004308 .write = spi_chip_write_256,
4309 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004310 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004311 },
4312
4313 {
4314 .vendor = "Eon",
4315 .name = "EN25F10",
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_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004319 .total_size = 128,
4320 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004321 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004322 .tested = TEST_UNTESTED,
4323 .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, 32} },
4329 .block_erase = spi_block_erase_20,
4330 }, {
4331 .eraseblocks = { {32 * 1024, 4} },
4332 .block_erase = spi_block_erase_d8,
4333 }, {
4334 .eraseblocks = { {32 * 1024, 4} },
4335 .block_erase = spi_block_erase_52,
4336 }, {
4337 .eraseblocks = { {128 * 1024, 1} },
4338 .block_erase = spi_block_erase_60,
4339 }, {
4340 .eraseblocks = { {128 * 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",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004353 .name = "EN25F16",
4354 .bustype = BUS_SPI,
4355 .manufacture_id = EON_ID_NOPREFIX,
4356 .model_id = EON_EN25F16,
4357 .total_size = 2048,
4358 .page_size = 256,
4359 .feature_bits = FEATURE_WRSR_WREN,
4360 .tested = TEST_OK_PREW,
4361 .probe = probe_spi_rdid,
4362 .probe_timing = TIMING_ZERO,
4363 .block_erasers =
4364 {
4365 {
4366 .eraseblocks = { {4 * 1024, 512} },
4367 .block_erase = spi_block_erase_20,
4368 }, {
4369 .eraseblocks = { {64 * 1024, 32} },
4370 .block_erase = spi_block_erase_d8,
4371 }, {
4372 .eraseblocks = { {2 * 1024 * 1024, 1} },
4373 .block_erase = spi_block_erase_60,
4374 }, {
4375 .eraseblocks = { {2 * 1024 * 1024, 1} },
4376 .block_erase = spi_block_erase_c7,
4377 }
4378 },
4379 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4380 .unlock = spi_disable_blockprotect,
4381 .write = spi_chip_write_256,
4382 .read = spi_chip_read,
4383 .voltage = {2700, 3600},
4384 },
4385
4386 {
4387 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004388 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004389 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004390 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004391 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004392 .total_size = 256,
4393 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004394 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004395 .tested = TEST_UNTESTED,
4396 .probe = probe_spi_rdid,
4397 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004398 .block_erasers =
4399 {
4400 {
4401 .eraseblocks = { {4 * 1024, 64} },
4402 .block_erase = spi_block_erase_20,
4403 }, {
4404 .eraseblocks = { {64 * 1024, 4} },
4405 .block_erase = spi_block_erase_d8,
4406 }, {
4407 .eraseblocks = { {64 * 1024, 4} },
4408 .block_erase = spi_block_erase_52,
4409 }, {
4410 .eraseblocks = { {256 * 1024, 1} },
4411 .block_erase = spi_block_erase_60,
4412 }, {
4413 .eraseblocks = { {256 * 1024, 1} },
4414 .block_erase = spi_block_erase_c7,
4415 }
4416 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004417 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004418 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004419 .write = spi_chip_write_256,
4420 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004421 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004422 },
4423
4424 {
4425 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004426 .name = "EN25F32",
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_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004430 .total_size = 4096,
4431 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004432 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004433 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004434 .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, 1024} },
4440 .block_erase = spi_block_erase_20,
4441 }, {
4442 .eraseblocks = { {64 * 1024, 64} },
4443 .block_erase = spi_block_erase_d8,
4444 }, {
4445 .eraseblocks = { {4 * 1024 * 1024, 1} },
4446 .block_erase = spi_block_erase_60,
4447 }, {
4448 .eraseblocks = { {4 * 1024 * 1024, 1} },
4449 .block_erase = spi_block_erase_c7,
4450 }
4451 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004452 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004453 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004454 .write = spi_chip_write_256,
4455 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004456 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004457 },
4458
4459 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004460 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004461 .name = "EN25F40",
4462 .bustype = BUS_SPI,
4463 .manufacture_id = EON_ID_NOPREFIX,
4464 .model_id = EON_EN25F40,
4465 .total_size = 512,
4466 .page_size = 256,
4467 .feature_bits = FEATURE_WRSR_WREN,
4468 .tested = TEST_OK_PREW,
4469 .probe = probe_spi_rdid,
4470 .probe_timing = TIMING_ZERO,
4471 .block_erasers =
4472 {
4473 {
4474 .eraseblocks = { {4 * 1024, 128} },
4475 .block_erase = spi_block_erase_20,
4476 }, {
4477 .eraseblocks = { {64 * 1024, 8} },
4478 .block_erase = spi_block_erase_d8,
4479 }, {
4480 .eraseblocks = { {512 * 1024, 1} },
4481 .block_erase = spi_block_erase_60,
4482 }, {
4483 .eraseblocks = { {512 * 1024, 1} },
4484 .block_erase = spi_block_erase_c7,
4485 },
4486 },
4487 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4488 .unlock = spi_disable_blockprotect,
4489 .write = spi_chip_write_256,
4490 .read = spi_chip_read,
4491 .voltage = {2700, 3600},
4492 },
4493
4494 {
4495 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004496 .name = "EN25F64",
4497 .bustype = BUS_SPI,
4498 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004499 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004500 .total_size = 8192,
4501 .page_size = 256,
4502 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004503 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004504 .probe = probe_spi_rdid,
4505 .probe_timing = TIMING_ZERO,
4506 .block_erasers =
4507 {
4508 {
4509 .eraseblocks = { {4 * 1024, 2048} },
4510 .block_erase = spi_block_erase_20,
4511 }, {
4512 .eraseblocks = { {64 * 1024, 128} },
4513 .block_erase = spi_block_erase_d8,
4514 }, {
4515 .eraseblocks = { {8 * 1024 * 1024, 1} },
4516 .block_erase = spi_block_erase_60,
4517 }, {
4518 .eraseblocks = { {8 * 1024 * 1024, 1} },
4519 .block_erase = spi_block_erase_c7,
4520 }
4521 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004522 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004523 .unlock = spi_disable_blockprotect,
4524 .write = spi_chip_write_256,
4525 .read = spi_chip_read,
4526 .voltage = {2700, 3600},
4527 },
4528
4529 {
4530 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004531 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004532 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004533 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004534 .model_id = EON_EN25F80,
David Hendricks6d715302011-07-24 22:21:57 +00004535 .total_size = 1024,
4536 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004537 .feature_bits = FEATURE_WRSR_WREN,
4538 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004539 .probe = probe_spi_rdid,
4540 .probe_timing = TIMING_ZERO,
4541 .block_erasers =
4542 {
4543 {
4544 .eraseblocks = { {4 * 1024, 256} },
4545 .block_erase = spi_block_erase_20,
4546 }, {
4547 .eraseblocks = { {64 * 1024, 16} },
4548 .block_erase = spi_block_erase_d8,
4549 }, {
4550 .eraseblocks = { {1024 * 1024, 1} },
4551 .block_erase = spi_block_erase_60,
4552 }, {
4553 .eraseblocks = { {1024 * 1024, 1} },
4554 .block_erase = spi_block_erase_c7,
4555 }
4556 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004557 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004558 .unlock = spi_disable_blockprotect,
4559 .write = spi_chip_write_256,
4560 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004561 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004562 },
4563
4564 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004565 .vendor = "Eon",
4566 .name = "EN25P05",
4567 .bustype = BUS_SPI,
4568 .manufacture_id = EON_ID_NOPREFIX,
4569 .model_id = EON_EN25B05,
4570 .total_size = 64,
4571 .page_size = 256,
4572 .feature_bits = FEATURE_WRSR_WREN,
4573 .tested = TEST_UNTESTED,
4574 .probe = probe_spi_rdid,
4575 .probe_timing = TIMING_ZERO,
4576 .block_erasers =
4577 {
4578 {
4579 .eraseblocks = {
4580 {32 * 1024, 2} },
4581 .block_erase = spi_block_erase_d8,
4582 }, {
4583 .eraseblocks = { {64 * 1024, 1} },
4584 .block_erase = spi_block_erase_c7,
4585 }
4586 },
4587 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4588 .unlock = spi_disable_blockprotect,
4589 .write = spi_chip_write_256,
4590 .read = spi_chip_read, /* Fast read (0x0B) supported */
4591 .voltage = {2700, 3600},
4592 },
4593
4594 {
4595 .vendor = "Eon",
4596 .name = "EN25P10",
4597 .bustype = BUS_SPI,
4598 .manufacture_id = EON_ID_NOPREFIX,
4599 .model_id = EON_EN25B10,
4600 .total_size = 128,
4601 .page_size = 256,
4602 .feature_bits = FEATURE_WRSR_WREN,
4603 .tested = TEST_UNTESTED,
4604 .probe = probe_spi_rdid,
4605 .probe_timing = TIMING_ZERO,
4606 .block_erasers =
4607 {
4608 {
4609 .eraseblocks = { {32 * 1024, 4} },
4610 .block_erase = spi_block_erase_d8,
4611 }, {
4612 .eraseblocks = { {128 * 1024, 1} },
4613 .block_erase = spi_block_erase_c7,
4614 }
4615 },
4616 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4617 .unlock = spi_disable_blockprotect,
4618 .write = spi_chip_write_256,
4619 .read = spi_chip_read, /* Fast read (0x0B) supported */
4620 .voltage = {2700, 3600},
4621 },
4622
4623 {
4624 .vendor = "Eon",
4625 .name = "EN25P16",
4626 .bustype = BUS_SPI,
4627 .manufacture_id = EON_ID_NOPREFIX,
4628 .model_id = EON_EN25B16,
4629 .total_size = 2048,
4630 .page_size = 256,
4631 .feature_bits = FEATURE_WRSR_WREN,
4632 .tested = TEST_UNTESTED,
4633 .probe = probe_spi_rdid,
4634 .probe_timing = TIMING_ZERO,
4635 .block_erasers =
4636 {
4637 {
4638 .eraseblocks = { {64 * 1024, 32} },
4639 .block_erase = spi_block_erase_d8,
4640 }, {
4641 .eraseblocks = { {2 * 1024 * 1024, 1} },
4642 .block_erase = spi_block_erase_c7,
4643 }
4644 },
4645 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4646 .unlock = spi_disable_blockprotect,
4647 .write = spi_chip_write_256,
4648 .read = spi_chip_read, /* Fast read (0x0B) supported */
4649 .voltage = {2700, 3600},
4650 },
4651
4652 {
4653 .vendor = "Eon",
4654 .name = "EN25P20",
4655 .bustype = BUS_SPI,
4656 .manufacture_id = EON_ID_NOPREFIX,
4657 .model_id = EON_EN25B20,
4658 .total_size = 256,
4659 .page_size = 256,
4660 .feature_bits = FEATURE_WRSR_WREN,
4661 .tested = TEST_UNTESTED,
4662 .probe = probe_spi_rdid,
4663 .probe_timing = TIMING_ZERO,
4664 .block_erasers =
4665 {
4666 {
4667 .eraseblocks = { {64 * 1024, 4} },
4668 .block_erase = spi_block_erase_d8,
4669 }, {
4670 .eraseblocks = { {256 * 1024, 1} },
4671 .block_erase = spi_block_erase_c7,
4672 }
4673 },
4674 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4675 .unlock = spi_disable_blockprotect,
4676 .write = spi_chip_write_256,
4677 .read = spi_chip_read, /* Fast read (0x0B) supported */
4678 .voltage = {2700, 3600},
4679 },
4680
4681 {
4682 .vendor = "Eon",
4683 .name = "EN25P32", /* Uniform version of EN25B32 */
4684 .bustype = BUS_SPI,
4685 .manufacture_id = EON_ID_NOPREFIX,
4686 .model_id = EON_EN25B32,
4687 .total_size = 4096,
4688 .page_size = 256,
4689 /* OTP: 512B total; enter 0x3A */
4690 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4691 .tested = TEST_UNTESTED,
4692 .probe = probe_spi_rdid,
4693 .probe_timing = TIMING_ZERO,
4694 .block_erasers =
4695 {
4696 {
4697 .eraseblocks = { {64 * 1024, 64} },
4698 .block_erase = spi_block_erase_d8,
4699 }, {
4700 .eraseblocks = { {4 * 1024 * 1024, 1} },
4701 .block_erase = spi_block_erase_c7,
4702 }
4703 },
4704 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4705 .unlock = spi_disable_blockprotect,
4706 .write = spi_chip_write_256,
4707 .read = spi_chip_read, /* Fast read (0x0B) supported */
4708 .voltage = {2700, 3600},
4709 },
4710
4711 {
4712 .vendor = "Eon",
4713 .name = "EN25P40",
4714 .bustype = BUS_SPI,
4715 .manufacture_id = EON_ID_NOPREFIX,
4716 .model_id = EON_EN25B40,
4717 .total_size = 512,
4718 .page_size = 256,
4719 .feature_bits = FEATURE_WRSR_WREN,
4720 .tested = TEST_UNTESTED,
4721 .probe = probe_spi_rdid,
4722 .probe_timing = TIMING_ZERO,
4723 .block_erasers =
4724 {
4725 {
4726 .eraseblocks = { {64 * 1024, 8} },
4727 .block_erase = spi_block_erase_d8,
4728 }, {
4729 .eraseblocks = { {512 * 1024, 1} },
4730 .block_erase = spi_block_erase_c7,
4731 }
4732 },
4733 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4734 .unlock = spi_disable_blockprotect,
4735 .write = spi_chip_write_256,
4736 .read = spi_chip_read, /* Fast read (0x0B) supported */
4737 .voltage = {2700, 3600},
4738 },
4739
4740 {
4741 .vendor = "Eon",
4742 .name = "EN25P64",
4743 .bustype = BUS_SPI,
4744 .manufacture_id = EON_ID_NOPREFIX,
4745 .model_id = EON_EN25B64,
4746 .total_size = 8192,
4747 .page_size = 256,
4748 /* OTP: 512B total; enter 0x3A */
4749 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4750 .tested = TEST_UNTESTED,
4751 .probe = probe_spi_rdid,
4752 .probe_timing = TIMING_ZERO,
4753 .block_erasers =
4754 {
4755 {
4756 .eraseblocks = { {64 * 1024, 128} },
4757 .block_erase = spi_block_erase_d8,
4758 }, {
4759 .eraseblocks = { {8 * 1024 * 1024, 1} },
4760 .block_erase = spi_block_erase_c7,
4761 }
4762 },
4763 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4764 .unlock = spi_disable_blockprotect,
4765 .write = spi_chip_write_256,
4766 .read = spi_chip_read, /* Fast read (0x0B) supported */
4767 .voltage = {2700, 3600},
4768 },
4769
4770 {
4771 .vendor = "Eon",
4772 .name = "EN25P80",
4773 .bustype = BUS_SPI,
4774 .manufacture_id = EON_ID_NOPREFIX,
4775 .model_id = EON_EN25B80,
4776 .total_size = 1024,
4777 .page_size = 256,
4778 .feature_bits = FEATURE_WRSR_WREN,
4779 .tested = TEST_UNTESTED,
4780 .probe = probe_spi_rdid,
4781 .probe_timing = TIMING_ZERO,
4782 .block_erasers =
4783 {
4784 {
4785 .eraseblocks = { {64 * 1024, 16} },
4786 .block_erase = spi_block_erase_d8,
4787 }, {
4788 .eraseblocks = { {1024 * 1024, 1} },
4789 .block_erase = spi_block_erase_c7,
4790 }
4791 },
4792 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4793 .unlock = spi_disable_blockprotect,
4794 .write = spi_chip_write_256,
4795 .read = spi_chip_read, /* Fast read (0x0B) supported */
4796 .voltage = {2700, 3600},
4797 },
4798
4799 {
4800 .vendor = "Eon",
4801 .name = "EN25Q128",
4802 .bustype = BUS_SPI,
4803 .manufacture_id = EON_ID_NOPREFIX,
4804 .model_id = EON_EN25Q128,
4805 .total_size = 16384,
4806 .page_size = 256,
4807 /* OTP: 512B total; enter 0x3A */
4808 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4809 .tested = TEST_OK_PREW,
4810 .probe = probe_spi_rdid,
4811 .probe_timing = TIMING_ZERO,
4812 .block_erasers =
4813 {
4814 {
4815 .eraseblocks = { {4 * 1024, 4096} },
4816 .block_erase = spi_block_erase_20,
4817 }, {
4818 .eraseblocks = { {64 * 1024, 256} },
4819 .block_erase = spi_block_erase_d8,
4820 }, {
4821 .eraseblocks = { {16 * 1024 * 1024, 1} },
4822 .block_erase = spi_block_erase_60,
4823 }, {
4824 .eraseblocks = { {16 * 1024 * 1024, 1} },
4825 .block_erase = spi_block_erase_c7,
4826 }
4827 },
4828 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4829 .unlock = spi_disable_blockprotect,
4830 .write = spi_chip_write_256,
4831 .read = spi_chip_read,
4832 },
4833
4834 {
David Hendricks6d715302011-07-24 22:21:57 +00004835 /* Note: EN25D16 is an evil twin which shares the model ID
4836 but has different write protection capabilities */
4837 .vendor = "Eon",
4838 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004839 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004840 .manufacture_id = EON_ID_NOPREFIX,
4841 .model_id = EON_EN25Q16,
4842 .total_size = 2048,
4843 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004844 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4845 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004846 .tested = TEST_UNTESTED,
4847 .probe = probe_spi_rdid,
4848 .probe_timing = TIMING_ZERO,
4849 .block_erasers =
4850 {
4851 {
4852 .eraseblocks = { {4 * 1024, 512} },
4853 .block_erase = spi_block_erase_20,
4854 }, {
4855 .eraseblocks = { {64 * 1024, 32} },
4856 .block_erase = spi_block_erase_d8,
4857 }, {
4858 /* not supported by Q16 version */
4859 .eraseblocks = { {64 * 1024, 32} },
4860 .block_erase = spi_block_erase_52,
4861 }, {
4862 .eraseblocks = { {2 * 1024 * 1024, 1} },
4863 .block_erase = spi_block_erase_60,
4864 }, {
4865 .eraseblocks = { {2 * 1024 * 1024, 1} },
4866 .block_erase = spi_block_erase_c7,
4867 }
4868 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004869 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004870 .unlock = spi_disable_blockprotect,
4871 .write = spi_chip_write_256,
4872 .read = spi_chip_read,
4873 .voltage = {2700, 3600},
4874 },
4875
4876 {
4877 .vendor = "Eon",
4878 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004879 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004880 .manufacture_id = EON_ID_NOPREFIX,
4881 .model_id = EON_EN25Q32,
4882 .total_size = 4096,
4883 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004884 /* OTP: 512B total; enter 0x3A */
4885 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004886 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004887 .probe = probe_spi_rdid,
4888 .probe_timing = TIMING_ZERO,
4889 .block_erasers =
4890 {
4891 {
4892 .eraseblocks = { {4 * 1024, 1024} },
4893 .block_erase = spi_block_erase_20,
4894 }, {
4895 .eraseblocks = { {64 * 1024, 64} },
4896 .block_erase = spi_block_erase_d8,
4897 }, {
4898 .eraseblocks = { {4 * 1024 * 1024, 1} },
4899 .block_erase = spi_block_erase_60,
4900 }, {
4901 .eraseblocks = { {4 * 1024 * 1024, 1} },
4902 .block_erase = spi_block_erase_c7,
4903 }
4904 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004905 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004906 .unlock = spi_disable_blockprotect,
4907 .write = spi_chip_write_256,
4908 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004909 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004910 },
4911
4912 {
4913 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004914 .name = "EN25Q40",
4915 .bustype = BUS_SPI,
4916 .manufacture_id = EON_ID_NOPREFIX,
4917 .model_id = EON_EN25Q40,
4918 .total_size = 512,
4919 .page_size = 256,
4920 /* OTP: 256B total; enter 0x3A */
4921 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4922 .tested = TEST_UNTESTED,
4923 .probe = probe_spi_rdid,
4924 .probe_timing = TIMING_ZERO,
4925 .block_erasers =
4926 {
4927 {
4928 .eraseblocks = { {4 * 1024, 128} },
4929 .block_erase = spi_block_erase_20,
4930 }, {
4931 .eraseblocks = { {64 * 1024, 8} },
4932 .block_erase = spi_block_erase_d8,
4933 }, {
4934 .eraseblocks = { {512 * 1024, 1} },
4935 .block_erase = spi_block_erase_60,
4936 }, {
4937 .eraseblocks = { {512 * 1024, 1} },
4938 .block_erase = spi_block_erase_c7,
4939 }
4940 },
4941 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4942 .unlock = spi_disable_blockprotect,
4943 .write = spi_chip_write_256,
4944 .read = spi_chip_read,
4945 .voltage = {2700, 3600},
4946 },
4947
4948 {
4949 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004950 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004951 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004952 .manufacture_id = EON_ID_NOPREFIX,
4953 .model_id = EON_EN25Q64,
4954 .total_size = 8192,
4955 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004956 /* OTP: 512B total; enter 0x3A */
4957 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004958 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004959 .probe = probe_spi_rdid,
4960 .probe_timing = TIMING_ZERO,
4961 .block_erasers =
4962 {
4963 {
4964 .eraseblocks = { {4 * 1024, 2048} },
4965 .block_erase = spi_block_erase_20,
4966 }, {
4967 .eraseblocks = { {64 * 1024, 128} },
4968 .block_erase = spi_block_erase_d8,
4969 }, {
4970 .eraseblocks = { {8 * 1024 * 1024, 1} },
4971 .block_erase = spi_block_erase_60,
4972 }, {
4973 .eraseblocks = { {8 * 1024 * 1024, 1} },
4974 .block_erase = spi_block_erase_c7,
4975 }
4976 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004977 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004978 .unlock = spi_disable_blockprotect,
4979 .write = spi_chip_write_256,
4980 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004981 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004982 },
4983
4984 {
4985 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004986 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004987 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004988 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004989 .model_id = EON_EN25Q80,
4990 .total_size = 1024,
4991 .page_size = 256,
4992 /* OTP: 256B total; enter 0x3A */
4993 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4994 .tested = TEST_UNTESTED,
4995 .probe = probe_spi_rdid,
4996 .probe_timing = TIMING_ZERO,
4997 .block_erasers =
4998 {
4999 {
5000 .eraseblocks = { {4 * 1024, 256} },
5001 .block_erase = spi_block_erase_20,
5002 }, {
5003 .eraseblocks = { {64 * 1024, 16} },
5004 .block_erase = spi_block_erase_d8,
5005 }, {
5006 .eraseblocks = { {1024 * 1024, 1} },
5007 .block_erase = spi_block_erase_60,
5008 }, {
5009 .eraseblocks = { {1024 * 1024, 1} },
5010 .block_erase = spi_block_erase_c7,
5011 }
5012 },
5013 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5014 .unlock = spi_disable_blockprotect,
5015 .write = spi_chip_write_256,
5016 .read = spi_chip_read,
5017 .voltage = {2700, 3600},
5018 },
5019
5020 {
5021 .vendor = "Eon",
5022 .name = "EN25QH128",
5023 .bustype = BUS_SPI,
5024 .manufacture_id = EON_ID_NOPREFIX,
5025 .model_id = EON_EN25QH128,
David Hendricks6d715302011-07-24 22:21:57 +00005026 .total_size = 16384,
5027 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005028 /* supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00005029 /* OTP: 512B total; enter 0x3A */
Alan Green1f9cc7d2019-07-01 11:10:45 +10005030 /* QPI enable 0x38, disable 0xFF */
5031 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5032 .tested = TEST_UNTESTED,
David Hendricks6d715302011-07-24 22:21:57 +00005033 .probe = probe_spi_rdid,
5034 .probe_timing = TIMING_ZERO,
5035 .block_erasers =
5036 {
5037 {
5038 .eraseblocks = { {4 * 1024, 4096} },
5039 .block_erase = spi_block_erase_20,
5040 }, {
5041 .eraseblocks = { {64 * 1024, 256} },
5042 .block_erase = spi_block_erase_d8,
5043 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005044 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005045 .block_erase = spi_block_erase_60,
5046 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005047 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005048 .block_erase = spi_block_erase_c7,
5049 }
5050 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005051 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5052 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005053 .write = spi_chip_write_256,
5054 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005055 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005056 },
5057
5058 {
5059 .vendor = "Eon",
5060 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005061 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005062 .manufacture_id = EON_ID_NOPREFIX,
5063 .model_id = EON_EN25QH16,
5064 .total_size = 2048,
5065 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005066 /* supports SFDP */
5067 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005068 /* QPI enable 0x38, disable 0xFF */
5069 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00005070 .tested = TEST_OK_PREW,
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, 512} },
5077 .block_erase = spi_block_erase_20,
5078 }, {
5079 .eraseblocks = { {64 * 1024, 32} },
5080 .block_erase = spi_block_erase_d8,
5081 }, {
5082 .eraseblocks = { {1024 * 2048, 1} },
5083 .block_erase = spi_block_erase_60,
5084 }, {
5085 .eraseblocks = { {1024 * 2048, 1} },
5086 .block_erase = spi_block_erase_c7,
5087 }
5088 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005089 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005090 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005091 .write = spi_chip_write_256,
5092 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005093 .voltage = {2700, 3600},
5094 },
5095
5096 {
5097 .vendor = "Eon",
5098 .name = "EN25QH32",
5099 .bustype = BUS_SPI,
5100 .manufacture_id = EON_ID_NOPREFIX,
5101 .model_id = EON_EN25QH32,
5102 .total_size = 4096,
5103 .page_size = 256,
5104 /* 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 Tauner23e10b82016-01-23 16:16:49 +00005108 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005109 .probe = probe_spi_rdid,
5110 .probe_timing = TIMING_ZERO,
5111 .block_erasers =
5112 {
5113 {
5114 .eraseblocks = { {4 * 1024, 1024} },
5115 .block_erase = spi_block_erase_20,
5116 }, {
5117 .eraseblocks = { {64 * 1024, 64} },
5118 .block_erase = spi_block_erase_d8,
5119 }, {
5120 .eraseblocks = { {1024 * 4096, 1} },
5121 .block_erase = spi_block_erase_60,
5122 }, {
5123 .eraseblocks = { {1024 * 4096, 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,
5129 .write = spi_chip_write_256,
5130 .read = spi_chip_read,
5131 .voltage = {2700, 3600},
5132 },
5133
5134 {
5135 .vendor = "Eon",
5136 .name = "EN25QH64",
5137 .bustype = BUS_SPI,
5138 .manufacture_id = EON_ID_NOPREFIX,
5139 .model_id = EON_EN25QH64,
5140 .total_size = 8192,
5141 .page_size = 256,
5142 /* supports SFDP */
5143 /* OTP: 512B total; enter 0x3A */
5144 /* 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,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005147 .probe = probe_spi_rdid,
5148 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005149 .block_erasers =
5150 {
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005151 {
5152 .eraseblocks = { {4 * 1024, 2048} },
5153 .block_erase = spi_block_erase_20,
5154 }, {
5155 .eraseblocks = { {64 * 1024, 128} },
5156 .block_erase = spi_block_erase_d8,
5157 }, {
5158 .eraseblocks = { { 8192 * 1024, 1} },
5159 .block_erase = spi_block_erase_60,
5160 }, {
5161 .eraseblocks = { { 8192 * 1024, 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",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005174 .name = "EN25S10",
5175 .bustype = BUS_SPI,
5176 .manufacture_id = EON_ID_NOPREFIX,
5177 .model_id = EON_EN25S10,
5178 .total_size = 128,
5179 .page_size = 256,
5180 /* OTP: 256B total; enter 0x3A */
5181 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5182 .tested = TEST_UNTESTED,
5183 .probe = probe_spi_rdid,
5184 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005185 .block_erasers =
5186 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005187 {
5188 .eraseblocks = { {4 * 1024, 32} },
5189 .block_erase = spi_block_erase_20,
5190 }, {
5191 .eraseblocks = { {32 * 1024, 4} },
5192 .block_erase = spi_block_erase_52,
5193 }, {
5194 .eraseblocks = { {128 * 1024, 1} },
5195 .block_erase = spi_block_erase_60,
5196 }, {
5197 .eraseblocks = { {128 * 1024, 1} },
5198 .block_erase = spi_block_erase_c7,
5199 }
5200 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005201 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005202 .unlock = spi_disable_blockprotect,
5203 .write = spi_chip_write_256,
5204 .read = spi_chip_read,
5205 .voltage = {1650, 1950},
5206 },
5207
5208 {
5209 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005210 .name = "EN25S16",
5211 .bustype = BUS_SPI,
5212 .manufacture_id = EON_ID_NOPREFIX,
5213 .model_id = EON_EN25S16,
5214 .total_size = 2048,
5215 .page_size = 256,
5216 /* OTP: 512B total; enter 0x3A */
5217 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5218 .tested = TEST_UNTESTED,
5219 .probe = probe_spi_rdid,
5220 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005221 .block_erasers =
5222 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005223 {
5224 .eraseblocks = { {4 * 1024, 512} },
5225 .block_erase = spi_block_erase_20,
5226 }, {
5227 .eraseblocks = { {64 * 1024, 32} },
5228 .block_erase = spi_block_erase_52,
5229 }, {
5230 .eraseblocks = { {32 * 1024, 64} },
5231 .block_erase = spi_block_erase_d8,
5232 }, {
5233 .eraseblocks = { {2048 * 1024, 1} },
5234 .block_erase = spi_block_erase_60,
5235 }, {
5236 .eraseblocks = { {2048 * 1024, 1} },
5237 .block_erase = spi_block_erase_c7,
5238 }
5239 },
5240 .printlock = spi_prettyprint_status_register_en25s_wp,
5241 .unlock = spi_disable_blockprotect_bp3_srwd,
5242 .write = spi_chip_write_256,
5243 .read = spi_chip_read,
5244 .voltage = {1650, 1950},
5245 },
5246
5247 {
5248 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005249 .name = "EN25S20",
5250 .bustype = BUS_SPI,
5251 .manufacture_id = EON_ID_NOPREFIX,
5252 .model_id = EON_EN25S20,
5253 .total_size = 256,
5254 .page_size = 256,
5255 /* OTP: 256B total; enter 0x3A */
5256 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5257 .tested = TEST_UNTESTED,
5258 .probe = probe_spi_rdid,
5259 .probe_timing = TIMING_ZERO,
5260 .block_erasers =
5261 {
5262 {
5263 .eraseblocks = { {4 * 1024, 64} },
5264 .block_erase = spi_block_erase_20,
5265 }, {
5266 .eraseblocks = { {64 * 1024, 4} },
5267 .block_erase = spi_block_erase_d8,
5268 }, {
5269 .eraseblocks = { {256 * 1024, 1} },
5270 .block_erase = spi_block_erase_60,
5271 }, {
5272 .eraseblocks = { {256 * 1024, 1} },
5273 .block_erase = spi_block_erase_c7,
5274 }
5275 },
5276 .printlock = spi_prettyprint_status_register_bp2_srwd,
5277 .unlock = spi_disable_blockprotect,
5278 .write = spi_chip_write_256,
5279 .read = spi_chip_read,
5280 .voltage = {1650, 1950},
5281 },
5282
5283 {
5284 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005285 .name = "EN25S32",
5286 .bustype = BUS_SPI,
5287 .manufacture_id = EON_ID_NOPREFIX,
5288 .model_id = EON_EN25S32,
5289 .total_size = 4096,
5290 .page_size = 256,
5291 /* OTP: 512B total; enter 0x3A */
5292 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5293 .tested = TEST_UNTESTED,
5294 .probe = probe_spi_rdid,
5295 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005296 .block_erasers =
5297 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005298 {
5299 .eraseblocks = { {4 * 1024, 1024} },
5300 .block_erase = spi_block_erase_20,
5301 }, {
5302 .eraseblocks = { {32 * 1024, 128} },
5303 .block_erase = spi_block_erase_52,
5304 }, {
5305 .eraseblocks = { {64 * 1024, 64} },
5306 .block_erase = spi_block_erase_d8,
5307 }, {
5308 .eraseblocks = { {4096 * 1024, 1} },
5309 .block_erase = spi_block_erase_60,
5310 }, {
5311 .eraseblocks = { {4096 * 1024, 1} },
5312 .block_erase = spi_block_erase_c7,
5313 }
5314 },
5315 .printlock = spi_prettyprint_status_register_en25s_wp,
5316 .unlock = spi_disable_blockprotect_bp3_srwd,
5317 .write = spi_chip_write_256,
5318 .read = spi_chip_read,
5319 .voltage = {1650, 1950},
5320 },
5321
5322 {
5323 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005324 .name = "EN25S40",
5325 .bustype = BUS_SPI,
5326 .manufacture_id = EON_ID_NOPREFIX,
5327 .model_id = EON_EN25S40,
5328 .total_size = 512,
5329 .page_size = 256,
5330 /* OTP: 256B total; enter 0x3A */
5331 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5332 .tested = TEST_OK_PREW,
5333 .probe = probe_spi_rdid,
5334 .probe_timing = TIMING_ZERO,
5335 .block_erasers =
5336 {
5337 {
5338 .eraseblocks = { {4 * 1024, 128} },
5339 .block_erase = spi_block_erase_20,
5340 }, {
5341 .eraseblocks = { {64 * 1024, 8} },
5342 .block_erase = spi_block_erase_d8,
5343 }, {
5344 .eraseblocks = { {512 * 1024, 1} },
5345 .block_erase = spi_block_erase_60,
5346 }, {
5347 .eraseblocks = { {512 * 1024, 1} },
5348 .block_erase = spi_block_erase_c7,
5349 }
5350 },
5351 .printlock = spi_prettyprint_status_register_bp2_srwd,
5352 .unlock = spi_disable_blockprotect,
5353 .write = spi_chip_write_256,
5354 .read = spi_chip_read,
5355 .voltage = {1650, 1950},
5356 },
5357
5358 {
5359 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005360 .name = "EN25S64",
5361 .bustype = BUS_SPI,
5362 .manufacture_id = EON_ID_NOPREFIX,
5363 .model_id = EON_EN25S64,
5364 .total_size = 8192,
5365 .page_size = 256,
5366 /* OTP: 512B total; enter 0x3A */
5367 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5368 .tested = TEST_UNTESTED,
5369 .probe = probe_spi_rdid,
5370 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005371 .block_erasers =
5372 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005373 {
5374 .eraseblocks = { {4 * 1024, 2048} },
5375 .block_erase = spi_block_erase_20,
5376 }, {
5377 .eraseblocks = { {64 * 1024, 128} },
5378 .block_erase = spi_block_erase_d8,
5379 }, {
5380 .eraseblocks = { {8192 * 1024, 1} },
5381 .block_erase = spi_block_erase_60,
5382 }, {
5383 .eraseblocks = { {8192 * 1024, 1} },
5384 .block_erase = spi_block_erase_c7,
5385 }
5386 },
5387 .printlock = spi_prettyprint_status_register_en25s_wp,
5388 .unlock = spi_disable_blockprotect_bp3_srwd,
5389 .write = spi_chip_write_256,
5390 .read = spi_chip_read,
5391 .voltage = {1650, 1950},
5392 },
5393
5394 {
5395 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005396 .name = "EN25S80",
5397 .bustype = BUS_SPI,
5398 .manufacture_id = EON_ID_NOPREFIX,
5399 .model_id = EON_EN25S80,
5400 .total_size = 1024,
5401 .page_size = 256,
5402 /* OTP: 256B total; enter 0x3A */
5403 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5404 .tested = TEST_UNTESTED,
5405 .probe = probe_spi_rdid,
5406 .probe_timing = TIMING_ZERO,
Russ Dill3cd5a122010-03-05 08:44:11 +00005407 .block_erasers =
5408 {
5409 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005410 .eraseblocks = { {4 * 1024, 256} },
5411 .block_erase = spi_block_erase_20,
5412 }, {
5413 .eraseblocks = { {64 * 1024, 16} },
5414 .block_erase = spi_block_erase_d8,
5415 }, {
5416 .eraseblocks = { {1024 * 1024, 1} },
5417 .block_erase = spi_block_erase_60,
5418 }, {
5419 .eraseblocks = { {1024 * 1024, 1} },
5420 .block_erase = spi_block_erase_c7,
5421 }
Russ Dill3cd5a122010-03-05 08:44:11 +00005422 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005423 .printlock = spi_prettyprint_status_register_bp2_srwd,
5424 .unlock = spi_disable_blockprotect,
5425 .write = spi_chip_write_256,
5426 .read = spi_chip_read,
5427 .voltage = {1650, 1950},
Russ Dill3cd5a122010-03-05 08:44:11 +00005428 },
5429
5430 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005431 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005432 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005433 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005434 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005435 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005436 .total_size = 256,
5437 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005438 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Alan Green4362e622019-08-26 15:02:12 +10005439 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005440 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005441 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005442 .block_erasers =
5443 {
5444 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005445 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005446 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005447 {8 * 1024, 2},
5448 {32 * 1024, 1},
5449 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005450 },
5451 .block_erase = erase_sector_jedec,
5452 }, {
5453 .eraseblocks = { {256 * 1024, 1} },
5454 .block_erase = erase_chip_block_jedec,
5455 },
5456 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005457 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005458 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005459 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005460 },
5461
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005462 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005463 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005464 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005465 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005466 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005467 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005468 .total_size = 256,
5469 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005470 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005471 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005472 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005473 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005474 .block_erasers =
5475 {
5476 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005477 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005478 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005479 {32 * 1024, 1},
5480 {8 * 1024, 2},
5481 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005482 },
5483 .block_erase = erase_sector_jedec,
5484 }, {
5485 .eraseblocks = { {256 * 1024, 1} },
5486 .block_erase = erase_chip_block_jedec,
5487 },
5488 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005489 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005490 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005491 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005492 },
5493
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005494 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005495 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005496 .name = "EN29F010",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005497 .bustype = BUS_PARALLEL,
5498 .manufacture_id = EON_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005499 .model_id = EON_EN29F010,
5500 .total_size = 128,
5501 .page_size = 128,
5502 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5503 .tested = TEST_OK_PRE,
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005504 .probe = probe_jedec,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005505 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005506 .block_erasers =
5507 {
5508 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005509 .eraseblocks = { {16 * 1024, 8} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005510 .block_erase = erase_sector_jedec,
5511 },
5512 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005513 .eraseblocks = { {128 * 1024, 1} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005514 .block_erase = erase_chip_block_jedec,
5515 },
5516 },
5517 .write = write_jedec_1,
5518 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005519 .voltage = {4500, 5500},
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005520 },
5521
5522 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005523 .vendor = "Eon",
5524 .name = "EN29GL064(A)B",
5525 .bustype = BUS_PARALLEL,
5526 .manufacture_id = EON_ID,
5527 .model_id = EON_EN29GL064B,
5528 .total_size = 8192,
5529 .page_size = 128 * 1024, /* actual page size is 16 */
5530 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5531 .tested = TEST_UNTESTED,
5532 .probe = probe_jedec_29gl,
5533 .probe_timing = TIMING_ZERO,
5534 .block_erasers =
5535 {
5536 {
5537 .eraseblocks = {
5538 {8 * 1024, 8},
5539 {64 * 1024, 127},
5540 },
5541 .block_erase = erase_sector_jedec,
5542 }, {
5543 .eraseblocks = { {8 * 1024 * 1024, 1} },
5544 .block_erase = erase_chip_block_jedec,
5545 },
5546 },
5547 .write = write_jedec_1,
5548 .read = read_memmapped,
5549 .voltage = {2700, 3600},
5550 },
5551
5552 {
5553 .vendor = "Eon",
5554 .name = "EN29GL064(A)T",
5555 .bustype = BUS_PARALLEL,
5556 .manufacture_id = EON_ID,
5557 .model_id = EON_EN29GL064T,
5558 .total_size = 8192,
5559 .page_size = 128 * 1024, /* actual page size is 16 */
5560 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5561 .tested = TEST_UNTESTED,
5562 .probe = probe_jedec_29gl,
5563 .probe_timing = TIMING_ZERO,
5564 .block_erasers =
5565 {
5566 {
5567 .eraseblocks = {
5568 {64 * 1024, 127},
5569 {8 * 1024, 8},
5570 },
5571 .block_erase = erase_sector_jedec,
5572 }, {
5573 .eraseblocks = { {8 * 1024 * 1024, 1} },
5574 .block_erase = erase_chip_block_jedec,
5575 },
5576 },
5577 .write = write_jedec_1,
5578 .read = read_memmapped,
5579 .voltage = {2700, 3600},
5580 },
5581
5582 {
5583 .vendor = "Eon",
5584 .name = "EN29GL064H/L",
5585 .bustype = BUS_PARALLEL,
5586 .manufacture_id = EON_ID,
5587 .model_id = EON_EN29GL064HL,
5588 .total_size = 8192,
5589 .page_size = 128 * 1024, /* actual page size is 16 */
5590 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5591 .tested = TEST_UNTESTED,
5592 .probe = probe_jedec_29gl,
5593 .probe_timing = TIMING_ZERO,
5594 .block_erasers =
5595 {
5596 {
5597 .eraseblocks = { {64 * 1024, 128} },
5598 .block_erase = erase_sector_jedec,
5599 }, {
5600 .eraseblocks = { {8 * 1024 * 1024, 1} },
5601 .block_erase = erase_chip_block_jedec,
5602 },
5603 },
5604 .write = write_jedec_1,
5605 .read = read_memmapped,
5606 .voltage = {2700, 3600},
5607 },
5608
5609 {
5610 .vendor = "Eon",
5611 .name = "EN29GL128",
5612 .bustype = BUS_PARALLEL,
5613 .manufacture_id = EON_ID,
5614 .model_id = EON_EN29GL128HL,
5615 .total_size = 16384,
5616 .page_size = 128 * 1024, /* actual page size is 16 */
5617 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5618 .tested = TEST_UNTESTED,
5619 .probe = probe_jedec_29gl,
5620 .probe_timing = TIMING_ZERO,
5621 .block_erasers =
5622 {
5623 {
5624 .eraseblocks = { {128 * 1024, 128} },
5625 .block_erase = erase_sector_jedec,
5626 }, {
5627 .eraseblocks = { {16 * 1024 * 1024, 1} },
5628 .block_erase = erase_chip_block_jedec,
5629 },
5630 },
5631 .write = write_jedec_1,
5632 .read = read_memmapped,
5633 .voltage = {2700, 3600},
5634 },
5635
5636 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005637 .vendor = "Eon",
5638 .name = "EN29LV040(A)",
5639 .bustype = BUS_PARALLEL,
5640 .manufacture_id = EON_ID,
5641 .model_id = EON_EN29LV040,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005642 .total_size = 512,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005643 .page_size = 4 * 1024,
5644 .tested = TEST_OK_PREW,
5645 .probe = probe_jedec,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005646 .probe_timing = TIMING_ZERO,
5647 .block_erasers =
5648 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005649 {
5650 .eraseblocks = { {64 * 1024, 8} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005651 .block_erase = erase_sector_jedec,
5652 },
5653 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005654 .eraseblocks = { {512 * 1024, 1} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005655 .block_erase = erase_chip_block_jedec,
5656 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005657 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005658 .write = write_jedec_1,
5659 .read = read_memmapped,
5660 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005661 },
5662
5663 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005664 .vendor = "Eon",
5665 .name = "EN29LV640B",
5666 .bustype = BUS_PARALLEL,
5667 .manufacture_id = EON_ID,
5668 .model_id = EON_EN29LV640B,
5669 .total_size = 8192,
5670 .page_size = 8192,
5671 .feature_bits = FEATURE_ADDR_SHIFTED,
5672 .tested = TEST_OK_PREW,
5673 .probe = probe_en29lv640b,
5674 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005675 .block_erasers =
5676 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005677 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005678 .eraseblocks = {
5679 {8 * 1024, 8},
5680 {64 * 1024, 127},
5681 },
5682 .block_erase = erase_block_jedec,
Stefan Tauner0be072c2016-03-13 15:16:30 +00005683 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005684 .eraseblocks = { {8 * 1024 * 1024, 1} },
5685 .block_erase = erase_chip_block_jedec,
5686 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005687 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005688 .write = write_en29lv640b,
5689 .read = read_memmapped,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005690 .voltage = {2700, 3600},
5691 },
5692
5693 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005694 .vendor = "Fujitsu",
5695 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005696 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005697 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005698 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005699 .total_size = 512,
5700 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005701 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005702 .tested = TEST_UNTESTED,
5703 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005704 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005705 .block_erasers =
5706 {
5707 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005708 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005709 {16 * 1024, 1},
5710 {8 * 1024, 2},
5711 {32 * 1024, 1},
5712 {64 * 1024, 7},
5713 },
Sean Nelson35727f72010-01-28 23:55:12 +00005714 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005715 }, {
5716 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005717 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005718 },
5719 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005720 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005721 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005722 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005723 },
5724
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005725 {
5726 .vendor = "Fujitsu",
5727 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005728 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005729 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005730 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005731 .total_size = 512,
5732 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005733 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005734 .tested = TEST_UNTESTED,
5735 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005736 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005737 .block_erasers =
5738 {
5739 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005740 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005741 {64 * 1024, 7},
5742 {32 * 1024, 1},
5743 {8 * 1024, 2},
5744 {16 * 1024, 1},
5745 },
Sean Nelson35727f72010-01-28 23:55:12 +00005746 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005747 }, {
5748 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005749 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005750 },
5751 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005752 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005753 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005754 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005755 },
5756
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005757 {
Sean Nelson35727f72010-01-28 23:55:12 +00005758 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005759 .vendor = "Fujitsu",
5760 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005761 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005762 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005763 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005764 .total_size = 512,
5765 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005766 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005767 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005768 .probe = probe_jedec,
5769 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005770 .block_erasers =
5771 {
5772 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005773 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005774 {16 * 1024, 1},
5775 {8 * 1024, 2},
5776 {32 * 1024, 1},
5777 {64 * 1024, 7},
5778 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005779 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005780 }, {
5781 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005782 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005783 },
5784 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005785 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005786 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005787 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005788 },
5789
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005790 {
5791 .vendor = "Fujitsu",
5792 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005793 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005794 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005795 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005796 .total_size = 512,
5797 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005798 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005799 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005800 .probe = probe_jedec,
5801 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005802 .block_erasers =
5803 {
5804 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005805 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005806 {64 * 1024, 7},
5807 {32 * 1024, 1},
5808 {8 * 1024, 2},
5809 {16 * 1024, 1},
5810 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005811 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005812 }, {
5813 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005814 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005815 },
5816 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005817 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005818 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005819 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005820 },
5821
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005822 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005823 .vendor = "Fujitsu",
5824 .name = "MBM29LV160BE",
5825 .bustype = BUS_PARALLEL,
5826 .manufacture_id = FUJITSU_ID,
5827 .model_id = FUJITSU_MBM29LV160BE,
5828 .total_size = 2 * 1024,
5829 .page_size = 0,
5830 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5831 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005832 .probe = probe_jedec,
5833 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005834 .block_erasers =
5835 {
5836 {
5837 .eraseblocks = {
5838 {16 * 1024, 1},
5839 {8 * 1024, 2},
5840 {32 * 1024, 1},
5841 {64 * 1024, 31},
5842 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005843 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005844 }, {
5845 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005846 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005847 },
5848 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005849 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005850 .read = read_memmapped,
5851 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5852 },
5853
5854 {
5855 .vendor = "Fujitsu",
5856 .name = "MBM29LV160TE",
5857 .bustype = BUS_PARALLEL,
5858 .manufacture_id = FUJITSU_ID,
5859 .model_id = FUJITSU_MBM29LV160TE,
5860 .total_size = 2 * 1024,
5861 .page_size = 0,
5862 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5863 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005864 .probe = probe_jedec,
5865 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005866 .block_erasers =
5867 {
5868 {
5869 .eraseblocks = {
5870 {64 * 1024, 31},
5871 {32 * 1024, 1},
5872 {8 * 1024, 2},
5873 {16 * 1024, 1},
5874 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005875 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005876 }, {
5877 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005878 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005879 },
5880 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005881 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005882 .read = read_memmapped,
5883 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5884 },
5885
5886 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005887 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005888 .name = "GD25B128B/GD25Q128B",
Roman Titov95edc892015-04-03 21:29:04 +00005889 .bustype = BUS_SPI,
5890 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005891 .model_id = GIGADEVICE_GD25Q128,
5892 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00005893 .page_size = 256,
5894 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5895 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005896 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00005897 .probe = probe_spi_rdid,
5898 .probe_timing = TIMING_ZERO,
5899 .block_erasers =
5900 {
5901 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005902 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00005903 .block_erase = spi_block_erase_20,
5904 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005905 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00005906 .block_erase = spi_block_erase_52,
5907 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005908 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00005909 .block_erase = spi_block_erase_d8,
5910 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005911 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00005912 .block_erase = spi_block_erase_60,
5913 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005914 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00005915 .block_erase = spi_block_erase_c7,
5916 }
5917 },
5918 .printlock = spi_prettyprint_status_register_bp4_srwd,
5919 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5920 .write = spi_chip_write_256,
5921 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10005922 .voltage = {2700, 3600},
Roman Titov95edc892015-04-03 21:29:04 +00005923 },
5924
5925 {
5926 .vendor = "GigaDevice",
Alan Green188127e2019-08-06 16:10:34 +10005927 .name = "GD25LQ128C/GD25LQ128D",
Roman Titov95edc892015-04-03 21:29:04 +00005928 .bustype = BUS_SPI,
5929 .manufacture_id = GIGADEVICE_ID,
Alan Green188127e2019-08-06 16:10:34 +10005930 .model_id = GIGADEVICE_GD25LQ128CD,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005931 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00005932 .page_size = 256,
5933 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5934 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5935 .tested = TEST_UNTESTED,
5936 .probe = probe_spi_rdid,
5937 .probe_timing = TIMING_ZERO,
5938 .block_erasers =
5939 {
5940 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005941 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00005942 .block_erase = spi_block_erase_20,
5943 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005944 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00005945 .block_erase = spi_block_erase_52,
5946 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005947 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00005948 .block_erase = spi_block_erase_d8,
5949 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005950 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00005951 .block_erase = spi_block_erase_60,
5952 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005953 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00005954 .block_erase = spi_block_erase_c7,
5955 }
5956 },
5957 .printlock = spi_prettyprint_status_register_bp4_srwd,
5958 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5959 .write = spi_chip_write_256,
5960 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5961 .voltage = {1695, 1950},
5962 },
5963
5964 {
5965 .vendor = "GigaDevice",
5966 .name = "GD25LQ16",
5967 .bustype = BUS_SPI,
5968 .manufacture_id = GIGADEVICE_ID,
5969 .model_id = GIGADEVICE_GD25LQ16,
5970 .total_size = 2048,
5971 .page_size = 256,
5972 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5973 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5974 .tested = TEST_UNTESTED,
5975 .probe = probe_spi_rdid,
5976 .probe_timing = TIMING_ZERO,
5977 .block_erasers =
5978 {
5979 {
5980 .eraseblocks = { {4 * 1024, 512} },
5981 .block_erase = spi_block_erase_20,
5982 }, {
5983 .eraseblocks = { {32 * 1024, 64} },
5984 .block_erase = spi_block_erase_52,
5985 }, {
5986 .eraseblocks = { {64 * 1024, 32} },
5987 .block_erase = spi_block_erase_d8,
5988 }, {
5989 .eraseblocks = { {2 * 1024 * 1024, 1} },
5990 .block_erase = spi_block_erase_60,
5991 }, {
5992 .eraseblocks = { {2 * 1024 * 1024, 1} },
5993 .block_erase = spi_block_erase_c7,
5994 }
5995 },
5996 .printlock = spi_prettyprint_status_register_bp4_srwd,
5997 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5998 .write = spi_chip_write_256,
5999 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6000 .voltage = {1695, 1950},
6001 },
6002
6003 {
6004 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006005 .name = "GD25LQ32",
6006 .bustype = BUS_SPI,
6007 .manufacture_id = GIGADEVICE_ID,
6008 .model_id = GIGADEVICE_GD25LQ32,
6009 .total_size = 4096,
6010 .page_size = 256,
6011 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6012 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6013 .tested = TEST_OK_PREW,
6014 .probe = probe_spi_rdid,
6015 .probe_timing = TIMING_ZERO,
6016 .block_erasers =
6017 {
6018 {
6019 .eraseblocks = { {4 * 1024, 1024} },
6020 .block_erase = spi_block_erase_20,
6021 }, {
6022 .eraseblocks = { {32 * 1024, 128} },
6023 .block_erase = spi_block_erase_52,
6024 }, {
6025 .eraseblocks = { {64 * 1024, 64} },
6026 .block_erase = spi_block_erase_d8,
6027 }, {
6028 .eraseblocks = { {4 * 1024 * 1024, 1} },
6029 .block_erase = spi_block_erase_60,
6030 }, {
6031 .eraseblocks = { {4 * 1024 * 1024, 1} },
6032 .block_erase = spi_block_erase_c7,
6033 }
6034 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006035 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006036 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6037 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00006038 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6039 .voltage = {1695, 1950},
6040 },
6041
6042 {
6043 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006044 .name = "GD25LQ40",
6045 .bustype = BUS_SPI,
6046 .manufacture_id = GIGADEVICE_ID,
6047 .model_id = GIGADEVICE_GD25LQ40,
6048 .total_size = 512,
6049 .page_size = 256,
6050 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6051 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6052 .tested = TEST_UNTESTED,
6053 .probe = probe_spi_rdid,
6054 .probe_timing = TIMING_ZERO,
6055 .block_erasers =
6056 {
6057 {
6058 .eraseblocks = { {4 * 1024, 128} },
6059 .block_erase = spi_block_erase_20,
6060 }, {
6061 .eraseblocks = { {32 * 1024, 16} },
6062 .block_erase = spi_block_erase_52,
6063 }, {
6064 .eraseblocks = { {64 * 1024, 8} },
6065 .block_erase = spi_block_erase_d8,
6066 }, {
6067 .eraseblocks = { {512 * 1024, 1} },
6068 .block_erase = spi_block_erase_60,
6069 }, {
6070 .eraseblocks = { {512 * 1024, 1} },
6071 .block_erase = spi_block_erase_c7,
6072 }
6073 },
6074 .printlock = spi_prettyprint_status_register_bp4_srwd,
6075 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6076 .write = spi_chip_write_256,
6077 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6078 .voltage = {1695, 1950},
6079 },
6080
6081 {
6082 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00006083 .name = "GD25LQ64(B)",
6084 .bustype = BUS_SPI,
6085 .manufacture_id = GIGADEVICE_ID,
6086 .model_id = GIGADEVICE_GD25LQ64,
6087 .total_size = 8192,
6088 .page_size = 256,
6089 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6090 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00006091 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006092 .probe = probe_spi_rdid,
6093 .probe_timing = TIMING_ZERO,
6094 .block_erasers =
6095 {
6096 {
6097 .eraseblocks = { {4 * 1024, 2048} },
6098 .block_erase = spi_block_erase_20,
6099 }, {
6100 .eraseblocks = { {32 * 1024, 256} },
6101 .block_erase = spi_block_erase_52,
6102 }, {
6103 .eraseblocks = { {64 * 1024, 128} },
6104 .block_erase = spi_block_erase_d8,
6105 }, {
6106 .eraseblocks = { {8 * 1024 * 1024, 1} },
6107 .block_erase = spi_block_erase_60,
6108 }, {
6109 .eraseblocks = { {8 * 1024 * 1024, 1} },
6110 .block_erase = spi_block_erase_c7,
6111 }
6112 },
6113 .printlock = spi_prettyprint_status_register_bp4_srwd,
6114 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6115 .write = spi_chip_write_256,
6116 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6117 .voltage = {1695, 1950},
6118 },
6119
6120 {
6121 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006122 .name = "GD25LQ80",
Roman Titov95edc892015-04-03 21:29:04 +00006123 .bustype = BUS_SPI,
6124 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006125 .model_id = GIGADEVICE_GD25LQ80,
6126 .total_size = 1024,
Roman Titov95edc892015-04-03 21:29:04 +00006127 .page_size = 256,
6128 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6129 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6130 .tested = TEST_UNTESTED,
6131 .probe = probe_spi_rdid,
6132 .probe_timing = TIMING_ZERO,
6133 .block_erasers =
6134 {
6135 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006136 .eraseblocks = { {4 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006137 .block_erase = spi_block_erase_20,
6138 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006139 .eraseblocks = { {32 * 1024, 32} },
Roman Titov95edc892015-04-03 21:29:04 +00006140 .block_erase = spi_block_erase_52,
6141 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006142 .eraseblocks = { {64 * 1024, 16} },
Roman Titov95edc892015-04-03 21:29:04 +00006143 .block_erase = spi_block_erase_d8,
6144 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006145 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006146 .block_erase = spi_block_erase_60,
6147 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006148 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006149 .block_erase = spi_block_erase_c7,
6150 }
6151 },
6152 .printlock = spi_prettyprint_status_register_bp4_srwd,
6153 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6154 .write = spi_chip_write_256,
6155 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6156 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006157 },
6158
6159 {
6160 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006161 .name = "GD25Q10",
6162 .bustype = BUS_SPI,
6163 .manufacture_id = GIGADEVICE_ID,
6164 .model_id = GIGADEVICE_GD25Q10,
6165 .total_size = 128,
6166 .page_size = 256,
6167 .feature_bits = FEATURE_WRSR_WREN,
6168 .tested = TEST_UNTESTED,
6169 .probe = probe_spi_rdid,
6170 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006171 .block_erasers =
6172 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006173 {
6174 .eraseblocks = { {4 * 1024, 32} },
6175 .block_erase = spi_block_erase_20,
6176 }, {
6177 .eraseblocks = { {32 * 1024, 4} },
6178 .block_erase = spi_block_erase_52,
6179 }, {
6180 .eraseblocks = { {64 * 1024, 2} },
6181 .block_erase = spi_block_erase_d8,
6182 }, {
6183 .eraseblocks = { {128 * 1024, 1} },
6184 .block_erase = spi_block_erase_60,
6185 }, {
6186 .eraseblocks = { {128 * 1024, 1} },
6187 .block_erase = spi_block_erase_c7,
6188 }
6189 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006190 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006191 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6192 .write = spi_chip_write_256,
6193 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6194 .voltage = {2700, 3600},
6195 },
6196
6197 {
6198 .vendor = "GigaDevice",
Alan Green4f009122019-08-26 10:45:18 +10006199 .name = "GD25Q127C/GD25Q128C",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006200 .bustype = BUS_SPI,
6201 .manufacture_id = GIGADEVICE_ID,
6202 .model_id = GIGADEVICE_GD25Q128,
6203 .total_size = 16384,
6204 .page_size = 256,
6205 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6206 /* QPI: enable 0x38, disable 0xFF */
6207 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Angel Ponsbce364c2018-09-30 20:04:14 +02006208 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006209 .probe = probe_spi_rdid,
6210 .probe_timing = TIMING_ZERO,
6211 .block_erasers =
6212 {
6213 {
6214 .eraseblocks = { {4 * 1024, 4096} },
6215 .block_erase = spi_block_erase_20,
6216 }, {
6217 .eraseblocks = { {32 * 1024, 512} },
6218 .block_erase = spi_block_erase_52,
6219 }, {
6220 .eraseblocks = { {64 * 1024, 256} },
6221 .block_erase = spi_block_erase_d8,
6222 }, {
6223 .eraseblocks = { {16 * 1024 * 1024, 1} },
6224 .block_erase = spi_block_erase_60,
6225 }, {
6226 .eraseblocks = { {16 * 1024 * 1024, 1} },
6227 .block_erase = spi_block_erase_c7,
6228 }
6229 },
6230 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6231 .printlock = spi_prettyprint_status_register_bp4_srwd,
6232 .unlock = spi_disable_blockprotect_bp4_srwd,
6233 .write = spi_chip_write_256,
6234 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6235 .voltage = {2700, 3600},
6236 },
6237
6238 {
6239 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006240 .name = "GD25Q16(B)",
6241 .bustype = BUS_SPI,
6242 .manufacture_id = GIGADEVICE_ID,
6243 .model_id = GIGADEVICE_GD25Q16,
6244 .total_size = 2048,
6245 .page_size = 256,
6246 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6247 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6248 .tested = TEST_OK_PREW,
6249 .probe = probe_spi_rdid,
6250 .probe_timing = TIMING_ZERO,
6251 .block_erasers =
6252 {
6253 {
6254 .eraseblocks = { {4 * 1024, 512} },
6255 .block_erase = spi_block_erase_20,
6256 }, {
6257 .eraseblocks = { {32 * 1024, 64} },
6258 .block_erase = spi_block_erase_52,
6259 }, {
6260 .eraseblocks = { {64 * 1024, 32} },
6261 .block_erase = spi_block_erase_d8,
6262 }, {
6263 .eraseblocks = { {2 * 1024 * 1024, 1} },
6264 .block_erase = spi_block_erase_60,
6265 }, {
6266 .eraseblocks = { {2 * 1024 * 1024, 1} },
6267 .block_erase = spi_block_erase_c7,
6268 }
6269 },
6270 .printlock = spi_prettyprint_status_register_bp4_srwd,
6271 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6272 .write = spi_chip_write_256,
6273 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6274 .voltage = {2700, 3600},
6275 },
6276
6277 {
6278 .vendor = "GigaDevice",
6279 .name = "GD25Q20(B)",
6280 .bustype = BUS_SPI,
6281 .manufacture_id = GIGADEVICE_ID,
6282 .model_id = GIGADEVICE_GD25Q20,
6283 .total_size = 256,
6284 .page_size = 256,
6285 .feature_bits = FEATURE_WRSR_WREN,
6286 .tested = TEST_OK_PREW,
6287 .probe = probe_spi_rdid,
6288 .probe_timing = TIMING_ZERO,
6289 .block_erasers =
6290 {
6291 {
6292 .eraseblocks = { {4 * 1024, 64} },
6293 .block_erase = spi_block_erase_20,
6294 }, {
6295 .eraseblocks = { {32 * 1024, 8} },
6296 .block_erase = spi_block_erase_52,
6297 }, {
6298 .eraseblocks = { {64 * 1024, 4} },
6299 .block_erase = spi_block_erase_d8,
6300 }, {
6301 .eraseblocks = { {256 * 1024, 1} },
6302 .block_erase = spi_block_erase_60,
6303 }, {
6304 .eraseblocks = { {256 * 1024, 1} },
6305 .block_erase = spi_block_erase_c7,
6306 }
6307 },
6308 .printlock = spi_prettyprint_status_register_bp4_srwd,
6309 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6310 .write = spi_chip_write_256,
6311 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6312 .voltage = {2700, 3600},
6313 },
6314
6315 {
6316 .vendor = "GigaDevice",
Alan Green86fc9cf2019-08-26 15:02:12 +10006317 .name = "GD25Q256D",
6318 .bustype = BUS_SPI,
6319 .manufacture_id = GIGADEVICE_ID,
6320 .model_id = GIGADEVICE_GD25Q256D,
6321 .total_size = 32768,
6322 .page_size = 256,
6323 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
6324 .tested = TEST_UNTESTED,
6325 .probe = probe_spi_rdid,
6326 .probe_timing = TIMING_ZERO,
6327 .block_erasers =
6328 {
6329 {
6330 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber5374dc32019-10-04 16:16:15 +02006331 .block_erase = spi_block_erase_21,
6332 }, {
6333 .eraseblocks = { {4 * 1024, 8192} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006334 .block_erase = spi_block_erase_20,
6335 }, {
6336 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber5374dc32019-10-04 16:16:15 +02006337 .block_erase = spi_block_erase_5c,
6338 }, {
6339 .eraseblocks = { {32 * 1024, 1024} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006340 .block_erase = spi_block_erase_52,
6341 }, {
6342 .eraseblocks = { {64 * 1024, 512} },
Nico Huber5374dc32019-10-04 16:16:15 +02006343 .block_erase = spi_block_erase_dc,
6344 }, {
6345 .eraseblocks = { {64 * 1024, 512} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006346 .block_erase = spi_block_erase_d8,
6347 }, {
6348 .eraseblocks = { {32 * 1024 * 1024, 1} },
6349 .block_erase = spi_block_erase_60,
6350 }, {
6351 .eraseblocks = { {32 * 1024 * 1024, 1} },
6352 .block_erase = spi_block_erase_c7,
6353 }
6354 },
6355 .printlock = spi_prettyprint_status_register_bp3_srwd,
6356 .unlock = spi_disable_blockprotect,
6357 .write = spi_chip_write_256,
6358 .read = spi_chip_read,
6359 .voltage = {2700, 3600},
6360 },
6361
6362 {
6363 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006364 .name = "GD25Q32(B)",
6365 .bustype = BUS_SPI,
6366 .manufacture_id = GIGADEVICE_ID,
6367 .model_id = GIGADEVICE_GD25Q32,
6368 .total_size = 4096,
6369 .page_size = 256,
6370 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6371 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6372 .tested = TEST_OK_PREW,
6373 .probe = probe_spi_rdid,
6374 .probe_timing = TIMING_ZERO,
6375 .block_erasers =
6376 {
6377 {
6378 .eraseblocks = { {4 * 1024, 1024} },
6379 .block_erase = spi_block_erase_20,
6380 }, {
6381 .eraseblocks = { {32 * 1024, 128} },
6382 .block_erase = spi_block_erase_52,
6383 }, {
6384 .eraseblocks = { {64 * 1024, 64} },
6385 .block_erase = spi_block_erase_d8,
6386 }, {
6387 .eraseblocks = { {4 * 1024 * 1024, 1} },
6388 .block_erase = spi_block_erase_60,
6389 }, {
6390 .eraseblocks = { {4 * 1024 * 1024, 1} },
6391 .block_erase = spi_block_erase_c7,
6392 }
6393 },
6394 .printlock = spi_prettyprint_status_register_bp4_srwd,
6395 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6396 .write = spi_chip_write_256,
6397 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6398 .voltage = {2700, 3600},
6399 },
6400
6401 {
6402 .vendor = "GigaDevice",
6403 .name = "GD25Q40(B)",
6404 .bustype = BUS_SPI,
6405 .manufacture_id = GIGADEVICE_ID,
6406 .model_id = GIGADEVICE_GD25Q40,
6407 .total_size = 512,
6408 .page_size = 256,
6409 .feature_bits = FEATURE_WRSR_WREN,
6410 .tested = TEST_UNTESTED,
6411 .probe = probe_spi_rdid,
6412 .probe_timing = TIMING_ZERO,
6413 .block_erasers =
6414 {
6415 {
6416 .eraseblocks = { {4 * 1024, 128} },
6417 .block_erase = spi_block_erase_20,
6418 }, {
6419 .eraseblocks = { {32 * 1024, 16} },
6420 .block_erase = spi_block_erase_52,
6421 }, {
6422 .eraseblocks = { {64 * 1024, 8} },
6423 .block_erase = spi_block_erase_d8,
6424 }, {
6425 .eraseblocks = { {512 * 1024, 1} },
6426 .block_erase = spi_block_erase_60,
6427 }, {
6428 .eraseblocks = { {512 * 1024, 1} },
6429 .block_erase = spi_block_erase_c7,
6430 }
6431 },
6432 .printlock = spi_prettyprint_status_register_bp4_srwd,
6433 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6434 .write = spi_chip_write_256,
6435 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6436 .voltage = {2700, 3600},
6437 },
6438
6439 {
6440 .vendor = "GigaDevice",
6441 .name = "GD25Q512",
6442 .bustype = BUS_SPI,
6443 .manufacture_id = GIGADEVICE_ID,
6444 .model_id = GIGADEVICE_GD25Q512,
6445 .total_size = 64,
6446 .page_size = 256,
6447 .feature_bits = FEATURE_WRSR_WREN,
6448 .tested = TEST_OK_PREW,
6449 .probe = probe_spi_rdid,
6450 .probe_timing = TIMING_ZERO,
6451 .block_erasers =
6452 {
6453 {
6454 .eraseblocks = { {4 * 1024, 16} },
6455 .block_erase = spi_block_erase_20,
6456 }, {
6457 .eraseblocks = { {32 * 1024, 2} },
6458 .block_erase = spi_block_erase_52,
6459 }, {
6460 .eraseblocks = { {64 * 1024, 1} },
6461 .block_erase = spi_block_erase_60,
6462 }, {
6463 .eraseblocks = { {64 * 1024, 1} },
6464 .block_erase = spi_block_erase_c7,
6465 }
6466 },
6467 .printlock = spi_prettyprint_status_register_bp4_srwd,
6468 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6469 .write = spi_chip_write_256,
6470 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6471 .voltage = {2700, 3600},
6472 },
6473
6474 {
6475 .vendor = "GigaDevice",
6476 .name = "GD25Q64(B)",
6477 .bustype = BUS_SPI,
6478 .manufacture_id = GIGADEVICE_ID,
6479 .model_id = GIGADEVICE_GD25Q64,
6480 .total_size = 8192,
6481 .page_size = 256,
6482 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6483 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6484 .tested = TEST_OK_PREW,
6485 .probe = probe_spi_rdid,
6486 .probe_timing = TIMING_ZERO,
6487 .block_erasers =
6488 {
6489 {
6490 .eraseblocks = { {4 * 1024, 2048} },
6491 .block_erase = spi_block_erase_20,
6492 }, {
6493 .eraseblocks = { {32 * 1024, 256} },
6494 .block_erase = spi_block_erase_52,
6495 }, {
6496 .eraseblocks = { {64 * 1024, 128} },
6497 .block_erase = spi_block_erase_d8,
6498 }, {
6499 .eraseblocks = { {8 * 1024 * 1024, 1} },
6500 .block_erase = spi_block_erase_60,
6501 }, {
6502 .eraseblocks = { {8 * 1024 * 1024, 1} },
6503 .block_erase = spi_block_erase_c7,
6504 }
6505 },
6506 .printlock = spi_prettyprint_status_register_bp4_srwd,
6507 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6508 .write = spi_chip_write_256,
6509 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6510 .voltage = {2700, 3600},
6511 },
6512
6513 {
6514 .vendor = "GigaDevice",
6515 .name = "GD25Q80(B)",
6516 .bustype = BUS_SPI,
6517 .manufacture_id = GIGADEVICE_ID,
6518 .model_id = GIGADEVICE_GD25Q80,
6519 .total_size = 1024,
6520 .page_size = 256,
6521 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6522 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6523 .tested = TEST_OK_PREW,
6524 .probe = probe_spi_rdid,
6525 .probe_timing = TIMING_ZERO,
6526 .block_erasers =
6527 {
6528 {
6529 .eraseblocks = { {4 * 1024, 256} },
6530 .block_erase = spi_block_erase_20,
6531 }, {
6532 .eraseblocks = { {32 * 1024, 32} },
6533 .block_erase = spi_block_erase_52,
6534 }, {
6535 .eraseblocks = { {64 * 1024, 16} },
6536 .block_erase = spi_block_erase_d8,
6537 }, {
6538 .eraseblocks = { {1024 * 1024, 1} },
6539 .block_erase = spi_block_erase_60,
6540 }, {
6541 .eraseblocks = { {1024 * 1024, 1} },
6542 .block_erase = spi_block_erase_c7,
6543 }
6544 },
6545 .printlock = spi_prettyprint_status_register_bp4_srwd,
6546 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6547 .write = spi_chip_write_256,
6548 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6549 .voltage = {2700, 3600},
6550 },
6551
6552 {
6553 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006554 .name = "GD25T80",
6555 .bustype = BUS_SPI,
6556 .manufacture_id = GIGADEVICE_ID,
6557 .model_id = GIGADEVICE_GD25T80,
6558 .total_size = 1024,
6559 .page_size = 256,
6560 /* OTP: 256B total; enter 0x3A */
6561 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6562 .tested = TEST_UNTESTED,
6563 .probe = probe_spi_rdid,
6564 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006565 .block_erasers =
6566 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006567 {
6568 .eraseblocks = { {4 * 1024, 256} },
6569 .block_erase = spi_block_erase_20,
6570 }, {
6571 .eraseblocks = { {64 * 1024, 16} },
6572 .block_erase = spi_block_erase_52,
6573 }, {
6574 .eraseblocks = { {64 * 1024, 16} },
6575 .block_erase = spi_block_erase_d8,
6576 }, {
6577 .eraseblocks = { {1024 * 1024, 1} },
6578 .block_erase = spi_block_erase_60,
6579 }, {
6580 .eraseblocks = { {1024 * 1024, 1} },
6581 .block_erase = spi_block_erase_c7,
6582 }
6583 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006584 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006585 .unlock = spi_disable_blockprotect,
6586 .write = spi_chip_write_256,
6587 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006588 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006589 },
6590
6591 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006592 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006593 .name = "GD25VQ16C",
6594 .bustype = BUS_SPI,
6595 .manufacture_id = GIGADEVICE_ID,
6596 .model_id = GIGADEVICE_GD25VQ16C,
6597 .total_size = 2 * 1024,
6598 .page_size = 256,
6599 /* Supports SFDP */
6600 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6601 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6602 .tested = TEST_UNTESTED,
6603 .probe = probe_spi_rdid,
6604 .probe_timing = TIMING_ZERO,
6605 .block_erasers =
6606 {
6607 {
6608 .eraseblocks = { { 4 * 1024, 512} },
6609 .block_erase = spi_block_erase_20,
6610 }, {
6611 .eraseblocks = { { 32 * 1024, 64} },
6612 .block_erase = spi_block_erase_52,
6613 }, {
6614 .eraseblocks = { { 64 * 1024, 32} },
6615 .block_erase = spi_block_erase_d8,
6616 }, {
6617 .eraseblocks = { {2 * 1024 * 1024, 1} },
6618 .block_erase = spi_block_erase_60,
6619 }, {
6620 .eraseblocks = { {2 * 1024 * 1024, 1} },
6621 .block_erase = spi_block_erase_c7,
6622 }
6623 },
6624 .printlock = spi_prettyprint_status_register_bp4_srwd,
6625 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6626 .write = spi_chip_write_256,
6627 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6628 .voltage = {2300, 3600},
6629 },
6630
6631 {
6632 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006633 .name = "GD25VQ21B",
6634 .bustype = BUS_SPI,
6635 .manufacture_id = GIGADEVICE_ID,
6636 .model_id = GIGADEVICE_GD25VQ21B,
6637 .total_size = 256,
6638 .page_size = 256,
6639 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6640 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6641 .tested = TEST_UNTESTED,
6642 .probe = probe_spi_rdid,
6643 .probe_timing = TIMING_ZERO,
6644 .block_erasers =
6645 {
6646 {
6647 .eraseblocks = { { 4 * 1024, 64} },
6648 .block_erase = spi_block_erase_20,
6649 }, {
6650 .eraseblocks = { { 32 * 1024, 8} },
6651 .block_erase = spi_block_erase_52,
6652 }, {
6653 .eraseblocks = { { 64 * 1024, 4} },
6654 .block_erase = spi_block_erase_d8,
6655 }, {
6656 .eraseblocks = { {256 * 1024, 1} },
6657 .block_erase = spi_block_erase_60,
6658 }, {
6659 .eraseblocks = { {256 * 1024, 1} },
6660 .block_erase = spi_block_erase_c7,
6661 }
6662 },
6663 .printlock = spi_prettyprint_status_register_bp4_srwd,
6664 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6665 .write = spi_chip_write_256,
6666 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6667 .voltage = {2300, 3600},
6668 },
6669
6670 {
6671 .vendor = "GigaDevice",
6672 .name = "GD25VQ40C",
6673 .bustype = BUS_SPI,
6674 .manufacture_id = GIGADEVICE_ID,
6675 .model_id = GIGADEVICE_GD25VQ41B,
6676 .total_size = 512,
6677 .page_size = 256,
6678 /* Supports SFDP */
6679 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6680 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6681 .tested = TEST_UNTESTED,
6682 .probe = probe_spi_rdid,
6683 .probe_timing = TIMING_ZERO,
6684 .block_erasers =
6685 {
6686 {
6687 .eraseblocks = { { 4 * 1024, 128} },
6688 .block_erase = spi_block_erase_20,
6689 }, {
6690 .eraseblocks = { { 32 * 1024, 16} },
6691 .block_erase = spi_block_erase_52,
6692 }, {
6693 .eraseblocks = { { 64 * 1024, 8} },
6694 .block_erase = spi_block_erase_d8,
6695 }, {
6696 .eraseblocks = { {512 * 1024, 1} },
6697 .block_erase = spi_block_erase_60,
6698 }, {
6699 .eraseblocks = { {512 * 1024, 1} },
6700 .block_erase = spi_block_erase_c7,
6701 }
6702 },
6703 .printlock = spi_prettyprint_status_register_bp4_srwd,
6704 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6705 .write = spi_chip_write_256,
6706 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6707 .voltage = {2300, 3600},
6708 },
6709
6710 {
6711 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006712 .name = "GD25VQ41B",
6713 .bustype = BUS_SPI,
6714 .manufacture_id = GIGADEVICE_ID,
6715 .model_id = GIGADEVICE_GD25VQ41B,
6716 .total_size = 512,
6717 .page_size = 256,
6718 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6719 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006720 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006721 .probe = probe_spi_rdid,
6722 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006723 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006724 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00006725 {
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 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006741 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006742 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006743 .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 = {2300, 3600},
6747 },
6748
6749 {
6750 .vendor = "GigaDevice",
6751 .name = "GD25VQ80C",
6752 .bustype = BUS_SPI,
6753 .manufacture_id = GIGADEVICE_ID,
6754 .model_id = GIGADEVICE_GD25VQ80C,
6755 .total_size = 1024,
6756 .page_size = 256,
6757 /* Supports SFDP */
6758 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6759 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6760 .tested = TEST_UNTESTED,
6761 .probe = probe_spi_rdid,
6762 .probe_timing = TIMING_ZERO,
6763 .block_erasers =
6764 {
6765 {
6766 .eraseblocks = { { 4 * 1024, 256} },
6767 .block_erase = spi_block_erase_20,
6768 }, {
6769 .eraseblocks = { { 32 * 1024, 32} },
6770 .block_erase = spi_block_erase_52,
6771 }, {
6772 .eraseblocks = { { 64 * 1024, 16} },
6773 .block_erase = spi_block_erase_d8,
6774 }, {
6775 .eraseblocks = { {1024 * 1024, 1} },
6776 .block_erase = spi_block_erase_60,
6777 }, {
6778 .eraseblocks = { {1024 * 1024, 1} },
6779 .block_erase = spi_block_erase_c7,
6780 }
6781 },
6782 .printlock = spi_prettyprint_status_register_bp4_srwd,
6783 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6784 .write = spi_chip_write_256,
6785 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6786 .voltage = {2300, 3600},
6787 },
6788
6789 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006790 .vendor = "Hyundai",
6791 .name = "HY29F002B",
6792 .bustype = BUS_PARALLEL,
6793 .manufacture_id = HYUNDAI_ID,
6794 .model_id = HYUNDAI_HY29F002B,
6795 .total_size = 256,
6796 .page_size = 256 * 1024,
6797 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006798 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006799 .probe = probe_jedec,
6800 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006801 .block_erasers =
6802 {
6803 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006804 .eraseblocks = {
6805 {16 * 1024, 1},
6806 {8 * 1024, 2},
6807 {32 * 1024, 1},
6808 {64 * 1024, 3},
6809 },
6810 .block_erase = erase_sector_jedec,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006811 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006812 .eraseblocks = { {256 * 1024, 1} },
6813 .block_erase = erase_chip_block_jedec,
6814 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006815 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10006816 .write = write_jedec_1,
6817 .read = read_memmapped,
6818 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006819 },
6820
6821 {
David Borgc96a8bd2010-06-21 16:12:22 +00006822 .vendor = "Hyundai",
6823 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006824 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006825 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006826 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00006827 .total_size = 256,
6828 .page_size = 256 * 1024,
6829 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006830 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00006831 .probe = probe_jedec,
6832 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6833 .block_erasers =
6834 {
6835 {
6836 .eraseblocks = {
6837 {64 * 1024, 3},
6838 {32 * 1024, 1},
6839 {8 * 1024, 2},
6840 {16 * 1024, 1},
6841 },
6842 .block_erase = erase_sector_jedec,
6843 }, {
6844 .eraseblocks = { {256 * 1024, 1} },
6845 .block_erase = erase_chip_block_jedec,
6846 },
6847 },
6848 .write = write_jedec_1,
6849 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006850 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006851 },
6852
6853 {
6854 .vendor = "Hyundai",
Joshua Roysf1324e02010-09-16 00:51:51 +00006855 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006856 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006857 .manufacture_id = HYUNDAI_ID,
6858 .model_id = HYUNDAI_HY29F040A,
6859 .total_size = 512,
6860 .page_size = 64 * 1024,
6861 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6862 .tested = TEST_UNTESTED,
6863 .probe = probe_jedec,
6864 .probe_timing = TIMING_ZERO,
6865 .block_erasers =
6866 {
6867 {
6868 .eraseblocks = { {64 * 1024, 8} },
6869 .block_erase = erase_sector_jedec,
6870 }, {
6871 .eraseblocks = { {512 * 1024, 1} },
6872 .block_erase = erase_chip_block_jedec,
6873 },
6874 },
6875 .write = write_jedec_1,
6876 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006877 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006878 },
6879
6880 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00006881 .vendor = "ISSI",
Angel Pons2ef47f32018-09-30 16:47:30 +02006882 .name = "IS25LP064",
6883 .bustype = BUS_SPI,
6884 .manufacture_id = ISSI_ID_SPI,
6885 .model_id = ISSI_IS25LP064,
6886 .total_size = 8192,
6887 .page_size = 256,
6888 /* OTP: 1024B total; read 0x48; write 0x42 */
6889 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6890 .tested = TEST_UNTESTED,
6891 .probe = probe_spi_rdid,
6892 .probe_timing = TIMING_ZERO,
6893 .block_erasers =
6894 {
6895 {
6896 .eraseblocks = { {4 * 1024, 2048} },
6897 .block_erase = spi_block_erase_20,
6898 }, {
6899 .eraseblocks = { {4 * 1024, 2048} },
6900 .block_erase = spi_block_erase_d7,
6901 }, {
6902 .eraseblocks = { {32 * 1024, 256} },
6903 .block_erase = spi_block_erase_52,
6904 }, {
6905 .eraseblocks = { {64 * 1024, 128} },
6906 .block_erase = spi_block_erase_d8,
6907 }, {
6908 .eraseblocks = { {8 * 1024 * 1024, 1} },
6909 .block_erase = spi_block_erase_60,
6910 }, {
6911 .eraseblocks = { {8 * 1024 * 1024, 1} },
6912 .block_erase = spi_block_erase_c7,
6913 }
6914 },
6915 .unlock = spi_disable_blockprotect,
6916 .write = spi_chip_write_256,
6917 .read = spi_chip_read,
6918 .voltage = {2300, 3600},
6919 },
6920
6921 {
6922 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07006923 .name = "IS25LP128",
6924 .bustype = BUS_SPI,
6925 .manufacture_id = ISSI_ID_SPI,
6926 .model_id = ISSI_IS25LP128,
6927 .total_size = 16384,
6928 .page_size = 256,
6929 /* OTP: 1024B total; read 0x48; write 0x42 */
6930 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6931 .tested = TEST_OK_PREW,
6932 .probe = probe_spi_rdid,
6933 .probe_timing = TIMING_ZERO,
6934 .block_erasers =
6935 {
6936 {
6937 .eraseblocks = { {4 * 1024, 4096} },
6938 .block_erase = spi_block_erase_20,
6939 }, {
6940 .eraseblocks = { {4 * 1024, 4096} },
6941 .block_erase = spi_block_erase_d7,
6942 }, {
6943 .eraseblocks = { {32 * 1024, 512} },
6944 .block_erase = spi_block_erase_52,
6945 }, {
6946 .eraseblocks = { {64 * 1024, 256} },
6947 .block_erase = spi_block_erase_d8,
6948 }, {
6949 .eraseblocks = { {16 * 1024 * 1024, 1} },
6950 .block_erase = spi_block_erase_60,
6951 }, {
6952 .eraseblocks = { {16 * 1024 * 1024, 1} },
6953 .block_erase = spi_block_erase_c7,
6954 }
6955 },
6956 .unlock = spi_disable_blockprotect,
6957 .write = spi_chip_write_256,
6958 .read = spi_chip_read,
6959 .voltage = {2300, 3600},
6960 },
6961
6962 {
6963 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00006964 .name = "IS25LP256",
6965 .bustype = BUS_SPI,
6966 .manufacture_id = ISSI_ID_SPI,
6967 .model_id = ISSI_IS25LP256,
6968 .total_size = 32768,
6969 .page_size = 256,
6970 /* supports SFDP */
6971 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
6972 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
6973 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
6974 .tested = TEST_OK_PREW,
6975 .probe = probe_spi_rdid,
6976 .probe_timing = TIMING_ZERO,
6977 .block_erasers =
6978 {
6979 {
6980 .eraseblocks = { {4 * 1024, 8192} },
6981 .block_erase = spi_block_erase_21,
6982 }, {
6983 .eraseblocks = { {4 * 1024, 8192} },
6984 .block_erase = spi_block_erase_20,
6985 /* could also use spi_block_erase_d7 */
6986 }, {
6987 .eraseblocks = { {32 * 1024, 1024} },
6988 .block_erase = spi_block_erase_5c,
6989 }, {
6990 .eraseblocks = { {32 * 1024, 1024} },
6991 .block_erase = spi_block_erase_52,
6992 }, {
6993 .eraseblocks = { {64 * 1024, 512} },
6994 .block_erase = spi_block_erase_dc,
6995 }, {
6996 .eraseblocks = { {64 * 1024, 512} },
6997 .block_erase = spi_block_erase_d8,
6998 }, {
6999 .eraseblocks = { {32 * 1024 * 1024, 1} },
7000 .block_erase = spi_block_erase_60,
7001 }, {
7002 .eraseblocks = { {32 * 1024 * 1024, 1} },
7003 .block_erase = spi_block_erase_c7,
7004 }
7005 },
7006 .unlock = spi_disable_blockprotect,
7007 .write = spi_chip_write_256,
7008 .read = spi_chip_read,
7009 .voltage = {2300, 3600},
7010 },
7011
7012 {
7013 .vendor = "ISSI",
Nico Huberb27b8d12018-10-02 20:46:21 +02007014 .name = "IS25WP032",
7015 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007016 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007017 .model_id = ISSI_IS25WP032,
7018 .total_size = 4096,
7019 .page_size = 256,
7020 /* OTP: 1024B total; read 0x48; write 0x42 */
7021 /* QPI enable 0x35, disable 0xF5 */
7022 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7023 .tested = TEST_UNTESTED,
7024 .probe = probe_spi_rdid,
7025 .probe_timing = TIMING_ZERO,
7026 .block_erasers =
7027 {
7028 {
7029 .eraseblocks = { {4 * 1024, 1024} },
7030 .block_erase = spi_block_erase_20,
7031 }, {
7032 .eraseblocks = { {4 * 1024, 1024} },
7033 .block_erase = spi_block_erase_d7,
7034 }, {
7035 .eraseblocks = { {32 * 1024, 128} },
7036 .block_erase = spi_block_erase_52,
7037 }, {
7038 .eraseblocks = { {64 * 1024, 64} },
7039 .block_erase = spi_block_erase_d8,
7040 }, {
7041 .eraseblocks = { {4 * 1024 * 1024, 1} },
7042 .block_erase = spi_block_erase_60,
7043 }, {
7044 .eraseblocks = { {4 * 1024 * 1024, 1} },
7045 .block_erase = spi_block_erase_c7,
7046 }
7047 },
7048 .unlock = spi_disable_blockprotect,
7049 .write = spi_chip_write_256,
7050 .read = spi_chip_read,
7051 .voltage = {1650, 1950},
7052 },
7053
7054 {
7055 .vendor = "ISSI",
7056 .name = "IS25WP064",
7057 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007058 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007059 .model_id = ISSI_IS25WP064,
7060 .total_size = 8192,
7061 .page_size = 256,
7062 /* OTP: 1024B total; read 0x48; write 0x42 */
7063 /* QPI enable 0x35, disable 0xF5 */
7064 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7065 .tested = TEST_OK_PREW,
7066 .probe = probe_spi_rdid,
7067 .probe_timing = TIMING_ZERO,
7068 .block_erasers =
7069 {
7070 {
7071 .eraseblocks = { {4 * 1024, 2048} },
7072 .block_erase = spi_block_erase_20,
7073 }, {
7074 .eraseblocks = { {4 * 1024, 2048} },
7075 .block_erase = spi_block_erase_d7,
7076 }, {
7077 .eraseblocks = { {32 * 1024, 256} },
7078 .block_erase = spi_block_erase_52,
7079 }, {
7080 .eraseblocks = { {64 * 1024, 128} },
7081 .block_erase = spi_block_erase_d8,
7082 }, {
7083 .eraseblocks = { {8 * 1024 * 1024, 1} },
7084 .block_erase = spi_block_erase_60,
7085 }, {
7086 .eraseblocks = { {8 * 1024 * 1024, 1} },
7087 .block_erase = spi_block_erase_c7,
7088 }
7089 },
7090 .unlock = spi_disable_blockprotect,
7091 .write = spi_chip_write_256,
7092 .read = spi_chip_read,
7093 .voltage = {1650, 1950},
7094 },
7095
7096 {
7097 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007098 .name = "IS25WP128",
7099 .bustype = BUS_SPI,
7100 .manufacture_id = ISSI_ID_SPI,
7101 .model_id = ISSI_IS25WP128,
7102 .total_size = 16384,
7103 .page_size = 256,
7104 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huberb27b8d12018-10-02 20:46:21 +02007105 /* QPI enable 0x35, disable 0xF5 */
7106 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks3083ed92017-05-02 13:25:56 -07007107 .tested = TEST_OK_PREW,
7108 .probe = probe_spi_rdid,
7109 .probe_timing = TIMING_ZERO,
7110 .block_erasers =
7111 {
7112 {
7113 .eraseblocks = { {4 * 1024, 4096} },
7114 .block_erase = spi_block_erase_20,
7115 }, {
7116 .eraseblocks = { {4 * 1024, 4096} },
7117 .block_erase = spi_block_erase_d7,
7118 }, {
7119 .eraseblocks = { {32 * 1024, 512} },
7120 .block_erase = spi_block_erase_52,
7121 }, {
7122 .eraseblocks = { {64 * 1024, 256} },
7123 .block_erase = spi_block_erase_d8,
7124 }, {
7125 .eraseblocks = { {16 * 1024 * 1024, 1} },
7126 .block_erase = spi_block_erase_60,
7127 }, {
7128 .eraseblocks = { {16 * 1024 * 1024, 1} },
7129 .block_erase = spi_block_erase_c7,
7130 }
7131 },
7132 .unlock = spi_disable_blockprotect,
7133 .write = spi_chip_write_256,
7134 .read = spi_chip_read,
7135 .voltage = {1650, 1950},
7136 },
7137
7138 {
7139 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007140 .name = "IS25WP256",
7141 .bustype = BUS_SPI,
7142 .manufacture_id = ISSI_ID_SPI,
7143 .model_id = ISSI_IS25WP256,
7144 .total_size = 32768,
7145 .page_size = 256,
7146 /* supports SFDP */
7147 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7148 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7149 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7150 .tested = TEST_OK_PREW,
7151 .probe = probe_spi_rdid,
7152 .probe_timing = TIMING_ZERO,
7153 .block_erasers =
7154 {
7155 {
7156 .eraseblocks = { {4 * 1024, 8192} },
7157 .block_erase = spi_block_erase_21,
7158 }, {
7159 .eraseblocks = { {4 * 1024, 8192} },
7160 .block_erase = spi_block_erase_20,
7161 /* could also use spi_block_erase_d7 */
7162 }, {
7163 .eraseblocks = { {32 * 1024, 1024} },
7164 .block_erase = spi_block_erase_5c,
7165 }, {
7166 .eraseblocks = { {32 * 1024, 1024} },
7167 .block_erase = spi_block_erase_52,
7168 }, {
7169 .eraseblocks = { {64 * 1024, 512} },
7170 .block_erase = spi_block_erase_dc,
7171 }, {
7172 .eraseblocks = { {64 * 1024, 512} },
7173 .block_erase = spi_block_erase_d8,
7174 }, {
7175 .eraseblocks = { {32 * 1024 * 1024, 1} },
7176 .block_erase = spi_block_erase_60,
7177 }, {
7178 .eraseblocks = { {32 * 1024 * 1024, 1} },
7179 .block_erase = spi_block_erase_c7,
7180 }
7181 },
7182 .unlock = spi_disable_blockprotect,
7183 .write = spi_chip_write_256,
7184 .read = spi_chip_read,
7185 .voltage = {1650, 1950},
7186 },
7187
7188 {
7189 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007190 .name = "IS29GL064B",
7191 .bustype = BUS_PARALLEL,
7192 .manufacture_id = ISSI_ID,
7193 .model_id = ISSI_PMC_IS29GL064B,
7194 .total_size = 8192,
7195 .page_size = 128 * 1024, /* actual page size is 16 */
7196 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7197 .tested = TEST_UNTESTED,
7198 .probe = probe_jedec_29gl,
7199 .probe_timing = TIMING_ZERO,
7200 .block_erasers =
7201 {
7202 {
7203 .eraseblocks = {
7204 {8 * 1024, 8},
7205 {64 * 1024, 127},
7206 },
7207 .block_erase = erase_sector_jedec,
7208 }, {
7209 .eraseblocks = { {8 * 1024 * 1024, 1} },
7210 .block_erase = erase_chip_block_jedec,
7211 },
7212 },
7213 .write = write_jedec_1,
7214 .read = read_memmapped,
7215 .voltage = {2700, 3600},
7216 },
7217
7218 {
7219 .vendor = "ISSI",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007220 .name = "IS29GL064H/L",
7221 .bustype = BUS_PARALLEL,
7222 .manufacture_id = ISSI_ID,
7223 .model_id = ISSI_PMC_IS29GL064HL,
7224 .total_size = 8192,
7225 .page_size = 128 * 1024, /* actual page size is 16 */
7226 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7227 .tested = TEST_UNTESTED,
7228 .probe = probe_jedec_29gl,
7229 .probe_timing = TIMING_ZERO,
7230 .block_erasers =
7231 {
7232 {
7233 .eraseblocks = { {64 * 1024, 128} },
7234 .block_erase = erase_sector_jedec,
7235 }, {
7236 .eraseblocks = { {8 * 1024 * 1024, 1} },
7237 .block_erase = erase_chip_block_jedec,
7238 },
7239 },
7240 .write = write_jedec_1,
7241 .read = read_memmapped,
7242 .voltage = {2700, 3600},
7243 },
7244
7245 {
7246 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007247 .name = "IS29GL064T",
7248 .bustype = BUS_PARALLEL,
7249 .manufacture_id = ISSI_ID,
7250 .model_id = ISSI_PMC_IS29GL064T,
7251 .total_size = 8192,
7252 .page_size = 128 * 1024, /* actual page size is 16 */
7253 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7254 .tested = TEST_UNTESTED,
7255 .probe = probe_jedec_29gl,
7256 .probe_timing = TIMING_ZERO,
7257 .block_erasers =
7258 {
7259 {
7260 .eraseblocks = {
7261 {64 * 1024, 127},
7262 {8 * 1024, 8},
7263 },
7264 .block_erase = erase_sector_jedec,
7265 }, {
7266 .eraseblocks = { {8 * 1024 * 1024, 1} },
7267 .block_erase = erase_chip_block_jedec,
7268 },
7269 },
7270 .write = write_jedec_1,
7271 .read = read_memmapped,
7272 .voltage = {2700, 3600},
7273 },
7274
7275 {
7276 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007277 .name = "IS29GL128H/L",
7278 .bustype = BUS_PARALLEL,
7279 .manufacture_id = ISSI_ID,
7280 .model_id = ISSI_PMC_IS29GL128HL,
7281 .total_size = 16384,
7282 .page_size = 128 * 1024, /* actual page size is 16 */
7283 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7284 .tested = TEST_UNTESTED,
7285 .probe = probe_jedec_29gl,
7286 .probe_timing = TIMING_ZERO,
7287 .block_erasers =
7288 {
7289 {
7290 .eraseblocks = { {128 * 1024, 128} },
7291 .block_erase = erase_sector_jedec,
7292 }, {
7293 .eraseblocks = { {16 * 1024 * 1024, 1} },
7294 .block_erase = erase_chip_block_jedec,
7295 },
7296 },
7297 .write = write_jedec_1,
7298 .read = read_memmapped,
7299 .voltage = {2700, 3600},
7300 },
7301
7302 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007303 .vendor = "Intel",
7304 .name = "25F160S33B8",
7305 .bustype = BUS_SPI,
7306 .manufacture_id = INTEL_ID,
7307 .model_id = INTEL_25F160S33B8,
7308 .total_size = 2048,
7309 .page_size = 256,
7310 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7311 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7312 .tested = TEST_UNTESTED,
7313 .probe = probe_spi_rdid,
7314 .probe_timing = TIMING_ZERO,
7315 .block_erasers =
7316 {
7317 {
7318 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7319 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7320 * have no effect on the memory contents, but sets a flag in the SR.
7321 .eraseblocks = {
7322 {8 * 1024, 8},
7323 {64 * 1024, 31} // inaccessible
7324 },
7325 .block_erase = spi_block_erase_40,
7326 }, { */
7327 .eraseblocks = { {64 * 1024, 32} },
7328 .block_erase = spi_block_erase_d8,
7329 }, {
7330 .eraseblocks = { {2 * 1024 * 1024, 1} },
7331 .block_erase = spi_block_erase_c7,
7332 }
7333 },
7334 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7335 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7336 .write = spi_chip_write_256,
7337 .read = spi_chip_read, /* also fast read 0x0B */
7338 .voltage = {2700, 3600},
7339 },
7340
7341 {
7342 .vendor = "Intel",
7343 .name = "25F160S33T8",
7344 .bustype = BUS_SPI,
7345 .manufacture_id = INTEL_ID,
7346 .model_id = INTEL_25F160S33T8,
7347 .total_size = 2048,
7348 .page_size = 256,
7349 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7350 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7351 .tested = TEST_UNTESTED,
7352 .probe = probe_spi_rdid,
7353 .probe_timing = TIMING_ZERO,
7354 .block_erasers =
7355 {
7356 {
7357 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7358 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7359 * have no effect on the memory contents, but sets a flag in the SR.
7360 .eraseblocks = {
7361 {64 * 1024, 31}, // inaccessible
7362 {8 * 1024, 8}
7363 },
7364 .block_erase = spi_block_erase_40,
7365 }, { */
7366 .eraseblocks = { {64 * 1024, 32} },
7367 .block_erase = spi_block_erase_d8,
7368 }, {
7369 .eraseblocks = { {2 * 1024 * 1024, 1} },
7370 .block_erase = spi_block_erase_c7,
7371 }
7372 },
7373 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7374 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7375 .write = spi_chip_write_256,
7376 .read = spi_chip_read, /* also fast read 0x0B */
7377 .voltage = {2700, 3600},
7378 },
7379
7380 {
7381 .vendor = "Intel",
7382 .name = "25F320S33B8",
7383 .bustype = BUS_SPI,
7384 .manufacture_id = INTEL_ID,
7385 .model_id = INTEL_25F320S33B8,
7386 .total_size = 4096,
7387 .page_size = 256,
7388 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7389 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7390 .tested = TEST_UNTESTED,
7391 .probe = probe_spi_rdid,
7392 .probe_timing = TIMING_ZERO,
7393 .block_erasers =
7394 {
7395 {
7396 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7397 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7398 * have no effect on the memory contents, but sets a flag in the SR.
7399 .eraseblocks = {
7400 {8 * 1024, 8},
7401 {64 * 1024, 63} // inaccessible
7402 },
7403 .block_erase = spi_block_erase_40,
7404 }, { */
7405 .eraseblocks = { {64 * 1024, 64} },
7406 .block_erase = spi_block_erase_d8,
7407 }, {
7408 .eraseblocks = { {4 * 1024 * 1024, 1} },
7409 .block_erase = spi_block_erase_c7,
7410 }
7411 },
7412 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7413 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7414 .write = spi_chip_write_256,
7415 .read = spi_chip_read, /* also fast read 0x0B */
7416 .voltage = {2700, 3600},
7417 },
7418
7419 {
7420 .vendor = "Intel",
7421 .name = "25F320S33T8",
7422 .bustype = BUS_SPI,
7423 .manufacture_id = INTEL_ID,
7424 .model_id = INTEL_25F320S33T8,
7425 .total_size = 4096,
7426 .page_size = 256,
7427 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7428 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7429 .tested = TEST_UNTESTED,
7430 .probe = probe_spi_rdid,
7431 .probe_timing = TIMING_ZERO,
7432 .block_erasers =
7433 {
7434 {
7435 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7436 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7437 * have no effect on the memory contents, but sets a flag in the SR.
7438 .eraseblocks = {
7439 {64 * 1024, 63}, // inaccessible
7440 {8 * 1024, 8}
7441 },
7442 .block_erase = spi_block_erase_40,
7443 }, { */
7444 .eraseblocks = { {64 * 1024, 64} },
7445 .block_erase = spi_block_erase_d8,
7446 }, {
7447 .eraseblocks = { {4 * 1024 * 1024, 1} },
7448 .block_erase = spi_block_erase_c7,
7449 }
7450 },
7451 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7452 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7453 .write = spi_chip_write_256,
7454 .read = spi_chip_read, /* also fast read 0x0B */
7455 .voltage = {2700, 3600},
7456 },
7457
7458 {
7459 .vendor = "Intel",
7460 .name = "25F640S33B8",
7461 .bustype = BUS_SPI,
7462 .manufacture_id = INTEL_ID,
7463 .model_id = INTEL_25F640S33B8,
7464 .total_size = 8192,
7465 .page_size = 256,
7466 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7467 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7468 .tested = TEST_UNTESTED,
7469 .probe = probe_spi_rdid,
7470 .probe_timing = TIMING_ZERO,
7471 .block_erasers =
7472 {
7473 {
7474 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7475 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7476 * have no effect on the memory contents, but sets a flag in the SR.
7477 .eraseblocks = {
7478 {8 * 1024, 8},
7479 {64 * 1024, 127} // inaccessible
7480 },
7481 .block_erase = spi_block_erase_40,
7482 }, { */
7483 .eraseblocks = { {64 * 1024, 128} },
7484 .block_erase = spi_block_erase_d8,
7485 }, {
7486 .eraseblocks = { {8 * 1024 * 1024, 1} },
7487 .block_erase = spi_block_erase_c7,
7488 }
7489 },
7490 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7491 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7492 .write = spi_chip_write_256,
7493 .read = spi_chip_read, /* also fast read 0x0B */
7494 .voltage = {2700, 3600},
7495 },
7496
7497 {
7498 .vendor = "Intel",
7499 .name = "25F640S33T8",
7500 .bustype = BUS_SPI,
7501 .manufacture_id = INTEL_ID,
7502 .model_id = INTEL_25F640S33T8,
7503 .total_size = 8192,
7504 .page_size = 256,
7505 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7506 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7507 .tested = TEST_UNTESTED,
7508 .probe = probe_spi_rdid,
7509 .probe_timing = TIMING_ZERO,
7510 .block_erasers =
7511 {
7512 {
7513 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7514 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7515 * have no effect on the memory contents, but sets a flag in the SR.
7516 .eraseblocks = {
7517 {64 * 1024, 127}, // inaccessible
7518 {8 * 1024, 8}
7519 },
7520 .block_erase = spi_block_erase_40,
7521 }, { */
7522 .eraseblocks = { {64 * 1024, 128} },
7523 .block_erase = spi_block_erase_d8,
7524 }, {
7525 .eraseblocks = { {8 * 1024 * 1024, 1} },
7526 .block_erase = spi_block_erase_c7,
7527 }
7528 },
7529 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7530 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7531 .write = spi_chip_write_256,
7532 .read = spi_chip_read, /* also fast read 0x0B */
7533 .voltage = {2700, 3600},
7534 },
7535
7536 {
7537 .vendor = "Intel",
7538 .name = "28F001BN/BX-B",
7539 .bustype = BUS_PARALLEL,
7540 .manufacture_id = INTEL_ID,
7541 .model_id = INTEL_28F001B,
7542 .total_size = 128,
7543 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
7544 .tested = TEST_UNTESTED,
7545 .probe = probe_jedec,
7546 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7547 .block_erasers =
7548 {
7549 {
7550 .eraseblocks = {
7551 {8 * 1024, 1},
7552 {4 * 1024, 2},
7553 {112 * 1024, 1},
7554 },
7555 .block_erase = erase_block_82802ab,
7556 },
7557 },
7558 .write = write_82802ab,
7559 .read = read_memmapped,
7560 .voltage = {4500, 5500},
7561 },
7562
7563 {
7564 .vendor = "Intel",
7565 .name = "28F001BN/BX-T",
7566 .bustype = BUS_PARALLEL,
7567 .manufacture_id = INTEL_ID,
7568 .model_id = INTEL_28F001T,
7569 .total_size = 128,
7570 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
7571 .tested = TEST_OK_PREW,
7572 .probe = probe_jedec,
7573 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7574 .block_erasers =
7575 {
7576 {
7577 .eraseblocks = {
7578 {112 * 1024, 1},
7579 {4 * 1024, 2},
7580 {8 * 1024, 1},
7581 },
7582 .block_erase = erase_block_82802ab,
7583 },
7584 },
7585 .write = write_82802ab,
7586 .read = read_memmapped,
7587 .voltage = {4500, 5500},
7588 },
7589
7590 {
7591 .vendor = "Intel",
7592 .name = "28F002BC/BL/BV/BX-T",
7593 .bustype = BUS_PARALLEL,
7594 .manufacture_id = INTEL_ID,
7595 .model_id = INTEL_28F002T,
7596 .total_size = 256,
7597 .page_size = 256 * 1024,
7598 .tested = TEST_OK_PRE,
7599 .probe = probe_82802ab,
7600 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7601 .block_erasers =
7602 {
7603 {
7604 .eraseblocks = {
7605 {128 * 1024, 1},
7606 {96 * 1024, 1},
7607 {8 * 1024, 2},
7608 {16 * 1024, 1},
7609 },
7610 .block_erase = erase_block_82802ab,
7611 },
7612 },
7613 .write = write_82802ab,
7614 .read = read_memmapped,
7615 },
7616
7617 {
7618 .vendor = "Intel",
7619 .name = "28F004B5/BE/BV/BX-B",
7620 .bustype = BUS_PARALLEL,
7621 .manufacture_id = INTEL_ID,
7622 .model_id = INTEL_28F004B,
7623 .total_size = 512,
7624 .page_size = 128 * 1024, /* maximal block size */
7625 .tested = TEST_UNTESTED,
7626 .probe = probe_82802ab,
7627 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7628 .block_erasers =
7629 {
7630 {
7631 .eraseblocks = {
7632 {16 * 1024, 1},
7633 {8 * 1024, 2},
7634 {96 * 1024, 1},
7635 {128 * 1024, 3},
7636 },
7637 .block_erase = erase_block_82802ab,
7638 },
7639 },
7640 .write = write_82802ab,
7641 .read = read_memmapped,
7642 },
7643
7644 {
7645 .vendor = "Intel",
7646 .name = "28F004B5/BE/BV/BX-T",
7647 .bustype = BUS_PARALLEL,
7648 .manufacture_id = INTEL_ID,
7649 .model_id = INTEL_28F004T,
7650 .total_size = 512,
7651 .page_size = 128 * 1024, /* maximal block size */
7652 .tested = TEST_UNTESTED,
7653 .probe = probe_82802ab,
7654 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7655 .block_erasers =
7656 {
7657 {
7658 .eraseblocks = {
7659 {128 * 1024, 3},
7660 {96 * 1024, 1},
7661 {8 * 1024, 2},
7662 {16 * 1024, 1},
7663 },
7664 .block_erase = erase_block_82802ab,
7665 },
7666 },
7667 .write = write_82802ab,
7668 .read = read_memmapped,
7669 },
7670
7671 {
7672 .vendor = "Intel",
7673 .name = "28F008S3/S5/SC",
7674 .bustype = BUS_PARALLEL,
7675 .manufacture_id = INTEL_ID,
7676 .model_id = INTEL_28F004S3,
7677 .total_size = 512,
7678 .page_size = 256,
7679 .tested = TEST_UNTESTED,
7680 .probe = probe_82802ab,
7681 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7682 .block_erasers =
7683 {
7684 {
7685 .eraseblocks = { {64 * 1024, 8} },
7686 .block_erase = erase_block_82802ab,
7687 },
7688 },
7689 .unlock = unlock_28f004s5,
7690 .write = write_82802ab,
7691 .read = read_memmapped,
7692 },
7693
7694 {
7695 .vendor = "Intel",
7696 .name = "28F400BV/BX/CE/CV-B",
7697 .bustype = BUS_PARALLEL,
7698 .manufacture_id = INTEL_ID,
7699 .model_id = INTEL_28F400B,
7700 .total_size = 512,
7701 .page_size = 128 * 1024, /* maximal block size */
7702 .feature_bits = FEATURE_ADDR_SHIFTED,
7703 .tested = TEST_UNTESTED,
7704 .probe = probe_82802ab,
7705 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7706 .block_erasers =
7707 {
7708 {
7709 .eraseblocks = {
7710 {16 * 1024, 1},
7711 {8 * 1024, 2},
7712 {96 * 1024, 1},
7713 {128 * 1024, 3},
7714 },
7715 .block_erase = erase_block_82802ab,
7716 },
7717 },
7718 .write = write_82802ab,
7719 .read = read_memmapped,
7720 },
7721
7722 {
7723 .vendor = "Intel",
7724 .name = "28F400BV/BX/CE/CV-T",
7725 .bustype = BUS_PARALLEL,
7726 .manufacture_id = INTEL_ID,
7727 .model_id = INTEL_28F400T,
7728 .total_size = 512,
7729 .page_size = 128 * 1024, /* maximal block size */
7730 .feature_bits = FEATURE_ADDR_SHIFTED,
7731 .tested = TEST_UNTESTED,
7732 .probe = probe_82802ab,
7733 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7734 .block_erasers =
7735 {
7736 {
7737 .eraseblocks = {
7738 {128 * 1024, 3},
7739 {96 * 1024, 1},
7740 {8 * 1024, 2},
7741 {16 * 1024, 1},
7742 },
7743 .block_erase = erase_block_82802ab,
7744 },
7745 },
7746 .write = write_82802ab,
7747 .read = read_memmapped,
7748 },
7749
7750 {
7751 .vendor = "Intel",
7752 .name = "82802AB",
7753 .bustype = BUS_FWH,
7754 .manufacture_id = INTEL_ID,
7755 .model_id = INTEL_82802AB,
7756 .total_size = 512,
7757 .page_size = 64 * 1024,
7758 .feature_bits = FEATURE_REGISTERMAP,
Alan Green88552572019-07-24 13:56:06 +10007759 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007760 .probe = probe_82802ab,
7761 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
7762 .block_erasers =
7763 {
7764 {
7765 .eraseblocks = { {64 * 1024, 8} },
7766 .block_erase = erase_block_82802ab,
7767 },
7768 },
7769 .unlock = unlock_regspace2_uniform_64k,
7770 .write = write_82802ab,
7771 .read = read_memmapped,
7772 .voltage = {3000, 3600},
7773 },
7774
7775 {
7776 .vendor = "Intel",
7777 .name = "82802AC",
7778 .bustype = BUS_FWH,
7779 .manufacture_id = INTEL_ID,
7780 .model_id = INTEL_82802AC,
7781 .total_size = 1024,
7782 .page_size = 64 * 1024,
7783 .feature_bits = FEATURE_REGISTERMAP,
7784 .tested = TEST_OK_PR,
7785 .probe = probe_82802ab,
7786 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
7787 .block_erasers =
7788 {
7789 {
7790 .eraseblocks = { {64 * 1024, 16} },
7791 .block_erase = erase_block_82802ab,
7792 },
7793 },
7794 .unlock = unlock_regspace2_uniform_64k,
7795 .write = write_82802ab,
7796 .read = read_memmapped,
7797 .voltage = {3000, 3600},
7798 },
7799
7800 {
7801 .vendor = "Macronix",
7802 .name = "MX23L12854",
7803 .bustype = BUS_SPI,
7804 .manufacture_id = MACRONIX_ID,
7805 .model_id = MACRONIX_MX23L12854,
7806 .total_size = 16384,
7807 .page_size = 256,
7808 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7809 .probe = probe_spi_rdid,
7810 .probe_timing = TIMING_ZERO,
7811 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
7812 .read = spi_chip_read, /* Fast read (0x0B) supported */
7813 .voltage = {3000, 3600},
7814 },
7815
7816 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007817 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007818 .name = "MX23L1654",
7819 .bustype = BUS_SPI,
7820 .manufacture_id = MACRONIX_ID,
7821 .model_id = MACRONIX_MX23L1654,
7822 .total_size = 2048,
7823 .page_size = 256,
7824 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7825 .probe = probe_spi_rdid,
7826 .probe_timing = TIMING_ZERO,
7827 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
7828 .read = spi_chip_read, /* Fast read (0x0B) supported */
7829 .voltage = {3000, 3600},
7830 },
7831
7832 {
7833 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007834 .name = "MX23L3254",
7835 .bustype = BUS_SPI,
7836 .manufacture_id = MACRONIX_ID,
7837 .model_id = MACRONIX_MX23L3254,
7838 .total_size = 4096,
7839 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00007840 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007841 .probe = probe_spi_rdid,
7842 .probe_timing = TIMING_ZERO,
7843 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
7844 .read = spi_chip_read, /* Fast read (0x0B) supported */
7845 .voltage = {3000, 3600},
7846 },
7847
7848 {
7849 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007850 .name = "MX23L6454",
7851 .bustype = BUS_SPI,
7852 .manufacture_id = MACRONIX_ID,
7853 .model_id = MACRONIX_MX23L6454,
7854 .total_size = 8192,
7855 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007856 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00007857 .probe = probe_spi_rdid,
7858 .probe_timing = TIMING_ZERO,
7859 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
7860 .read = spi_chip_read, /* Fast read (0x0B) supported */
7861 .voltage = {3000, 3600},
7862 },
7863
7864 {
7865 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007866 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007867 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007868 .manufacture_id = MACRONIX_ID,
7869 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007870 .total_size = 128,
7871 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007872 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007873 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00007874 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007875 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007876 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007877 .block_erasers =
7878 {
7879 {
7880 .eraseblocks = { {4 * 1024, 32} },
7881 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007882 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007883 .eraseblocks = { {64 * 1024, 2} },
7884 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007885 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007886 .eraseblocks = { {128 * 1024, 1} },
7887 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007888 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007889 .eraseblocks = { {128 * 1024, 1} },
7890 .block_erase = spi_block_erase_c7,
7891 },
7892 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007893 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007894 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007895 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007896 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007897 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007898 },
7899
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007900 {
7901 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007902 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007903 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007904 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007905 .model_id = MACRONIX_MX25L12805D,
7906 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007907 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007908 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7909 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007910 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007911 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007912 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007913 .block_erasers =
7914 {
7915 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007916 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007917 .block_erase = spi_block_erase_20,
7918 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007919 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007920 .block_erase = spi_block_erase_d8,
7921 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007922 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007923 .block_erase = spi_block_erase_60,
7924 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007925 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007926 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007927 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007928 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007929 .printlock = spi_prettyprint_status_register_bp3_srwd,
7930 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007931 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007932 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007933 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007934 },
7935
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007936 {
7937 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007938 .name = "MX25L12835F/MX25L12845E/MX25L12865E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007939 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007940 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007941 .model_id = MACRONIX_MX25L12805D,
7942 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007943 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007944 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7945 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner8179be52011-06-04 13:13:34 +00007946 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007947 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007948 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007949 .block_erasers =
7950 {
7951 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007952 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007953 .block_erase = spi_block_erase_20,
7954 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007955 .eraseblocks = { {32 * 1024, 512} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007956 .block_erase = spi_block_erase_52,
7957 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007958 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007959 .block_erase = spi_block_erase_d8,
7960 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007961 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007962 .block_erase = spi_block_erase_60,
7963 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007964 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007965 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007966 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007967 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007968 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
7969 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
7970 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007971 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007972 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007973 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007974 },
7975
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007976 {
7977 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007978 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007979 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007980 .manufacture_id = MACRONIX_ID,
7981 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007982 .total_size = 2048,
7983 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007984 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00007985 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007986 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007987 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007988 .block_erasers =
7989 {
7990 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007991 .eraseblocks = { {64 * 1024, 32} },
7992 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007993 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007994 .eraseblocks = { {64 * 1024, 32} },
7995 .block_erase = spi_block_erase_d8,
7996 }, {
7997 .eraseblocks = { {2 * 1024 * 1024, 1} },
7998 .block_erase = spi_block_erase_60,
7999 }, {
8000 .eraseblocks = { {2 * 1024 * 1024, 1} },
8001 .block_erase = spi_block_erase_c7,
8002 },
8003 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008004 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00008005 .unlock = spi_disable_blockprotect,
8006 .write = spi_chip_write_256,
8007 .read = spi_chip_read, /* Fast read (0x0B) supported */
8008 .voltage = {2700, 3600},
8009 },
8010
8011 {
8012 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008013 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008014 .bustype = BUS_SPI,
8015 .manufacture_id = MACRONIX_ID,
8016 .model_id = MACRONIX_MX25L1605,
8017 .total_size = 2048,
8018 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008019 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008020 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8021 .tested = TEST_OK_PREW,
8022 .probe = probe_spi_rdid,
8023 .probe_timing = TIMING_ZERO,
8024 .block_erasers =
8025 {
8026 {
8027 .eraseblocks = { {4 * 1024, 512} },
8028 .block_erase = spi_block_erase_20,
8029 }, {
8030 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008031 .block_erase = spi_block_erase_52,
8032 }, {
8033 .eraseblocks = { {64 * 1024, 32} },
8034 .block_erase = spi_block_erase_d8,
8035 }, {
8036 .eraseblocks = { {2 * 1024 * 1024, 1} },
8037 .block_erase = spi_block_erase_60,
8038 }, {
8039 .eraseblocks = { {2 * 1024 * 1024, 1} },
8040 .block_erase = spi_block_erase_c7,
8041 },
8042 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008043 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008044 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008045 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008046 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008047 .voltage = {2700, 3600},
8048 },
8049
8050 {
8051 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008052 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008053 .bustype = BUS_SPI,
8054 .manufacture_id = MACRONIX_ID,
8055 .model_id = MACRONIX_MX25L1605,
8056 .total_size = 2048,
8057 .page_size = 256,
8058 .feature_bits = FEATURE_WRSR_WREN,
8059 .tested = TEST_OK_PREW,
8060 .probe = probe_spi_rdid,
8061 .probe_timing = TIMING_ZERO,
8062 .block_erasers =
8063 {
8064 {
8065 .eraseblocks = { {4 * 1024, 512} },
8066 .block_erase = spi_block_erase_20,
8067 }, {
8068 .eraseblocks = { {64 * 1024, 32} },
8069 .block_erase = spi_block_erase_d8,
8070 }, {
8071 .eraseblocks = { {2 * 1024 * 1024, 1} },
8072 .block_erase = spi_block_erase_60,
8073 }, {
8074 .eraseblocks = { {2 * 1024 * 1024, 1} },
8075 .block_erase = spi_block_erase_c7,
8076 },
8077 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008078 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008079 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008080 .write = spi_chip_write_256,
8081 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008082 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008083 },
8084
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008085 {
8086 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008087 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008088 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008089 .manufacture_id = MACRONIX_ID,
8090 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008091 .total_size = 2048,
8092 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008093 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8094 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008095 .tested = TEST_UNTESTED,
8096 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008097 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008098 .block_erasers =
8099 {
8100 {
8101 .eraseblocks = { {4 * 1024, 512} },
8102 .block_erase = spi_block_erase_20,
8103 }, {
8104 .eraseblocks = { {64 * 1024, 32} },
8105 .block_erase = spi_block_erase_d8,
8106 }, {
8107 .eraseblocks = { {2 * 1024 * 1024, 1} },
8108 .block_erase = spi_block_erase_60,
8109 }, {
8110 .eraseblocks = { {2 * 1024 * 1024, 1} },
8111 .block_erase = spi_block_erase_c7,
8112 }
8113 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008114 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008115 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008116 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008117 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008118 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008119 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00008120
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008121 {
8122 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00008123 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008124 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008125 .manufacture_id = MACRONIX_ID,
8126 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008127 .total_size = 2048,
8128 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008129 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8130 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008131 .tested = TEST_UNTESTED,
8132 .probe = probe_spi_rdid,
8133 .probe_timing = TIMING_ZERO,
8134 .block_erasers =
8135 {
8136 {
8137 .eraseblocks = { {4 * 1024, 512} },
8138 .block_erase = spi_block_erase_20,
8139 }, {
8140 .eraseblocks = { {64 * 1024, 32} },
8141 .block_erase = spi_block_erase_d8,
8142 }, {
8143 .eraseblocks = { {2 * 1024 * 1024, 1} },
8144 .block_erase = spi_block_erase_60,
8145 }, {
8146 .eraseblocks = { {2 * 1024 * 1024, 1} },
8147 .block_erase = spi_block_erase_c7,
8148 }
8149 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008150 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008151 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008152 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008153 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008154 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00008155 },
8156
8157 {
8158 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008159 .name = "MX25L2005(C)/MX25L2006E",
8160 .bustype = BUS_SPI,
8161 .manufacture_id = MACRONIX_ID,
8162 .model_id = MACRONIX_MX25L2005,
8163 .total_size = 256,
8164 .page_size = 256,
8165 .feature_bits = FEATURE_WRSR_WREN,
8166 .tested = TEST_OK_PREW,
8167 .probe = probe_spi_rdid,
8168 .probe_timing = TIMING_ZERO,
8169 .block_erasers =
8170 {
8171 {
8172 .eraseblocks = { {4 * 1024, 64} },
8173 .block_erase = spi_block_erase_20,
8174 }, {
8175 .eraseblocks = { {64 * 1024, 4} },
8176 .block_erase = spi_block_erase_52,
8177 }, {
8178 .eraseblocks = { {64 * 1024, 4} },
8179 .block_erase = spi_block_erase_d8,
8180 }, {
8181 .eraseblocks = { {256 * 1024, 1} },
8182 .block_erase = spi_block_erase_60,
8183 }, {
8184 .eraseblocks = { {256 * 1024, 1} },
8185 .block_erase = spi_block_erase_c7,
8186 },
8187 },
8188 .printlock = spi_prettyprint_status_register_bp1_srwd,
8189 .unlock = spi_disable_blockprotect,
8190 .write = spi_chip_write_256,
8191 .read = spi_chip_read, /* Fast read (0x0B) supported */
8192 .voltage = {2700, 3600},
8193 },
8194
8195 {
8196 .vendor = "Macronix",
Alan Green03707302019-08-26 12:50:43 +10008197 .name = "MX25L25635F/MX25L25645G",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008198 .bustype = BUS_SPI,
8199 .manufacture_id = MACRONIX_ID,
8200 .model_id = MACRONIX_MX25L25635F,
8201 .total_size = 32768,
8202 .page_size = 256,
8203 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8204 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8205 .tested = TEST_OK_PREW,
8206 .probe = probe_spi_rdid,
8207 .probe_timing = TIMING_ZERO,
8208 .block_erasers =
8209 {
8210 {
8211 .eraseblocks = { {4 * 1024, 8192} },
8212 .block_erase = spi_block_erase_21,
8213 }, {
8214 .eraseblocks = { {4 * 1024, 8192} },
8215 .block_erase = spi_block_erase_20,
8216 }, {
8217 .eraseblocks = { {32 * 1024, 1024} },
8218 .block_erase = spi_block_erase_5c,
8219 }, {
8220 .eraseblocks = { {32 * 1024, 1024} },
8221 .block_erase = spi_block_erase_52,
8222 }, {
8223 .eraseblocks = { {64 * 1024, 512} },
8224 .block_erase = spi_block_erase_dc,
8225 }, {
8226 .eraseblocks = { {64 * 1024, 512} },
8227 .block_erase = spi_block_erase_d8,
8228 }, {
8229 .eraseblocks = { {32 * 1024 * 1024, 1} },
8230 .block_erase = spi_block_erase_60,
8231 }, {
8232 .eraseblocks = { {32 * 1024 * 1024, 1} },
8233 .block_erase = spi_block_erase_c7,
8234 }
8235 },
8236 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8237 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8238 .unlock = spi_disable_blockprotect_bp3_srwd,
8239 .write = spi_chip_write_256,
8240 .read = spi_chip_read, /* Fast read (0x0B) supported */
8241 .voltage = {2700, 3600},
8242 },
8243
8244 {
8245 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00008246 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008247 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008248 .manufacture_id = MACRONIX_ID,
8249 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008250 .total_size = 4096,
8251 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008252 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008253 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008254 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008255 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008256 .block_erasers =
8257 {
8258 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008259 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008260 .block_erase = spi_block_erase_20,
8261 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008262 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008263 .block_erase = spi_block_erase_d8,
8264 }, {
8265 .eraseblocks = { {4 * 1024 * 1024, 1} },
8266 .block_erase = spi_block_erase_60,
8267 }, {
8268 .eraseblocks = { {4 * 1024 * 1024, 1} },
8269 .block_erase = spi_block_erase_c7,
8270 },
8271 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008272 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008273 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008274 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008275 .read = spi_chip_read, /* Fast read (0x0B) supported */
8276 .voltage = {2700, 3600},
8277 },
8278
8279 {
8280 .vendor = "Macronix",
8281 .name = "MX25L3205D/MX25L3208D",
8282 .bustype = BUS_SPI,
8283 .manufacture_id = MACRONIX_ID,
8284 .model_id = MACRONIX_MX25L3205,
8285 .total_size = 4096,
8286 .page_size = 256,
8287 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8288 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8289 .tested = TEST_OK_PREW,
8290 .probe = probe_spi_rdid,
8291 .probe_timing = TIMING_ZERO,
8292 .block_erasers =
8293 {
8294 {
8295 .eraseblocks = { {4 * 1024, 1024} },
8296 .block_erase = spi_block_erase_20,
8297 }, {
8298 .eraseblocks = { {64 * 1024, 64} },
8299 .block_erase = spi_block_erase_d8,
8300 }, {
8301 .eraseblocks = { {4 * 1024 * 1024, 1} },
8302 .block_erase = spi_block_erase_60,
8303 }, {
8304 .eraseblocks = { {4 * 1024 * 1024, 1} },
8305 .block_erase = spi_block_erase_c7,
8306 },
8307 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008308 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008309 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008310 .write = spi_chip_write_256,
8311 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8312 .voltage = {2700, 3600},
8313 },
8314
8315 {
8316 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008317 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008318 .bustype = BUS_SPI,
8319 .manufacture_id = MACRONIX_ID,
8320 .model_id = MACRONIX_MX25L3205,
8321 .total_size = 4096,
8322 .page_size = 256,
8323 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8324 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8325 .tested = TEST_OK_PREW,
8326 .probe = probe_spi_rdid,
8327 .probe_timing = TIMING_ZERO,
8328 .block_erasers =
8329 {
8330 {
8331 .eraseblocks = { {4 * 1024, 1024} },
8332 .block_erase = spi_block_erase_20,
8333 }, {
8334 .eraseblocks = { {64 * 1024, 64} },
8335 .block_erase = spi_block_erase_d8,
8336 }, {
8337 .eraseblocks = { {64 * 1024, 64} },
8338 .block_erase = spi_block_erase_52,
8339 }, {
8340 .eraseblocks = { {4 * 1024 * 1024, 1} },
8341 .block_erase = spi_block_erase_60,
8342 }, {
8343 .eraseblocks = { {4 * 1024 * 1024, 1} },
8344 .block_erase = spi_block_erase_c7,
8345 },
8346 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008347 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008348 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008349 .write = spi_chip_write_256,
8350 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008351 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008352 },
8353
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008354 {
8355 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008356 .name = "MX25L3235D",
8357 .bustype = BUS_SPI,
8358 .manufacture_id = MACRONIX_ID,
8359 .model_id = MACRONIX_MX25L3235D,
8360 .total_size = 4096,
8361 .page_size = 256,
8362 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
8363 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8364 .tested = TEST_UNTESTED,
8365 .probe = probe_spi_rdid,
8366 .probe_timing = TIMING_ZERO,
8367 .block_erasers =
8368 {
8369 {
8370 .eraseblocks = { {4 * 1024, 1024} },
8371 .block_erase = spi_block_erase_20,
8372 }, {
8373 .eraseblocks = { {64 * 1024, 64} },
8374 .block_erase = spi_block_erase_d8,
8375 }, {
8376 .eraseblocks = { {4 * 1024 * 1024, 1} },
8377 .block_erase = spi_block_erase_60,
8378 }, {
8379 .eraseblocks = { {4 * 1024 * 1024, 1} },
8380 .block_erase = spi_block_erase_c7,
8381 }
8382 },
8383 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8384 .unlock = spi_disable_blockprotect_bp3_srwd,
8385 .write = spi_chip_write_256,
8386 .read = spi_chip_read,
8387 .voltage = {2700, 3600},
8388 },
8389
8390 {
8391 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008392 .name = "MX25L3273E",
8393 .bustype = BUS_SPI,
8394 .manufacture_id = MACRONIX_ID,
8395 .model_id = MACRONIX_MX25L3205,
8396 .total_size = 4096,
8397 .page_size = 256,
8398 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8399 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008400 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008401 .probe = probe_spi_rdid,
8402 .probe_timing = TIMING_ZERO,
8403 .block_erasers =
8404 {
8405 {
8406 .eraseblocks = { {4 * 1024, 1024} },
8407 .block_erase = spi_block_erase_20,
8408 }, {
8409 .eraseblocks = { {32 * 1024, 128} },
8410 .block_erase = spi_block_erase_52,
8411 }, {
8412 .eraseblocks = { {64 * 1024, 64} },
8413 .block_erase = spi_block_erase_d8,
8414 }, {
8415 .eraseblocks = { {4 * 1024 * 1024, 1} },
8416 .block_erase = spi_block_erase_60,
8417 }, {
8418 .eraseblocks = { {4 * 1024 * 1024, 1} },
8419 .block_erase = spi_block_erase_c7,
8420 },
8421 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008422 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008423 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008424 .write = spi_chip_write_256,
8425 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8426 .voltage = {2700, 3600},
8427 },
8428
8429 {
8430 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008431 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008432 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008433 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008434 .model_id = MACRONIX_MX25L4005,
8435 .total_size = 512,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008436 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008437 .feature_bits = FEATURE_WRSR_WREN,
8438 .tested = TEST_OK_PREW,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008439 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008440 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008441 .block_erasers =
8442 {
8443 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008444 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00008445 .block_erase = spi_block_erase_20,
8446 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008447 .eraseblocks = { {64 * 1024, 8} },
8448 .block_erase = spi_block_erase_52,
8449 }, {
8450 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson54596372010-01-09 05:30:14 +00008451 .block_erase = spi_block_erase_d8,
8452 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008453 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008454 .block_erase = spi_block_erase_60,
8455 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008456 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008457 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008458 },
Sean Nelson54596372010-01-09 05:30:14 +00008459 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008460 .printlock = spi_prettyprint_status_register_bp2_srwd,
8461 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008462 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008463 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008464 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008465 },
8466
8467 {
8468 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008469 .name = "MX25L512(E)/MX25V512(C)",
8470 .bustype = BUS_SPI,
8471 .manufacture_id = MACRONIX_ID,
8472 .model_id = MACRONIX_MX25L512,
8473 .total_size = 64,
8474 .page_size = 256,
8475 /* MX25L512E supports SFDP */
8476 .feature_bits = FEATURE_WRSR_WREN,
8477 .tested = TEST_OK_PREW,
8478 .probe = probe_spi_rdid,
8479 .probe_timing = TIMING_ZERO,
8480 .block_erasers =
8481 {
8482 {
8483 .eraseblocks = { {4 * 1024, 16} },
8484 .block_erase = spi_block_erase_20,
8485 }, {
8486 .eraseblocks = { {64 * 1024, 1} },
8487 .block_erase = spi_block_erase_52,
8488 }, {
8489 .eraseblocks = { {64 * 1024, 1} },
8490 .block_erase = spi_block_erase_d8,
8491 }, {
8492 .eraseblocks = { {64 * 1024, 1} },
8493 .block_erase = spi_block_erase_60,
8494 }, {
8495 .eraseblocks = { {64 * 1024, 1} },
8496 .block_erase = spi_block_erase_c7,
8497 },
8498 },
8499 .printlock = spi_prettyprint_status_register_bp1_srwd,
8500 .unlock = spi_disable_blockprotect,
8501 .write = spi_chip_write_256,
8502 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
8503 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
8504 },
8505
8506 {
8507 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008508 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008509 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008510 .manufacture_id = MACRONIX_ID,
8511 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008512 .total_size = 8192,
8513 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008514 /* Has an additional 512B EEPROM sector */
8515 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008516 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008517 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008518 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008519 .block_erasers =
8520 {
8521 {
8522 .eraseblocks = { {64 * 1024, 128} },
8523 .block_erase = spi_block_erase_20,
8524 }, {
8525 .eraseblocks = { {64 * 1024, 128} },
8526 .block_erase = spi_block_erase_d8,
8527 }, {
8528 .eraseblocks = { {8 * 1024 * 1024, 1} },
8529 .block_erase = spi_block_erase_60,
8530 }, {
8531 .eraseblocks = { {8 * 1024 * 1024, 1} },
8532 .block_erase = spi_block_erase_c7,
8533 }
8534 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008535 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008536 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008537 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008538 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008539 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008540 },
8541
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008542 {
8543 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008544 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00008545 .bustype = BUS_SPI,
8546 .manufacture_id = MACRONIX_ID,
8547 .model_id = MACRONIX_MX25L6405,
8548 .total_size = 8192,
8549 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008550 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008551 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8552 .tested = TEST_OK_PREW,
8553 .probe = probe_spi_rdid,
8554 .probe_timing = TIMING_ZERO,
8555 .block_erasers =
8556 {
8557 {
8558 .eraseblocks = { {4 * 1024, 2048} },
8559 .block_erase = spi_block_erase_20,
8560 }, {
8561 .eraseblocks = { {64 * 1024, 128} },
8562 .block_erase = spi_block_erase_d8,
8563 }, {
8564 .eraseblocks = { {8 * 1024 * 1024, 1} },
8565 .block_erase = spi_block_erase_60,
8566 }, {
8567 .eraseblocks = { {8 * 1024 * 1024, 1} },
8568 .block_erase = spi_block_erase_c7,
8569 }
8570 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008571 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008572 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008573 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008574 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00008575 .voltage = {2700, 3600},
8576 },
8577
8578 {
8579 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008580 .name = "MX25L6406E/MX25L6408E",
8581 .bustype = BUS_SPI,
8582 .manufacture_id = MACRONIX_ID,
8583 .model_id = MACRONIX_MX25L6405,
8584 .total_size = 8192,
8585 .page_size = 256,
8586 /* MX25L6406E supports SFDP */
8587 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
8588 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8589 .tested = TEST_OK_PREW,
8590 .probe = probe_spi_rdid,
8591 .probe_timing = TIMING_ZERO,
8592 .block_erasers =
8593 {
8594 {
8595 .eraseblocks = { {4 * 1024, 2048} },
8596 .block_erase = spi_block_erase_20,
8597 }, {
8598 .eraseblocks = { {64 * 1024, 128} },
8599 .block_erase = spi_block_erase_52,
8600 }, {
8601 .eraseblocks = { {64 * 1024, 128} },
8602 .block_erase = spi_block_erase_d8,
8603 }, {
8604 .eraseblocks = { {8 * 1024 * 1024, 1} },
8605 .block_erase = spi_block_erase_60,
8606 }, {
8607 .eraseblocks = { {8 * 1024 * 1024, 1} },
8608 .block_erase = spi_block_erase_c7,
8609 }
8610 },
8611 .printlock = spi_prettyprint_status_register_bp3_srwd,
8612 .unlock = spi_disable_blockprotect_bp3_srwd,
8613 .write = spi_chip_write_256,
8614 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
8615 .voltage = {2700, 3600},
8616 },
8617
8618 {
8619 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01008620 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00008621 .bustype = BUS_SPI,
8622 .manufacture_id = MACRONIX_ID,
8623 .model_id = MACRONIX_MX25L6405,
8624 .total_size = 8192,
8625 .page_size = 256,
8626 /* supports SFDP */
8627 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8628 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8629 .tested = TEST_OK_PREW,
8630 .probe = probe_spi_rdid,
8631 .probe_timing = TIMING_ZERO,
8632 .block_erasers =
8633 {
8634 {
8635 .eraseblocks = { {4 * 1024, 2048} },
8636 .block_erase = spi_block_erase_20,
8637 }, {
8638 .eraseblocks = { {32 * 1024, 256} },
8639 .block_erase = spi_block_erase_52,
8640 }, {
8641 .eraseblocks = { {64 * 1024, 128} },
8642 .block_erase = spi_block_erase_d8,
8643 }, {
8644 .eraseblocks = { {8 * 1024 * 1024, 1} },
8645 .block_erase = spi_block_erase_60,
8646 }, {
8647 .eraseblocks = { {8 * 1024 * 1024, 1} },
8648 .block_erase = spi_block_erase_c7,
8649 }
8650 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008651 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008652 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008653 .write = spi_chip_write_256,
8654 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8655 .voltage = {2700, 3600},
8656 },
8657
8658 {
8659 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008660 .name = "MX25L6495F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008661 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008662 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008663 .model_id = MACRONIX_MX25L6495F,
8664 .total_size = 8192,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008665 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008666 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008667 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00008668 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008669 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008670 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008671 .block_erasers =
8672 {
8673 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008674 .eraseblocks = { {4 * 1024, 2048} },
Sean Nelson54596372010-01-09 05:30:14 +00008675 .block_erase = spi_block_erase_20,
8676 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008677 .eraseblocks = { {64 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00008678 .block_erase = spi_block_erase_d8,
8679 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008680 .eraseblocks = { {32 * 1024, 256} },
8681 .block_erase = spi_block_erase_52,
8682 }, {
8683 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008684 .block_erase = spi_block_erase_60,
8685 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008686 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008687 .block_erase = spi_block_erase_c7,
8688 }
8689 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008690 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008691 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008692 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008693 .voltage = {2700, 3600},
8694 },
8695
8696 {
8697 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008698 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Stefan Tauner5c316f92015-02-08 21:57:52 +00008699 .bustype = BUS_SPI,
8700 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008701 .model_id = MACRONIX_MX25L8005,
8702 .total_size = 1024,
8703 .page_size = 256,
8704 /* MX25L8006E, MX25L8008E support SFDP */
8705 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
8706 .feature_bits = FEATURE_WRSR_WREN,
8707 .tested = TEST_OK_PREW,
8708 .probe = probe_spi_rdid,
8709 .probe_timing = TIMING_ZERO,
8710 .block_erasers =
8711 {
8712 {
8713 .eraseblocks = { {4 * 1024, 256} },
8714 .block_erase = spi_block_erase_20,
8715 }, {
8716 .eraseblocks = { {64 * 1024, 16} },
8717 .block_erase = spi_block_erase_52,
8718 }, {
8719 .eraseblocks = { {64 * 1024, 16} },
8720 .block_erase = spi_block_erase_d8,
8721 }, {
8722 .eraseblocks = { {1024 * 1024, 1} },
8723 .block_erase = spi_block_erase_60,
8724 }, {
8725 .eraseblocks = { {1024 * 1024, 1} },
8726 .block_erase = spi_block_erase_c7,
8727 },
8728 },
8729 .printlock = spi_prettyprint_status_register_bp2_srwd,
8730 .unlock = spi_disable_blockprotect,
8731 .write = spi_chip_write_256,
8732 .read = spi_chip_read, /* Fast read (0x0B) supported */
8733 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
8734 },
8735
8736 {
8737 .vendor = "Macronix",
sibradzicf62623c2020-03-14 17:21:34 +09008738 .name = "MX25R3235F",
8739 .bustype = BUS_SPI,
8740 .manufacture_id = MACRONIX_ID,
8741 .model_id = MACRONIX_MX25R3235F,
8742 .total_size = 4096,
8743 .page_size = 256,
8744 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
8745 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8746 .tested = TEST_OK_PREW,
8747 .probe = probe_spi_rdid,
8748 .probe_timing = TIMING_ZERO,
8749 .block_erasers =
8750 {
8751 {
8752 .eraseblocks = { {4 * 1024, 1024} },
8753 .block_erase = spi_block_erase_20,
8754 }, {
8755 .eraseblocks = { {64 * 1024, 64} },
8756 .block_erase = spi_block_erase_d8,
8757 }, {
8758 .eraseblocks = { {32 * 1024, 128} },
8759 .block_erase = spi_block_erase_52,
8760 }, {
8761 .eraseblocks = { {4 * 1024 * 1024, 1} },
8762 .block_erase = spi_block_erase_60,
8763 }, {
8764 .eraseblocks = { {4 * 1024 * 1024, 1} },
8765 .block_erase = spi_block_erase_c7,
8766 }
8767 },
8768 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit 6 is quad enable */
8769 .unlock = spi_disable_blockprotect_bp3_srwd,
8770 .write = spi_chip_write_256,
8771 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8772 .voltage = {1650, 3600},
8773 },
8774
8775 {
8776 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008777 .name = "MX25R6435F",
8778 .bustype = BUS_SPI,
8779 .manufacture_id = MACRONIX_ID,
8780 .model_id = MACRONIX_MX25R6435F,
8781 .total_size = 8192,
8782 .page_size = 256,
8783 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
8784 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8785 .tested = TEST_OK_PREW,
8786 .probe = probe_spi_rdid,
8787 .probe_timing = TIMING_ZERO,
8788 .block_erasers =
8789 {
8790 {
8791 .eraseblocks = { {4 * 1024, 2048} },
8792 .block_erase = spi_block_erase_20,
8793 }, {
8794 .eraseblocks = { {64 * 1024, 128} },
8795 .block_erase = spi_block_erase_d8,
8796 }, {
8797 .eraseblocks = { {32 * 1024, 256} },
8798 .block_erase = spi_block_erase_52,
8799 }, {
8800 .eraseblocks = { {8 * 1024 * 1024, 1} },
8801 .block_erase = spi_block_erase_60,
8802 }, {
8803 .eraseblocks = { {8 * 1024 * 1024, 1} },
8804 .block_erase = spi_block_erase_c7,
8805 }
8806 },
8807 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8808 .unlock = spi_disable_blockprotect_bp3_srwd,
8809 .write = spi_chip_write_256,
8810 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8811 .voltage = {1650, 3600},
8812 },
8813
8814 {
8815 .vendor = "Macronix",
8816 .name = "MX25U12835F",
8817 .bustype = BUS_SPI,
8818 .manufacture_id = MACRONIX_ID,
8819 .model_id = MACRONIX_MX25U12835E,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008820 .total_size = 16384,
8821 .page_size = 256,
8822 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10008823 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008824 .tested = TEST_OK_PREW,
8825 .probe = probe_spi_rdid,
8826 .probe_timing = TIMING_ZERO,
8827 .block_erasers =
8828 {
8829 {
8830 .eraseblocks = { {4 * 1024, 4096} },
8831 .block_erase = spi_block_erase_20,
8832 }, {
8833 .eraseblocks = { {32 * 1024, 512} },
8834 .block_erase = spi_block_erase_52,
8835 }, {
8836 .eraseblocks = { {64 * 1024, 256} },
8837 .block_erase = spi_block_erase_d8,
8838 }, {
8839 .eraseblocks = { {16 * 1024 * 1024, 1} },
8840 .block_erase = spi_block_erase_60,
8841 }, {
8842 .eraseblocks = { {16 * 1024 * 1024, 1} },
8843 .block_erase = spi_block_erase_c7,
8844 }
8845 },
Angel Ponsf112e242018-09-30 20:14:17 +02008846 /* TODO: security register */
8847 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8848 .unlock = spi_disable_blockprotect_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008849 .write = spi_chip_write_256, /* Multi I/O supported */
Angel Ponsf112e242018-09-30 20:14:17 +02008850 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8851 .voltage = {1650, 2000},
8852 },
8853
8854 {
8855 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00008856 .name = "MX25U1635E",
8857 .bustype = BUS_SPI,
8858 .manufacture_id = MACRONIX_ID,
8859 .model_id = MACRONIX_MX25U1635E,
8860 .total_size = 2048,
8861 .page_size = 256,
8862 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8863 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8864 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008865 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00008866 .probe = probe_spi_rdid,
8867 .probe_timing = TIMING_ZERO,
8868 .block_erasers =
8869 {
8870 {
8871 .eraseblocks = { {4 * 1024, 512} },
8872 .block_erase = spi_block_erase_20,
8873 }, {
8874 .eraseblocks = { {32 * 1024, 64} },
8875 .block_erase = spi_block_erase_52,
8876 }, {
8877 .eraseblocks = { {64 * 1024, 32} },
8878 .block_erase = spi_block_erase_d8,
8879 }, {
8880 .eraseblocks = { {2 * 1024 * 1024, 1} },
8881 .block_erase = spi_block_erase_60,
8882 }, {
8883 .eraseblocks = { {2 * 1024 * 1024, 1} },
8884 .block_erase = spi_block_erase_c7,
8885 }
8886 },
8887 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008888 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008889 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008890 .write = spi_chip_write_256,
8891 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8892 .voltage = {1650, 2000},
8893 },
8894
8895 {
8896 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07008897 .name = "MX25U25635F",
8898 .bustype = BUS_SPI,
8899 .manufacture_id = MACRONIX_ID,
8900 .model_id = MACRONIX_MX25U25635F,
8901 .total_size = 32768,
8902 .page_size = 256,
8903 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8904 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
8905 .tested = TEST_OK_PR,
8906 .probe = probe_spi_rdid,
8907 .probe_timing = TIMING_ZERO,
8908 .block_erasers =
8909 {
8910 {
8911 .eraseblocks = { {4 * 1024, 8192} },
8912 .block_erase = spi_block_erase_21,
8913 }, {
8914 .eraseblocks = { {4 * 1024, 8192} },
8915 .block_erase = spi_block_erase_20,
8916 }, {
8917 .eraseblocks = { {32 * 1024, 1024} },
8918 .block_erase = spi_block_erase_5c,
8919 }, {
8920 .eraseblocks = { {32 * 1024, 1024} },
8921 .block_erase = spi_block_erase_52,
8922 }, {
8923 .eraseblocks = { {64 * 1024, 512} },
8924 .block_erase = spi_block_erase_dc,
8925 }, {
8926 .eraseblocks = { {64 * 1024, 512} },
8927 .block_erase = spi_block_erase_d8,
8928 }, {
8929 .eraseblocks = { {32 * 1024 * 1024, 1} },
8930 .block_erase = spi_block_erase_60,
8931 }, {
8932 .eraseblocks = { {32 * 1024 * 1024, 1} },
8933 .block_erase = spi_block_erase_c7,
8934 }
8935 },
8936 /* TODO: security register */
8937 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8938 .unlock = spi_disable_blockprotect_bp3_srwd,
8939 .write = spi_chip_write_256, /* Multi I/O supported */
8940 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8941 .voltage = {1650, 2000},
8942 },
8943
8944 {
8945 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008946 .name = "MX25U3235E/F",
8947 .bustype = BUS_SPI,
8948 .manufacture_id = MACRONIX_ID,
8949 .model_id = MACRONIX_MX25U3235E,
8950 .total_size = 4096,
8951 .page_size = 256,
8952 /* F model supports SFDP */
8953 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8954 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8955 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
8956 .tested = TEST_OK_PREW,
8957 .probe = probe_spi_rdid,
8958 .probe_timing = TIMING_ZERO,
8959 .block_erasers =
8960 {
8961 {
8962 .eraseblocks = { {4 * 1024, 1024} },
8963 .block_erase = spi_block_erase_20,
8964 }, {
8965 .eraseblocks = { {32 * 1024, 128} },
8966 .block_erase = spi_block_erase_52,
8967 }, {
8968 .eraseblocks = { {64 * 1024, 64} },
8969 .block_erase = spi_block_erase_d8,
8970 }, {
8971 .eraseblocks = { {4 * 1024 * 1024, 1} },
8972 .block_erase = spi_block_erase_60,
8973 }, {
8974 .eraseblocks = { {4 * 1024 * 1024, 1} },
8975 .block_erase = spi_block_erase_c7,
8976 }
8977 },
8978 /* TODO: security register */
8979 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8980 .unlock = spi_disable_blockprotect_bp3_srwd,
8981 .write = spi_chip_write_256,
8982 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8983 .voltage = {1650, 2000},
8984 },
8985
8986 {
8987 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01008988 .name = "MX25U51245G",
8989 .bustype = BUS_SPI,
8990 .manufacture_id = MACRONIX_ID,
8991 .model_id = MACRONIX_MX25U51245G,
8992 .total_size = 65536,
8993 .page_size = 256,
8994 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
8995 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
8996 .tested = TEST_OK_PREW,
8997 .probe = probe_spi_rdid,
8998 .probe_timing = TIMING_ZERO,
8999 .block_erasers =
9000 {
9001 {
9002 .eraseblocks = { {4 * 1024, 16384} },
9003 .block_erase = spi_block_erase_21,
9004 }, {
9005 .eraseblocks = { {4 * 1024, 16384} },
9006 .block_erase = spi_block_erase_20,
9007 }, {
9008 .eraseblocks = { {32 * 1024, 2048} },
9009 .block_erase = spi_block_erase_5c,
9010 }, {
9011 .eraseblocks = { {32 * 1024, 2048} },
9012 .block_erase = spi_block_erase_52,
9013 }, {
9014 .eraseblocks = { {64 * 1024, 1024} },
9015 .block_erase = spi_block_erase_dc,
9016 }, {
9017 .eraseblocks = { {64 * 1024, 1024} },
9018 .block_erase = spi_block_erase_d8,
9019 }, {
9020 .eraseblocks = { {64 * 1024 * 1024, 1} },
9021 .block_erase = spi_block_erase_60,
9022 }, {
9023 .eraseblocks = { {64 * 1024 * 1024, 1} },
9024 .block_erase = spi_block_erase_c7,
9025 }
9026 },
9027 /* TODO: security register */
9028 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9029 .unlock = spi_disable_blockprotect_bp3_srwd,
9030 .write = spi_chip_write_256, /* Multi I/O supported */
9031 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9032 .voltage = {1650, 2000},
9033 },
9034
9035 {
9036 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009037 .name = "MX25U6435E/F",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009038 .bustype = BUS_SPI,
9039 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009040 .model_id = MACRONIX_MX25U6435E,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009041 .total_size = 8192,
9042 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009043 /* F model supports SFDP */
9044 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9045 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9046 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009047 .tested = TEST_OK_PREW,
9048 .probe = probe_spi_rdid,
9049 .probe_timing = TIMING_ZERO,
9050 .block_erasers =
9051 {
9052 {
9053 .eraseblocks = { {4 * 1024, 2048} },
9054 .block_erase = spi_block_erase_20,
9055 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009056 .eraseblocks = { {32 * 1024, 256} },
9057 .block_erase = spi_block_erase_52,
9058 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009059 .eraseblocks = { {64 * 1024, 128} },
9060 .block_erase = spi_block_erase_d8,
9061 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009062 .eraseblocks = { {8 * 1024 * 1024, 1} },
9063 .block_erase = spi_block_erase_60,
9064 }, {
9065 .eraseblocks = { {8 * 1024 * 1024, 1} },
9066 .block_erase = spi_block_erase_c7,
9067 }
9068 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009069 /* TODO: security register */
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009070 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9071 .unlock = spi_disable_blockprotect_bp3_srwd,
9072 .write = spi_chip_write_256,
9073 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009074 .voltage = {1650, 2000},
9075 },
9076
9077 {
9078 .vendor = "Macronix",
9079 .name = "MX25U8032E",
9080 .bustype = BUS_SPI,
9081 .manufacture_id = MACRONIX_ID,
9082 .model_id = MACRONIX_MX25U8032E,
9083 .total_size = 1024,
9084 .page_size = 256,
9085 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9086 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9087 .tested = TEST_OK_PREW,
9088 .probe = probe_spi_rdid,
9089 .probe_timing = TIMING_ZERO,
9090 .block_erasers =
9091 {
9092 {
9093 .eraseblocks = { {4 * 1024, 256} },
9094 .block_erase = spi_block_erase_20,
9095 }, {
9096 .eraseblocks = { {32 * 1024, 32} },
9097 .block_erase = spi_block_erase_52,
9098 }, {
9099 .eraseblocks = { {64 * 1024, 16} },
9100 .block_erase = spi_block_erase_d8,
9101 }, {
9102 .eraseblocks = { {1024 * 1024, 1} },
9103 .block_erase = spi_block_erase_60,
9104 }, {
9105 .eraseblocks = { {1024 * 1024, 1} },
9106 .block_erase = spi_block_erase_c7,
9107 }
9108 },
9109 /* TODO: security register */
9110 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9111 .unlock = spi_disable_blockprotect_bp3_srwd,
9112 .write = spi_chip_write_256,
9113 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9114 .voltage = {1650, 2000},
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009115 },
9116
9117 {
9118 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00009119 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009120 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009121 .manufacture_id = MACRONIX_ID,
9122 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009123 .total_size = 128,
9124 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009125 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9126 .tested = TEST_UNTESTED,
9127 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009128 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009129 .block_erasers =
9130 {
9131 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009132 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009133 {8 * 1024, 1},
9134 {4 * 1024, 2},
9135 {8 * 1024, 2},
9136 {32 * 1024, 1},
9137 {64 * 1024, 1},
9138 },
Sean Nelson35727f72010-01-28 23:55:12 +00009139 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009140 }, {
9141 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009142 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009143 }
9144 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009145 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009146 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009147 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009148 },
9149
9150 {
9151 .vendor = "Macronix",
9152 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009153 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009154 .manufacture_id = MACRONIX_ID,
9155 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009156 .total_size = 128,
9157 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009158 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00009159 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009160 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009161 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009162 .block_erasers =
9163 {
9164 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009165 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009166 {64 * 1024, 1},
9167 {32 * 1024, 1},
9168 {8 * 1024, 2},
9169 {4 * 1024, 2},
9170 {8 * 1024, 1},
9171 },
Sean Nelson35727f72010-01-28 23:55:12 +00009172 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009173 }, {
9174 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009175 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009176 }
9177 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009178 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009179 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009180 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009181 },
9182
9183 {
9184 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009185 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009186 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009187 .manufacture_id = MACRONIX_ID,
9188 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009189 .total_size = 256,
9190 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009191 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009192 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009193 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009194 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009195 .block_erasers =
9196 {
9197 {
9198 .eraseblocks = {
9199 {16 * 1024, 1},
9200 {8 * 1024, 2},
9201 {32 * 1024, 1},
9202 {64 * 1024, 3},
9203 },
Sean Nelson35727f72010-01-28 23:55:12 +00009204 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009205 }, {
9206 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009207 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009208 },
9209 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009210 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009211 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009212 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009213 },
9214
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009215 {
9216 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009217 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009218 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009219 .manufacture_id = MACRONIX_ID,
9220 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009221 .total_size = 256,
9222 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009223 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009224 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009225 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009226 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009227 .block_erasers =
9228 {
9229 {
9230 .eraseblocks = {
9231 {64 * 1024, 3},
9232 {32 * 1024, 1},
9233 {8 * 1024, 2},
9234 {16 * 1024, 1},
9235 },
Sean Nelson35727f72010-01-28 23:55:12 +00009236 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009237 }, {
9238 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009239 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009240 },
9241 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009242 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009243 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009244 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009245 },
9246
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009247 {
9248 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00009249 .name = "MX29F022(N)B",
9250 .bustype = BUS_PARALLEL,
9251 .manufacture_id = MACRONIX_ID,
9252 .model_id = MACRONIX_MX29F022B,
9253 .total_size = 256,
9254 .page_size = 0, /* unused */
9255 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9256 .tested = TEST_UNTESTED,
9257 .probe = probe_jedec,
9258 .probe_timing = TIMING_ZERO,
9259 .block_erasers =
9260 {
9261 {
9262 .eraseblocks = {
9263 {16 * 1024, 1},
9264 {8 * 1024, 2},
9265 {32 * 1024, 1},
9266 {64 * 1024, 3},
9267 },
9268 .block_erase = erase_sector_jedec,
9269 }, {
9270 .eraseblocks = { {256 * 1024, 1} },
9271 .block_erase = erase_chip_block_jedec,
9272 }
9273 },
9274 .write = write_jedec_1,
9275 .read = read_memmapped,
9276 .voltage = {4500, 5500},
9277 },
9278
9279 {
9280 .vendor = "Macronix",
9281 .name = "MX29F022(N)T",
9282 .bustype = BUS_PARALLEL,
9283 .manufacture_id = MACRONIX_ID,
9284 .model_id = MACRONIX_MX29F022T,
9285 .total_size = 256,
9286 .page_size = 0, /* unused */
9287 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9288 .tested = TEST_OK_PREW,
9289 .probe = probe_jedec,
9290 .probe_timing = TIMING_ZERO,
9291 .block_erasers =
9292 {
9293 {
9294 .eraseblocks = {
9295 {64 * 1024, 3},
9296 {32 * 1024, 1},
9297 {8 * 1024, 2},
9298 {16 * 1024, 1},
9299 },
9300 .block_erase = erase_sector_jedec,
9301 }, {
9302 .eraseblocks = { {256 * 1024, 1} },
9303 .block_erase = erase_chip_block_jedec,
9304 }
9305 },
9306 .write = write_jedec_1,
9307 .read = read_memmapped,
9308 .voltage = {4500, 5500},
9309 },
9310
9311 {
9312 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00009313 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009314 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00009315 .manufacture_id = MACRONIX_ID,
9316 .model_id = MACRONIX_MX29F040,
9317 .total_size = 512,
9318 .page_size = 64 * 1024,
9319 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9320 .tested = TEST_UNTESTED,
9321 .probe = probe_jedec,
9322 .probe_timing = TIMING_ZERO,
9323 .block_erasers =
9324 {
9325 {
9326 .eraseblocks = { {64 * 1024, 8} },
9327 .block_erase = erase_sector_jedec,
9328 }, {
9329 .eraseblocks = { {512 * 1024, 1} },
9330 .block_erase = erase_chip_block_jedec,
9331 },
9332 },
9333 .write = write_jedec_1,
9334 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009335 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00009336 },
9337
9338 {
9339 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009340 .name = "MX29GL128F",
9341 .bustype = BUS_PARALLEL,
9342 .manufacture_id = MACRONIX_ID,
9343 .model_id = MACRONIX_MX29GL128F,
9344 .total_size = 16384,
9345 .page_size = 128 * 1024, /* actual page size is 16 */
9346 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9347 .tested = TEST_UNTESTED,
9348 .probe = probe_jedec_29gl,
9349 .probe_timing = TIMING_ZERO,
9350 .block_erasers =
9351 {
9352 {
9353 .eraseblocks = { {128 * 1024, 128} },
9354 .block_erase = erase_sector_jedec,
9355 }, {
9356 .eraseblocks = { {16 * 1024 * 1024, 1} },
9357 .block_erase = erase_chip_block_jedec,
9358 },
9359 },
9360 .write = write_jedec_1,
9361 .read = read_memmapped,
9362 .voltage = {2700, 3600},
9363 },
9364
9365 {
9366 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009367 .name = "MX29GL320EB",
9368 .bustype = BUS_PARALLEL,
9369 .manufacture_id = MACRONIX_ID,
9370 .model_id = MACRONIX_MX29GL320EB,
9371 .total_size = 4096,
9372 .page_size = 128 * 1024, /* actual page size is 16 */
9373 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9374 .tested = TEST_UNTESTED,
9375 .probe = probe_jedec_29gl,
9376 .probe_timing = TIMING_ZERO,
9377 .block_erasers =
9378 {
9379 {
9380 .eraseblocks = {
9381 {8 * 1024, 8},
9382 {64 * 1024, 63},
9383 },
9384 .block_erase = erase_sector_jedec,
9385 }, {
9386 .eraseblocks = { {4 * 1024 * 1024, 1} },
9387 .block_erase = erase_chip_block_jedec,
9388 },
9389 },
9390 .write = write_jedec_1,
9391 .read = read_memmapped,
9392 .voltage = {2700, 3600},
9393 },
9394
9395 {
9396 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009397 .name = "MX29GL320EH/L",
9398 .bustype = BUS_PARALLEL,
9399 .manufacture_id = MACRONIX_ID,
9400 .model_id = MACRONIX_MX29GL320EHL,
9401 .total_size = 4096,
9402 .page_size = 128 * 1024, /* actual page size is 16 */
9403 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9404 .tested = TEST_UNTESTED,
9405 .probe = probe_jedec_29gl,
9406 .probe_timing = TIMING_ZERO,
9407 .block_erasers =
9408 {
9409 {
9410 .eraseblocks = { {64 * 1024, 64} },
9411 .block_erase = erase_sector_jedec,
9412 }, {
9413 .eraseblocks = { {4 * 1024 * 1024, 1} },
9414 .block_erase = erase_chip_block_jedec,
9415 },
9416 },
9417 .write = write_jedec_1,
9418 .read = read_memmapped,
9419 .voltage = {2700, 3600},
9420 },
9421
9422 {
9423 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009424 .name = "MX29GL320ET",
9425 .bustype = BUS_PARALLEL,
9426 .manufacture_id = MACRONIX_ID,
9427 .model_id = MACRONIX_MX29GL320ET,
9428 .total_size = 4096,
9429 .page_size = 128 * 1024, /* actual page size is 16 */
9430 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9431 .tested = TEST_UNTESTED,
9432 .probe = probe_jedec_29gl,
9433 .probe_timing = TIMING_ZERO,
9434 .block_erasers =
9435 {
9436 {
9437 .eraseblocks = {
9438 {64 * 1024, 63},
9439 {8 * 1024, 8},
9440 },
9441 .block_erase = erase_sector_jedec,
9442 }, {
9443 .eraseblocks = { {4 * 1024 * 1024, 1} },
9444 .block_erase = erase_chip_block_jedec,
9445 },
9446 },
9447 .write = write_jedec_1,
9448 .read = read_memmapped,
9449 .voltage = {2700, 3600},
9450 },
9451
9452 {
9453 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009454 .name = "MX29GL640EB",
9455 .bustype = BUS_PARALLEL,
9456 .manufacture_id = MACRONIX_ID,
9457 .model_id = MACRONIX_MX29GL640EB,
9458 .total_size = 8192,
9459 .page_size = 128 * 1024, /* actual page size is 16 */
9460 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9461 .tested = TEST_UNTESTED,
9462 .probe = probe_jedec_29gl,
9463 .probe_timing = TIMING_ZERO,
9464 .block_erasers =
9465 {
9466 {
9467 .eraseblocks = {
9468 {8 * 1024, 8},
9469 {64 * 1024, 127},
9470 },
9471 .block_erase = erase_sector_jedec,
9472 }, {
9473 .eraseblocks = { {8 * 1024 * 1024, 1} },
9474 .block_erase = erase_chip_block_jedec,
9475 },
9476 },
9477 .write = write_jedec_1,
9478 .read = read_memmapped,
9479 .voltage = {2700, 3600},
9480 },
9481
9482 {
9483 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009484 .name = "MX29GL640EH/L",
9485 .bustype = BUS_PARALLEL,
9486 .manufacture_id = MACRONIX_ID,
9487 .model_id = MACRONIX_MX29GL640EHL,
9488 .total_size = 8192,
9489 .page_size = 128 * 1024, /* actual page size is 16 */
9490 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9491 .tested = TEST_UNTESTED,
9492 .probe = probe_jedec_29gl,
9493 .probe_timing = TIMING_ZERO,
9494 .block_erasers =
9495 {
9496 {
9497 .eraseblocks = { {64 * 1024, 128} },
9498 .block_erase = erase_sector_jedec,
9499 }, {
9500 .eraseblocks = { {8 * 1024 * 1024, 1} },
9501 .block_erase = erase_chip_block_jedec,
9502 },
9503 },
9504 .write = write_jedec_1,
9505 .read = read_memmapped,
9506 .voltage = {2700, 3600},
9507 },
9508
9509 {
9510 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009511 .name = "MX29GL640ET",
9512 .bustype = BUS_PARALLEL,
9513 .manufacture_id = MACRONIX_ID,
9514 .model_id = MACRONIX_MX29GL640ET,
9515 .total_size = 8192,
9516 .page_size = 128 * 1024, /* actual page size is 16 */
9517 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9518 .tested = TEST_UNTESTED,
9519 .probe = probe_jedec_29gl,
9520 .probe_timing = TIMING_ZERO,
9521 .block_erasers =
9522 {
9523 {
9524 .eraseblocks = {
9525 {64 * 1024, 127},
9526 {8 * 1024, 8},
9527 },
9528 .block_erase = erase_sector_jedec,
9529 }, {
9530 .eraseblocks = { {8 * 1024 * 1024, 1} },
9531 .block_erase = erase_chip_block_jedec,
9532 },
9533 },
9534 .write = write_jedec_1,
9535 .read = read_memmapped,
9536 .voltage = {2700, 3600},
9537 },
9538
9539 {
9540 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00009541 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009542 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009543 .manufacture_id = MACRONIX_ID,
9544 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009545 .total_size = 512,
9546 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009547 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9548 .tested = TEST_UNTESTED,
9549 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009550 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009551 .block_erasers =
9552 {
9553 {
Stefan Tauner6697f712014-08-06 15:09:15 +00009554 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00009555 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009556 }, {
9557 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009558 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009559 },
9560 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009561 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009562 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009563 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00009564 },
9565
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009566 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009567 .vendor = "Macronix",
Hemanth Guruva Reddya136d422019-07-11 11:08:27 +02009568 .name = "MX66L51235F/MX25L51245G",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009569 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009570 .manufacture_id = MACRONIX_ID,
9571 .model_id = MACRONIX_MX66L51235F,
9572 .total_size = 65536,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009573 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009574 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9575 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009576 .tested = TEST_OK_PREW,
9577 .probe = probe_spi_rdid,
9578 .probe_timing = TIMING_ZERO,
9579 .block_erasers =
9580 {
9581 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009582 .eraseblocks = { {4 * 1024, 16384} },
9583 .block_erase = spi_block_erase_21,
9584 }, {
9585 .eraseblocks = { {4 * 1024, 16384} },
9586 .block_erase = spi_block_erase_20,
9587 }, {
9588 .eraseblocks = { {32 * 1024, 2048} },
9589 .block_erase = spi_block_erase_5c,
9590 }, {
9591 .eraseblocks = { {32 * 1024, 2048} },
9592 .block_erase = spi_block_erase_52,
9593 }, {
9594 .eraseblocks = { {64 * 1024, 1024} },
9595 .block_erase = spi_block_erase_dc,
9596 }, {
9597 .eraseblocks = { {64 * 1024, 1024} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009598 .block_erase = spi_block_erase_d8,
9599 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009600 .eraseblocks = { {64 * 1024 * 1024, 1} },
9601 .block_erase = spi_block_erase_60,
9602 }, {
9603 .eraseblocks = { {64 * 1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009604 .block_erase = spi_block_erase_c7,
9605 }
9606 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009607 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
9608 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009609 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009610 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009611 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009612 .voltage = {2700, 3600},
9613 },
9614
9615 /* The ST M25P05 is a bit of a problem. It has the same ID as the
9616 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
9617 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
9618 * only is successful if RDID does not work.
9619 */
9620 {
9621 .vendor = "Micron/Numonyx/ST",
9622 .name = "M25P05",
9623 .bustype = BUS_SPI,
9624 .manufacture_id = 0, /* Not used. */
9625 .model_id = ST_M25P05_RES,
9626 .total_size = 64,
9627 .page_size = 256,
9628 .feature_bits = FEATURE_WRSR_WREN,
9629 .tested = TEST_UNTESTED,
9630 .probe = probe_spi_res1,
9631 .probe_timing = TIMING_ZERO,
9632 .block_erasers =
9633 {
9634 {
9635 .eraseblocks = { {32 * 1024, 2} },
9636 .block_erase = spi_block_erase_d8,
9637 }, {
9638 .eraseblocks = { {64 * 1024, 1} },
9639 .block_erase = spi_block_erase_c7,
9640 }
9641 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009642 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009643 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009644 .write = spi_chip_write_1, /* 128 */
9645 .read = spi_chip_read,
9646 .voltage = {2700, 3600},
9647 },
9648
9649 {
9650 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009651 .name = "M25P05-A",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009652 .bustype = BUS_SPI,
9653 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009654 .model_id = ST_M25P05A,
9655 .total_size = 64,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009656 .page_size = 256,
9657 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009658 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009659 .probe = probe_spi_rdid,
9660 .probe_timing = TIMING_ZERO,
9661 .block_erasers =
9662 {
9663 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009664 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009665 .block_erase = spi_block_erase_d8,
9666 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009667 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009668 .block_erase = spi_block_erase_c7,
9669 }
9670 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009671 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009672 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009673 .write = spi_chip_write_256,
9674 .read = spi_chip_read,
9675 .voltage = {2700, 3600},
9676 },
9677
9678 /* The ST M25P10 has the same problem as the M25P05. */
9679 {
9680 .vendor = "Micron/Numonyx/ST",
9681 .name = "M25P10",
9682 .bustype = BUS_SPI,
9683 .manufacture_id = 0, /* Not used. */
9684 .model_id = ST_M25P10_RES,
9685 .total_size = 128,
9686 .page_size = 256,
9687 .feature_bits = FEATURE_WRSR_WREN,
9688 .tested = TEST_UNTESTED,
9689 .probe = probe_spi_res1,
9690 .probe_timing = TIMING_ZERO,
9691 .block_erasers =
9692 {
9693 {
9694 .eraseblocks = { {32 * 1024, 4} },
9695 .block_erase = spi_block_erase_d8,
9696 }, {
9697 .eraseblocks = { {128 * 1024, 1} },
9698 .block_erase = spi_block_erase_c7,
9699 }
9700 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009701 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009702 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009703 .write = spi_chip_write_1, /* 128 */
9704 .read = spi_chip_read,
9705 .voltage = {2700, 3600},
9706 },
9707
9708 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009709 .vendor = "Micron/Numonyx/ST",
9710 .name = "M25P10-A",
9711 .bustype = BUS_SPI,
9712 .manufacture_id = ST_ID,
9713 .model_id = ST_M25P10A,
9714 .total_size = 128,
9715 .page_size = 256,
9716 .feature_bits = FEATURE_WRSR_WREN,
9717 .tested = TEST_OK_PREW,
9718 .probe = probe_spi_rdid,
9719 .probe_timing = TIMING_ZERO,
9720 .block_erasers =
9721 {
9722 {
9723 .eraseblocks = { {32 * 1024, 4} },
9724 .block_erase = spi_block_erase_d8,
9725 }, {
9726 .eraseblocks = { {128 * 1024, 1} },
9727 .block_erase = spi_block_erase_c7,
9728 }
9729 },
9730 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9731 .unlock = spi_disable_blockprotect_bp3_srwd,
9732 .write = spi_chip_write_256,
9733 .read = spi_chip_read,
9734 .voltage = {2700, 3600},
9735 },
9736
9737 {
9738 .vendor = "Micron/Numonyx/ST",
9739 .name = "M25P128",
9740 .bustype = BUS_SPI,
9741 .manufacture_id = ST_ID,
9742 .model_id = ST_M25P128,
9743 .total_size = 16384,
9744 .page_size = 256,
9745 .feature_bits = FEATURE_WRSR_WREN,
9746 .tested = TEST_OK_PREW,
9747 .probe = probe_spi_rdid,
9748 .probe_timing = TIMING_ZERO,
9749 .block_erasers =
9750 {
9751 {
9752 .eraseblocks = { {256 * 1024, 64} },
9753 .block_erase = spi_block_erase_d8,
9754 }, {
9755 .eraseblocks = { {16 * 1024 * 1024, 1} },
9756 .block_erase = spi_block_erase_c7,
9757 }
9758 },
9759 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9760 .unlock = spi_disable_blockprotect_bp3_srwd,
9761 .write = spi_chip_write_256,
9762 .read = spi_chip_read,
9763 .voltage = {2700, 3600},
9764 },
9765
9766 {
9767 .vendor = "Micron/Numonyx/ST",
9768 .name = "M25P16",
9769 .bustype = BUS_SPI,
9770 .manufacture_id = ST_ID,
9771 .model_id = ST_M25P16,
9772 .total_size = 2048,
9773 .page_size = 256,
9774 .feature_bits = FEATURE_WRSR_WREN,
9775 .tested = TEST_OK_PREW,
9776 .probe = probe_spi_rdid,
9777 .probe_timing = TIMING_ZERO,
9778 .block_erasers =
9779 {
9780 {
9781 .eraseblocks = { {64 * 1024, 32} },
9782 .block_erase = spi_block_erase_d8,
9783 }, {
9784 .eraseblocks = { {2 * 1024 * 1024, 1} },
9785 .block_erase = spi_block_erase_c7,
9786 }
9787 },
9788 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9789 .unlock = spi_disable_blockprotect_bp3_srwd,
9790 .write = spi_chip_write_256,
9791 .read = spi_chip_read,
9792 .voltage = {2700, 3600},
9793 },
9794
9795 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009796 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9797 .name = "M25P20",
9798 .bustype = BUS_SPI,
9799 .manufacture_id = ST_ID,
9800 .model_id = ST_M25P20,
9801 .total_size = 256,
9802 .page_size = 256,
9803 .feature_bits = FEATURE_WRSR_WREN,
9804 .tested = TEST_UNTESTED,
9805 .probe = probe_spi_rdid,
9806 .probe_timing = TIMING_ZERO,
9807 .block_erasers =
9808 {
9809 {
9810 .eraseblocks = { {64 * 1024, 4} },
9811 .block_erase = spi_block_erase_d8,
9812 }, {
9813 .eraseblocks = { {256 * 1024, 1} },
9814 .block_erase = spi_block_erase_c7,
9815 }
9816 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009817 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009818 .unlock = spi_disable_blockprotect,
9819 .write = spi_chip_write_256,
9820 .read = spi_chip_read, /* Fast read (0x0B) supported */
9821 .voltage = {2700, 3600},
9822 },
9823
9824 {
9825 .vendor = "Micron/Numonyx/ST",
9826 .name = "M25P20-old",
9827 .bustype = BUS_SPI,
9828 .manufacture_id = 0, /* Not used. */
9829 .model_id = ST_M25P20_RES,
9830 .total_size = 256,
9831 .page_size = 256,
9832 .feature_bits = FEATURE_WRSR_WREN,
9833 .tested = TEST_OK_PREW,
9834 .probe = probe_spi_res1,
9835 .probe_timing = TIMING_ZERO,
9836 .block_erasers =
9837 {
9838 {
9839 .eraseblocks = { {64 * 1024, 4} },
9840 .block_erase = spi_block_erase_d8,
9841 }, {
9842 .eraseblocks = { {256 * 1024, 1} },
9843 .block_erase = spi_block_erase_c7,
9844 }
9845 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009846 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009847 .unlock = spi_disable_blockprotect,
9848 .write = spi_chip_write_256,
9849 .read = spi_chip_read, /* Fast read (0x0B) supported */
9850 .voltage = {2700, 3600},
9851 },
9852
9853 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009854 .vendor = "Micron/Numonyx/ST",
9855 .name = "M25P32",
9856 .bustype = BUS_SPI,
9857 .manufacture_id = ST_ID,
9858 .model_id = ST_M25P32,
9859 .total_size = 4096,
9860 .page_size = 256,
9861 .feature_bits = FEATURE_WRSR_WREN,
9862 .tested = TEST_OK_PREW,
9863 .probe = probe_spi_rdid,
9864 .probe_timing = TIMING_ZERO,
9865 .block_erasers =
9866 {
9867 {
9868 .eraseblocks = { {64 * 1024, 64} },
9869 .block_erase = spi_block_erase_d8,
9870 }, {
9871 .eraseblocks = { {4 * 1024 * 1024, 1} },
9872 .block_erase = spi_block_erase_c7,
9873 }
9874 },
9875 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9876 .unlock = spi_disable_blockprotect_bp3_srwd,
9877 .write = spi_chip_write_256,
9878 .read = spi_chip_read,
9879 .voltage = {2700, 3600},
9880 },
9881
9882 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009883 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9884 .name = "M25P40",
9885 .bustype = BUS_SPI,
9886 .manufacture_id = ST_ID,
9887 .model_id = ST_M25P40,
9888 .total_size = 512,
9889 .page_size = 256,
9890 .feature_bits = FEATURE_WRSR_WREN,
9891 .tested = TEST_OK_PREW,
9892 .probe = probe_spi_rdid,
9893 .probe_timing = TIMING_ZERO,
9894 .block_erasers =
9895 {
9896 {
9897 .eraseblocks = { {64 * 1024, 8} },
9898 .block_erase = spi_block_erase_d8,
9899 }, {
9900 .eraseblocks = { {512 * 1024, 1} },
9901 .block_erase = spi_block_erase_c7,
9902 }
9903 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009904 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009905 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009906 .write = spi_chip_write_256,
9907 .read = spi_chip_read,
9908 .voltage = {2700, 3600},
9909 },
9910
9911 {
9912 .vendor = "Micron/Numonyx/ST",
9913 .name = "M25P40-old",
9914 .bustype = BUS_SPI,
9915 .manufacture_id = 0, /* Not used. */
9916 .model_id = ST_M25P40_RES,
9917 .total_size = 512,
9918 .page_size = 256,
9919 .feature_bits = FEATURE_WRSR_WREN,
9920 .tested = TEST_UNTESTED,
9921 .probe = probe_spi_res1,
9922 .probe_timing = TIMING_ZERO,
9923 .block_erasers =
9924 {
9925 {
9926 .eraseblocks = { {64 * 1024, 8} },
9927 .block_erase = spi_block_erase_d8,
9928 }, {
9929 .eraseblocks = { {512 * 1024, 1} },
9930 .block_erase = spi_block_erase_c7,
9931 }
9932 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009933 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009934 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009935 .write = spi_chip_write_256,
9936 .read = spi_chip_read,
9937 },
9938
9939 {
9940 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009941 .name = "M25P64",
9942 .bustype = BUS_SPI,
9943 .manufacture_id = ST_ID,
9944 .model_id = ST_M25P64,
9945 .total_size = 8192,
9946 .page_size = 256,
9947 .feature_bits = FEATURE_WRSR_WREN,
9948 .tested = TEST_OK_PREW,
9949 .probe = probe_spi_rdid,
9950 .probe_timing = TIMING_ZERO,
9951 .block_erasers =
9952 {
9953 {
9954 .eraseblocks = { {64 * 1024, 128} },
9955 .block_erase = spi_block_erase_d8,
9956 }, {
9957 .eraseblocks = { {8 * 1024 * 1024, 1} },
9958 .block_erase = spi_block_erase_c7,
9959 }
9960 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009961 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009962 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009963 .write = spi_chip_write_256,
9964 .read = spi_chip_read,
9965 .voltage = {2700, 3600},
9966 },
9967
9968 {
9969 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009970 .name = "M25P80",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009971 .bustype = BUS_SPI,
9972 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009973 .model_id = ST_M25P80,
9974 .total_size = 1024,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009975 .page_size = 256,
9976 .feature_bits = FEATURE_WRSR_WREN,
9977 .tested = TEST_OK_PREW,
9978 .probe = probe_spi_rdid,
9979 .probe_timing = TIMING_ZERO,
9980 .block_erasers =
9981 {
9982 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009983 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009984 .block_erase = spi_block_erase_d8,
9985 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009986 .eraseblocks = { {1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009987 .block_erase = spi_block_erase_c7,
9988 }
9989 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009990 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009991 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009992 .write = spi_chip_write_256,
9993 .read = spi_chip_read,
9994 .voltage = {2700, 3600},
9995 },
9996
9997 {
9998 .vendor = "Micron/Numonyx/ST",
9999 .name = "M25PE10",
10000 .bustype = BUS_SPI,
10001 .manufacture_id = ST_ID,
10002 .model_id = ST_M25PE10,
10003 .total_size = 128,
10004 .page_size = 256,
10005 .feature_bits = FEATURE_WRSR_WREN,
10006 .tested = TEST_UNTESTED,
10007 .probe = probe_spi_rdid,
10008 .probe_timing = TIMING_ZERO,
10009 .block_erasers =
10010 {
10011 {
10012 .eraseblocks = { {4 * 1024, 32} },
10013 .block_erase = spi_block_erase_20,
10014 }, {
10015 .eraseblocks = { {64 * 1024, 2} },
10016 .block_erase = spi_block_erase_d8,
10017 }, {
10018 .eraseblocks = { {128 * 1024, 1} },
10019 .block_erase = spi_block_erase_c7,
10020 }
10021 },
10022 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10023 .unlock = spi_disable_blockprotect,
10024 .write = spi_chip_write_256,
10025 .read = spi_chip_read,
10026 .voltage = {2700, 3600},
10027 },
10028
10029 {
10030 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010031 .name = "M25PE16",
10032 .bustype = BUS_SPI,
10033 .manufacture_id = ST_ID,
10034 .model_id = ST_M25PE16,
10035 .total_size = 2048,
10036 .page_size = 256,
10037 .feature_bits = FEATURE_WRSR_WREN,
10038 .tested = TEST_UNTESTED,
10039 .probe = probe_spi_rdid,
10040 .probe_timing = TIMING_ZERO,
10041 .block_erasers =
10042 {
10043 {
10044 .eraseblocks = { {4 * 1024, 512} },
10045 .block_erase = spi_block_erase_20,
10046 }, {
10047 .eraseblocks = { {64 * 1024, 32} },
10048 .block_erase = spi_block_erase_d8,
10049 }, {
10050 .eraseblocks = { {2 * 1024 * 1024, 1} },
10051 .block_erase = spi_block_erase_c7,
10052 }
10053 },
10054 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10055 .unlock = spi_disable_blockprotect,
10056 .write = spi_chip_write_256,
10057 .read = spi_chip_read,
10058 .voltage = {2700, 3600},
10059 },
10060
10061 {
10062 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010063 .name = "M25PE20",
10064 .bustype = BUS_SPI,
10065 .manufacture_id = ST_ID,
10066 .model_id = ST_M25PE20,
10067 .total_size = 256,
10068 .page_size = 256,
10069 .feature_bits = FEATURE_WRSR_WREN,
10070 .tested = TEST_UNTESTED,
10071 .probe = probe_spi_rdid,
10072 .probe_timing = TIMING_ZERO,
10073 .block_erasers =
10074 {
10075 {
10076 .eraseblocks = { {4 * 1024, 64} },
10077 .block_erase = spi_block_erase_20,
10078 }, {
10079 .eraseblocks = { {64 * 1024, 4} },
10080 .block_erase = spi_block_erase_d8,
10081 }, {
10082 .eraseblocks = { {256 * 1024, 1} },
10083 .block_erase = spi_block_erase_c7,
10084 }
10085 },
10086 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10087 .unlock = spi_disable_blockprotect,
10088 .write = spi_chip_write_256,
10089 .read = spi_chip_read,
10090 .voltage = {2700, 3600},
10091 },
10092
10093 {
10094 .vendor = "Micron/Numonyx/ST",
10095 .name = "M25PE40",
10096 .bustype = BUS_SPI,
10097 .manufacture_id = ST_ID,
10098 .model_id = ST_M25PE40,
10099 .total_size = 512,
10100 .page_size = 256,
10101 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010102 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010103 .probe = probe_spi_rdid,
10104 .probe_timing = TIMING_ZERO,
10105 .block_erasers =
10106 {
10107 {
10108 .eraseblocks = { {4 * 1024, 128} },
10109 .block_erase = spi_block_erase_20,
10110 }, {
10111 .eraseblocks = { {64 * 1024, 8} },
10112 .block_erase = spi_block_erase_d8,
10113 }, {
10114 .eraseblocks = { {512 * 1024, 1} },
10115 .block_erase = spi_block_erase_c7,
10116 }
10117 },
10118 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10119 .unlock = spi_disable_blockprotect,
10120 .write = spi_chip_write_256,
10121 .read = spi_chip_read,
10122 .voltage = {2700, 3600},
10123 },
10124
10125 {
10126 .vendor = "Micron/Numonyx/ST",
10127 .name = "M25PE80",
10128 .bustype = BUS_SPI,
10129 .manufacture_id = ST_ID,
10130 .model_id = ST_M25PE80,
10131 .total_size = 1024,
10132 .page_size = 256,
10133 .feature_bits = FEATURE_WRSR_WREN,
10134 .tested = TEST_OK_PREW,
10135 .probe = probe_spi_rdid,
10136 .probe_timing = TIMING_ZERO,
10137 .block_erasers =
10138 {
10139 {
10140 .eraseblocks = { {4 * 1024, 256} },
10141 .block_erase = spi_block_erase_20,
10142 }, {
10143 .eraseblocks = { {64 * 1024, 16} },
10144 .block_erase = spi_block_erase_d8,
10145 }, {
10146 .eraseblocks = { {1024 * 1024, 1} },
10147 .block_erase = spi_block_erase_c7,
10148 }
10149 },
10150 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10151 .unlock = spi_disable_blockprotect,
10152 .write = spi_chip_write_256,
10153 .read = spi_chip_read,
10154 .voltage = {2700, 3600},
10155 },
10156
10157 {
10158 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010159 .name = "M25PX16",
10160 .bustype = BUS_SPI,
10161 .manufacture_id = ST_ID,
10162 .model_id = ST_M25PX16,
10163 .total_size = 2048,
10164 .page_size = 256,
10165 /* OTP: 64B total; read 0x4B; write 0x42 */
10166 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10167 .tested = TEST_OK_PREW,
10168 .probe = probe_spi_rdid,
10169 .probe_timing = TIMING_ZERO,
10170 .block_erasers =
10171 {
10172 {
10173 .eraseblocks = { { 4 * 1024, 512 } },
10174 .block_erase = spi_block_erase_20,
10175 }, {
10176 .eraseblocks = { {64 * 1024, 32} },
10177 .block_erase = spi_block_erase_d8,
10178 }, {
10179 .eraseblocks = { {2 * 1024 * 1024, 1} },
10180 .block_erase = spi_block_erase_c7,
10181 }
10182 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010183 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010184 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10185 .write = spi_chip_write_256,
10186 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010187 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010188 },
10189
10190 {
10191 .vendor = "Micron/Numonyx/ST",
10192 .name = "M25PX32",
10193 .bustype = BUS_SPI,
10194 .manufacture_id = ST_ID,
10195 .model_id = ST_M25PX32,
10196 .total_size = 4096,
10197 .page_size = 256,
10198 /* OTP: 64B total; read 0x4B; write 0x42 */
10199 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10200 .tested = TEST_OK_PRE,
10201 .probe = probe_spi_rdid,
10202 .probe_timing = TIMING_ZERO,
10203 .block_erasers =
10204 {
10205 {
10206 .eraseblocks = { { 4 * 1024, 1024 } },
10207 .block_erase = spi_block_erase_20,
10208 }, {
10209 .eraseblocks = { {64 * 1024, 64} },
10210 .block_erase = spi_block_erase_d8,
10211 }, {
10212 .eraseblocks = { {4 * 1024 * 1024, 1} },
10213 .block_erase = spi_block_erase_c7,
10214 }
10215 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010216 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010217 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10218 .write = spi_chip_write_256,
10219 .read = spi_chip_read,
10220 .voltage = {2700, 3600},
10221 },
10222
10223 {
10224 .vendor = "Micron/Numonyx/ST",
10225 .name = "M25PX64",
10226 .bustype = BUS_SPI,
10227 .manufacture_id = ST_ID,
10228 .model_id = ST_M25PX64,
10229 .total_size = 8192,
10230 .page_size = 256,
10231 /* OTP: 64B total; read 0x4B; write 0x42 */
10232 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010233 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010234 .probe = probe_spi_rdid,
10235 .probe_timing = TIMING_ZERO,
10236 .block_erasers =
10237 {
10238 {
10239 .eraseblocks = { { 4 * 1024, 2048 } },
10240 .block_erase = spi_block_erase_20,
10241 }, {
10242 .eraseblocks = { {64 * 1024, 128} },
10243 .block_erase = spi_block_erase_d8,
10244 }, {
10245 .eraseblocks = { {8 * 1024 * 1024, 1} },
10246 .block_erase = spi_block_erase_c7,
10247 }
10248 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010249 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010250 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10251 .write = spi_chip_write_256,
10252 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010253 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010254 },
10255
10256 {
10257 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010258 .name = "M25PX80",
10259 .bustype = BUS_SPI,
10260 .manufacture_id = ST_ID,
10261 .model_id = ST_M25PX80,
10262 .total_size = 1024,
10263 .page_size = 256,
10264 /* OTP: 64B total; read 0x4B, write 0x42 */
10265 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10266 .tested = TEST_OK_PREW,
10267 .probe = probe_spi_rdid,
10268 .probe_timing = TIMING_ZERO,
10269 .block_erasers =
10270 {
10271 {
10272 .eraseblocks = { { 4 * 1024, 256 } },
10273 .block_erase = spi_block_erase_20,
10274 }, {
10275 .eraseblocks = { {64 * 1024, 16} },
10276 .block_erase = spi_block_erase_d8,
10277 }, {
10278 .eraseblocks = { {1024 * 1024, 1} },
10279 .block_erase = spi_block_erase_c7,
10280 }
10281 },
10282 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
10283 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10284 .write = spi_chip_write_256,
10285 .read = spi_chip_read,
10286 .voltage = {2700, 3600},
10287 },
10288
10289 {
10290 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010291 .name = "M45PE10",
10292 .bustype = BUS_SPI,
10293 .manufacture_id = ST_ID,
10294 .model_id = ST_M45PE10,
10295 .total_size = 128,
10296 .page_size = 256,
10297 .tested = TEST_UNTESTED,
10298 .probe = probe_spi_rdid,
10299 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010300 .block_erasers =
10301 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010302 {
10303 .eraseblocks = { {256, 512} },
10304 .block_erase = spi_block_erase_db,
10305 }, {
10306 .eraseblocks = { {64 * 1024, 2} },
10307 .block_erase = spi_block_erase_d8,
10308 }
10309 },
10310 .printlock = spi_prettyprint_status_register_default_welwip,
10311 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10312 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10313 .read = spi_chip_read, /* Fast read (0x0B) supported */
10314 .voltage = {2700, 3600},
10315 },
10316
10317 {
10318 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010319 .name = "M45PE16",
10320 .bustype = BUS_SPI,
10321 .manufacture_id = ST_ID,
10322 .model_id = ST_M45PE16,
10323 .total_size = 2048,
10324 .page_size = 256,
10325 .tested = TEST_UNTESTED,
10326 .probe = probe_spi_rdid,
10327 .probe_timing = TIMING_ZERO,
10328 .block_erasers =
10329 {
10330 {
10331 .eraseblocks = { {256, 8192} },
10332 .block_erase = spi_block_erase_db,
10333 }, {
10334 .eraseblocks = { {64 * 1024, 32} },
10335 .block_erase = spi_block_erase_d8,
10336 }
10337 },
10338 .printlock = spi_prettyprint_status_register_default_welwip,
10339 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10340 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10341 .read = spi_chip_read, /* Fast read (0x0B) supported */
10342 .voltage = {2700, 3600},
10343 },
10344
10345 {
10346 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010347 .name = "M45PE20",
10348 .bustype = BUS_SPI,
10349 .manufacture_id = ST_ID,
10350 .model_id = ST_M45PE20,
10351 .total_size = 256,
10352 .page_size = 256,
10353 .tested = TEST_UNTESTED,
10354 .probe = probe_spi_rdid,
10355 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010356 .block_erasers =
10357 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010358 {
10359 .eraseblocks = { {256, 1024} },
10360 .block_erase = spi_block_erase_db,
10361 }, {
10362 .eraseblocks = { {64 * 1024, 4} },
10363 .block_erase = spi_block_erase_d8,
10364 }
10365 },
10366 .printlock = spi_prettyprint_status_register_default_welwip,
10367 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10368 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10369 .read = spi_chip_read, /* Fast read (0x0B) supported */
10370 .voltage = {2700, 3600},
10371 },
10372
10373 {
10374 .vendor = "Micron/Numonyx/ST",
10375 .name = "M45PE40",
10376 .bustype = BUS_SPI,
10377 .manufacture_id = ST_ID,
10378 .model_id = ST_M45PE40,
10379 .total_size = 512,
10380 .page_size = 256,
10381 .tested = TEST_UNTESTED,
10382 .probe = probe_spi_rdid,
10383 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010384 .block_erasers =
10385 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010386 {
10387 .eraseblocks = { {256, 2048} },
10388 .block_erase = spi_block_erase_db,
10389 }, {
10390 .eraseblocks = { {64 * 1024, 8} },
10391 .block_erase = spi_block_erase_d8,
10392 }
10393 },
10394 .printlock = spi_prettyprint_status_register_default_welwip,
10395 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000010396 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010397 .read = spi_chip_read, /* Fast read (0x0B) supported */
10398 .voltage = {2700, 3600},
10399 },
10400
10401 {
10402 .vendor = "Micron/Numonyx/ST",
10403 .name = "M45PE80",
10404 .bustype = BUS_SPI,
10405 .manufacture_id = ST_ID,
10406 .model_id = ST_M45PE80,
10407 .total_size = 1024,
10408 .page_size = 256,
10409 .tested = TEST_UNTESTED,
10410 .probe = probe_spi_rdid,
10411 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010412 .block_erasers =
10413 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010414 {
10415 .eraseblocks = { {256, 4096} },
10416 .block_erase = spi_block_erase_db,
10417 }, {
10418 .eraseblocks = { {64 * 1024, 16} },
10419 .block_erase = spi_block_erase_d8,
10420 }
10421 },
10422 .printlock = spi_prettyprint_status_register_default_welwip,
10423 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10424 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10425 .read = spi_chip_read, /* Fast read (0x0B) supported */
10426 .voltage = {2700, 3600},
10427 },
10428
10429 {
10430 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010431 .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
10432 .bustype = BUS_SPI,
10433 .manufacture_id = ST_ID,
10434 .model_id = ST_N25Q00A__1G,
10435 .total_size = 131072,
10436 .page_size = 256,
10437 /* supports SFDP */
10438 /* OTP: 64B total; read 0x4B, write 0x42 */
10439 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10440 .tested = TEST_UNTESTED,
10441 .probe = probe_spi_rdid,
10442 .probe_timing = TIMING_ZERO,
10443 .block_erasers =
10444 {
10445 {
10446 .eraseblocks = { {4 * 1024, 32768} },
10447 .block_erase = spi_block_erase_21,
10448 }, {
10449 .eraseblocks = { {4 * 1024, 32768} },
10450 .block_erase = spi_block_erase_20,
10451 }, {
10452 .eraseblocks = { {64 * 1024, 2048} },
10453 .block_erase = spi_block_erase_dc,
10454 }, {
10455 .eraseblocks = { {64 * 1024, 2048} },
10456 .block_erase = spi_block_erase_d8,
10457 }, {
10458 .eraseblocks = { {32768 * 1024, 4} },
10459 .block_erase = spi_block_erase_c4,
10460 }
10461 },
10462 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10463 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10464 .write = spi_chip_write_256, /* Multi I/O supported */
10465 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10466 .voltage = {1700, 2000},
10467 },
10468
10469 {
10470 .vendor = "Micron/Numonyx/ST",
10471 .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
10472 .bustype = BUS_SPI,
10473 .manufacture_id = ST_ID,
10474 .model_id = ST_N25Q00A__3G,
10475 .total_size = 131072,
10476 .page_size = 256,
10477 /* supports SFDP */
10478 /* OTP: 64B total; read 0x4B, write 0x42 */
10479 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10480 .tested = TEST_UNTESTED,
10481 .probe = probe_spi_rdid,
10482 .probe_timing = TIMING_ZERO,
10483 .block_erasers =
10484 {
10485 {
10486 .eraseblocks = { {4 * 1024, 32768} },
10487 .block_erase = spi_block_erase_21,
10488 }, {
10489 .eraseblocks = { {4 * 1024, 32768} },
10490 .block_erase = spi_block_erase_20,
10491 }, {
10492 .eraseblocks = { {64 * 1024, 2048} },
10493 .block_erase = spi_block_erase_dc,
10494 }, {
10495 .eraseblocks = { {64 * 1024, 2048} },
10496 .block_erase = spi_block_erase_d8,
10497 }, {
10498 .eraseblocks = { {32768 * 1024, 4} },
10499 .block_erase = spi_block_erase_c4,
10500 }
10501 },
10502 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10503 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10504 .write = spi_chip_write_256, /* Multi I/O supported */
10505 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10506 .voltage = {2700, 3600},
10507 },
10508
10509 {
10510 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010511 .name = "N25Q016",
10512 .bustype = BUS_SPI,
10513 .manufacture_id = ST_ID,
10514 .model_id = ST_N25Q016__1E,
10515 .total_size = 2048,
10516 .page_size = 256,
10517 /* supports SFDP */
10518 /* OTP: 64B total; read 0x4B, write 0x42 */
10519 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10520 .tested = TEST_UNTESTED,
10521 .probe = probe_spi_rdid,
10522 .probe_timing = TIMING_ZERO,
10523 .block_erasers =
10524 {
10525 {
10526 .eraseblocks = { {4 * 1024, 512} },
10527 .block_erase = spi_block_erase_20,
10528 }, {
10529 .eraseblocks = { {32 * 1024, 64} },
10530 .block_erase = spi_block_erase_52,
10531 }, {
10532 .eraseblocks = { {64 * 1024, 32} },
10533 .block_erase = spi_block_erase_d8,
10534 }, {
10535 .eraseblocks = { {2 * 1024 * 1024, 1} },
10536 .block_erase = spi_block_erase_c7,
10537 }
10538 },
10539 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10540 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10541 .write = spi_chip_write_256, /* Multi I/O supported */
10542 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10543 .voltage = {1700, 2000},
10544 },
10545
10546 {
10547 .vendor = "Micron/Numonyx/ST",
10548 .name = "N25Q032..1E",
10549 .bustype = BUS_SPI,
10550 .manufacture_id = ST_ID,
10551 .model_id = ST_N25Q032__1E,
10552 .total_size = 4096,
10553 .page_size = 256,
10554 /* supports SFDP */
10555 /* OTP: 64B total; read 0x4B, write 0x42 */
10556 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10557 .tested = TEST_UNTESTED,
10558 .probe = probe_spi_rdid,
10559 .probe_timing = TIMING_ZERO,
10560 .block_erasers =
10561 {
10562 {
10563 .eraseblocks = { {4 * 1024, 1024} },
10564 .block_erase = spi_block_erase_20,
10565 }, {
10566 .eraseblocks = { {64 * 1024, 64} },
10567 .block_erase = spi_block_erase_d8,
10568 }, {
10569 .eraseblocks = { {4 * 1024 * 1024, 1} },
10570 .block_erase = spi_block_erase_c7,
10571 }
10572 },
10573 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10574 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10575 .write = spi_chip_write_256, /* Multi I/O supported */
10576 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10577 .voltage = {1700, 2000},
10578 },
10579
10580 {
10581 .vendor = "Micron/Numonyx/ST",
10582 .name = "N25Q032..3E",
10583 .bustype = BUS_SPI,
10584 .manufacture_id = ST_ID,
10585 .model_id = ST_N25Q032__3E,
10586 .total_size = 4096,
10587 .page_size = 256,
10588 /* supports SFDP */
10589 /* OTP: 64B total; read 0x4B, write 0x42 */
10590 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10591 .tested = TEST_OK_PREW,
10592 .probe = probe_spi_rdid,
10593 .probe_timing = TIMING_ZERO,
10594 .block_erasers =
10595 {
10596 {
10597 .eraseblocks = { {4 * 1024, 1024} },
10598 .block_erase = spi_block_erase_20,
10599 }, {
10600 .eraseblocks = { {64 * 1024, 64} },
10601 .block_erase = spi_block_erase_d8,
10602 }, {
10603 .eraseblocks = { {4 * 1024 * 1024, 1} },
10604 .block_erase = spi_block_erase_c7,
10605 }
10606 },
10607 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10608 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10609 .write = spi_chip_write_256, /* Multi I/O supported */
10610 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10611 .voltage = {2700, 3600},
10612 },
10613
10614 {
10615 .vendor = "Micron/Numonyx/ST",
10616 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10617 .bustype = BUS_SPI,
10618 .manufacture_id = ST_ID,
10619 .model_id = ST_N25Q064__1E,
10620 .total_size = 8192,
10621 .page_size = 256,
10622 /* supports SFDP */
10623 /* OTP: 64B total; read 0x4B, write 0x42 */
10624 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010625 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010626 .probe = probe_spi_rdid,
10627 .probe_timing = TIMING_ZERO,
10628 .block_erasers =
10629 {
10630 {
10631 .eraseblocks = { {4 * 1024, 2048 } },
10632 .block_erase = spi_block_erase_20,
10633 }, {
10634 .eraseblocks = { {64 * 1024, 128} },
10635 .block_erase = spi_block_erase_d8,
10636 }, {
10637 .eraseblocks = { {8 * 1024 * 1024, 1} },
10638 .block_erase = spi_block_erase_c7,
10639 }
10640 },
10641 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10642 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10643 .write = spi_chip_write_256, /* Multi I/O supported */
10644 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10645 .voltage = {1700, 2000},
10646 },
10647
10648 {
10649 .vendor = "Micron/Numonyx/ST",
10650 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10651 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010652 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010653 .model_id = ST_N25Q064__3E,
10654 .total_size = 8192,
10655 .page_size = 256,
10656 /* supports SFDP */
10657 /* OTP: 64B total; read 0x4B, write 0x42 */
10658 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10659 .tested = TEST_OK_PREW,
10660 .probe = probe_spi_rdid,
10661 .probe_timing = TIMING_ZERO,
10662 .block_erasers =
10663 {
10664 {
10665 .eraseblocks = { {4 * 1024, 2048 } },
10666 .block_erase = spi_block_erase_20,
10667 }, {
10668 .eraseblocks = { {64 * 1024, 128} },
10669 .block_erase = spi_block_erase_d8,
10670 }, {
10671 .eraseblocks = { {8 * 1024 * 1024, 1} },
10672 .block_erase = spi_block_erase_c7,
10673 }
10674 },
10675 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10676 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10677 .write = spi_chip_write_256, /* Multi I/O supported */
10678 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10679 .voltage = {2700, 3600},
10680 },
10681
10682 {
10683 .vendor = "Micron/Numonyx/ST",
10684 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10685 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010686 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010687 .model_id = ST_N25Q128__1E,
10688 .total_size = 16384,
10689 .page_size = 256,
10690 /* supports SFDP */
10691 /* OTP: 64B total; read 0x4B, write 0x42 */
10692 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010693 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010694 .probe = probe_spi_rdid,
10695 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010696 .block_erasers =
10697 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010698 {
10699 .eraseblocks = { {4 * 1024, 4096 } },
10700 .block_erase = spi_block_erase_20,
10701 }, {
10702 .eraseblocks = { {64 * 1024, 256} },
10703 .block_erase = spi_block_erase_d8,
10704 }, {
10705 .eraseblocks = { {16384 * 1024, 1} },
10706 .block_erase = spi_block_erase_c7,
10707 }
10708 },
10709 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10710 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10711 .write = spi_chip_write_256, /* Multi I/O supported */
10712 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10713 .voltage = {1700, 2000},
10714 },
10715
10716 {
10717 .vendor = "Micron/Numonyx/ST",
10718 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10719 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010720 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010721 .model_id = ST_N25Q128__3E,
10722 .total_size = 16384,
10723 .page_size = 256,
10724 /* supports SFDP */
10725 /* OTP: 64B total; read 0x4B, write 0x42 */
10726 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10727 .tested = TEST_OK_PREW,
10728 .probe = probe_spi_rdid,
10729 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010730 .block_erasers =
10731 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010732 {
10733 .eraseblocks = { {4 * 1024, 4096 } },
10734 .block_erase = spi_block_erase_20,
10735 }, {
10736 .eraseblocks = { {64 * 1024, 256} },
10737 .block_erase = spi_block_erase_d8,
10738 }, {
10739 .eraseblocks = { {16384 * 1024, 1} },
10740 .block_erase = spi_block_erase_c7,
10741 }
10742 },
10743 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10744 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10745 .write = spi_chip_write_256, /* Multi I/O supported */
10746 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10747 .voltage = {2700, 3600},
10748 },
10749
10750 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010751 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010752 .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10753 .bustype = BUS_SPI,
10754 .manufacture_id = ST_ID,
10755 .model_id = ST_N25Q256__1E,
10756 .total_size = 32768,
10757 .page_size = 256,
10758 /* supports SFDP */
10759 /* OTP: 64B total; read 0x4B, write 0x42 */
10760 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10761 .tested = TEST_UNTESTED,
10762 .probe = probe_spi_rdid,
10763 .probe_timing = TIMING_ZERO,
10764 .block_erasers =
10765 {
10766 {
10767 .eraseblocks = { {4 * 1024, 8192} },
10768 .block_erase = spi_block_erase_21,
10769 }, {
10770 .eraseblocks = { {4 * 1024, 8192} },
10771 .block_erase = spi_block_erase_20,
10772 }, {
10773 .eraseblocks = { {64 * 1024, 512} },
10774 .block_erase = spi_block_erase_dc,
10775 }, {
10776 .eraseblocks = { {64 * 1024, 512} },
10777 .block_erase = spi_block_erase_d8,
10778 }, {
10779 .eraseblocks = { {32768 * 1024, 1} },
10780 .block_erase = spi_block_erase_c7,
10781 }
10782 },
10783 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10784 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10785 .write = spi_chip_write_256, /* Multi I/O supported */
10786 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10787 .voltage = {1700, 2000},
10788 },
10789
10790 {
10791 .vendor = "Micron/Numonyx/ST",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010792 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10793 .bustype = BUS_SPI,
10794 .manufacture_id = ST_ID,
10795 .model_id = ST_N25Q256__3E,
10796 .total_size = 32768,
10797 .page_size = 256,
10798 /* supports SFDP */
10799 /* OTP: 64B total; read 0x4B, write 0x42 */
10800 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10801 .tested = TEST_UNTESTED,
10802 .probe = probe_spi_rdid,
10803 .probe_timing = TIMING_ZERO,
10804 .block_erasers =
10805 {
10806 {
10807 .eraseblocks = { {4 * 1024, 8192} },
10808 .block_erase = spi_block_erase_21,
10809 }, {
10810 .eraseblocks = { {4 * 1024, 8192} },
10811 .block_erase = spi_block_erase_20,
10812 }, {
10813 .eraseblocks = { {64 * 1024, 512} },
10814 .block_erase = spi_block_erase_dc,
10815 }, {
10816 .eraseblocks = { {64 * 1024, 512} },
10817 .block_erase = spi_block_erase_d8,
10818 }, {
10819 .eraseblocks = { {32768 * 1024, 1} },
10820 .block_erase = spi_block_erase_c7,
10821 }
10822 },
10823 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10824 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10825 .write = spi_chip_write_256, /* Multi I/O supported */
10826 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10827 .voltage = {2700, 3600},
10828 },
10829
10830 {
10831 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010832 .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010833 .bustype = BUS_SPI,
10834 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010835 .model_id = ST_N25Q512__1G,
10836 .total_size = 65536,
10837 .page_size = 256,
10838 /* supports SFDP */
10839 /* OTP: 64B total; read 0x4B, write 0x42 */
10840 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10841 .tested = TEST_UNTESTED,
10842 .probe = probe_spi_rdid,
10843 .probe_timing = TIMING_ZERO,
10844 .block_erasers =
10845 {
10846 {
10847 .eraseblocks = { {4 * 1024, 16384} },
10848 .block_erase = spi_block_erase_21,
10849 }, {
10850 .eraseblocks = { {4 * 1024, 16384} },
10851 .block_erase = spi_block_erase_20,
10852 }, {
10853 .eraseblocks = { {64 * 1024, 1024} },
10854 .block_erase = spi_block_erase_dc,
10855 }, {
10856 .eraseblocks = { {64 * 1024, 1024} },
10857 .block_erase = spi_block_erase_d8,
10858 }, {
10859 .eraseblocks = { {32768 * 1024, 2} },
10860 .block_erase = spi_block_erase_c4,
10861 }
10862 },
10863 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10864 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10865 .write = spi_chip_write_256, /* Multi I/O supported */
10866 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10867 .voltage = {1700, 2000},
10868 },
10869
10870 {
10871 .vendor = "Micron/Numonyx/ST",
10872 .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
10873 .bustype = BUS_SPI,
10874 .manufacture_id = ST_ID,
10875 .model_id = ST_N25Q512__3G,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010876 .total_size = 65536,
10877 .page_size = 256,
10878 /* supports SFDP */
10879 /* OTP: 64B total; read 0x4B, write 0x42 */
10880 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10881 .tested = TEST_OK_PREW,
10882 .probe = probe_spi_rdid,
10883 .probe_timing = TIMING_ZERO,
10884 .block_erasers =
10885 {
10886 {
10887 .eraseblocks = { {4 * 1024, 16384} },
10888 .block_erase = spi_block_erase_21,
10889 }, {
10890 .eraseblocks = { {4 * 1024, 16384} },
10891 .block_erase = spi_block_erase_20,
10892 }, {
10893 .eraseblocks = { {64 * 1024, 1024} },
10894 .block_erase = spi_block_erase_dc,
10895 }, {
10896 .eraseblocks = { {64 * 1024, 1024} },
10897 .block_erase = spi_block_erase_d8,
10898 }, {
Jacob Creedone8e7b0e2019-07-22 12:21:22 -070010899 .eraseblocks = { {32768 * 1024, 2} },
10900 .block_erase = spi_block_erase_c4,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010901 }
10902 },
10903 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10904 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10905 .write = spi_chip_write_256, /* Multi I/O supported */
10906 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10907 .voltage = {2700, 3600},
10908 },
10909
10910 {
Ed Swierk199ab392017-07-03 13:33:44 -070010911 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010912 .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
10913 .bustype = BUS_SPI,
10914 .manufacture_id = ST_ID,
10915 .model_id = ST_N25Q00A__3G,
10916 .total_size = 131072,
10917 .page_size = 256,
10918 /* supports SFDP */
10919 /* OTP: 64B total; read 0x4B, write 0x42 */
10920 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10921 .tested = TEST_OK_PREW,
10922 .probe = probe_spi_rdid,
10923 .probe_timing = TIMING_ZERO,
10924 .block_erasers =
10925 {
10926 {
10927 .eraseblocks = { {4 * 1024, 32768} },
10928 .block_erase = spi_block_erase_21,
10929 }, {
10930 .eraseblocks = { {4 * 1024, 32768} },
10931 .block_erase = spi_block_erase_20,
10932 }, {
10933 .eraseblocks = { {32 * 1024, 4096} },
10934 .block_erase = spi_block_erase_5c,
10935 }, {
10936 .eraseblocks = { {32 * 1024, 4096} },
10937 .block_erase = spi_block_erase_52,
10938 }, {
10939 .eraseblocks = { {64 * 1024, 2048} },
10940 .block_erase = spi_block_erase_dc,
10941 }, {
10942 .eraseblocks = { {64 * 1024, 2048} },
10943 .block_erase = spi_block_erase_d8,
10944 }, {
10945 .eraseblocks = { {65536 * 1024, 2} },
10946 .block_erase = spi_block_erase_c4,
10947 }
10948 },
10949 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10950 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10951 .write = spi_chip_write_256, /* Multi I/O supported */
10952 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10953 .voltage = {2700, 3600},
10954 },
10955
10956 {
10957 .vendor = "Micron",
10958 .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
10959 .bustype = BUS_SPI,
10960 .manufacture_id = ST_ID,
10961 .model_id = ST_N25Q00A__1G,
10962 .total_size = 131072,
10963 .page_size = 256,
10964 /* supports SFDP */
10965 /* OTP: 64B total; read 0x4B, write 0x42 */
10966 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10967 .tested = TEST_UNTESTED,
10968 .probe = probe_spi_rdid,
10969 .probe_timing = TIMING_ZERO,
10970 .block_erasers =
10971 {
10972 {
10973 .eraseblocks = { {4 * 1024, 32768} },
10974 .block_erase = spi_block_erase_21,
10975 }, {
10976 .eraseblocks = { {4 * 1024, 32768} },
10977 .block_erase = spi_block_erase_20,
10978 }, {
10979 .eraseblocks = { {32 * 1024, 4096} },
10980 .block_erase = spi_block_erase_5c,
10981 }, {
10982 .eraseblocks = { {32 * 1024, 4096} },
10983 .block_erase = spi_block_erase_52,
10984 }, {
10985 .eraseblocks = { {64 * 1024, 2048} },
10986 .block_erase = spi_block_erase_dc,
10987 }, {
10988 .eraseblocks = { {64 * 1024, 2048} },
10989 .block_erase = spi_block_erase_d8,
10990 }, {
10991 .eraseblocks = { {65536 * 1024, 2} },
10992 .block_erase = spi_block_erase_c4,
10993 }
10994 },
10995 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10996 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10997 .write = spi_chip_write_256, /* Multi I/O supported */
10998 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10999 .voltage = {1700, 2000},
11000 },
11001
11002 {
11003 .vendor = "Micron",
11004 .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11005 .bustype = BUS_SPI,
11006 .manufacture_id = ST_ID,
11007 .model_id = ST_MT25QL02G,
11008 .total_size = 262144,
11009 .page_size = 256,
11010 /* supports SFDP */
11011 /* OTP: 64B total; read 0x4B, write 0x42 */
11012 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11013 .tested = TEST_UNTESTED,
11014 .probe = probe_spi_rdid,
11015 .probe_timing = TIMING_ZERO,
11016 .block_erasers =
11017 {
11018 {
11019 .eraseblocks = { {4 * 1024, 65536} },
11020 .block_erase = spi_block_erase_21,
11021 }, {
11022 .eraseblocks = { {4 * 1024, 65536} },
11023 .block_erase = spi_block_erase_20,
11024 }, {
11025 .eraseblocks = { {32 * 1024, 8192} },
11026 .block_erase = spi_block_erase_5c,
11027 }, {
11028 .eraseblocks = { {32 * 1024, 8192} },
11029 .block_erase = spi_block_erase_52,
11030 }, {
11031 .eraseblocks = { {64 * 1024, 4096} },
11032 .block_erase = spi_block_erase_dc,
11033 }, {
11034 .eraseblocks = { {64 * 1024, 4096} },
11035 .block_erase = spi_block_erase_d8,
11036 }, {
11037 .eraseblocks = { {65536 * 1024, 4} },
11038 .block_erase = spi_block_erase_c4,
11039 }
11040 },
11041 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11042 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11043 .write = spi_chip_write_256, /* Multi I/O supported */
11044 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11045 .voltage = {2700, 3600},
11046 },
11047
11048 {
11049 .vendor = "Micron",
11050 .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11051 .bustype = BUS_SPI,
11052 .manufacture_id = ST_ID,
11053 .model_id = ST_MT25QU02G,
11054 .total_size = 262144,
11055 .page_size = 256,
11056 /* supports SFDP */
11057 /* OTP: 64B total; read 0x4B, write 0x42 */
11058 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11059 .tested = TEST_UNTESTED,
11060 .probe = probe_spi_rdid,
11061 .probe_timing = TIMING_ZERO,
11062 .block_erasers =
11063 {
11064 {
11065 .eraseblocks = { {4 * 1024, 65536} },
11066 .block_erase = spi_block_erase_21,
11067 }, {
11068 .eraseblocks = { {4 * 1024, 65536} },
11069 .block_erase = spi_block_erase_20,
11070 }, {
11071 .eraseblocks = { {32 * 1024, 8192} },
11072 .block_erase = spi_block_erase_5c,
11073 }, {
11074 .eraseblocks = { {32 * 1024, 8192} },
11075 .block_erase = spi_block_erase_52,
11076 }, {
11077 .eraseblocks = { {64 * 1024, 4096} },
11078 .block_erase = spi_block_erase_dc,
11079 }, {
11080 .eraseblocks = { {64 * 1024, 4096} },
11081 .block_erase = spi_block_erase_d8,
11082 }, {
11083 .eraseblocks = { {65536 * 1024, 4} },
11084 .block_erase = spi_block_erase_c4,
11085 }
11086 },
11087 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11088 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11089 .write = spi_chip_write_256, /* Multi I/O supported */
11090 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11091 .voltage = {1700, 2000},
11092 },
11093
11094 {
11095 .vendor = "Micron",
11096 .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11097 .bustype = BUS_SPI,
11098 .manufacture_id = ST_ID,
11099 .model_id = ST_N25Q128__1E,
11100 .total_size = 16384,
11101 .page_size = 256,
11102 /* supports SFDP */
11103 /* OTP: 64B total; read 0x4B, write 0x42 */
11104 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11105 .tested = TEST_UNTESTED,
11106 .probe = probe_spi_rdid,
11107 .probe_timing = TIMING_ZERO,
11108 .block_erasers =
11109 {
11110 {
11111 .eraseblocks = { {4 * 1024, 4096} },
11112 .block_erase = spi_block_erase_20,
11113 }, {
11114 .eraseblocks = { {32 * 1024, 512} },
11115 .block_erase = spi_block_erase_52,
11116 }, {
11117 .eraseblocks = { {64 * 1024, 256} },
11118 .block_erase = spi_block_erase_d8,
11119 }, {
11120 .eraseblocks = { {16384 * 1024, 1} },
11121 .block_erase = spi_block_erase_c7,
11122 }, {
11123 .eraseblocks = { {16384 * 1024, 1} },
11124 .block_erase = spi_block_erase_60,
11125 }
11126 },
11127 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11128 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11129 .write = spi_chip_write_256, /* Multi I/O supported */
11130 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11131 .voltage = {1700, 2000},
11132 },
11133
11134 {
11135 .vendor = "Micron",
11136 .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11137 .bustype = BUS_SPI,
11138 .manufacture_id = ST_ID,
11139 .model_id = ST_N25Q128__3E,
11140 .total_size = 16384,
11141 .page_size = 256,
11142 /* supports SFDP */
11143 /* OTP: 64B total; read 0x4B, write 0x42 */
11144 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11145 .tested = TEST_UNTESTED,
11146 .probe = probe_spi_rdid,
11147 .probe_timing = TIMING_ZERO,
11148 .block_erasers =
11149 {
11150 {
11151 .eraseblocks = { {4 * 1024, 4096} },
11152 .block_erase = spi_block_erase_20,
11153 }, {
11154 .eraseblocks = { {32 * 1024, 512} },
11155 .block_erase = spi_block_erase_52,
11156 }, {
11157 .eraseblocks = { {64 * 1024, 256} },
11158 .block_erase = spi_block_erase_d8,
11159 }, {
11160 .eraseblocks = { {16384 * 1024, 1} },
11161 .block_erase = spi_block_erase_c7,
11162 }, {
11163 .eraseblocks = { {16384 * 1024, 1} },
11164 .block_erase = spi_block_erase_60,
11165 }
11166 },
11167 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11168 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11169 .write = spi_chip_write_256, /* Multi I/O supported */
11170 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11171 .voltage = {2700, 3600},
11172 },
11173
11174 {
11175 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011176 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011177 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011178 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070011179 .model_id = ST_N25Q256__3E,
11180 .total_size = 32768,
11181 .page_size = 256,
11182 /* supports SFDP */
11183 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011184 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11185 .tested = TEST_UNTESTED,
Ed Swierk199ab392017-07-03 13:33:44 -070011186 .probe = probe_spi_rdid,
11187 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011188 .block_erasers =
11189 {
Ed Swierk199ab392017-07-03 13:33:44 -070011190 {
11191 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011192 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011193 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011194 .eraseblocks = { {4 * 1024, 8192} },
11195 .block_erase = spi_block_erase_20,
11196 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011197 .eraseblocks = { {32 * 1024, 1024} },
11198 .block_erase = spi_block_erase_5c,
11199 }, {
11200 .eraseblocks = { {32 * 1024, 1024} },
11201 .block_erase = spi_block_erase_52,
11202 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011203 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011204 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011205 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011206 .eraseblocks = { {64 * 1024, 512} },
11207 .block_erase = spi_block_erase_d8,
11208 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011209 .eraseblocks = { {32768 * 1024, 1} },
11210 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011211 }, {
11212 .eraseblocks = { {32768 * 1024, 1} },
11213 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011214 }
11215 },
11216 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11217 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11218 .write = spi_chip_write_256, /* Multi I/O supported */
11219 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11220 .voltage = {2700, 3600},
11221 },
11222
11223 {
11224 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011225 .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11226 .bustype = BUS_SPI,
11227 .manufacture_id = ST_ID,
11228 .model_id = ST_N25Q256__1E,
11229 .total_size = 32768,
11230 .page_size = 256,
11231 /* supports SFDP */
11232 /* OTP: 64B total; read 0x4B, write 0x42 */
11233 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11234 .tested = TEST_UNTESTED,
11235 .probe = probe_spi_rdid,
11236 .probe_timing = TIMING_ZERO,
11237 .block_erasers =
11238 {
11239 {
11240 .eraseblocks = { {4 * 1024, 8192} },
11241 .block_erase = spi_block_erase_21,
11242 }, {
11243 .eraseblocks = { {4 * 1024, 8192} },
11244 .block_erase = spi_block_erase_20,
11245 }, {
11246 .eraseblocks = { {32 * 1024, 1024} },
11247 .block_erase = spi_block_erase_5c,
11248 }, {
11249 .eraseblocks = { {32 * 1024, 1024} },
11250 .block_erase = spi_block_erase_52,
11251 }, {
11252 .eraseblocks = { {64 * 1024, 512} },
11253 .block_erase = spi_block_erase_dc,
11254 }, {
11255 .eraseblocks = { {64 * 1024, 512} },
11256 .block_erase = spi_block_erase_d8,
11257 }, {
11258 .eraseblocks = { {32768 * 1024, 1} },
11259 .block_erase = spi_block_erase_c7,
11260 }, {
11261 .eraseblocks = { {32768 * 1024, 1} },
11262 .block_erase = spi_block_erase_60,
11263 }
11264 },
11265 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11266 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11267 .write = spi_chip_write_256, /* Multi I/O supported */
11268 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11269 .voltage = {1700, 2000},
11270 },
11271
11272 {
11273 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011274 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011275 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011276 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011277 .model_id = ST_N25Q512__3G,
Ed Swierk199ab392017-07-03 13:33:44 -070011278 .total_size = 65536,
11279 .page_size = 256,
11280 /* supports SFDP */
11281 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011282 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020011283 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011284 .probe = probe_spi_rdid,
11285 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011286 .block_erasers =
11287 {
Ed Swierk199ab392017-07-03 13:33:44 -070011288 {
11289 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011290 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011291 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011292 .eraseblocks = { {4 * 1024, 16384} },
11293 .block_erase = spi_block_erase_20,
11294 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011295 .eraseblocks = { {32 * 1024, 2048} },
11296 .block_erase = spi_block_erase_5c,
11297 }, {
11298 .eraseblocks = { {32 * 1024, 2048} },
11299 .block_erase = spi_block_erase_52,
11300 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011301 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011302 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011303 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011304 .eraseblocks = { {64 * 1024, 1024} },
11305 .block_erase = spi_block_erase_d8,
11306 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011307 .eraseblocks = { {65536 * 1024, 1} },
11308 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011309 }, {
11310 .eraseblocks = { {65536 * 1024, 1} },
11311 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011312 }
11313 },
11314 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11315 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11316 .write = spi_chip_write_256, /* Multi I/O supported */
11317 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11318 .voltage = {2700, 3600},
11319 },
11320
11321 {
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011322 .vendor = "Micron",
11323 .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11324 .bustype = BUS_SPI,
11325 .manufacture_id = ST_ID,
11326 .model_id = ST_N25Q512__1G,
11327 .total_size = 65536,
11328 .page_size = 256,
11329 /* supports SFDP */
11330 /* OTP: 64B total; read 0x4B, write 0x42 */
11331 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11332 .tested = TEST_OK_PREW,
11333 .probe = probe_spi_rdid,
11334 .probe_timing = TIMING_ZERO,
11335 .block_erasers =
11336 {
11337 {
11338 .eraseblocks = { {4 * 1024, 16384} },
11339 .block_erase = spi_block_erase_21,
11340 }, {
11341 .eraseblocks = { {4 * 1024, 16384} },
11342 .block_erase = spi_block_erase_20,
11343 }, {
11344 .eraseblocks = { {32 * 1024, 2048} },
11345 .block_erase = spi_block_erase_5c,
11346 }, {
11347 .eraseblocks = { {32 * 1024, 2048} },
11348 .block_erase = spi_block_erase_52,
11349 }, {
11350 .eraseblocks = { {64 * 1024, 1024} },
11351 .block_erase = spi_block_erase_dc,
11352 }, {
11353 .eraseblocks = { {64 * 1024, 1024} },
11354 .block_erase = spi_block_erase_d8,
11355 }, {
11356 .eraseblocks = { {65536 * 1024, 1} },
11357 .block_erase = spi_block_erase_c7,
11358 }, {
11359 .eraseblocks = { {65536 * 1024, 1} },
11360 .block_erase = spi_block_erase_60,
11361 }
11362 },
11363 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11364 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11365 .write = spi_chip_write_256, /* Multi I/O supported */
11366 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11367 .voltage = {1700, 2000},
11368 },
11369
11370 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011371 .vendor = "MoselVitelic",
11372 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011373 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011374 .manufacture_id = SYNCMOS_MVC_ID,
11375 .model_id = MVC_V29C51000B,
11376 .total_size = 64,
11377 .page_size = 512,
11378 .feature_bits = FEATURE_EITHER_RESET,
11379 .tested = TEST_UNTESTED,
11380 .probe = probe_jedec,
11381 .probe_timing = TIMING_ZERO,
11382 .block_erasers =
11383 {
11384 {
11385 .eraseblocks = { {512, 128} },
11386 .block_erase = erase_sector_jedec,
11387 }, {
11388 .eraseblocks = { {64 * 1024, 1} },
11389 .block_erase = erase_chip_block_jedec,
11390 },
11391 },
11392 .write = write_jedec_1,
11393 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011394 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011395 },
11396
11397 {
11398 .vendor = "MoselVitelic",
11399 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011400 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011401 .manufacture_id = SYNCMOS_MVC_ID,
11402 .model_id = MVC_V29C51000T,
11403 .total_size = 64,
11404 .page_size = 512,
11405 .feature_bits = FEATURE_EITHER_RESET,
11406 .tested = TEST_UNTESTED,
11407 .probe = probe_jedec,
11408 .probe_timing = TIMING_ZERO,
11409 .block_erasers =
11410 {
11411 {
11412 .eraseblocks = { {512, 128} },
11413 .block_erase = erase_sector_jedec,
11414 }, {
11415 .eraseblocks = { {64 * 1024, 1} },
11416 .block_erase = erase_chip_block_jedec,
11417 },
11418 },
11419 .write = write_jedec_1,
11420 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011421 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011422 },
11423
11424 {
11425 .vendor = "MoselVitelic",
11426 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011427 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011428 .manufacture_id = SYNCMOS_MVC_ID,
11429 .model_id = MVC_V29C51400B,
11430 .total_size = 512,
11431 .page_size = 1024,
11432 .feature_bits = FEATURE_EITHER_RESET,
11433 .tested = TEST_UNTESTED,
11434 .probe = probe_jedec,
11435 .probe_timing = TIMING_ZERO,
11436 .block_erasers =
11437 {
11438 {
11439 .eraseblocks = { {1024, 512} },
11440 .block_erase = erase_sector_jedec,
11441 }, {
11442 .eraseblocks = { {512 * 1024, 1} },
11443 .block_erase = erase_chip_block_jedec,
11444 },
11445 },
11446 .write = write_jedec_1,
11447 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011448 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011449 },
11450
11451 {
11452 .vendor = "MoselVitelic",
11453 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011454 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011455 .manufacture_id = SYNCMOS_MVC_ID,
11456 .model_id = MVC_V29C51400T,
11457 .total_size = 512,
11458 .page_size = 1024,
11459 .feature_bits = FEATURE_EITHER_RESET,
11460 .tested = TEST_UNTESTED,
11461 .probe = probe_jedec,
11462 .probe_timing = TIMING_ZERO,
11463 .block_erasers =
11464 {
11465 {
11466 .eraseblocks = { {1024, 512} },
11467 .block_erase = erase_sector_jedec,
11468 }, {
11469 .eraseblocks = { {512 * 1024, 1} },
11470 .block_erase = erase_chip_block_jedec,
11471 },
11472 },
11473 .write = write_jedec_1,
11474 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011475 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011476 },
11477
11478 {
11479 .vendor = "MoselVitelic",
11480 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011481 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011482 .manufacture_id = SYNCMOS_MVC_ID,
11483 .model_id = MVC_V29LC51000,
11484 .total_size = 64,
11485 .page_size = 512,
11486 .feature_bits = FEATURE_EITHER_RESET,
11487 .tested = TEST_UNTESTED,
11488 .probe = probe_jedec,
11489 .probe_timing = TIMING_ZERO,
11490 .block_erasers =
11491 {
11492 {
11493 .eraseblocks = { {512, 128} },
11494 .block_erase = erase_sector_jedec,
11495 }, {
11496 .eraseblocks = { {64 * 1024, 1} },
11497 .block_erase = erase_chip_block_jedec,
11498 },
11499 },
11500 .write = write_jedec_1,
11501 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011502 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011503 },
11504
11505 {
11506 .vendor = "MoselVitelic",
11507 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011508 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011509 .manufacture_id = SYNCMOS_MVC_ID,
11510 .model_id = MVC_V29LC51001,
11511 .total_size = 128,
11512 .page_size = 512,
11513 .feature_bits = FEATURE_EITHER_RESET,
11514 .tested = TEST_UNTESTED,
11515 .probe = probe_jedec,
11516 .probe_timing = TIMING_ZERO,
11517 .block_erasers =
11518 {
11519 {
11520 .eraseblocks = { {512, 256} },
11521 .block_erase = erase_sector_jedec,
11522 }, {
11523 .eraseblocks = { {128 * 1024, 1} },
11524 .block_erase = erase_chip_block_jedec,
11525 },
11526 },
11527 .write = write_jedec_1,
11528 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011529 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011530 },
11531
11532 {
11533 .vendor = "MoselVitelic",
11534 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011535 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011536 .manufacture_id = SYNCMOS_MVC_ID,
11537 .model_id = MVC_V29LC51002,
11538 .total_size = 256,
11539 .page_size = 512,
11540 .feature_bits = FEATURE_EITHER_RESET,
11541 .tested = TEST_UNTESTED,
11542 .probe = probe_jedec,
11543 .probe_timing = TIMING_ZERO,
11544 .block_erasers =
11545 {
11546 {
11547 .eraseblocks = { {512, 512} },
11548 .block_erase = erase_sector_jedec,
11549 }, {
11550 .eraseblocks = { {256 * 1024, 1} },
11551 .block_erase = erase_chip_block_jedec,
11552 },
11553 },
11554 .write = write_jedec_1,
11555 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011556 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011557 },
11558
11559 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011560 .vendor = "Nantronics",
11561 .name = "N25S10",
11562 .bustype = BUS_SPI,
11563 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11564 .model_id = NANTRONICS_N25S10,
11565 .total_size = 128,
11566 .page_size = 256,
11567 .feature_bits = FEATURE_WRSR_WREN,
11568 .tested = TEST_UNTESTED,
11569 .probe = probe_spi_rdid,
11570 .probe_timing = TIMING_ZERO,
11571 .block_erasers =
11572 {
11573 {
11574 .eraseblocks = { {4 * 1024, 32} },
11575 .block_erase = spi_block_erase_20,
11576 }, {
11577 .eraseblocks = { {4 * 1024, 32} },
11578 .block_erase = spi_block_erase_d7,
11579 }, {
11580 .eraseblocks = { {32 * 1024, 4} },
11581 .block_erase = spi_block_erase_52,
11582 }, {
11583 .eraseblocks = { {64 * 1024, 2} },
11584 .block_erase = spi_block_erase_d8,
11585 }, {
11586 .eraseblocks = { {128 * 1024, 1} },
11587 .block_erase = spi_block_erase_60,
11588 }, {
11589 .eraseblocks = { {128 * 1024, 1} },
11590 .block_erase = spi_block_erase_c7,
11591 }
11592 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011593 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011594 .unlock = spi_disable_blockprotect_bp3_srwd,
11595 .write = spi_chip_write_256,
11596 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11597 .voltage = {2700, 3600},
11598 },
11599
11600 {
11601 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011602 .name = "N25S16",
11603 .bustype = BUS_SPI,
11604 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11605 .model_id = NANTRONICS_N25S16,
11606 .total_size = 2048,
11607 .page_size = 256,
11608 .feature_bits = FEATURE_WRSR_WREN,
11609 .tested = TEST_UNTESTED,
11610 .probe = probe_spi_rdid,
11611 .probe_timing = TIMING_ZERO,
11612 .block_erasers =
11613 {
11614 {
11615 .eraseblocks = { {4 * 1024, 512} },
11616 .block_erase = spi_block_erase_20,
11617 }, {
11618 .eraseblocks = { {64 * 1024, 32} },
11619 .block_erase = spi_block_erase_d8,
11620 }, {
11621 .eraseblocks = { {2048 * 1024, 1} },
11622 .block_erase = spi_block_erase_60,
11623 }, {
11624 .eraseblocks = { {2048 * 1024, 1} },
11625 .block_erase = spi_block_erase_c7,
11626 }
11627 },
11628 .printlock = spi_prettyprint_status_register_bp3_srwd,
11629 .unlock = spi_disable_blockprotect_bp3_srwd,
11630 .write = spi_chip_write_256,
11631 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11632 .voltage = {2700, 3600},
11633 },
11634
11635 {
11636 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011637 .name = "N25S20",
11638 .bustype = BUS_SPI,
11639 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11640 .model_id = NANTRONICS_N25S20,
11641 .total_size = 256,
11642 .page_size = 256,
11643 .feature_bits = FEATURE_WRSR_WREN,
11644 .tested = TEST_UNTESTED,
11645 .probe = probe_spi_rdid,
11646 .probe_timing = TIMING_ZERO,
11647 .block_erasers =
11648 {
11649 {
11650 .eraseblocks = { {4 * 1024, 64} },
11651 .block_erase = spi_block_erase_20,
11652 }, {
11653 .eraseblocks = { {4 * 1024, 64} },
11654 .block_erase = spi_block_erase_d7,
11655 }, {
11656 .eraseblocks = { {32 * 1024, 8} },
11657 .block_erase = spi_block_erase_52,
11658 }, {
11659 .eraseblocks = { {64 * 1024, 4} },
11660 .block_erase = spi_block_erase_d8,
11661 }, {
11662 .eraseblocks = { {256 * 1024, 1} },
11663 .block_erase = spi_block_erase_60,
11664 }, {
11665 .eraseblocks = { {256 * 1024, 1} },
11666 .block_erase = spi_block_erase_c7,
11667 }
11668 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011669 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011670 .unlock = spi_disable_blockprotect_bp3_srwd,
11671 .write = spi_chip_write_256,
11672 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11673 .voltage = {2700, 3600},
11674 },
11675
11676 {
11677 .vendor = "Nantronics",
11678 .name = "N25S40",
11679 .bustype = BUS_SPI,
11680 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11681 .model_id = NANTRONICS_N25S40,
11682 .total_size = 512,
11683 .page_size = 256,
11684 .feature_bits = FEATURE_WRSR_WREN,
11685 .tested = TEST_UNTESTED,
11686 .probe = probe_spi_rdid,
11687 .probe_timing = TIMING_ZERO,
11688 .block_erasers =
11689 {
11690 {
11691 .eraseblocks = { {4 * 1024, 128} },
11692 .block_erase = spi_block_erase_20,
11693 }, {
11694 .eraseblocks = { {4 * 1024, 128} },
11695 .block_erase = spi_block_erase_d7,
11696 }, {
11697 .eraseblocks = { {32 * 1024, 16} },
11698 .block_erase = spi_block_erase_52,
11699 }, {
11700 .eraseblocks = { {64 * 1024, 8} },
11701 .block_erase = spi_block_erase_d8,
11702 }, {
11703 .eraseblocks = { {512 * 1024, 1} },
11704 .block_erase = spi_block_erase_60,
11705 }, {
11706 .eraseblocks = { {512 * 1024, 1} },
11707 .block_erase = spi_block_erase_c7,
11708 }
11709 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011710 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011711 .unlock = spi_disable_blockprotect_bp3_srwd,
11712 .write = spi_chip_write_256,
11713 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11714 .voltage = {2700, 3600},
11715 },
11716
11717 {
11718 .vendor = "Nantronics",
11719 .name = "N25S80",
11720 .bustype = BUS_SPI,
11721 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11722 .model_id = NANTRONICS_N25S80,
11723 .total_size = 1024,
11724 .page_size = 256,
11725 .feature_bits = FEATURE_WRSR_WREN,
11726 .tested = TEST_UNTESTED,
11727 .probe = probe_spi_rdid,
11728 .probe_timing = TIMING_ZERO,
11729 .block_erasers =
11730 {
11731 {
11732 .eraseblocks = { {4 * 1024, 256} },
11733 .block_erase = spi_block_erase_20,
11734 }, {
11735 .eraseblocks = { {32 * 1024, 32} },
11736 .block_erase = spi_block_erase_52,
11737 }, {
11738 .eraseblocks = { {64 * 1024, 16} },
11739 .block_erase = spi_block_erase_d8,
11740 }, {
11741 .eraseblocks = { {1024 * 1024, 1} },
11742 .block_erase = spi_block_erase_60,
11743 }, {
11744 .eraseblocks = { {1024 * 1024, 1} },
11745 .block_erase = spi_block_erase_c7,
11746 }
11747 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011748 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011749 .unlock = spi_disable_blockprotect_bp3_srwd,
11750 .write = spi_chip_write_256,
11751 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11752 .voltage = {2700, 3600},
11753 },
11754
11755 {
Stefan Taunerf4451612013-04-19 01:59:15 +000011756 .vendor = "PMC",
11757 .name = "Pm25LD010(C)",
11758 .bustype = BUS_SPI,
11759 .manufacture_id = PMC_ID,
11760 .model_id = PMC_PM25LD010,
11761 .total_size = 128,
11762 .page_size = 256,
11763 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011764 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000011765 .probe = probe_spi_rdid,
11766 .probe_timing = TIMING_ZERO,
11767 .block_erasers =
11768 {
11769 {
11770 .eraseblocks = { {4 * 1024, 32} },
11771 .block_erase = spi_block_erase_20,
11772 }, {
11773 .eraseblocks = { {4 * 1024, 32} },
11774 .block_erase = spi_block_erase_d7,
11775 }, {
11776 .eraseblocks = { {32 * 1024, 4} },
11777 .block_erase = spi_block_erase_d8,
11778 }, {
11779 .eraseblocks = { {128 * 1024, 1} },
11780 .block_erase = spi_block_erase_60,
11781 }, {
11782 .eraseblocks = { {128 * 1024, 1} },
11783 .block_erase = spi_block_erase_c7,
11784 }
11785 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011786 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011787 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
11788 .write = spi_chip_write_256,
11789 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11790 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
11791 },
11792
11793 {
11794 .vendor = "PMC",
11795 .name = "Pm25LD020(C)",
11796 .bustype = BUS_SPI,
11797 .manufacture_id = PMC_ID,
11798 .model_id = PMC_PM25LD020,
11799 .total_size = 256,
11800 .page_size = 256,
11801 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020011802 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000011803 .probe = probe_spi_rdid,
11804 .probe_timing = TIMING_ZERO,
11805 .block_erasers =
11806 {
11807 {
11808 .eraseblocks = { {4 * 1024, 64} },
11809 .block_erase = spi_block_erase_20,
11810 }, {
11811 .eraseblocks = { {4 * 1024, 64} },
11812 .block_erase = spi_block_erase_d7,
11813 }, {
11814 .eraseblocks = { {64 * 1024, 4} },
11815 .block_erase = spi_block_erase_d8,
11816 }, {
11817 .eraseblocks = { {256 * 1024, 1} },
11818 .block_erase = spi_block_erase_60,
11819 }, {
11820 .eraseblocks = { {256 * 1024, 1} },
11821 .block_erase = spi_block_erase_c7,
11822 }
11823 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011824 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011825 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
11826 .write = spi_chip_write_256,
11827 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11828 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
11829 },
11830
11831 {
11832 .vendor = "PMC",
11833 .name = "Pm25LD040(C)",
11834 .bustype = BUS_SPI,
11835 .manufacture_id = PMC_ID,
11836 .model_id = PMC_PM25LV040,
11837 .total_size = 512,
11838 .page_size = 256,
11839 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020011840 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000011841 .probe = probe_spi_rdid,
11842 .probe_timing = TIMING_ZERO,
11843 .block_erasers =
11844 {
11845 {
11846 .eraseblocks = { {4 * 1024, 128} },
11847 .block_erase = spi_block_erase_20,
11848 }, {
11849 .eraseblocks = { {4 * 1024, 128} },
11850 .block_erase = spi_block_erase_d7,
11851 }, {
11852 .eraseblocks = { {64 * 1024, 8} },
11853 .block_erase = spi_block_erase_d8,
11854 }, {
11855 .eraseblocks = { {512 * 1024, 1} },
11856 .block_erase = spi_block_erase_60,
11857 }, {
11858 .eraseblocks = { {512 * 1024, 1} },
11859 .block_erase = spi_block_erase_c7,
11860 }
11861 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011862 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011863 .unlock = spi_disable_blockprotect,
11864 .write = spi_chip_write_256,
11865 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11866 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
11867 },
11868
Steven Honeyman81a8fb72015-06-02 22:32:24 +000011869 {
11870 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011871 .name = "Pm25LD256C",
11872 .bustype = BUS_SPI,
11873 .manufacture_id = PMC_ID,
11874 .model_id = PMC_PM25LD256C,
11875 .total_size = 32,
11876 .page_size = 256,
11877 .feature_bits = FEATURE_WRSR_WREN,
11878 .tested = TEST_UNTESTED,
11879 .probe = probe_spi_rdid,
11880 .probe_timing = TIMING_ZERO,
11881 .block_erasers =
11882 {
11883 {
11884 .eraseblocks = { {4 * 1024, 8} },
11885 .block_erase = spi_block_erase_20,
11886 }, {
11887 .eraseblocks = { {4 * 1024, 8} },
11888 .block_erase = spi_block_erase_d7,
11889 }, {
11890 .eraseblocks = { {32 * 1024, 1} },
11891 .block_erase = spi_block_erase_d8,
11892 }, {
11893 .eraseblocks = { {32 * 1024, 1} },
11894 .block_erase = spi_block_erase_60,
11895 }, {
11896 .eraseblocks = { {32 * 1024, 1} },
11897 .block_erase = spi_block_erase_c7,
11898 }
11899 },
11900 .printlock = spi_prettyprint_status_register_bp2_srwd,
11901 .unlock = spi_disable_blockprotect,
11902 .write = spi_chip_write_256,
11903 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11904 .voltage = {2700, 3600},
11905 },
11906
11907 {
11908 .vendor = "PMC",
11909 .name = "Pm25LD512(C)",
11910 .bustype = BUS_SPI,
11911 .manufacture_id = PMC_ID,
11912 .model_id = PMC_PM25LD512,
11913 .total_size = 64,
11914 .page_size = 256,
11915 .feature_bits = FEATURE_WRSR_WREN,
11916 .tested = TEST_OK_PREW,
11917 .probe = probe_spi_rdid,
11918 .probe_timing = TIMING_ZERO,
11919 .block_erasers =
11920 {
11921 {
11922 .eraseblocks = { {4 * 1024, 16} },
11923 .block_erase = spi_block_erase_20,
11924 }, {
11925 .eraseblocks = { {4 * 1024, 16} },
11926 .block_erase = spi_block_erase_d7,
11927 }, {
11928 .eraseblocks = { {32 * 1024, 2} },
11929 .block_erase = spi_block_erase_d8,
11930 }, {
11931 .eraseblocks = { {64 * 1024, 1} },
11932 .block_erase = spi_block_erase_60,
11933 }, {
11934 .eraseblocks = { {64 * 1024, 1} },
11935 .block_erase = spi_block_erase_c7,
11936 }
11937 },
11938 .printlock = spi_prettyprint_status_register_bp2_srwd,
11939 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
11940 .write = spi_chip_write_256,
11941 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11942 .voltage = {2300, 3600},
11943 },
11944
11945 {
11946 .vendor = "PMC",
11947 .name = "Pm25LQ016",
11948 .bustype = BUS_SPI,
11949 .manufacture_id = PMC_ID,
11950 .model_id = PMC_PM25LQ016,
11951 .total_size = 2048,
11952 .page_size = 256,
11953 /* OTP: 256B total; read 0x4B, write 0xB1 */
11954 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11955 .tested = TEST_UNTESTED,
11956 .probe = probe_spi_rdid,
11957 .probe_timing = TIMING_ZERO,
11958 .block_erasers =
11959 {
11960 {
11961 .eraseblocks = { {4 * 1024, 512} },
11962 .block_erase = spi_block_erase_20,
11963 }, {
11964 .eraseblocks = { {4 * 1024, 512} },
11965 .block_erase = spi_block_erase_d7,
11966 }, {
11967 .eraseblocks = { {64 * 1024, 32} },
11968 .block_erase = spi_block_erase_d8,
11969 }, {
11970 .eraseblocks = { {2048 * 1024, 1} },
11971 .block_erase = spi_block_erase_60,
11972 }, {
11973 .eraseblocks = { {2048 * 1024, 1} },
11974 .block_erase = spi_block_erase_c7,
11975 }
11976 },
11977 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11978 .unlock = spi_disable_blockprotect_bp3_srwd,
11979 .write = spi_chip_write_256,
11980 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11981 .voltage = {2300, 3600},
11982 },
11983
11984 {
11985 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000011986 .name = "Pm25LQ020",
11987 .bustype = BUS_SPI,
11988 .manufacture_id = PMC_ID,
11989 .model_id = PMC_PM25LQ020,
11990 .total_size = 256,
11991 .page_size = 256,
11992 /* OTP: 256B total; read 0x4B, write 0xB1 */
11993 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11994 .tested = TEST_UNTESTED,
11995 .probe = probe_spi_rdid,
11996 .probe_timing = TIMING_ZERO,
11997 .block_erasers =
11998 {
11999 {
12000 .eraseblocks = { {4 * 1024, 64} },
12001 .block_erase = spi_block_erase_20,
12002 }, {
12003 .eraseblocks = { {4 * 1024, 64} },
12004 .block_erase = spi_block_erase_d7,
12005 }, {
12006 .eraseblocks = { {64 * 1024, 4} },
12007 .block_erase = spi_block_erase_d8,
12008 }, {
12009 .eraseblocks = { {256 * 1024, 1} },
12010 .block_erase = spi_block_erase_60,
12011 }, {
12012 .eraseblocks = { {256 * 1024, 1} },
12013 .block_erase = spi_block_erase_c7,
12014 }
12015 },
12016 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12017 .unlock = spi_disable_blockprotect_bp3_srwd,
12018 .write = spi_chip_write_256,
12019 .read = spi_chip_read,
12020 .voltage = {2300, 3600},
12021 },
12022
12023 {
12024 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012025 .name = "Pm25LQ032C",
12026 .bustype = BUS_SPI,
12027 .manufacture_id = PMC_ID,
12028 .model_id = PMC_PM25LQ032C,
12029 .total_size = 4096,
12030 .page_size = 256,
12031 /* OTP: 64B total; read 0x4B, write 0xB1 */
12032 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12033 .tested = TEST_OK_PREW,
12034 .probe = probe_spi_rdid,
12035 .probe_timing = TIMING_ZERO,
12036 .block_erasers =
12037 {
12038 {
12039 .eraseblocks = { {4 * 1024, 1024} },
12040 .block_erase = spi_block_erase_20,
12041 }, {
12042 .eraseblocks = { {4 * 1024, 1024} },
12043 .block_erase = spi_block_erase_d7,
12044 }, {
12045 .eraseblocks = { {64 * 1024, 64} },
12046 .block_erase = spi_block_erase_d8,
12047 }, {
12048 .eraseblocks = { {4096 * 1024, 1} },
12049 .block_erase = spi_block_erase_60,
12050 }, {
12051 .eraseblocks = { {4096 * 1024, 1} },
12052 .block_erase = spi_block_erase_c7,
12053 }
12054 },
12055 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12056 .unlock = spi_disable_blockprotect_bp3_srwd,
12057 .write = spi_chip_write_256,
12058 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12059 .voltage = {2700, 3600},
12060 },
12061
12062 {
12063 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012064 .name = "Pm25LQ040",
12065 .bustype = BUS_SPI,
12066 .manufacture_id = PMC_ID,
12067 .model_id = PMC_PM25LQ040,
12068 .total_size = 512,
12069 .page_size = 256,
12070 /* OTP: 256B total; read 0x4B, write 0xB1 */
12071 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12072 .tested = TEST_UNTESTED,
12073 .probe = probe_spi_rdid,
12074 .probe_timing = TIMING_ZERO,
12075 .block_erasers =
12076 {
12077 {
12078 .eraseblocks = { {4 * 1024, 128} },
12079 .block_erase = spi_block_erase_20,
12080 }, {
12081 .eraseblocks = { {4 * 1024, 128} },
12082 .block_erase = spi_block_erase_d7,
12083 }, {
12084 .eraseblocks = { {64 * 1024, 8} },
12085 .block_erase = spi_block_erase_d8,
12086 }, {
12087 .eraseblocks = { {512 * 1024, 1} },
12088 .block_erase = spi_block_erase_60,
12089 }, {
12090 .eraseblocks = { {512 * 1024, 1} },
12091 .block_erase = spi_block_erase_c7,
12092 }
12093 },
12094 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12095 .unlock = spi_disable_blockprotect_bp3_srwd,
12096 .write = spi_chip_write_256,
12097 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12098 .voltage = {2300, 3600},
12099 },
12100
12101 {
12102 .vendor = "PMC",
12103 .name = "Pm25LQ080",
12104 .bustype = BUS_SPI,
12105 .manufacture_id = PMC_ID,
12106 .model_id = PMC_PM25LQ080,
12107 .total_size = 1024,
12108 .page_size = 256,
12109 /* OTP: 64B total; read 0x4B, write 0xB1 */
12110 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12111 .tested = TEST_UNTESTED,
12112 .probe = probe_spi_rdid,
12113 .probe_timing = TIMING_ZERO,
12114 .block_erasers =
12115 {
12116 {
12117 .eraseblocks = { {4 * 1024, 256} },
12118 .block_erase = spi_block_erase_20,
12119 }, {
12120 .eraseblocks = { {4 * 1024, 256} },
12121 .block_erase = spi_block_erase_d7,
12122 }, {
12123 .eraseblocks = { {64 * 1024, 16} },
12124 .block_erase = spi_block_erase_d8,
12125 }, {
12126 .eraseblocks = { {1024 * 1024, 1} },
12127 .block_erase = spi_block_erase_60,
12128 }, {
12129 .eraseblocks = { {1024 * 1024, 1} },
12130 .block_erase = spi_block_erase_c7,
12131 }
12132 },
12133 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12134 .unlock = spi_disable_blockprotect_bp3_srwd,
12135 .write = spi_chip_write_256,
12136 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12137 .voltage = {2300, 3600},
12138 },
12139
12140 {
12141 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012142 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012143 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000012144 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012145 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012146 .total_size = 128,
12147 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012148 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000012149 .tested = TEST_OK_PREW,
12150 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012151 .probe_timing = TIMING_ZERO,
12152 .block_erasers =
12153 {
12154 {
12155 .eraseblocks = { {4 * 1024, 32} },
12156 .block_erase = spi_block_erase_d7,
12157 }, {
12158 .eraseblocks = { {32 * 1024, 4} },
12159 .block_erase = spi_block_erase_d8,
12160 }, {
12161 .eraseblocks = { {128 * 1024, 1} },
12162 .block_erase = spi_block_erase_c7,
12163 }
12164 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012165 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012166 .unlock = spi_disable_blockprotect,
12167 .write = spi_chip_write_256,
12168 .read = spi_chip_read, /* Fast read (0x0B) supported */
12169 .voltage = {2700, 3600},
12170 },
12171
12172 {
12173 .vendor = "PMC",
12174 .name = "Pm25LV010A",
12175 .bustype = BUS_SPI,
12176 .manufacture_id = PMC_ID,
12177 .model_id = PMC_PM25LV010,
12178 .total_size = 128,
12179 .page_size = 256,
12180 .feature_bits = FEATURE_WRSR_WREN,
12181 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012182 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012183 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012184 .block_erasers =
12185 {
12186 {
12187 .eraseblocks = { {4 * 1024, 32} },
12188 .block_erase = spi_block_erase_d7,
12189 }, {
12190 .eraseblocks = { {32 * 1024, 4} },
12191 .block_erase = spi_block_erase_d8,
12192 }, {
12193 .eraseblocks = { {128 * 1024, 1} },
12194 .block_erase = spi_block_erase_c7,
12195 }
12196 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012197 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012198 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012199 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012200 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012201 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012202 },
12203
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012204 {
12205 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012206 .name = "Pm25LV016B",
12207 .bustype = BUS_SPI,
12208 .manufacture_id = PMC_ID,
12209 .model_id = PMC_PM25LV016B,
12210 .total_size = 2048,
12211 .page_size = 256,
12212 .feature_bits = FEATURE_WRSR_WREN,
12213 .tested = TEST_UNTESTED,
12214 .probe = probe_spi_rdid,
12215 .probe_timing = TIMING_ZERO,
12216 .block_erasers =
12217 {
12218 {
12219 .eraseblocks = { {4 * 1024, 512} },
12220 .block_erase = spi_block_erase_d7,
12221 }, {
12222 .eraseblocks = { {4 * 1024, 512} },
12223 .block_erase = spi_block_erase_20,
12224 }, {
12225 .eraseblocks = { {64 * 1024, 32} },
12226 .block_erase = spi_block_erase_d8,
12227 }, {
12228 .eraseblocks = { {2 * 1024 * 1024, 1} },
12229 .block_erase = spi_block_erase_60,
12230 }, {
12231 .eraseblocks = { {2 * 1024 * 1024, 1} },
12232 .block_erase = spi_block_erase_c7,
12233 }
12234 },
12235 .printlock = spi_prettyprint_status_register_bp2_srwd,
12236 .unlock = spi_disable_blockprotect,
12237 .write = spi_chip_write_256,
12238 .read = spi_chip_read, /* Fast read (0x0B) supported */
12239 .voltage = {2700, 3600},
12240 },
12241
12242 {
12243 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012244 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012245 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012246 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012247 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012248 .total_size = 256,
12249 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012250 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012251 .tested = TEST_UNTESTED,
12252 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012253 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012254 .block_erasers =
12255 {
12256 {
12257 .eraseblocks = { {4 * 1024, 64} },
12258 .block_erase = spi_block_erase_d7,
12259 }, {
12260 .eraseblocks = { {64 * 1024, 4} },
12261 .block_erase = spi_block_erase_d8,
12262 }, {
12263 .eraseblocks = { {256 * 1024, 1} },
12264 .block_erase = spi_block_erase_c7,
12265 }
12266 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012267 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012268 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012269 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012270 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012271 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012272 },
12273
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012274 {
12275 .vendor = "PMC",
12276 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012277 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012278 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012279 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012280 .total_size = 512,
12281 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012282 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000012283 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012284 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012285 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012286 .block_erasers =
12287 {
12288 {
12289 .eraseblocks = { {4 * 1024, 128} },
12290 .block_erase = spi_block_erase_d7,
12291 }, {
12292 .eraseblocks = { {64 * 1024, 8} },
12293 .block_erase = spi_block_erase_d8,
12294 }, {
12295 .eraseblocks = { {512 * 1024, 1} },
12296 .block_erase = spi_block_erase_c7,
12297 }
12298 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012299 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012300 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012301 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012302 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012303 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012304 },
12305
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012306 {
12307 .vendor = "PMC",
12308 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012309 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012310 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012311 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012312 .total_size = 1024,
12313 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012314 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012315 .tested = TEST_UNTESTED,
12316 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012317 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012318 .block_erasers =
12319 {
12320 {
12321 .eraseblocks = { {4 * 1024, 256} },
12322 .block_erase = spi_block_erase_d7,
12323 }, {
12324 .eraseblocks = { {4 * 1024, 256} },
12325 .block_erase = spi_block_erase_20,
12326 }, {
12327 .eraseblocks = { {64 * 1024, 16} },
12328 .block_erase = spi_block_erase_d8,
12329 }, {
12330 .eraseblocks = { {1024 * 1024, 1} },
12331 .block_erase = spi_block_erase_60,
12332 }, {
12333 .eraseblocks = { {1024 * 1024, 1} },
12334 .block_erase = spi_block_erase_c7,
12335 }
12336 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012337 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012338 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012339 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012340 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012341 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012342 },
12343
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012344 {
12345 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012346 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012347 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012348 .manufacture_id = PMC_ID_NOPREFIX,
12349 .model_id = PMC_PM25LV512,
12350 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012351 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012352 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012353 .tested = TEST_OK_PREW,
12354 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012355 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012356 .block_erasers =
12357 {
12358 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012359 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000012360 .block_erase = spi_block_erase_d7,
12361 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012362 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000012363 .block_erase = spi_block_erase_d8,
12364 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012365 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000012366 .block_erase = spi_block_erase_c7,
12367 }
12368 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100012369 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012370 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012371 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012372 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012373 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012374 },
12375
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012376 {
12377 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000012378 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012379 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012380 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012381 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012382 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000012383 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012384 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012385 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012386 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000012387 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000012388 .block_erasers =
12389 {
12390 {
12391 .eraseblocks = {
12392 {16 * 1024, 1},
12393 {8 * 1024, 2},
12394 {96 * 1024, 1},
12395 {128 * 1024, 1},
12396 },
Sean Nelson35727f72010-01-28 23:55:12 +000012397 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012398 }, {
12399 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000012400 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012401 },
12402 },
Sean Nelson35727f72010-01-28 23:55:12 +000012403 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012404 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012405 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012406 },
12407
12408 {
12409 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012410 .name = "Pm29F002T",
12411 .bustype = BUS_PARALLEL,
12412 .manufacture_id = PMC_ID_NOPREFIX,
12413 .model_id = PMC_PM29F002T,
12414 .total_size = 256,
12415 .page_size = 8 * 1024,
12416 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12417 .tested = TEST_OK_PREW,
12418 .probe = probe_jedec,
12419 .probe_timing = TIMING_FIXME,
12420 .block_erasers =
12421 {
12422 {
12423 .eraseblocks = {
12424 {128 * 1024, 1},
12425 {96 * 1024, 1},
12426 {8 * 1024, 2},
12427 {16 * 1024, 1},
12428 },
12429 .block_erase = erase_sector_jedec,
12430 }, {
12431 .eraseblocks = { {256 * 1024, 1} },
12432 .block_erase = erase_chip_block_jedec,
12433 },
12434 },
12435 .write = write_jedec_1,
12436 .read = read_memmapped,
12437 .voltage = {4500, 5500},
12438 },
12439
12440 {
12441 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012442 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012443 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012444 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012445 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012446 .total_size = 128,
12447 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012448 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012449 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012450 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012451 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000012452 .block_erasers =
12453 {
12454 {
12455 .eraseblocks = { {4 * 1024, 32} },
12456 .block_erase = erase_sector_jedec,
12457 }, {
12458 .eraseblocks = { {64 * 1024, 2} },
12459 .block_erase = erase_block_jedec,
12460 }, {
12461 .eraseblocks = { {128 * 1024, 1} },
12462 .block_erase = erase_chip_block_jedec,
12463 }
12464 },
Sean Nelson35727f72010-01-28 23:55:12 +000012465 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012466 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012467 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012468 },
12469
12470 {
12471 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012472 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012473 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012474 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012475 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012476 .total_size = 256,
12477 .page_size = 4096,
12478 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12479 .tested = TEST_UNTESTED,
12480 .probe = probe_jedec,
12481 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100012482 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012483 {
12484 {
12485 .eraseblocks = { {4 * 1024, 64} },
12486 .block_erase = erase_sector_jedec,
12487 }, {
12488 .eraseblocks = { {64 * 1024, 4} },
12489 .block_erase = erase_block_jedec,
12490 }, {
12491 .eraseblocks = { {256 * 1024, 1} },
12492 .block_erase = erase_chip_block_jedec,
12493 }
12494 },
12495 .write = write_jedec_1,
12496 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012497 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012498 },
12499
12500 {
12501 .vendor = "PMC",
12502 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012503 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012504 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012505 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012506 .total_size = 512,
12507 .page_size = 4096,
12508 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012509 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012510 .probe = probe_jedec,
12511 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100012512 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012513 {
12514 {
12515 .eraseblocks = { {4 * 1024, 128} },
12516 .block_erase = erase_sector_jedec,
12517 }, {
12518 .eraseblocks = { {64 * 1024, 8} },
12519 .block_erase = erase_block_jedec,
12520 }, {
12521 .eraseblocks = { {512 * 1024, 1} },
12522 .block_erase = erase_chip_block_jedec,
12523 }
12524 },
12525 .write = write_jedec_1,
12526 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012527 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012528 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000012529
12530 {
12531 .vendor = "PMC",
12532 .name = "Pm39LV512",
12533 .bustype = BUS_PARALLEL,
12534 .manufacture_id = PMC_ID_NOPREFIX,
12535 .model_id = PMC_PM39LV512,
12536 .total_size = 64,
12537 .page_size = 4096,
12538 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12539 .tested = TEST_OK_PREW,
12540 .probe = probe_jedec,
12541 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12542 .block_erasers =
12543 {
12544 {
12545 .eraseblocks = { {4 * 1024, 16} },
12546 .block_erase = erase_sector_jedec,
12547 }, {
12548 .eraseblocks = { {64 * 1024, 1} },
12549 .block_erase = erase_block_jedec,
12550 }, {
12551 .eraseblocks = { {64 * 1024, 1} },
12552 .block_erase = erase_chip_block_jedec,
12553 }
12554 },
12555 .write = write_jedec_1,
12556 .read = read_memmapped,
12557 .voltage = {2700, 3600},
12558 },
12559
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012560 {
12561 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012562 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012563 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012564 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012565 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012566 .total_size = 256,
12567 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012568 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012569 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012570 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012571 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000012572 .block_erasers =
12573 {
12574 {
12575 .eraseblocks = { {4 * 1024, 64} },
12576 .block_erase = erase_sector_jedec,
12577 }, {
12578 .eraseblocks = { {16 * 1024, 16} },
12579 .block_erase = erase_block_jedec,
12580 }, {
12581 .eraseblocks = { {256 * 1024, 1} },
12582 .block_erase = erase_chip_block_jedec,
12583 }
12584 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012585 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000012586 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012587 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012588 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012589 },
12590
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012591 {
12592 .vendor = "PMC",
12593 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012594 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012595 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012596 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012597 .total_size = 512,
12598 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012599 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000012600 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012601 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000012602 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012603 .block_erasers =
12604 {
12605 {
12606 .eraseblocks = { {4 * 1024, 128} },
12607 .block_erase = erase_sector_jedec,
12608 }, {
12609 .eraseblocks = { {64 * 1024, 8} },
12610 .block_erase = erase_block_jedec,
12611 }, {
12612 .eraseblocks = { {512 * 1024, 1} },
12613 .block_erase = erase_chip_block_jedec,
12614 }
12615 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012616 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000012617 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012618 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012619 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012620 },
12621
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012622 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012623 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000012624 .name = "SST25LF020A",
12625 .bustype = BUS_SPI,
12626 .manufacture_id = SST_ID,
12627 .model_id = SST_SST25VF020_REMS,
12628 .total_size = 256,
12629 .page_size = 256,
12630 .feature_bits = FEATURE_WRSR_EWSR,
12631 .tested = TEST_OK_PREW,
12632 .probe = probe_spi_rems,
12633 .probe_timing = TIMING_ZERO,
12634 .block_erasers =
12635 {
12636 {
12637 .eraseblocks = { {4 * 1024, 64} },
12638 .block_erase = spi_block_erase_20,
12639 }, {
12640 .eraseblocks = { {32 * 1024, 8} },
12641 .block_erase = spi_block_erase_52,
12642 }, {
12643 .eraseblocks = { {256 * 1024, 1} },
12644 .block_erase = spi_block_erase_60,
12645 },
12646 },
12647 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12648 .unlock = spi_disable_blockprotect,
12649 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12650 .read = spi_chip_read, /* Fast read (0x0B) supported */
12651 .voltage = {2700, 3600},
12652 },
12653
12654 {
12655 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000012656 .name = "SST25LF040A",
12657 .bustype = BUS_SPI,
12658 .manufacture_id = SST_ID,
12659 .model_id = SST_SST25VF040_REMS,
12660 .total_size = 512,
12661 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012662 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000012663 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000012664 .probe = probe_spi_res2,
12665 .probe_timing = TIMING_ZERO,
12666 .block_erasers =
12667 {
12668 {
12669 .eraseblocks = { {4 * 1024, 128} },
12670 .block_erase = spi_block_erase_20,
12671 }, {
12672 .eraseblocks = { {32 * 1024, 16} },
12673 .block_erase = spi_block_erase_52,
12674 }, {
12675 .eraseblocks = { {512 * 1024, 1} },
12676 .block_erase = spi_block_erase_60,
12677 },
12678 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012679 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012680 .unlock = spi_disable_blockprotect,
12681 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12682 .read = spi_chip_read,
12683 .voltage = {3000, 3600},
12684 },
12685
12686 {
12687 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000012688 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000012689 .bustype = BUS_SPI,
12690 .manufacture_id = SST_ID,
12691 .model_id = SST_SST25VF080_REMS,
12692 .total_size = 1024,
12693 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012694 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000012695 .tested = TEST_UNTESTED,
12696 .probe = probe_spi_res2,
12697 .probe_timing = TIMING_ZERO,
12698 .block_erasers =
12699 {
12700 {
12701 .eraseblocks = { {4 * 1024, 256} },
12702 .block_erase = spi_block_erase_20,
12703 }, {
12704 .eraseblocks = { {32 * 1024, 32} },
12705 .block_erase = spi_block_erase_52,
12706 }, {
12707 .eraseblocks = { {1024 * 1024, 1} },
12708 .block_erase = spi_block_erase_60,
12709 },
12710 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012711 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012712 .unlock = spi_disable_blockprotect,
12713 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12714 .read = spi_chip_read,
12715 .voltage = {3000, 3600},
12716 },
12717
12718 {
12719 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000012720 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012721 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000012722 .manufacture_id = SST_ID,
12723 .model_id = SST_SST25VF010_REMS,
12724 .total_size = 128,
12725 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012726 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000012727 .tested = TEST_OK_PREW,
12728 .probe = probe_spi_rems,
12729 .probe_timing = TIMING_ZERO,
12730 .block_erasers =
12731 {
12732 {
12733 .eraseblocks = { {4 * 1024, 32} },
12734 .block_erase = spi_block_erase_20,
12735 }, {
12736 .eraseblocks = { {32 * 1024, 4} },
12737 .block_erase = spi_block_erase_52,
12738 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000012739 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012740 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012741 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000012742 .eraseblocks = { {128 * 1024, 1} },
12743 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000012744 }, {
12745 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012746 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012747 },
12748 },
12749 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12750 .unlock = spi_disable_blockprotect,
12751 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000012752 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012753 .voltage = {2700, 3600},
12754 },
12755
12756 {
12757 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012758 .name = "SST25VF016B",
12759 .bustype = BUS_SPI,
12760 .manufacture_id = SST_ID,
12761 .model_id = SST_SST25VF016B,
12762 .total_size = 2048,
12763 .page_size = 256,
12764 .feature_bits = FEATURE_WRSR_EITHER,
12765 .tested = TEST_OK_PREW,
12766 .probe = probe_spi_rdid,
12767 .probe_timing = TIMING_ZERO,
12768 .block_erasers =
12769 {
12770 {
12771 .eraseblocks = { {4 * 1024, 512} },
12772 .block_erase = spi_block_erase_20,
12773 }, {
12774 .eraseblocks = { {32 * 1024, 64} },
12775 .block_erase = spi_block_erase_52,
12776 }, {
12777 .eraseblocks = { {64 * 1024, 32} },
12778 .block_erase = spi_block_erase_d8,
12779 }, {
12780 .eraseblocks = { {2 * 1024 * 1024, 1} },
12781 .block_erase = spi_block_erase_60,
12782 }, {
12783 .eraseblocks = { {2 * 1024 * 1024, 1} },
12784 .block_erase = spi_block_erase_c7,
12785 },
12786 },
12787 .printlock = spi_prettyprint_status_register_sst25vf016,
12788 .unlock = spi_disable_blockprotect,
12789 .write = spi_aai_write,
12790 .read = spi_chip_read,
12791 .voltage = {2700, 3600},
12792 },
12793
12794 {
12795 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012796 .name = "SST25VF020",
12797 .bustype = BUS_SPI,
12798 .manufacture_id = SST_ID,
12799 .model_id = SST_SST25VF020_REMS,
12800 .total_size = 256,
12801 .page_size = 256,
12802 .feature_bits = FEATURE_WRSR_EWSR,
12803 .tested = TEST_UNTESTED,
12804 .probe = probe_spi_rems,
12805 .probe_timing = TIMING_ZERO,
12806 .block_erasers =
12807 {
12808 {
12809 .eraseblocks = { {4 * 1024, 64} },
12810 .block_erase = spi_block_erase_20,
12811 }, {
12812 .eraseblocks = { {32 * 1024, 8} },
12813 .block_erase = spi_block_erase_52,
12814 }, {
12815 .eraseblocks = { {256 * 1024, 1} },
12816 .block_erase = spi_block_erase_60,
12817 },
12818 },
12819 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12820 .unlock = spi_disable_blockprotect,
12821 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12822 .read = spi_chip_read, /* only */
12823 .voltage = {2700, 3600},
12824 },
12825
12826 {
12827 .vendor = "SST",
12828 .name = "SST25VF020B",
12829 .bustype = BUS_SPI,
12830 .manufacture_id = SST_ID,
12831 .model_id = SST_SST25VF020B,
12832 .total_size = 256,
12833 .page_size = 256,
12834 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012835 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000012836 .probe = probe_spi_rdid,
12837 .probe_timing = TIMING_ZERO,
12838 .block_erasers =
12839 {
12840 {
12841 .eraseblocks = { {4 * 1024, 64} },
12842 .block_erase = spi_block_erase_20,
12843 }, {
12844 .eraseblocks = { {32 * 1024, 8} },
12845 .block_erase = spi_block_erase_52,
12846 }, {
12847 .eraseblocks = { {64 * 1024, 4} },
12848 .block_erase = spi_block_erase_d8,
12849 }, {
12850 .eraseblocks = { {256 * 1024, 1} },
12851 .block_erase = spi_block_erase_60,
12852 }, {
12853 .eraseblocks = { {256 * 1024, 1} },
12854 .block_erase = spi_block_erase_c7,
12855 },
12856 },
12857 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
12858 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
12859 .write = spi_aai_write, /* AAI supported (0xAD) */
12860 .read = spi_chip_read, /* Fast read (0x0B) supported */
12861 .voltage = {2700, 3600},
12862 },
12863
12864 {
12865 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012866 .name = "SST25VF032B",
12867 .bustype = BUS_SPI,
12868 .manufacture_id = SST_ID,
12869 .model_id = SST_SST25VF032B,
12870 .total_size = 4096,
12871 .page_size = 256,
12872 .feature_bits = FEATURE_WRSR_EWSR,
12873 .tested = TEST_OK_PREW,
12874 .probe = probe_spi_rdid,
12875 .probe_timing = TIMING_ZERO,
12876 .block_erasers =
12877 {
12878 {
12879 .eraseblocks = { {4 * 1024, 1024} },
12880 .block_erase = spi_block_erase_20,
12881 }, {
12882 .eraseblocks = { {32 * 1024, 128} },
12883 .block_erase = spi_block_erase_52,
12884 }, {
12885 .eraseblocks = { {64 * 1024, 64} },
12886 .block_erase = spi_block_erase_d8,
12887 }, {
12888 .eraseblocks = { {4 * 1024 * 1024, 1} },
12889 .block_erase = spi_block_erase_60,
12890 }, {
12891 .eraseblocks = { {4 * 1024 * 1024, 1} },
12892 .block_erase = spi_block_erase_c7,
12893 },
12894 },
12895 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
12896 .unlock = spi_disable_blockprotect,
12897 .write = spi_aai_write,
12898 .read = spi_chip_read,
12899 .voltage = {2700, 3600},
12900 },
12901
12902 {
12903 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012904 .name = "SST25VF040",
12905 .bustype = BUS_SPI,
12906 .manufacture_id = SST_ID,
12907 .model_id = SST_SST25VF040_REMS,
12908 .total_size = 512,
12909 .page_size = 256,
12910 .feature_bits = FEATURE_WRSR_EWSR,
12911 .tested = TEST_OK_PR,
12912 .probe = probe_spi_rems,
12913 .probe_timing = TIMING_ZERO,
12914 .block_erasers =
12915 {
12916 {
12917 .eraseblocks = { {4 * 1024, 128} },
12918 .block_erase = spi_block_erase_20,
12919 }, {
12920 .eraseblocks = { {32 * 1024, 16} },
12921 .block_erase = spi_block_erase_52,
12922 }, {
12923 .eraseblocks = { {512 * 1024, 1} },
12924 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000012925 },
12926 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012927 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000012928 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000012929 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12930 .read = spi_chip_read,
12931 .voltage = {2700, 3600},
12932 },
12933
12934 {
12935 .vendor = "SST",
12936 .name = "SST25VF040B",
12937 .bustype = BUS_SPI,
12938 .manufacture_id = SST_ID,
12939 .model_id = SST_SST25VF040B,
12940 .total_size = 512,
12941 .page_size = 256,
12942 .feature_bits = FEATURE_WRSR_EWSR,
12943 .tested = TEST_OK_PREW,
12944 .probe = probe_spi_rdid,
12945 .probe_timing = TIMING_ZERO,
12946 .block_erasers =
12947 {
12948 {
12949 .eraseblocks = { {4 * 1024, 128} },
12950 .block_erase = spi_block_erase_20,
12951 }, {
12952 .eraseblocks = { {32 * 1024, 16} },
12953 .block_erase = spi_block_erase_52,
12954 }, {
12955 .eraseblocks = { {64 * 1024, 8} },
12956 .block_erase = spi_block_erase_d8,
12957 }, {
12958 .eraseblocks = { {512 * 1024, 1} },
12959 .block_erase = spi_block_erase_60,
12960 }, {
12961 .eraseblocks = { {512 * 1024, 1} },
12962 .block_erase = spi_block_erase_c7,
12963 },
12964 },
12965 .printlock = spi_prettyprint_status_register_sst25vf040b,
12966 .unlock = spi_disable_blockprotect,
12967 .write = spi_aai_write, /* AAI supported (0xAD) */
12968 .read = spi_chip_read, /* Fast read (0x0B) supported */
12969 .voltage = {2700, 3600},
12970 },
12971
12972 {
12973 .vendor = "SST",
12974 .name = "SST25VF040B.REMS",
12975 .bustype = BUS_SPI,
12976 .manufacture_id = SST_ID,
12977 .model_id = SST_SST25VF040B_REMS,
12978 .total_size = 512,
12979 .page_size = 256,
12980 .feature_bits = FEATURE_WRSR_EWSR,
12981 .tested = TEST_OK_PREW,
12982 .probe = probe_spi_rems,
12983 .probe_timing = TIMING_ZERO,
12984 .block_erasers =
12985 {
12986 {
12987 .eraseblocks = { {4 * 1024, 128} },
12988 .block_erase = spi_block_erase_20,
12989 }, {
12990 .eraseblocks = { {32 * 1024, 16} },
12991 .block_erase = spi_block_erase_52,
12992 }, {
12993 .eraseblocks = { {64 * 1024, 8} },
12994 .block_erase = spi_block_erase_d8,
12995 }, {
12996 .eraseblocks = { {512 * 1024, 1} },
12997 .block_erase = spi_block_erase_60,
12998 }, {
12999 .eraseblocks = { {512 * 1024, 1} },
13000 .block_erase = spi_block_erase_c7,
13001 },
13002 },
13003 .printlock = spi_prettyprint_status_register_sst25vf040b,
13004 .unlock = spi_disable_blockprotect,
13005 .write = spi_aai_write,
13006 .read = spi_chip_read,
13007 .voltage = {2700, 3600},
13008 },
13009
13010 {
13011 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013012 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000013013 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013014 .manufacture_id = SST_ID,
13015 .model_id = SST_SST25VF064C,
13016 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013017 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013018 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013019 .tested = TEST_OK_PREW,
13020 .probe = probe_spi_rdid,
13021 .probe_timing = TIMING_ZERO,
13022 .block_erasers =
13023 {
13024 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013025 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013026 .block_erase = spi_block_erase_20,
13027 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013028 .eraseblocks = { {32 * 1024, 256} },
13029 .block_erase = spi_block_erase_52,
13030 }, {
13031 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013032 .block_erase = spi_block_erase_d8,
13033 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013034 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013035 .block_erase = spi_block_erase_60,
13036 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013037 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013038 .block_erase = spi_block_erase_c7,
13039 },
13040 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013041 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13042 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013043 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013044 .read = spi_chip_read,
13045 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000013046 },
13047
13048 {
13049 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013050 .name = "SST25VF080B",
13051 .bustype = BUS_SPI,
13052 .manufacture_id = SST_ID,
13053 .model_id = SST_SST25VF080B,
13054 .total_size = 1024,
13055 .page_size = 256,
13056 .feature_bits = FEATURE_WRSR_EWSR,
13057 .tested = TEST_OK_PREW,
13058 .probe = probe_spi_rdid,
13059 .probe_timing = TIMING_ZERO,
13060 .block_erasers =
13061 {
13062 {
13063 .eraseblocks = { {4 * 1024, 256} },
13064 .block_erase = spi_block_erase_20,
13065 }, {
13066 .eraseblocks = { {32 * 1024, 32} },
13067 .block_erase = spi_block_erase_52,
13068 }, {
13069 .eraseblocks = { {64 * 1024, 16} },
13070 .block_erase = spi_block_erase_d8,
13071 }, {
13072 .eraseblocks = { {1024 * 1024, 1} },
13073 .block_erase = spi_block_erase_60,
13074 }, {
13075 .eraseblocks = { {1024 * 1024, 1} },
13076 .block_erase = spi_block_erase_c7,
13077 },
13078 },
13079 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13080 .unlock = spi_disable_blockprotect,
13081 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000013082 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013083 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000013084 },
13085
13086 {
13087 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013088 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013089 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013090 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013091 .model_id = SST_SST25VF512_REMS,
13092 .total_size = 64,
13093 .page_size = 256,
13094 .feature_bits = FEATURE_WRSR_EWSR,
13095 .tested = TEST_OK_PREW,
13096 .probe = probe_spi_rems,
13097 .probe_timing = TIMING_ZERO,
13098 .block_erasers =
13099 {
13100 {
13101 .eraseblocks = { {4 * 1024, 16} },
13102 .block_erase = spi_block_erase_20,
13103 }, {
13104 .eraseblocks = { {32 * 1024, 2} },
13105 .block_erase = spi_block_erase_52,
13106 }, {
13107 .eraseblocks = { {32 * 1024, 2} },
13108 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
13109 }, {
13110 .eraseblocks = { {64 * 1024, 1} },
13111 .block_erase = spi_block_erase_60,
13112 }, {
13113 .eraseblocks = { {64 * 1024, 1} },
13114 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
13115 },
13116 },
13117 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13118 .unlock = spi_disable_blockprotect,
13119 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13120 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
13121 .voltage = {2700, 3600},
13122 },
13123
13124 {
13125 .vendor = "SST",
13126 .name = "SST25WF010",
13127 .bustype = BUS_SPI,
13128 .manufacture_id = SST_ID,
13129 .model_id = SST_SST25WF010,
13130 .total_size = 128,
13131 .page_size = 256,
13132 .feature_bits = FEATURE_WRSR_EITHER,
13133 .tested = TEST_UNTESTED,
13134 .probe = probe_spi_rdid,
13135 .probe_timing = TIMING_ZERO,
13136 .block_erasers =
13137 {
13138 {
13139 .eraseblocks = { {4 * 1024, 32} },
13140 .block_erase = spi_block_erase_20,
13141 }, {
13142 .eraseblocks = { {32 * 1024, 4} },
13143 .block_erase = spi_block_erase_52,
13144 }, {
13145 .eraseblocks = { {1024 * 128, 1} },
13146 .block_erase = spi_block_erase_60,
13147 }, {
13148 .eraseblocks = { {1024 * 128, 1} },
13149 .block_erase = spi_block_erase_c7,
13150 },
13151 },
13152 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13153 .unlock = spi_disable_blockprotect_bp2_srwd,
13154 .write = spi_aai_write,
13155 .read = spi_chip_read, /* Fast read (0x0B) supported */
13156 .voltage = {1650, 1950},
13157 },
13158
13159 {
13160 .vendor = "SST",
13161 .name = "SST25WF020",
13162 .bustype = BUS_SPI,
13163 .manufacture_id = SST_ID,
13164 .model_id = SST_SST25WF020,
13165 .total_size = 256,
13166 .page_size = 256,
13167 .feature_bits = FEATURE_WRSR_EITHER,
13168 .tested = TEST_UNTESTED,
13169 .probe = probe_spi_rdid,
13170 .probe_timing = TIMING_ZERO,
13171 .block_erasers =
13172 {
13173 {
13174 .eraseblocks = { {4 * 1024, 64} },
13175 .block_erase = spi_block_erase_20,
13176 }, {
13177 .eraseblocks = { {32 * 1024, 8} },
13178 .block_erase = spi_block_erase_52,
13179 }, {
13180 .eraseblocks = { {64 * 1024, 4} },
13181 .block_erase = spi_block_erase_d8,
13182 }, {
13183 .eraseblocks = { {1024 * 256, 1} },
13184 .block_erase = spi_block_erase_60,
13185 }, {
13186 .eraseblocks = { {1024 * 256, 1} },
13187 .block_erase = spi_block_erase_c7,
13188 },
13189 },
13190 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13191 .unlock = spi_disable_blockprotect_bp2_srwd,
13192 .write = spi_aai_write,
13193 .read = spi_chip_read, /* Fast read (0x0B) supported */
13194 .voltage = {1650, 1950},
13195 },
13196
13197 {
13198 .vendor = "SST",
13199 .name = "SST25WF020A",
13200 .bustype = BUS_SPI,
13201 .manufacture_id = SANYO_ID, /* See flashchips.h */
13202 .model_id = SST_SST25WF020A,
13203 .total_size = 256,
13204 .page_size = 256,
13205 .feature_bits = FEATURE_WRSR_WREN,
13206 .tested = TEST_UNTESTED,
13207 .probe = probe_spi_rdid,
13208 .probe_timing = TIMING_ZERO,
13209 .block_erasers =
13210 {
13211 {
13212 .eraseblocks = { {4 * 1024, 64} },
13213 .block_erase = spi_block_erase_20,
13214 }, {
13215 .eraseblocks = { {64 * 1024, 4} },
13216 .block_erase = spi_block_erase_d8,
13217 }, {
13218 .eraseblocks = { {256 * 1024, 1} },
13219 .block_erase = spi_block_erase_60,
13220 }, {
13221 .eraseblocks = { {256 * 1024, 1} },
13222 .block_erase = spi_block_erase_c7,
13223 },
13224 },
13225 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13226 .unlock = spi_disable_blockprotect_bp2_srwd,
13227 .write = spi_chip_write_256,
13228 .read = spi_chip_read, /* Fast read (0x0B) supported */
13229 .voltage = {1650, 1950},
13230 },
13231
13232 {
13233 .vendor = "SST",
13234 .name = "SST25WF040",
13235 .bustype = BUS_SPI,
13236 .manufacture_id = SST_ID,
13237 .model_id = SST_SST25WF040,
13238 .total_size = 512,
13239 .page_size = 256,
13240 .feature_bits = FEATURE_WRSR_EITHER,
13241 .tested = TEST_UNTESTED,
13242 .probe = probe_spi_rdid,
13243 .probe_timing = TIMING_ZERO,
13244 .block_erasers =
13245 {
13246 {
13247 .eraseblocks = { {4 * 1024, 128} },
13248 .block_erase = spi_block_erase_20,
13249 }, {
13250 .eraseblocks = { {32 * 1024, 16} },
13251 .block_erase = spi_block_erase_52,
13252 }, {
13253 .eraseblocks = { {64 * 1024, 8} },
13254 .block_erase = spi_block_erase_d8,
13255 }, {
13256 .eraseblocks = { {1024 * 512, 1} },
13257 .block_erase = spi_block_erase_60,
13258 }, {
13259 .eraseblocks = { {1024 * 512, 1} },
13260 .block_erase = spi_block_erase_c7,
13261 },
13262 },
13263 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13264 .unlock = spi_disable_blockprotect_bp2_srwd,
13265 .write = spi_aai_write,
13266 .read = spi_chip_read, /* Fast read (0x0B) supported */
13267 .voltage = {1650, 1950},
13268 },
13269
13270 {
13271 .vendor = "SST",
13272 .name = "SST25WF040B",
13273 .bustype = BUS_SPI,
13274 .manufacture_id = SANYO_ID, /* See flashchips.h */
13275 .model_id = SST_SST25WF040B,
13276 .total_size = 512,
13277 .page_size = 256,
13278 .feature_bits = FEATURE_WRSR_WREN,
13279 .tested = TEST_UNTESTED,
13280 .probe = probe_spi_rdid,
13281 .probe_timing = TIMING_ZERO,
13282 .block_erasers =
13283 {
13284 {
13285 .eraseblocks = { {4 * 1024, 128} },
13286 .block_erase = spi_block_erase_20,
13287 }, {
13288 .eraseblocks = { {64 * 1024, 8} },
13289 .block_erase = spi_block_erase_d8,
13290 }, {
13291 .eraseblocks = { {512 * 1024, 1} },
13292 .block_erase = spi_block_erase_60,
13293 }, {
13294 .eraseblocks = { {512 * 1024, 1} },
13295 .block_erase = spi_block_erase_c7,
13296 },
13297 },
13298 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13299 .unlock = spi_disable_blockprotect_bp2_srwd,
13300 .write = spi_chip_write_256,
13301 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13302 .voltage = {1650, 1950},
13303 },
13304
13305 {
13306 .vendor = "SST",
13307 .name = "SST25WF080",
13308 .bustype = BUS_SPI,
13309 .manufacture_id = SST_ID,
13310 .model_id = SST_SST25WF080,
13311 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013312 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013313 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000013314 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013315 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013316 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013317 .block_erasers =
13318 {
13319 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013320 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013321 .block_erase = spi_block_erase_20,
13322 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013323 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013324 .block_erase = spi_block_erase_52,
13325 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013326 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013327 .block_erase = spi_block_erase_d8,
13328 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013329 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013330 .block_erase = spi_block_erase_60,
13331 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013332 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013333 .block_erase = spi_block_erase_c7,
13334 },
13335 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013336 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
13337 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000013338 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013339 .read = spi_chip_read, /* Fast read (0x0B) supported */
13340 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000013341 },
13342
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013343 {
13344 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013345 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013346 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013347 .manufacture_id = SANYO_ID, /* See flashchips.h */
13348 .model_id = SST_SST25WF080B,
13349 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013350 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013351 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000013352 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013353 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013354 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013355 .block_erasers =
13356 {
13357 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013358 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013359 .block_erase = spi_block_erase_20,
13360 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013361 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013362 .block_erase = spi_block_erase_d8,
13363 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013364 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013365 .block_erase = spi_block_erase_60,
13366 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013367 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013368 .block_erase = spi_block_erase_c7,
13369 },
13370 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013371 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13372 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000013373 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013374 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13375 .voltage = {1650, 1950},
13376 },
13377
13378 {
13379 .vendor = "SST",
13380 .name = "SST25WF512",
13381 .bustype = BUS_SPI,
13382 .manufacture_id = SST_ID,
13383 .model_id = SST_SST25WF512,
13384 .total_size = 64,
13385 .page_size = 256,
13386 .feature_bits = FEATURE_WRSR_EITHER,
13387 .tested = TEST_UNTESTED,
13388 .probe = probe_spi_rdid,
13389 .probe_timing = TIMING_ZERO,
13390 .block_erasers =
13391 {
13392 {
13393 .eraseblocks = { {4 * 1024, 16} },
13394 .block_erase = spi_block_erase_20,
13395 }, {
13396 .eraseblocks = { {32 * 1024, 2} },
13397 .block_erase = spi_block_erase_52,
13398 }, {
13399 .eraseblocks = { {1024 * 64, 1} },
13400 .block_erase = spi_block_erase_60,
13401 }, {
13402 .eraseblocks = { {1024 * 64, 1} },
13403 .block_erase = spi_block_erase_c7,
13404 },
13405 },
13406 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13407 .unlock = spi_disable_blockprotect_bp2_srwd,
13408 .write = spi_aai_write,
13409 .read = spi_chip_read, /* Fast read (0x0B) supported */
13410 .voltage = {1650, 1950},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013411 },
13412
13413 {
13414 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070013415 .name = "SST26VF016B(A)",
13416 .bustype = BUS_SPI,
13417 .manufacture_id = SST_ID,
13418 .model_id = SST_SST26VF016B,
13419 .total_size = 2048,
13420 .page_size = 256,
13421 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13422 .tested = TEST_OK_PREW,
13423 .probe = probe_spi_rdid,
13424 .probe_timing = TIMING_ZERO,
13425 .block_erasers =
13426 {
13427 {
13428 .eraseblocks = { {4 * 1024, 512} },
13429 .block_erase = spi_block_erase_20,
13430 }, {
13431 .eraseblocks = {
13432 {8 * 1024, 4},
13433 {32 * 1024, 1},
13434 {64 * 1024, 30},
13435 {32 * 1024, 1},
13436 {8 * 1024, 4},
13437 },
13438 .block_erase = spi_block_erase_d8,
13439 }, {
13440 .eraseblocks = { {2 * 1024 * 1024, 1} },
13441 .block_erase = spi_block_erase_c7,
13442 },
13443 },
13444 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13445 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13446 .write = spi_chip_write_256, /* Multi I/O supported */
13447 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13448 .voltage = {2700, 3600},
13449 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100013450
Wei Hu25584de2018-04-30 14:02:08 -070013451 {
13452 .vendor = "SST",
13453 .name = "SST26VF032B(A)",
13454 .bustype = BUS_SPI,
13455 .manufacture_id = SST_ID,
13456 .model_id = SST_SST26VF032B,
13457 .total_size = 4096,
13458 .page_size = 256,
13459 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13460 .tested = TEST_UNTESTED,
13461 .probe = probe_spi_rdid,
13462 .probe_timing = TIMING_ZERO,
13463 .block_erasers =
13464 {
13465 {
13466 .eraseblocks = { {4 * 1024, 1024} },
13467 .block_erase = spi_block_erase_20,
13468 }, {
13469 .eraseblocks = {
13470 {8 * 1024, 4},
13471 {32 * 1024, 1},
13472 {64 * 1024, 62},
13473 {32 * 1024, 1},
13474 {8 * 1024, 4},
13475 },
13476 .block_erase = spi_block_erase_d8,
13477 }, {
13478 .eraseblocks = { {4 * 1024 * 1024, 1} },
13479 .block_erase = spi_block_erase_c7,
13480 },
13481 },
13482 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13483 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13484 .write = spi_chip_write_256, /* Multi I/O supported */
13485 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13486 .voltage = {2700, 3600},
13487 },
13488
Wei Hu25584de2018-04-30 14:02:08 -070013489 {
13490 .vendor = "SST",
13491 .name = "SST26VF064B(A)",
13492 .bustype = BUS_SPI,
13493 .manufacture_id = SST_ID,
13494 .model_id = SST_SST26VF064B,
13495 .total_size = 8192,
13496 .page_size = 256,
13497 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13498 .tested = TEST_OK_PREW,
13499 .probe = probe_spi_rdid,
13500 .probe_timing = TIMING_ZERO,
13501 .block_erasers =
13502 {
13503 {
13504 .eraseblocks = { {4 * 1024, 2048} },
13505 .block_erase = spi_block_erase_20,
13506 }, {
13507 .eraseblocks = {
13508 {8 * 1024, 4},
13509 {32 * 1024, 1},
13510 {64 * 1024, 126},
13511 {32 * 1024, 1},
13512 {8 * 1024, 4},
13513 },
13514 .block_erase = spi_block_erase_d8,
13515 }, {
13516 .eraseblocks = { {8 * 1024 * 1024, 1} },
13517 .block_erase = spi_block_erase_c7,
13518 },
13519 },
13520 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13521 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13522 .write = spi_chip_write_256, /* Multi I/O supported */
13523 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13524 .voltage = {2700, 3600},
13525 },
13526
13527 {
13528 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013529 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013530 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013531 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013532 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013533 .total_size = 512,
13534 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000013535 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013536 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013537 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013538 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013539 .block_erasers =
13540 {
13541 {
13542 .eraseblocks = { {128, 4096} },
13543 .block_erase = erase_sector_28sf040,
13544 }, {
13545 .eraseblocks = { {512 * 1024, 1} },
13546 .block_erase = erase_chip_28sf040,
13547 }
13548 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013549 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013550 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013551 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013552 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013553 },
13554
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013555 {
13556 .vendor = "SST",
13557 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013558 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013559 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013560 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013561 .total_size = 128,
13562 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013563 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013564 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013565 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013566 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013567 .block_erasers =
13568 {
13569 {
13570 .eraseblocks = { {128 * 1024, 1} },
13571 .block_erase = erase_chip_block_jedec,
13572 }
13573 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013574 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013575 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013576 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013577 },
13578
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013579 {
13580 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013581 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013582 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013583 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013584 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013585 .total_size = 256,
13586 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013587 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013588 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013589 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013590 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013591 .block_erasers =
13592 {
13593 {
13594 .eraseblocks = { {256 * 1024, 1} },
13595 .block_erase = erase_chip_block_jedec,
13596 }
13597 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013598 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013599 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013600 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013601 },
13602
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013603 {
13604 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013605 .name = "SST29LE010",
13606 .bustype = BUS_PARALLEL,
13607 .manufacture_id = SST_ID,
13608 .model_id = SST_SST29LE010,
13609 .total_size = 128,
13610 .page_size = 128,
13611 .feature_bits = FEATURE_LONG_RESET,
13612 .tested = TEST_UNTESTED,
13613 .probe = probe_jedec,
13614 .probe_timing = 10,
13615 .block_erasers =
13616 {
13617 {
13618 .eraseblocks = { {128 * 1024, 1} },
13619 .block_erase = erase_chip_block_jedec,
13620 }
13621 },
13622 .write = write_jedec,
13623 .read = read_memmapped,
13624 .voltage = {3000, 3600},
13625 },
13626
13627 {
13628 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013629 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013630 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013631 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013632 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013633 .total_size = 256,
13634 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013635 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013636 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013637 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013638 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013639 .block_erasers =
13640 {
13641 {
13642 .eraseblocks = { {256 * 1024, 1} },
13643 .block_erase = erase_chip_block_jedec,
13644 }
13645 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013646 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013647 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013648 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013649 },
13650
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013651 {
13652 .vendor = "SST",
13653 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013654 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013655 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013656 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013657 .total_size = 128,
13658 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013659 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013660 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013661 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013662 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013663 .block_erasers =
13664 {
13665 {
13666 .eraseblocks = { {4 * 1024, 32} },
13667 .block_erase = erase_sector_jedec,
13668 }, {
13669 .eraseblocks = { {128 * 1024, 1} },
13670 .block_erase = erase_chip_block_jedec,
13671 }
13672 },
Sean Nelson35727f72010-01-28 23:55:12 +000013673 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013674 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013675 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013676 },
13677
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013678 {
13679 .vendor = "SST",
13680 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013681 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013682 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013683 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013684 .total_size = 256,
13685 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013686 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000013687 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013688 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013689 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013690 .block_erasers =
13691 {
13692 {
13693 .eraseblocks = { {4 * 1024, 64} },
13694 .block_erase = erase_sector_jedec,
13695 }, {
13696 .eraseblocks = { {256 * 1024, 1} },
13697 .block_erase = erase_chip_block_jedec,
13698 }
13699 },
Sean Nelson35727f72010-01-28 23:55:12 +000013700 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013701 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013702 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013703 },
13704
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013705 {
13706 .vendor = "SST",
13707 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013708 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013709 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013710 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013711 .total_size = 512,
13712 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013713 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000013714 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013715 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013716 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013717 .block_erasers =
13718 {
13719 {
13720 .eraseblocks = { {4 * 1024, 128} },
13721 .block_erase = erase_sector_jedec,
13722 }, {
13723 .eraseblocks = { {512 * 1024, 1} },
13724 .block_erase = erase_chip_block_jedec,
13725 }
13726 },
Sean Nelson35727f72010-01-28 23:55:12 +000013727 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013728 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013729 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013730 },
13731
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013732 {
13733 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013734 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013735 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013736 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013737 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013738 .total_size = 64,
13739 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013740 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000013741 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013742 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013743 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013744 .block_erasers =
13745 {
13746 {
13747 .eraseblocks = { {4 * 1024, 16} },
13748 .block_erase = erase_sector_jedec,
13749 }, {
13750 .eraseblocks = { {64 * 1024, 1} },
13751 .block_erase = erase_chip_block_jedec,
13752 }
13753 },
Sean Nelson35727f72010-01-28 23:55:12 +000013754 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013755 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013756 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013757 },
13758
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013759 {
13760 .vendor = "SST",
13761 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013762 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013763 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013764 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013765 .total_size = 128,
13766 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013767 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000013768 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013769 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013770 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013771 .block_erasers =
13772 {
13773 {
13774 .eraseblocks = { {4 * 1024, 32} },
13775 .block_erase = erase_sector_jedec,
13776 }, {
13777 .eraseblocks = { {128 * 1024, 1} },
13778 .block_erase = erase_chip_block_jedec,
13779 }
13780 },
Sean Nelson35727f72010-01-28 23:55:12 +000013781 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013782 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013783 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013784 },
13785
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013786 {
13787 .vendor = "SST",
13788 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013789 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013790 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013791 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013792 .total_size = 256,
13793 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013794 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000013795 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013796 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013797 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013798 .block_erasers =
13799 {
13800 {
13801 .eraseblocks = { {4 * 1024, 64} },
13802 .block_erase = erase_sector_jedec,
13803 }, {
13804 .eraseblocks = { {256 * 1024, 1} },
13805 .block_erase = erase_chip_block_jedec,
13806 }
13807 },
Sean Nelson35727f72010-01-28 23:55:12 +000013808 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013809 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013810 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013811 },
13812
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013813 {
13814 .vendor = "SST",
13815 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013816 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013817 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013818 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013819 .total_size = 512,
13820 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013821 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013822 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013823 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013824 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013825 .block_erasers =
13826 {
13827 {
13828 .eraseblocks = { {4 * 1024, 128} },
13829 .block_erase = erase_sector_jedec,
13830 }, {
13831 .eraseblocks = { {512 * 1024, 1} },
13832 .block_erase = erase_chip_block_jedec,
13833 }
13834 },
Sean Nelson35727f72010-01-28 23:55:12 +000013835 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013836 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013837 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000013838 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013839
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013840 {
13841 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000013842 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013843 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013844 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013845 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000013846 .total_size = 1024,
13847 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013848 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000013849 .tested = TEST_UNTESTED,
13850 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013851 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013852 .block_erasers =
13853 {
13854 {
13855 .eraseblocks = { {4 * 1024, 256} },
13856 .block_erase = erase_sector_jedec,
13857 }, {
13858 .eraseblocks = { {64 * 1024, 16} },
13859 .block_erase = erase_block_jedec,
13860 }, {
13861 .eraseblocks = { {1024 * 1024, 1} },
13862 .block_erase = erase_chip_block_jedec,
13863 }
13864 },
Sean Nelson35727f72010-01-28 23:55:12 +000013865 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013866 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013867 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000013868 },
13869
13870 {
13871 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013872 .name = "SST39VF512",
13873 .bustype = BUS_PARALLEL,
13874 .manufacture_id = SST_ID,
13875 .model_id = SST_SST39VF512,
13876 .total_size = 64,
13877 .page_size = 4096,
13878 .feature_bits = FEATURE_EITHER_RESET,
13879 .tested = TEST_OK_PREW,
13880 .probe = probe_jedec,
13881 .probe_timing = 1, /* 150 ns */
13882 .block_erasers =
13883 {
13884 {
13885 .eraseblocks = { {4 * 1024, 16} },
13886 .block_erase = erase_sector_jedec,
13887 }, {
13888 .eraseblocks = { {64 * 1024, 1} },
13889 .block_erase = erase_chip_block_jedec,
13890 }
13891 },
13892 .write = write_jedec_1,
13893 .read = read_memmapped,
13894 .voltage = {2700, 3600},
13895 },
13896
13897 {
13898 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013899 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013900 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013901 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013902 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013903 .total_size = 256,
13904 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013905 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013906 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013907 .probe = probe_jedec,
13908 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013909 .block_erasers =
13910 {
13911 {
13912 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013913 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013914 }, {
13915 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013916 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013917 }, {
13918 .eraseblocks = { {256 * 1024, 1} },
13919 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13920 }
13921 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013922 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013923 .unlock = unlock_sst_fwhub,
13924 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013925 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013926 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013927 },
13928
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013929 {
13930 .vendor = "SST",
13931 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013932 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013933 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013934 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013935 .total_size = 384,
13936 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013937 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000013938 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013939 .probe = probe_jedec,
13940 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013941 .block_erasers =
13942 {
13943 {
13944 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013945 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013946 }, {
13947 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013948 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013949 }, {
13950 .eraseblocks = { {384 * 1024, 1} },
13951 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13952 }
13953 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013954 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013955 .unlock = unlock_sst_fwhub,
13956 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013957 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013958 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013959 },
13960
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013961 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013962 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
13963 * and is only honored for 64k block erase, but not 4k sector erase.
13964 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013965 .vendor = "SST",
13966 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013967 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013968 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013969 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013970 .total_size = 512,
13971 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013972 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013973 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013974 .probe = probe_jedec,
13975 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013976 .block_erasers =
13977 {
13978 {
13979 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013980 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013981 }, {
13982 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013983 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013984 }, {
13985 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000013986 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013987 },
13988 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013989 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013990 .unlock = unlock_sst_fwhub,
13991 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013992 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013993 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013994 },
13995
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013996 {
13997 .vendor = "SST",
13998 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013999 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014000 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014001 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014002 .total_size = 512,
14003 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014004 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014005 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014006 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014007 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014008 .block_erasers =
14009 {
14010 {
14011 .eraseblocks = { {4 * 1024, 128} },
14012 .block_erase = erase_sector_49lfxxxc,
14013 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014014 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014015 {64 * 1024, 7},
14016 {32 * 1024, 1},
14017 {8 * 1024, 2},
14018 {16 * 1024, 1},
14019 },
Sean Nelson69e58112010-03-23 17:10:28 +000014020 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014021 }
14022 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014023 .printlock = printlock_regspace2_block_eraser_1,
14024 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014025 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014026 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014027 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014028 },
14029
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014030 {
14031 .vendor = "SST",
14032 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014033 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014034 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014035 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014036 .total_size = 1024,
14037 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014038 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014039 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014040 .probe = probe_jedec,
14041 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014042 .block_erasers =
14043 {
14044 {
14045 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014046 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014047 }, {
14048 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014049 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014050 }, {
14051 .eraseblocks = { {1024 * 1024, 1} },
14052 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14053 }
14054 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014055 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014056 .unlock = unlock_sst_fwhub,
14057 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014058 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014059 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014060 },
14061
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014062 {
14063 .vendor = "SST",
14064 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014065 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014066 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014067 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014068 .total_size = 1024,
14069 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014070 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014071 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014072 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014073 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014074 .block_erasers =
14075 {
14076 {
14077 .eraseblocks = { {4 * 1024, 256} },
14078 .block_erase = erase_sector_49lfxxxc,
14079 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014080 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014081 {64 * 1024, 15},
14082 {32 * 1024, 1},
14083 {8 * 1024, 2},
14084 {16 * 1024, 1},
14085 },
Sean Nelson69e58112010-03-23 17:10:28 +000014086 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014087 }
14088 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014089 .printlock = printlock_regspace2_block_eraser_1,
14090 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014091 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014092 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014093 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014094 },
14095
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014096 {
14097 .vendor = "SST",
14098 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014099 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014100 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014101 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014102 .total_size = 2048,
14103 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014104 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014105 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014106 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014107 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014108 .block_erasers =
14109 {
14110 {
14111 .eraseblocks = { {4 * 1024, 512} },
14112 .block_erase = erase_sector_49lfxxxc,
14113 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014114 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014115 {64 * 1024, 31},
14116 {32 * 1024, 1},
14117 {8 * 1024, 2},
14118 {16 * 1024, 1},
14119 },
Sean Nelson69e58112010-03-23 17:10:28 +000014120 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014121 }
14122 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014123 .printlock = printlock_regspace2_block_eraser_1,
14124 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014125 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014126 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014127 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014128 },
14129
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014130 {
14131 .vendor = "SST",
14132 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014133 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014134 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014135 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014136 .total_size = 256,
14137 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014138 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000014139 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014140 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014141 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014142 .block_erasers =
14143 {
14144 {
14145 .eraseblocks = { {4 * 1024, 64} },
14146 .block_erase = erase_sector_jedec,
14147 }, {
14148 .eraseblocks = { {16 * 1024, 16} },
14149 .block_erase = erase_block_jedec,
14150 }, {
14151 .eraseblocks = { {256 * 1024, 1} },
14152 .block_erase = NULL,
14153 }
14154 },
Sean Nelson35727f72010-01-28 23:55:12 +000014155 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014156 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014157 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000014158 },
14159
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014160 {
14161 .vendor = "SST",
14162 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014163 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014164 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014165 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014166 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000014167 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014168 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014169 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014170 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014171 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014172 .block_erasers =
14173 {
14174 {
14175 .eraseblocks = { {4 * 1024, 64} },
14176 .block_erase = erase_sector_jedec,
14177 }, {
14178 .eraseblocks = { {16 * 1024, 16} },
14179 .block_erase = erase_block_jedec,
14180 }, {
14181 .eraseblocks = { {256 * 1024, 1} },
14182 .block_erase = NULL,
14183 }
14184 },
Sean Nelson35727f72010-01-28 23:55:12 +000014185 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014186 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014187 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014188 },
14189
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014190 {
14191 .vendor = "SST",
14192 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014193 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014194 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014195 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014196 .total_size = 512,
14197 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014198 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014199 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014200 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014201 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014202 .block_erasers =
14203 {
14204 {
14205 .eraseblocks = { {4 * 1024, 128} },
14206 .block_erase = erase_sector_jedec,
14207 }, {
14208 .eraseblocks = { {64 * 1024, 8} },
14209 .block_erase = erase_block_jedec,
14210 }, {
14211 .eraseblocks = { {512 * 1024, 1} },
14212 .block_erase = NULL,
14213 }
14214 },
Sean Nelson35727f72010-01-28 23:55:12 +000014215 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014216 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014217 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014218 },
14219
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014220 {
14221 .vendor = "SST",
14222 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014223 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014224 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014225 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014226 .total_size = 512,
14227 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000014228 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014229 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014230 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014231 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014232 .block_erasers =
14233 {
14234 {
14235 .eraseblocks = { {4 * 1024, 128} },
14236 .block_erase = erase_sector_jedec,
14237 }, {
14238 .eraseblocks = { {64 * 1024, 8} },
14239 .block_erase = erase_block_jedec,
14240 }, {
14241 .eraseblocks = { {512 * 1024, 1} },
14242 .block_erase = NULL,
14243 }
14244 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014245 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014246 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014247 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014248 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014249 },
14250
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014251 {
14252 .vendor = "SST",
14253 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014254 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014255 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020014256 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014257 .total_size = 1024,
14258 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014259 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000014260 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014261 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014262 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014263 .block_erasers =
14264 {
14265 {
14266 .eraseblocks = { {4 * 1024, 256} },
14267 .block_erase = erase_sector_jedec,
14268 }, {
14269 .eraseblocks = { {64 * 1024, 16} },
14270 .block_erase = erase_block_jedec,
14271 }, {
14272 .eraseblocks = { {1024 * 1024, 1} },
14273 .block_erase = NULL,
14274 }
14275 },
Sean Nelson35727f72010-01-28 23:55:12 +000014276 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014277 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014278 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014279 },
14280
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014281 {
14282 .vendor = "SST",
14283 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014284 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014285 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014286 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014287 .total_size = 2048,
14288 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014289 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014290 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014291 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014292 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014293 .block_erasers =
14294 {
14295 {
14296 .eraseblocks = { {4 * 1024, 512} },
14297 .block_erase = erase_sector_49lfxxxc,
14298 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014299 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014300 {64 * 1024, 31},
14301 {32 * 1024, 1},
14302 {8 * 1024, 2},
14303 {16 * 1024, 1},
14304 },
Sean Nelson69e58112010-03-23 17:10:28 +000014305 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014306 }
14307 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014308 .printlock = printlock_regspace2_block_eraser_1,
14309 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014310 .write = write_82802ab,
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 = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014317 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014318 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014319 .manufacture_id = ST_ID,
14320 .model_id = ST_M29F002B,
14321 .total_size = 256,
14322 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014323 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014324 .tested = TEST_UNTESTED,
14325 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014326 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014327 .block_erasers =
14328 {
14329 {
14330 .eraseblocks = {
14331 {16 * 1024, 1},
14332 {8 * 1024, 2},
14333 {32 * 1024, 1},
14334 {64 * 1024, 3},
14335 },
14336 .block_erase = erase_sector_jedec,
14337 }, {
14338 .eraseblocks = { {256 * 1024, 1} },
14339 .block_erase = erase_chip_block_jedec,
14340 }
14341 },
Sean Nelson35727f72010-01-28 23:55:12 +000014342 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014343 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014344 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014345 },
14346
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014347 {
14348 .vendor = "ST",
14349 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014350 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014351 .manufacture_id = ST_ID,
14352 .model_id = ST_M29F002T,
14353 .total_size = 256,
14354 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014355 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014356 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014357 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014358 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014359 .block_erasers =
14360 {
14361 {
14362 .eraseblocks = {
14363 {64 * 1024, 3},
14364 {32 * 1024, 1},
14365 {8 * 1024, 2},
14366 {16 * 1024, 1},
14367 },
14368 .block_erase = erase_sector_jedec,
14369 }, {
14370 .eraseblocks = { {256 * 1024, 1} },
14371 .block_erase = erase_chip_block_jedec,
14372 }
14373 },
Sean Nelson35727f72010-01-28 23:55:12 +000014374 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014375 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014376 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014377 },
14378
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014379 {
14380 .vendor = "ST",
14381 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014382 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014383 .manufacture_id = ST_ID,
14384 .model_id = ST_M29F040B,
14385 .total_size = 512,
14386 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014387 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
14388 .tested = TEST_UNTESTED,
14389 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000014390 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000014391 .block_erasers =
14392 {
14393 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014394 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000014395 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014396 }, {
14397 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000014398 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014399 }
14400 },
Sean Nelson35727f72010-01-28 23:55:12 +000014401 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014402 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014403 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014404 },
14405
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014406 {
Sean Nelson35727f72010-01-28 23:55:12 +000014407 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014408 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014409 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014410 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014411 .manufacture_id = ST_ID,
14412 .model_id = ST_M29F400BB,
14413 .total_size = 512,
14414 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014415 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014416 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014417 .probe = probe_jedec,
14418 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014419 .block_erasers =
14420 {
14421 {
14422 .eraseblocks = {
14423 {16 * 1024, 1},
14424 {8 * 1024, 2},
14425 {32 * 1024, 1},
14426 {64 * 1024, 7},
14427 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014428 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014429 }, {
14430 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014431 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014432 }
14433 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014434 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014435 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014436 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014437 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100014438
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014439 {
14440 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
14441 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014442 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014443 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014444 .manufacture_id = ST_ID,
14445 .model_id = ST_M29F400BT,
14446 .total_size = 512,
14447 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014448 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014449 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014450 .probe = probe_jedec,
14451 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000014452 .block_erasers =
14453 {
14454 {
14455 .eraseblocks = {
14456 {64 * 1024, 7},
14457 {32 * 1024, 1},
14458 {8 * 1024, 2},
14459 {16 * 1024, 1},
14460 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014461 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014462 }, {
14463 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014464 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014465 }
14466 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014467 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014468 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014469 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014470 },
14471
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014472 {
14473 .vendor = "ST",
14474 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014475 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014476 .manufacture_id = ST_ID,
14477 .model_id = ST_M29W010B,
14478 .total_size = 128,
14479 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014480 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014481 .tested = TEST_UNTESTED,
14482 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014483 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014484 .block_erasers =
14485 {
14486 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014487 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014488 .block_erase = erase_sector_jedec,
14489 }, {
14490 .eraseblocks = { {128 * 1024, 1} },
14491 .block_erase = erase_chip_block_jedec,
14492 }
14493 },
Sean Nelson35727f72010-01-28 23:55:12 +000014494 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014495 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014496 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014497 },
14498
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014499 {
14500 .vendor = "ST",
14501 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014502 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014503 .manufacture_id = ST_ID,
14504 .model_id = ST_M29W040B,
14505 .total_size = 512,
14506 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014507 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014508 .tested = TEST_UNTESTED,
14509 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014510 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014511 .block_erasers =
14512 {
14513 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014514 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014515 .block_erase = erase_sector_jedec,
14516 }, {
14517 .eraseblocks = { {512 * 1024, 1} },
14518 .block_erase = erase_chip_block_jedec,
14519 }
14520 },
Sean Nelson35727f72010-01-28 23:55:12 +000014521 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014522 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014523 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014524 },
14525
Stefan Taunereb582572012-09-21 12:52:50 +000014526 {
14527 .vendor = "ST",
14528 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014529 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100014530 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000014531 .model_id = ST_M29W512B,
14532 .total_size = 64,
14533 .page_size = 64 * 1024,
14534 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014535 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000014536 .probe = probe_jedec,
14537 .probe_timing = TIMING_ZERO,
14538 .block_erasers =
14539 {
14540 {
14541 .eraseblocks = { {64 * 1024, 1} },
14542 .block_erase = erase_chip_block_jedec,
14543 }
14544 },
14545 .write = write_jedec_1,
14546 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014547 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000014548 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000014549
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014550 {
14551 .vendor = "ST",
14552 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014553 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014554 .manufacture_id = ST_ID,
14555 .model_id = ST_M50FLW040A,
14556 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014557 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014558 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014559 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014560 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014561 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014562 .block_erasers =
14563 {
14564 {
Sean Nelson329bde72010-01-19 16:39:19 +000014565 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014566 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014567 {64 * 1024, 5}, /* block */
14568 {4 * 1024, 16}, /* sector */
14569 {4 * 1024, 16}, /* sector */
14570 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014571 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014572 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014573 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014574 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014575 }
14576 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014577 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100014578 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014579 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014580 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014581 },
14582
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014583 {
14584 .vendor = "ST",
14585 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014586 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014587 .manufacture_id = ST_ID,
14588 .model_id = ST_M50FLW040B,
14589 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014590 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014591 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014592 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014593 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014594 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014595 .block_erasers =
14596 {
14597 {
Sean Nelson329bde72010-01-19 16:39:19 +000014598 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014599 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014600 {4 * 1024, 16}, /* sector */
14601 {64 * 1024, 5}, /* block */
14602 {4 * 1024, 16}, /* sector */
14603 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014604 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014605 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014606 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014607 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014608 }
14609 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014610 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100014611 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014612 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014613 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014614 },
14615
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014616 {
14617 .vendor = "ST",
14618 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014619 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014620 .manufacture_id = ST_ID,
14621 .model_id = ST_M50FLW080A,
14622 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014623 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014624 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014625 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014626 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014627 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014628 .block_erasers =
14629 {
14630 {
Sean Nelson329bde72010-01-19 16:39:19 +000014631 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014632 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014633 {64 * 1024, 13}, /* block */
14634 {4 * 1024, 16}, /* sector */
14635 {4 * 1024, 16}, /* sector */
14636 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014637 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014638 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014639 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014640 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014641 }
14642 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014643 .printlock = printlock_regspace2_block_eraser_0,
14644 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014645 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014646 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014647 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014648 },
14649
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014650 {
14651 .vendor = "ST",
14652 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014653 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014654 .manufacture_id = ST_ID,
14655 .model_id = ST_M50FLW080B,
14656 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014657 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014658 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014659 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014660 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014661 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014662 .block_erasers =
14663 {
14664 {
Sean Nelson329bde72010-01-19 16:39:19 +000014665 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014666 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014667 {4 * 1024, 16}, /* sector */
14668 {64 * 1024, 13}, /* block */
14669 {4 * 1024, 16}, /* sector */
14670 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014671 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014672 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014673 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014674 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014675 }
14676 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014677 .printlock = printlock_regspace2_block_eraser_0,
14678 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014679 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014680 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014681 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014682 },
14683
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014684 {
14685 .vendor = "ST",
14686 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014687 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014688 .manufacture_id = ST_ID,
14689 .model_id = ST_M50FW002,
14690 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000014691 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014692 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014693 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014694 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014695 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014696 .block_erasers =
14697 {
14698 {
14699 .eraseblocks = {
14700 {64 * 1024, 3},
14701 {32 * 1024, 1},
14702 {8 * 1024, 2},
14703 {16 * 1024, 1},
14704 },
Sean Nelson28accc22010-03-19 18:47:06 +000014705 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014706 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000014707 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014708 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000014709 }
14710 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014711 .printlock = printlock_regspace2_block_eraser_0,
14712 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014713 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014714 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014715 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014716 },
14717
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014718 {
14719 .vendor = "ST",
14720 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014721 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014722 .manufacture_id = ST_ID,
14723 .model_id = ST_M50FW016,
14724 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014725 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014726 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014727 .tested = TEST_UNTESTED,
14728 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014729 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014730 .block_erasers =
14731 {
14732 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014733 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000014734 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014735 }
14736 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014737 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014738 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014739 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014740 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014741 },
14742
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014743 {
14744 .vendor = "ST",
14745 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014746 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014747 .manufacture_id = ST_ID,
14748 .model_id = ST_M50FW040,
14749 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014750 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014751 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000014752 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014753 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014754 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014755 .block_erasers =
14756 {
14757 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014758 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014759 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014760 }
14761 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014762 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014763 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014764 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014765 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014766 },
14767
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014768 {
14769 .vendor = "ST",
14770 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014771 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014772 .manufacture_id = ST_ID,
14773 .model_id = ST_M50FW080,
14774 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014775 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014776 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014777 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014778 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014779 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014780 .block_erasers =
14781 {
14782 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014783 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014784 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014785 }
14786 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014787 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014788 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014789 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014790 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014791 },
14792
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014793 {
14794 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014795 .name = "M50LPW080",
14796 .bustype = BUS_LPC, /* A/A Mux */
14797 .manufacture_id = ST_ID,
14798 .model_id = ST_M50LPW080,
14799 .total_size = 1024,
14800 .page_size = 0,
14801 .feature_bits = FEATURE_REGISTERMAP,
14802 .tested = TEST_UNTESTED,
14803 .probe = probe_82802ab,
14804 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14805 .block_erasers =
14806 {
14807 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014808 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014809 .block_erase = erase_block_82802ab,
14810 }
14811 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014812 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014813 .write = write_82802ab,
14814 .read = read_memmapped,
14815 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
14816 },
14817
14818 {
14819 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014820 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014821 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014822 .manufacture_id = ST_ID,
14823 .model_id = ST_M50LPW116,
14824 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014825 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014826 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014827 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014828 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000014829 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014830 .block_erasers =
14831 {
14832 {
14833 .eraseblocks = {
14834 {4 * 1024, 16},
14835 {64 * 1024, 30},
14836 {32 * 1024, 1},
14837 {8 * 1024, 2},
14838 {16 * 1024, 1},
14839 },
Sean Nelson28accc22010-03-19 18:47:06 +000014840 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014841 }
14842 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014843 .printlock = printlock_regspace2_block_eraser_0,
14844 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014845 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014846 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014847 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014848 },
14849
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014850 {
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030014851 .vendor = "ST",
14852 .name = "M95M02",
14853 .bustype = BUS_SPI,
14854 .manufacture_id = ST_ID,
14855 .model_id = ST_M95M02,
14856 .total_size = 256,
14857 .page_size = 256,
14858 .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO,
14859 .tested = TEST_OK_PREW,
14860 .probe = probe_spi_st95,
14861 .probe_timing = TIMING_ZERO,
14862 .block_erasers =
14863 {
14864 {
14865 .eraseblocks = { {256 * 1024, 1} },
14866 .block_erase = spi_block_erase_emulation,
14867 }
14868 },
14869
14870 .printlock = spi_prettyprint_status_register_bp1_srwd,
14871 .unlock = spi_disable_blockprotect_bp1_srwd,
14872 .write = spi_chip_write_256,
14873 .read = spi_chip_read,
14874 .voltage = {2500, 5500},
14875 },
14876
14877 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014878 .vendor = "Sanyo",
14879 .name = "LE25FU106B",
14880 .bustype = BUS_SPI,
14881 .manufacture_id = SANYO_ID,
14882 .model_id = SANYO_LE25FU106B,
14883 .total_size = 128,
14884 .page_size = 256,
14885 .feature_bits = FEATURE_WRSR_WREN,
14886 .tested = TEST_UNTESTED,
14887 .probe = probe_spi_res2,
14888 .probe_timing = TIMING_ZERO,
14889 .block_erasers =
14890 {
14891 /* FIXME: Is this correct?
14892 {
14893 .eraseblocks = { {2 * 1024, 64} },
14894 .block_erase = spi_block_erase_d7,
14895 },*/
14896 {
14897 .eraseblocks = { {32 * 1024, 4} },
14898 .block_erase = spi_block_erase_d8,
14899 }, {
14900 .eraseblocks = { {128 * 1024, 1} },
14901 .block_erase = spi_block_erase_c7,
14902 }
14903 },
14904 .printlock = spi_prettyprint_status_register_bp1_srwd,
14905 .unlock = spi_disable_blockprotect_bp1_srwd,
14906 .write = spi_chip_write_256,
14907 .read = spi_chip_read,
14908 .voltage = {2300, 3600},
14909 },
14910
14911 {
14912 .vendor = "Sanyo",
14913 .name = "LE25FU206",
14914 .bustype = BUS_SPI,
14915 .manufacture_id = SANYO_ID,
14916 .model_id = SANYO_LE25FU206,
14917 .total_size = 256,
14918 .page_size = 256,
14919 .feature_bits = FEATURE_WRSR_WREN,
14920 .tested = TEST_UNTESTED,
14921 .probe = probe_spi_res2,
14922 .probe_timing = TIMING_ZERO,
14923 .block_erasers =
14924 {
14925 {
14926 .eraseblocks = { {4 * 1024, 64} },
14927 .block_erase = spi_block_erase_d7,
14928 }, {
14929 .eraseblocks = { {64 * 1024, 4} },
14930 .block_erase = spi_block_erase_d8,
14931 }, {
14932 .eraseblocks = { {256 * 1024, 1} },
14933 .block_erase = spi_block_erase_c7,
14934 }
14935 },
14936 .printlock = spi_prettyprint_status_register_bp1_srwd,
14937 .unlock = spi_disable_blockprotect_bp1_srwd,
14938 .write = spi_chip_write_256,
14939 .read = spi_chip_read,
14940 .voltage = {2300, 3600},
14941 },
14942
14943 {
14944 .vendor = "Sanyo",
14945 .name = "LE25FU206A",
14946 .bustype = BUS_SPI,
14947 .manufacture_id = SANYO_ID,
14948 .model_id = SANYO_LE25FU206A,
14949 .total_size = 256,
14950 .page_size = 256,
14951 .tested = TEST_UNTESTED,
14952 .probe = probe_spi_rdid,
14953 .probe_timing = TIMING_ZERO,
14954 .block_erasers =
14955 {
14956 {
14957 .eraseblocks = { {4 * 1024, 64} },
14958 .block_erase = spi_block_erase_20,
14959 }, {
14960 .eraseblocks = { {4 * 1024, 64} },
14961 .block_erase = spi_block_erase_d7,
14962 }, {
14963 .eraseblocks = { {64 * 1024, 4} },
14964 .block_erase = spi_block_erase_d8,
14965 }, {
14966 .eraseblocks = { {256 * 1024, 1} },
14967 .block_erase = spi_block_erase_60,
14968 }, {
14969 .eraseblocks = { {256 * 1024, 1} },
14970 .block_erase = spi_block_erase_c7,
14971 }
14972 },
14973 .printlock = spi_prettyprint_status_register_bp2_srwd,
14974 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
14975 .write = spi_chip_write_256,
14976 .read = spi_chip_read,
14977 .voltage = {2300, 3600},
14978 },
14979
14980 {
14981 .vendor = "Sanyo",
14982 .name = "LE25FU406B",
14983 .bustype = BUS_SPI,
14984 .manufacture_id = SANYO_ID,
14985 .model_id = SANYO_LE25FU406B,
14986 .total_size = 512,
14987 .page_size = 256,
14988 .feature_bits = FEATURE_WRSR_WREN,
14989 .tested = TEST_OK_PREW,
14990 .probe = probe_spi_res2,
14991 .probe_timing = TIMING_ZERO,
14992 .block_erasers =
14993 {
14994 {
14995 .eraseblocks = { {4 * 1024, 128} },
14996 .block_erase = spi_block_erase_d7,
14997 }, {
14998 .eraseblocks = { {64 * 1024, 8} },
14999 .block_erase = spi_block_erase_d8,
15000 }, {
15001 .eraseblocks = { {512 * 1024, 1} },
15002 .block_erase = spi_block_erase_c7,
15003 }
15004 },
15005 .printlock = spi_prettyprint_status_register_bp2_srwd,
15006 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15007 .write = spi_chip_write_256,
15008 .read = spi_chip_read,
15009 .voltage = {2300, 3600},
15010 },
15011
15012 {
15013 .vendor = "Sanyo",
15014 .name = "LE25FU406C/LE25U40CMC",
15015 .bustype = BUS_SPI,
15016 .manufacture_id = SANYO_ID,
15017 .model_id = SANYO_LE25FU406C,
15018 .total_size = 512,
15019 .page_size = 256,
15020 .feature_bits = FEATURE_WRSR_WREN,
15021 .tested = TEST_OK_PREW,
15022 .probe = probe_spi_rdid,
15023 .probe_timing = TIMING_ZERO,
15024 .block_erasers =
15025 {
15026 {
15027 .eraseblocks = { {4 * 1024, 128} },
15028 .block_erase = spi_block_erase_20,
15029 }, {
15030 .eraseblocks = { {4 * 1024, 128} },
15031 .block_erase = spi_block_erase_d7,
15032 }, {
15033 .eraseblocks = { {64 * 1024, 8} },
15034 .block_erase = spi_block_erase_d8,
15035 }, {
15036 .eraseblocks = { {512 * 1024, 1} },
15037 .block_erase = spi_block_erase_60,
15038 }, {
15039 .eraseblocks = { {512 * 1024, 1} },
15040 .block_erase = spi_block_erase_c7,
15041 }
15042 },
15043 .printlock = spi_prettyprint_status_register_bp2_srwd,
15044 .unlock = spi_disable_blockprotect_bp2_srwd,
15045 .write = spi_chip_write_256,
15046 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
15047 .voltage = {2300, 3600},
15048 },
15049
15050 {
15051 .vendor = "Sanyo",
15052 .name = "LE25FW106",
15053 .bustype = BUS_SPI,
15054 .manufacture_id = SANYO_ID,
15055 .model_id = SANYO_LE25FW106,
15056 .total_size = 128,
15057 .page_size = 256,
15058 .feature_bits = FEATURE_WRSR_WREN,
15059 .tested = TEST_OK_PREW,
15060 .probe = probe_spi_res2,
15061 .probe_timing = TIMING_ZERO,
15062 .block_erasers =
15063 {
15064 {
15065 .eraseblocks = { {2 * 1024, 64} },
15066 .block_erase = spi_block_erase_d7,
15067 }, {
15068 .eraseblocks = { {32 * 1024, 4} },
15069 .block_erase = spi_block_erase_d8,
15070 }, {
15071 .eraseblocks = { {128 * 1024, 1} },
15072 .block_erase = spi_block_erase_c7,
15073 }
15074 },
15075 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
15076 .unlock = spi_disable_blockprotect_bp1_srwd,
15077 .write = spi_chip_write_256,
15078 .read = spi_chip_read,
15079 .voltage = {2700, 3600},
15080 },
15081
15082 {
15083 .vendor = "Sanyo",
15084 .name = "LE25FW203A",
15085 .bustype = BUS_SPI,
15086 .manufacture_id = SANYO_ID,
15087 .model_id = SANYO_LE25FW203A,
15088 .total_size = 256,
15089 .page_size = 256,
15090 .tested = TEST_UNTESTED,
15091 .probe = probe_spi_rdid,
15092 .probe_timing = TIMING_ZERO,
15093 .block_erasers =
15094 {
15095 {
15096 .eraseblocks = { {256, 1024} },
15097 .block_erase = spi_block_erase_db,
15098 }, {
15099 .eraseblocks = { {64 * 1024, 4} },
15100 .block_erase = spi_block_erase_d8,
15101 }, {
15102 .eraseblocks = { {256 * 1024, 1} },
15103 .block_erase = spi_block_erase_c7,
15104 }
15105 },
15106 .printlock = spi_prettyprint_status_register_default_welwip,
15107 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15108 .write = spi_chip_write_256,
15109 .read = spi_chip_read,
15110 .voltage = {2700, 3600},
15111 },
15112
15113 {
15114 .vendor = "Sanyo",
15115 .name = "LE25FW403A",
15116 .bustype = BUS_SPI,
15117 .manufacture_id = SANYO_ID,
15118 .model_id = SANYO_LE25FW403A,
15119 .total_size = 512,
15120 .page_size = 256,
15121 .tested = TEST_UNTESTED,
15122 .probe = probe_spi_rdid,
15123 .probe_timing = TIMING_ZERO,
15124 .block_erasers =
15125 {
15126 {
15127 .eraseblocks = { {256, 2 * 1024} },
15128 .block_erase = spi_block_erase_db,
15129 }, {
15130 .eraseblocks = { {64 * 1024, 8} },
15131 .block_erase = spi_block_erase_d8,
15132 }, {
15133 .eraseblocks = { {512 * 1024, 1} },
15134 .block_erase = spi_block_erase_c7,
15135 }
15136 },
15137 .printlock = spi_prettyprint_status_register_default_welwip,
15138 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15139 .write = spi_chip_write_256,
15140 .read = spi_chip_read,
15141 .voltage = {2700, 3600},
15142 },
15143
15144 {
15145 .vendor = "Sanyo",
15146 .name = "LE25FW406A",
15147 .bustype = BUS_SPI,
15148 .manufacture_id = SANYO_ID,
15149 .model_id = SANYO_LE25FW406A,
15150 .total_size = 512,
15151 .page_size = 256,
15152 .feature_bits = FEATURE_WRSR_WREN,
15153 .tested = TEST_OK_PREW,
15154 .probe = probe_spi_res2,
15155 .probe_timing = TIMING_ZERO,
15156 .block_erasers =
15157 {
15158 {
15159 .eraseblocks = { {4 * 1024, 128} },
15160 .block_erase = spi_block_erase_d7,
15161 }, {
15162 .eraseblocks = { {64 * 1024, 8} },
15163 .block_erase = spi_block_erase_d8,
15164 }, {
15165 .eraseblocks = { {512 * 1024, 1} },
15166 .block_erase = spi_block_erase_c7,
15167 }
15168 },
15169 .printlock = spi_prettyprint_status_register_plain,
15170 .unlock = spi_disable_blockprotect,
15171 .write = spi_chip_write_256,
15172 .read = spi_chip_read,
15173 .voltage = {2700, 3600},
15174 },
15175
15176 {
15177 .vendor = "Sanyo",
15178 .name = "LE25FW418A",
15179 .bustype = BUS_SPI,
15180 .manufacture_id = SANYO_ID,
15181 .model_id = SANYO_LE25FW418A,
15182 .total_size = 512,
15183 .page_size = 256,
15184 .feature_bits = FEATURE_WRSR_WREN,
15185 .tested = TEST_UNTESTED,
15186 .probe = probe_spi_res2,
15187 .probe_timing = TIMING_ZERO,
15188 .block_erasers =
15189 {
15190 {
15191 .eraseblocks = { {4 * 1024, 128} },
15192 .block_erase = spi_block_erase_d7,
15193 }, {
15194 .eraseblocks = { {64 * 1024, 8} },
15195 .block_erase = spi_block_erase_d8,
15196 }, {
15197 .eraseblocks = { {512 * 1024, 1} },
15198 .block_erase = spi_block_erase_c7,
15199 }
15200 },
15201 .printlock = spi_prettyprint_status_register_bp2_srwd,
15202 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15203 .write = spi_chip_write_256,
15204 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15205 .voltage = {2700, 3600},
15206 },
15207
15208 {
15209 .vendor = "Sanyo",
15210 .name = "LE25FW806",
15211 .bustype = BUS_SPI,
15212 .manufacture_id = SANYO_ID,
15213 .model_id = SANYO_LE25FW806,
15214 .total_size = 1024,
15215 .page_size = 256,
15216 .feature_bits = FEATURE_WRSR_WREN,
15217 .tested = TEST_UNTESTED,
15218 .probe = probe_spi_res2,
15219 .probe_timing = TIMING_ZERO,
15220 .block_erasers =
15221 {
15222 {
15223 .eraseblocks = { {4 * 1024, 256} },
15224 .block_erase = spi_block_erase_20,
15225 }, {
15226 .eraseblocks = { {4 * 1024, 256} },
15227 .block_erase = spi_block_erase_d7,
15228 }, {
15229 .eraseblocks = { {64 * 1024, 16} },
15230 .block_erase = spi_block_erase_d8,
15231 }, {
15232 .eraseblocks = { {1024 * 1024, 1} },
15233 .block_erase = spi_block_erase_c7,
15234 }
15235 },
15236 .printlock = spi_prettyprint_status_register_bp2_srwd,
15237 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15238 .write = spi_chip_write_256,
15239 .read = spi_chip_read,
15240 .voltage = {2700, 3600},
15241 },
15242
15243 {
15244 .vendor = "Sanyo",
15245 .name = "LE25FW808",
15246 .bustype = BUS_SPI,
15247 .manufacture_id = SANYO_ID,
15248 .model_id = SANYO_LE25FW808,
15249 .total_size = 1024,
15250 .page_size = 256,
15251 .feature_bits = FEATURE_WRSR_WREN,
15252 .tested = TEST_UNTESTED,
15253 .probe = probe_spi_res2,
15254 .probe_timing = TIMING_ZERO,
15255 .block_erasers =
15256 {
15257 {
15258 .eraseblocks = { {8 * 1024, 128} },
15259 .block_erase = spi_block_erase_d7,
15260 }, {
15261 .eraseblocks = { {64 * 1024, 16} },
15262 .block_erase = spi_block_erase_d8,
15263 }, {
15264 .eraseblocks = { {1024 * 1024, 1} },
15265 .block_erase = spi_block_erase_c7,
15266 }
15267 },
15268 .printlock = spi_prettyprint_status_register_bp2_srwd,
15269 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15270 .write = spi_chip_write_256,
15271 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15272 .voltage = {2700, 3600},
15273 },
15274
15275 {
15276 .vendor = "Sharp",
15277 .name = "LH28F008BJT-BTLZ1",
15278 .bustype = BUS_PARALLEL,
15279 .manufacture_id = SHARP_ID,
15280 .model_id = SHARP_LH28F008BJ__PB,
15281 .total_size = 1024,
15282 .page_size = 64 * 1024,
15283 .tested = TEST_OK_PREW,
15284 .probe = probe_82802ab,
15285 .probe_timing = TIMING_ZERO,
15286 .block_erasers =
15287 {
15288 {
15289 .eraseblocks = {
15290 {8 * 1024, 8},
15291 {64 * 1024, 15}
15292 },
15293 .block_erase = erase_block_82802ab,
15294 }, {
15295 .eraseblocks = { {1024 * 1024, 1} },
15296 .block_erase = erase_sector_49lfxxxc,
15297 }
15298 },
15299 .unlock = unlock_lh28f008bjt,
15300 .write = write_82802ab,
15301 .read = read_memmapped,
15302 .voltage = {2700, 3600},
15303 },
15304
15305 {
15306 .vendor = "Sharp",
15307 .name = "LHF00L04",
15308 .bustype = BUS_FWH, /* A/A Mux */
15309 .manufacture_id = SHARP_ID,
15310 .model_id = SHARP_LHF00L04,
15311 .total_size = 1024,
15312 .page_size = 64 * 1024,
15313 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
15314 .tested = TEST_UNTESTED,
15315 .probe = probe_82802ab,
15316 .probe_timing = TIMING_ZERO,
15317 .block_erasers =
15318 {
15319 {
15320 .eraseblocks = {
15321 {64 * 1024, 15},
15322 {8 * 1024, 8}
15323 },
15324 .block_erase = erase_block_82802ab,
15325 }, {
15326 .eraseblocks = {
15327 {1024 * 1024, 1}
15328 },
15329 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
15330 },
15331 },
15332 .unlock = unlock_regspace2_uniform_64k,
15333 .write = write_82802ab,
15334 .read = read_memmapped,
15335 .voltage = {3000, 3600},
15336 },
15337
15338 {
15339 .vendor = "Spansion",
15340 .name = "S25FL004A",
15341 .bustype = BUS_SPI,
15342 .manufacture_id = SPANSION_ID,
15343 .model_id = SPANSION_S25FL004A,
15344 .total_size = 512,
15345 .page_size = 256,
15346 .feature_bits = FEATURE_WRSR_WREN,
15347 .tested = TEST_UNTESTED,
15348 .probe = probe_spi_rdid,
15349 .probe_timing = TIMING_ZERO,
15350 .block_erasers =
15351 {
15352 {
15353 .eraseblocks = { {64 * 1024, 8} },
15354 .block_erase = spi_block_erase_d8,
15355 }, {
15356 .eraseblocks = { {512 * 1024, 1} },
15357 .block_erase = spi_block_erase_c7,
15358 }
15359 },
15360 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15361 .unlock = spi_disable_blockprotect,
15362 .write = spi_chip_write_256,
15363 .read = spi_chip_read,
15364 .voltage = {2700, 3600},
15365 },
15366
15367 {
15368 .vendor = "Spansion",
15369 .name = "S25FL008A",
15370 .bustype = BUS_SPI,
15371 .manufacture_id = SPANSION_ID,
15372 .model_id = SPANSION_S25FL008A,
15373 .total_size = 1024,
15374 .page_size = 256,
15375 .feature_bits = FEATURE_WRSR_WREN,
15376 .tested = TEST_OK_PRE,
15377 .probe = probe_spi_rdid,
15378 .probe_timing = TIMING_ZERO,
15379 .block_erasers =
15380 {
15381 {
15382 .eraseblocks = { {64 * 1024, 16} },
15383 .block_erase = spi_block_erase_d8,
15384 }, {
15385 .eraseblocks = { {1024 * 1024, 1} },
15386 .block_erase = spi_block_erase_c7,
15387 }
15388 },
15389 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15390 .unlock = spi_disable_blockprotect,
15391 .write = spi_chip_write_256,
15392 .read = spi_chip_read,
15393 .voltage = {2700, 3600},
15394 },
15395
15396 {
15397 .vendor = "Spansion",
15398 .name = "S25FL016A",
15399 .bustype = BUS_SPI,
15400 .manufacture_id = SPANSION_ID,
15401 .model_id = SPANSION_S25FL016A,
15402 .total_size = 2048,
15403 .page_size = 256,
15404 .feature_bits = FEATURE_WRSR_WREN,
15405 .tested = TEST_OK_PREW,
15406 .probe = probe_spi_rdid,
15407 .probe_timing = TIMING_ZERO,
15408 .block_erasers =
15409 {
15410 {
15411 .eraseblocks = { {64 * 1024, 32} },
15412 .block_erase = spi_block_erase_d8,
15413 }, {
15414 .eraseblocks = { {2 * 1024 * 1024, 1} },
15415 .block_erase = spi_block_erase_c7,
15416 }
15417 },
15418 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15419 .unlock = spi_disable_blockprotect,
15420 .write = spi_chip_write_256,
15421 .read = spi_chip_read,
15422 .voltage = {2700, 3600},
15423 },
15424
15425 {
15426 .vendor = "Spansion",
15427 .name = "S25FL032A/P",
15428 .bustype = BUS_SPI,
15429 .manufacture_id = SPANSION_ID,
15430 .model_id = SPANSION_S25FL032A,
15431 .total_size = 4096,
15432 .page_size = 256,
15433 .feature_bits = FEATURE_WRSR_WREN,
15434 .tested = TEST_OK_PREW,
15435 .probe = probe_spi_rdid,
15436 .probe_timing = TIMING_ZERO,
15437 .block_erasers =
15438 {
15439 {
15440 .eraseblocks = { {64 * 1024, 64} },
15441 .block_erase = spi_block_erase_d8,
15442 }, {
15443 .eraseblocks = { {4 * 1024 * 1024, 1} },
15444 .block_erase = spi_block_erase_c7,
15445 }
15446 },
15447 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15448 .unlock = spi_disable_blockprotect,
15449 .write = spi_chip_write_256,
15450 .read = spi_chip_read,
15451 .voltage = {2700, 3600},
15452 },
15453
15454 {
15455 .vendor = "Spansion",
15456 .name = "S25FL064A/P",
15457 .bustype = BUS_SPI,
15458 .manufacture_id = SPANSION_ID,
15459 .model_id = SPANSION_S25FL064A,
15460 .total_size = 8192,
15461 .page_size = 256,
15462 .feature_bits = FEATURE_WRSR_WREN,
15463 .tested = TEST_OK_PREW,
15464 .probe = probe_spi_rdid,
15465 .probe_timing = TIMING_ZERO,
15466 .block_erasers =
15467 {
15468 {
15469 .eraseblocks = { {64 * 1024, 128} },
15470 .block_erase = spi_block_erase_d8,
15471 }, {
15472 .eraseblocks = { {8 * 1024 * 1024, 1} },
15473 .block_erase = spi_block_erase_c7,
15474 }
15475 },
15476 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15477 .unlock = spi_disable_blockprotect,
15478 .write = spi_chip_write_256,
15479 .read = spi_chip_read,
15480 .voltage = {2700, 3600},
15481 },
15482
15483 {
15484 .vendor = "Spansion",
15485 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
15486 .bustype = BUS_SPI,
15487 .manufacture_id = SPANSION_ID,
15488 .model_id = SPANSION_S25FL216,
15489 .total_size = 2048,
15490 .page_size = 256,
15491 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
15492 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15493 .tested = TEST_UNTESTED,
15494 .probe = probe_spi_rdid,
15495 .probe_timing = TIMING_ZERO,
15496 .block_erasers =
15497 {
15498 {
15499 .eraseblocks = { {4 * 1024, 512} },
15500 .block_erase = spi_block_erase_20,
15501 }, {
15502 .eraseblocks = { {64 * 1024, 32} },
15503 .block_erase = spi_block_erase_d8,
15504 }, {
15505 .eraseblocks = { { 2048 * 1024, 1} },
15506 .block_erase = spi_block_erase_60,
15507 }, {
15508 .eraseblocks = { { 2048 * 1024, 1} },
15509 .block_erase = spi_block_erase_c7,
15510 }
15511 },
15512 .printlock = spi_prettyprint_status_register_bp3_srwd,
15513 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
15514 .write = spi_chip_write_256,
15515 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
15516 .voltage = {2700, 3600},
15517 },
15518
15519 {
15520 .vendor = "Spansion",
15521 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
15522 .bustype = BUS_SPI,
15523 .manufacture_id = SPANSION_ID,
15524 .model_id = SPANSION_S25FL128,
15525 .total_size = 16384,
15526 .page_size = 512,
15527 /* supports 4B addressing */
15528 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15529 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15530 .tested = TEST_UNTESTED,
15531 .probe = probe_spi_rdid,
15532 .probe_timing = TIMING_ZERO,
15533 .block_erasers =
15534 {
15535 {
15536 .eraseblocks = { {256 * 1024, 64} },
15537 .block_erase = spi_block_erase_d8,
15538 }, {
15539 .eraseblocks = { { 16384 * 1024, 1} },
15540 .block_erase = spi_block_erase_60,
15541 }, {
15542 .eraseblocks = { { 16384 * 1024, 1} },
15543 .block_erase = spi_block_erase_c7,
15544 }
15545 },
15546 .printlock = spi_prettyprint_status_register_bp2_srwd,
15547 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15548 .write = spi_chip_write_256, /* Multi I/O supported */
15549 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15550 .voltage = {2700, 3600},
15551 },
15552
15553 {
15554 .vendor = "Spansion",
15555 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15556 .bustype = BUS_SPI,
15557 .manufacture_id = SPANSION_ID,
15558 .model_id = SPANSION_S25FL128,
15559 .total_size = 16384,
15560 .page_size = 256,
15561 /* supports 4B addressing */
15562 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15563 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15564 .tested = TEST_OK_PREW,
15565 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
15566 .probe = probe_spi_rdid,
15567 .probe_timing = TIMING_ZERO,
15568 .block_erasers =
15569 {
15570 {
15571 /* This chip supports erasing of 32 so-called "parameter sectors" with
15572 * opcode 0x20 which may be configured to be on top or bottom of the address
15573 * space. Trying to access an address outside these 4kB blocks does have no
15574 * effect on the memory contents, e.g.
15575 .eraseblocks = {
15576 {4 * 1024, 32},
15577 {64 * 1024, 254} // inaccessible
15578 },
15579 .block_erase = spi_block_erase_20,
15580 }, { */
15581 .eraseblocks = { { 64 * 1024, 256} },
15582 .block_erase = spi_block_erase_d8,
15583 }, {
15584 .eraseblocks = { { 16384 * 1024, 1} },
15585 .block_erase = spi_block_erase_60,
15586 }, {
15587 .eraseblocks = { { 16384 * 1024, 1} },
15588 .block_erase = spi_block_erase_c7,
15589 }
15590 },
15591 .printlock = spi_prettyprint_status_register_bp2_srwd,
15592 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15593 .write = spi_chip_write_256, /* Multi I/O supported */
15594 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15595 .voltage = {2700, 3600},
15596 },
15597
15598 {
15599 .vendor = "Spansion",
15600 .name = "S25FL128P......0", /* uniform 64 kB sectors */
15601 .bustype = BUS_SPI,
15602 .manufacture_id = SPANSION_ID,
15603 .model_id = SPANSION_S25FL128,
15604 .total_size = 16384,
15605 .page_size = 256,
15606 .feature_bits = FEATURE_WRSR_WREN,
15607 .tested = TEST_OK_PREW,
15608 .probe = probe_spi_rdid,
15609 .probe_timing = TIMING_ZERO,
15610 .block_erasers =
15611 {
15612 {
15613 .eraseblocks = { {64 * 1024, 256} },
15614 .block_erase = spi_block_erase_20,
15615 }, {
15616 .eraseblocks = { {64 * 1024, 256} },
15617 .block_erase = spi_block_erase_d8,
15618 }, {
15619 .eraseblocks = { { 16384 * 1024, 1} },
15620 .block_erase = spi_block_erase_60,
15621 }, {
15622 .eraseblocks = { { 16384 * 1024, 1} },
15623 .block_erase = spi_block_erase_c7,
15624 }
15625 },
15626 .printlock = spi_prettyprint_status_register_bp3_srwd,
15627 .unlock = spi_disable_blockprotect_bp3_srwd,
15628 .write = spi_chip_write_256,
15629 .read = spi_chip_read, /* Fast read (0x0B) supported */
15630 .voltage = {2700, 3600},
15631 },
15632
15633 {
15634 .vendor = "Spansion",
15635 .name = "S25FL128P......1", /* uniform 256kB sectors */
15636 .bustype = BUS_SPI,
15637 .manufacture_id = SPANSION_ID,
15638 .model_id = SPANSION_S25FL128,
15639 .total_size = 16384,
15640 .page_size = 256,
15641 .feature_bits = FEATURE_WRSR_WREN,
15642 .tested = TEST_UNTESTED,
15643 .probe = probe_spi_rdid,
15644 .probe_timing = TIMING_ZERO,
15645 .block_erasers =
15646 {
15647 {
15648 .eraseblocks = { {256 * 1024, 64} },
15649 .block_erase = spi_block_erase_d8,
15650 }, {
15651 .eraseblocks = { { 16384 * 1024, 1} },
15652 .block_erase = spi_block_erase_c7,
15653 }
15654 },
15655 .printlock = spi_prettyprint_status_register_bp2_srwd,
15656 .unlock = spi_disable_blockprotect_bp2_srwd,
15657 .write = spi_chip_write_256,
15658 .read = spi_chip_read, /* Fast read (0x0B) supported */
15659 .voltage = {2700, 3600},
15660 },
15661
15662 {
15663 .vendor = "Spansion",
15664 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15665 .bustype = BUS_SPI,
15666 .manufacture_id = SPANSION_ID,
15667 .model_id = SPANSION_S25FL128,
15668 .total_size = 16384,
15669 .page_size = 256,
15670 /* supports 4B addressing */
15671 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15672 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15673 .tested = TEST_OK_PREW,
15674 .probe = probe_spi_rdid,
15675 .probe_timing = TIMING_ZERO,
15676 .block_erasers =
15677 {
15678 {
15679 /* This chip supports erasing of the 32 so-called "parameter sectors" with
15680 * opcode 0x20. Trying to access an address outside these 4kB blocks does
15681 * have no effect on the memory contents, but sets a flag in the SR.
15682 .eraseblocks = {
15683 {4 * 1024, 32},
15684 {64 * 1024, 254} // inaccessible
15685 },
15686 .block_erase = spi_block_erase_20,
15687 }, { */
15688 .eraseblocks = { { 64 * 1024, 256} },
15689 .block_erase = spi_block_erase_d8,
15690 }, {
15691 .eraseblocks = { { 16384 * 1024, 1} },
15692 .block_erase = spi_block_erase_60,
15693 }, {
15694 .eraseblocks = { { 16384 * 1024, 1} },
15695 .block_erase = spi_block_erase_c7,
15696 }
15697 },
15698 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
15699 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
15700 .write = spi_chip_write_256, /* Multi I/O supported */
15701 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15702 .voltage = {2700, 3600},
15703 },
15704
15705 {
15706 .vendor = "Spansion",
15707 .name = "S25FL128S......1", /* uniform 256 kB sectors */
15708 .bustype = BUS_SPI,
15709 .manufacture_id = SPANSION_ID,
15710 .model_id = SPANSION_S25FL128,
15711 .total_size = 16384,
15712 .page_size = 512,
15713 /* supports 4B addressing */
15714 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15715 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15716 .tested = TEST_UNTESTED,
15717 .probe = probe_spi_rdid,
15718 .probe_timing = TIMING_ZERO,
15719 .block_erasers =
15720 {
15721 {
15722 .eraseblocks = { {256 * 1024, 64} },
15723 .block_erase = spi_block_erase_d8,
15724 }, {
15725 .eraseblocks = { { 16384 * 1024, 1} },
15726 .block_erase = spi_block_erase_60,
15727 }, {
15728 .eraseblocks = { { 16384 * 1024, 1} },
15729 .block_erase = spi_block_erase_c7,
15730 }
15731 },
15732 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
15733 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
15734 .write = spi_chip_write_256, /* Multi I/O supported */
15735 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15736 .voltage = {2700, 3600},
15737 },
15738
15739 {
15740 .vendor = "Spansion",
15741 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15742 .bustype = BUS_SPI,
15743 .manufacture_id = SPANSION_ID,
15744 .model_id = SPANSION_S25FL128,
15745 .total_size = 16384,
15746 .page_size = 256,
15747 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
15748 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15749 .tested = TEST_OK_PREW,
15750 .probe = probe_spi_rdid,
15751 .probe_timing = TIMING_ZERO,
15752 .block_erasers =
15753 {
15754 {
15755 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
15756 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
15757 * effect on the memory contents, but sets a flag in the SR.
15758 .eraseblocks = {
15759 {4 * 1024, 32},
15760 {64 * 1024, 254} // inaccessible
15761 },
15762 .block_erase = spi_block_erase_20,
15763 }, { */
15764 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
15765 .eraseblocks = {
15766 {8 * 1024, 16},
15767 {64 * 1024, 254} // inaccessible
15768 },
15769 .block_erase = spi_block_erase_40,
15770 }, { */
15771 .eraseblocks = { { 64 * 1024, 256} },
15772 .block_erase = spi_block_erase_d8,
15773 }, {
15774 .eraseblocks = { { 16384 * 1024, 1} },
15775 .block_erase = spi_block_erase_60,
15776 }, {
15777 .eraseblocks = { { 16384 * 1024, 1} },
15778 .block_erase = spi_block_erase_c7,
15779 }
15780 },
15781 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
15782 .unlock = spi_disable_blockprotect_bp2_srwd,
15783 .write = spi_chip_write_256, /* Multi I/O supported */
15784 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15785 .voltage = {2700, 3600},
15786 },
15787
15788 {
15789 .vendor = "Spansion",
15790 .name = "S25FL129P......1", /* uniform 256 kB sectors */
15791 .bustype = BUS_SPI,
15792 .manufacture_id = SPANSION_ID,
15793 .model_id = SPANSION_S25FL128,
15794 .total_size = 16384,
15795 .page_size = 256,
15796 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
15797 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15798 .tested = TEST_UNTESTED,
15799 .probe = probe_spi_rdid,
15800 .probe_timing = TIMING_ZERO,
15801 .block_erasers =
15802 {
15803 {
15804 .eraseblocks = { {256 * 1024, 64} },
15805 .block_erase = spi_block_erase_d8,
15806 }, {
15807 .eraseblocks = { { 16384 * 1024, 1} },
15808 .block_erase = spi_block_erase_60,
15809 }, {
15810 .eraseblocks = { { 16384 * 1024, 1} },
15811 .block_erase = spi_block_erase_c7,
15812 }
15813 },
15814 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
15815 .unlock = spi_disable_blockprotect_bp2_srwd,
15816 .write = spi_chip_write_256, /* Multi I/O supported */
15817 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15818 .voltage = {2700, 3600},
15819 },
15820
15821 {
15822 .vendor = "Spansion",
15823 .name = "S25FL132K",
15824 .bustype = BUS_SPI,
15825 .manufacture_id = SPANSION_ID,
15826 .model_id = SPANSION_S25FL132K,
15827 .total_size = 4096,
15828 .page_size = 256,
15829 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
15830 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15831 .tested = TEST_UNTESTED,
15832 .probe = probe_spi_rdid,
15833 .probe_timing = TIMING_ZERO,
15834 .block_erasers =
15835 {
15836 {
15837 .eraseblocks = { {4 * 1024, 1024} },
15838 .block_erase = spi_block_erase_20,
15839 }, {
15840 .eraseblocks = { {64 * 1024, 64} },
15841 .block_erase = spi_block_erase_d8,
15842 }, {
15843 .eraseblocks = { { 4096 * 1024, 1} },
15844 .block_erase = spi_block_erase_60,
15845 }, {
15846 .eraseblocks = { { 4096 * 1024, 1} },
15847 .block_erase = spi_block_erase_c7,
15848 }
15849 },
15850 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
15851 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15852 .write = spi_chip_write_256,
15853 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15854 .voltage = {2700, 3600},
15855 },
15856
15857 {
15858 .vendor = "Spansion",
15859 .name = "S25FL164K",
15860 .bustype = BUS_SPI,
15861 .manufacture_id = SPANSION_ID,
15862 .model_id = SPANSION_S25FL164K,
15863 .total_size = 8192,
15864 .page_size = 256,
15865 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
15866 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15867 .tested = TEST_OK_PREW,
15868 .probe = probe_spi_rdid,
15869 .probe_timing = TIMING_ZERO,
15870 .block_erasers =
15871 {
15872 {
15873 .eraseblocks = { {4 * 1024, 2048} },
15874 .block_erase = spi_block_erase_20,
15875 }, {
15876 .eraseblocks = { {64 * 1024, 128} },
15877 .block_erase = spi_block_erase_d8,
15878 }, {
15879 .eraseblocks = { { 8192 * 1024, 1} },
15880 .block_erase = spi_block_erase_60,
15881 }, {
15882 .eraseblocks = { { 8192 * 1024, 1} },
15883 .block_erase = spi_block_erase_c7,
15884 }
15885 },
15886 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
15887 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15888 .write = spi_chip_write_256,
15889 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15890 .voltage = {2700, 3600},
15891 },
15892
15893 {
15894 .vendor = "Spansion",
15895 .name = "S25FL204K",
15896 .bustype = BUS_SPI,
15897 .manufacture_id = SPANSION_ID,
15898 .model_id = SPANSION_S25FL204,
15899 .total_size = 512,
15900 .page_size = 256,
15901 .feature_bits = FEATURE_WRSR_WREN,
15902 .tested = TEST_OK_PR,
15903 .probe = probe_spi_rdid,
15904 .probe_timing = TIMING_ZERO,
15905 .block_erasers =
15906 {
15907 {
15908 .eraseblocks = { {4 * 1024, 128} },
15909 .block_erase = spi_block_erase_20,
15910 }, {
15911 .eraseblocks = { {64 * 1024, 8} },
15912 .block_erase = spi_block_erase_d8,
15913 }, {
15914 .eraseblocks = { { 512 * 1024, 1} },
15915 .block_erase = spi_block_erase_60,
15916 }, {
15917 .eraseblocks = { { 512 * 1024, 1} },
15918 .block_erase = spi_block_erase_c7,
15919 }
15920 },
15921 .printlock = spi_prettyprint_status_register_bp3_srwd,
15922 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
15923 .write = spi_chip_write_256,
15924 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
15925 .voltage = {2700, 3600},
15926 },
15927
15928 {
15929 .vendor = "Spansion",
15930 .name = "S25FL208K",
15931 .bustype = BUS_SPI,
15932 .manufacture_id = SPANSION_ID,
15933 .model_id = SPANSION_S25FL208,
15934 .total_size = 1024,
15935 .page_size = 256,
15936 .feature_bits = FEATURE_WRSR_WREN,
15937 .tested = TEST_OK_PREW,
15938 .probe = probe_spi_rdid,
15939 .probe_timing = TIMING_ZERO,
15940 .block_erasers =
15941 {
15942 {
15943 .eraseblocks = { {4 * 1024, 256} },
15944 .block_erase = spi_block_erase_20,
15945 }, {
15946 .eraseblocks = { {64 * 1024, 16} },
15947 .block_erase = spi_block_erase_d8,
15948 }, {
15949 .eraseblocks = { { 1024 * 1024, 1} },
15950 .block_erase = spi_block_erase_60,
15951 }, {
15952 .eraseblocks = { { 1024 * 1024, 1} },
15953 .block_erase = spi_block_erase_c7,
15954 }
15955 },
15956 .printlock = spi_prettyprint_status_register_bp3_srwd,
15957 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
15958 .write = spi_chip_write_256,
15959 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
15960 .voltage = {2700, 3600},
15961 },
15962
15963 {
15964 .vendor = "Spansion",
15965 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15966 .bustype = BUS_SPI,
15967 .manufacture_id = SPANSION_ID,
15968 .model_id = SPANSION_S25FL256,
15969 .total_size = 32768,
15970 .page_size = 256,
15971 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15972 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_EAR7,
15973 .tested = TEST_OK_PREW,
15974 .probe = probe_spi_rdid,
15975 .probe_timing = TIMING_ZERO,
15976 .block_erasers =
15977 {
15978 {
15979 /* This chip supports erasing of the 32 so-called "parameter sectors" with
15980 * opcode 0x20. Trying to access an address outside these 4kB blocks does
15981 * have no effect on the memory contents, but sets a flag in the SR.
15982 .eraseblocks = {
15983 {4 * 1024, 32},
15984 {64 * 1024, 254} // inaccessible
15985 },
15986 .block_erase = spi_block_erase_20,
15987 }, { */
15988 .eraseblocks = { { 64 * 1024, 512} },
15989 .block_erase = spi_block_erase_dc,
15990 }, {
15991 .eraseblocks = { { 64 * 1024, 512} },
15992 .block_erase = spi_block_erase_d8,
15993 }, {
15994 .eraseblocks = { { 32768 * 1024, 1} },
15995 .block_erase = spi_block_erase_60,
15996 }, {
15997 .eraseblocks = { { 32768 * 1024, 1} },
15998 .block_erase = spi_block_erase_c7,
15999 }
16000 },
16001 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16002 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16003 .write = spi_chip_write_256, /* Multi I/O supported */
16004 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16005 .voltage = {2700, 3600},
16006 .wrea_override = 0x17,
16007 },
16008
16009 {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016010 .vendor = "Spansion",
16011 .name = "S25FL512S",
16012 .bustype = BUS_SPI,
16013 .manufacture_id = SPANSION_ID,
16014 .model_id = SPANSION_S25FL512,
16015 .total_size = 65536, /* 512 Mb (=> 64 MB)) */
16016 .page_size = 256,
16017 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16018 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_NATIVE,
16019 .tested = TEST_OK_PREW,
16020 .probe = probe_spi_rdid,
16021 .probe_timing = TIMING_ZERO,
16022 .block_erasers =
16023 {
16024 {
16025 .eraseblocks = { { 256 * 1024, 256} },
16026 .block_erase = spi_block_erase_dc,
16027 }, {
16028 .eraseblocks = { { 65536 * 1024, 1} },
16029 .block_erase = spi_block_erase_60,
16030 }, {
16031 .eraseblocks = { { 65536 * 1024, 1} },
16032 .block_erase = spi_block_erase_c7,
16033 }
16034 },
16035 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16036 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16037 .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */
16038 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16039 .voltage = {2700, 3600},
16040 },
16041
16042 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016043 .vendor = "SyncMOS/MoselVitelic",
16044 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016045 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016046 .manufacture_id = SYNCMOS_MVC_ID,
16047 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016048 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016049 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016050 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016051 .tested = TEST_UNTESTED,
16052 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016053 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016054 .block_erasers =
16055 {
16056 {
16057 .eraseblocks = { {512, 256} },
16058 .block_erase = erase_sector_jedec,
16059 }, {
16060 .eraseblocks = { {128 * 1024, 1} },
16061 .block_erase = erase_chip_block_jedec,
16062 },
16063 },
Sean Nelson35727f72010-01-28 23:55:12 +000016064 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016065 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016066 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016067 },
16068
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016069 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016070 .vendor = "SyncMOS/MoselVitelic",
16071 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016072 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016073 .manufacture_id = SYNCMOS_MVC_ID,
16074 .model_id = SM_MVC_29C51001T,
16075 .total_size = 128,
16076 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016077 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016078 .tested = TEST_UNTESTED,
16079 .probe = probe_jedec,
16080 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16081 .block_erasers =
16082 {
16083 {
16084 .eraseblocks = { {512, 256} },
16085 .block_erase = erase_sector_jedec,
16086 }, {
16087 .eraseblocks = { {128 * 1024, 1} },
16088 .block_erase = erase_chip_block_jedec,
16089 },
16090 },
16091 .write = write_jedec_1,
16092 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016093 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016094 },
16095
16096 {
16097 .vendor = "SyncMOS/MoselVitelic",
16098 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016099 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016100 .manufacture_id = SYNCMOS_MVC_ID,
16101 .model_id = SM_MVC_29C51002B,
16102 .total_size = 256,
16103 .page_size = 512,
16104 .feature_bits = FEATURE_EITHER_RESET,
16105 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016106 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016107 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016108 .block_erasers =
16109 {
16110 {
16111 .eraseblocks = { {512, 512} },
16112 .block_erase = erase_sector_jedec,
16113 }, {
16114 .eraseblocks = { {256 * 1024, 1} },
16115 .block_erase = erase_chip_block_jedec,
16116 },
16117 },
Sean Nelson35727f72010-01-28 23:55:12 +000016118 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016119 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000016120 },
16121
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016122 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016123 .vendor = "SyncMOS/MoselVitelic",
16124 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016125 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016126 .manufacture_id = SYNCMOS_MVC_ID,
16127 .model_id = SM_MVC_29C51002T,
16128 .total_size = 256,
16129 .page_size = 512,
16130 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016131 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016132 .probe = probe_jedec,
16133 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16134 .block_erasers =
16135 {
16136 {
16137 .eraseblocks = { {512, 512} },
16138 .block_erase = erase_sector_jedec,
16139 }, {
16140 .eraseblocks = { {256 * 1024, 1} },
16141 .block_erase = erase_chip_block_jedec,
16142 },
16143 },
16144 .write = write_jedec_1,
16145 .read = read_memmapped,
16146 },
16147
16148 {
16149 .vendor = "SyncMOS/MoselVitelic",
16150 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016151 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016152 .manufacture_id = SYNCMOS_MVC_ID,
16153 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016154 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016155 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016156 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016157 .tested = TEST_UNTESTED,
16158 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016159 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000016160 .block_erasers =
16161 {
16162 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016163 .eraseblocks = { {1024, 512} },
16164 .block_erase = erase_sector_jedec,
16165 }, {
16166 .eraseblocks = { {512 * 1024, 1} },
16167 .block_erase = erase_chip_block_jedec,
16168 },
16169 },
16170 .write = write_jedec_1,
16171 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016172 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016173 },
16174
16175 {
16176 .vendor = "SyncMOS/MoselVitelic",
16177 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016178 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016179 .manufacture_id = SYNCMOS_MVC_ID,
16180 .model_id = SM_MVC_29C51004T,
16181 .total_size = 512,
16182 .page_size = 1024,
16183 .feature_bits = FEATURE_EITHER_RESET,
16184 .tested = TEST_UNTESTED,
16185 .probe = probe_jedec,
16186 .probe_timing = TIMING_ZERO,
16187 .block_erasers =
16188 {
16189 {
16190 .eraseblocks = { {1024, 512} },
16191 .block_erase = erase_sector_jedec,
16192 }, {
16193 .eraseblocks = { {512 * 1024, 1} },
16194 .block_erase = erase_chip_block_jedec,
16195 },
16196 },
16197 .write = write_jedec_1,
16198 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016199 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016200 },
16201
16202 {
16203 .vendor = "SyncMOS/MoselVitelic",
16204 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016205 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016206 .manufacture_id = SYNCMOS_MVC_ID,
16207 .model_id = SM_MVC_29C31004B,
16208 .total_size = 512,
16209 .page_size = 1024,
16210 .feature_bits = FEATURE_EITHER_RESET,
16211 .tested = TEST_UNTESTED,
16212 .probe = probe_jedec,
16213 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16214 .block_erasers =
16215 {
16216 {
16217 .eraseblocks = { {1024, 512} },
16218 .block_erase = erase_sector_jedec,
16219 }, {
16220 .eraseblocks = { {512 * 1024, 1} },
16221 .block_erase = erase_chip_block_jedec,
16222 },
16223 },
16224 .write = write_jedec_1,
16225 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016226 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016227 },
16228
16229 {
16230 .vendor = "SyncMOS/MoselVitelic",
16231 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016232 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016233 .manufacture_id = SYNCMOS_MVC_ID,
16234 .model_id = SM_MVC_29C31004T,
16235 .total_size = 512,
16236 .page_size = 1024,
16237 .feature_bits = FEATURE_EITHER_RESET,
16238 .tested = TEST_UNTESTED,
16239 .probe = probe_jedec,
16240 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16241 .block_erasers =
16242 {
16243 {
16244 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000016245 .block_erase = erase_sector_jedec,
16246 }, {
16247 .eraseblocks = { {512 * 1024, 1} },
16248 .block_erase = erase_chip_block_jedec,
16249 },
16250 },
Sean Nelson35727f72010-01-28 23:55:12 +000016251 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016252 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016253 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016254 },
16255
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016256 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016257 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016258 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016259 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016260 .manufacture_id = TI_OLD_ID,
16261 .model_id = TI_TMS29F002RB,
16262 .total_size = 256,
16263 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016264 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016265 .tested = TEST_UNTESTED,
16266 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016267 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016268 .block_erasers =
16269 {
16270 {
16271 .eraseblocks = {
16272 {16 * 1024, 1},
16273 {8 * 1024, 2},
16274 {32 * 1024, 1},
16275 {64 * 1024, 3},
16276 },
16277 .block_erase = erase_sector_jedec,
16278 }, {
16279 .eraseblocks = { {256 * 1024, 1} },
16280 .block_erase = erase_chip_block_jedec,
16281 },
16282 },
Sean Nelson35727f72010-01-28 23:55:12 +000016283 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016284 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016285 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016286 },
16287
16288 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016289 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016290 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016291 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016292 .manufacture_id = TI_OLD_ID,
16293 .model_id = TI_TMS29F002RT,
16294 .total_size = 256,
16295 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016296 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016297 .tested = TEST_UNTESTED,
16298 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016299 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016300 .block_erasers =
16301 {
16302 {
16303 .eraseblocks = {
16304 {64 * 1024, 3},
16305 {32 * 1024, 1},
16306 {8 * 1024, 2},
16307 {16 * 1024, 1},
16308 },
16309 .block_erase = erase_sector_jedec,
16310 }, {
16311 .eraseblocks = { {256 * 1024, 1} },
16312 .block_erase = erase_chip_block_jedec,
16313 },
16314 },
Sean Nelson35727f72010-01-28 23:55:12 +000016315 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016316 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016317 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016318 },
16319
16320 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016321 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016322 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016323 .bustype = BUS_SPI,
16324 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016325 .model_id = WINBOND_NEX_W25P16,
16326 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016327 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016328 .feature_bits = FEATURE_WRSR_WREN,
16329 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016330 .probe = probe_spi_rdid,
16331 .probe_timing = TIMING_ZERO,
16332 .block_erasers =
16333 {
16334 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016335 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016336 .block_erase = spi_block_erase_d8,
16337 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016338 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016339 .block_erase = spi_block_erase_c7,
16340 }
16341 },
16342 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16343 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016344 .write = spi_chip_write_256,
16345 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016346 .voltage = {2700, 3600},
16347 },
16348
16349 {
16350 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016351 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016352 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016353 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016354 .model_id = WINBOND_NEX_W25P32,
16355 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016356 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016357 .feature_bits = FEATURE_WRSR_WREN,
16358 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016359 .probe = probe_spi_rdid,
16360 .probe_timing = TIMING_ZERO,
16361 .block_erasers =
16362 {
16363 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016364 .eraseblocks = { {64 * 1024, 64} },
16365 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016366 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016367 .eraseblocks = { {4096 * 1024, 1} },
16368 .block_erase = spi_block_erase_c7,
16369 }
16370 },
16371 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16372 .unlock = spi_disable_blockprotect,
16373 .write = spi_chip_write_256,
16374 .read = spi_chip_read, /* Fast read (0x0B) supported */
16375 .voltage = {2700, 3600},
16376 },
16377
16378 {
16379 .vendor = "Winbond",
16380 .name = "W25P80",
16381 .bustype = BUS_SPI,
16382 .manufacture_id = WINBOND_NEX_ID,
16383 .model_id = WINBOND_NEX_W25P80,
16384 .total_size = 1024,
16385 .page_size = 256,
16386 .feature_bits = FEATURE_WRSR_WREN,
16387 .tested = TEST_UNTESTED,
16388 .probe = probe_spi_rdid,
16389 .probe_timing = TIMING_ZERO,
16390 .block_erasers =
16391 {
16392 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000016393 .eraseblocks = { {64 * 1024, 16} },
16394 .block_erase = spi_block_erase_d8,
16395 }, {
16396 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000016397 .block_erase = spi_block_erase_c7,
16398 }
16399 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016400 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016401 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016402 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016403 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016404 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000016405 },
16406
16407 {
16408 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016409 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016410 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016411 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016412 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016413 .total_size = 16384,
16414 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016415 /* supports SFDP */
16416 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000016417 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016418 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016419 .probe = probe_spi_rdid,
16420 .probe_timing = TIMING_ZERO,
16421 .block_erasers =
16422 {
16423 {
16424 .eraseblocks = { {4 * 1024, 4096} },
16425 .block_erase = spi_block_erase_20,
16426 }, {
16427 .eraseblocks = { {32 * 1024, 512} },
16428 .block_erase = spi_block_erase_52,
16429 }, {
16430 .eraseblocks = { {64 * 1024, 256} },
16431 .block_erase = spi_block_erase_d8,
16432 }, {
16433 .eraseblocks = { {16 * 1024 * 1024, 1} },
16434 .block_erase = spi_block_erase_60,
16435 }, {
16436 .eraseblocks = { {16 * 1024 * 1024, 1} },
16437 .block_erase = spi_block_erase_c7,
16438 }
16439 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016440 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000016441 .unlock = spi_disable_blockprotect,
16442 .write = spi_chip_write_256,
16443 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016444 .voltage = {2700, 3600},
16445 },
16446
16447 {
16448 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020016449 .name = "W25Q128.V..M",
16450 .bustype = BUS_SPI,
16451 .manufacture_id = WINBOND_NEX_ID,
16452 .model_id = WINBOND_NEX_W25Q128_V_M,
16453 .total_size = 16384,
16454 .page_size = 256,
16455 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16456 .tested = TEST_OK_PREW,
16457 .probe = probe_spi_rdid,
16458 .probe_timing = TIMING_ZERO,
16459 .block_erasers =
16460 {
16461 {
16462 .eraseblocks = { {4 * 1024, 4096} },
16463 .block_erase = spi_block_erase_20,
16464 }, {
16465 .eraseblocks = { {32 * 1024, 512} },
16466 .block_erase = spi_block_erase_52,
16467 }, {
16468 .eraseblocks = { {64 * 1024, 256} },
16469 .block_erase = spi_block_erase_d8,
16470 }, {
16471 .eraseblocks = { {16 * 1024 * 1024, 1} },
16472 .block_erase = spi_block_erase_60,
16473 }, {
16474 .eraseblocks = { {16 * 1024 * 1024, 1} },
16475 .block_erase = spi_block_erase_c7,
16476 }
16477 },
Alan Greena1fc01d2019-09-23 17:12:44 +100016478 .printlock = spi_prettyprint_status_register_plain,
Patrick Rudolph34323492018-10-04 14:59:40 +020016479 .unlock = spi_disable_blockprotect,
16480 .write = spi_chip_write_256,
16481 .read = spi_chip_read,
16482 .voltage = {2700, 3600},
16483 },
16484
16485 {
16486 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016487 .name = "W25Q128.W",
16488 .bustype = BUS_SPI,
16489 .manufacture_id = WINBOND_NEX_ID,
16490 .model_id = WINBOND_NEX_W25Q128_W,
16491 .total_size = 16384,
16492 .page_size = 256,
16493 /* supports SFDP */
16494 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16495 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16496 .tested = TEST_OK_PREW,
16497 .probe = probe_spi_rdid,
16498 .probe_timing = TIMING_ZERO,
16499 .block_erasers =
16500 {
16501 {
16502 .eraseblocks = { {4 * 1024, 4096} },
16503 .block_erase = spi_block_erase_20,
16504 }, {
16505 .eraseblocks = { {32 * 1024, 512} },
16506 .block_erase = spi_block_erase_52,
16507 }, {
16508 .eraseblocks = { {64 * 1024, 256} },
16509 .block_erase = spi_block_erase_d8,
16510 }, {
16511 .eraseblocks = { {16 * 1024 * 1024, 1} },
16512 .block_erase = spi_block_erase_60,
16513 }, {
16514 .eraseblocks = { {16 * 1024 * 1024, 1} },
16515 .block_erase = spi_block_erase_c7,
16516 }
16517 },
16518 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16519 .unlock = spi_disable_blockprotect,
16520 .write = spi_chip_write_256,
16521 .read = spi_chip_read,
16522 .voltage = {1650, 1950},
16523 },
16524
16525 {
16526 .vendor = "Winbond",
Peichao Wang1a119492019-11-11 15:26:41 +080016527 .name = "W25Q128.JW.DTR",
16528 .bustype = BUS_SPI,
16529 .manufacture_id = WINBOND_NEX_ID,
16530 .model_id = WINBOND_NEX_W25Q128_DTR,
16531 .total_size = 16384,
16532 .page_size = 256,
16533 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16534 .tested = TEST_OK_PREW,
16535 .probe = probe_spi_rdid,
16536 .probe_timing = TIMING_ZERO,
16537 .block_erasers =
16538 {
16539 {
16540 .eraseblocks = { {4 * 1024, 4096} },
16541 .block_erase = spi_block_erase_20,
16542 }, {
16543 .eraseblocks = { {32 * 1024, 512} },
16544 .block_erase = spi_block_erase_52,
16545 }, {
16546 .eraseblocks = { {64 * 1024, 256} },
16547 .block_erase = spi_block_erase_d8,
16548 }, {
16549 .eraseblocks = { {16 * 1024 * 1024, 1} },
16550 .block_erase = spi_block_erase_60,
16551 }, {
16552 .eraseblocks = { {16 * 1024 * 1024, 1} },
16553 .block_erase = spi_block_erase_c7,
16554 }
16555 },
16556 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16557 .unlock = spi_disable_blockprotect,
16558 .write = spi_chip_write_256,
16559 .read = spi_chip_read,
16560 .voltage = {1650, 1950},
16561 },
16562
16563 {
16564 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016565 .name = "W25Q16.V",
16566 .bustype = BUS_SPI,
16567 .manufacture_id = WINBOND_NEX_ID,
16568 .model_id = WINBOND_NEX_W25Q16_V,
16569 .total_size = 2048,
16570 .page_size = 256,
16571 /* supports SFDP */
16572 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16573 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16574 .tested = TEST_OK_PREW,
16575 .probe = probe_spi_rdid,
16576 .probe_timing = TIMING_ZERO,
16577 .block_erasers =
16578 {
16579 {
16580 .eraseblocks = { {4 * 1024, 512} },
16581 .block_erase = spi_block_erase_20,
16582 }, {
16583 .eraseblocks = { {32 * 1024, 64} },
16584 .block_erase = spi_block_erase_52,
16585 }, {
16586 .eraseblocks = { {64 * 1024, 32} },
16587 .block_erase = spi_block_erase_d8,
16588 }, {
16589 .eraseblocks = { {2 * 1024 * 1024, 1} },
16590 .block_erase = spi_block_erase_60,
16591 }, {
16592 .eraseblocks = { {2 * 1024 * 1024, 1} },
16593 .block_erase = spi_block_erase_c7,
16594 }
16595 },
16596 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16597 .unlock = spi_disable_blockprotect,
16598 .write = spi_chip_write_256,
16599 .read = spi_chip_read,
16600 .voltage = {2700, 3600},
16601 },
16602
16603 {
16604 .vendor = "Winbond",
16605 .name = "W25Q16.W",
16606 .bustype = BUS_SPI,
16607 .manufacture_id = WINBOND_NEX_ID,
16608 .model_id = WINBOND_NEX_W25Q16_W,
16609 .total_size = 2048,
16610 .page_size = 256,
16611 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16612 /* QPI enable 0x38, disable 0xFF */
16613 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16614 .tested = TEST_UNTESTED,
16615 .probe = probe_spi_rdid,
16616 .probe_timing = TIMING_ZERO,
16617 .block_erasers =
16618 {
16619 {
16620 .eraseblocks = { {4 * 1024, 512} },
16621 .block_erase = spi_block_erase_20,
16622 }, {
16623 .eraseblocks = { {32 * 1024, 64} },
16624 .block_erase = spi_block_erase_52,
16625 }, {
16626 .eraseblocks = { {64 * 1024, 32} },
16627 .block_erase = spi_block_erase_d8,
16628 }, {
16629 .eraseblocks = { {2 * 1024 * 1024, 1} },
16630 .block_erase = spi_block_erase_60,
16631 }, {
16632 .eraseblocks = { {2 * 1024 * 1024, 1} },
16633 .block_erase = spi_block_erase_c7,
16634 }
16635 },
16636 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16637 .unlock = spi_disable_blockprotect,
16638 .write = spi_chip_write_256,
16639 .read = spi_chip_read,
16640 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16641 },
16642
16643 {
16644 .vendor = "Winbond",
16645 .name = "W25Q20.W",
16646 .bustype = BUS_SPI,
16647 .manufacture_id = WINBOND_NEX_ID,
16648 .model_id = WINBOND_NEX_W25Q20_W,
16649 .total_size = 256,
16650 .page_size = 256,
16651 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16652 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16653 .tested = TEST_UNTESTED,
16654 .probe = probe_spi_rdid,
16655 .probe_timing = TIMING_ZERO,
16656 .block_erasers =
16657 {
16658 {
16659 .eraseblocks = { {4 * 1024, 64} },
16660 .block_erase = spi_block_erase_20,
16661 }, {
16662 .eraseblocks = { {32 * 1024, 8} },
16663 .block_erase = spi_block_erase_52,
16664 }, {
16665 .eraseblocks = { {64 * 1024, 4} },
16666 .block_erase = spi_block_erase_d8,
16667 }, {
16668 .eraseblocks = { {256 * 1024, 1} },
16669 .block_erase = spi_block_erase_60,
16670 }, {
16671 .eraseblocks = { {256 * 1024, 1} },
16672 .block_erase = spi_block_erase_c7,
16673 }
16674 },
16675 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16676 .unlock = spi_disable_blockprotect,
16677 .write = spi_chip_write_256,
16678 .read = spi_chip_read,
16679 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16680 },
16681
16682 {
16683 .vendor = "Winbond",
Boris Baykovaa6c3742016-06-11 18:29:01 +020016684 .name = "W25Q256.V",
16685 .bustype = BUS_SPI,
16686 .manufacture_id = WINBOND_NEX_ID,
16687 .model_id = WINBOND_NEX_W25Q256_V,
16688 .total_size = 32768,
16689 .page_size = 256,
16690 /* supports SFDP */
16691 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16692 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
Nico Huberaac81422017-11-10 22:54:13 +010016693 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
16694 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
Angel Pons3130cbd2018-09-30 19:32:30 +020016695 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020016696 .probe = probe_spi_rdid,
16697 .probe_timing = TIMING_ZERO,
16698 .block_erasers =
16699 {
16700 {
16701 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020016702 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020016703 }, {
16704 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020016705 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020016706 }, {
16707 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020016708 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020016709 }, {
16710 .eraseblocks = { {32 * 1024 * 1024, 1} },
16711 .block_erase = spi_block_erase_60,
16712 }, {
16713 .eraseblocks = { {32 * 1024 * 1024, 1} },
16714 .block_erase = spi_block_erase_c7,
16715 }
16716 },
16717 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16718 .unlock = spi_disable_blockprotect,
16719 .write = spi_chip_write_256,
16720 .read = spi_chip_read,
16721 .voltage = {2700, 3600},
16722 },
16723
16724 {
16725 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000016726 .name = "W25Q256JV_M",
16727 .bustype = BUS_SPI,
16728 .manufacture_id = WINBOND_NEX_ID,
16729 .model_id = WINBOND_NEX_W25Q256JV_M,
16730 .total_size = 32768,
16731 .page_size = 256,
16732 /* supports SFDP */
16733 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16734 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
16735 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
16736 .tested = TEST_OK_PREW,
16737 .probe = probe_spi_rdid,
16738 .probe_timing = TIMING_ZERO,
16739 .block_erasers =
16740 {
16741 {
16742 .eraseblocks = { {4 * 1024, 8192} },
16743 .block_erase = spi_block_erase_21,
16744 }, {
16745 .eraseblocks = { {4 * 1024, 8192} },
16746 .block_erase = spi_block_erase_20,
16747 }, {
16748 .eraseblocks = { {32 * 1024, 1024} },
16749 .block_erase = spi_block_erase_52,
16750 }, {
16751 .eraseblocks = { {64 * 1024, 512} },
16752 .block_erase = spi_block_erase_dc,
16753 }, {
16754 .eraseblocks = { {64 * 1024, 512} },
16755 .block_erase = spi_block_erase_d8,
16756 }, {
16757 .eraseblocks = { {32 * 1024 * 1024, 1} },
16758 .block_erase = spi_block_erase_60,
16759 }, {
16760 .eraseblocks = { {32 * 1024 * 1024, 1} },
16761 .block_erase = spi_block_erase_c7,
16762 }
16763 },
16764 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16765 .unlock = spi_disable_blockprotect,
16766 .write = spi_chip_write_256,
16767 .read = spi_chip_read,
16768 .voltage = {2700, 3600},
16769 },
16770
16771 {
16772 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016773 .name = "W25Q32.V",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016774 .bustype = BUS_SPI,
16775 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016776 .model_id = WINBOND_NEX_W25Q32_V,
16777 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016778 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016779 /* supports SFDP */
16780 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016781 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016782 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016783 .probe = probe_spi_rdid,
16784 .probe_timing = TIMING_ZERO,
16785 .block_erasers =
16786 {
16787 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016788 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016789 .block_erase = spi_block_erase_20,
16790 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016791 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016792 .block_erase = spi_block_erase_52,
16793 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016794 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016795 .block_erase = spi_block_erase_d8,
16796 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016797 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016798 .block_erase = spi_block_erase_60,
16799 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016800 .eraseblocks = { {4 * 1024 * 1024, 1} },
16801 .block_erase = spi_block_erase_c7,
16802 }
16803 },
16804 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16805 .unlock = spi_disable_blockprotect,
16806 .write = spi_chip_write_256,
16807 .read = spi_chip_read,
16808 .voltage = {2700, 3600},
16809 },
16810
16811 {
16812 .vendor = "Winbond",
16813 .name = "W25Q32.W",
16814 .bustype = BUS_SPI,
16815 .manufacture_id = WINBOND_NEX_ID,
16816 .model_id = WINBOND_NEX_W25Q32_W,
16817 .total_size = 4096,
16818 .page_size = 256,
16819 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16820 /* QPI enable 0x38, disable 0xFF */
16821 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16822 .tested = TEST_OK_PREW,
16823 .probe = probe_spi_rdid,
16824 .probe_timing = TIMING_ZERO,
16825 .block_erasers =
16826 {
16827 {
16828 .eraseblocks = { {4 * 1024, 1024} },
16829 .block_erase = spi_block_erase_20,
16830 }, {
16831 .eraseblocks = { {32 * 1024, 128} },
16832 .block_erase = spi_block_erase_52,
16833 }, {
16834 .eraseblocks = { {64 * 1024, 64} },
16835 .block_erase = spi_block_erase_d8,
16836 }, {
16837 .eraseblocks = { {4 * 1024 * 1024, 1} },
16838 .block_erase = spi_block_erase_60,
16839 }, {
16840 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016841 .block_erase = spi_block_erase_c7,
16842 }
16843 },
16844 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16845 .unlock = spi_disable_blockprotect,
16846 .write = spi_chip_write_256,
16847 .read = spi_chip_read,
16848 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16849 },
16850
16851 {
16852 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016853 .name = "W25Q40.V",
16854 .bustype = BUS_SPI,
16855 .manufacture_id = WINBOND_NEX_ID,
16856 .model_id = WINBOND_NEX_W25Q40_V,
16857 .total_size = 512,
16858 .page_size = 256,
16859 /* supports SFDP */
16860 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16861 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16862 .tested = TEST_OK_PREW,
16863 .probe = probe_spi_rdid,
16864 .probe_timing = TIMING_ZERO,
16865 .block_erasers =
16866 {
16867 {
16868 .eraseblocks = { {4 * 1024, 128} },
16869 .block_erase = spi_block_erase_20,
16870 }, {
16871 .eraseblocks = { {32 * 1024, 16} },
16872 .block_erase = spi_block_erase_52,
16873 }, {
16874 .eraseblocks = { {64 * 1024, 8} },
16875 .block_erase = spi_block_erase_d8,
16876 }, {
16877 .eraseblocks = { {512 * 1024, 1} },
16878 .block_erase = spi_block_erase_60,
16879 }, {
16880 .eraseblocks = { {512 * 1024, 1} },
16881 .block_erase = spi_block_erase_c7,
16882 }
16883 },
16884 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16885 .unlock = spi_disable_blockprotect,
16886 .write = spi_chip_write_256, /* Multi I/O supported */
16887 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16888 .voltage = {2700, 3600},
16889 },
16890
16891 {
16892 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020016893 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016894 .bustype = BUS_SPI,
16895 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020016896 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016897 .total_size = 512,
16898 .page_size = 256,
16899 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16900 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020016901 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016902 .probe = probe_spi_rdid,
16903 .probe_timing = TIMING_ZERO,
16904 .block_erasers =
16905 {
16906 {
16907 .eraseblocks = { {4 * 1024, 128} },
16908 .block_erase = spi_block_erase_20,
16909 }, {
16910 .eraseblocks = { {32 * 1024, 16} },
16911 .block_erase = spi_block_erase_52,
16912 }, {
16913 .eraseblocks = { {64 * 1024, 8} },
16914 .block_erase = spi_block_erase_d8,
16915 }, {
16916 .eraseblocks = { {512 * 1024, 1} },
16917 .block_erase = spi_block_erase_60,
16918 }, {
16919 .eraseblocks = { {512 * 1024, 1} },
16920 .block_erase = spi_block_erase_c7,
16921 }
16922 },
16923 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16924 .unlock = spi_disable_blockprotect,
16925 .write = spi_chip_write_256,
16926 .read = spi_chip_read,
16927 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16928 },
16929
16930 {
16931 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020016932 .name = "W25Q40EW",
16933 .bustype = BUS_SPI,
16934 .manufacture_id = WINBOND_NEX_ID,
16935 .model_id = WINBOND_NEX_W25Q40EW,
16936 .total_size = 512,
16937 .page_size = 256,
16938 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16939 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green07b8a172019-09-23 16:47:05 +100016940 .tested = TEST_OK_PREW,
Nico Huber25683572018-03-30 13:50:13 +020016941 .probe = probe_spi_rdid,
16942 .probe_timing = TIMING_ZERO,
16943 .block_erasers =
16944 {
16945 {
16946 .eraseblocks = { {4 * 1024, 128} },
16947 .block_erase = spi_block_erase_20,
16948 }, {
16949 .eraseblocks = { {32 * 1024, 16} },
16950 .block_erase = spi_block_erase_52,
16951 }, {
16952 .eraseblocks = { {64 * 1024, 8} },
16953 .block_erase = spi_block_erase_d8,
16954 }, {
16955 .eraseblocks = { {512 * 1024, 1} },
16956 .block_erase = spi_block_erase_60,
16957 }, {
16958 .eraseblocks = { {512 * 1024, 1} },
16959 .block_erase = spi_block_erase_c7,
16960 }
16961 },
16962 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16963 .unlock = spi_disable_blockprotect,
16964 .write = spi_chip_write_256,
16965 .read = spi_chip_read,
16966 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
16967 },
16968
Stanislav Sedovf5775442018-03-07 14:16:51 -080016969 {
16970 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016971 .name = "W25Q64.V",
Stanislav Sedovf5775442018-03-07 14:16:51 -080016972 .bustype = BUS_SPI,
16973 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016974 .model_id = WINBOND_NEX_W25Q64_V,
16975 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080016976 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016977 /* supports SFDP */
16978 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Stanislav Sedovf5775442018-03-07 14:16:51 -080016979 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16980 .tested = TEST_OK_PREW,
16981 .probe = probe_spi_rdid,
16982 .probe_timing = TIMING_ZERO,
16983 .block_erasers =
16984 {
16985 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016986 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080016987 .block_erase = spi_block_erase_20,
16988 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016989 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080016990 .block_erase = spi_block_erase_52,
16991 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016992 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080016993 .block_erase = spi_block_erase_d8,
16994 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016995 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080016996 .block_erase = spi_block_erase_60,
16997 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016998 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080016999 .block_erase = spi_block_erase_c7,
17000 }
17001 },
17002 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17003 .unlock = spi_disable_blockprotect,
17004 .write = spi_chip_write_256,
17005 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017006 .voltage = {2700, 3600},
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017007 },
17008
17009 {
17010 .vendor = "Winbond",
17011 .name = "W25Q64.W",
17012 .bustype = BUS_SPI,
17013 .manufacture_id = WINBOND_NEX_ID,
17014 .model_id = WINBOND_NEX_W25Q64_W,
17015 .total_size = 8192,
17016 .page_size = 256,
17017 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17018 /* QPI enable 0x38, disable 0xFF */
17019 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000017020 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017021 .probe = probe_spi_rdid,
17022 .probe_timing = TIMING_ZERO,
17023 .block_erasers =
17024 {
17025 {
17026 .eraseblocks = { {4 * 1024, 2048} },
17027 .block_erase = spi_block_erase_20,
17028 }, {
17029 .eraseblocks = { {32 * 1024, 256} },
17030 .block_erase = spi_block_erase_52,
17031 }, {
17032 .eraseblocks = { {64 * 1024, 128} },
17033 .block_erase = spi_block_erase_d8,
17034 }, {
17035 .eraseblocks = { {8 * 1024 * 1024, 1} },
17036 .block_erase = spi_block_erase_60,
17037 }, {
17038 .eraseblocks = { {8 * 1024 * 1024, 1} },
17039 .block_erase = spi_block_erase_c7,
17040 }
17041 },
17042 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17043 .unlock = spi_disable_blockprotect,
17044 .write = spi_chip_write_256,
17045 .read = spi_chip_read,
17046 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000017047 },
17048
17049 {
17050 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017051 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020017052 .bustype = BUS_SPI,
17053 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017054 .model_id = WINBOND_NEX_W25Q80_V,
17055 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020017056 .page_size = 256,
17057 /* supports SFDP */
17058 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100017059 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks48729d32017-12-08 14:44:07 -080017060 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020017061 .probe = probe_spi_rdid,
17062 .probe_timing = TIMING_ZERO,
17063 .block_erasers =
17064 {
17065 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017066 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017067 .block_erase = spi_block_erase_20,
17068 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017069 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017070 .block_erase = spi_block_erase_52,
17071 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017072 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017073 .block_erase = spi_block_erase_d8,
17074 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017075 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017076 .block_erase = spi_block_erase_60,
17077 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017078 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017079 .block_erase = spi_block_erase_c7,
17080 }
17081 },
17082 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17083 .unlock = spi_disable_blockprotect,
17084 .write = spi_chip_write_256,
17085 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017086 .voltage = {2700, 3600},
17087 },
17088
17089 {
17090 .vendor = "Winbond",
17091 .name = "W25Q80BW",
17092 .bustype = BUS_SPI,
17093 .manufacture_id = WINBOND_NEX_ID,
17094 .model_id = WINBOND_NEX_W25Q80BW,
17095 .total_size = 1024,
17096 .page_size = 256,
17097 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17098 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17099 .tested = TEST_OK_PREW,
17100 .probe = probe_spi_rdid,
17101 .probe_timing = TIMING_ZERO,
17102 .block_erasers =
17103 {
17104 {
17105 .eraseblocks = { {4 * 1024, 256} },
17106 .block_erase = spi_block_erase_20,
17107 }, {
17108 .eraseblocks = { {32 * 1024, 32} },
17109 .block_erase = spi_block_erase_52,
17110 }, {
17111 .eraseblocks = { {64 * 1024, 16} },
17112 .block_erase = spi_block_erase_d8,
17113 }, {
17114 .eraseblocks = { {1 * 1024 * 1024, 1} },
17115 .block_erase = spi_block_erase_60,
17116 }, {
17117 .eraseblocks = { {1 * 1024 * 1024, 1} },
17118 .block_erase = spi_block_erase_c7,
17119 }
17120 },
17121 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17122 .unlock = spi_disable_blockprotect,
17123 .write = spi_chip_write_256,
17124 .read = spi_chip_read,
17125 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17126 },
17127
17128 {
17129 .vendor = "Winbond",
17130 .name = "W25Q80EW",
17131 .bustype = BUS_SPI,
17132 .manufacture_id = WINBOND_NEX_ID,
17133 .model_id = WINBOND_NEX_W25Q80EW,
17134 .total_size = 1024,
17135 .page_size = 256,
17136 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17137 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17138 .tested = TEST_OK_PREW,
17139 .probe = probe_spi_rdid,
17140 .probe_timing = TIMING_ZERO,
17141 .block_erasers =
17142 {
17143 {
17144 .eraseblocks = { {4 * 1024, 256} },
17145 .block_erase = spi_block_erase_20,
17146 }, {
17147 .eraseblocks = { {32 * 1024, 32} },
17148 .block_erase = spi_block_erase_52,
17149 }, {
17150 .eraseblocks = { {64 * 1024, 16} },
17151 .block_erase = spi_block_erase_d8,
17152 }, {
17153 .eraseblocks = { {1 * 1024 * 1024, 1} },
17154 .block_erase = spi_block_erase_60,
17155 }, {
17156 .eraseblocks = { {1 * 1024 * 1024, 1} },
17157 .block_erase = spi_block_erase_c7,
17158 }
17159 },
17160 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17161 .unlock = spi_disable_blockprotect,
17162 .write = spi_chip_write_256,
17163 .read = spi_chip_read,
17164 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nico Huber70eed9f2017-04-24 22:19:27 +020017165 },
17166
17167 {
17168 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017169 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017170 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017171 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017172 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017173 .total_size = 128,
17174 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017175 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000017176 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017177 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017178 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017179 .block_erasers =
17180 {
17181 {
17182 .eraseblocks = { {4 * 1024, 32} },
17183 .block_erase = spi_block_erase_20,
17184 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017185 .eraseblocks = { {64 * 1024, 2} },
17186 .block_erase = spi_block_erase_d8,
17187 }, {
17188 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017189 .block_erase = spi_block_erase_c7,
17190 }
17191 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017192 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017193 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000017194 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017195 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017196 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017197 },
17198
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017199 {
17200 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017201 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017202 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000017203 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017204 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000017205 .total_size = 2048,
17206 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017207 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000017208 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000017209 .probe = probe_spi_rdid,
17210 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017211 .block_erasers =
17212 {
17213 {
17214 .eraseblocks = { {4 * 1024, 512} },
17215 .block_erase = spi_block_erase_20,
17216 }, {
17217 .eraseblocks = { {32 * 1024, 64} },
17218 .block_erase = spi_block_erase_52,
17219 }, {
17220 .eraseblocks = { {64 * 1024, 32} },
17221 .block_erase = spi_block_erase_d8,
17222 }, {
17223 .eraseblocks = { {2 * 1024 * 1024, 1} },
17224 .block_erase = spi_block_erase_60,
17225 }, {
17226 .eraseblocks = { {2 * 1024 * 1024, 1} },
17227 .block_erase = spi_block_erase_c7,
17228 }
17229 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017230 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017231 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000017232 .write = spi_chip_write_256,
17233 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017234 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000017235 },
17236
17237 {
17238 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017239 .name = "W25X20",
17240 .bustype = BUS_SPI,
17241 .manufacture_id = WINBOND_NEX_ID,
17242 .model_id = WINBOND_NEX_W25X20,
17243 .total_size = 256,
17244 .page_size = 256,
17245 .feature_bits = FEATURE_WRSR_WREN,
17246 .tested = TEST_OK_PREW,
17247 .probe = probe_spi_rdid,
17248 .probe_timing = TIMING_ZERO,
17249 .block_erasers =
17250 {
17251 {
17252 .eraseblocks = { {4 * 1024, 64} },
17253 .block_erase = spi_block_erase_20,
17254 }, {
17255 .eraseblocks = { {64 * 1024, 4} },
17256 .block_erase = spi_block_erase_d8,
17257 }, {
17258 .eraseblocks = { {256 * 1024, 1} },
17259 .block_erase = spi_block_erase_c7,
17260 }
17261 },
17262 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17263 .unlock = spi_disable_blockprotect,
17264 .write = spi_chip_write_256,
17265 .read = spi_chip_read,
17266 .voltage = {2700, 3600},
17267 },
17268
17269 {
17270 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017271 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017272 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000017273 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017274 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000017275 .total_size = 4096,
17276 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017277 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000017278 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000017279 .probe = probe_spi_rdid,
17280 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017281 .block_erasers =
17282 {
17283 {
17284 .eraseblocks = { {4 * 1024, 1024} },
17285 .block_erase = spi_block_erase_20,
17286 }, {
17287 .eraseblocks = { {32 * 1024, 128} },
17288 .block_erase = spi_block_erase_52,
17289 }, {
17290 .eraseblocks = { {64 * 1024, 64} },
17291 .block_erase = spi_block_erase_d8,
17292 }, {
17293 .eraseblocks = { {4 * 1024 * 1024, 1} },
17294 .block_erase = spi_block_erase_60,
17295 }, {
17296 .eraseblocks = { {4 * 1024 * 1024, 1} },
17297 .block_erase = spi_block_erase_c7,
17298 }
17299 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017300 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017301 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000017302 .write = spi_chip_write_256,
17303 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017304 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000017305 },
17306
17307 {
17308 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017309 .name = "W25X40",
17310 .bustype = BUS_SPI,
17311 .manufacture_id = WINBOND_NEX_ID,
17312 .model_id = WINBOND_NEX_W25X40,
17313 .total_size = 512,
17314 .page_size = 256,
17315 .feature_bits = FEATURE_WRSR_WREN,
17316 .tested = TEST_OK_PREW,
17317 .probe = probe_spi_rdid,
17318 .probe_timing = TIMING_ZERO,
17319 .block_erasers =
17320 {
17321 {
17322 .eraseblocks = { {4 * 1024, 128} },
17323 .block_erase = spi_block_erase_20,
17324 }, {
17325 .eraseblocks = { {64 * 1024, 8} },
17326 .block_erase = spi_block_erase_d8,
17327 }, {
17328 .eraseblocks = { {512 * 1024, 1} },
17329 .block_erase = spi_block_erase_c7,
17330 }
17331 },
17332 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17333 .unlock = spi_disable_blockprotect,
17334 .write = spi_chip_write_256,
17335 .read = spi_chip_read,
17336 .voltage = {2700, 3600},
17337 },
17338
17339 {
17340 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017341 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017342 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000017343 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017344 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000017345 .total_size = 8192,
17346 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017347 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000017348 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000017349 .probe = probe_spi_rdid,
17350 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017351 .block_erasers =
17352 {
17353 {
17354 .eraseblocks = { {4 * 1024, 2048} },
17355 .block_erase = spi_block_erase_20,
17356 }, {
17357 .eraseblocks = { {32 * 1024, 256} },
17358 .block_erase = spi_block_erase_52,
17359 }, {
17360 .eraseblocks = { {64 * 1024, 128} },
17361 .block_erase = spi_block_erase_d8,
17362 }, {
17363 .eraseblocks = { {8 * 1024 * 1024, 1} },
17364 .block_erase = spi_block_erase_60,
17365 }, {
17366 .eraseblocks = { {8 * 1024 * 1024, 1} },
17367 .block_erase = spi_block_erase_c7,
17368 }
17369 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017370 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017371 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000017372 .write = spi_chip_write_256,
17373 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017374 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000017375 },
17376
17377 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100017378 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017379 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100017380 .bustype = BUS_SPI,
17381 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017382 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100017383 .total_size = 1024,
17384 .page_size = 256,
17385 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017386 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100017387 .probe = probe_spi_rdid,
17388 .probe_timing = TIMING_ZERO,
17389 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080017390 {
17391 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017392 .eraseblocks = { {4 * 1024, 256} },
17393 .block_erase = spi_block_erase_20,
17394 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080017395 .eraseblocks = { {64 * 1024, 16} },
17396 .block_erase = spi_block_erase_d8,
17397 }, {
17398 .eraseblocks = { {1024 * 1024, 1} },
17399 .block_erase = spi_block_erase_c7,
17400 }
17401 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100017402 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17403 .unlock = spi_disable_blockprotect,
17404 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017405 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100017406 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080017407 },
17408
Alan Greenf29ea362019-06-27 17:14:02 +100017409 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
17410 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000017411 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000017412 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017413 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017414 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017415 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017416 .total_size = 128,
17417 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000017418 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000017419 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017420 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017421 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017422 .block_erasers =
17423 {
17424 {
17425 .eraseblocks = { {128 * 1024, 1} },
17426 .block_erase = erase_chip_block_jedec,
17427 }
17428 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017429 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017430 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000017431 },
17432
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017433 {
17434 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017435 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
17436 .bustype = BUS_PARALLEL,
17437 .manufacture_id = WINBOND_ID,
17438 .model_id = WINBOND_W29C010,
17439 .total_size = 128,
17440 .page_size = 128,
17441 .feature_bits = FEATURE_LONG_RESET,
17442 .tested = TEST_OK_PREW,
17443 .probe = probe_w29ee011,
17444 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
17445 .block_erasers =
17446 {
17447 {
17448 .eraseblocks = { {128 * 1024, 1} },
17449 .block_erase = erase_chip_block_jedec,
17450 }
17451 },
17452 .write = write_jedec,
17453 .read = read_memmapped,
17454 },
17455
17456 {
17457 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000017458 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017459 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017460 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017461 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017462 .total_size = 256,
17463 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000017464 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017465 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017466 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017467 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017468 .block_erasers =
17469 {
17470 {
17471 .eraseblocks = { {256 * 1024, 1} },
17472 .block_erase = erase_chip_block_jedec,
17473 }
17474 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017475 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017476 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017477 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000017478 },
17479
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017480 {
17481 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000017482 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017483 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017484 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017485 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017486 .total_size = 512,
17487 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000017488 .feature_bits = FEATURE_LONG_RESET,
17489 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017490 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000017491 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017492 .block_erasers =
17493 {
17494 {
17495 .eraseblocks = { {512 * 1024, 1} },
17496 .block_erase = erase_chip_block_jedec,
17497 }
17498 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017499 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017500 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017501 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000017502 },
17503
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017504 {
17505 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017506 .name = "W29C512A/W29EE512",
17507 .bustype = BUS_PARALLEL,
17508 .manufacture_id = WINBOND_ID,
17509 .model_id = WINBOND_W29C512A,
17510 .total_size = 64,
17511 .page_size = 128,
17512 .feature_bits = FEATURE_LONG_RESET,
17513 .tested = TEST_OK_PREW,
17514 .probe = probe_jedec,
17515 .probe_timing = 10,
17516 .block_erasers =
17517 {
17518 {
17519 .eraseblocks = { {64 * 1024, 1} },
17520 .block_erase = erase_chip_block_jedec,
17521 }
17522 },
17523 .write = write_jedec,
17524 .read = read_memmapped,
17525 .voltage = {4500, 5500},
17526 },
17527
17528 {
17529 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017530 .name = "W29GL032CB",
17531 .bustype = BUS_PARALLEL,
17532 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17533 .model_id = WINBOND_W29GL032CB,
17534 .total_size = 4096,
17535 .page_size = 128 * 1024, /* actual page size is 16 */
17536 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17537 .tested = TEST_UNTESTED,
17538 .probe = probe_jedec_29gl,
17539 .probe_timing = TIMING_ZERO,
17540 .block_erasers =
17541 {
17542 {
17543 .eraseblocks = {
17544 {8 * 1024, 8},
17545 {64 * 1024, 63},
17546 },
17547 .block_erase = erase_sector_jedec,
17548 }, {
17549 .eraseblocks = { {4 * 1024 * 1024, 1} },
17550 .block_erase = erase_chip_block_jedec,
17551 },
17552 },
17553 .write = write_jedec_1,
17554 .read = read_memmapped,
17555 .voltage = {2700, 3600},
17556 },
17557
17558 {
17559 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017560 .name = "W29GL032CH/L",
17561 .bustype = BUS_PARALLEL,
17562 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17563 .model_id = WINBOND_W29GL032CHL,
17564 .total_size = 4096,
17565 .page_size = 128 * 1024, /* actual page size is 16 */
17566 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17567 .tested = TEST_UNTESTED,
17568 .probe = probe_jedec_29gl,
17569 .probe_timing = TIMING_ZERO,
17570 .block_erasers =
17571 {
17572 {
17573 .eraseblocks = { {64 * 1024, 64} },
17574 .block_erase = erase_sector_jedec,
17575 }, {
17576 .eraseblocks = { {4 * 1024 * 1024, 1} },
17577 .block_erase = erase_chip_block_jedec,
17578 },
17579 },
17580 .write = write_jedec_1,
17581 .read = read_memmapped,
17582 .voltage = {2700, 3600},
17583 },
17584
17585 {
17586 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017587 .name = "W29GL032CT",
17588 .bustype = BUS_PARALLEL,
17589 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17590 .model_id = WINBOND_W29GL032CT,
17591 .total_size = 4096,
17592 .page_size = 128 * 1024, /* actual page size is 16 */
17593 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17594 .tested = TEST_UNTESTED,
17595 .probe = probe_jedec_29gl,
17596 .probe_timing = TIMING_ZERO,
17597 .block_erasers =
17598 {
17599 {
17600 .eraseblocks = {
17601 {64 * 1024, 63},
17602 {8 * 1024, 8},
17603 },
17604 .block_erase = erase_sector_jedec,
17605 }, {
17606 .eraseblocks = { {4 * 1024 * 1024, 1} },
17607 .block_erase = erase_chip_block_jedec,
17608 },
17609 },
17610 .write = write_jedec_1,
17611 .read = read_memmapped,
17612 .voltage = {2700, 3600},
17613 },
17614
17615 {
17616 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017617 .name = "W29GL064CB",
17618 .bustype = BUS_PARALLEL,
17619 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17620 .model_id = WINBOND_W29GL064CB,
17621 .total_size = 8192,
17622 .page_size = 128 * 1024, /* actual page size is 16 */
17623 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17624 .tested = TEST_UNTESTED,
17625 .probe = probe_jedec_29gl,
17626 .probe_timing = TIMING_ZERO,
17627 .block_erasers =
17628 {
17629 {
17630 .eraseblocks = {
17631 {8 * 1024, 8},
17632 {64 * 1024, 127},
17633 },
17634 .block_erase = erase_sector_jedec,
17635 }, {
17636 .eraseblocks = { {8 * 1024 * 1024, 1} },
17637 .block_erase = erase_chip_block_jedec,
17638 },
17639 },
17640 .write = write_jedec_1,
17641 .read = read_memmapped,
17642 .voltage = {2700, 3600},
17643 },
17644
17645 {
17646 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017647 .name = "W29GL064CH/L",
17648 .bustype = BUS_PARALLEL,
17649 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17650 .model_id = WINBOND_W29GL064CHL,
17651 .total_size = 8192,
17652 .page_size = 128 * 1024, /* actual page size is 16 */
17653 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17654 .tested = TEST_UNTESTED,
17655 .probe = probe_jedec_29gl,
17656 .probe_timing = TIMING_ZERO,
17657 .block_erasers =
17658 {
17659 {
17660 .eraseblocks = { {64 * 1024, 128} },
17661 .block_erase = erase_sector_jedec,
17662 }, {
17663 .eraseblocks = { {8 * 1024 * 1024, 1} },
17664 .block_erase = erase_chip_block_jedec,
17665 },
17666 },
17667 .write = write_jedec_1,
17668 .read = read_memmapped,
17669 .voltage = {2700, 3600},
17670 },
17671
17672 {
17673 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017674 .name = "W29GL064CT",
17675 .bustype = BUS_PARALLEL,
17676 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17677 .model_id = WINBOND_W29GL064CT,
17678 .total_size = 8192,
17679 .page_size = 128 * 1024, /* actual page size is 16 */
17680 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17681 .tested = TEST_UNTESTED,
17682 .probe = probe_jedec_29gl,
17683 .probe_timing = TIMING_ZERO,
17684 .block_erasers =
17685 {
17686 {
17687 .eraseblocks = {
17688 {64 * 1024, 127},
17689 {8 * 1024, 8},
17690 },
17691 .block_erase = erase_sector_jedec,
17692 }, {
17693 .eraseblocks = { {8 * 1024 * 1024, 1} },
17694 .block_erase = erase_chip_block_jedec,
17695 },
17696 },
17697 .write = write_jedec_1,
17698 .read = read_memmapped,
17699 .voltage = {2700, 3600},
17700 },
17701
17702 {
17703 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017704 .name = "W29GL128C",
17705 .bustype = BUS_PARALLEL,
17706 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17707 .model_id = WINBOND_W29GL128CHL,
17708 .total_size = 16384,
17709 .page_size = 128 * 1024, /* actual page size is 16 */
17710 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17711 .tested = TEST_UNTESTED,
17712 .probe = probe_jedec_29gl,
17713 .probe_timing = TIMING_ZERO,
17714 .block_erasers =
17715 {
17716 {
17717 .eraseblocks = { {128 * 1024, 128} },
17718 .block_erase = erase_sector_jedec,
17719 }, {
17720 .eraseblocks = { {16 * 1024 * 1024, 1} },
17721 .block_erase = erase_chip_block_jedec,
17722 },
17723 },
17724 .write = write_jedec_1,
17725 .read = read_memmapped,
17726 .voltage = {2700, 3600},
17727 },
17728
17729 {
17730 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000017731 .name = "W39F010",
17732 .bustype = BUS_PARALLEL,
17733 .manufacture_id = WINBOND_ID,
17734 .model_id = WINBOND_W39F010,
17735 .total_size = 128,
17736 .page_size = 4 * 1024,
17737 .feature_bits = FEATURE_EITHER_RESET,
17738 .tested = TEST_OK_PREW,
17739 .probe = probe_jedec,
17740 .probe_timing = 10,
17741 .block_erasers =
17742 {
17743 {
17744 .eraseblocks = { {4 * 1024, 32} },
17745 .block_erase = erase_block_jedec,
17746 }, {
17747 .eraseblocks = { {128 * 1024, 1} },
17748 .block_erase = erase_chip_block_jedec,
17749 }
17750 },
17751 .printlock = printlock_w39f010,
17752 .write = write_jedec_1,
17753 .read = read_memmapped,
17754 .voltage = {4500, 5500},
17755 },
17756
17757 {
17758 .vendor = "Winbond",
17759 .name = "W39L010",
17760 .bustype = BUS_PARALLEL,
17761 .manufacture_id = WINBOND_ID,
17762 .model_id = WINBOND_W39L010,
17763 .total_size = 128,
17764 .page_size = 4 * 1024,
17765 .feature_bits = FEATURE_EITHER_RESET,
17766 .tested = TEST_UNTESTED,
17767 .probe = probe_jedec,
17768 .probe_timing = 10,
17769 .block_erasers =
17770 {
17771 {
17772 .eraseblocks = { {4 * 1024, 32} },
17773 .block_erase = erase_block_jedec,
17774 }, {
17775 .eraseblocks = { {128 * 1024, 1} },
17776 .block_erase = erase_chip_block_jedec,
17777 }
17778 },
17779 .printlock = printlock_w39l010,
17780 .write = write_jedec_1,
17781 .read = read_memmapped,
17782 .voltage = {3000, 3600},
17783 },
17784
17785 {
17786 .vendor = "Winbond",
17787 .name = "W39L020",
17788 .bustype = BUS_PARALLEL,
17789 .manufacture_id = WINBOND_ID,
17790 .model_id = WINBOND_W39L020,
17791 .total_size = 256,
17792 .page_size = 4 * 1024,
17793 .feature_bits = FEATURE_EITHER_RESET,
17794 .tested = TEST_UNTESTED,
17795 .probe = probe_jedec,
17796 .probe_timing = 10,
17797 .block_erasers =
17798 {
17799 {
17800 .eraseblocks = { {4 * 1024, 64} },
17801 .block_erase = erase_block_jedec,
17802 }, {
17803 .eraseblocks = { {64 * 1024, 4} },
17804 .block_erase = erase_sector_jedec,
17805 }, {
17806 .eraseblocks = { {256 * 1024, 1} },
17807 .block_erase = erase_chip_block_jedec,
17808 }
17809 },
17810 .printlock = printlock_w39l020,
17811 .write = write_jedec_1,
17812 .read = read_memmapped,
17813 .voltage = {3000, 3600},
17814 },
17815
17816 {
17817 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000017818 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017819 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000017820 .manufacture_id = WINBOND_ID,
17821 .model_id = WINBOND_W39L040,
17822 .total_size = 512,
17823 .page_size = 64 * 1024,
17824 .feature_bits = FEATURE_EITHER_RESET,
17825 .tested = TEST_OK_PR,
17826 .probe = probe_jedec,
17827 .probe_timing = 10,
17828 .block_erasers =
17829 {
17830 {
17831 .eraseblocks = { {4 * 1024, 128} },
17832 .block_erase = erase_block_jedec,
17833 }, {
17834 .eraseblocks = { {64 * 1024, 8} },
17835 .block_erase = erase_sector_jedec,
17836 }, {
17837 .eraseblocks = { {512 * 1024, 1} },
17838 .block_erase = erase_chip_block_jedec,
17839 }
17840 },
17841 .printlock = printlock_w39l040,
17842 .write = write_jedec_1,
17843 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000017844 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000017845 },
17846
17847 {
17848 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017849 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017850 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017851 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017852 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017853 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017854 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017855 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000017856 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017857 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000017858 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017859 .block_erasers =
17860 {
17861 {
17862 .eraseblocks = { {64 * 1024, 8} },
17863 .block_erase = erase_sector_jedec,
17864 }, {
17865 .eraseblocks = { {512 * 1024, 1} },
17866 .block_erase = erase_chip_block_jedec,
17867 }
17868 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017869 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000017870 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017871 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017872 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017873 },
17874
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017875 {
17876 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017877 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017878 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017879 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017880 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017881 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017882 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017883 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000017884 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017885 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000017886 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017887 .block_erasers =
17888 {
17889 {
17890 .eraseblocks = { {64 * 1024, 8} },
17891 .block_erase = erase_sector_jedec,
17892 }, {
17893 .eraseblocks = { {512 * 1024, 1} },
17894 .block_erase = erase_chip_block_jedec,
17895 }
17896 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017897 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000017898 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017899 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017900 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017901 },
17902
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017903 {
17904 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017905 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017906 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017907 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017908 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017909 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017910 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017911 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000017912 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000017913 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017914 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017915 .block_erasers =
17916 {
17917 {
17918 .eraseblocks = { {64 * 1024, 8} },
17919 .block_erase = erase_sector_jedec,
17920 }, {
17921 .eraseblocks = { {512 * 1024, 1} },
17922 .block_erase = erase_chip_block_jedec,
17923 }
17924 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000017925 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000017926 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017927 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017928 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017929 },
17930
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017931 {
17932 .vendor = "Winbond",
17933 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017934 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017935 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017936 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017937 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017938 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000017939 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000017940 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017941 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017942 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017943 .block_erasers =
17944 {
17945 {
17946 .eraseblocks = { {4 * 1024, 128} },
17947 .block_erase = erase_block_jedec,
17948 }, {
17949 .eraseblocks = { {64 * 1024, 8} },
17950 .block_erase = erase_sector_jedec,
17951 }, {
17952 .eraseblocks = { {512 * 1024, 1} },
17953 .block_erase = erase_chip_block_jedec,
17954 }
17955 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017956 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000017957 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000017958 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017959 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017960 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017961 },
17962
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017963 {
17964 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017965 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017966 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017967 .manufacture_id = WINBOND_ID,
17968 .model_id = WINBOND_W39V040B,
17969 .total_size = 512,
17970 .page_size = 64 * 1024,
17971 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000017972 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017973 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000017974 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017975 .block_erasers =
17976 {
17977 {
17978 .eraseblocks = { {64 * 1024, 8} },
17979 .block_erase = erase_sector_jedec,
17980 }, {
17981 .eraseblocks = { {512 * 1024, 1} },
17982 .block_erase = erase_chip_block_jedec,
17983 }
17984 },
17985 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000017986 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017987 .write = write_jedec_1,
17988 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000017989 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017990 },
17991
17992 {
17993 .vendor = "Winbond",
17994 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017995 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017996 .manufacture_id = WINBOND_ID,
17997 .model_id = WINBOND_W39V040C,
17998 .total_size = 512,
17999 .page_size = 64 * 1024,
18000 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000018001 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018002 .probe = probe_jedec,
18003 .probe_timing = 10,
18004 .block_erasers =
18005 {
18006 {
18007 .eraseblocks = { {64 * 1024, 8} },
18008 .block_erase = erase_sector_jedec,
18009 }, {
18010 .eraseblocks = { {512 * 1024, 1} },
18011 .block_erase = erase_chip_block_jedec,
18012 }
18013 },
18014 .printlock = printlock_w39v040fc,
18015 .write = write_jedec_1,
18016 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018017 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018018 },
18019
18020 {
18021 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018022 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018023 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018024 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018025 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018026 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000018027 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018028 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000018029 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018030 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000018031 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018032 .block_erasers =
18033 {
18034 {
18035 .eraseblocks = { {64 * 1024, 16} },
18036 .block_erase = erase_sector_jedec,
18037 }, {
18038 .eraseblocks = { {1024 * 1024, 1} },
18039 .block_erase = erase_chip_block_jedec,
18040 }
18041 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018042 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000018043 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018044 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018045 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018046 },
18047
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018048 {
18049 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018050 .name = "W39V080FA",
18051 .bustype = BUS_FWH,
18052 .manufacture_id = WINBOND_ID,
18053 .model_id = WINBOND_W39V080FA,
18054 .total_size = 1024,
18055 .page_size = 64 * 1024,
18056 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
18057 .tested = TEST_OK_PREW,
18058 .probe = probe_jedec,
18059 .probe_timing = 10,
18060 .block_erasers =
18061 {
18062 {
18063 .eraseblocks = { {64 * 1024, 16} },
18064 .block_erase = erase_sector_jedec,
18065 }, {
18066 .eraseblocks = { {1024 * 1024, 1} },
18067 .block_erase = erase_chip_block_jedec,
18068 }
18069 },
18070 .printlock = printlock_w39v080fa,
18071 .unlock = unlock_regspace2_uniform_64k,
18072 .write = write_jedec_1,
18073 .read = read_memmapped,
18074 .voltage = {3000, 3600}, /* Also has 12V fast program */
18075 },
18076
18077 {
18078 .vendor = "Winbond",
18079 .name = "W39V080FA (dual mode)",
18080 .bustype = BUS_FWH,
18081 .manufacture_id = WINBOND_ID,
18082 .model_id = WINBOND_W39V080FA_DM,
18083 .total_size = 512,
18084 .page_size = 64 * 1024,
18085 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
18086 .tested = TEST_UNTESTED,
18087 .probe = probe_jedec,
18088 .probe_timing = 10,
18089 .block_erasers =
18090 {
18091 {
18092 .eraseblocks = { {64 * 1024, 8} },
18093 .block_erase = erase_sector_jedec,
18094 }, {
18095 .eraseblocks = { {512 * 1024, 1} },
18096 .block_erase = erase_chip_block_jedec,
18097 }
18098 },
18099 .printlock = printlock_w39v080fa_dual,
18100 .write = write_jedec_1,
18101 .read = read_memmapped,
18102 .voltage = {3000, 3600}, /* Also has 12V fast program */
18103 },
18104
18105 {
18106 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018107 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018108 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018109 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018110 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018111 .total_size = 256,
18112 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018113 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000018114 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018115 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018116 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018117 .block_erasers =
18118 {
18119 {
18120 .eraseblocks = {
18121 {128 * 1024, 1},
18122 {96 * 1024, 1},
18123 {8 * 1024, 2},
18124 {16 * 1024, 1},
18125 },
18126 .block_erase = erase_sector_jedec,
18127 }, {
18128 .eraseblocks = { {256 * 1024, 1} },
18129 .block_erase = erase_chip_block_jedec,
18130 }
18131 },
Sean Nelson35727f72010-01-28 23:55:12 +000018132 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018133 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018134 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018135 },
18136
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018137 {
18138 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018139 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018140 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018141 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018142 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018143 .total_size = 256,
18144 .page_size = 128,
18145 .feature_bits = FEATURE_EITHER_RESET,
18146 .tested = TEST_OK_PROBE,
18147 .probe = probe_jedec,
18148 .probe_timing = 10,
18149 .block_erasers =
18150 {
18151 {
18152 .eraseblocks = { {256 * 1024, 1} },
18153 .block_erase = erase_chip_block_jedec,
18154 }
18155 },
18156 .write = write_jedec_1,
18157 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018158 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018159 },
18160
18161 {
18162 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018163 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018164 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018165 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018166 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018167 .total_size = 256,
18168 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018169 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018170 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018171 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018172 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018173 .block_erasers =
18174 {
18175 {
18176 .eraseblocks = {
18177 {64 * 1024, 3},
18178 {32 * 1024, 1},
18179 {8 * 1024, 2},
18180 {16 * 1024, 1},
18181 },
18182 .block_erase = erase_sector_jedec,
18183 }, {
18184 .eraseblocks = { {256 * 1024, 1} },
18185 .block_erase = erase_chip_block_jedec,
18186 }
18187 },
Sean Nelson35727f72010-01-28 23:55:12 +000018188 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018189 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018190 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018191 },
18192
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018193 {
18194 .vendor = "Winbond",
18195 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018196 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018197 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018198 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018199 .total_size = 256,
18200 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018201 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000018202 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018203 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018204 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018205 .block_erasers =
18206 {
18207 {
18208 .eraseblocks = {
18209 {64 * 1024, 3},
18210 {32 * 1024, 1},
18211 {8 * 1024, 2},
18212 {16 * 1024, 1},
18213 },
18214 .block_erase = erase_sector_jedec,
18215 }, {
18216 .eraseblocks = { {256 * 1024, 1} },
18217 .block_erase = erase_chip_block_jedec,
18218 }
18219 },
Sean Nelson35727f72010-01-28 23:55:12 +000018220 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018221 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018222 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018223 },
18224
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018225 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100018226 .vendor = "Zetta Device",
18227 .name = "ZD25D20",
18228 .bustype = BUS_SPI,
18229 .manufacture_id = ZETTADEVICE_ID,
18230 .model_id = ZETTADEVICE_ZD25D20,
18231 .total_size = 256,
18232 .page_size = 256,
18233 .feature_bits = FEATURE_WRSR_WREN,
18234 .tested = TEST_UNTESTED,
18235 .probe = probe_spi_rdid,
18236 .probe_timing = TIMING_ZERO,
18237 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080018238 {
18239 {
18240 .eraseblocks = { {4 * 1024, 64} },
18241 .block_erase = spi_block_erase_20,
18242 }, {
18243 .eraseblocks = { {32 * 1024, 8} },
18244 .block_erase = spi_block_erase_52,
18245 }, {
18246 .eraseblocks = { {64 * 1024, 4} },
18247 .block_erase = spi_block_erase_d8,
18248 }, {
18249 .eraseblocks = { {256 * 1024, 1} },
18250 .block_erase = spi_block_erase_60,
18251 }, {
18252 .eraseblocks = { {256 * 1024, 1} },
18253 .block_erase = spi_block_erase_c7,
18254 }
18255 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100018256 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18257 .unlock = spi_disable_blockprotect,
18258 .write = spi_chip_write_256,
18259 .read = spi_chip_read,
18260 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080018261 },
18262
18263 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100018264 .vendor = "Zetta Device",
18265 .name = "ZD25D40",
18266 .bustype = BUS_SPI,
18267 .manufacture_id = ZETTADEVICE_ID,
18268 .model_id = ZETTADEVICE_ZD25D40,
18269 .total_size = 512,
18270 .page_size = 256,
18271 .feature_bits = FEATURE_WRSR_WREN,
18272 .tested = TEST_UNTESTED,
18273 .probe = probe_spi_rdid,
18274 .probe_timing = TIMING_ZERO,
18275 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080018276 {
18277 {
18278 .eraseblocks = { {4 * 1024, 128} },
18279 .block_erase = spi_block_erase_20,
18280 }, {
18281 .eraseblocks = { {32 * 1024, 16} },
18282 .block_erase = spi_block_erase_52,
18283 }, {
18284 .eraseblocks = { {64 * 1024, 8} },
18285 .block_erase = spi_block_erase_d8,
18286 }, {
18287 .eraseblocks = { {512 * 1024, 1} },
18288 .block_erase = spi_block_erase_60,
18289 }, {
18290 .eraseblocks = { {512 * 1024, 1} },
18291 .block_erase = spi_block_erase_c7,
18292 }
18293 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100018294 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18295 .unlock = spi_disable_blockprotect,
18296 .write = spi_chip_write_256,
18297 .read = spi_chip_read,
18298 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080018299 },
18300
Stefan Taunerac1b4c82012-02-17 14:51:04 +000018301 {
Alan Greendd592202019-08-23 10:11:37 +100018302 .vendor = "Unknown",
18303 .name = "SFDP-capable chip",
18304 .bustype = BUS_SPI,
18305 .manufacture_id = GENERIC_MANUF_ID,
18306 .model_id = SFDP_DEVICE_ID,
18307 .total_size = 0, /* set by probing function */
18308 .page_size = 0, /* set by probing function */
18309 .feature_bits = 0, /* set by probing function */
18310 /* We present our own "report this" text hence we do not */
18311 /* want the default "This flash part has status UNTESTED..." */
18312 /* text to be printed. */
18313 .tested = TEST_OK_PREW,
18314 .probe = probe_spi_sfdp,
18315 .block_erasers = {}, /* set by probing function */
18316 .unlock = spi_disable_blockprotect, /* is this safe? */
18317 .write = NULL, /* set by probing function */
18318 .read = spi_chip_read,
18319 /* FIXME: some vendor extensions define this */
18320 .voltage = {0},
18321 },
18322
18323 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000018324 .vendor = "Programmer",
18325 .name = "Opaque flash chip",
18326 .bustype = BUS_PROG,
18327 .manufacture_id = PROGMANUF_ID,
18328 .model_id = PROGDEV_ID,
18329 .total_size = 0,
18330 .page_size = 256,
18331 /* probe is assumed to work, rest will be filled in by probe */
18332 .tested = TEST_OK_PROBE,
18333 .probe = probe_opaque,
18334 /* eraseblock sizes will be set by the probing function */
18335 .block_erasers =
18336 {
18337 {
18338 .block_erase = erase_opaque,
18339 }
18340 },
18341 .write = write_opaque,
18342 .read = read_opaque,
18343 },
18344
18345 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000018346 .vendor = "AMIC",
18347 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018348 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000018349 .manufacture_id = AMIC_ID,
18350 .model_id = GENERIC_DEVICE_ID,
18351 .total_size = 0,
18352 .page_size = 256,
18353 .tested = TEST_BAD_PREW,
18354 .probe = probe_spi_rdid4,
18355 .probe_timing = TIMING_ZERO,
18356 .write = NULL,
18357 .read = NULL,
18358 },
18359
18360 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018361 .vendor = "Atmel",
18362 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018363 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018364 .manufacture_id = ATMEL_ID,
18365 .model_id = GENERIC_DEVICE_ID,
18366 .total_size = 0,
18367 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018368 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018369 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018370 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018371 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018372 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018373 },
18374
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018375 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000018376 .vendor = "Eon",
18377 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018378 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018379 .manufacture_id = EON_ID_NOPREFIX,
18380 .model_id = GENERIC_DEVICE_ID,
18381 .total_size = 0,
18382 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018383 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018384 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018385 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018386 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018387 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018388 },
18389
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018390 {
18391 .vendor = "Macronix",
18392 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018393 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000018394 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018395 .model_id = GENERIC_DEVICE_ID,
18396 .total_size = 0,
18397 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018398 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018399 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018400 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018401 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018402 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018403 },
18404
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018405 {
18406 .vendor = "PMC",
18407 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018408 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018409 .manufacture_id = PMC_ID,
18410 .model_id = GENERIC_DEVICE_ID,
18411 .total_size = 0,
18412 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018413 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018414 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018415 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018416 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018417 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018418 },
18419
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018420 {
18421 .vendor = "SST",
18422 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018423 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018424 .manufacture_id = SST_ID,
18425 .model_id = GENERIC_DEVICE_ID,
18426 .total_size = 0,
18427 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018428 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018429 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018430 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018431 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018432 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018433 },
18434
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018435 {
18436 .vendor = "ST",
18437 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018438 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018439 .manufacture_id = ST_ID,
18440 .model_id = GENERIC_DEVICE_ID,
18441 .total_size = 0,
18442 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018443 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018444 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018445 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018446 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018447 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018448 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000018449
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018450 {
Sean Nelson118e1d62009-11-24 02:08:11 +000018451 .vendor = "Sanyo",
18452 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018453 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000018454 .manufacture_id = SANYO_ID,
18455 .model_id = GENERIC_DEVICE_ID,
18456 .total_size = 0,
18457 .page_size = 256,
18458 .tested = TEST_BAD_PREW,
18459 .probe = probe_spi_rdid,
18460 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000018461 .write = NULL,
18462 .read = NULL,
18463 },
18464
18465 {
Stefan Taunereb582572012-09-21 12:52:50 +000018466 .vendor = "Winbond",
18467 .name = "unknown Winbond (ex Nexcom) SPI chip",
18468 .bustype = BUS_SPI,
18469 .manufacture_id = WINBOND_NEX_ID,
18470 .model_id = GENERIC_DEVICE_ID,
18471 .total_size = 0,
18472 .page_size = 256,
18473 .tested = TEST_BAD_PREW,
18474 .probe = probe_spi_rdid,
18475 .probe_timing = TIMING_ZERO,
18476 .write = NULL,
18477 .read = NULL,
18478 },
18479
18480 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018481 .vendor = "Generic",
18482 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018483 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018484 .manufacture_id = GENERIC_MANUF_ID,
18485 .model_id = GENERIC_DEVICE_ID,
18486 .total_size = 0,
18487 .page_size = 256,
18488 .tested = TEST_BAD_PREW,
18489 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018490 .write = NULL,
18491 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000018492
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018493 {
18494 .vendor = "Generic",
18495 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018496 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018497 .manufacture_id = GENERIC_MANUF_ID,
18498 .model_id = GENERIC_DEVICE_ID,
18499 .total_size = 0,
18500 .page_size = 256,
18501 .tested = TEST_BAD_PREW,
18502 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018503 .write = NULL,
18504 },
18505
Stefan Tauner96658be2014-05-26 22:05:31 +000018506 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000018507};
Stefan Tauner96658be2014-05-26 22:05:31 +000018508
18509const unsigned int flashchips_size = ARRAY_SIZE(flashchips);