blob: eab7e2efb50ac6926eb3217b5b02de939979e6d3 [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 */
20
21#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000022#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000023#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000024
Uwe Hermannfc425e82008-03-16 02:06:25 +000025/**
Uwe Hermanna9720402009-05-21 15:55:46 +000026 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000027 *
Alan Green1f9cc7d2019-07-01 11:10:45 +100028 * Temporarily, this file is sorted alphabetically by vendor and name to
29 * assist with merging the Chromium fork of flashrom.
30 *
31 * The usual intention is that that this list is sorted by vendor, then chip
32 * family and chip density, which is useful for the output of 'flashrom -L'.
Uwe Hermannfc425e82008-03-16 02:06:25 +000033 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000034const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000035
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000036 /*
37 * .vendor = Vendor name
38 * .name = Chip name
39 * .bustype = Supported flash bus types (Parallel, LPC...)
40 * .manufacture_id = Manufacturer chip ID
41 * .model_id = Model chip ID
42 * .total_size = Total size in (binary) kbytes
43 * .page_size = Page or eraseblock(?) size in bytes
44 * .tested = Test status
45 * .probe = Probe function
46 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000047 * .block_erasers[] = Array of erase layouts and erase functions
48 * {
49 * .eraseblocks[] = Array of { blocksize, blockcount }
50 * .block_erase = Block erase function
51 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000052 * .printlock = Chip lock status function
53 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000054 * .write = Chip write function
55 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000056 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000057 */
58
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000059 {
60 .vendor = "AMD",
61 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000062 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000063 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000064 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000065 .total_size = 256,
66 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000067 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000068 .tested = TEST_UNTESTED,
69 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000070 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000071 .block_erasers =
72 {
73 {
74 .eraseblocks = {
75 {16 * 1024, 1},
76 {8 * 1024, 2},
77 {32 * 1024, 1},
78 {64 * 1024, 3},
79 },
80 .block_erase = erase_sector_jedec,
81 }, {
82 .eraseblocks = { {256 * 1024, 1} },
83 .block_erase = erase_chip_block_jedec,
84 },
85 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000086 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000087 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000088 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000089 },
90
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000091 {
92 .vendor = "AMD",
93 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000094 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000095 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000096 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000097 .total_size = 256,
98 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000099 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
100 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000101 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000102 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000103 .block_erasers =
104 {
105 {
106 .eraseblocks = {
107 {64 * 1024, 3},
108 {32 * 1024, 1},
109 {8 * 1024, 2},
110 {16 * 1024, 1},
111 },
112 .block_erase = erase_sector_jedec,
113 }, {
114 .eraseblocks = { {256 * 1024, 1} },
115 .block_erase = erase_chip_block_jedec,
116 },
117 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000118 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000119 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000120 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000121 },
122
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 {
124 .vendor = "AMD",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000125 .name = "Am29F010",
126 .bustype = BUS_PARALLEL,
127 .manufacture_id = AMD_ID,
128 .model_id = AMD_AM29F010,
129 .total_size = 128,
130 .page_size = 16 * 1024,
131 .feature_bits = FEATURE_SHORT_RESET,
132 .tested = TEST_UNTESTED,
133 .probe = probe_jedec,
134 .probe_timing = TIMING_ZERO,
135 .block_erasers =
136 {
137 {
138 .eraseblocks = { {16 * 1024, 8} },
139 .block_erase = erase_sector_jedec,
140 }, {
141 .eraseblocks = { {128 * 1024, 1} },
142 .block_erase = erase_chip_block_jedec,
143 },
144 },
145 .write = write_jedec_1,
146 .read = read_memmapped,
147 .voltage = {4500, 5500},
148 },
149
150 {
151 .vendor = "AMD",
152 .name = "Am29F010A/B",
153 .bustype = BUS_PARALLEL,
154 .manufacture_id = AMD_ID,
155 .model_id = AMD_AM29F010,
156 .total_size = 128,
157 .page_size = 16 * 1024,
158 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Alan Greena4e579f2019-07-24 14:18:39 +1000159 .tested = TEST_OK_PRE,
Alan Green1f9cc7d2019-07-01 11:10:45 +1000160 .probe = probe_jedec,
161 .probe_timing = TIMING_ZERO,
162 .block_erasers =
163 {
164 {
165 .eraseblocks = { {16 * 1024, 8} },
166 .block_erase = erase_sector_jedec,
167 }, {
168 .eraseblocks = { {128 * 1024, 1} },
169 .block_erase = erase_chip_block_jedec,
170 },
171 },
172 .write = write_jedec_1,
173 .read = read_memmapped,
174 .voltage = {4500, 5500},
175 },
176
177 {
178 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000179 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000180 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000181 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000182 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000183 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000184 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000185 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000186 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000187 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000188 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000189 .block_erasers =
190 {
191 {
192 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000193 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000194 }, {
195 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000196 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000197 },
198 },
Sean Nelson35727f72010-01-28 23:55:12 +0000199 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000200 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000201 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000202 },
203
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000204 {
205 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000206 .name = "Am29F040",
207 .bustype = BUS_PARALLEL,
208 .manufacture_id = AMD_ID,
209 .model_id = AMD_AM29F040,
210 .total_size = 512,
211 .page_size = 64 * 1024,
212 .feature_bits = FEATURE_EITHER_RESET,
213 .tested = TEST_UNTESTED,
214 .probe = probe_jedec,
215 .probe_timing = TIMING_ZERO,
216 .block_erasers =
217 {
218 {
219 .eraseblocks = { {64 * 1024, 8} },
220 .block_erase = erase_sector_jedec,
221 }, {
222 .eraseblocks = { {512 * 1024, 1} },
223 .block_erase = erase_chip_block_jedec,
224 },
225 },
226 .write = write_jedec_1,
227 .read = read_memmapped,
228 .voltage = {4500, 5500},
229 },
230
231 {
232 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000233 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000234 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000235 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000236 .model_id = AMD_AM29F040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000237 .total_size = 512,
238 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000239 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
240 .tested = TEST_UNTESTED,
241 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000242 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000243 .block_erasers =
244 {
245 {
246 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000247 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000248 }, {
249 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000250 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000251 },
252 },
Sean Nelson35727f72010-01-28 23:55:12 +0000253 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000254 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000255 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000256 },
257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000258 {
259 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000260 .name = "Am29F080",
261 .bustype = BUS_PARALLEL,
262 .manufacture_id = AMD_ID,
263 .model_id = AMD_AM29F080,
264 .total_size = 1024,
265 .page_size = 64 * 1024,
266 .feature_bits = FEATURE_EITHER_RESET,
267 .tested = TEST_UNTESTED,
268 .probe = probe_jedec,
269 .probe_timing = TIMING_ZERO,
270 .block_erasers =
271 {
272 {
273 .eraseblocks = { {64 * 1024, 16} },
274 .block_erase = erase_sector_jedec,
275 }, {
276 .eraseblocks = { {1024 * 1024, 1} },
277 .block_erase = erase_chip_block_jedec,
278 },
279 },
280 .write = write_jedec_1,
281 .read = read_memmapped,
282 .voltage = {4500, 5500},
283 },
284
285 {
286 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000287 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000288 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000289 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000290 .model_id = AMD_AM29F080,
Peter Stuge8440cc02009-01-25 23:55:12 +0000291 .total_size = 1024,
292 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000293 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000294 .tested = TEST_UNTESTED,
295 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000296 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000297 .block_erasers =
298 {
299 {
300 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000301 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000302 }, {
303 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000304 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000305 },
306 },
Sean Nelson35727f72010-01-28 23:55:12 +0000307 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000308 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000309 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000310 },
311
312 {
313 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000314 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000315 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000316 .manufacture_id = AMD_ID,
317 .model_id = AMD_AM29LV001BB,
318 .total_size = 128,
319 .page_size = 64 * 1024, /* unused */
320 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
321 .tested = TEST_OK_PREW,
322 .probe = probe_jedec,
323 .probe_timing = TIMING_ZERO,
324 .block_erasers =
325 {
326 {
327 .eraseblocks = {
328 {8 * 1024, 1},
329 {4 * 1024, 2},
330 {16 * 1024, 7},
331 },
332 .block_erase = erase_sector_jedec,
333 }, {
334 .eraseblocks = { {128 * 1024, 1} },
335 .block_erase = erase_chip_block_jedec,
336 },
337 },
338 .write = write_jedec_1,
339 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000340 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000341 },
342
343 {
344 .vendor = "AMD",
345 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000346 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000347 .manufacture_id = AMD_ID,
348 .model_id = AMD_AM29LV001BT,
349 .total_size = 128,
350 .page_size = 64 * 1024, /* unused */
351 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
352 .tested = TEST_UNTESTED,
353 .probe = probe_jedec,
354 .probe_timing = TIMING_ZERO,
355 .block_erasers =
356 {
357 {
358 .eraseblocks = {
359 {16 * 1024, 7},
360 {4 * 1024, 2},
361 {8 * 1024, 1},
362 },
363 .block_erase = erase_sector_jedec,
364 }, {
365 .eraseblocks = { {128 * 1024, 1} },
366 .block_erase = erase_chip_block_jedec,
367 },
368 },
369 .write = write_jedec_1,
370 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000371 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000372 },
373
374 {
375 .vendor = "AMD",
376 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000377 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000378 .manufacture_id = AMD_ID,
379 .model_id = AMD_AM29LV002BB,
380 .total_size = 256,
381 .page_size = 64 * 1024, /* unused */
382 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
383 .tested = TEST_UNTESTED,
384 .probe = probe_jedec,
385 .probe_timing = TIMING_ZERO,
386 .block_erasers =
387 {
388 {
389 .eraseblocks = {
390 {16 * 1024, 1},
391 {8 * 1024, 2},
392 {32 * 1024, 1},
393 {64 * 1024, 3},
394 },
395 .block_erase = erase_sector_jedec,
396 }, {
397 .eraseblocks = { {256 * 1024, 1} },
398 .block_erase = erase_chip_block_jedec,
399 },
400 },
401 .write = write_jedec_1,
402 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000403 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000404 },
405
406 {
407 .vendor = "AMD",
408 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000409 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000410 .manufacture_id = AMD_ID,
411 .model_id = AMD_AM29LV002BT,
412 .total_size = 256,
413 .page_size = 64 * 1024, /* unused */
414 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
415 .tested = TEST_UNTESTED,
416 .probe = probe_jedec,
417 .probe_timing = TIMING_ZERO,
418 .block_erasers =
419 {
420 {
421 .eraseblocks = {
422 {64 * 1024, 3},
423 {32 * 1024, 1},
424 {8 * 1024, 2},
425 {16 * 1024, 1},
426 },
427 .block_erase = erase_sector_jedec,
428 }, {
429 .eraseblocks = { {256 * 1024, 1} },
430 .block_erase = erase_chip_block_jedec,
431 },
432 },
433 .write = write_jedec_1,
434 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000435 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000436 },
437
438 {
439 .vendor = "AMD",
440 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000441 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000442 .manufacture_id = AMD_ID,
443 .model_id = AMD_AM29LV004BB,
444 .total_size = 512,
445 .page_size = 64 * 1024, /* unused */
446 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
447 .tested = TEST_UNTESTED,
448 .probe = probe_jedec,
449 .probe_timing = TIMING_ZERO,
450 .block_erasers =
451 {
452 {
453 .eraseblocks = {
454 {16 * 1024, 1},
455 {8 * 1024, 2},
456 {32 * 1024, 1},
457 {64 * 1024, 7},
458 },
459 .block_erase = erase_sector_jedec,
460 }, {
461 .eraseblocks = { {512 * 1024, 1} },
462 .block_erase = erase_chip_block_jedec,
463 },
464 },
465 .write = write_jedec_1,
466 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000467 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000468 },
469
470 {
471 .vendor = "AMD",
472 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000473 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000474 .manufacture_id = AMD_ID,
475 .model_id = AMD_AM29LV004BT,
476 .total_size = 512,
477 .page_size = 64 * 1024, /* unused */
478 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
479 .tested = TEST_UNTESTED,
480 .probe = probe_jedec,
481 .probe_timing = TIMING_ZERO,
482 .block_erasers =
483 {
484 {
485 .eraseblocks = {
486 {64 * 1024, 7},
487 {32 * 1024, 1},
488 {8 * 1024, 2},
489 {16 * 1024, 1},
490 },
491 .block_erase = erase_sector_jedec,
492 }, {
493 .eraseblocks = { {512 * 1024, 1} },
494 .block_erase = erase_chip_block_jedec,
495 },
496 },
497 .write = write_jedec_1,
498 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000499 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000500 },
501
502 {
503 .vendor = "AMD",
504 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000505 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000506 .manufacture_id = AMD_ID,
507 .model_id = AMD_AM29LV008BB,
508 .total_size = 1024,
509 .page_size = 64 * 1024, /* unused */
510 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000511 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000512 .probe = probe_jedec,
513 .probe_timing = TIMING_ZERO,
514 .block_erasers =
515 {
516 {
517 .eraseblocks = {
518 {16 * 1024, 1},
519 {8 * 1024, 2},
520 {32 * 1024, 1},
521 {64 * 1024, 15},
522 },
523 .block_erase = erase_sector_jedec,
524 }, {
525 .eraseblocks = { {1024 * 1024, 1} },
526 .block_erase = erase_chip_block_jedec,
527 },
528 },
529 .write = write_jedec_1,
530 .read = read_memmapped,
Alan Greenf5ad6882019-06-27 12:09:13 +1000531 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000532 },
533
534 {
535 .vendor = "AMD",
536 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000537 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000538 .manufacture_id = AMD_ID,
539 .model_id = AMD_AM29LV008BT,
540 .total_size = 1024,
541 .page_size = 64 * 1024, /* unused */
542 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
543 .tested = TEST_UNTESTED,
544 .probe = probe_jedec,
545 .probe_timing = TIMING_ZERO,
546 .block_erasers =
547 {
548 {
549 .eraseblocks = {
550 {64 * 1024, 15},
551 {32 * 1024, 1},
552 {8 * 1024, 2},
553 {16 * 1024, 1},
554 },
555 .block_erase = erase_sector_jedec,
556 }, {
557 .eraseblocks = { {1024 * 1024, 1} },
558 .block_erase = erase_chip_block_jedec,
559 },
560 },
561 .write = write_jedec_1,
562 .read = read_memmapped,
Alan Greenf5ad6882019-06-27 12:09:13 +1000563 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000564 },
565
566 {
567 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000568 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000569 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000570 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000571 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000572 .total_size = 512,
573 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000574 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000575 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000576 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000577 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000578 .block_erasers =
579 {
580 {
581 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000582 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000583 }, {
584 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000585 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000586 },
587 },
Sean Nelson35727f72010-01-28 23:55:12 +0000588 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000589 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000590 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000591 },
592
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000593 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000594 .vendor = "AMD",
595 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000596 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000597 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000598 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000599 .total_size = 1024,
600 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000601 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000602 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000603 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000604 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000605 .block_erasers =
606 {
607 {
608 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000609 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000610 }, {
611 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000612 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000613 },
614 },
Sean Nelson35727f72010-01-28 23:55:12 +0000615 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000616 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000617 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000618 },
619
620 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000621 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000622 .name = "A25L010",
623 .bustype = BUS_SPI,
624 .manufacture_id = AMIC_ID_NOPREFIX,
625 .model_id = AMIC_A25L010,
626 .total_size = 128,
627 .page_size = 256,
628 .feature_bits = FEATURE_WRSR_WREN,
629 .tested = TEST_UNTESTED,
630 .probe = probe_spi_rdid,
631 .probe_timing = TIMING_ZERO,
632 .block_erasers =
633 {
634 {
635 .eraseblocks = { { 4 * 1024, 32 } },
636 .block_erase = spi_block_erase_20,
637 }, {
638 .eraseblocks = { { 64 * 1024, 2 } },
639 .block_erase = spi_block_erase_d8,
640 }, {
641 .eraseblocks = { { 128 * 1024, 1 } },
642 .block_erase = spi_block_erase_c7,
643 }
644 },
645 .printlock = spi_prettyprint_status_register_bp2_srwd,
646 .unlock = spi_disable_blockprotect,
647 .write = spi_chip_write_256,
648 .read = spi_chip_read,
649 .voltage = {2700, 3600},
650 },
651
652 {
653 .vendor = "AMIC",
654 .name = "A25L016",
655 .bustype = BUS_SPI,
656 .manufacture_id = AMIC_ID_NOPREFIX,
657 .model_id = AMIC_A25L016,
658 .total_size = 2048,
659 .page_size = 256,
660 .feature_bits = FEATURE_WRSR_WREN,
661 .tested = TEST_UNTESTED,
662 .probe = probe_spi_rdid,
663 .probe_timing = TIMING_ZERO,
664 .block_erasers =
665 {
666 {
667 .eraseblocks = { { 4 * 1024, 512 } },
668 .block_erase = spi_block_erase_20,
669 }, {
670 .eraseblocks = { { 64 * 1024, 32 } },
671 .block_erase = spi_block_erase_d8,
672 }, {
673 .eraseblocks = { { 2048 * 1024, 1 } },
674 .block_erase = spi_block_erase_c7,
675 }
676 },
677 .printlock = spi_prettyprint_status_register_bp2_srwd,
678 .unlock = spi_disable_blockprotect,
679 .write = spi_chip_write_256,
680 .read = spi_chip_read,
681 .voltage = {2700, 3600},
682 },
683
684 {
685 .vendor = "AMIC",
686 .name = "A25L020",
687 .bustype = BUS_SPI,
688 .manufacture_id = AMIC_ID_NOPREFIX,
689 .model_id = AMIC_A25L020,
690 .total_size = 256,
691 .page_size = 256,
692 .feature_bits = FEATURE_WRSR_WREN,
693 .tested = TEST_UNTESTED,
694 .probe = probe_spi_rdid,
695 .probe_timing = TIMING_ZERO,
696 .block_erasers =
697 {
698 {
699 .eraseblocks = { { 4 * 1024, 64 } },
700 .block_erase = spi_block_erase_20,
701 }, {
702 .eraseblocks = { { 64 * 1024, 4 } },
703 .block_erase = spi_block_erase_d8,
704 }, {
705 .eraseblocks = { { 256 * 1024, 1 } },
706 .block_erase = spi_block_erase_c7,
707 }
708 },
709 .printlock = spi_prettyprint_status_register_bp2_srwd,
710 .unlock = spi_disable_blockprotect,
711 .write = spi_chip_write_256,
712 .read = spi_chip_read,
713 .voltage = {2700, 3600},
714 },
715
716 {
717 .vendor = "AMIC",
718 .name = "A25L032",
719 .bustype = BUS_SPI,
720 .manufacture_id = AMIC_ID_NOPREFIX,
721 .model_id = AMIC_A25L032,
722 .total_size = 4096,
723 .page_size = 256,
724 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
725 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
726 .tested = TEST_OK_PREW,
727 .probe = probe_spi_rdid,
728 .probe_timing = TIMING_ZERO,
729 .block_erasers =
730 {
731 {
732 .eraseblocks = { { 4 * 1024, 1024 } },
733 .block_erase = spi_block_erase_20,
734 }, {
735 .eraseblocks = { { 64 * 1024, 64 } },
736 .block_erase = spi_block_erase_52,
737 }, {
738 .eraseblocks = { { 64 * 1024, 64 } },
739 .block_erase = spi_block_erase_d8,
740 }, {
741 .eraseblocks = { { 4096 * 1024, 1 } },
742 .block_erase = spi_block_erase_60,
743 }, {
744 .eraseblocks = { { 4096 * 1024, 1 } },
745 .block_erase = spi_block_erase_c7,
746 }
747 },
748 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
749 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
750 .write = spi_chip_write_256,
751 .read = spi_chip_read,
752 .voltage = {2700, 3600},
753 },
754
755 {
756 .vendor = "AMIC",
757 .name = "A25L040",
758 .bustype = BUS_SPI,
759 .manufacture_id = AMIC_ID_NOPREFIX,
760 .model_id = AMIC_A25L040,
761 .total_size = 512,
762 .page_size = 256,
763 .feature_bits = FEATURE_WRSR_WREN,
764 .tested = TEST_UNTESTED,
765 .probe = probe_spi_rdid,
766 .probe_timing = TIMING_ZERO,
767 .block_erasers =
768 {
769 {
770 .eraseblocks = { { 4 * 1024, 128 } },
771 .block_erase = spi_block_erase_20,
772 }, {
773 .eraseblocks = { { 64 * 1024, 8 } },
774 .block_erase = spi_block_erase_d8,
775 }, {
776 .eraseblocks = { { 512 * 1024, 1 } },
777 .block_erase = spi_block_erase_c7,
778 }
779 },
780 .printlock = spi_prettyprint_status_register_bp2_srwd,
781 .unlock = spi_disable_blockprotect,
782 .write = spi_chip_write_256,
783 .read = spi_chip_read,
784 .voltage = {2700, 3600},
785 },
786
787 {
788 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000789 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000790 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000791 .manufacture_id = AMIC_ID,
792 .model_id = AMIC_A25L05PT,
793 .total_size = 64,
794 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000795 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000796 .tested = TEST_UNTESTED,
797 .probe = probe_spi_rdid4,
798 .probe_timing = TIMING_ZERO,
799 .block_erasers =
800 {
801 {
802 .eraseblocks = {
803 {32 * 1024, 1},
804 {16 * 1024, 1},
805 {8 * 1024, 1},
806 {4 * 1024, 2},
807 },
808 .block_erase = spi_block_erase_d8,
809 }, {
810 .eraseblocks = { {64 * 1024, 1} },
811 .block_erase = spi_block_erase_c7,
812 }
813 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000814 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000815 .unlock = spi_disable_blockprotect,
816 .write = spi_chip_write_256,
817 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000818 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000819 },
820
821 {
822 .vendor = "AMIC",
823 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000824 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000825 .manufacture_id = AMIC_ID,
826 .model_id = AMIC_A25L05PU,
827 .total_size = 64,
828 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000829 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000830 .tested = TEST_UNTESTED,
831 .probe = probe_spi_rdid4,
832 .probe_timing = TIMING_ZERO,
833 .block_erasers =
834 {
835 {
836 .eraseblocks = {
837 {4 * 1024, 2},
838 {8 * 1024, 1},
839 {16 * 1024, 1},
840 {32 * 1024, 1},
841 },
842 .block_erase = spi_block_erase_d8,
843 }, {
844 .eraseblocks = { {64 * 1024, 1} },
845 .block_erase = spi_block_erase_c7,
846 }
847 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000848 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000849 .unlock = spi_disable_blockprotect,
850 .write = spi_chip_write_256,
851 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000852 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000853 },
854
855 {
856 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000857 .name = "A25L080",
858 .bustype = BUS_SPI,
859 .manufacture_id = AMIC_ID_NOPREFIX,
860 .model_id = AMIC_A25L080,
861 .total_size = 1024,
862 .page_size = 256,
863 .feature_bits = FEATURE_WRSR_WREN,
864 .tested = TEST_UNTESTED,
865 .probe = probe_spi_rdid,
866 .probe_timing = TIMING_ZERO,
867 .block_erasers =
868 {
869 {
870 .eraseblocks = { { 4 * 1024, 256 } },
871 .block_erase = spi_block_erase_20,
872 }, {
873 .eraseblocks = { { 64 * 1024, 16 } },
874 .block_erase = spi_block_erase_d8,
875 }, {
876 .eraseblocks = { { 1024 * 1024, 1 } },
877 .block_erase = spi_block_erase_c7,
878 }
879 },
880 .printlock = spi_prettyprint_status_register_bp2_srwd,
881 .unlock = spi_disable_blockprotect,
882 .write = spi_chip_write_256,
883 .read = spi_chip_read,
884 .voltage = {2700, 3600},
885 },
886
887 {
888 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000889 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000890 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000891 .manufacture_id = AMIC_ID,
892 .model_id = AMIC_A25L10PT,
893 .total_size = 128,
894 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000895 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000896 .tested = TEST_UNTESTED,
897 .probe = probe_spi_rdid4,
898 .probe_timing = TIMING_ZERO,
899 .block_erasers =
900 {
901 {
902 .eraseblocks = {
903 {64 * 1024, 1},
904 {32 * 1024, 1},
905 {16 * 1024, 1},
906 {8 * 1024, 1},
907 {4 * 1024, 2},
908 },
909 .block_erase = spi_block_erase_d8,
910 }, {
911 .eraseblocks = { {128 * 1024, 1} },
912 .block_erase = spi_block_erase_c7,
913 }
914 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000915 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000916 .unlock = spi_disable_blockprotect,
917 .write = spi_chip_write_256,
918 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000919 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000920 },
921
922 {
923 .vendor = "AMIC",
924 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000925 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000926 .manufacture_id = AMIC_ID,
927 .model_id = AMIC_A25L10PU,
928 .total_size = 128,
929 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000930 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000931 .tested = TEST_UNTESTED,
932 .probe = probe_spi_rdid4,
933 .probe_timing = TIMING_ZERO,
934 .block_erasers =
935 {
936 {
937 .eraseblocks = {
938 {4 * 1024, 2},
939 {8 * 1024, 1},
940 {16 * 1024, 1},
941 {32 * 1024, 1},
942 {64 * 1024, 1},
943 },
944 .block_erase = spi_block_erase_d8,
945 }, {
946 .eraseblocks = { {128 * 1024, 1} },
947 .block_erase = spi_block_erase_c7,
948 }
949 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000950 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000951 .unlock = spi_disable_blockprotect,
952 .write = spi_chip_write_256,
953 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000954 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000955 },
956
957 {
958 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000959 .name = "A25L16PT",
960 .bustype = BUS_SPI,
961 .manufacture_id = AMIC_ID,
962 .model_id = AMIC_A25L16PT,
963 .total_size = 2048,
964 .page_size = 256,
965 .feature_bits = FEATURE_WRSR_WREN,
966 .tested = TEST_UNTESTED,
967 .probe = probe_spi_rdid4,
968 .probe_timing = TIMING_ZERO,
969 .block_erasers =
970 {
971 {
972 .eraseblocks = {
973 {64 * 1024, 31},
974 {32 * 1024, 1},
975 {16 * 1024, 1},
976 {8 * 1024, 1},
977 {4 * 1024, 2},
978 },
979 .block_erase = spi_block_erase_d8,
980 }, {
981 .eraseblocks = { {2048 * 1024, 1} },
982 .block_erase = spi_block_erase_60,
983 }, {
984 .eraseblocks = { {2048 * 1024, 1} },
985 .block_erase = spi_block_erase_c7,
986 }
987 },
988 .printlock = spi_prettyprint_status_register_bp2_srwd,
989 .unlock = spi_disable_blockprotect,
990 .write = spi_chip_write_256,
991 .read = spi_chip_read,
992 .voltage = {2700, 3600},
993 },
994
995 {
996 .vendor = "AMIC",
997 .name = "A25L16PU",
998 .bustype = BUS_SPI,
999 .manufacture_id = AMIC_ID,
1000 .model_id = AMIC_A25L16PU,
1001 .total_size = 2048,
1002 .page_size = 256,
1003 .feature_bits = FEATURE_WRSR_WREN,
1004 .tested = TEST_OK_PR,
1005 .probe = probe_spi_rdid4,
1006 .probe_timing = TIMING_ZERO,
1007 .block_erasers =
1008 {
1009 {
1010 .eraseblocks = {
1011 {4 * 1024, 2},
1012 {8 * 1024, 1},
1013 {16 * 1024, 1},
1014 {32 * 1024, 1},
1015 {64 * 1024, 31},
1016 },
1017 .block_erase = spi_block_erase_d8,
1018 }, {
1019 .eraseblocks = { {2048 * 1024, 1} },
1020 .block_erase = spi_block_erase_60,
1021 }, {
1022 .eraseblocks = { {2048 * 1024, 1} },
1023 .block_erase = spi_block_erase_c7,
1024 }
1025 },
1026 .printlock = spi_prettyprint_status_register_bp2_srwd,
1027 .unlock = spi_disable_blockprotect,
1028 .write = spi_chip_write_256,
1029 .read = spi_chip_read,
1030 .voltage = {2700, 3600},
1031 },
1032
1033 {
1034 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001035 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001036 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001037 .manufacture_id = AMIC_ID,
1038 .model_id = AMIC_A25L20PT,
1039 .total_size = 256,
1040 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001041 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001042 .tested = TEST_UNTESTED,
1043 .probe = probe_spi_rdid4,
1044 .probe_timing = TIMING_ZERO,
1045 .block_erasers =
1046 {
1047 {
1048 .eraseblocks = {
1049 {64 * 1024, 3},
1050 {32 * 1024, 1},
1051 {16 * 1024, 1},
1052 {8 * 1024, 1},
1053 {4 * 1024, 2},
1054 },
1055 .block_erase = spi_block_erase_d8,
1056 }, {
1057 .eraseblocks = { {256 * 1024, 1} },
1058 .block_erase = spi_block_erase_c7,
1059 }
1060 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001061 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001062 .unlock = spi_disable_blockprotect,
1063 .write = spi_chip_write_256,
1064 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001065 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001066 },
1067
1068 {
1069 .vendor = "AMIC",
1070 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001071 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001072 .manufacture_id = AMIC_ID,
1073 .model_id = AMIC_A25L20PU,
1074 .total_size = 256,
1075 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001076 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001077 .tested = TEST_UNTESTED,
1078 .probe = probe_spi_rdid4,
1079 .probe_timing = TIMING_ZERO,
1080 .block_erasers =
1081 {
1082 {
1083 .eraseblocks = {
1084 {4 * 1024, 2},
1085 {8 * 1024, 1},
1086 {16 * 1024, 1},
1087 {32 * 1024, 1},
1088 {64 * 1024, 3},
1089 },
1090 .block_erase = spi_block_erase_d8,
1091 }, {
1092 .eraseblocks = { {256 * 1024, 1} },
1093 .block_erase = spi_block_erase_c7,
1094 }
1095 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001096 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001097 .unlock = spi_disable_blockprotect,
1098 .write = spi_chip_write_256,
1099 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001100 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001101 },
1102
1103 /* The A25L40P{T,U} chips are distinguished by their
1104 * erase block layouts, but without any distinction in RDID.
1105 * This inexplicable quirk was verified by Rudolf Marek
1106 * and discussed on the flashrom mailing list on 2010-07-12.
1107 */
1108 {
1109 .vendor = "AMIC",
1110 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001111 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001112 .manufacture_id = AMIC_ID,
1113 .model_id = AMIC_A25L40PT,
1114 .total_size = 512,
1115 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001116 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001117 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001118 .probe = probe_spi_rdid4,
1119 .probe_timing = TIMING_ZERO,
1120 .block_erasers =
1121 {
1122 {
1123 .eraseblocks = {
1124 {64 * 1024, 7},
1125 {32 * 1024, 1},
1126 {16 * 1024, 1},
1127 {8 * 1024, 1},
1128 {4 * 1024, 2},
1129 },
1130 .block_erase = spi_block_erase_d8,
1131 }, {
1132 .eraseblocks = { {512 * 1024, 1} },
1133 .block_erase = spi_block_erase_c7,
1134 }
1135 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001136 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001137 .unlock = spi_disable_blockprotect,
1138 .write = spi_chip_write_256,
1139 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001140 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001141 },
1142
1143 {
1144 .vendor = "AMIC",
1145 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001146 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001147 .manufacture_id = AMIC_ID,
1148 .model_id = AMIC_A25L40PU,
1149 .total_size = 512,
1150 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001151 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons6f088352018-09-30 19:59:42 +02001152 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001153 .probe = probe_spi_rdid4,
1154 .probe_timing = TIMING_ZERO,
1155 .block_erasers =
1156 {
1157 {
1158 .eraseblocks = {
1159 {4 * 1024, 2},
1160 {8 * 1024, 1},
1161 {16 * 1024, 1},
1162 {32 * 1024, 1},
1163 {64 * 1024, 7},
1164 },
1165 .block_erase = spi_block_erase_d8,
1166 }, {
1167 .eraseblocks = { {512 * 1024, 1} },
1168 .block_erase = spi_block_erase_c7,
1169 }
1170 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001171 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001172 .unlock = spi_disable_blockprotect,
1173 .write = spi_chip_write_256,
1174 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001175 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001176 },
1177
1178 {
1179 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001180 .name = "A25L512",
1181 .bustype = BUS_SPI,
1182 .manufacture_id = AMIC_ID_NOPREFIX,
1183 .model_id = AMIC_A25L512,
1184 .total_size = 64,
1185 .page_size = 256,
1186 .feature_bits = FEATURE_WRSR_WREN,
1187 .tested = TEST_UNTESTED,
1188 .probe = probe_spi_rdid,
1189 .probe_timing = TIMING_ZERO,
1190 .block_erasers =
1191 {
1192 {
1193 .eraseblocks = { { 4 * 1024, 16 } },
1194 .block_erase = spi_block_erase_20,
1195 }, {
1196 .eraseblocks = { { 64 * 1024, 1 } },
1197 .block_erase = spi_block_erase_d8,
1198 }, {
1199 .eraseblocks = { { 64 * 1024, 1 } },
1200 .block_erase = spi_block_erase_c7,
1201 }
1202 },
1203 .printlock = spi_prettyprint_status_register_bp2_srwd,
1204 .unlock = spi_disable_blockprotect,
1205 .write = spi_chip_write_256,
1206 .read = spi_chip_read,
1207 .voltage = {2700, 3600},
1208 },
1209
1210 {
1211 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001212 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001213 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001214 .manufacture_id = AMIC_ID,
1215 .model_id = AMIC_A25L80P,
1216 .total_size = 1024,
1217 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001218 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001219 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001220 .probe = probe_spi_rdid4,
1221 .probe_timing = TIMING_ZERO,
1222 .block_erasers =
1223 {
1224 {
1225 .eraseblocks = {
1226 {4 * 1024, 2},
1227 {8 * 1024, 1},
1228 {16 * 1024, 1},
1229 {32 * 1024, 1},
1230 {64 * 1024, 15},
1231 },
1232 .block_erase = spi_block_erase_d8,
1233 }, {
1234 .eraseblocks = { {1024 * 1024, 1} },
1235 .block_erase = spi_block_erase_c7,
1236 }
1237 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001238 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001239 .unlock = spi_disable_blockprotect,
1240 .write = spi_chip_write_256,
1241 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001242 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001243 },
1244
1245 {
1246 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001247 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001248 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001249 .manufacture_id = AMIC_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001250 .model_id = AMIC_A25LQ032,
Dan Lenski11617122010-07-29 15:00:40 +00001251 .total_size = 4096,
1252 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001253 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001254 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1255 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001256 .tested = TEST_UNTESTED,
Dan Lenski11617122010-07-29 15:00:40 +00001257 .probe = probe_spi_rdid,
1258 .probe_timing = TIMING_ZERO,
1259 .block_erasers =
1260 {
1261 {
1262 .eraseblocks = { { 4 * 1024, 1024 } },
1263 .block_erase = spi_block_erase_20,
1264 }, {
1265 .eraseblocks = { { 64 * 1024, 64 } },
1266 .block_erase = spi_block_erase_52,
1267 }, {
1268 .eraseblocks = { { 64 * 1024, 64 } },
1269 .block_erase = spi_block_erase_d8,
1270 }, {
1271 .eraseblocks = { { 4096 * 1024, 1 } },
1272 .block_erase = spi_block_erase_60,
1273 }, {
1274 .eraseblocks = { { 4096 * 1024, 1 } },
1275 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001276 }
Dan Lenski11617122010-07-29 15:00:40 +00001277 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001278 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1279 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001280 .write = spi_chip_write_256,
1281 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001282 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001283 },
1284
1285 {
1286 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001287 .name = "A25LQ16",
1288 .bustype = BUS_SPI,
1289 .manufacture_id = AMIC_ID_NOPREFIX,
1290 .model_id = AMIC_A25LQ16,
1291 .total_size = 2048,
1292 .page_size = 256,
1293 /* supports SFDP */
1294 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1295 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1296 .tested = TEST_UNTESTED,
1297 .probe = probe_spi_rdid,
1298 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10001299 .block_erasers =
1300 {
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001301 {
1302 .eraseblocks = { { 4 * 1024, 512 } },
1303 .block_erase = spi_block_erase_20,
1304 }, {
1305 .eraseblocks = { { 64 * 1024, 32 } },
1306 .block_erase = spi_block_erase_52,
1307 }, {
1308 .eraseblocks = { { 64 * 1024, 32 } },
1309 .block_erase = spi_block_erase_d8,
1310 }, {
1311 .eraseblocks = { { 2048 * 1024, 1 } },
1312 .block_erase = spi_block_erase_60,
1313 }, {
1314 .eraseblocks = { { 2048 * 1024, 1 } },
1315 .block_erase = spi_block_erase_c7,
1316 }
1317 },
1318 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1319 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1320 .write = spi_chip_write_256,
1321 .read = spi_chip_read,
1322 .voltage = {2700, 3600},
1323 },
1324
1325 {
1326 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001327 .name = "A25LQ64",
1328 .bustype = BUS_SPI,
1329 .manufacture_id = AMIC_ID_NOPREFIX,
Stefan Tauner23e10b82016-01-23 16:16:49 +00001330 .model_id = AMIC_A25LQ64,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001331 .total_size = 8192,
1332 .page_size = 256,
1333 /* supports SFDP */
1334 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
1335 /* QPI enable 0x35, disable 0xF5 */
1336 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
1337 .tested = TEST_UNTESTED,
1338 .probe = probe_spi_rdid,
1339 .probe_timing = TIMING_ZERO,
1340 .block_erasers =
1341 {
1342 {
1343 .eraseblocks = { { 4 * 1024, 2048 } },
1344 .block_erase = spi_block_erase_20,
1345 }, {
1346 .eraseblocks = { { 32 * 1024, 256 } },
1347 .block_erase = spi_block_erase_52,
1348 }, {
1349 .eraseblocks = { { 64 * 1024, 128 } },
1350 .block_erase = spi_block_erase_d8,
1351 }, {
1352 .eraseblocks = { { 8192 * 1024, 1 } },
1353 .block_erase = spi_block_erase_60,
1354 }, {
1355 .eraseblocks = { { 8192 * 1024, 1 } },
1356 .block_erase = spi_block_erase_c7,
1357 }
1358 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001359 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */
Stefan Tauner5c316f92015-02-08 21:57:52 +00001360 .unlock = spi_disable_blockprotect_bp3_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001361 .write = spi_chip_write_256,
1362 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001363 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001364 },
1365
1366 {
1367 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001368 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001369 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001370 .manufacture_id = AMIC_ID_NOPREFIX,
1371 .model_id = AMIC_A29002B,
1372 .total_size = 256,
1373 .page_size = 64 * 1024,
1374 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1375 .tested = TEST_UNTESTED,
1376 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001377 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001378 .block_erasers =
1379 {
1380 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001381 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001382 {16 * 1024, 1},
1383 {8 * 1024, 2},
1384 {32 * 1024, 1},
1385 {64 * 1024, 3},
1386 },
1387 .block_erase = erase_sector_jedec,
1388 }, {
1389 .eraseblocks = { {256 * 1024, 1} },
1390 .block_erase = erase_chip_block_jedec,
1391 },
1392 },
1393 .write = write_jedec_1,
1394 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001395 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001396 },
1397
1398 {
1399 .vendor = "AMIC",
1400 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001401 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001402 .manufacture_id = AMIC_ID_NOPREFIX,
1403 .model_id = AMIC_A29002T,
1404 .total_size = 256,
1405 .page_size = 64 * 1024,
1406 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001407 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001408 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001409 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001410 .block_erasers =
1411 {
1412 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001413 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001414 {64 * 1024, 3},
1415 {32 * 1024, 1},
1416 {8 * 1024, 2},
1417 {16 * 1024, 1},
1418 },
1419 .block_erase = erase_sector_jedec,
1420 }, {
1421 .eraseblocks = { {256 * 1024, 1} },
1422 .block_erase = erase_chip_block_jedec,
1423 },
1424 },
1425 .write = write_jedec_1,
1426 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001427 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001428 },
1429
1430 {
1431 .vendor = "AMIC",
1432 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001433 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001434 .manufacture_id = AMIC_ID_NOPREFIX,
1435 .model_id = AMIC_A29040B,
1436 .total_size = 512,
1437 .page_size = 64 * 1024,
1438 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Corey Osgoodcbd56652013-09-10 10:42:48 +00001439 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001440 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001441 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001442 .block_erasers =
1443 {
1444 {
1445 .eraseblocks = { {64 * 1024, 8} },
1446 .block_erase = erase_sector_jedec,
1447 }, {
1448 .eraseblocks = { {512 * 1024, 1} },
1449 .block_erase = erase_chip_block_jedec,
1450 },
1451 },
1452 .write = write_jedec_1,
1453 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001454 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001455 },
1456
1457 {
1458 .vendor = "AMIC",
1459 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001460 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001461 .manufacture_id = AMIC_ID_NOPREFIX,
1462 .model_id = AMIC_A49LF040A,
1463 .total_size = 512,
1464 .page_size = 64 * 1024,
1465 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001466 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001467 .probe = probe_jedec,
1468 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1469 .block_erasers =
1470 {
1471 {
1472 .eraseblocks = { {64 * 1024, 8} },
1473 .block_erase = erase_block_jedec,
1474 }, {
1475 .eraseblocks = { {512 * 1024, 1} },
1476 .block_erase = erase_chip_block_jedec,
1477 }
1478 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001479 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001480 .write = write_jedec_1,
1481 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001482 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001483 },
1484
1485 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001486 .vendor = "Atmel",
1487 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001488 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001489 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001490 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001491 .total_size = 256,
1492 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001493 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1494 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001495 .tested = TEST_UNTESTED,
1496 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001497 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001498 .block_erasers =
1499 {
1500 {
1501 .eraseblocks = { {4 * 1024, 64} },
1502 .block_erase = spi_block_erase_20,
1503 }, {
1504 .eraseblocks = { {32 * 1024, 8} },
1505 .block_erase = spi_block_erase_52,
1506 }, {
1507 .eraseblocks = { {64 * 1024, 4} },
1508 .block_erase = spi_block_erase_d8,
1509 }, {
1510 .eraseblocks = { {256 * 1024, 1} },
1511 .block_erase = spi_block_erase_60,
1512 }, {
1513 .eraseblocks = { {256 * 1024, 1} },
1514 .block_erase = spi_block_erase_c7,
1515 }
1516 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001517 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001518 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001519 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001520 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001521 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001522 },
1523
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001524 {
1525 .vendor = "Atmel",
Steffen Mauch0b59b0d2018-06-02 23:46:03 +02001526 .name = "AT25DF021A",
1527 .bustype = BUS_SPI,
1528 .manufacture_id = ATMEL_ID,
1529 .model_id = ATMEL_AT25DF021A,
1530 .total_size = 256,
1531 .page_size = 256,
1532 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1533 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1534 .tested = TEST_OK_PREW,
1535 .probe = probe_spi_rdid,
1536 .probe_timing = TIMING_ZERO,
1537 .block_erasers =
1538 {
1539 {
1540 .eraseblocks = { {4 * 1024, 64} },
1541 .block_erase = spi_block_erase_20,
1542 }, {
1543 .eraseblocks = { {32 * 1024, 8} },
1544 .block_erase = spi_block_erase_52,
1545 }, {
1546 .eraseblocks = { {64 * 1024, 4} },
1547 .block_erase = spi_block_erase_d8,
1548 }, {
1549 .eraseblocks = { {256 * 1024, 1} },
1550 .block_erase = spi_block_erase_60,
1551 }, {
1552 .eraseblocks = { {256 * 1024, 1} },
1553 .block_erase = spi_block_erase_c7,
1554 }
1555 },
1556 .printlock = spi_prettyprint_status_register_at25df,
1557 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
1558 .write = spi_chip_write_256,
1559 .read = spi_chip_read,
1560 .voltage = {1650, 3600},
1561 },
1562
1563 {
1564 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001565 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001566 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001567 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001568 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001569 .total_size = 512,
1570 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001571 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00001572 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001573 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001574 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001575 .block_erasers =
1576 {
1577 {
1578 .eraseblocks = { {4 * 1024, 128} },
1579 .block_erase = spi_block_erase_20,
1580 }, {
1581 .eraseblocks = { {32 * 1024, 16} },
1582 .block_erase = spi_block_erase_52,
1583 }, {
1584 .eraseblocks = { {64 * 1024, 8} },
1585 .block_erase = spi_block_erase_d8,
1586 }, {
1587 .eraseblocks = { {512 * 1024, 1} },
1588 .block_erase = spi_block_erase_60,
1589 }, {
1590 .eraseblocks = { {512 * 1024, 1} },
1591 .block_erase = spi_block_erase_c7,
1592 }
1593 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001594 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001595 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001596 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001597 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001598 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001599 },
1600
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001601 {
1602 .vendor = "Atmel",
1603 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001604 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001605 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001606 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001607 .total_size = 1024,
1608 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001609 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001610 .tested = TEST_UNTESTED,
1611 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001612 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001613 .block_erasers =
1614 {
1615 {
1616 .eraseblocks = { {4 * 1024, 256} },
1617 .block_erase = spi_block_erase_20,
1618 }, {
1619 .eraseblocks = { {32 * 1024, 32} },
1620 .block_erase = spi_block_erase_52,
1621 }, {
1622 .eraseblocks = { {64 * 1024, 16} },
1623 .block_erase = spi_block_erase_d8,
1624 }, {
1625 .eraseblocks = { {1024 * 1024, 1} },
1626 .block_erase = spi_block_erase_60,
1627 }, {
1628 .eraseblocks = { {1024 * 1024, 1} },
1629 .block_erase = spi_block_erase_c7,
1630 }
1631 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001632 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001633 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001634 .write = spi_chip_write_256,
1635 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001636 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001637 },
1638
1639 {
1640 .vendor = "Atmel",
1641 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001642 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001643 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001644 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001645 .total_size = 1024,
1646 .page_size = 256,
1647 .feature_bits = FEATURE_WRSR_WREN,
1648 .tested = TEST_UNTESTED,
1649 .probe = probe_spi_rdid,
1650 .probe_timing = TIMING_ZERO,
1651 .block_erasers =
1652 {
1653 {
1654 .eraseblocks = { {4 * 1024, 256} },
1655 .block_erase = spi_block_erase_20,
1656 }, {
1657 .eraseblocks = { {32 * 1024, 32} },
1658 .block_erase = spi_block_erase_52,
1659 }, {
1660 .eraseblocks = { {64 * 1024, 16} },
1661 .block_erase = spi_block_erase_d8,
1662 }, {
1663 .eraseblocks = { {1024 * 1024, 1} },
1664 .block_erase = spi_block_erase_60,
1665 }, {
1666 .eraseblocks = { {1024 * 1024, 1} },
1667 .block_erase = spi_block_erase_c7,
1668 }
1669 },
1670 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001671 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001672 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001673 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001674 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001675 },
1676
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001677 {
1678 .vendor = "Atmel",
1679 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001680 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001681 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001682 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001683 .total_size = 2048,
1684 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001685 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons8b5b9622018-09-30 19:13:15 +02001686 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001687 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001688 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001689 .block_erasers =
1690 {
1691 {
1692 .eraseblocks = { {4 * 1024, 512} },
1693 .block_erase = spi_block_erase_20,
1694 }, {
1695 .eraseblocks = { {32 * 1024, 64} },
1696 .block_erase = spi_block_erase_52,
1697 }, {
1698 .eraseblocks = { {64 * 1024, 32} },
1699 .block_erase = spi_block_erase_d8,
1700 }, {
1701 .eraseblocks = { {2 * 1024 * 1024, 1} },
1702 .block_erase = spi_block_erase_60,
1703 }, {
1704 .eraseblocks = { {2 * 1024 * 1024, 1} },
1705 .block_erase = spi_block_erase_c7,
1706 }
1707 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001708 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001709 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001710 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001711 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001712 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001713 },
1714
Alan Green86bf6ab2019-06-27 16:58:20 +10001715 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001716 {
1717 .vendor = "Atmel",
1718 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001719 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001720 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001721 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001722 .total_size = 4096,
1723 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001724 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001725 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001726 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001727 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001728 .block_erasers =
1729 {
1730 {
1731 .eraseblocks = { {4 * 1024, 1024} },
1732 .block_erase = spi_block_erase_20,
1733 }, {
1734 .eraseblocks = { {32 * 1024, 128} },
1735 .block_erase = spi_block_erase_52,
1736 }, {
1737 .eraseblocks = { {64 * 1024, 64} },
1738 .block_erase = spi_block_erase_d8,
1739 }, {
1740 .eraseblocks = { {4 * 1024 * 1024, 1} },
1741 .block_erase = spi_block_erase_60,
1742 }, {
1743 .eraseblocks = { {4 * 1024 * 1024, 1} },
1744 .block_erase = spi_block_erase_c7,
1745 }
1746 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001747 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001748 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001749 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001750 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001751 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001752 },
1753
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001754 {
1755 .vendor = "Atmel",
1756 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001757 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001758 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001759 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001760 .total_size = 4096,
1761 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001762 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1763 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001764 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001765 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001766 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001767 .block_erasers =
1768 {
1769 {
1770 .eraseblocks = { {4 * 1024, 1024} },
1771 .block_erase = spi_block_erase_20,
1772 }, {
1773 .eraseblocks = { {32 * 1024, 128} },
1774 .block_erase = spi_block_erase_52,
1775 }, {
1776 .eraseblocks = { {64 * 1024, 64} },
1777 .block_erase = spi_block_erase_d8,
1778 }, {
1779 .eraseblocks = { {4 * 1024 * 1024, 1} },
1780 .block_erase = spi_block_erase_60,
1781 }, {
1782 .eraseblocks = { {4 * 1024 * 1024, 1} },
1783 .block_erase = spi_block_erase_c7,
1784 }
1785 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001786 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001787 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001788 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001789 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001790 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001791 },
1792
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001793 {
1794 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001795 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001796 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001797 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001798 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001799 .total_size = 8192,
1800 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001801 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001802 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001803 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001804 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001805 .block_erasers =
1806 {
1807 {
1808 .eraseblocks = { {4 * 1024, 2048} },
1809 .block_erase = spi_block_erase_20,
1810 }, {
1811 .eraseblocks = { {32 * 1024, 256} },
1812 .block_erase = spi_block_erase_52,
1813 }, {
1814 .eraseblocks = { {64 * 1024, 128} },
1815 .block_erase = spi_block_erase_d8,
1816 }, {
1817 .eraseblocks = { {8 * 1024 * 1024, 1} },
1818 .block_erase = spi_block_erase_60,
1819 }, {
1820 .eraseblocks = { {8 * 1024 * 1024, 1} },
1821 .block_erase = spi_block_erase_c7,
1822 }
1823 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001824 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001825 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001826 .write = spi_chip_write_256,
1827 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001828 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001829 },
1830
1831 {
1832 .vendor = "Atmel",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001833 .name = "AT25DL081",
1834 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001835 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001836 .model_id = ATMEL_AT25DF081,
1837 .total_size = 1024,
1838 .page_size = 256,
1839 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1840 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1841 .tested = TEST_UNTESTED,
1842 .probe = probe_spi_rdid,
1843 .probe_timing = TIMING_ZERO,
1844 .block_erasers =
1845 {
1846 {
1847 .eraseblocks = { {4 * 1024, 256} },
1848 .block_erase = spi_block_erase_20,
1849 }, {
1850 .eraseblocks = { {32 * 1024, 32} },
1851 .block_erase = spi_block_erase_52,
1852 }, {
1853 .eraseblocks = { {64 * 1024, 16} },
1854 .block_erase = spi_block_erase_d8,
1855 }, {
1856 .eraseblocks = { {1 * 1024 * 1024, 1} },
1857 .block_erase = spi_block_erase_60,
1858 }, {
1859 .eraseblocks = { {1 * 1024 * 1024, 1} },
1860 .block_erase = spi_block_erase_c7,
1861 }
1862 },
1863 .printlock = spi_prettyprint_status_register_at25df_sec,
1864 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1865 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1866 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1867 .voltage = {1650, 1950},
1868 },
1869
1870 {
1871 .vendor = "Atmel",
1872 .name = "AT25DL161",
1873 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001874 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001875 .model_id = ATMEL_AT25DL161,
1876 .total_size = 2048,
1877 .page_size = 256,
1878 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1879 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1880 .tested = TEST_UNTESTED,
1881 .probe = probe_spi_rdid,
1882 .probe_timing = TIMING_ZERO,
1883 .block_erasers =
1884 {
1885 {
1886 .eraseblocks = { {4 * 1024, 512} },
1887 .block_erase = spi_block_erase_20,
1888 }, {
1889 .eraseblocks = { {32 * 1024, 64} },
1890 .block_erase = spi_block_erase_52,
1891 }, {
1892 .eraseblocks = { {64 * 1024, 32} },
1893 .block_erase = spi_block_erase_d8,
1894 }, {
1895 .eraseblocks = { {2 * 1024 * 1024, 1} },
1896 .block_erase = spi_block_erase_60,
1897 }, {
1898 .eraseblocks = { {2 * 1024 * 1024, 1} },
1899 .block_erase = spi_block_erase_c7,
1900 }
1901 },
1902 .printlock = spi_prettyprint_status_register_at25df_sec,
1903 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1904 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1905 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1906 .voltage = {1650, 1950},
1907 },
1908
1909 {
1910 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001911 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001912 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001913 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001914 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001915 .total_size = 2048,
1916 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001917 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1918 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001919 .tested = TEST_UNTESTED,
1920 .probe = probe_spi_rdid,
1921 .probe_timing = TIMING_ZERO,
1922 .block_erasers =
1923 {
1924 {
1925 .eraseblocks = { {4 * 1024, 512} },
1926 .block_erase = spi_block_erase_20,
1927 }, {
1928 .eraseblocks = { {32 * 1024, 64} },
1929 .block_erase = spi_block_erase_52,
1930 }, {
1931 .eraseblocks = { {64 * 1024, 32} },
1932 .block_erase = spi_block_erase_d8,
1933 }, {
1934 .eraseblocks = { {2 * 1024 * 1024, 1} },
1935 .block_erase = spi_block_erase_60,
1936 }, {
1937 .eraseblocks = { {2 * 1024 * 1024, 1} },
1938 .block_erase = spi_block_erase_c7,
1939 }
1940 },
1941 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001942 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001943 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001944 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001945 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001946 },
1947
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001948 {
1949 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001950 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1951 * All other properties seem to be the same.*/
1952 .name = "AT25F1024(A)",
1953 .bustype = BUS_SPI,
1954 .manufacture_id = ATMEL_ID,
1955 .model_id = ATMEL_AT25F1024,
1956 .total_size = 128,
1957 .page_size = 256,
1958 .feature_bits = FEATURE_WRSR_WREN,
1959 .tested = TEST_OK_PREW,
1960 .probe = probe_spi_at25f,
1961 .probe_timing = TIMING_ZERO,
1962 .block_erasers =
1963 {
1964 {
1965 .eraseblocks = { {32 * 1024, 4} },
1966 .block_erase = spi_block_erase_52,
1967 }, {
1968 .eraseblocks = { {128 * 1024, 1} },
1969 .block_erase = spi_block_erase_62,
1970 }
1971 },
1972 .printlock = spi_prettyprint_status_register_at25f,
1973 .unlock = spi_disable_blockprotect_at25f,
1974 .write = spi_chip_write_256,
1975 .read = spi_chip_read,
1976 .voltage = {2700, 3600},
1977 },
1978
1979 {
1980 .vendor = "Atmel",
1981 .name = "AT25F2048",
1982 .bustype = BUS_SPI,
1983 .manufacture_id = ATMEL_ID,
1984 .model_id = ATMEL_AT25F2048,
1985 .total_size = 256,
1986 .page_size = 256,
1987 .feature_bits = FEATURE_WRSR_WREN,
1988 .tested = TEST_UNTESTED,
1989 .probe = probe_spi_at25f,
1990 .probe_timing = TIMING_ZERO,
1991 .block_erasers =
1992 {
1993 {
1994 .eraseblocks = { {64 * 1024, 4} },
1995 .block_erase = spi_block_erase_52,
1996 }, {
1997 .eraseblocks = { {256 * 1024, 1} },
1998 .block_erase = spi_block_erase_62,
1999 }
2000 },
2001 .printlock = spi_prettyprint_status_register_at25f,
2002 .unlock = spi_disable_blockprotect_at25f,
2003 .write = spi_chip_write_256,
2004 .read = spi_chip_read,
2005 .voltage = {2700, 3600},
2006 },
2007
2008 {
2009 .vendor = "Atmel",
2010 .name = "AT25F4096",
2011 .bustype = BUS_SPI,
2012 .manufacture_id = ATMEL_ID,
2013 .model_id = ATMEL_AT25F4096,
2014 .total_size = 512,
2015 .page_size = 256,
2016 .feature_bits = FEATURE_WRSR_WREN,
2017 .tested = TEST_OK_PREW,
2018 .probe = probe_spi_at25f,
2019 .probe_timing = TIMING_ZERO,
2020 .block_erasers =
2021 {
2022 {
2023 .eraseblocks = { {64 * 1024, 8} },
2024 .block_erase = spi_block_erase_52,
2025 }, {
2026 .eraseblocks = { {512 * 1024, 1} },
2027 .block_erase = spi_block_erase_62,
2028 }
2029 },
2030 .printlock = spi_prettyprint_status_register_at25f4096,
2031 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2032 .unlock = spi_disable_blockprotect_bp2_srwd,
2033 .write = spi_chip_write_256,
2034 .read = spi_chip_read,
2035 .voltage = {2700, 3600},
2036 },
2037
2038 {
2039 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00002040 .name = "AT25F512",
2041 .bustype = BUS_SPI,
2042 .manufacture_id = ATMEL_ID,
2043 .model_id = ATMEL_AT25F512,
2044 .total_size = 64,
2045 .page_size = 256,
2046 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00002047 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002048 .probe = probe_spi_at25f,
2049 .probe_timing = TIMING_ZERO,
2050 .block_erasers =
2051 {
2052 {
2053 .eraseblocks = { {32 * 1024, 2} },
2054 .block_erase = spi_block_erase_52,
2055 }, {
2056 .eraseblocks = { {64 * 1024, 1} },
2057 .block_erase = spi_block_erase_62,
2058 }
2059 },
2060 .printlock = spi_prettyprint_status_register_at25f,
2061 .unlock = spi_disable_blockprotect_at25f,
2062 .write = spi_chip_write_256,
2063 .read = spi_chip_read,
2064 .voltage = {2700, 3600},
2065 },
2066
2067 {
2068 .vendor = "Atmel",
2069 .name = "AT25F512A",
2070 .bustype = BUS_SPI,
2071 .manufacture_id = ATMEL_ID,
2072 .model_id = ATMEL_AT25F512A,
2073 .total_size = 64,
2074 .page_size = 128,
2075 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00002076 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002077 .probe = probe_spi_at25f,
2078 .probe_timing = TIMING_ZERO,
2079 .block_erasers =
2080 {
2081 {
2082 .eraseblocks = { {32 * 1024, 2} },
2083 .block_erase = spi_block_erase_52,
2084 }, {
2085 .eraseblocks = { {64 * 1024, 1} },
2086 .block_erase = spi_block_erase_62,
2087 }
2088 },
2089 .printlock = spi_prettyprint_status_register_at25f512a,
2090 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
2091 .unlock = spi_disable_blockprotect_at25f512a,
2092 .write = spi_chip_write_256,
2093 .read = spi_chip_read,
2094 .voltage = {2700, 3600},
2095 },
2096
2097 {
2098 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002100 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002101 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002102 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 .total_size = 64,
2104 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00002105 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2106 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002107 .tested = TEST_UNTESTED,
2108 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002109 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002110 .block_erasers =
2111 {
2112 {
2113 .eraseblocks = { {4 * 1024, 16} },
2114 .block_erase = spi_block_erase_20,
2115 }, {
2116 .eraseblocks = { {32 * 1024, 2} },
2117 .block_erase = spi_block_erase_52,
2118 }, {
2119 .eraseblocks = { {32 * 1024, 2} },
2120 .block_erase = spi_block_erase_d8,
2121 }, {
2122 .eraseblocks = { {64 * 1024, 1} },
2123 .block_erase = spi_block_erase_60,
2124 }, {
2125 .eraseblocks = { {64 * 1024, 1} },
2126 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00002127 }, {
2128 .eraseblocks = { {64 * 1024, 1} },
2129 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00002130 }
2131 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00002132 .printlock = spi_prettyprint_status_register_at25f512b,
2133 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002134 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002136 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002137 },
2138
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002139 {
2140 .vendor = "Atmel",
2141 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002142 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002143 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002144 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002145 .total_size = 128,
2146 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002147 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002148 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002149 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002150 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002151 .block_erasers =
2152 {
2153 {
2154 .eraseblocks = { {4 * 1024, 32} },
2155 .block_erase = spi_block_erase_20,
2156 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002157 .eraseblocks = { {4 * 1024, 32} },
2158 .block_erase = spi_block_erase_d7,
2159 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002160 .eraseblocks = { {32 * 1024, 4} },
2161 .block_erase = spi_block_erase_52,
2162 }, {
2163 .eraseblocks = { {32 * 1024, 4} },
2164 .block_erase = spi_block_erase_d8,
2165 }, {
2166 .eraseblocks = { {128 * 1024, 1} },
2167 .block_erase = spi_block_erase_60,
2168 }, {
2169 .eraseblocks = { {128 * 1024, 1} },
2170 .block_erase = spi_block_erase_c7,
2171 }
2172 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002173 .printlock = spi_prettyprint_status_register_at25fs010,
2174 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002175 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002176 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002177 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002178 },
2179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002180 {
2181 .vendor = "Atmel",
2182 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002183 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002184 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002185 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002186 .total_size = 512,
2187 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002188 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002189 .tested = TEST_UNTESTED,
2190 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002191 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002192 .block_erasers =
2193 {
2194 {
2195 .eraseblocks = { {4 * 1024, 128} },
2196 .block_erase = spi_block_erase_20,
2197 }, {
2198 .eraseblocks = { {64 * 1024, 8} },
2199 .block_erase = spi_block_erase_52,
2200 }, {
2201 .eraseblocks = { {64 * 1024, 8} },
2202 .block_erase = spi_block_erase_d8,
2203 }, {
2204 .eraseblocks = { {512 * 1024, 1} },
2205 .block_erase = spi_block_erase_60,
2206 }, {
2207 .eraseblocks = { {512 * 1024, 1} },
2208 .block_erase = spi_block_erase_c7,
2209 }
2210 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002211 .printlock = spi_prettyprint_status_register_at25fs040,
2212 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002213 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002214 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002215 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002216 },
2217
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002218 {
2219 .vendor = "Atmel",
jvma3ab6c62018-03-08 15:43:20 +01002220 .name = "AT25SF041",
2221 .bustype = BUS_SPI,
2222 .manufacture_id = ATMEL_ID,
2223 .model_id = ATMEL_AT25SF041,
2224 .total_size = 512,
2225 .page_size = 256,
2226 .feature_bits = FEATURE_WRSR_WREN,
2227 .tested = TEST_OK_PREW,
2228 .probe = probe_spi_rdid,
2229 .probe_timing = TIMING_ZERO,
2230 .block_erasers =
2231 {
2232 {
2233 .eraseblocks = { {4 * 1024, 128} },
2234 .block_erase = spi_block_erase_20,
2235 }, {
2236 .eraseblocks = { {32 * 1024, 16} },
2237 .block_erase = spi_block_erase_52,
2238 }, {
2239 .eraseblocks = { {64 * 1024, 8} },
2240 .block_erase = spi_block_erase_d8,
2241 }, {
2242 .eraseblocks = { {512 * 1024, 1} },
2243 .block_erase = spi_block_erase_60,
2244 }, {
2245 .eraseblocks = { {512 * 1024, 1} },
2246 .block_erase = spi_block_erase_c7,
2247 }
2248 },
2249 .printlock = spi_prettyprint_status_register_plain,
2250 .unlock = spi_disable_blockprotect,
2251 .write = spi_chip_write_256,
2252 .read = spi_chip_read,
2253 .voltage = {2500, 3600},
2254 },
2255
2256 {
2257 .vendor = "Atmel",
Evan Jensen291c1012018-05-17 14:30:19 -07002258 .name = "AT25SF081",
2259 .bustype = BUS_SPI,
2260 .manufacture_id = ATMEL_ID,
2261 .model_id = ATMEL_AT25SF081,
2262 .total_size = 1024,
2263 .page_size = 256,
2264 .feature_bits = FEATURE_WRSR_WREN,
2265 .tested = TEST_OK_PREW,
2266 .probe = probe_spi_rdid,
2267 .probe_timing = TIMING_ZERO,
2268 .block_erasers =
2269 {
2270 {
2271 .eraseblocks = { {4 * 1024, 256} },
2272 .block_erase = spi_block_erase_20,
2273 }, {
2274 .eraseblocks = { {32 * 1024, 32} },
2275 .block_erase = spi_block_erase_52,
2276 }, {
2277 .eraseblocks = { {64 * 1024, 16} },
2278 .block_erase = spi_block_erase_d8,
2279 }, {
2280 .eraseblocks = { {1024 * 1024, 1} },
2281 .block_erase = spi_block_erase_60,
2282 }, {
2283 .eraseblocks = { {1024 * 1024, 1} },
2284 .block_erase = spi_block_erase_c7,
2285 }
2286 },
2287 .printlock = spi_prettyprint_status_register_plain,
2288 .unlock = spi_disable_blockprotect,
2289 .write = spi_chip_write_256,
2290 .read = spi_chip_read,
2291 .voltage = {2300, 3600},
2292 },
2293
2294 {
2295 .vendor = "Atmel",
Stanislav Sedovf5775442018-03-07 14:16:51 -08002296 .name = "AT25SF161",
2297 .bustype = BUS_SPI,
2298 .manufacture_id = ATMEL_ID,
2299 .model_id = ATMEL_AT25SF161,
2300 .total_size = 2048,
2301 .page_size = 256,
2302 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
2303 .tested = TEST_OK_PREW,
2304 .probe = probe_spi_rdid,
2305 .probe_timing = TIMING_ZERO,
2306 .block_erasers =
2307 {
2308 {
2309 .eraseblocks = { {4 * 1024, 512} },
2310 .block_erase = spi_block_erase_20,
2311 }, {
2312 .eraseblocks = { {32 * 1024, 64} },
2313 .block_erase = spi_block_erase_52,
2314 }, {
2315 .eraseblocks = { {64 * 1024, 32} },
2316 .block_erase = spi_block_erase_d8,
2317 }, {
2318 .eraseblocks = { {2048 * 1024, 1} },
2319 .block_erase = spi_block_erase_60,
2320 }, {
2321 .eraseblocks = { {2048 * 1024, 1} },
2322 .block_erase = spi_block_erase_c7,
2323 }
2324 },
2325 .printlock = spi_prettyprint_status_register_plain,
2326 .unlock = spi_disable_blockprotect,
2327 .write = spi_chip_write_256,
2328 .read = spi_chip_read,
2329 .voltage = {2500, 3600},
2330 },
2331
2332 {
Alan Green57938f82019-06-27 15:06:43 +10002333 .vendor = "Atmel",
darkarnium41394382019-11-04 20:06:48 +00002334 .name = "AT25SF321",
2335 .bustype = BUS_SPI,
2336 .manufacture_id = ATMEL_ID,
2337 .model_id = ATMEL_AT25SF321,
2338 .total_size = 4096,
2339 .page_size = 256,
2340 .feature_bits = FEATURE_WRSR_WREN,
2341 .tested = TEST_OK_PR,
2342 .probe = probe_spi_rdid,
2343 .probe_timing = TIMING_ZERO,
2344 .block_erasers =
2345 {
2346 {
2347 .eraseblocks = { {4 * 1024, 1024} },
2348 .block_erase = spi_block_erase_20,
2349 }, {
2350 .eraseblocks = { {32 * 1024, 128} },
2351 .block_erase = spi_block_erase_52,
2352 }, {
2353 .eraseblocks = { {64 * 1024, 64} },
2354 .block_erase = spi_block_erase_d8,
2355 }, {
2356 .eraseblocks = { {4096 * 1024, 1} },
2357 .block_erase = spi_block_erase_60,
2358 }, {
2359 .eraseblocks = { {4096 * 1024, 1} },
2360 .block_erase = spi_block_erase_c7,
2361 }
2362 },
2363 .printlock = spi_prettyprint_status_register_plain,
2364 .unlock = spi_disable_blockprotect,
2365 .write = spi_chip_write_256,
2366 .read = spi_chip_read,
2367 .voltage = {2500, 3600},
2368 },
2369
2370 {
2371 .vendor = "Atmel",
Hal Martin49e23d22018-05-27 14:18:43 +02002372 .name = "AT25SL128A",
2373 .bustype = BUS_SPI,
2374 .manufacture_id = ATMEL_ID,
2375 .model_id = ATMEL_AT25SL128A,
2376 .total_size = 16384,
2377 .page_size = 256,
2378 /* supports SFDP */
2379 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
2380 .tested = TEST_OK_PREW,
2381 .probe = probe_spi_rdid,
2382 .probe_timing = TIMING_ZERO,
2383 .block_erasers =
2384 {
2385 {
2386 .eraseblocks = { {4 * 1024, 4096} },
2387 .block_erase = spi_block_erase_20,
2388 }, {
2389 .eraseblocks = { {32 * 1024, 512} },
2390 .block_erase = spi_block_erase_52,
2391 }, {
2392 .eraseblocks = { {64 * 1024, 256} },
2393 .block_erase = spi_block_erase_d8,
2394 }, {
2395 .eraseblocks = { {16 * 1024 * 1024, 1} },
2396 .block_erase = spi_block_erase_60,
2397 }, {
2398 .eraseblocks = { {16 * 1024 * 1024, 1} },
2399 .block_erase = spi_block_erase_c7,
2400 }
2401 },
2402 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
2403 .unlock = spi_disable_blockprotect,
2404 .write = spi_chip_write_256,
2405 .read = spi_chip_read,
2406 .voltage = {1700, 2000},
2407 },
2408
2409 {
Stanislav Sedovf5775442018-03-07 14:16:51 -08002410 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002411 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002412 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002413 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002414 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002415 .total_size = 512,
2416 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002417 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002418 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002419 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002420 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002421 .block_erasers =
2422 {
2423 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002424 .eraseblocks = { {256, 2048} },
2425 .block_erase = spi_block_erase_81,
2426 }, {
2427 .eraseblocks = { {2 * 1024, 256} },
2428 .block_erase = spi_block_erase_50,
2429 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002430 .eraseblocks = { {4 * 1024, 128} },
2431 .block_erase = spi_block_erase_20,
2432 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002433 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002434 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002435 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002436 .write = spi_chip_write_1,
2437 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002438 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002439 },
2440
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002441 {
2442 .vendor = "Atmel",
2443 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002444 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002445 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002446 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002447 .total_size = 1024,
2448 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002449 .feature_bits = FEATURE_WRSR_WREN,
2450 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002451 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002452 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002453 .block_erasers =
2454 {
2455 {
2456 .eraseblocks = { {4 * 1024, 256} },
2457 .block_erase = spi_block_erase_20,
2458 }, {
2459 .eraseblocks = { {32 * 1024, 32} },
2460 .block_erase = spi_block_erase_52,
2461 }, {
2462 .eraseblocks = { {64 * 1024, 16} },
2463 .block_erase = spi_block_erase_d8,
2464 }, {
2465 .eraseblocks = { {1024 * 1024, 1} },
2466 .block_erase = spi_block_erase_60,
2467 }, {
2468 .eraseblocks = { {1024 * 1024, 1} },
2469 .block_erase = spi_block_erase_c7,
2470 }
2471 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002472 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002473 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002474 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002475 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002476 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002477 },
2478
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002479 {
2480 .vendor = "Atmel",
2481 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002482 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002483 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002484 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002485 .total_size = 2048,
2486 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002487 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002488 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002489 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002490 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002491 .block_erasers =
2492 {
2493 {
2494 .eraseblocks = { {4 * 1024, 512} },
2495 .block_erase = spi_block_erase_20,
2496 }, {
2497 .eraseblocks = { {32 * 1024, 64} },
2498 .block_erase = spi_block_erase_52,
2499 }, {
2500 .eraseblocks = { {64 * 1024, 32} },
2501 .block_erase = spi_block_erase_d8,
2502 }, {
2503 .eraseblocks = { {2 * 1024 * 1024, 1} },
2504 .block_erase = spi_block_erase_60,
2505 }, {
2506 .eraseblocks = { {2 * 1024 * 1024, 1} },
2507 .block_erase = spi_block_erase_c7,
2508 }
2509 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002510 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002511 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002512 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002513 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002514 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002515 },
2516
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002517 {
2518 .vendor = "Atmel",
2519 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002520 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002521 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002522 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002523 .total_size = 2048,
2524 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002525 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002526 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002527 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002528 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002529 .block_erasers =
2530 {
2531 {
2532 .eraseblocks = { {4 * 1024, 512} },
2533 .block_erase = spi_block_erase_20,
2534 }, {
2535 .eraseblocks = { {32 * 1024, 64} },
2536 .block_erase = spi_block_erase_52,
2537 }, {
2538 .eraseblocks = { {64 * 1024, 32} },
2539 .block_erase = spi_block_erase_d8,
2540 }, {
2541 .eraseblocks = { {2 * 1024 * 1024, 1} },
2542 .block_erase = spi_block_erase_60,
2543 }, {
2544 .eraseblocks = { {2 * 1024 * 1024, 1} },
2545 .block_erase = spi_block_erase_c7,
2546 }
2547 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002548 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002549 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002550 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002551 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002552 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002553 },
2554
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002555 {
2556 .vendor = "Atmel",
2557 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002558 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002559 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002560 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002561 .total_size = 512,
2562 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002563 .feature_bits = FEATURE_WRSR_WREN,
Alan Green908adf42019-07-03 15:34:06 +10002564 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD},
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002565 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002566 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002567 .block_erasers =
2568 {
2569 {
2570 .eraseblocks = { {4 * 1024, 128} },
2571 .block_erase = spi_block_erase_20,
2572 }, {
2573 .eraseblocks = { {32 * 1024, 16} },
2574 .block_erase = spi_block_erase_52,
2575 }, {
2576 .eraseblocks = { {64 * 1024, 8} },
2577 .block_erase = spi_block_erase_d8,
2578 }, {
2579 .eraseblocks = { {512 * 1024, 1} },
2580 .block_erase = spi_block_erase_60,
2581 }, {
2582 .eraseblocks = { {512 * 1024, 1} },
2583 .block_erase = spi_block_erase_c7,
2584 }
2585 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002586 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Alan Greencbb85c02019-06-25 13:42:34 +10002587 .write = NULL, /* Incompatible Page write */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002588 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002589 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002590 },
2591
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002592 {
2593 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002594 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002595 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002596 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002597 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002598 .total_size = 128,
2599 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002600 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002601 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002602 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002603 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002604 .block_erasers =
2605 {
2606 {
2607 .eraseblocks = { {128 * 1024, 1} },
2608 .block_erase = erase_chip_block_jedec,
2609 }
2610 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002611 .write = write_jedec, /* FIXME */
2612 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002613 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002614 },
2615
2616 {
2617 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002618 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002619 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002620 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002621 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002622 .total_size = 256,
2623 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002624 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002625 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002626 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002627 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002628 .block_erasers =
2629 {
2630 {
2631 .eraseblocks = { {256 * 1024, 1} },
2632 .block_erase = erase_chip_block_jedec,
2633 }
2634 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002635 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002636 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002637 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002638 },
2639
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002640 {
2641 .vendor = "Atmel",
2642 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002643 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002644 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002645 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002646 .total_size = 512,
2647 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002648 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002649 .tested = TEST_UNTESTED,
2650 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002651 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002652 .block_erasers =
2653 {
2654 {
2655 .eraseblocks = { {512 * 1024, 1} },
2656 .block_erase = erase_chip_block_jedec,
2657 }
2658 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002659 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002660 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002661 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002662 },
2663
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002664 {
2665 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10002666 .name = "AT29C512",
2667 .bustype = BUS_PARALLEL,
2668 .manufacture_id = ATMEL_ID,
2669 .model_id = ATMEL_AT29C512,
2670 .total_size = 64,
2671 .page_size = 128,
2672 .feature_bits = FEATURE_LONG_RESET,
2673 .tested = TEST_OK_PREW,
2674 .probe = probe_jedec,
2675 .probe_timing = 10000, /* 10mS, Enter=Exec */
2676 .block_erasers =
2677 {
2678 {
2679 .eraseblocks = { {64 * 1024, 1} },
2680 .block_erase = erase_chip_block_jedec,
2681 }
2682 },
2683 .write = write_jedec,
2684 .read = read_memmapped,
2685 .voltage = {4500, 5500},
2686 },
2687
2688 {
2689 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002690 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002691 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002692 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002693 .model_id = ATMEL_AT45CS1282,
Alan Greencbb85c02019-06-25 13:42:34 +10002694 .total_size = 16896, /* No power of two sizes */
2695 .page_size = 1056, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002696 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002697 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2698 .feature_bits = FEATURE_OTP,
2699 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002700 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002701 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002702 .block_erasers =
2703 {
2704 {
2705 .eraseblocks = {
2706 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2707 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2708 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2709 },
2710 .block_erase = spi_erase_at45cs_sector,
2711 }
2712 },
2713 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002714 .write = spi_write_at45db,
2715 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002716 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002717 .gran = write_gran_1056bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002718 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002719
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002720 {
2721 .vendor = "Atmel",
2722 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002723 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002724 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002725 .model_id = ATMEL_AT45DB011D,
Alan Greencbb85c02019-06-25 13:42:34 +10002726 .total_size = 128, /* or 132, determined from status register */
2727 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002728 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002729 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2730 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002731 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002732 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002733 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002734 .block_erasers =
2735 {
2736 {
2737 .eraseblocks = { {256, 512} },
2738 .block_erase = spi_erase_at45db_page,
2739 }, {
2740 .eraseblocks = { {8 * 256, 512/8} },
2741 .block_erase = spi_erase_at45db_block,
2742 }, {
2743 .eraseblocks = {
2744 {8 * 256, 1},
2745 {120 * 256, 1},
2746 {128 * 256, 3},
2747 },
2748 .block_erase = spi_erase_at45db_sector
2749 }, {
2750 .eraseblocks = { {128 * 1024, 1} },
2751 .block_erase = spi_erase_at45db_chip,
2752 }
2753 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002754 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002755 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002756 /* granularity will be set by the probing function. */
2757 .write = spi_write_at45db,
2758 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002759 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002760 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002761
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002762 {
2763 .vendor = "Atmel",
2764 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002765 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002766 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002767 .model_id = ATMEL_AT45DB021D,
Alan Greencbb85c02019-06-25 13:42:34 +10002768 .total_size = 256, /* or 264, determined from status register */
2769 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002770 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002771 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2772 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002773 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002774 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002775 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002776 .block_erasers =
2777 {
2778 {
2779 .eraseblocks = { {256, 1024} },
2780 .block_erase = spi_erase_at45db_page,
2781 }, {
2782 .eraseblocks = { {8 * 256, 1024/8} },
2783 .block_erase = spi_erase_at45db_block,
2784 }, {
2785 .eraseblocks = {
2786 {8 * 256, 1},
2787 {120 * 256, 1},
2788 {128 * 256, 7},
2789 },
2790 .block_erase = spi_erase_at45db_sector
2791 }, {
2792 .eraseblocks = { {256 * 1024, 1} },
2793 .block_erase = spi_erase_at45db_chip,
2794 }
2795 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002796 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002797 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002798 /* granularity will be set by the probing function. */
2799 .write = spi_write_at45db,
2800 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002801 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002802 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002803
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002804 {
2805 .vendor = "Atmel",
2806 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002807 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002808 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002809 .model_id = ATMEL_AT45DB041D,
Alan Greencbb85c02019-06-25 13:42:34 +10002810 .total_size = 512, /* or 528, determined from status register */
2811 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002812 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002813 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2814 .feature_bits = FEATURE_OTP,
2815 .tested = TEST_OK_PREW,
2816 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002817 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002818 .block_erasers =
2819 {
2820 {
2821 .eraseblocks = { {256, 2048} },
2822 .block_erase = spi_erase_at45db_page,
2823 }, {
2824 .eraseblocks = { {8 * 256, 2048/8} },
2825 .block_erase = spi_erase_at45db_block,
2826 }, {
2827 .eraseblocks = {
2828 {8 * 256, 1},
2829 {248 * 256, 1},
2830 {256 * 256, 7},
2831 },
2832 .block_erase = spi_erase_at45db_sector
2833 }, {
2834 .eraseblocks = { {512 * 1024, 1} },
2835 .block_erase = spi_erase_at45db_chip,
2836 }
2837 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002838 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002839 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002840 /* granularity will be set by the probing function. */
2841 .write = spi_write_at45db,
2842 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2843 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002844 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002845
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002846 {
2847 .vendor = "Atmel",
2848 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002849 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002850 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002851 .model_id = ATMEL_AT45DB081D,
Alan Greencbb85c02019-06-25 13:42:34 +10002852 .total_size = 1024, /* or 1056, determined from status register */
2853 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002854 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002855 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2856 .feature_bits = FEATURE_OTP,
Angel Pons250aeba2018-09-30 20:28:22 +02002857 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002858 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002859 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002860 .block_erasers =
2861 {
2862 {
2863 .eraseblocks = { {256, 4096} },
2864 .block_erase = spi_erase_at45db_page,
2865 }, {
2866 .eraseblocks = { {8 * 256, 4096/8} },
2867 .block_erase = spi_erase_at45db_block,
2868 }, {
2869 .eraseblocks = {
2870 {8 * 256, 1},
2871 {248 * 256, 1},
2872 {256 * 256, 15},
2873 },
2874 .block_erase = spi_erase_at45db_sector
2875 }, {
2876 .eraseblocks = { {1024 * 1024, 1} },
2877 .block_erase = spi_erase_at45db_chip,
2878 }
2879 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002880 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002881 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002882 /* granularity will be set by the probing function. */
2883 .write = spi_write_at45db,
2884 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002885 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002886 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002887
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002888 {
2889 .vendor = "Atmel",
2890 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002891 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002892 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002893 .model_id = ATMEL_AT45DB161D,
Alan Greencbb85c02019-06-25 13:42:34 +10002894 .total_size = 2048, /* or 2112, determined from status register */
2895 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002896 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002897 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2898 .feature_bits = FEATURE_OTP,
2899 .tested = TEST_OK_PREW,
2900 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002901 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002902 .block_erasers =
2903 {
2904 {
2905 .eraseblocks = { {512, 4096} },
2906 .block_erase = spi_erase_at45db_page,
2907 }, {
2908 .eraseblocks = { {8 * 512, 4096/8} },
2909 .block_erase = spi_erase_at45db_block,
2910 }, {
2911 .eraseblocks = {
2912 {8 * 512, 1},
2913 {248 * 512, 1},
2914 {256 * 512, 15},
2915 },
2916 .block_erase = spi_erase_at45db_sector
2917 }, {
2918 .eraseblocks = { {2048 * 1024, 1} },
2919 .block_erase = spi_erase_at45db_chip,
2920 }
2921 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002922 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002923 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002924 /* granularity will be set by the probing function. */
2925 .write = spi_write_at45db,
2926 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002927 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002928 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002929
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002930 {
2931 .vendor = "Atmel",
2932 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002933 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002934 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002935 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10002936 .total_size = 4224, /* No power of two sizes */
2937 .page_size = 528, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002938 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002939 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2940 .feature_bits = FEATURE_OTP,
2941 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002942 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002943 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002944 .block_erasers =
2945 {
2946 {
2947 .eraseblocks = { {528, 8192} },
2948 .block_erase = spi_erase_at45db_page,
2949 }, {
2950 .eraseblocks = { {8 * 528, 8192/8} },
2951 .block_erase = spi_erase_at45db_block,
2952 }, /* Although the datasheets describes sectors (which can be write protected)
2953 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00002954 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002955 .eraseblocks = {
2956 {8 * 528, 1},
2957 {120 * 528, 1},
2958 {128 * 528, 63},
2959 },
2960 .block_erase = spi_erase_at45db_sector
2961 }, */ {
2962 .eraseblocks = { {4224 * 1024, 1} },
2963 .block_erase = spi_erase_at45db_chip,
2964 }
2965 },
2966 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002967 .write = spi_write_at45db,
2968 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002969 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002970 .gran = write_gran_528bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002971 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002972
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002973 {
2974 .vendor = "Atmel",
2975 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002976 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002977 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002978 .model_id = ATMEL_AT45DB321D,
Alan Greencbb85c02019-06-25 13:42:34 +10002979 .total_size = 4096, /* or 4224, determined from status register */
2980 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002981 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002982 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002983 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00002984 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002985 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002986 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002987 .block_erasers =
2988 {
2989 {
2990 .eraseblocks = { {512, 8192} },
2991 .block_erase = spi_erase_at45db_page,
2992 }, {
2993 .eraseblocks = { {8 * 512, 8192/8} },
2994 .block_erase = spi_erase_at45db_block,
2995 }, {
2996 .eraseblocks = {
2997 {8 * 512, 1},
2998 {120 * 512, 1},
2999 {128 * 512, 63},
3000 },
3001 .block_erase = spi_erase_at45db_sector
3002 }, {
3003 .eraseblocks = { {4096 * 1024, 1} },
3004 .block_erase = spi_erase_at45db_chip,
3005 }
3006 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003007 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003008 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003009 /* granularity will be set by the probing function. */
3010 .write = spi_write_at45db,
3011 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3012 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
3013 },
3014
3015 {
3016 .vendor = "Atmel",
3017 .name = "AT45DB321E",
3018 .bustype = BUS_SPI,
3019 .manufacture_id = ATMEL_ID,
3020 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10003021 .total_size = 4096, /* or 4224, determined from status register */
3022 .page_size = 512, /* or 528, determined from status register */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003023 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
3024 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3025 .feature_bits = FEATURE_OTP,
3026 .tested = TEST_UNTESTED,
3027 .probe = probe_spi_at45db,
3028 .probe_timing = TIMING_ZERO,
3029 .block_erasers =
3030 {
3031 {
3032 .eraseblocks = { {512, 8192} },
3033 .block_erase = spi_erase_at45db_page,
3034 }, {
3035 .eraseblocks = { {8 * 512, 8192/8} },
3036 .block_erase = spi_erase_at45db_block,
3037 }, {
3038 .eraseblocks = {
3039 {8 * 512, 1},
3040 {120 * 512, 1},
3041 {128 * 512, 63},
3042 },
3043 .block_erase = spi_erase_at45db_sector
3044 }, {
3045 .eraseblocks = { {4096 * 1024, 1} },
3046 .block_erase = spi_erase_at45db_chip,
3047 }
3048 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003049 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
Alan Greenc1863ca2019-06-27 15:08:03 +10003050 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003051 /* granularity will be set by the probing function. */
3052 .write = spi_write_at45db,
3053 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3054 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003055 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003056
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003057 {
3058 .vendor = "Atmel",
3059 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003060 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003061 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003062 .model_id = ATMEL_AT45DB642D,
Alan Greencbb85c02019-06-25 13:42:34 +10003063 .total_size = 8192, /* or 8448, determined from status register */
3064 .page_size = 1024, /* or 1056, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00003065 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003066 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3067 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00003068 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003069 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003070 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003071 .block_erasers =
3072 {
3073 {
3074 .eraseblocks = { {1024, 8192} },
3075 .block_erase = spi_erase_at45db_page,
3076 }, {
3077 .eraseblocks = { {8 * 1024, 8192/8} },
3078 .block_erase = spi_erase_at45db_block,
3079 }, {
3080 .eraseblocks = {
3081 {8 * 1024, 1},
3082 {248 * 1024, 1},
3083 {256 * 1024, 31},
3084 },
3085 .block_erase = spi_erase_at45db_sector
3086 }, {
3087 .eraseblocks = { {8192 * 1024, 1} },
3088 .block_erase = spi_erase_at45db_chip,
3089 }
3090 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003091 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003092 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003093 /* granularity will be set by the probing function. */
3094 .write = spi_write_at45db,
3095 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003096 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003097 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003098
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003099 {
3100 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003101 .name = "AT49(H)F010",
3102 .bustype = BUS_PARALLEL,
3103 .manufacture_id = ATMEL_ID,
3104 .model_id = ATMEL_AT49F010,
3105 .total_size = 128,
3106 .page_size = 0, /* unused */
3107 .feature_bits = FEATURE_EITHER_RESET,
3108 .tested = TEST_OK_PREW,
3109 .probe = probe_jedec,
3110 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3111 .block_erasers =
3112 {
3113 {
3114 .eraseblocks = { {128 * 1024, 1} },
3115 .block_erase = erase_chip_block_jedec,
3116 }
3117 },
3118 .printlock = printlock_at49f,
3119 .write = write_jedec_1,
3120 .read = read_memmapped,
3121 .voltage = {4500, 5500},
3122 },
3123
3124 {
3125 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003126 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003127 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003128 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003129 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003130 .total_size = 64,
3131 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00003132 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00003133 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003134 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003135 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003136 .block_erasers =
3137 {
3138 {
3139 .eraseblocks = { {64 * 1024, 1} },
3140 .block_erase = erase_chip_block_jedec,
3141 }
3142 },
Sean Nelson35727f72010-01-28 23:55:12 +00003143 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003144 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003145 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003146 },
3147
3148 {
3149 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003150 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003151 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003152 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003153 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003154 .total_size = 256,
3155 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003156 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003157 .tested = TEST_UNTESTED,
3158 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003159 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003160 .block_erasers =
3161 {
3162 {
3163 .eraseblocks = {
3164 {16 * 1024, 1},
3165 {8 * 1024, 2},
3166 {96 * 1024, 1},
3167 {128 * 1024, 1},
3168 },
3169 .block_erase = erase_sector_jedec,
3170 }, {
3171 .eraseblocks = { {256 * 1024, 1} },
3172 .block_erase = erase_chip_block_jedec,
3173 }
3174 },
Sean Nelson35727f72010-01-28 23:55:12 +00003175 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003176 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003177 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003178 },
3179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003180 {
3181 .vendor = "Atmel",
3182 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003183 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003184 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003185 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003186 .total_size = 256,
3187 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003188 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003189 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003190 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003191 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003192 .block_erasers =
3193 {
3194 {
3195 .eraseblocks = {
3196 {128 * 1024, 1},
3197 {96 * 1024, 1},
3198 {8 * 1024, 2},
3199 {16 * 1024, 1},
3200 },
3201 .block_erase = erase_sector_jedec,
3202 }, {
3203 .eraseblocks = { {256 * 1024, 1} },
3204 .block_erase = erase_chip_block_jedec,
3205 }
3206 },
Sean Nelson35727f72010-01-28 23:55:12 +00003207 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003208 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003209 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003210 },
3211
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00003212 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00003213 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003214 .name = "AT49F020",
3215 .bustype = BUS_PARALLEL,
3216 .manufacture_id = ATMEL_ID,
3217 .model_id = ATMEL_AT49F020,
3218 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003219 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003220 .feature_bits = FEATURE_EITHER_RESET,
3221 .tested = TEST_OK_PRE,
3222 .probe = probe_jedec,
3223 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3224 .block_erasers =
3225 {
3226 {
3227 .eraseblocks = { {256 * 1024, 1} },
3228 .block_erase = erase_chip_block_jedec,
3229 }
3230 /* Chip features an optional permanent write protection
3231 * of the first 8 kB. The erase function is the same as
3232 * above, but 00000H to 01FFFH will not be erased.
3233 * FIXME: add another eraser when partial erasers are
3234 * supported.
3235 */
3236 },
3237 .printlock = printlock_at49f,
3238 .write = write_jedec_1,
3239 .read = read_memmapped,
3240 .voltage = {4500, 5500},
3241 },
3242
3243 {
3244 .vendor = "Atmel",
3245 .name = "AT49F040",
3246 .bustype = BUS_PARALLEL,
3247 .manufacture_id = ATMEL_ID,
3248 .model_id = ATMEL_AT49F040,
3249 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003250 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003251 .feature_bits = FEATURE_EITHER_RESET,
3252 .tested = TEST_UNTESTED,
3253 .probe = probe_jedec,
3254 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3255 .block_erasers =
3256 {
3257 {
3258 .eraseblocks = { {512 * 1024, 1} },
3259 .block_erase = erase_chip_block_jedec,
3260 }
3261 /* Chip features an optional permanent write protection
3262 * of the first 16 kB. The erase function is the same as
3263 * above, but 00000H to 03FFFH will not be erased.
3264 * FIXME: add another eraser when partial erasers are
3265 * supported.
3266 */
3267 },
3268 .printlock = printlock_at49f,
3269 .write = write_jedec_1,
3270 .read = read_memmapped,
3271 .voltage = {4500, 5500},
3272 },
3273
3274 {
3275 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003276 .name = "AT49F080",
3277 .bustype = BUS_PARALLEL,
3278 .manufacture_id = ATMEL_ID,
3279 .model_id = ATMEL_AT49F080,
3280 .total_size = 1024,
3281 .page_size = 0, /* unused */
3282 .feature_bits = FEATURE_EITHER_RESET,
3283 .tested = TEST_UNTESTED,
3284 .probe = probe_jedec,
3285 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3286 .block_erasers =
3287 {
3288 {
3289 .eraseblocks = { {1024 * 1024, 1} },
3290 .block_erase = erase_chip_block_jedec,
3291 }
3292 /* Chip features an optional permanent write protection
3293 * of the first 16 kB. The erase function is the same as
3294 * above, but 00000H to 03FFFH will not be erased.
3295 * FIXME: add another eraser when partial erasers are
3296 * supported.
3297 */
3298 },
3299 .printlock = printlock_at49f,
3300 .write = write_jedec_1,
3301 .read = read_memmapped,
3302 .voltage = {4500, 5500},
3303 },
3304
3305 {
3306 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3307 .vendor = "Atmel",
3308 .name = "AT49F080T",
3309 .bustype = BUS_PARALLEL,
3310 .manufacture_id = ATMEL_ID,
3311 .model_id = ATMEL_AT49F080T,
3312 .total_size = 1024,
3313 .page_size = 0, /* unused */
3314 .feature_bits = FEATURE_EITHER_RESET,
3315 .tested = TEST_UNTESTED,
3316 .probe = probe_jedec,
3317 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3318 .block_erasers =
3319 {
3320 {
3321 .eraseblocks = { {1024 * 1024, 1} },
3322 .block_erase = erase_chip_block_jedec,
3323 }
3324 /* Chip features an optional permanent write protection
3325 * of the first 16 kB. The erase function is the same as
3326 * above, but FC000H to FFFFFH will not be erased.
3327 * FIXME: add another eraser when partial erasers are
3328 * supported.
3329 */
3330 },
3331 .printlock = printlock_at49f,
3332 .write = write_jedec_1,
3333 .read = read_memmapped,
3334 .voltage = {4500, 5500},
3335 },
3336
3337 {
3338 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003339 .name = "AT49LH002",
3340 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3341 .manufacture_id = ATMEL_ID,
3342 .model_id = ATMEL_AT49LH002,
3343 .total_size = 256,
3344 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003345 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003346 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003347 .probe = probe_82802ab,
3348 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003349 .block_erasers =
3350 {
3351 {
3352 .eraseblocks = {
3353 {64 * 1024, 3},
3354 {32 * 1024, 1},
3355 {8 * 1024, 2},
3356 {16 * 1024, 1},
3357 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003358 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003359 }, {
3360 .eraseblocks = {
3361 {64 * 1024, 4},
3362 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003363 .block_erase = erase_block_82802ab,
3364 },
3365 },
3366 .printlock = printlock_regspace2_block_eraser_0,
3367 .unlock = unlock_regspace2_block_eraser_0,
3368 .write = write_82802ab,
3369 .read = read_memmapped,
3370 .voltage = {3000, 3600},
3371 },
3372
3373 {
3374 .vendor = "Atmel",
Stefan Tauner7de93932014-08-03 13:05:45 +00003375 .name = "AT49LH004",
3376 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3377 .manufacture_id = ATMEL_ID,
3378 .model_id = ATMEL_AT49LH004,
3379 .total_size = 512,
3380 .page_size = 0, /* unused */
3381 .feature_bits = FEATURE_REGISTERMAP,
3382 .tested = TEST_UNTESTED,
3383 .probe = probe_82802ab,
3384 .probe_timing = TIMING_ZERO,
3385 .block_erasers =
3386 {
3387 {
3388 .eraseblocks = {
3389 {64 * 1024, 7},
3390 {32 * 1024, 1},
3391 {8 * 1024, 2},
3392 {16 * 1024, 1},
3393 },
3394 .block_erase = erase_block_82802ab,
3395 }, {
3396 .eraseblocks = {
3397 {64 * 1024, 8},
3398 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003399 .block_erase = NULL, /* TODO: Implement. */
3400 },
3401 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003402 .printlock = printlock_regspace2_block_eraser_0,
3403 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003404 .write = write_82802ab,
3405 .read = read_memmapped,
3406 .voltage = {3000, 3600},
3407 },
3408
3409 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003410 .vendor = "Atmel",
3411 .name = "AT49LH00B4",
3412 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3413 .manufacture_id = ATMEL_ID,
3414 .model_id = ATMEL_AT49LH00B4,
3415 .total_size = 512,
Andrew Morganca081462011-09-13 22:05:44 +00003416 .page_size = 0, /* unused */
Alan Green1f9cc7d2019-07-01 11:10:45 +10003417 .feature_bits = FEATURE_REGISTERMAP,
3418 .tested = TEST_UNTESTED,
3419 .probe = probe_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003420 .probe_timing = TIMING_ZERO,
3421 .block_erasers =
3422 {
3423 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003424 .eraseblocks = {
3425 {8 * 1024, 2},
3426 {16 * 1024, 1},
3427 {32 * 1024, 1},
3428 {64 * 1024, 7},
3429 },
3430 .block_erase = NULL, /* TODO: Implement. */
3431 }, {
3432 .eraseblocks = {
3433 {64 * 1024, 8},
3434 },
3435 .block_erase = erase_block_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003436 },
3437 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003438 .printlock = printlock_regspace2_block_eraser_0,
3439 .unlock = unlock_regspace2_block_eraser_0,
3440 .write = write_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003441 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003442 .voltage = {3000, 3600},
Andrew Morganca081462011-09-13 22:05:44 +00003443 },
3444
3445 {
Angel Pons1ebda782021-04-20 21:39:11 +02003446 .vendor = "Boya/BoHong Microelectronics",
Christian Kudera475a7ee2021-04-20 22:50:01 +02003447 .name = "B.25D16A",
3448 .bustype = BUS_SPI,
3449 .manufacture_id = BOYA_BOHONG_ID,
3450 .model_id = BOYA_BOHONG_B_25D16A,
3451 .total_size = 2048,
3452 .page_size = 256,
3453 .feature_bits = FEATURE_WRSR_WREN,
3454 .tested = TEST_OK_PR,
3455 .probe = probe_spi_rdid,
3456 .probe_timing = TIMING_ZERO,
3457 .block_erasers =
3458 {
3459 {
3460 .eraseblocks = { {4 * 1024, 512} },
3461 .block_erase = spi_block_erase_20,
3462 }, {
3463 .eraseblocks = { {32 * 1024, 64} },
3464 .block_erase = spi_block_erase_52,
3465 }, {
3466 .eraseblocks = { {64 * 1024, 32} },
3467 .block_erase = spi_block_erase_d8,
3468 }, {
3469 .eraseblocks = { {2 * 1024 * 1024, 1} },
3470 .block_erase = spi_block_erase_60,
3471 }, {
3472 .eraseblocks = { {2 * 1024 * 1024, 1} },
3473 .block_erase = spi_block_erase_c7,
3474 }
3475 },
3476 .printlock = spi_prettyprint_status_register_bp2_srwd,
3477 .unlock = spi_disable_blockprotect_bp2_srwd,
3478 .write = spi_chip_write_256,
3479 .read = spi_chip_read,
3480 .voltage = {2700, 3600},
3481 },
3482
3483 {
3484 .vendor = "Boya/BoHong Microelectronics",
Angel Pons1ebda782021-04-20 21:39:11 +02003485 .name = "B.25Q128AS",
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003486 .bustype = BUS_SPI,
Angel Pons1ebda782021-04-20 21:39:11 +02003487 .manufacture_id = BOYA_BOHONG_ID,
3488 .model_id = BOYA_BOHONG_B_25Q128AS,
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003489 .total_size = 16384,
3490 .page_size = 256,
3491 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
3492 .tested = TEST_OK_PREW,
3493 .probe = probe_spi_rdid,
3494 .probe_timing = TIMING_ZERO,
3495 .block_erasers =
3496 {
3497 {
3498 .eraseblocks = { {4 * 1024, 4096} },
3499 .block_erase = spi_block_erase_20,
3500 }, {
3501 .eraseblocks = { {32 * 1024, 512} },
3502 .block_erase = spi_block_erase_52,
3503 }, {
3504 .eraseblocks = { {64 * 1024, 256} },
3505 .block_erase = spi_block_erase_d8,
3506 }, {
3507 .eraseblocks = { {16 * 1024 * 1024, 1} },
3508 .block_erase = spi_block_erase_60,
3509 }, {
3510 .eraseblocks = { {16 * 1024 * 1024, 1} },
3511 .block_erase = spi_block_erase_c7,
3512 }
3513 },
3514 .printlock = spi_prettyprint_status_register_plain,
3515 .unlock = spi_disable_blockprotect_at25fs040,
3516 .write = spi_chip_write_256,
3517 .read = spi_chip_read,
3518 .voltage = {2700, 3600},
3519 },
3520
3521 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003522 .vendor = "Bright",
3523 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003524 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003525 .manufacture_id = BRIGHT_ID,
3526 .model_id = BRIGHT_BM29F040,
3527 .total_size = 512,
3528 .page_size = 64 * 1024,
3529 .feature_bits = FEATURE_EITHER_RESET,
3530 .tested = TEST_OK_PR,
3531 .probe = probe_jedec,
3532 .probe_timing = TIMING_ZERO,
3533 .block_erasers =
3534 {
3535 {
3536 .eraseblocks = { {64 * 1024, 8} },
3537 .block_erase = erase_sector_jedec,
3538 }, {
3539 .eraseblocks = { {512 * 1024, 1} },
3540 .block_erase = erase_chip_block_jedec,
3541 },
3542 },
3543 .write = write_jedec_1,
3544 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003545 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003546 },
3547
3548 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003549 .vendor = "Catalyst",
3550 .name = "CAT28F512",
3551 .bustype = BUS_PARALLEL,
3552 .manufacture_id = CATALYST_ID,
3553 .model_id = CATALYST_CAT28F512,
3554 .total_size = 64,
3555 .page_size = 0, /* unused */
3556 .feature_bits = 0,
Alan Green908adf42019-07-03 15:34:06 +10003557 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD},
Alan Green1f9cc7d2019-07-01 11:10:45 +10003558 .probe = probe_jedec, /* FIXME! */
3559 .probe_timing = TIMING_ZERO,
3560 .block_erasers =
3561 {
3562 {
3563 .eraseblocks = { {64 * 1024, 1} },
3564 .block_erase = NULL, /* TODO */
3565 },
3566 },
3567 .write = NULL, /* TODO */
3568 .read = read_memmapped,
3569 .voltage = {4500, 5500},
3570 },
3571
3572 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003573 .vendor = "ENE",
3574 .name = "KB9012 (EDI)",
3575 .bustype = BUS_SPI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003576 .total_size = 128,
3577 .page_size = 128,
3578 .feature_bits = FEATURE_ERASED_ZERO,
3579 .tested = TEST_OK_PREW,
Alan Greenc1863ca2019-06-27 15:08:03 +10003580 .spi_cmd_set = SPI_EDI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003581 .probe = edi_probe_kb9012,
3582 .probe_timing = TIMING_ZERO,
3583 .block_erasers =
3584 {
3585 {
3586 .eraseblocks = { {128, 1024} },
3587 .block_erase = edi_chip_block_erase,
3588 },
3589 },
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003590 .write = edi_chip_write,
3591 .read = edi_chip_read,
3592 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10003593 .gran = write_gran_128bytes,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003594 },
3595
3596 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003597 .vendor = "ESI",
3598 .name = "ES25P16",
3599 .bustype = BUS_SPI,
3600 .manufacture_id = EXCEL_ID_NOPREFIX,
3601 .model_id = EXCEL_ES25P16,
3602 .total_size = 2 * 1024,
3603 .page_size = 256,
3604 /* 256-byte parameter page separate from memory array:
3605 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3606 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003607 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003608 .probe = probe_spi_rdid,
3609 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003610 .block_erasers =
3611 {
3612 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003613 .eraseblocks = { {64 * 1024, 32} },
3614 .block_erase = spi_block_erase_d8,
Sean Nelson54596372010-01-09 05:30:14 +00003615 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003616 .eraseblocks = { {2 * 1024 * 1024, 1} },
3617 .block_erase = spi_block_erase_c7,
Sean Nelson54596372010-01-09 05:30:14 +00003618 }
3619 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003620 .printlock = spi_prettyprint_status_register_bp2_srwd,
3621 .unlock = spi_disable_blockprotect_bp2_srwd,
3622 .write = spi_chip_write_256,
3623 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3624 .voltage = {2700, 3600},
3625 },
3626
3627 {
3628 .vendor = "ESI",
3629 .name = "ES25P40",
3630 .bustype = BUS_SPI,
3631 .manufacture_id = EXCEL_ID_NOPREFIX,
3632 .model_id = EXCEL_ES25P40,
3633 .total_size = 512,
3634 .page_size = 256,
3635 /* 256-byte parameter page separate from memory array:
3636 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3637 .feature_bits = FEATURE_WRSR_WREN,
3638 .tested = TEST_UNTESTED,
3639 .probe = probe_spi_rdid,
3640 .probe_timing = TIMING_ZERO,
3641 .block_erasers =
3642 {
3643 {
3644 .eraseblocks = { {64 * 1024, 8} },
3645 .block_erase = spi_block_erase_d8,
3646 }, {
3647 .eraseblocks = { {512 * 1024, 1} },
3648 .block_erase = spi_block_erase_c7,
3649 }
3650 },
3651 .printlock = spi_prettyprint_status_register_bp2_srwd,
3652 .unlock = spi_disable_blockprotect_bp2_srwd,
3653 .write = spi_chip_write_256,
3654 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3655 .voltage = {2700, 3600},
3656 },
3657
3658 {
3659 .vendor = "ESI",
3660 .name = "ES25P80",
3661 .bustype = BUS_SPI,
3662 .manufacture_id = EXCEL_ID_NOPREFIX,
3663 .model_id = EXCEL_ES25P80,
3664 .total_size = 1024,
3665 .page_size = 256,
3666 /* 256-byte parameter page separate from memory array:
3667 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3668 .feature_bits = FEATURE_WRSR_WREN,
3669 .tested = TEST_UNTESTED,
3670 .probe = probe_spi_rdid,
3671 .probe_timing = TIMING_ZERO,
3672 .block_erasers =
3673 {
3674 {
3675 .eraseblocks = { {64 * 1024, 16} },
3676 .block_erase = spi_block_erase_d8,
3677 }, {
3678 .eraseblocks = { {1024 * 1024, 1} },
3679 .block_erase = spi_block_erase_c7,
3680 }
3681 },
3682 .printlock = spi_prettyprint_status_register_bp2_srwd,
3683 .unlock = spi_disable_blockprotect_bp2_srwd,
3684 .write = spi_chip_write_256,
3685 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3686 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003687 },
3688
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003689 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003690 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003691 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003692 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003693 .manufacture_id = ESMT_ID,
3694 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003695 .total_size = 1024,
3696 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003697 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003698 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003699 .probe = probe_spi_rdid,
3700 .probe_timing = TIMING_ZERO,
3701 .block_erasers =
3702 {
3703 {
3704 .eraseblocks = { {4 * 1024, 256} },
3705 .block_erase = spi_block_erase_20,
3706 }, {
3707 .eraseblocks = { {64 * 1024, 16} },
3708 .block_erase = spi_block_erase_d8,
3709 }, {
3710 .eraseblocks = { {1024 * 1024, 1} },
3711 .block_erase = spi_block_erase_60,
3712 }, {
3713 .eraseblocks = { {1024 * 1024, 1} },
3714 .block_erase = spi_block_erase_c7,
3715 }
3716 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003717 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003718 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003719 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003720 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003721 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003722 },
3723
3724 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003725 .vendor = "ESMT",
3726 .name = "F25L32PA",
3727 .bustype = BUS_SPI,
3728 .manufacture_id = ESMT_ID,
3729 .model_id = ESMT_F25L32PA,
3730 .total_size = 4096,
3731 .page_size = 256,
3732 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3733 .tested = TEST_UNTESTED,
3734 .probe = probe_spi_rdid,
3735 .probe_timing = TIMING_ZERO,
3736 .block_erasers =
3737 {
3738 {
3739 .eraseblocks = { {4 * 1024, 1024} },
3740 .block_erase = spi_block_erase_20,
3741 }, {
3742 .eraseblocks = { {64 * 1024, 64} },
3743 .block_erase = spi_block_erase_d8,
3744 }, {
3745 .eraseblocks = { {4 * 1024 * 1024, 1} },
3746 .block_erase = spi_block_erase_60,
3747 }, {
3748 .eraseblocks = { {4 * 1024 * 1024, 1} },
3749 .block_erase = spi_block_erase_c7,
3750 }
3751 },
3752 .printlock = spi_prettyprint_status_register_bp2_bpl,
3753 .unlock = spi_disable_blockprotect,
3754 .write = spi_chip_write_256,
3755 .read = spi_chip_read,
3756 .voltage = {2700, 3600},
3757 },
3758
3759 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003760 .vendor = "ESMT",
3761 .name = "F49B002UA",
3762 .bustype = BUS_PARALLEL,
3763 .manufacture_id = ESMT_ID,
3764 .model_id = ESMT_F49B002UA,
3765 .total_size = 256,
3766 .page_size = 4096,
3767 .feature_bits = FEATURE_EITHER_RESET,
3768 .tested = TEST_UNTESTED,
3769 .probe = probe_jedec,
3770 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3771 .block_erasers =
3772 {
3773 {
3774 .eraseblocks = {
3775 {128 * 1024, 1},
3776 {96 * 1024, 1},
3777 {8 * 1024, 2},
3778 {16 * 1024, 1},
3779 },
3780 .block_erase = erase_sector_jedec,
3781 }, {
3782 .eraseblocks = { {256 * 1024, 1} },
3783 .block_erase = erase_chip_block_jedec,
3784 }
3785 },
3786 .write = write_jedec_1,
3787 .read = read_memmapped,
3788 .voltage = {4500, 5500},
3789 },
3790
3791 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003792 .vendor = "Eon",
3793 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003794 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003795 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003796 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003797 .total_size = 64,
3798 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003799 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003800 .tested = TEST_UNTESTED,
3801 .probe = probe_spi_rdid,
3802 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003803 .block_erasers =
3804 {
3805 {
3806 .eraseblocks = {
3807 {4 * 1024, 2},
3808 {8 * 1024, 1},
3809 {16 * 1024, 1},
3810 {32 * 1024, 1},
3811 },
3812 .block_erase = spi_block_erase_d8,
3813 }, {
3814 .eraseblocks = { {64 * 1024, 1} },
3815 .block_erase = spi_block_erase_c7,
3816 }
3817 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003818 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003819 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003820 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003821 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003822 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003823 },
3824
3825 {
3826 .vendor = "Eon",
3827 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003828 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003829 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003830 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003831 .total_size = 64,
3832 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003833 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003834 .tested = TEST_UNTESTED,
3835 .probe = probe_spi_rdid,
3836 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003837 .block_erasers =
3838 {
3839 {
3840 .eraseblocks = {
3841 {32 * 1024, 1},
3842 {16 * 1024, 1},
3843 {8 * 1024, 1},
3844 {4 * 1024, 2},
3845 },
3846 .block_erase = spi_block_erase_d8,
3847 }, {
3848 .eraseblocks = { {64 * 1024, 1} },
3849 .block_erase = spi_block_erase_c7,
3850 }
3851 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003852 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003853 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003854 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003855 .read = spi_chip_read, /* Fast read (0x0B) supported */
3856 .voltage = {2700, 3600},
3857 },
3858
3859 {
3860 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003861 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003862 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003863 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003864 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003865 .total_size = 128,
3866 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003867 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003868 .tested = TEST_UNTESTED,
3869 .probe = probe_spi_rdid,
3870 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003871 .block_erasers =
3872 {
3873 {
3874 .eraseblocks = {
3875 {4 * 1024, 2},
3876 {8 * 1024, 1},
3877 {16 * 1024, 1},
3878 {32 * 1024, 3},
3879 },
3880 .block_erase = spi_block_erase_d8,
3881 }, {
3882 .eraseblocks = { {128 * 1024, 1} },
3883 .block_erase = spi_block_erase_c7,
3884 }
3885 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003886 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003887 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003888 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003889 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003890 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003891 },
3892
3893 {
3894 .vendor = "Eon",
3895 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003896 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003897 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003898 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003899 .total_size = 128,
3900 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003901 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003902 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003903 .probe = probe_spi_rdid,
3904 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003905 .block_erasers =
3906 {
3907 {
3908 .eraseblocks = {
3909 {32 * 1024, 3},
3910 {16 * 1024, 1},
3911 {8 * 1024, 1},
3912 {4 * 1024, 2},
3913 },
3914 .block_erase = spi_block_erase_d8,
3915 }, {
3916 .eraseblocks = { {128 * 1024, 1} },
3917 .block_erase = spi_block_erase_c7,
3918 }
3919 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003920 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003921 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003922 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003923 .read = spi_chip_read, /* Fast read (0x0B) supported */
3924 .voltage = {2700, 3600},
3925 },
3926
3927 {
3928 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003929 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003930 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003931 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003932 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003933 .total_size = 2048,
3934 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003935 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003936 .tested = TEST_UNTESTED,
3937 .probe = probe_spi_rdid,
3938 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003939 .block_erasers =
3940 {
3941 {
3942 .eraseblocks = {
3943 {4 * 1024, 2},
3944 {8 * 1024, 1},
3945 {16 * 1024, 1},
3946 {32 * 1024, 1},
3947 {64 * 1024, 31},
3948 },
3949 .block_erase = spi_block_erase_d8,
3950 }, {
3951 .eraseblocks = { {2 * 1024 * 1024, 1} },
3952 .block_erase = spi_block_erase_c7,
3953 }
3954 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003955 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003956 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003957 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003958 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003959 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003960 },
3961
3962 {
3963 .vendor = "Eon",
3964 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003965 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003966 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003967 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003968 .total_size = 2048,
3969 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003970 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003971 .tested = TEST_UNTESTED,
3972 .probe = probe_spi_rdid,
3973 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003974 .block_erasers =
3975 {
3976 {
3977 .eraseblocks = {
3978 {64 * 1024, 31},
3979 {32 * 1024, 1},
3980 {16 * 1024, 1},
3981 {8 * 1024, 1},
3982 {4 * 1024, 2},
3983 },
3984 .block_erase = spi_block_erase_d8,
3985 }, {
3986 .eraseblocks = { {2 * 1024 * 1024, 1} },
3987 .block_erase = spi_block_erase_c7,
3988 }
3989 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003990 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003991 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003992 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003993 .read = spi_chip_read, /* Fast read (0x0B) supported */
3994 .voltage = {2700, 3600},
3995 },
3996
3997 {
3998 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003999 .name = "EN25B20",
Stefan Taunerb175af52015-01-24 15:06:27 +00004000 .bustype = BUS_SPI,
4001 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004002 .model_id = EON_EN25B20,
4003 .total_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004004 .page_size = 256,
4005 .feature_bits = FEATURE_WRSR_WREN,
4006 .tested = TEST_UNTESTED,
4007 .probe = probe_spi_rdid,
4008 .probe_timing = TIMING_ZERO,
4009 .block_erasers =
4010 {
4011 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004012 .eraseblocks = {
4013 {4 * 1024, 2},
4014 {8 * 1024, 1},
4015 {16 * 1024, 1},
4016 {32 * 1024, 1},
4017 {64 * 1024, 3}
4018 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004019 .block_erase = spi_block_erase_d8,
4020 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004021 .eraseblocks = { {256 * 1024, 1} },
4022 .block_erase = spi_block_erase_c7,
4023 }
4024 },
4025 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4026 .unlock = spi_disable_blockprotect,
4027 .write = spi_chip_write_256,
4028 .read = spi_chip_read, /* Fast read (0x0B) supported */
4029 .voltage = {2700, 3600},
4030 },
4031
4032 {
4033 .vendor = "Eon",
4034 .name = "EN25B20T",
4035 .bustype = BUS_SPI,
4036 .manufacture_id = EON_ID_NOPREFIX,
4037 .model_id = EON_EN25B20,
4038 .total_size = 256,
4039 .page_size = 256,
4040 .feature_bits = FEATURE_WRSR_WREN,
4041 .tested = TEST_UNTESTED,
4042 .probe = probe_spi_rdid,
4043 .probe_timing = TIMING_ZERO,
4044 .block_erasers =
4045 {
4046 {
4047 .eraseblocks = {
4048 {64 * 1024, 3},
4049 {32 * 1024, 1},
4050 {16 * 1024, 1},
4051 {8 * 1024, 1},
4052 {4 * 1024, 2},
4053 },
4054 .block_erase = spi_block_erase_d8,
4055 }, {
4056 .eraseblocks = { {256 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004057 .block_erase = spi_block_erase_c7,
4058 }
4059 },
4060 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4061 .unlock = spi_disable_blockprotect,
4062 .write = spi_chip_write_256,
4063 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004064 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004065 },
4066
4067 {
4068 .vendor = "Eon",
4069 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004070 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004071 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004072 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004073 .total_size = 4096,
4074 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004075 /* OTP: 512B total; enter 0x3A */
4076 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004077 .tested = TEST_UNTESTED,
4078 .probe = probe_spi_rdid,
4079 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004080 .block_erasers =
4081 {
4082 {
4083 .eraseblocks = {
4084 {4 * 1024, 2},
4085 {8 * 1024, 1},
4086 {16 * 1024, 1},
4087 {32 * 1024, 1},
4088 {64 * 1024, 63},
4089 },
4090 .block_erase = spi_block_erase_d8,
4091 }, {
4092 .eraseblocks = { {4 * 1024 * 1024, 1} },
4093 .block_erase = spi_block_erase_c7,
4094 }
4095 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004096 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004097 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004098 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004099 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004100 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004101 },
4102
4103 {
4104 .vendor = "Eon",
4105 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004106 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004107 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004108 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004109 .total_size = 4096,
4110 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004111 /* OTP: 512B total; enter 0x3A */
4112 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004113 .tested = TEST_UNTESTED,
4114 .probe = probe_spi_rdid,
4115 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004116 .block_erasers =
4117 {
4118 {
4119 .eraseblocks = {
4120 {64 * 1024, 63},
4121 {32 * 1024, 1},
4122 {16 * 1024, 1},
4123 {8 * 1024, 1},
4124 {4 * 1024, 2},
4125 },
4126 .block_erase = spi_block_erase_d8,
4127 }, {
4128 .eraseblocks = { {4 * 1024 * 1024, 1} },
4129 .block_erase = spi_block_erase_c7,
4130 }
4131 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004132 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004133 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004134 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004135 .read = spi_chip_read, /* Fast read (0x0B) supported */
4136 .voltage = {2700, 3600},
4137 },
4138
4139 {
4140 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004141 .name = "EN25B40",
Stefan Taunerb175af52015-01-24 15:06:27 +00004142 .bustype = BUS_SPI,
4143 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004144 .model_id = EON_EN25B40,
4145 .total_size = 512,
Stefan Taunerb175af52015-01-24 15:06:27 +00004146 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004147 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004148 .tested = TEST_UNTESTED,
4149 .probe = probe_spi_rdid,
4150 .probe_timing = TIMING_ZERO,
4151 .block_erasers =
4152 {
4153 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004154 .eraseblocks = {
4155 {4 * 1024, 2},
4156 {8 * 1024, 1},
4157 {16 * 1024, 1},
4158 {32 * 1024, 1},
4159 {64 * 1024, 7}
4160 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004161 .block_erase = spi_block_erase_d8,
4162 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004163 .eraseblocks = { {512 * 1024, 1} },
4164 .block_erase = spi_block_erase_c7,
4165 }
4166 },
4167 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4168 .unlock = spi_disable_blockprotect,
4169 .write = spi_chip_write_256,
4170 .read = spi_chip_read, /* Fast read (0x0B) supported */
4171 .voltage = {2700, 3600},
4172 },
4173
4174 {
4175 .vendor = "Eon",
4176 .name = "EN25B40T",
4177 .bustype = BUS_SPI,
4178 .manufacture_id = EON_ID_NOPREFIX,
4179 .model_id = EON_EN25B40,
4180 .total_size = 512,
4181 .page_size = 256,
4182 .feature_bits = FEATURE_WRSR_WREN,
4183 .tested = TEST_UNTESTED,
4184 .probe = probe_spi_rdid,
4185 .probe_timing = TIMING_ZERO,
4186 .block_erasers =
4187 {
4188 {
4189 .eraseblocks = {
4190 {64 * 1024, 7},
4191 {32 * 1024, 1},
4192 {16 * 1024, 1},
4193 {8 * 1024, 1},
4194 {4 * 1024, 2},
4195 },
4196 .block_erase = spi_block_erase_d8,
4197 }, {
4198 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004199 .block_erase = spi_block_erase_c7,
4200 }
4201 },
4202 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4203 .unlock = spi_disable_blockprotect,
4204 .write = spi_chip_write_256,
4205 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004206 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004207 },
4208
4209 {
4210 .vendor = "Eon",
4211 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004212 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004213 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004214 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004215 .total_size = 8192,
4216 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004217 /* OTP: 512B total; enter 0x3A */
4218 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004219 .tested = TEST_UNTESTED,
4220 .probe = probe_spi_rdid,
4221 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004222 .block_erasers =
4223 {
4224 {
4225 .eraseblocks = {
4226 {4 * 1024, 2},
4227 {8 * 1024, 1},
4228 {16 * 1024, 1},
4229 {32 * 1024, 1},
4230 {64 * 1024, 127},
4231 },
4232 .block_erase = spi_block_erase_d8,
4233 }, {
4234 .eraseblocks = { {8 * 1024 * 1024, 1} },
4235 .block_erase = spi_block_erase_c7,
4236 }
4237 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004238 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004239 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004240 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004241 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004242 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004243 },
4244
4245 {
4246 .vendor = "Eon",
4247 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004248 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004249 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004250 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004251 .total_size = 8192,
4252 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004253 /* OTP: 512B total; enter 0x3A */
4254 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004255 .tested = TEST_UNTESTED,
4256 .probe = probe_spi_rdid,
4257 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004258 .block_erasers =
4259 {
4260 {
4261 .eraseblocks = {
4262 {64 * 1024, 127},
4263 {32 * 1024, 1},
4264 {16 * 1024, 1},
4265 {8 * 1024, 1},
4266 {4 * 1024, 2},
4267 },
4268 .block_erase = spi_block_erase_d8,
4269 }, {
4270 .eraseblocks = { {8 * 1024 * 1024, 1} },
4271 .block_erase = spi_block_erase_c7,
4272 }
4273 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004274 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004275 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004276 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004277 .read = spi_chip_read, /* Fast read (0x0B) supported */
4278 .voltage = {2700, 3600},
4279 },
4280
4281 {
4282 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004283 .name = "EN25B80",
Stefan Taunerb175af52015-01-24 15:06:27 +00004284 .bustype = BUS_SPI,
4285 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004286 .model_id = EON_EN25B80,
4287 .total_size = 1024,
Stefan Taunerb175af52015-01-24 15:06:27 +00004288 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004289 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004290 .tested = TEST_UNTESTED,
4291 .probe = probe_spi_rdid,
4292 .probe_timing = TIMING_ZERO,
4293 .block_erasers =
4294 {
4295 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004296 .eraseblocks = {
4297 {4 * 1024, 2},
4298 {8 * 1024, 1},
4299 {16 * 1024, 1},
4300 {32 * 1024, 1},
4301 {64 * 1024, 15}
4302 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004303 .block_erase = spi_block_erase_d8,
4304 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004305 .eraseblocks = { {1024 * 1024, 1} },
4306 .block_erase = spi_block_erase_c7,
4307 }
4308 },
4309 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4310 .unlock = spi_disable_blockprotect,
4311 .write = spi_chip_write_256,
4312 .read = spi_chip_read, /* Fast read (0x0B) supported */
4313 .voltage = {2700, 3600},
4314 },
4315
4316 {
4317 .vendor = "Eon",
4318 .name = "EN25B80T",
4319 .bustype = BUS_SPI,
4320 .manufacture_id = EON_ID_NOPREFIX,
4321 .model_id = EON_EN25B80,
4322 .total_size = 1024,
4323 .page_size = 256,
4324 .feature_bits = FEATURE_WRSR_WREN,
4325 .tested = TEST_UNTESTED,
4326 .probe = probe_spi_rdid,
4327 .probe_timing = TIMING_ZERO,
4328 .block_erasers =
4329 {
4330 {
4331 .eraseblocks = {
4332 {64 * 1024, 15},
4333 {32 * 1024, 1},
4334 {16 * 1024, 1},
4335 {8 * 1024, 1},
4336 {4 * 1024, 2},
4337 },
4338 .block_erase = spi_block_erase_d8,
4339 }, {
4340 .eraseblocks = { {1024 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004341 .block_erase = spi_block_erase_c7,
4342 }
4343 },
4344 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4345 .unlock = spi_disable_blockprotect,
4346 .write = spi_chip_write_256,
4347 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004348 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004349 },
4350
4351 {
4352 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004353 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004354 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004355 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004356 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004357 .total_size = 64,
4358 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004359 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004360 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004361 .probe = probe_spi_rdid,
4362 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004363 .block_erasers =
4364 {
4365 {
4366 .eraseblocks = { {4 * 1024, 16} },
4367 .block_erase = spi_block_erase_20,
4368 }, {
4369 .eraseblocks = { {32 * 1024, 2} },
4370 .block_erase = spi_block_erase_d8,
4371 }, {
4372 .eraseblocks = { {32 * 1024, 2} },
4373 .block_erase = spi_block_erase_52,
4374 }, {
4375 .eraseblocks = { {64 * 1024, 1} },
4376 .block_erase = spi_block_erase_60,
4377 }, {
4378 .eraseblocks = { {64 * 1024, 1} },
4379 .block_erase = spi_block_erase_c7,
4380 }
4381 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004382 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004383 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004384 .write = spi_chip_write_256,
4385 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004386 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004387 },
4388
4389 {
4390 .vendor = "Eon",
4391 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004392 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004393 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004394 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004395 .total_size = 128,
4396 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004397 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004398 .tested = TEST_UNTESTED,
4399 .probe = probe_spi_rdid,
4400 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004401 .block_erasers =
4402 {
4403 {
4404 .eraseblocks = { {4 * 1024, 32} },
4405 .block_erase = spi_block_erase_20,
4406 }, {
4407 .eraseblocks = { {32 * 1024, 4} },
4408 .block_erase = spi_block_erase_d8,
4409 }, {
4410 .eraseblocks = { {32 * 1024, 4} },
4411 .block_erase = spi_block_erase_52,
4412 }, {
4413 .eraseblocks = { {128 * 1024, 1} },
4414 .block_erase = spi_block_erase_60,
4415 }, {
4416 .eraseblocks = { {128 * 1024, 1} },
4417 .block_erase = spi_block_erase_c7,
4418 }
4419 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004420 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004421 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004422 .write = spi_chip_write_256,
4423 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004424 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004425 },
4426
4427 {
4428 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004429 .name = "EN25F16",
4430 .bustype = BUS_SPI,
4431 .manufacture_id = EON_ID_NOPREFIX,
4432 .model_id = EON_EN25F16,
4433 .total_size = 2048,
4434 .page_size = 256,
4435 .feature_bits = FEATURE_WRSR_WREN,
4436 .tested = TEST_OK_PREW,
4437 .probe = probe_spi_rdid,
4438 .probe_timing = TIMING_ZERO,
4439 .block_erasers =
4440 {
4441 {
4442 .eraseblocks = { {4 * 1024, 512} },
4443 .block_erase = spi_block_erase_20,
4444 }, {
4445 .eraseblocks = { {64 * 1024, 32} },
4446 .block_erase = spi_block_erase_d8,
4447 }, {
4448 .eraseblocks = { {2 * 1024 * 1024, 1} },
4449 .block_erase = spi_block_erase_60,
4450 }, {
4451 .eraseblocks = { {2 * 1024 * 1024, 1} },
4452 .block_erase = spi_block_erase_c7,
4453 }
4454 },
4455 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4456 .unlock = spi_disable_blockprotect,
4457 .write = spi_chip_write_256,
4458 .read = spi_chip_read,
4459 .voltage = {2700, 3600},
4460 },
4461
4462 {
4463 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004464 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004465 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004466 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004467 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004468 .total_size = 256,
4469 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004470 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004471 .tested = TEST_UNTESTED,
4472 .probe = probe_spi_rdid,
4473 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004474 .block_erasers =
4475 {
4476 {
4477 .eraseblocks = { {4 * 1024, 64} },
4478 .block_erase = spi_block_erase_20,
4479 }, {
4480 .eraseblocks = { {64 * 1024, 4} },
4481 .block_erase = spi_block_erase_d8,
4482 }, {
4483 .eraseblocks = { {64 * 1024, 4} },
4484 .block_erase = spi_block_erase_52,
4485 }, {
4486 .eraseblocks = { {256 * 1024, 1} },
4487 .block_erase = spi_block_erase_60,
4488 }, {
4489 .eraseblocks = { {256 * 1024, 1} },
4490 .block_erase = spi_block_erase_c7,
4491 }
4492 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004493 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004494 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004495 .write = spi_chip_write_256,
4496 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004497 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004498 },
4499
4500 {
4501 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004502 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004503 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004504 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004505 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004506 .total_size = 4096,
4507 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004508 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004509 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004510 .probe = probe_spi_rdid,
4511 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004512 .block_erasers =
4513 {
4514 {
4515 .eraseblocks = { {4 * 1024, 1024} },
4516 .block_erase = spi_block_erase_20,
4517 }, {
4518 .eraseblocks = { {64 * 1024, 64} },
4519 .block_erase = spi_block_erase_d8,
4520 }, {
4521 .eraseblocks = { {4 * 1024 * 1024, 1} },
4522 .block_erase = spi_block_erase_60,
4523 }, {
4524 .eraseblocks = { {4 * 1024 * 1024, 1} },
4525 .block_erase = spi_block_erase_c7,
4526 }
4527 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004528 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004529 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004530 .write = spi_chip_write_256,
4531 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004532 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004533 },
4534
4535 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004536 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004537 .name = "EN25F40",
4538 .bustype = BUS_SPI,
4539 .manufacture_id = EON_ID_NOPREFIX,
4540 .model_id = EON_EN25F40,
4541 .total_size = 512,
4542 .page_size = 256,
4543 .feature_bits = FEATURE_WRSR_WREN,
4544 .tested = TEST_OK_PREW,
4545 .probe = probe_spi_rdid,
4546 .probe_timing = TIMING_ZERO,
4547 .block_erasers =
4548 {
4549 {
4550 .eraseblocks = { {4 * 1024, 128} },
4551 .block_erase = spi_block_erase_20,
4552 }, {
4553 .eraseblocks = { {64 * 1024, 8} },
4554 .block_erase = spi_block_erase_d8,
4555 }, {
4556 .eraseblocks = { {512 * 1024, 1} },
4557 .block_erase = spi_block_erase_60,
4558 }, {
4559 .eraseblocks = { {512 * 1024, 1} },
4560 .block_erase = spi_block_erase_c7,
4561 },
4562 },
4563 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4564 .unlock = spi_disable_blockprotect,
4565 .write = spi_chip_write_256,
4566 .read = spi_chip_read,
4567 .voltage = {2700, 3600},
4568 },
4569
4570 {
4571 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004572 .name = "EN25F64",
4573 .bustype = BUS_SPI,
4574 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004575 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004576 .total_size = 8192,
4577 .page_size = 256,
4578 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004579 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004580 .probe = probe_spi_rdid,
4581 .probe_timing = TIMING_ZERO,
4582 .block_erasers =
4583 {
4584 {
4585 .eraseblocks = { {4 * 1024, 2048} },
4586 .block_erase = spi_block_erase_20,
4587 }, {
4588 .eraseblocks = { {64 * 1024, 128} },
4589 .block_erase = spi_block_erase_d8,
4590 }, {
4591 .eraseblocks = { {8 * 1024 * 1024, 1} },
4592 .block_erase = spi_block_erase_60,
4593 }, {
4594 .eraseblocks = { {8 * 1024 * 1024, 1} },
4595 .block_erase = spi_block_erase_c7,
4596 }
4597 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004598 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004599 .unlock = spi_disable_blockprotect,
4600 .write = spi_chip_write_256,
4601 .read = spi_chip_read,
4602 .voltage = {2700, 3600},
4603 },
4604
4605 {
4606 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004607 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004608 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004609 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004610 .model_id = EON_EN25F80,
David Hendricks6d715302011-07-24 22:21:57 +00004611 .total_size = 1024,
4612 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004613 .feature_bits = FEATURE_WRSR_WREN,
4614 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004615 .probe = probe_spi_rdid,
4616 .probe_timing = TIMING_ZERO,
4617 .block_erasers =
4618 {
4619 {
4620 .eraseblocks = { {4 * 1024, 256} },
4621 .block_erase = spi_block_erase_20,
4622 }, {
4623 .eraseblocks = { {64 * 1024, 16} },
4624 .block_erase = spi_block_erase_d8,
4625 }, {
4626 .eraseblocks = { {1024 * 1024, 1} },
4627 .block_erase = spi_block_erase_60,
4628 }, {
4629 .eraseblocks = { {1024 * 1024, 1} },
4630 .block_erase = spi_block_erase_c7,
4631 }
4632 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004633 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004634 .unlock = spi_disable_blockprotect,
4635 .write = spi_chip_write_256,
4636 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004637 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004638 },
4639
4640 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004641 .vendor = "Eon",
4642 .name = "EN25P05",
4643 .bustype = BUS_SPI,
4644 .manufacture_id = EON_ID_NOPREFIX,
4645 .model_id = EON_EN25B05,
4646 .total_size = 64,
4647 .page_size = 256,
4648 .feature_bits = FEATURE_WRSR_WREN,
4649 .tested = TEST_UNTESTED,
4650 .probe = probe_spi_rdid,
4651 .probe_timing = TIMING_ZERO,
4652 .block_erasers =
4653 {
4654 {
4655 .eraseblocks = {
4656 {32 * 1024, 2} },
4657 .block_erase = spi_block_erase_d8,
4658 }, {
4659 .eraseblocks = { {64 * 1024, 1} },
4660 .block_erase = spi_block_erase_c7,
4661 }
4662 },
4663 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4664 .unlock = spi_disable_blockprotect,
4665 .write = spi_chip_write_256,
4666 .read = spi_chip_read, /* Fast read (0x0B) supported */
4667 .voltage = {2700, 3600},
4668 },
4669
4670 {
4671 .vendor = "Eon",
4672 .name = "EN25P10",
4673 .bustype = BUS_SPI,
4674 .manufacture_id = EON_ID_NOPREFIX,
4675 .model_id = EON_EN25B10,
4676 .total_size = 128,
4677 .page_size = 256,
4678 .feature_bits = FEATURE_WRSR_WREN,
4679 .tested = TEST_UNTESTED,
4680 .probe = probe_spi_rdid,
4681 .probe_timing = TIMING_ZERO,
4682 .block_erasers =
4683 {
4684 {
4685 .eraseblocks = { {32 * 1024, 4} },
4686 .block_erase = spi_block_erase_d8,
4687 }, {
4688 .eraseblocks = { {128 * 1024, 1} },
4689 .block_erase = spi_block_erase_c7,
4690 }
4691 },
4692 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4693 .unlock = spi_disable_blockprotect,
4694 .write = spi_chip_write_256,
4695 .read = spi_chip_read, /* Fast read (0x0B) supported */
4696 .voltage = {2700, 3600},
4697 },
4698
4699 {
4700 .vendor = "Eon",
4701 .name = "EN25P16",
4702 .bustype = BUS_SPI,
4703 .manufacture_id = EON_ID_NOPREFIX,
4704 .model_id = EON_EN25B16,
4705 .total_size = 2048,
4706 .page_size = 256,
4707 .feature_bits = FEATURE_WRSR_WREN,
4708 .tested = TEST_UNTESTED,
4709 .probe = probe_spi_rdid,
4710 .probe_timing = TIMING_ZERO,
4711 .block_erasers =
4712 {
4713 {
4714 .eraseblocks = { {64 * 1024, 32} },
4715 .block_erase = spi_block_erase_d8,
4716 }, {
4717 .eraseblocks = { {2 * 1024 * 1024, 1} },
4718 .block_erase = spi_block_erase_c7,
4719 }
4720 },
4721 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4722 .unlock = spi_disable_blockprotect,
4723 .write = spi_chip_write_256,
4724 .read = spi_chip_read, /* Fast read (0x0B) supported */
4725 .voltage = {2700, 3600},
4726 },
4727
4728 {
4729 .vendor = "Eon",
4730 .name = "EN25P20",
4731 .bustype = BUS_SPI,
4732 .manufacture_id = EON_ID_NOPREFIX,
4733 .model_id = EON_EN25B20,
4734 .total_size = 256,
4735 .page_size = 256,
4736 .feature_bits = FEATURE_WRSR_WREN,
4737 .tested = TEST_UNTESTED,
4738 .probe = probe_spi_rdid,
4739 .probe_timing = TIMING_ZERO,
4740 .block_erasers =
4741 {
4742 {
4743 .eraseblocks = { {64 * 1024, 4} },
4744 .block_erase = spi_block_erase_d8,
4745 }, {
4746 .eraseblocks = { {256 * 1024, 1} },
4747 .block_erase = spi_block_erase_c7,
4748 }
4749 },
4750 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4751 .unlock = spi_disable_blockprotect,
4752 .write = spi_chip_write_256,
4753 .read = spi_chip_read, /* Fast read (0x0B) supported */
4754 .voltage = {2700, 3600},
4755 },
4756
4757 {
4758 .vendor = "Eon",
4759 .name = "EN25P32", /* Uniform version of EN25B32 */
4760 .bustype = BUS_SPI,
4761 .manufacture_id = EON_ID_NOPREFIX,
4762 .model_id = EON_EN25B32,
4763 .total_size = 4096,
4764 .page_size = 256,
4765 /* OTP: 512B total; enter 0x3A */
4766 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4767 .tested = TEST_UNTESTED,
4768 .probe = probe_spi_rdid,
4769 .probe_timing = TIMING_ZERO,
4770 .block_erasers =
4771 {
4772 {
4773 .eraseblocks = { {64 * 1024, 64} },
4774 .block_erase = spi_block_erase_d8,
4775 }, {
4776 .eraseblocks = { {4 * 1024 * 1024, 1} },
4777 .block_erase = spi_block_erase_c7,
4778 }
4779 },
4780 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4781 .unlock = spi_disable_blockprotect,
4782 .write = spi_chip_write_256,
4783 .read = spi_chip_read, /* Fast read (0x0B) supported */
4784 .voltage = {2700, 3600},
4785 },
4786
4787 {
4788 .vendor = "Eon",
4789 .name = "EN25P40",
4790 .bustype = BUS_SPI,
4791 .manufacture_id = EON_ID_NOPREFIX,
4792 .model_id = EON_EN25B40,
4793 .total_size = 512,
4794 .page_size = 256,
4795 .feature_bits = FEATURE_WRSR_WREN,
4796 .tested = TEST_UNTESTED,
4797 .probe = probe_spi_rdid,
4798 .probe_timing = TIMING_ZERO,
4799 .block_erasers =
4800 {
4801 {
4802 .eraseblocks = { {64 * 1024, 8} },
4803 .block_erase = spi_block_erase_d8,
4804 }, {
4805 .eraseblocks = { {512 * 1024, 1} },
4806 .block_erase = spi_block_erase_c7,
4807 }
4808 },
4809 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4810 .unlock = spi_disable_blockprotect,
4811 .write = spi_chip_write_256,
4812 .read = spi_chip_read, /* Fast read (0x0B) supported */
4813 .voltage = {2700, 3600},
4814 },
4815
4816 {
4817 .vendor = "Eon",
4818 .name = "EN25P64",
4819 .bustype = BUS_SPI,
4820 .manufacture_id = EON_ID_NOPREFIX,
4821 .model_id = EON_EN25B64,
4822 .total_size = 8192,
4823 .page_size = 256,
4824 /* OTP: 512B total; enter 0x3A */
4825 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4826 .tested = TEST_UNTESTED,
4827 .probe = probe_spi_rdid,
4828 .probe_timing = TIMING_ZERO,
4829 .block_erasers =
4830 {
4831 {
4832 .eraseblocks = { {64 * 1024, 128} },
4833 .block_erase = spi_block_erase_d8,
4834 }, {
4835 .eraseblocks = { {8 * 1024 * 1024, 1} },
4836 .block_erase = spi_block_erase_c7,
4837 }
4838 },
4839 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4840 .unlock = spi_disable_blockprotect,
4841 .write = spi_chip_write_256,
4842 .read = spi_chip_read, /* Fast read (0x0B) supported */
4843 .voltage = {2700, 3600},
4844 },
4845
4846 {
4847 .vendor = "Eon",
4848 .name = "EN25P80",
4849 .bustype = BUS_SPI,
4850 .manufacture_id = EON_ID_NOPREFIX,
4851 .model_id = EON_EN25B80,
4852 .total_size = 1024,
4853 .page_size = 256,
4854 .feature_bits = FEATURE_WRSR_WREN,
4855 .tested = TEST_UNTESTED,
4856 .probe = probe_spi_rdid,
4857 .probe_timing = TIMING_ZERO,
4858 .block_erasers =
4859 {
4860 {
4861 .eraseblocks = { {64 * 1024, 16} },
4862 .block_erase = spi_block_erase_d8,
4863 }, {
4864 .eraseblocks = { {1024 * 1024, 1} },
4865 .block_erase = spi_block_erase_c7,
4866 }
4867 },
4868 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4869 .unlock = spi_disable_blockprotect,
4870 .write = spi_chip_write_256,
4871 .read = spi_chip_read, /* Fast read (0x0B) supported */
4872 .voltage = {2700, 3600},
4873 },
4874
4875 {
4876 .vendor = "Eon",
4877 .name = "EN25Q128",
4878 .bustype = BUS_SPI,
4879 .manufacture_id = EON_ID_NOPREFIX,
4880 .model_id = EON_EN25Q128,
4881 .total_size = 16384,
4882 .page_size = 256,
4883 /* OTP: 512B total; enter 0x3A */
4884 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4885 .tested = TEST_OK_PREW,
4886 .probe = probe_spi_rdid,
4887 .probe_timing = TIMING_ZERO,
4888 .block_erasers =
4889 {
4890 {
4891 .eraseblocks = { {4 * 1024, 4096} },
4892 .block_erase = spi_block_erase_20,
4893 }, {
4894 .eraseblocks = { {64 * 1024, 256} },
4895 .block_erase = spi_block_erase_d8,
4896 }, {
4897 .eraseblocks = { {16 * 1024 * 1024, 1} },
4898 .block_erase = spi_block_erase_60,
4899 }, {
4900 .eraseblocks = { {16 * 1024 * 1024, 1} },
4901 .block_erase = spi_block_erase_c7,
4902 }
4903 },
4904 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4905 .unlock = spi_disable_blockprotect,
4906 .write = spi_chip_write_256,
4907 .read = spi_chip_read,
4908 },
4909
4910 {
David Hendricks6d715302011-07-24 22:21:57 +00004911 /* Note: EN25D16 is an evil twin which shares the model ID
4912 but has different write protection capabilities */
4913 .vendor = "Eon",
4914 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004915 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004916 .manufacture_id = EON_ID_NOPREFIX,
4917 .model_id = EON_EN25Q16,
4918 .total_size = 2048,
4919 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004920 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4921 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004922 .tested = TEST_UNTESTED,
4923 .probe = probe_spi_rdid,
4924 .probe_timing = TIMING_ZERO,
4925 .block_erasers =
4926 {
4927 {
4928 .eraseblocks = { {4 * 1024, 512} },
4929 .block_erase = spi_block_erase_20,
4930 }, {
4931 .eraseblocks = { {64 * 1024, 32} },
4932 .block_erase = spi_block_erase_d8,
4933 }, {
4934 /* not supported by Q16 version */
4935 .eraseblocks = { {64 * 1024, 32} },
4936 .block_erase = spi_block_erase_52,
4937 }, {
4938 .eraseblocks = { {2 * 1024 * 1024, 1} },
4939 .block_erase = spi_block_erase_60,
4940 }, {
4941 .eraseblocks = { {2 * 1024 * 1024, 1} },
4942 .block_erase = spi_block_erase_c7,
4943 }
4944 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004945 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004946 .unlock = spi_disable_blockprotect,
4947 .write = spi_chip_write_256,
4948 .read = spi_chip_read,
4949 .voltage = {2700, 3600},
4950 },
4951
4952 {
4953 .vendor = "Eon",
4954 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004955 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004956 .manufacture_id = EON_ID_NOPREFIX,
4957 .model_id = EON_EN25Q32,
4958 .total_size = 4096,
4959 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004960 /* OTP: 512B total; enter 0x3A */
4961 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004962 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004963 .probe = probe_spi_rdid,
4964 .probe_timing = TIMING_ZERO,
4965 .block_erasers =
4966 {
4967 {
4968 .eraseblocks = { {4 * 1024, 1024} },
4969 .block_erase = spi_block_erase_20,
4970 }, {
4971 .eraseblocks = { {64 * 1024, 64} },
4972 .block_erase = spi_block_erase_d8,
4973 }, {
4974 .eraseblocks = { {4 * 1024 * 1024, 1} },
4975 .block_erase = spi_block_erase_60,
4976 }, {
4977 .eraseblocks = { {4 * 1024 * 1024, 1} },
4978 .block_erase = spi_block_erase_c7,
4979 }
4980 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004981 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004982 .unlock = spi_disable_blockprotect,
4983 .write = spi_chip_write_256,
4984 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004985 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004986 },
4987
4988 {
4989 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004990 .name = "EN25Q40",
4991 .bustype = BUS_SPI,
4992 .manufacture_id = EON_ID_NOPREFIX,
4993 .model_id = EON_EN25Q40,
4994 .total_size = 512,
4995 .page_size = 256,
4996 /* OTP: 256B total; enter 0x3A */
4997 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4998 .tested = TEST_UNTESTED,
4999 .probe = probe_spi_rdid,
5000 .probe_timing = TIMING_ZERO,
5001 .block_erasers =
5002 {
5003 {
5004 .eraseblocks = { {4 * 1024, 128} },
5005 .block_erase = spi_block_erase_20,
5006 }, {
5007 .eraseblocks = { {64 * 1024, 8} },
5008 .block_erase = spi_block_erase_d8,
5009 }, {
5010 .eraseblocks = { {512 * 1024, 1} },
5011 .block_erase = spi_block_erase_60,
5012 }, {
5013 .eraseblocks = { {512 * 1024, 1} },
5014 .block_erase = spi_block_erase_c7,
5015 }
5016 },
5017 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5018 .unlock = spi_disable_blockprotect,
5019 .write = spi_chip_write_256,
5020 .read = spi_chip_read,
5021 .voltage = {2700, 3600},
5022 },
5023
5024 {
5025 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00005026 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005027 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005028 .manufacture_id = EON_ID_NOPREFIX,
5029 .model_id = EON_EN25Q64,
5030 .total_size = 8192,
5031 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005032 /* OTP: 512B total; enter 0x3A */
5033 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005034 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005035 .probe = probe_spi_rdid,
5036 .probe_timing = TIMING_ZERO,
5037 .block_erasers =
5038 {
5039 {
5040 .eraseblocks = { {4 * 1024, 2048} },
5041 .block_erase = spi_block_erase_20,
5042 }, {
5043 .eraseblocks = { {64 * 1024, 128} },
5044 .block_erase = spi_block_erase_d8,
5045 }, {
5046 .eraseblocks = { {8 * 1024 * 1024, 1} },
5047 .block_erase = spi_block_erase_60,
5048 }, {
5049 .eraseblocks = { {8 * 1024 * 1024, 1} },
5050 .block_erase = spi_block_erase_c7,
5051 }
5052 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005053 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00005054 .unlock = spi_disable_blockprotect,
5055 .write = spi_chip_write_256,
5056 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00005057 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005058 },
5059
5060 {
5061 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005062 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005063 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005064 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005065 .model_id = EON_EN25Q80,
5066 .total_size = 1024,
5067 .page_size = 256,
5068 /* OTP: 256B total; enter 0x3A */
5069 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5070 .tested = TEST_UNTESTED,
5071 .probe = probe_spi_rdid,
5072 .probe_timing = TIMING_ZERO,
5073 .block_erasers =
5074 {
5075 {
5076 .eraseblocks = { {4 * 1024, 256} },
5077 .block_erase = spi_block_erase_20,
5078 }, {
5079 .eraseblocks = { {64 * 1024, 16} },
5080 .block_erase = spi_block_erase_d8,
5081 }, {
5082 .eraseblocks = { {1024 * 1024, 1} },
5083 .block_erase = spi_block_erase_60,
5084 }, {
5085 .eraseblocks = { {1024 * 1024, 1} },
5086 .block_erase = spi_block_erase_c7,
5087 }
5088 },
5089 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5090 .unlock = spi_disable_blockprotect,
5091 .write = spi_chip_write_256,
5092 .read = spi_chip_read,
5093 .voltage = {2700, 3600},
5094 },
5095
5096 {
5097 .vendor = "Eon",
5098 .name = "EN25QH128",
5099 .bustype = BUS_SPI,
5100 .manufacture_id = EON_ID_NOPREFIX,
5101 .model_id = EON_EN25QH128,
David Hendricks6d715302011-07-24 22:21:57 +00005102 .total_size = 16384,
5103 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005104 /* supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00005105 /* OTP: 512B total; enter 0x3A */
Alan Green1f9cc7d2019-07-01 11:10:45 +10005106 /* QPI enable 0x38, disable 0xFF */
5107 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Tim Chenbfe149a2020-07-06 14:59:21 +08005108 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005109 .probe = probe_spi_rdid,
5110 .probe_timing = TIMING_ZERO,
5111 .block_erasers =
5112 {
5113 {
5114 .eraseblocks = { {4 * 1024, 4096} },
5115 .block_erase = spi_block_erase_20,
5116 }, {
5117 .eraseblocks = { {64 * 1024, 256} },
5118 .block_erase = spi_block_erase_d8,
5119 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005120 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005121 .block_erase = spi_block_erase_60,
5122 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005123 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005124 .block_erase = spi_block_erase_c7,
5125 }
5126 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005127 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5128 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005129 .write = spi_chip_write_256,
5130 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005131 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005132 },
5133
5134 {
5135 .vendor = "Eon",
5136 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005137 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005138 .manufacture_id = EON_ID_NOPREFIX,
5139 .model_id = EON_EN25QH16,
5140 .total_size = 2048,
5141 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005142 /* supports SFDP */
5143 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005144 /* QPI enable 0x38, disable 0xFF */
5145 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00005146 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005147 .probe = probe_spi_rdid,
5148 .probe_timing = TIMING_ZERO,
5149 .block_erasers =
5150 {
5151 {
5152 .eraseblocks = { {4 * 1024, 512} },
5153 .block_erase = spi_block_erase_20,
5154 }, {
5155 .eraseblocks = { {64 * 1024, 32} },
5156 .block_erase = spi_block_erase_d8,
5157 }, {
5158 .eraseblocks = { {1024 * 2048, 1} },
5159 .block_erase = spi_block_erase_60,
5160 }, {
5161 .eraseblocks = { {1024 * 2048, 1} },
5162 .block_erase = spi_block_erase_c7,
5163 }
5164 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005165 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005166 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005167 .write = spi_chip_write_256,
5168 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005169 .voltage = {2700, 3600},
5170 },
5171
5172 {
5173 .vendor = "Eon",
5174 .name = "EN25QH32",
5175 .bustype = BUS_SPI,
5176 .manufacture_id = EON_ID_NOPREFIX,
5177 .model_id = EON_EN25QH32,
5178 .total_size = 4096,
5179 .page_size = 256,
5180 /* supports SFDP */
5181 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005182 /* QPI enable 0x38, disable 0xFF */
5183 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005184 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005185 .probe = probe_spi_rdid,
5186 .probe_timing = TIMING_ZERO,
5187 .block_erasers =
5188 {
5189 {
5190 .eraseblocks = { {4 * 1024, 1024} },
5191 .block_erase = spi_block_erase_20,
5192 }, {
5193 .eraseblocks = { {64 * 1024, 64} },
5194 .block_erase = spi_block_erase_d8,
5195 }, {
5196 .eraseblocks = { {1024 * 4096, 1} },
5197 .block_erase = spi_block_erase_60,
5198 }, {
5199 .eraseblocks = { {1024 * 4096, 1} },
5200 .block_erase = spi_block_erase_c7,
5201 }
5202 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005203 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005204 .unlock = spi_disable_blockprotect_bp3_srwd,
5205 .write = spi_chip_write_256,
5206 .read = spi_chip_read,
5207 .voltage = {2700, 3600},
5208 },
5209
5210 {
5211 .vendor = "Eon",
5212 .name = "EN25QH64",
5213 .bustype = BUS_SPI,
5214 .manufacture_id = EON_ID_NOPREFIX,
5215 .model_id = EON_EN25QH64,
5216 .total_size = 8192,
5217 .page_size = 256,
5218 /* supports SFDP */
5219 /* OTP: 512B total; enter 0x3A */
5220 /* QPI enable 0x38, disable 0xFF */
5221 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005222 .tested = TEST_OK_PREW,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005223 .probe = probe_spi_rdid,
5224 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005225 .block_erasers =
5226 {
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005227 {
5228 .eraseblocks = { {4 * 1024, 2048} },
5229 .block_erase = spi_block_erase_20,
5230 }, {
5231 .eraseblocks = { {64 * 1024, 128} },
5232 .block_erase = spi_block_erase_d8,
5233 }, {
5234 .eraseblocks = { { 8192 * 1024, 1} },
5235 .block_erase = spi_block_erase_60,
5236 }, {
5237 .eraseblocks = { { 8192 * 1024, 1} },
5238 .block_erase = spi_block_erase_c7,
5239 }
5240 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005241 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005242 .unlock = spi_disable_blockprotect_bp3_srwd,
5243 .write = spi_chip_write_256,
5244 .read = spi_chip_read,
5245 .voltage = {2700, 3600},
5246 },
5247
5248 {
5249 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005250 .name = "EN25S10",
5251 .bustype = BUS_SPI,
5252 .manufacture_id = EON_ID_NOPREFIX,
5253 .model_id = EON_EN25S10,
5254 .total_size = 128,
5255 .page_size = 256,
5256 /* OTP: 256B total; enter 0x3A */
5257 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5258 .tested = TEST_UNTESTED,
5259 .probe = probe_spi_rdid,
5260 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005261 .block_erasers =
5262 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005263 {
5264 .eraseblocks = { {4 * 1024, 32} },
5265 .block_erase = spi_block_erase_20,
5266 }, {
5267 .eraseblocks = { {32 * 1024, 4} },
5268 .block_erase = spi_block_erase_52,
5269 }, {
5270 .eraseblocks = { {128 * 1024, 1} },
5271 .block_erase = spi_block_erase_60,
5272 }, {
5273 .eraseblocks = { {128 * 1024, 1} },
5274 .block_erase = spi_block_erase_c7,
5275 }
5276 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005277 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005278 .unlock = spi_disable_blockprotect,
5279 .write = spi_chip_write_256,
5280 .read = spi_chip_read,
5281 .voltage = {1650, 1950},
5282 },
5283
5284 {
5285 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005286 .name = "EN25S16",
5287 .bustype = BUS_SPI,
5288 .manufacture_id = EON_ID_NOPREFIX,
5289 .model_id = EON_EN25S16,
5290 .total_size = 2048,
5291 .page_size = 256,
5292 /* OTP: 512B total; enter 0x3A */
5293 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5294 .tested = TEST_UNTESTED,
5295 .probe = probe_spi_rdid,
5296 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005297 .block_erasers =
5298 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005299 {
5300 .eraseblocks = { {4 * 1024, 512} },
5301 .block_erase = spi_block_erase_20,
5302 }, {
5303 .eraseblocks = { {64 * 1024, 32} },
5304 .block_erase = spi_block_erase_52,
5305 }, {
5306 .eraseblocks = { {32 * 1024, 64} },
5307 .block_erase = spi_block_erase_d8,
5308 }, {
5309 .eraseblocks = { {2048 * 1024, 1} },
5310 .block_erase = spi_block_erase_60,
5311 }, {
5312 .eraseblocks = { {2048 * 1024, 1} },
5313 .block_erase = spi_block_erase_c7,
5314 }
5315 },
5316 .printlock = spi_prettyprint_status_register_en25s_wp,
5317 .unlock = spi_disable_blockprotect_bp3_srwd,
5318 .write = spi_chip_write_256,
5319 .read = spi_chip_read,
5320 .voltage = {1650, 1950},
5321 },
5322
5323 {
5324 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005325 .name = "EN25S20",
5326 .bustype = BUS_SPI,
5327 .manufacture_id = EON_ID_NOPREFIX,
5328 .model_id = EON_EN25S20,
5329 .total_size = 256,
5330 .page_size = 256,
5331 /* OTP: 256B total; enter 0x3A */
5332 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5333 .tested = TEST_UNTESTED,
5334 .probe = probe_spi_rdid,
5335 .probe_timing = TIMING_ZERO,
5336 .block_erasers =
5337 {
5338 {
5339 .eraseblocks = { {4 * 1024, 64} },
5340 .block_erase = spi_block_erase_20,
5341 }, {
5342 .eraseblocks = { {64 * 1024, 4} },
5343 .block_erase = spi_block_erase_d8,
5344 }, {
5345 .eraseblocks = { {256 * 1024, 1} },
5346 .block_erase = spi_block_erase_60,
5347 }, {
5348 .eraseblocks = { {256 * 1024, 1} },
5349 .block_erase = spi_block_erase_c7,
5350 }
5351 },
5352 .printlock = spi_prettyprint_status_register_bp2_srwd,
5353 .unlock = spi_disable_blockprotect,
5354 .write = spi_chip_write_256,
5355 .read = spi_chip_read,
5356 .voltage = {1650, 1950},
5357 },
5358
5359 {
5360 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005361 .name = "EN25S32",
5362 .bustype = BUS_SPI,
5363 .manufacture_id = EON_ID_NOPREFIX,
5364 .model_id = EON_EN25S32,
5365 .total_size = 4096,
5366 .page_size = 256,
5367 /* OTP: 512B total; enter 0x3A */
5368 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5369 .tested = TEST_UNTESTED,
5370 .probe = probe_spi_rdid,
5371 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005372 .block_erasers =
5373 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005374 {
5375 .eraseblocks = { {4 * 1024, 1024} },
5376 .block_erase = spi_block_erase_20,
5377 }, {
5378 .eraseblocks = { {32 * 1024, 128} },
5379 .block_erase = spi_block_erase_52,
5380 }, {
5381 .eraseblocks = { {64 * 1024, 64} },
5382 .block_erase = spi_block_erase_d8,
5383 }, {
5384 .eraseblocks = { {4096 * 1024, 1} },
5385 .block_erase = spi_block_erase_60,
5386 }, {
5387 .eraseblocks = { {4096 * 1024, 1} },
5388 .block_erase = spi_block_erase_c7,
5389 }
5390 },
5391 .printlock = spi_prettyprint_status_register_en25s_wp,
5392 .unlock = spi_disable_blockprotect_bp3_srwd,
5393 .write = spi_chip_write_256,
5394 .read = spi_chip_read,
5395 .voltage = {1650, 1950},
5396 },
5397
5398 {
5399 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005400 .name = "EN25S40",
5401 .bustype = BUS_SPI,
5402 .manufacture_id = EON_ID_NOPREFIX,
5403 .model_id = EON_EN25S40,
5404 .total_size = 512,
5405 .page_size = 256,
5406 /* OTP: 256B total; enter 0x3A */
5407 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5408 .tested = TEST_OK_PREW,
5409 .probe = probe_spi_rdid,
5410 .probe_timing = TIMING_ZERO,
5411 .block_erasers =
5412 {
5413 {
5414 .eraseblocks = { {4 * 1024, 128} },
5415 .block_erase = spi_block_erase_20,
5416 }, {
5417 .eraseblocks = { {64 * 1024, 8} },
5418 .block_erase = spi_block_erase_d8,
5419 }, {
5420 .eraseblocks = { {512 * 1024, 1} },
5421 .block_erase = spi_block_erase_60,
5422 }, {
5423 .eraseblocks = { {512 * 1024, 1} },
5424 .block_erase = spi_block_erase_c7,
5425 }
5426 },
5427 .printlock = spi_prettyprint_status_register_bp2_srwd,
5428 .unlock = spi_disable_blockprotect,
5429 .write = spi_chip_write_256,
5430 .read = spi_chip_read,
5431 .voltage = {1650, 1950},
5432 },
5433
5434 {
5435 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005436 .name = "EN25S64",
5437 .bustype = BUS_SPI,
5438 .manufacture_id = EON_ID_NOPREFIX,
5439 .model_id = EON_EN25S64,
5440 .total_size = 8192,
5441 .page_size = 256,
5442 /* OTP: 512B total; enter 0x3A */
5443 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Nikolai Artemievdf889fa2021-03-23 17:10:45 +11005444 .tested = TEST_OK_PREW,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005445 .probe = probe_spi_rdid,
5446 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005447 .block_erasers =
5448 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005449 {
5450 .eraseblocks = { {4 * 1024, 2048} },
5451 .block_erase = spi_block_erase_20,
5452 }, {
5453 .eraseblocks = { {64 * 1024, 128} },
5454 .block_erase = spi_block_erase_d8,
5455 }, {
5456 .eraseblocks = { {8192 * 1024, 1} },
5457 .block_erase = spi_block_erase_60,
5458 }, {
5459 .eraseblocks = { {8192 * 1024, 1} },
5460 .block_erase = spi_block_erase_c7,
5461 }
5462 },
5463 .printlock = spi_prettyprint_status_register_en25s_wp,
5464 .unlock = spi_disable_blockprotect_bp3_srwd,
5465 .write = spi_chip_write_256,
5466 .read = spi_chip_read,
5467 .voltage = {1650, 1950},
5468 },
5469
5470 {
5471 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005472 .name = "EN25S80",
5473 .bustype = BUS_SPI,
5474 .manufacture_id = EON_ID_NOPREFIX,
5475 .model_id = EON_EN25S80,
5476 .total_size = 1024,
5477 .page_size = 256,
5478 /* OTP: 256B total; enter 0x3A */
5479 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5480 .tested = TEST_UNTESTED,
5481 .probe = probe_spi_rdid,
5482 .probe_timing = TIMING_ZERO,
Russ Dill3cd5a122010-03-05 08:44:11 +00005483 .block_erasers =
5484 {
5485 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005486 .eraseblocks = { {4 * 1024, 256} },
5487 .block_erase = spi_block_erase_20,
5488 }, {
5489 .eraseblocks = { {64 * 1024, 16} },
5490 .block_erase = spi_block_erase_d8,
5491 }, {
5492 .eraseblocks = { {1024 * 1024, 1} },
5493 .block_erase = spi_block_erase_60,
5494 }, {
5495 .eraseblocks = { {1024 * 1024, 1} },
5496 .block_erase = spi_block_erase_c7,
5497 }
Russ Dill3cd5a122010-03-05 08:44:11 +00005498 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005499 .printlock = spi_prettyprint_status_register_bp2_srwd,
5500 .unlock = spi_disable_blockprotect,
5501 .write = spi_chip_write_256,
5502 .read = spi_chip_read,
5503 .voltage = {1650, 1950},
Russ Dill3cd5a122010-03-05 08:44:11 +00005504 },
5505
5506 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005507 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005508 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005509 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005510 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005511 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005512 .total_size = 256,
5513 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005514 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Alan Green4362e622019-08-26 15:02:12 +10005515 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005516 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005517 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005518 .block_erasers =
5519 {
5520 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005521 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005522 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005523 {8 * 1024, 2},
5524 {32 * 1024, 1},
5525 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005526 },
5527 .block_erase = erase_sector_jedec,
5528 }, {
5529 .eraseblocks = { {256 * 1024, 1} },
5530 .block_erase = erase_chip_block_jedec,
5531 },
5532 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005533 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005534 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005535 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005536 },
5537
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005538 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005539 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005540 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005541 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005542 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005543 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005544 .total_size = 256,
5545 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005546 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005547 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005548 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005549 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005550 .block_erasers =
5551 {
5552 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005553 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005554 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005555 {32 * 1024, 1},
5556 {8 * 1024, 2},
5557 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005558 },
5559 .block_erase = erase_sector_jedec,
5560 }, {
5561 .eraseblocks = { {256 * 1024, 1} },
5562 .block_erase = erase_chip_block_jedec,
5563 },
5564 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005565 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005566 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005567 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005568 },
5569
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005570 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005571 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005572 .name = "EN29F010",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005573 .bustype = BUS_PARALLEL,
5574 .manufacture_id = EON_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005575 .model_id = EON_EN29F010,
5576 .total_size = 128,
5577 .page_size = 128,
5578 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5579 .tested = TEST_OK_PRE,
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005580 .probe = probe_jedec,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005581 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005582 .block_erasers =
5583 {
5584 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005585 .eraseblocks = { {16 * 1024, 8} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005586 .block_erase = erase_sector_jedec,
5587 },
5588 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005589 .eraseblocks = { {128 * 1024, 1} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005590 .block_erase = erase_chip_block_jedec,
5591 },
5592 },
5593 .write = write_jedec_1,
5594 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005595 .voltage = {4500, 5500},
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005596 },
5597
5598 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005599 .vendor = "Eon",
5600 .name = "EN29GL064(A)B",
5601 .bustype = BUS_PARALLEL,
5602 .manufacture_id = EON_ID,
5603 .model_id = EON_EN29GL064B,
5604 .total_size = 8192,
5605 .page_size = 128 * 1024, /* actual page size is 16 */
5606 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5607 .tested = TEST_UNTESTED,
5608 .probe = probe_jedec_29gl,
5609 .probe_timing = TIMING_ZERO,
5610 .block_erasers =
5611 {
5612 {
5613 .eraseblocks = {
5614 {8 * 1024, 8},
5615 {64 * 1024, 127},
5616 },
5617 .block_erase = erase_sector_jedec,
5618 }, {
5619 .eraseblocks = { {8 * 1024 * 1024, 1} },
5620 .block_erase = erase_chip_block_jedec,
5621 },
5622 },
5623 .write = write_jedec_1,
5624 .read = read_memmapped,
5625 .voltage = {2700, 3600},
5626 },
5627
5628 {
5629 .vendor = "Eon",
5630 .name = "EN29GL064(A)T",
5631 .bustype = BUS_PARALLEL,
5632 .manufacture_id = EON_ID,
5633 .model_id = EON_EN29GL064T,
5634 .total_size = 8192,
5635 .page_size = 128 * 1024, /* actual page size is 16 */
5636 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5637 .tested = TEST_UNTESTED,
5638 .probe = probe_jedec_29gl,
5639 .probe_timing = TIMING_ZERO,
5640 .block_erasers =
5641 {
5642 {
5643 .eraseblocks = {
5644 {64 * 1024, 127},
5645 {8 * 1024, 8},
5646 },
5647 .block_erase = erase_sector_jedec,
5648 }, {
5649 .eraseblocks = { {8 * 1024 * 1024, 1} },
5650 .block_erase = erase_chip_block_jedec,
5651 },
5652 },
5653 .write = write_jedec_1,
5654 .read = read_memmapped,
5655 .voltage = {2700, 3600},
5656 },
5657
5658 {
5659 .vendor = "Eon",
5660 .name = "EN29GL064H/L",
5661 .bustype = BUS_PARALLEL,
5662 .manufacture_id = EON_ID,
5663 .model_id = EON_EN29GL064HL,
5664 .total_size = 8192,
5665 .page_size = 128 * 1024, /* actual page size is 16 */
5666 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5667 .tested = TEST_UNTESTED,
5668 .probe = probe_jedec_29gl,
5669 .probe_timing = TIMING_ZERO,
5670 .block_erasers =
5671 {
5672 {
5673 .eraseblocks = { {64 * 1024, 128} },
5674 .block_erase = erase_sector_jedec,
5675 }, {
5676 .eraseblocks = { {8 * 1024 * 1024, 1} },
5677 .block_erase = erase_chip_block_jedec,
5678 },
5679 },
5680 .write = write_jedec_1,
5681 .read = read_memmapped,
5682 .voltage = {2700, 3600},
5683 },
5684
5685 {
5686 .vendor = "Eon",
5687 .name = "EN29GL128",
5688 .bustype = BUS_PARALLEL,
5689 .manufacture_id = EON_ID,
5690 .model_id = EON_EN29GL128HL,
5691 .total_size = 16384,
5692 .page_size = 128 * 1024, /* actual page size is 16 */
5693 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5694 .tested = TEST_UNTESTED,
5695 .probe = probe_jedec_29gl,
5696 .probe_timing = TIMING_ZERO,
5697 .block_erasers =
5698 {
5699 {
5700 .eraseblocks = { {128 * 1024, 128} },
5701 .block_erase = erase_sector_jedec,
5702 }, {
5703 .eraseblocks = { {16 * 1024 * 1024, 1} },
5704 .block_erase = erase_chip_block_jedec,
5705 },
5706 },
5707 .write = write_jedec_1,
5708 .read = read_memmapped,
5709 .voltage = {2700, 3600},
5710 },
5711
5712 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005713 .vendor = "Eon",
5714 .name = "EN29LV040(A)",
5715 .bustype = BUS_PARALLEL,
5716 .manufacture_id = EON_ID,
5717 .model_id = EON_EN29LV040,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005718 .total_size = 512,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005719 .page_size = 4 * 1024,
5720 .tested = TEST_OK_PREW,
5721 .probe = probe_jedec,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005722 .probe_timing = TIMING_ZERO,
5723 .block_erasers =
5724 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005725 {
5726 .eraseblocks = { {64 * 1024, 8} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005727 .block_erase = erase_sector_jedec,
5728 },
5729 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005730 .eraseblocks = { {512 * 1024, 1} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005731 .block_erase = erase_chip_block_jedec,
5732 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005733 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005734 .write = write_jedec_1,
5735 .read = read_memmapped,
5736 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005737 },
5738
5739 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005740 .vendor = "Eon",
5741 .name = "EN29LV640B",
5742 .bustype = BUS_PARALLEL,
5743 .manufacture_id = EON_ID,
5744 .model_id = EON_EN29LV640B,
5745 .total_size = 8192,
5746 .page_size = 8192,
5747 .feature_bits = FEATURE_ADDR_SHIFTED,
5748 .tested = TEST_OK_PREW,
5749 .probe = probe_en29lv640b,
5750 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005751 .block_erasers =
5752 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005753 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005754 .eraseblocks = {
5755 {8 * 1024, 8},
5756 {64 * 1024, 127},
5757 },
5758 .block_erase = erase_block_jedec,
Stefan Tauner0be072c2016-03-13 15:16:30 +00005759 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005760 .eraseblocks = { {8 * 1024 * 1024, 1} },
5761 .block_erase = erase_chip_block_jedec,
5762 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005763 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005764 .write = write_en29lv640b,
5765 .read = read_memmapped,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005766 .voltage = {2700, 3600},
5767 },
5768
5769 {
Jakob Petersson0cf3e122019-02-18 01:55:43 +01005770 .vendor = "Fudan",
5771 .name = "FM25F005",
5772 .bustype = BUS_SPI,
5773 .manufacture_id = FUDAN_ID_NOPREFIX,
5774 .model_id = FUDAN_FM25F005,
5775 .total_size = 64,
5776 .page_size = 256,
5777 /* OTP: 256B total; enter 0x3A */
5778 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5779 .tested = TEST_UNTESTED,
5780 .probe = probe_spi_rdid,
5781 .probe_timing = TIMING_ZERO,
5782 .block_erasers = {
5783 {
5784 .eraseblocks = { {4 * 1024, 16} },
5785 .block_erase = spi_block_erase_20,
5786 }, {
5787 .eraseblocks = { {32 * 1024, 2} },
5788 .block_erase = spi_block_erase_52,
5789 }, {
5790 .eraseblocks = { {64 * 1024, 1} },
5791 .block_erase = spi_block_erase_d8,
5792 }, {
5793 .eraseblocks = { {64 * 1024, 1} },
5794 .block_erase = spi_block_erase_60,
5795 }, {
5796 .eraseblocks = { {64 * 1024, 1} },
5797 .block_erase = spi_block_erase_c7,
5798 }
5799 },
5800 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5801 .unlock = spi_disable_blockprotect_bp2_srwd,
5802 .write = spi_chip_write_256,
5803 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5804 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5805 },
5806
5807 {
5808 .vendor = "Fudan",
5809 .name = "FM25F01",
5810 .bustype = BUS_SPI,
5811 .manufacture_id = FUDAN_ID_NOPREFIX,
5812 .model_id = FUDAN_FM25F01,
5813 .total_size = 128,
5814 .page_size = 256,
5815 /* OTP: 256B total; enter 0x3A */
5816 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5817 .tested = TEST_UNTESTED,
5818 .probe = probe_spi_rdid,
5819 .probe_timing = TIMING_ZERO,
5820 .block_erasers = {
5821 {
5822 .eraseblocks = { {4 * 1024, 32} },
5823 .block_erase = spi_block_erase_20,
5824 }, {
5825 .eraseblocks = { {32 * 1024, 4} },
5826 .block_erase = spi_block_erase_52,
5827 }, {
5828 .eraseblocks = { {64 * 1024, 2} },
5829 .block_erase = spi_block_erase_d8,
5830 }, {
5831 .eraseblocks = { {128 * 1024, 1} },
5832 .block_erase = spi_block_erase_60,
5833 }, {
5834 .eraseblocks = { {128 * 1024, 1} },
5835 .block_erase = spi_block_erase_c7,
5836 }
5837 },
5838 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5839 .unlock = spi_disable_blockprotect_bp2_srwd,
5840 .write = spi_chip_write_256,
5841 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5842 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5843 },
5844
5845 {
5846 .vendor = "Fudan",
5847 .name = "FM25F02(A)",
5848 .bustype = BUS_SPI,
5849 .manufacture_id = FUDAN_ID_NOPREFIX,
5850 .model_id = FUDAN_FM25F02,
5851 .total_size = 256,
5852 .page_size = 256,
5853 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
5854 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5855 .tested = TEST_UNTESTED,
5856 .probe = probe_spi_rdid,
5857 .probe_timing = TIMING_ZERO,
5858 .block_erasers = {
5859 {
5860 .eraseblocks = { {4 * 1024, 64} },
5861 .block_erase = spi_block_erase_20,
5862 }, {
5863 .eraseblocks = { {32 * 1024, 8} },
5864 .block_erase = spi_block_erase_52,
5865 }, {
5866 .eraseblocks = { {64 * 1024, 4} },
5867 .block_erase = spi_block_erase_d8,
5868 }, {
5869 .eraseblocks = { {1024 * 256, 1} },
5870 .block_erase = spi_block_erase_60,
5871 }, {
5872 .eraseblocks = { {1024 * 256, 1} },
5873 .block_erase = spi_block_erase_c7,
5874 },
5875 },
5876 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5877 .unlock = spi_disable_blockprotect_bp2_srwd,
5878 .write = spi_chip_write_256,
5879 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5880 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5881 },
5882
5883 {
5884 .vendor = "Fudan",
5885 .name = "FM25F04(A)",
5886 .bustype = BUS_SPI,
5887 .manufacture_id = FUDAN_ID_NOPREFIX,
5888 .model_id = FUDAN_FM25F04,
5889 .total_size = 512,
5890 .page_size = 256,
5891 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
5892 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5893 .tested = TEST_UNTESTED,
5894 .probe = probe_spi_rdid,
5895 .probe_timing = TIMING_ZERO,
5896 .block_erasers = {
5897 {
5898 .eraseblocks = { {4 * 1024, 128} },
5899 .block_erase = spi_block_erase_20,
5900 }, {
5901 .eraseblocks = { {32 * 1024, 16} },
5902 .block_erase = spi_block_erase_52,
5903 }, {
5904 .eraseblocks = { {64 * 1024, 8} },
5905 .block_erase = spi_block_erase_d8,
5906 }, {
5907 .eraseblocks = { {1024 * 512, 1} },
5908 .block_erase = spi_block_erase_60,
5909 }, {
5910 .eraseblocks = { {1024 * 512, 1} },
5911 .block_erase = spi_block_erase_c7,
5912 },
5913 },
5914 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5915 .unlock = spi_disable_blockprotect_bp2_srwd,
5916 .write = spi_chip_write_256,
5917 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5918 .voltage = {2700, 3600},
5919 },
5920
5921 {
5922 .vendor = "Fudan",
5923 .name = "FM25Q08",
5924 .bustype = BUS_SPI,
5925 .manufacture_id = FUDAN_ID_NOPREFIX,
5926 .model_id = FUDAN_FM25Q08,
5927 .total_size = 1024,
5928 .page_size = 256,
5929 /* supports SFDP */
5930 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
5931 /* QPI enable 0x38, disable 0xFF */
5932 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5933 .tested = TEST_UNTESTED,
5934 .probe = probe_spi_rdid,
5935 .probe_timing = TIMING_ZERO,
5936 .block_erasers = {
5937 {
5938 .eraseblocks = { {4 * 1024, 256} },
5939 .block_erase = spi_block_erase_20,
5940 }, {
5941 .eraseblocks = { {32 * 1024, 32} },
5942 .block_erase = spi_block_erase_52,
5943 }, {
5944 .eraseblocks = { {64 * 1024, 16} },
5945 .block_erase = spi_block_erase_d8,
5946 }, {
5947 .eraseblocks = { {1024 * 1024, 1} },
5948 .block_erase = spi_block_erase_60,
5949 }, {
5950 .eraseblocks = { {1024 * 1024, 1} },
5951 .block_erase = spi_block_erase_c7,
5952 },
5953 },
5954 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
5955 .unlock = spi_disable_blockprotect_bp2_srwd,
5956 .write = spi_chip_write_256,
5957 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5958 .voltage = {2700, 3600},
5959 },
5960
5961 {
5962 .vendor = "Fudan",
5963 .name = "FM25Q16",
5964 .bustype = BUS_SPI,
5965 .manufacture_id = FUDAN_ID_NOPREFIX,
5966 .model_id = FUDAN_FM25Q16,
5967 .total_size = 2048,
5968 .page_size = 256,
5969 /* supports SFDP */
5970 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
5971 /* QPI enable 0x38, disable 0xFF */
5972 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5973 .tested = TEST_UNTESTED,
5974 .probe = probe_spi_rdid,
5975 .probe_timing = TIMING_ZERO,
5976 .block_erasers = {
5977 {
5978 .eraseblocks = { {4 * 1024, 512} },
5979 .block_erase = spi_block_erase_20,
5980 }, {
5981 .eraseblocks = { {32 * 1024, 64} },
5982 .block_erase = spi_block_erase_52,
5983 }, {
5984 .eraseblocks = { {64 * 1024, 32} },
5985 .block_erase = spi_block_erase_d8,
5986 }, {
5987 .eraseblocks = { {2 * 1024 * 1024, 1} },
5988 .block_erase = spi_block_erase_60,
5989 }, {
5990 .eraseblocks = { {2 * 1024 * 1024, 1} },
5991 .block_erase = spi_block_erase_c7,
5992 }
5993 },
5994 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
5995 .unlock = spi_disable_blockprotect_bp2_srwd,
5996 .write = spi_chip_write_256,
5997 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5998 .voltage = {2700, 3600},
5999 },
6000
6001 {
6002 .vendor = "Fudan",
6003 .name = "FM25Q32",
6004 .bustype = BUS_SPI,
6005 .manufacture_id = FUDAN_ID_NOPREFIX,
6006 .model_id = FUDAN_FM25Q32,
6007 .total_size = 4096,
6008 .page_size = 256,
6009 /* supports SFDP */
6010 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
6011 /* QPI enable 0x38, disable 0xFF */
6012 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6013 .tested = TEST_UNTESTED,
6014 .probe = probe_spi_rdid,
6015 .probe_timing = TIMING_ZERO,
6016 .block_erasers = {
6017 {
6018 .eraseblocks = { {4 * 1024, 1024} },
6019 .block_erase = spi_block_erase_20,
6020 }, {
6021 .eraseblocks = { {32 * 1024, 128} },
6022 .block_erase = spi_block_erase_52,
6023 }, {
6024 .eraseblocks = { {64 * 1024, 64} },
6025 .block_erase = spi_block_erase_d8,
6026 }, {
6027 .eraseblocks = { {4 * 1024 * 1024, 1} },
6028 .block_erase = spi_block_erase_60,
6029 }, {
6030 .eraseblocks = { {4 * 1024 * 1024, 1} },
6031 .block_erase = spi_block_erase_c7,
6032 },
6033 },
6034 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6035 .unlock = spi_disable_blockprotect_bp2_srwd,
6036 .write = spi_chip_write_256,
6037 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6038 .voltage = {2700, 3600},
6039 },
6040
6041 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006042 .vendor = "Fujitsu",
6043 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006044 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006045 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006046 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006047 .total_size = 512,
6048 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006049 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006050 .tested = TEST_UNTESTED,
6051 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006052 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006053 .block_erasers =
6054 {
6055 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006056 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006057 {16 * 1024, 1},
6058 {8 * 1024, 2},
6059 {32 * 1024, 1},
6060 {64 * 1024, 7},
6061 },
Sean Nelson35727f72010-01-28 23:55:12 +00006062 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006063 }, {
6064 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006065 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006066 },
6067 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006068 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006069 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006070 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006071 },
6072
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006073 {
6074 .vendor = "Fujitsu",
6075 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006076 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006077 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006078 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006079 .total_size = 512,
6080 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006081 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006082 .tested = TEST_UNTESTED,
6083 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006084 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006085 .block_erasers =
6086 {
6087 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006088 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006089 {64 * 1024, 7},
6090 {32 * 1024, 1},
6091 {8 * 1024, 2},
6092 {16 * 1024, 1},
6093 },
Sean Nelson35727f72010-01-28 23:55:12 +00006094 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006095 }, {
6096 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006097 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006098 },
6099 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006100 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006101 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006102 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006103 },
6104
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006105 {
Sean Nelson35727f72010-01-28 23:55:12 +00006106 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006107 .vendor = "Fujitsu",
6108 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006109 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006110 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006111 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006112 .total_size = 512,
6113 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006114 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006115 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006116 .probe = probe_jedec,
6117 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006118 .block_erasers =
6119 {
6120 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006121 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006122 {16 * 1024, 1},
6123 {8 * 1024, 2},
6124 {32 * 1024, 1},
6125 {64 * 1024, 7},
6126 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006127 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006128 }, {
6129 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006130 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006131 },
6132 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006133 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006134 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006135 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00006136 },
6137
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006138 {
6139 .vendor = "Fujitsu",
6140 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006141 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006142 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006143 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006144 .total_size = 512,
6145 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006146 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006147 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006148 .probe = probe_jedec,
6149 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006150 .block_erasers =
6151 {
6152 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006153 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006154 {64 * 1024, 7},
6155 {32 * 1024, 1},
6156 {8 * 1024, 2},
6157 {16 * 1024, 1},
6158 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006159 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006160 }, {
6161 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006162 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006163 },
6164 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006165 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006166 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006167 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00006168 },
6169
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006170 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006171 .vendor = "Fujitsu",
6172 .name = "MBM29LV160BE",
6173 .bustype = BUS_PARALLEL,
6174 .manufacture_id = FUJITSU_ID,
6175 .model_id = FUJITSU_MBM29LV160BE,
6176 .total_size = 2 * 1024,
6177 .page_size = 0,
6178 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6179 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006180 .probe = probe_jedec,
6181 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006182 .block_erasers =
6183 {
6184 {
6185 .eraseblocks = {
6186 {16 * 1024, 1},
6187 {8 * 1024, 2},
6188 {32 * 1024, 1},
6189 {64 * 1024, 31},
6190 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006191 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006192 }, {
6193 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006194 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006195 },
6196 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006197 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006198 .read = read_memmapped,
6199 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
6200 },
6201
6202 {
6203 .vendor = "Fujitsu",
6204 .name = "MBM29LV160TE",
6205 .bustype = BUS_PARALLEL,
6206 .manufacture_id = FUJITSU_ID,
6207 .model_id = FUJITSU_MBM29LV160TE,
6208 .total_size = 2 * 1024,
6209 .page_size = 0,
6210 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6211 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006212 .probe = probe_jedec,
6213 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006214 .block_erasers =
6215 {
6216 {
6217 .eraseblocks = {
6218 {64 * 1024, 31},
6219 {32 * 1024, 1},
6220 {8 * 1024, 2},
6221 {16 * 1024, 1},
6222 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006223 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006224 }, {
6225 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006226 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006227 },
6228 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006229 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006230 .read = read_memmapped,
6231 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
6232 },
6233
6234 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006235 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006236 .name = "GD25B128B/GD25Q128B",
Roman Titov95edc892015-04-03 21:29:04 +00006237 .bustype = BUS_SPI,
6238 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006239 .model_id = GIGADEVICE_GD25Q128,
6240 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006241 .page_size = 256,
6242 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6243 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006244 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006245 .probe = probe_spi_rdid,
6246 .probe_timing = TIMING_ZERO,
6247 .block_erasers =
6248 {
6249 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006250 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006251 .block_erase = spi_block_erase_20,
6252 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006253 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006254 .block_erase = spi_block_erase_52,
6255 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006256 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006257 .block_erase = spi_block_erase_d8,
6258 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006259 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006260 .block_erase = spi_block_erase_60,
6261 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006262 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006263 .block_erase = spi_block_erase_c7,
6264 }
6265 },
6266 .printlock = spi_prettyprint_status_register_bp4_srwd,
6267 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6268 .write = spi_chip_write_256,
6269 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10006270 .voltage = {2700, 3600},
Roman Titov95edc892015-04-03 21:29:04 +00006271 },
6272
6273 {
6274 .vendor = "GigaDevice",
Alan Green188127e2019-08-06 16:10:34 +10006275 .name = "GD25LQ128C/GD25LQ128D",
Roman Titov95edc892015-04-03 21:29:04 +00006276 .bustype = BUS_SPI,
6277 .manufacture_id = GIGADEVICE_ID,
Alan Green188127e2019-08-06 16:10:34 +10006278 .model_id = GIGADEVICE_GD25LQ128CD,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006279 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006280 .page_size = 256,
6281 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6282 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green813a7e22021-01-08 08:48:17 +11006283 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006284 .probe = probe_spi_rdid,
6285 .probe_timing = TIMING_ZERO,
6286 .block_erasers =
6287 {
6288 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006289 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006290 .block_erase = spi_block_erase_20,
6291 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006292 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006293 .block_erase = spi_block_erase_52,
6294 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006295 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006296 .block_erase = spi_block_erase_d8,
6297 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006298 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006299 .block_erase = spi_block_erase_60,
6300 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006301 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006302 .block_erase = spi_block_erase_c7,
6303 }
6304 },
6305 .printlock = spi_prettyprint_status_register_bp4_srwd,
6306 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6307 .write = spi_chip_write_256,
6308 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6309 .voltage = {1695, 1950},
6310 },
6311
6312 {
6313 .vendor = "GigaDevice",
6314 .name = "GD25LQ16",
6315 .bustype = BUS_SPI,
6316 .manufacture_id = GIGADEVICE_ID,
6317 .model_id = GIGADEVICE_GD25LQ16,
6318 .total_size = 2048,
6319 .page_size = 256,
6320 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6321 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6322 .tested = TEST_UNTESTED,
6323 .probe = probe_spi_rdid,
6324 .probe_timing = TIMING_ZERO,
6325 .block_erasers =
6326 {
6327 {
6328 .eraseblocks = { {4 * 1024, 512} },
6329 .block_erase = spi_block_erase_20,
6330 }, {
6331 .eraseblocks = { {32 * 1024, 64} },
6332 .block_erase = spi_block_erase_52,
6333 }, {
6334 .eraseblocks = { {64 * 1024, 32} },
6335 .block_erase = spi_block_erase_d8,
6336 }, {
6337 .eraseblocks = { {2 * 1024 * 1024, 1} },
6338 .block_erase = spi_block_erase_60,
6339 }, {
6340 .eraseblocks = { {2 * 1024 * 1024, 1} },
6341 .block_erase = spi_block_erase_c7,
6342 }
6343 },
6344 .printlock = spi_prettyprint_status_register_bp4_srwd,
6345 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6346 .write = spi_chip_write_256,
6347 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6348 .voltage = {1695, 1950},
6349 },
6350
6351 {
6352 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006353 .name = "GD25LQ32",
6354 .bustype = BUS_SPI,
6355 .manufacture_id = GIGADEVICE_ID,
6356 .model_id = GIGADEVICE_GD25LQ32,
6357 .total_size = 4096,
6358 .page_size = 256,
6359 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6360 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6361 .tested = TEST_OK_PREW,
6362 .probe = probe_spi_rdid,
6363 .probe_timing = TIMING_ZERO,
6364 .block_erasers =
6365 {
6366 {
6367 .eraseblocks = { {4 * 1024, 1024} },
6368 .block_erase = spi_block_erase_20,
6369 }, {
6370 .eraseblocks = { {32 * 1024, 128} },
6371 .block_erase = spi_block_erase_52,
6372 }, {
6373 .eraseblocks = { {64 * 1024, 64} },
6374 .block_erase = spi_block_erase_d8,
6375 }, {
6376 .eraseblocks = { {4 * 1024 * 1024, 1} },
6377 .block_erase = spi_block_erase_60,
6378 }, {
6379 .eraseblocks = { {4 * 1024 * 1024, 1} },
6380 .block_erase = spi_block_erase_c7,
6381 }
6382 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006383 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006384 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6385 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00006386 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6387 .voltage = {1695, 1950},
6388 },
6389
6390 {
6391 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006392 .name = "GD25LQ40",
6393 .bustype = BUS_SPI,
6394 .manufacture_id = GIGADEVICE_ID,
6395 .model_id = GIGADEVICE_GD25LQ40,
6396 .total_size = 512,
6397 .page_size = 256,
6398 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6399 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6400 .tested = TEST_UNTESTED,
6401 .probe = probe_spi_rdid,
6402 .probe_timing = TIMING_ZERO,
6403 .block_erasers =
6404 {
6405 {
6406 .eraseblocks = { {4 * 1024, 128} },
6407 .block_erase = spi_block_erase_20,
6408 }, {
6409 .eraseblocks = { {32 * 1024, 16} },
6410 .block_erase = spi_block_erase_52,
6411 }, {
6412 .eraseblocks = { {64 * 1024, 8} },
6413 .block_erase = spi_block_erase_d8,
6414 }, {
6415 .eraseblocks = { {512 * 1024, 1} },
6416 .block_erase = spi_block_erase_60,
6417 }, {
6418 .eraseblocks = { {512 * 1024, 1} },
6419 .block_erase = spi_block_erase_c7,
6420 }
6421 },
6422 .printlock = spi_prettyprint_status_register_bp4_srwd,
6423 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6424 .write = spi_chip_write_256,
6425 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6426 .voltage = {1695, 1950},
6427 },
6428
6429 {
6430 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00006431 .name = "GD25LQ64(B)",
6432 .bustype = BUS_SPI,
6433 .manufacture_id = GIGADEVICE_ID,
6434 .model_id = GIGADEVICE_GD25LQ64,
6435 .total_size = 8192,
6436 .page_size = 256,
6437 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6438 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00006439 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006440 .probe = probe_spi_rdid,
6441 .probe_timing = TIMING_ZERO,
6442 .block_erasers =
6443 {
6444 {
6445 .eraseblocks = { {4 * 1024, 2048} },
6446 .block_erase = spi_block_erase_20,
6447 }, {
6448 .eraseblocks = { {32 * 1024, 256} },
6449 .block_erase = spi_block_erase_52,
6450 }, {
6451 .eraseblocks = { {64 * 1024, 128} },
6452 .block_erase = spi_block_erase_d8,
6453 }, {
6454 .eraseblocks = { {8 * 1024 * 1024, 1} },
6455 .block_erase = spi_block_erase_60,
6456 }, {
6457 .eraseblocks = { {8 * 1024 * 1024, 1} },
6458 .block_erase = spi_block_erase_c7,
6459 }
6460 },
6461 .printlock = spi_prettyprint_status_register_bp4_srwd,
6462 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6463 .write = spi_chip_write_256,
6464 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6465 .voltage = {1695, 1950},
6466 },
6467
6468 {
6469 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006470 .name = "GD25LQ80",
Roman Titov95edc892015-04-03 21:29:04 +00006471 .bustype = BUS_SPI,
6472 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006473 .model_id = GIGADEVICE_GD25LQ80,
6474 .total_size = 1024,
Roman Titov95edc892015-04-03 21:29:04 +00006475 .page_size = 256,
6476 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6477 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6478 .tested = TEST_UNTESTED,
6479 .probe = probe_spi_rdid,
6480 .probe_timing = TIMING_ZERO,
6481 .block_erasers =
6482 {
6483 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006484 .eraseblocks = { {4 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006485 .block_erase = spi_block_erase_20,
6486 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006487 .eraseblocks = { {32 * 1024, 32} },
Roman Titov95edc892015-04-03 21:29:04 +00006488 .block_erase = spi_block_erase_52,
6489 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006490 .eraseblocks = { {64 * 1024, 16} },
Roman Titov95edc892015-04-03 21:29:04 +00006491 .block_erase = spi_block_erase_d8,
6492 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006493 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006494 .block_erase = spi_block_erase_60,
6495 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006496 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006497 .block_erase = spi_block_erase_c7,
6498 }
6499 },
6500 .printlock = spi_prettyprint_status_register_bp4_srwd,
6501 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6502 .write = spi_chip_write_256,
6503 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6504 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006505 },
6506
6507 {
6508 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006509 .name = "GD25Q10",
6510 .bustype = BUS_SPI,
6511 .manufacture_id = GIGADEVICE_ID,
6512 .model_id = GIGADEVICE_GD25Q10,
6513 .total_size = 128,
6514 .page_size = 256,
6515 .feature_bits = FEATURE_WRSR_WREN,
6516 .tested = TEST_UNTESTED,
6517 .probe = probe_spi_rdid,
6518 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006519 .block_erasers =
6520 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006521 {
6522 .eraseblocks = { {4 * 1024, 32} },
6523 .block_erase = spi_block_erase_20,
6524 }, {
6525 .eraseblocks = { {32 * 1024, 4} },
6526 .block_erase = spi_block_erase_52,
6527 }, {
6528 .eraseblocks = { {64 * 1024, 2} },
6529 .block_erase = spi_block_erase_d8,
6530 }, {
6531 .eraseblocks = { {128 * 1024, 1} },
6532 .block_erase = spi_block_erase_60,
6533 }, {
6534 .eraseblocks = { {128 * 1024, 1} },
6535 .block_erase = spi_block_erase_c7,
6536 }
6537 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006538 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006539 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6540 .write = spi_chip_write_256,
6541 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6542 .voltage = {2700, 3600},
6543 },
6544
6545 {
6546 .vendor = "GigaDevice",
Alan Green4f009122019-08-26 10:45:18 +10006547 .name = "GD25Q127C/GD25Q128C",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006548 .bustype = BUS_SPI,
6549 .manufacture_id = GIGADEVICE_ID,
6550 .model_id = GIGADEVICE_GD25Q128,
6551 .total_size = 16384,
6552 .page_size = 256,
6553 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6554 /* QPI: enable 0x38, disable 0xFF */
6555 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Angel Ponsbce364c2018-09-30 20:04:14 +02006556 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006557 .probe = probe_spi_rdid,
6558 .probe_timing = TIMING_ZERO,
6559 .block_erasers =
6560 {
6561 {
6562 .eraseblocks = { {4 * 1024, 4096} },
6563 .block_erase = spi_block_erase_20,
6564 }, {
6565 .eraseblocks = { {32 * 1024, 512} },
6566 .block_erase = spi_block_erase_52,
6567 }, {
6568 .eraseblocks = { {64 * 1024, 256} },
6569 .block_erase = spi_block_erase_d8,
6570 }, {
6571 .eraseblocks = { {16 * 1024 * 1024, 1} },
6572 .block_erase = spi_block_erase_60,
6573 }, {
6574 .eraseblocks = { {16 * 1024 * 1024, 1} },
6575 .block_erase = spi_block_erase_c7,
6576 }
6577 },
6578 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6579 .printlock = spi_prettyprint_status_register_bp4_srwd,
6580 .unlock = spi_disable_blockprotect_bp4_srwd,
6581 .write = spi_chip_write_256,
6582 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6583 .voltage = {2700, 3600},
6584 },
6585
6586 {
6587 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006588 .name = "GD25Q16(B)",
6589 .bustype = BUS_SPI,
6590 .manufacture_id = GIGADEVICE_ID,
6591 .model_id = GIGADEVICE_GD25Q16,
6592 .total_size = 2048,
6593 .page_size = 256,
6594 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6595 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6596 .tested = TEST_OK_PREW,
6597 .probe = probe_spi_rdid,
6598 .probe_timing = TIMING_ZERO,
6599 .block_erasers =
6600 {
6601 {
6602 .eraseblocks = { {4 * 1024, 512} },
6603 .block_erase = spi_block_erase_20,
6604 }, {
6605 .eraseblocks = { {32 * 1024, 64} },
6606 .block_erase = spi_block_erase_52,
6607 }, {
6608 .eraseblocks = { {64 * 1024, 32} },
6609 .block_erase = spi_block_erase_d8,
6610 }, {
6611 .eraseblocks = { {2 * 1024 * 1024, 1} },
6612 .block_erase = spi_block_erase_60,
6613 }, {
6614 .eraseblocks = { {2 * 1024 * 1024, 1} },
6615 .block_erase = spi_block_erase_c7,
6616 }
6617 },
6618 .printlock = spi_prettyprint_status_register_bp4_srwd,
6619 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6620 .write = spi_chip_write_256,
6621 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6622 .voltage = {2700, 3600},
6623 },
6624
6625 {
6626 .vendor = "GigaDevice",
6627 .name = "GD25Q20(B)",
6628 .bustype = BUS_SPI,
6629 .manufacture_id = GIGADEVICE_ID,
6630 .model_id = GIGADEVICE_GD25Q20,
6631 .total_size = 256,
6632 .page_size = 256,
6633 .feature_bits = FEATURE_WRSR_WREN,
6634 .tested = TEST_OK_PREW,
6635 .probe = probe_spi_rdid,
6636 .probe_timing = TIMING_ZERO,
6637 .block_erasers =
6638 {
6639 {
6640 .eraseblocks = { {4 * 1024, 64} },
6641 .block_erase = spi_block_erase_20,
6642 }, {
6643 .eraseblocks = { {32 * 1024, 8} },
6644 .block_erase = spi_block_erase_52,
6645 }, {
6646 .eraseblocks = { {64 * 1024, 4} },
6647 .block_erase = spi_block_erase_d8,
6648 }, {
6649 .eraseblocks = { {256 * 1024, 1} },
6650 .block_erase = spi_block_erase_60,
6651 }, {
6652 .eraseblocks = { {256 * 1024, 1} },
6653 .block_erase = spi_block_erase_c7,
6654 }
6655 },
6656 .printlock = spi_prettyprint_status_register_bp4_srwd,
6657 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6658 .write = spi_chip_write_256,
6659 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6660 .voltage = {2700, 3600},
6661 },
6662
6663 {
6664 .vendor = "GigaDevice",
Alan Green86fc9cf2019-08-26 15:02:12 +10006665 .name = "GD25Q256D",
6666 .bustype = BUS_SPI,
6667 .manufacture_id = GIGADEVICE_ID,
6668 .model_id = GIGADEVICE_GD25Q256D,
6669 .total_size = 32768,
6670 .page_size = 256,
6671 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Nikolai Artemieve64ef6d2021-03-23 17:15:40 +11006672 .tested = TEST_OK_PREW,
Alan Green86fc9cf2019-08-26 15:02:12 +10006673 .probe = probe_spi_rdid,
6674 .probe_timing = TIMING_ZERO,
6675 .block_erasers =
6676 {
6677 {
6678 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber5374dc32019-10-04 16:16:15 +02006679 .block_erase = spi_block_erase_21,
6680 }, {
6681 .eraseblocks = { {4 * 1024, 8192} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006682 .block_erase = spi_block_erase_20,
6683 }, {
6684 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber5374dc32019-10-04 16:16:15 +02006685 .block_erase = spi_block_erase_5c,
6686 }, {
6687 .eraseblocks = { {32 * 1024, 1024} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006688 .block_erase = spi_block_erase_52,
6689 }, {
6690 .eraseblocks = { {64 * 1024, 512} },
Nico Huber5374dc32019-10-04 16:16:15 +02006691 .block_erase = spi_block_erase_dc,
6692 }, {
6693 .eraseblocks = { {64 * 1024, 512} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006694 .block_erase = spi_block_erase_d8,
6695 }, {
6696 .eraseblocks = { {32 * 1024 * 1024, 1} },
6697 .block_erase = spi_block_erase_60,
6698 }, {
6699 .eraseblocks = { {32 * 1024 * 1024, 1} },
6700 .block_erase = spi_block_erase_c7,
6701 }
6702 },
6703 .printlock = spi_prettyprint_status_register_bp3_srwd,
6704 .unlock = spi_disable_blockprotect,
6705 .write = spi_chip_write_256,
6706 .read = spi_chip_read,
6707 .voltage = {2700, 3600},
6708 },
6709
6710 {
6711 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006712 .name = "GD25Q32(B)",
6713 .bustype = BUS_SPI,
6714 .manufacture_id = GIGADEVICE_ID,
6715 .model_id = GIGADEVICE_GD25Q32,
6716 .total_size = 4096,
6717 .page_size = 256,
6718 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6719 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6720 .tested = TEST_OK_PREW,
6721 .probe = probe_spi_rdid,
6722 .probe_timing = TIMING_ZERO,
6723 .block_erasers =
6724 {
6725 {
6726 .eraseblocks = { {4 * 1024, 1024} },
6727 .block_erase = spi_block_erase_20,
6728 }, {
6729 .eraseblocks = { {32 * 1024, 128} },
6730 .block_erase = spi_block_erase_52,
6731 }, {
6732 .eraseblocks = { {64 * 1024, 64} },
6733 .block_erase = spi_block_erase_d8,
6734 }, {
6735 .eraseblocks = { {4 * 1024 * 1024, 1} },
6736 .block_erase = spi_block_erase_60,
6737 }, {
6738 .eraseblocks = { {4 * 1024 * 1024, 1} },
6739 .block_erase = spi_block_erase_c7,
6740 }
6741 },
6742 .printlock = spi_prettyprint_status_register_bp4_srwd,
6743 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6744 .write = spi_chip_write_256,
6745 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6746 .voltage = {2700, 3600},
6747 },
6748
6749 {
6750 .vendor = "GigaDevice",
6751 .name = "GD25Q40(B)",
6752 .bustype = BUS_SPI,
6753 .manufacture_id = GIGADEVICE_ID,
6754 .model_id = GIGADEVICE_GD25Q40,
6755 .total_size = 512,
6756 .page_size = 256,
6757 .feature_bits = FEATURE_WRSR_WREN,
6758 .tested = TEST_UNTESTED,
6759 .probe = probe_spi_rdid,
6760 .probe_timing = TIMING_ZERO,
6761 .block_erasers =
6762 {
6763 {
6764 .eraseblocks = { {4 * 1024, 128} },
6765 .block_erase = spi_block_erase_20,
6766 }, {
6767 .eraseblocks = { {32 * 1024, 16} },
6768 .block_erase = spi_block_erase_52,
6769 }, {
6770 .eraseblocks = { {64 * 1024, 8} },
6771 .block_erase = spi_block_erase_d8,
6772 }, {
6773 .eraseblocks = { {512 * 1024, 1} },
6774 .block_erase = spi_block_erase_60,
6775 }, {
6776 .eraseblocks = { {512 * 1024, 1} },
6777 .block_erase = spi_block_erase_c7,
6778 }
6779 },
6780 .printlock = spi_prettyprint_status_register_bp4_srwd,
6781 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6782 .write = spi_chip_write_256,
6783 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6784 .voltage = {2700, 3600},
6785 },
6786
6787 {
6788 .vendor = "GigaDevice",
6789 .name = "GD25Q512",
6790 .bustype = BUS_SPI,
6791 .manufacture_id = GIGADEVICE_ID,
6792 .model_id = GIGADEVICE_GD25Q512,
6793 .total_size = 64,
6794 .page_size = 256,
6795 .feature_bits = FEATURE_WRSR_WREN,
6796 .tested = TEST_OK_PREW,
6797 .probe = probe_spi_rdid,
6798 .probe_timing = TIMING_ZERO,
6799 .block_erasers =
6800 {
6801 {
6802 .eraseblocks = { {4 * 1024, 16} },
6803 .block_erase = spi_block_erase_20,
6804 }, {
6805 .eraseblocks = { {32 * 1024, 2} },
6806 .block_erase = spi_block_erase_52,
6807 }, {
6808 .eraseblocks = { {64 * 1024, 1} },
6809 .block_erase = spi_block_erase_60,
6810 }, {
6811 .eraseblocks = { {64 * 1024, 1} },
6812 .block_erase = spi_block_erase_c7,
6813 }
6814 },
6815 .printlock = spi_prettyprint_status_register_bp4_srwd,
6816 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6817 .write = spi_chip_write_256,
6818 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6819 .voltage = {2700, 3600},
6820 },
6821
6822 {
6823 .vendor = "GigaDevice",
6824 .name = "GD25Q64(B)",
6825 .bustype = BUS_SPI,
6826 .manufacture_id = GIGADEVICE_ID,
6827 .model_id = GIGADEVICE_GD25Q64,
6828 .total_size = 8192,
6829 .page_size = 256,
6830 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6831 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6832 .tested = TEST_OK_PREW,
6833 .probe = probe_spi_rdid,
6834 .probe_timing = TIMING_ZERO,
6835 .block_erasers =
6836 {
6837 {
6838 .eraseblocks = { {4 * 1024, 2048} },
6839 .block_erase = spi_block_erase_20,
6840 }, {
6841 .eraseblocks = { {32 * 1024, 256} },
6842 .block_erase = spi_block_erase_52,
6843 }, {
6844 .eraseblocks = { {64 * 1024, 128} },
6845 .block_erase = spi_block_erase_d8,
6846 }, {
6847 .eraseblocks = { {8 * 1024 * 1024, 1} },
6848 .block_erase = spi_block_erase_60,
6849 }, {
6850 .eraseblocks = { {8 * 1024 * 1024, 1} },
6851 .block_erase = spi_block_erase_c7,
6852 }
6853 },
6854 .printlock = spi_prettyprint_status_register_bp4_srwd,
6855 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6856 .write = spi_chip_write_256,
6857 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6858 .voltage = {2700, 3600},
6859 },
6860
6861 {
6862 .vendor = "GigaDevice",
6863 .name = "GD25Q80(B)",
6864 .bustype = BUS_SPI,
6865 .manufacture_id = GIGADEVICE_ID,
6866 .model_id = GIGADEVICE_GD25Q80,
6867 .total_size = 1024,
6868 .page_size = 256,
6869 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6870 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6871 .tested = TEST_OK_PREW,
6872 .probe = probe_spi_rdid,
6873 .probe_timing = TIMING_ZERO,
6874 .block_erasers =
6875 {
6876 {
6877 .eraseblocks = { {4 * 1024, 256} },
6878 .block_erase = spi_block_erase_20,
6879 }, {
6880 .eraseblocks = { {32 * 1024, 32} },
6881 .block_erase = spi_block_erase_52,
6882 }, {
6883 .eraseblocks = { {64 * 1024, 16} },
6884 .block_erase = spi_block_erase_d8,
6885 }, {
6886 .eraseblocks = { {1024 * 1024, 1} },
6887 .block_erase = spi_block_erase_60,
6888 }, {
6889 .eraseblocks = { {1024 * 1024, 1} },
6890 .block_erase = spi_block_erase_c7,
6891 }
6892 },
6893 .printlock = spi_prettyprint_status_register_bp4_srwd,
6894 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6895 .write = spi_chip_write_256,
6896 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6897 .voltage = {2700, 3600},
6898 },
6899
6900 {
6901 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006902 .name = "GD25T80",
6903 .bustype = BUS_SPI,
6904 .manufacture_id = GIGADEVICE_ID,
6905 .model_id = GIGADEVICE_GD25T80,
6906 .total_size = 1024,
6907 .page_size = 256,
6908 /* OTP: 256B total; enter 0x3A */
6909 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6910 .tested = TEST_UNTESTED,
6911 .probe = probe_spi_rdid,
6912 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006913 .block_erasers =
6914 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006915 {
6916 .eraseblocks = { {4 * 1024, 256} },
6917 .block_erase = spi_block_erase_20,
6918 }, {
6919 .eraseblocks = { {64 * 1024, 16} },
6920 .block_erase = spi_block_erase_52,
6921 }, {
6922 .eraseblocks = { {64 * 1024, 16} },
6923 .block_erase = spi_block_erase_d8,
6924 }, {
6925 .eraseblocks = { {1024 * 1024, 1} },
6926 .block_erase = spi_block_erase_60,
6927 }, {
6928 .eraseblocks = { {1024 * 1024, 1} },
6929 .block_erase = spi_block_erase_c7,
6930 }
6931 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006932 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006933 .unlock = spi_disable_blockprotect,
6934 .write = spi_chip_write_256,
6935 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006936 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006937 },
6938
6939 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006940 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006941 .name = "GD25VQ16C",
6942 .bustype = BUS_SPI,
6943 .manufacture_id = GIGADEVICE_ID,
6944 .model_id = GIGADEVICE_GD25VQ16C,
6945 .total_size = 2 * 1024,
6946 .page_size = 256,
6947 /* Supports SFDP */
6948 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6949 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6950 .tested = TEST_UNTESTED,
6951 .probe = probe_spi_rdid,
6952 .probe_timing = TIMING_ZERO,
6953 .block_erasers =
6954 {
6955 {
6956 .eraseblocks = { { 4 * 1024, 512} },
6957 .block_erase = spi_block_erase_20,
6958 }, {
6959 .eraseblocks = { { 32 * 1024, 64} },
6960 .block_erase = spi_block_erase_52,
6961 }, {
6962 .eraseblocks = { { 64 * 1024, 32} },
6963 .block_erase = spi_block_erase_d8,
6964 }, {
6965 .eraseblocks = { {2 * 1024 * 1024, 1} },
6966 .block_erase = spi_block_erase_60,
6967 }, {
6968 .eraseblocks = { {2 * 1024 * 1024, 1} },
6969 .block_erase = spi_block_erase_c7,
6970 }
6971 },
6972 .printlock = spi_prettyprint_status_register_bp4_srwd,
6973 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6974 .write = spi_chip_write_256,
6975 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6976 .voltage = {2300, 3600},
6977 },
6978
6979 {
6980 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006981 .name = "GD25VQ21B",
6982 .bustype = BUS_SPI,
6983 .manufacture_id = GIGADEVICE_ID,
6984 .model_id = GIGADEVICE_GD25VQ21B,
6985 .total_size = 256,
6986 .page_size = 256,
6987 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6988 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6989 .tested = TEST_UNTESTED,
6990 .probe = probe_spi_rdid,
6991 .probe_timing = TIMING_ZERO,
6992 .block_erasers =
6993 {
6994 {
6995 .eraseblocks = { { 4 * 1024, 64} },
6996 .block_erase = spi_block_erase_20,
6997 }, {
6998 .eraseblocks = { { 32 * 1024, 8} },
6999 .block_erase = spi_block_erase_52,
7000 }, {
7001 .eraseblocks = { { 64 * 1024, 4} },
7002 .block_erase = spi_block_erase_d8,
7003 }, {
7004 .eraseblocks = { {256 * 1024, 1} },
7005 .block_erase = spi_block_erase_60,
7006 }, {
7007 .eraseblocks = { {256 * 1024, 1} },
7008 .block_erase = spi_block_erase_c7,
7009 }
7010 },
7011 .printlock = spi_prettyprint_status_register_bp4_srwd,
7012 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7013 .write = spi_chip_write_256,
7014 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7015 .voltage = {2300, 3600},
7016 },
7017
7018 {
7019 .vendor = "GigaDevice",
7020 .name = "GD25VQ40C",
7021 .bustype = BUS_SPI,
7022 .manufacture_id = GIGADEVICE_ID,
7023 .model_id = GIGADEVICE_GD25VQ41B,
7024 .total_size = 512,
7025 .page_size = 256,
7026 /* Supports SFDP */
7027 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7028 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7029 .tested = TEST_UNTESTED,
7030 .probe = probe_spi_rdid,
7031 .probe_timing = TIMING_ZERO,
7032 .block_erasers =
7033 {
7034 {
7035 .eraseblocks = { { 4 * 1024, 128} },
7036 .block_erase = spi_block_erase_20,
7037 }, {
7038 .eraseblocks = { { 32 * 1024, 16} },
7039 .block_erase = spi_block_erase_52,
7040 }, {
7041 .eraseblocks = { { 64 * 1024, 8} },
7042 .block_erase = spi_block_erase_d8,
7043 }, {
7044 .eraseblocks = { {512 * 1024, 1} },
7045 .block_erase = spi_block_erase_60,
7046 }, {
7047 .eraseblocks = { {512 * 1024, 1} },
7048 .block_erase = spi_block_erase_c7,
7049 }
7050 },
7051 .printlock = spi_prettyprint_status_register_bp4_srwd,
7052 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7053 .write = spi_chip_write_256,
7054 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7055 .voltage = {2300, 3600},
7056 },
7057
7058 {
7059 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007060 .name = "GD25VQ41B",
7061 .bustype = BUS_SPI,
7062 .manufacture_id = GIGADEVICE_ID,
7063 .model_id = GIGADEVICE_GD25VQ41B,
7064 .total_size = 512,
7065 .page_size = 256,
7066 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
7067 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007068 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007069 .probe = probe_spi_rdid,
7070 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007071 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007072 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00007073 {
7074 .eraseblocks = { { 4 * 1024, 128} },
7075 .block_erase = spi_block_erase_20,
7076 }, {
7077 .eraseblocks = { { 32 * 1024, 16} },
7078 .block_erase = spi_block_erase_52,
7079 }, {
7080 .eraseblocks = { { 64 * 1024, 8} },
7081 .block_erase = spi_block_erase_d8,
7082 }, {
7083 .eraseblocks = { {512 * 1024, 1} },
7084 .block_erase = spi_block_erase_60,
7085 }, {
7086 .eraseblocks = { {512 * 1024, 1} },
7087 .block_erase = spi_block_erase_c7,
7088 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007089 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007090 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007091 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7092 .write = spi_chip_write_256,
7093 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7094 .voltage = {2300, 3600},
7095 },
7096
7097 {
7098 .vendor = "GigaDevice",
7099 .name = "GD25VQ80C",
7100 .bustype = BUS_SPI,
7101 .manufacture_id = GIGADEVICE_ID,
7102 .model_id = GIGADEVICE_GD25VQ80C,
7103 .total_size = 1024,
7104 .page_size = 256,
7105 /* Supports SFDP */
7106 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7107 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7108 .tested = TEST_UNTESTED,
7109 .probe = probe_spi_rdid,
7110 .probe_timing = TIMING_ZERO,
7111 .block_erasers =
7112 {
7113 {
7114 .eraseblocks = { { 4 * 1024, 256} },
7115 .block_erase = spi_block_erase_20,
7116 }, {
7117 .eraseblocks = { { 32 * 1024, 32} },
7118 .block_erase = spi_block_erase_52,
7119 }, {
7120 .eraseblocks = { { 64 * 1024, 16} },
7121 .block_erase = spi_block_erase_d8,
7122 }, {
7123 .eraseblocks = { {1024 * 1024, 1} },
7124 .block_erase = spi_block_erase_60,
7125 }, {
7126 .eraseblocks = { {1024 * 1024, 1} },
7127 .block_erase = spi_block_erase_c7,
7128 }
7129 },
7130 .printlock = spi_prettyprint_status_register_bp4_srwd,
7131 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7132 .write = spi_chip_write_256,
7133 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7134 .voltage = {2300, 3600},
7135 },
7136
7137 {
Dino Li3214f582020-03-25 17:39:53 +08007138 .vendor = "GigaDevice",
7139 .name = "GD25WQ80E",
7140 .bustype = BUS_SPI,
7141 .manufacture_id = GIGADEVICE_ID,
7142 .model_id = GIGADEVICE_GD25WQ80E,
7143 .total_size = 1024,
7144 .page_size = 256,
7145 .feature_bits = FEATURE_WRSR_WREN,
7146 .tested = TEST_OK_PREW,
7147 .probe = probe_spi_rdid,
7148 .probe_timing = TIMING_ZERO,
7149 .block_erasers =
7150 {
7151 {
7152 .eraseblocks = { {4 * 1024, 256} },
7153 .block_erase = spi_block_erase_20,
7154 }, {
7155 .eraseblocks = { {32 * 1024, 32} },
7156 .block_erase = spi_block_erase_52,
7157 }, {
7158 .eraseblocks = { {64 * 1024, 16} },
7159 .block_erase = spi_block_erase_d8,
7160 }, {
7161 .eraseblocks = { {1 * 1024 * 1024, 1} },
7162 .block_erase = spi_block_erase_60,
7163 }, {
7164 .eraseblocks = { {1 * 1024 * 1024, 1} },
7165 .block_erase = spi_block_erase_c7,
7166 }
7167 },
7168 .printlock = spi_prettyprint_status_register_bp4_srwd,
7169 .unlock = spi_disable_blockprotect_bp4_srwd,
7170 .write = spi_chip_write_256,
7171 .read = spi_chip_read,
7172 .voltage = {1650, 3600},
7173 },
7174
7175 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007176 .vendor = "Hyundai",
7177 .name = "HY29F002B",
7178 .bustype = BUS_PARALLEL,
7179 .manufacture_id = HYUNDAI_ID,
7180 .model_id = HYUNDAI_HY29F002B,
7181 .total_size = 256,
7182 .page_size = 256 * 1024,
7183 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007184 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007185 .probe = probe_jedec,
7186 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007187 .block_erasers =
7188 {
7189 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007190 .eraseblocks = {
7191 {16 * 1024, 1},
7192 {8 * 1024, 2},
7193 {32 * 1024, 1},
7194 {64 * 1024, 3},
7195 },
7196 .block_erase = erase_sector_jedec,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007197 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007198 .eraseblocks = { {256 * 1024, 1} },
7199 .block_erase = erase_chip_block_jedec,
7200 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007201 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007202 .write = write_jedec_1,
7203 .read = read_memmapped,
7204 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007205 },
7206
7207 {
David Borgc96a8bd2010-06-21 16:12:22 +00007208 .vendor = "Hyundai",
7209 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007210 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00007211 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007212 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00007213 .total_size = 256,
7214 .page_size = 256 * 1024,
7215 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007216 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00007217 .probe = probe_jedec,
7218 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7219 .block_erasers =
7220 {
7221 {
7222 .eraseblocks = {
7223 {64 * 1024, 3},
7224 {32 * 1024, 1},
7225 {8 * 1024, 2},
7226 {16 * 1024, 1},
7227 },
7228 .block_erase = erase_sector_jedec,
7229 }, {
7230 .eraseblocks = { {256 * 1024, 1} },
7231 .block_erase = erase_chip_block_jedec,
7232 },
7233 },
7234 .write = write_jedec_1,
7235 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007236 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00007237 },
7238
7239 {
7240 .vendor = "Hyundai",
Joshua Roysf1324e02010-09-16 00:51:51 +00007241 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007242 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007243 .manufacture_id = HYUNDAI_ID,
7244 .model_id = HYUNDAI_HY29F040A,
7245 .total_size = 512,
7246 .page_size = 64 * 1024,
7247 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7248 .tested = TEST_UNTESTED,
7249 .probe = probe_jedec,
7250 .probe_timing = TIMING_ZERO,
7251 .block_erasers =
7252 {
7253 {
7254 .eraseblocks = { {64 * 1024, 8} },
7255 .block_erase = erase_sector_jedec,
7256 }, {
7257 .eraseblocks = { {512 * 1024, 1} },
7258 .block_erase = erase_chip_block_jedec,
7259 },
7260 },
7261 .write = write_jedec_1,
7262 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007263 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00007264 },
7265
7266 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007267 .vendor = "ISSI",
Angel Pons2ef47f32018-09-30 16:47:30 +02007268 .name = "IS25LP064",
7269 .bustype = BUS_SPI,
7270 .manufacture_id = ISSI_ID_SPI,
7271 .model_id = ISSI_IS25LP064,
7272 .total_size = 8192,
7273 .page_size = 256,
7274 /* OTP: 1024B total; read 0x48; write 0x42 */
7275 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7276 .tested = TEST_UNTESTED,
7277 .probe = probe_spi_rdid,
7278 .probe_timing = TIMING_ZERO,
7279 .block_erasers =
7280 {
7281 {
7282 .eraseblocks = { {4 * 1024, 2048} },
7283 .block_erase = spi_block_erase_20,
7284 }, {
7285 .eraseblocks = { {4 * 1024, 2048} },
7286 .block_erase = spi_block_erase_d7,
7287 }, {
7288 .eraseblocks = { {32 * 1024, 256} },
7289 .block_erase = spi_block_erase_52,
7290 }, {
7291 .eraseblocks = { {64 * 1024, 128} },
7292 .block_erase = spi_block_erase_d8,
7293 }, {
7294 .eraseblocks = { {8 * 1024 * 1024, 1} },
7295 .block_erase = spi_block_erase_60,
7296 }, {
7297 .eraseblocks = { {8 * 1024 * 1024, 1} },
7298 .block_erase = spi_block_erase_c7,
7299 }
7300 },
7301 .unlock = spi_disable_blockprotect,
7302 .write = spi_chip_write_256,
7303 .read = spi_chip_read,
7304 .voltage = {2300, 3600},
7305 },
7306
7307 {
7308 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007309 .name = "IS25LP128",
7310 .bustype = BUS_SPI,
7311 .manufacture_id = ISSI_ID_SPI,
7312 .model_id = ISSI_IS25LP128,
7313 .total_size = 16384,
7314 .page_size = 256,
7315 /* OTP: 1024B total; read 0x48; write 0x42 */
7316 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7317 .tested = TEST_OK_PREW,
7318 .probe = probe_spi_rdid,
7319 .probe_timing = TIMING_ZERO,
7320 .block_erasers =
7321 {
7322 {
7323 .eraseblocks = { {4 * 1024, 4096} },
7324 .block_erase = spi_block_erase_20,
7325 }, {
7326 .eraseblocks = { {4 * 1024, 4096} },
7327 .block_erase = spi_block_erase_d7,
7328 }, {
7329 .eraseblocks = { {32 * 1024, 512} },
7330 .block_erase = spi_block_erase_52,
7331 }, {
7332 .eraseblocks = { {64 * 1024, 256} },
7333 .block_erase = spi_block_erase_d8,
7334 }, {
7335 .eraseblocks = { {16 * 1024 * 1024, 1} },
7336 .block_erase = spi_block_erase_60,
7337 }, {
7338 .eraseblocks = { {16 * 1024 * 1024, 1} },
7339 .block_erase = spi_block_erase_c7,
7340 }
7341 },
7342 .unlock = spi_disable_blockprotect,
7343 .write = spi_chip_write_256,
7344 .read = spi_chip_read,
7345 .voltage = {2300, 3600},
7346 },
7347
7348 {
7349 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007350 .name = "IS25LP256",
7351 .bustype = BUS_SPI,
7352 .manufacture_id = ISSI_ID_SPI,
7353 .model_id = ISSI_IS25LP256,
7354 .total_size = 32768,
7355 .page_size = 256,
7356 /* supports SFDP */
7357 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7358 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7359 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7360 .tested = TEST_OK_PREW,
7361 .probe = probe_spi_rdid,
7362 .probe_timing = TIMING_ZERO,
7363 .block_erasers =
7364 {
7365 {
7366 .eraseblocks = { {4 * 1024, 8192} },
7367 .block_erase = spi_block_erase_21,
7368 }, {
7369 .eraseblocks = { {4 * 1024, 8192} },
7370 .block_erase = spi_block_erase_20,
7371 /* could also use spi_block_erase_d7 */
7372 }, {
7373 .eraseblocks = { {32 * 1024, 1024} },
7374 .block_erase = spi_block_erase_5c,
7375 }, {
7376 .eraseblocks = { {32 * 1024, 1024} },
7377 .block_erase = spi_block_erase_52,
7378 }, {
7379 .eraseblocks = { {64 * 1024, 512} },
7380 .block_erase = spi_block_erase_dc,
7381 }, {
7382 .eraseblocks = { {64 * 1024, 512} },
7383 .block_erase = spi_block_erase_d8,
7384 }, {
7385 .eraseblocks = { {32 * 1024 * 1024, 1} },
7386 .block_erase = spi_block_erase_60,
7387 }, {
7388 .eraseblocks = { {32 * 1024 * 1024, 1} },
7389 .block_erase = spi_block_erase_c7,
7390 }
7391 },
7392 .unlock = spi_disable_blockprotect,
7393 .write = spi_chip_write_256,
7394 .read = spi_chip_read,
7395 .voltage = {2300, 3600},
7396 },
7397
7398 {
7399 .vendor = "ISSI",
Nico Huberb27b8d12018-10-02 20:46:21 +02007400 .name = "IS25WP032",
7401 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007402 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007403 .model_id = ISSI_IS25WP032,
7404 .total_size = 4096,
7405 .page_size = 256,
7406 /* OTP: 1024B total; read 0x48; write 0x42 */
7407 /* QPI enable 0x35, disable 0xF5 */
7408 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7409 .tested = TEST_UNTESTED,
7410 .probe = probe_spi_rdid,
7411 .probe_timing = TIMING_ZERO,
7412 .block_erasers =
7413 {
7414 {
7415 .eraseblocks = { {4 * 1024, 1024} },
7416 .block_erase = spi_block_erase_20,
7417 }, {
7418 .eraseblocks = { {4 * 1024, 1024} },
7419 .block_erase = spi_block_erase_d7,
7420 }, {
7421 .eraseblocks = { {32 * 1024, 128} },
7422 .block_erase = spi_block_erase_52,
7423 }, {
7424 .eraseblocks = { {64 * 1024, 64} },
7425 .block_erase = spi_block_erase_d8,
7426 }, {
7427 .eraseblocks = { {4 * 1024 * 1024, 1} },
7428 .block_erase = spi_block_erase_60,
7429 }, {
7430 .eraseblocks = { {4 * 1024 * 1024, 1} },
7431 .block_erase = spi_block_erase_c7,
7432 }
7433 },
7434 .unlock = spi_disable_blockprotect,
7435 .write = spi_chip_write_256,
7436 .read = spi_chip_read,
7437 .voltage = {1650, 1950},
7438 },
7439
7440 {
7441 .vendor = "ISSI",
7442 .name = "IS25WP064",
7443 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007444 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007445 .model_id = ISSI_IS25WP064,
7446 .total_size = 8192,
7447 .page_size = 256,
7448 /* OTP: 1024B total; read 0x48; write 0x42 */
7449 /* QPI enable 0x35, disable 0xF5 */
7450 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7451 .tested = TEST_OK_PREW,
7452 .probe = probe_spi_rdid,
7453 .probe_timing = TIMING_ZERO,
7454 .block_erasers =
7455 {
7456 {
7457 .eraseblocks = { {4 * 1024, 2048} },
7458 .block_erase = spi_block_erase_20,
7459 }, {
7460 .eraseblocks = { {4 * 1024, 2048} },
7461 .block_erase = spi_block_erase_d7,
7462 }, {
7463 .eraseblocks = { {32 * 1024, 256} },
7464 .block_erase = spi_block_erase_52,
7465 }, {
7466 .eraseblocks = { {64 * 1024, 128} },
7467 .block_erase = spi_block_erase_d8,
7468 }, {
7469 .eraseblocks = { {8 * 1024 * 1024, 1} },
7470 .block_erase = spi_block_erase_60,
7471 }, {
7472 .eraseblocks = { {8 * 1024 * 1024, 1} },
7473 .block_erase = spi_block_erase_c7,
7474 }
7475 },
7476 .unlock = spi_disable_blockprotect,
7477 .write = spi_chip_write_256,
7478 .read = spi_chip_read,
7479 .voltage = {1650, 1950},
7480 },
7481
7482 {
7483 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007484 .name = "IS25WP128",
7485 .bustype = BUS_SPI,
7486 .manufacture_id = ISSI_ID_SPI,
7487 .model_id = ISSI_IS25WP128,
7488 .total_size = 16384,
7489 .page_size = 256,
7490 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huberb27b8d12018-10-02 20:46:21 +02007491 /* QPI enable 0x35, disable 0xF5 */
7492 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks3083ed92017-05-02 13:25:56 -07007493 .tested = TEST_OK_PREW,
7494 .probe = probe_spi_rdid,
7495 .probe_timing = TIMING_ZERO,
7496 .block_erasers =
7497 {
7498 {
7499 .eraseblocks = { {4 * 1024, 4096} },
7500 .block_erase = spi_block_erase_20,
7501 }, {
7502 .eraseblocks = { {4 * 1024, 4096} },
7503 .block_erase = spi_block_erase_d7,
7504 }, {
7505 .eraseblocks = { {32 * 1024, 512} },
7506 .block_erase = spi_block_erase_52,
7507 }, {
7508 .eraseblocks = { {64 * 1024, 256} },
7509 .block_erase = spi_block_erase_d8,
7510 }, {
7511 .eraseblocks = { {16 * 1024 * 1024, 1} },
7512 .block_erase = spi_block_erase_60,
7513 }, {
7514 .eraseblocks = { {16 * 1024 * 1024, 1} },
7515 .block_erase = spi_block_erase_c7,
7516 }
7517 },
7518 .unlock = spi_disable_blockprotect,
7519 .write = spi_chip_write_256,
7520 .read = spi_chip_read,
7521 .voltage = {1650, 1950},
7522 },
7523
7524 {
7525 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007526 .name = "IS25WP256",
7527 .bustype = BUS_SPI,
7528 .manufacture_id = ISSI_ID_SPI,
7529 .model_id = ISSI_IS25WP256,
7530 .total_size = 32768,
7531 .page_size = 256,
7532 /* supports SFDP */
7533 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7534 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7535 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7536 .tested = TEST_OK_PREW,
7537 .probe = probe_spi_rdid,
7538 .probe_timing = TIMING_ZERO,
7539 .block_erasers =
7540 {
7541 {
7542 .eraseblocks = { {4 * 1024, 8192} },
7543 .block_erase = spi_block_erase_21,
7544 }, {
7545 .eraseblocks = { {4 * 1024, 8192} },
7546 .block_erase = spi_block_erase_20,
7547 /* could also use spi_block_erase_d7 */
7548 }, {
7549 .eraseblocks = { {32 * 1024, 1024} },
7550 .block_erase = spi_block_erase_5c,
7551 }, {
7552 .eraseblocks = { {32 * 1024, 1024} },
7553 .block_erase = spi_block_erase_52,
7554 }, {
7555 .eraseblocks = { {64 * 1024, 512} },
7556 .block_erase = spi_block_erase_dc,
7557 }, {
7558 .eraseblocks = { {64 * 1024, 512} },
7559 .block_erase = spi_block_erase_d8,
7560 }, {
7561 .eraseblocks = { {32 * 1024 * 1024, 1} },
7562 .block_erase = spi_block_erase_60,
7563 }, {
7564 .eraseblocks = { {32 * 1024 * 1024, 1} },
7565 .block_erase = spi_block_erase_c7,
7566 }
7567 },
7568 .unlock = spi_disable_blockprotect,
7569 .write = spi_chip_write_256,
7570 .read = spi_chip_read,
7571 .voltage = {1650, 1950},
7572 },
7573
7574 {
7575 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007576 .name = "IS29GL064B",
7577 .bustype = BUS_PARALLEL,
7578 .manufacture_id = ISSI_ID,
7579 .model_id = ISSI_PMC_IS29GL064B,
7580 .total_size = 8192,
7581 .page_size = 128 * 1024, /* actual page size is 16 */
7582 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7583 .tested = TEST_UNTESTED,
7584 .probe = probe_jedec_29gl,
7585 .probe_timing = TIMING_ZERO,
7586 .block_erasers =
7587 {
7588 {
7589 .eraseblocks = {
7590 {8 * 1024, 8},
7591 {64 * 1024, 127},
7592 },
7593 .block_erase = erase_sector_jedec,
7594 }, {
7595 .eraseblocks = { {8 * 1024 * 1024, 1} },
7596 .block_erase = erase_chip_block_jedec,
7597 },
7598 },
7599 .write = write_jedec_1,
7600 .read = read_memmapped,
7601 .voltage = {2700, 3600},
7602 },
7603
7604 {
7605 .vendor = "ISSI",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007606 .name = "IS29GL064H/L",
7607 .bustype = BUS_PARALLEL,
7608 .manufacture_id = ISSI_ID,
7609 .model_id = ISSI_PMC_IS29GL064HL,
7610 .total_size = 8192,
7611 .page_size = 128 * 1024, /* actual page size is 16 */
7612 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7613 .tested = TEST_UNTESTED,
7614 .probe = probe_jedec_29gl,
7615 .probe_timing = TIMING_ZERO,
7616 .block_erasers =
7617 {
7618 {
7619 .eraseblocks = { {64 * 1024, 128} },
7620 .block_erase = erase_sector_jedec,
7621 }, {
7622 .eraseblocks = { {8 * 1024 * 1024, 1} },
7623 .block_erase = erase_chip_block_jedec,
7624 },
7625 },
7626 .write = write_jedec_1,
7627 .read = read_memmapped,
7628 .voltage = {2700, 3600},
7629 },
7630
7631 {
7632 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007633 .name = "IS29GL064T",
7634 .bustype = BUS_PARALLEL,
7635 .manufacture_id = ISSI_ID,
7636 .model_id = ISSI_PMC_IS29GL064T,
7637 .total_size = 8192,
7638 .page_size = 128 * 1024, /* actual page size is 16 */
7639 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7640 .tested = TEST_UNTESTED,
7641 .probe = probe_jedec_29gl,
7642 .probe_timing = TIMING_ZERO,
7643 .block_erasers =
7644 {
7645 {
7646 .eraseblocks = {
7647 {64 * 1024, 127},
7648 {8 * 1024, 8},
7649 },
7650 .block_erase = erase_sector_jedec,
7651 }, {
7652 .eraseblocks = { {8 * 1024 * 1024, 1} },
7653 .block_erase = erase_chip_block_jedec,
7654 },
7655 },
7656 .write = write_jedec_1,
7657 .read = read_memmapped,
7658 .voltage = {2700, 3600},
7659 },
7660
7661 {
7662 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007663 .name = "IS29GL128H/L",
7664 .bustype = BUS_PARALLEL,
7665 .manufacture_id = ISSI_ID,
7666 .model_id = ISSI_PMC_IS29GL128HL,
7667 .total_size = 16384,
7668 .page_size = 128 * 1024, /* actual page size is 16 */
7669 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7670 .tested = TEST_UNTESTED,
7671 .probe = probe_jedec_29gl,
7672 .probe_timing = TIMING_ZERO,
7673 .block_erasers =
7674 {
7675 {
7676 .eraseblocks = { {128 * 1024, 128} },
7677 .block_erase = erase_sector_jedec,
7678 }, {
7679 .eraseblocks = { {16 * 1024 * 1024, 1} },
7680 .block_erase = erase_chip_block_jedec,
7681 },
7682 },
7683 .write = write_jedec_1,
7684 .read = read_memmapped,
7685 .voltage = {2700, 3600},
7686 },
7687
7688 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007689 .vendor = "Intel",
7690 .name = "25F160S33B8",
7691 .bustype = BUS_SPI,
7692 .manufacture_id = INTEL_ID,
7693 .model_id = INTEL_25F160S33B8,
7694 .total_size = 2048,
7695 .page_size = 256,
7696 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7697 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7698 .tested = TEST_UNTESTED,
7699 .probe = probe_spi_rdid,
7700 .probe_timing = TIMING_ZERO,
7701 .block_erasers =
7702 {
7703 {
7704 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7705 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7706 * have no effect on the memory contents, but sets a flag in the SR.
7707 .eraseblocks = {
7708 {8 * 1024, 8},
7709 {64 * 1024, 31} // inaccessible
7710 },
7711 .block_erase = spi_block_erase_40,
7712 }, { */
7713 .eraseblocks = { {64 * 1024, 32} },
7714 .block_erase = spi_block_erase_d8,
7715 }, {
7716 .eraseblocks = { {2 * 1024 * 1024, 1} },
7717 .block_erase = spi_block_erase_c7,
7718 }
7719 },
7720 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7721 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7722 .write = spi_chip_write_256,
7723 .read = spi_chip_read, /* also fast read 0x0B */
7724 .voltage = {2700, 3600},
7725 },
7726
7727 {
7728 .vendor = "Intel",
7729 .name = "25F160S33T8",
7730 .bustype = BUS_SPI,
7731 .manufacture_id = INTEL_ID,
7732 .model_id = INTEL_25F160S33T8,
7733 .total_size = 2048,
7734 .page_size = 256,
7735 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7736 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7737 .tested = TEST_UNTESTED,
7738 .probe = probe_spi_rdid,
7739 .probe_timing = TIMING_ZERO,
7740 .block_erasers =
7741 {
7742 {
7743 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7744 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7745 * have no effect on the memory contents, but sets a flag in the SR.
7746 .eraseblocks = {
7747 {64 * 1024, 31}, // inaccessible
7748 {8 * 1024, 8}
7749 },
7750 .block_erase = spi_block_erase_40,
7751 }, { */
7752 .eraseblocks = { {64 * 1024, 32} },
7753 .block_erase = spi_block_erase_d8,
7754 }, {
7755 .eraseblocks = { {2 * 1024 * 1024, 1} },
7756 .block_erase = spi_block_erase_c7,
7757 }
7758 },
7759 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7760 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7761 .write = spi_chip_write_256,
7762 .read = spi_chip_read, /* also fast read 0x0B */
7763 .voltage = {2700, 3600},
7764 },
7765
7766 {
7767 .vendor = "Intel",
7768 .name = "25F320S33B8",
7769 .bustype = BUS_SPI,
7770 .manufacture_id = INTEL_ID,
7771 .model_id = INTEL_25F320S33B8,
7772 .total_size = 4096,
7773 .page_size = 256,
7774 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7775 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7776 .tested = TEST_UNTESTED,
7777 .probe = probe_spi_rdid,
7778 .probe_timing = TIMING_ZERO,
7779 .block_erasers =
7780 {
7781 {
7782 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7783 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7784 * have no effect on the memory contents, but sets a flag in the SR.
7785 .eraseblocks = {
7786 {8 * 1024, 8},
7787 {64 * 1024, 63} // inaccessible
7788 },
7789 .block_erase = spi_block_erase_40,
7790 }, { */
7791 .eraseblocks = { {64 * 1024, 64} },
7792 .block_erase = spi_block_erase_d8,
7793 }, {
7794 .eraseblocks = { {4 * 1024 * 1024, 1} },
7795 .block_erase = spi_block_erase_c7,
7796 }
7797 },
7798 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7799 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7800 .write = spi_chip_write_256,
7801 .read = spi_chip_read, /* also fast read 0x0B */
7802 .voltage = {2700, 3600},
7803 },
7804
7805 {
7806 .vendor = "Intel",
7807 .name = "25F320S33T8",
7808 .bustype = BUS_SPI,
7809 .manufacture_id = INTEL_ID,
7810 .model_id = INTEL_25F320S33T8,
7811 .total_size = 4096,
7812 .page_size = 256,
7813 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7814 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7815 .tested = TEST_UNTESTED,
7816 .probe = probe_spi_rdid,
7817 .probe_timing = TIMING_ZERO,
7818 .block_erasers =
7819 {
7820 {
7821 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7822 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7823 * have no effect on the memory contents, but sets a flag in the SR.
7824 .eraseblocks = {
7825 {64 * 1024, 63}, // inaccessible
7826 {8 * 1024, 8}
7827 },
7828 .block_erase = spi_block_erase_40,
7829 }, { */
7830 .eraseblocks = { {64 * 1024, 64} },
7831 .block_erase = spi_block_erase_d8,
7832 }, {
7833 .eraseblocks = { {4 * 1024 * 1024, 1} },
7834 .block_erase = spi_block_erase_c7,
7835 }
7836 },
7837 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7838 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7839 .write = spi_chip_write_256,
7840 .read = spi_chip_read, /* also fast read 0x0B */
7841 .voltage = {2700, 3600},
7842 },
7843
7844 {
7845 .vendor = "Intel",
7846 .name = "25F640S33B8",
7847 .bustype = BUS_SPI,
7848 .manufacture_id = INTEL_ID,
7849 .model_id = INTEL_25F640S33B8,
7850 .total_size = 8192,
7851 .page_size = 256,
7852 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7853 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Zoltan HERPAIe0e8b2b2020-08-08 16:04:34 +02007854 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007855 .probe = probe_spi_rdid,
7856 .probe_timing = TIMING_ZERO,
7857 .block_erasers =
7858 {
7859 {
7860 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7861 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7862 * have no effect on the memory contents, but sets a flag in the SR.
7863 .eraseblocks = {
7864 {8 * 1024, 8},
7865 {64 * 1024, 127} // inaccessible
7866 },
7867 .block_erase = spi_block_erase_40,
7868 }, { */
7869 .eraseblocks = { {64 * 1024, 128} },
7870 .block_erase = spi_block_erase_d8,
7871 }, {
7872 .eraseblocks = { {8 * 1024 * 1024, 1} },
7873 .block_erase = spi_block_erase_c7,
7874 }
7875 },
7876 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7877 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7878 .write = spi_chip_write_256,
7879 .read = spi_chip_read, /* also fast read 0x0B */
7880 .voltage = {2700, 3600},
7881 },
7882
7883 {
7884 .vendor = "Intel",
7885 .name = "25F640S33T8",
7886 .bustype = BUS_SPI,
7887 .manufacture_id = INTEL_ID,
7888 .model_id = INTEL_25F640S33T8,
7889 .total_size = 8192,
7890 .page_size = 256,
7891 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7892 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7893 .tested = TEST_UNTESTED,
7894 .probe = probe_spi_rdid,
7895 .probe_timing = TIMING_ZERO,
7896 .block_erasers =
7897 {
7898 {
7899 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7900 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7901 * have no effect on the memory contents, but sets a flag in the SR.
7902 .eraseblocks = {
7903 {64 * 1024, 127}, // inaccessible
7904 {8 * 1024, 8}
7905 },
7906 .block_erase = spi_block_erase_40,
7907 }, { */
7908 .eraseblocks = { {64 * 1024, 128} },
7909 .block_erase = spi_block_erase_d8,
7910 }, {
7911 .eraseblocks = { {8 * 1024 * 1024, 1} },
7912 .block_erase = spi_block_erase_c7,
7913 }
7914 },
7915 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7916 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7917 .write = spi_chip_write_256,
7918 .read = spi_chip_read, /* also fast read 0x0B */
7919 .voltage = {2700, 3600},
7920 },
7921
7922 {
7923 .vendor = "Intel",
7924 .name = "28F001BN/BX-B",
7925 .bustype = BUS_PARALLEL,
7926 .manufacture_id = INTEL_ID,
7927 .model_id = INTEL_28F001B,
7928 .total_size = 128,
7929 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
7930 .tested = TEST_UNTESTED,
7931 .probe = probe_jedec,
7932 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7933 .block_erasers =
7934 {
7935 {
7936 .eraseblocks = {
7937 {8 * 1024, 1},
7938 {4 * 1024, 2},
7939 {112 * 1024, 1},
7940 },
7941 .block_erase = erase_block_82802ab,
7942 },
7943 },
7944 .write = write_82802ab,
7945 .read = read_memmapped,
7946 .voltage = {4500, 5500},
7947 },
7948
7949 {
7950 .vendor = "Intel",
7951 .name = "28F001BN/BX-T",
7952 .bustype = BUS_PARALLEL,
7953 .manufacture_id = INTEL_ID,
7954 .model_id = INTEL_28F001T,
7955 .total_size = 128,
7956 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
7957 .tested = TEST_OK_PREW,
7958 .probe = probe_jedec,
7959 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7960 .block_erasers =
7961 {
7962 {
7963 .eraseblocks = {
7964 {112 * 1024, 1},
7965 {4 * 1024, 2},
7966 {8 * 1024, 1},
7967 },
7968 .block_erase = erase_block_82802ab,
7969 },
7970 },
7971 .write = write_82802ab,
7972 .read = read_memmapped,
7973 .voltage = {4500, 5500},
7974 },
7975
7976 {
7977 .vendor = "Intel",
7978 .name = "28F002BC/BL/BV/BX-T",
7979 .bustype = BUS_PARALLEL,
7980 .manufacture_id = INTEL_ID,
7981 .model_id = INTEL_28F002T,
7982 .total_size = 256,
7983 .page_size = 256 * 1024,
7984 .tested = TEST_OK_PRE,
7985 .probe = probe_82802ab,
7986 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7987 .block_erasers =
7988 {
7989 {
7990 .eraseblocks = {
7991 {128 * 1024, 1},
7992 {96 * 1024, 1},
7993 {8 * 1024, 2},
7994 {16 * 1024, 1},
7995 },
7996 .block_erase = erase_block_82802ab,
7997 },
7998 },
7999 .write = write_82802ab,
8000 .read = read_memmapped,
8001 },
8002
8003 {
8004 .vendor = "Intel",
8005 .name = "28F004B5/BE/BV/BX-B",
8006 .bustype = BUS_PARALLEL,
8007 .manufacture_id = INTEL_ID,
8008 .model_id = INTEL_28F004B,
8009 .total_size = 512,
8010 .page_size = 128 * 1024, /* maximal block size */
8011 .tested = TEST_UNTESTED,
8012 .probe = probe_82802ab,
8013 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8014 .block_erasers =
8015 {
8016 {
8017 .eraseblocks = {
8018 {16 * 1024, 1},
8019 {8 * 1024, 2},
8020 {96 * 1024, 1},
8021 {128 * 1024, 3},
8022 },
8023 .block_erase = erase_block_82802ab,
8024 },
8025 },
8026 .write = write_82802ab,
8027 .read = read_memmapped,
8028 },
8029
8030 {
8031 .vendor = "Intel",
8032 .name = "28F004B5/BE/BV/BX-T",
8033 .bustype = BUS_PARALLEL,
8034 .manufacture_id = INTEL_ID,
8035 .model_id = INTEL_28F004T,
8036 .total_size = 512,
8037 .page_size = 128 * 1024, /* maximal block size */
8038 .tested = TEST_UNTESTED,
8039 .probe = probe_82802ab,
8040 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8041 .block_erasers =
8042 {
8043 {
8044 .eraseblocks = {
8045 {128 * 1024, 3},
8046 {96 * 1024, 1},
8047 {8 * 1024, 2},
8048 {16 * 1024, 1},
8049 },
8050 .block_erase = erase_block_82802ab,
8051 },
8052 },
8053 .write = write_82802ab,
8054 .read = read_memmapped,
8055 },
8056
8057 {
8058 .vendor = "Intel",
8059 .name = "28F008S3/S5/SC",
8060 .bustype = BUS_PARALLEL,
8061 .manufacture_id = INTEL_ID,
8062 .model_id = INTEL_28F004S3,
8063 .total_size = 512,
8064 .page_size = 256,
8065 .tested = TEST_UNTESTED,
8066 .probe = probe_82802ab,
8067 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8068 .block_erasers =
8069 {
8070 {
8071 .eraseblocks = { {64 * 1024, 8} },
8072 .block_erase = erase_block_82802ab,
8073 },
8074 },
8075 .unlock = unlock_28f004s5,
8076 .write = write_82802ab,
8077 .read = read_memmapped,
8078 },
8079
8080 {
8081 .vendor = "Intel",
8082 .name = "28F400BV/BX/CE/CV-B",
8083 .bustype = BUS_PARALLEL,
8084 .manufacture_id = INTEL_ID,
8085 .model_id = INTEL_28F400B,
8086 .total_size = 512,
8087 .page_size = 128 * 1024, /* maximal block size */
8088 .feature_bits = FEATURE_ADDR_SHIFTED,
8089 .tested = TEST_UNTESTED,
8090 .probe = probe_82802ab,
8091 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8092 .block_erasers =
8093 {
8094 {
8095 .eraseblocks = {
8096 {16 * 1024, 1},
8097 {8 * 1024, 2},
8098 {96 * 1024, 1},
8099 {128 * 1024, 3},
8100 },
8101 .block_erase = erase_block_82802ab,
8102 },
8103 },
8104 .write = write_82802ab,
8105 .read = read_memmapped,
8106 },
8107
8108 {
8109 .vendor = "Intel",
8110 .name = "28F400BV/BX/CE/CV-T",
8111 .bustype = BUS_PARALLEL,
8112 .manufacture_id = INTEL_ID,
8113 .model_id = INTEL_28F400T,
8114 .total_size = 512,
8115 .page_size = 128 * 1024, /* maximal block size */
8116 .feature_bits = FEATURE_ADDR_SHIFTED,
8117 .tested = TEST_UNTESTED,
8118 .probe = probe_82802ab,
8119 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8120 .block_erasers =
8121 {
8122 {
8123 .eraseblocks = {
8124 {128 * 1024, 3},
8125 {96 * 1024, 1},
8126 {8 * 1024, 2},
8127 {16 * 1024, 1},
8128 },
8129 .block_erase = erase_block_82802ab,
8130 },
8131 },
8132 .write = write_82802ab,
8133 .read = read_memmapped,
8134 },
8135
8136 {
8137 .vendor = "Intel",
8138 .name = "82802AB",
8139 .bustype = BUS_FWH,
8140 .manufacture_id = INTEL_ID,
8141 .model_id = INTEL_82802AB,
8142 .total_size = 512,
8143 .page_size = 64 * 1024,
8144 .feature_bits = FEATURE_REGISTERMAP,
Alan Green88552572019-07-24 13:56:06 +10008145 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008146 .probe = probe_82802ab,
8147 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8148 .block_erasers =
8149 {
8150 {
8151 .eraseblocks = { {64 * 1024, 8} },
8152 .block_erase = erase_block_82802ab,
8153 },
8154 },
8155 .unlock = unlock_regspace2_uniform_64k,
8156 .write = write_82802ab,
8157 .read = read_memmapped,
8158 .voltage = {3000, 3600},
8159 },
8160
8161 {
8162 .vendor = "Intel",
8163 .name = "82802AC",
8164 .bustype = BUS_FWH,
8165 .manufacture_id = INTEL_ID,
8166 .model_id = INTEL_82802AC,
8167 .total_size = 1024,
8168 .page_size = 64 * 1024,
8169 .feature_bits = FEATURE_REGISTERMAP,
8170 .tested = TEST_OK_PR,
8171 .probe = probe_82802ab,
8172 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8173 .block_erasers =
8174 {
8175 {
8176 .eraseblocks = { {64 * 1024, 16} },
8177 .block_erase = erase_block_82802ab,
8178 },
8179 },
8180 .unlock = unlock_regspace2_uniform_64k,
8181 .write = write_82802ab,
8182 .read = read_memmapped,
8183 .voltage = {3000, 3600},
8184 },
8185
8186 {
8187 .vendor = "Macronix",
8188 .name = "MX23L12854",
8189 .bustype = BUS_SPI,
8190 .manufacture_id = MACRONIX_ID,
8191 .model_id = MACRONIX_MX23L12854,
8192 .total_size = 16384,
8193 .page_size = 256,
8194 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8195 .probe = probe_spi_rdid,
8196 .probe_timing = TIMING_ZERO,
8197 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
8198 .read = spi_chip_read, /* Fast read (0x0B) supported */
8199 .voltage = {3000, 3600},
8200 },
8201
8202 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008203 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008204 .name = "MX23L1654",
8205 .bustype = BUS_SPI,
8206 .manufacture_id = MACRONIX_ID,
8207 .model_id = MACRONIX_MX23L1654,
8208 .total_size = 2048,
8209 .page_size = 256,
8210 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8211 .probe = probe_spi_rdid,
8212 .probe_timing = TIMING_ZERO,
8213 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
8214 .read = spi_chip_read, /* Fast read (0x0B) supported */
8215 .voltage = {3000, 3600},
8216 },
8217
8218 {
8219 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008220 .name = "MX23L3254",
8221 .bustype = BUS_SPI,
8222 .manufacture_id = MACRONIX_ID,
8223 .model_id = MACRONIX_MX23L3254,
8224 .total_size = 4096,
8225 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00008226 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008227 .probe = probe_spi_rdid,
8228 .probe_timing = TIMING_ZERO,
8229 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
8230 .read = spi_chip_read, /* Fast read (0x0B) supported */
8231 .voltage = {3000, 3600},
8232 },
8233
8234 {
8235 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008236 .name = "MX23L6454",
8237 .bustype = BUS_SPI,
8238 .manufacture_id = MACRONIX_ID,
8239 .model_id = MACRONIX_MX23L6454,
8240 .total_size = 8192,
8241 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008242 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00008243 .probe = probe_spi_rdid,
8244 .probe_timing = TIMING_ZERO,
8245 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
8246 .read = spi_chip_read, /* Fast read (0x0B) supported */
8247 .voltage = {3000, 3600},
8248 },
8249
8250 {
8251 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00008252 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008253 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008254 .manufacture_id = MACRONIX_ID,
8255 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008256 .total_size = 128,
8257 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008258 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00008259 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00008260 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008261 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008262 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008263 .block_erasers =
8264 {
8265 {
8266 .eraseblocks = { {4 * 1024, 32} },
8267 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008268 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008269 .eraseblocks = { {64 * 1024, 2} },
8270 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008271 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008272 .eraseblocks = { {128 * 1024, 1} },
8273 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008274 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008275 .eraseblocks = { {128 * 1024, 1} },
8276 .block_erase = spi_block_erase_c7,
8277 },
8278 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008279 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008280 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008281 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008282 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008283 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008284 },
8285
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008286 {
8287 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008288 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008289 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008290 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008291 .model_id = MACRONIX_MX25L12805D,
8292 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008293 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008294 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8295 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008296 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008297 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008298 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008299 .block_erasers =
8300 {
8301 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008302 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008303 .block_erase = spi_block_erase_20,
8304 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008305 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008306 .block_erase = spi_block_erase_d8,
8307 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008308 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008309 .block_erase = spi_block_erase_60,
8310 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008311 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008312 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008313 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008314 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008315 .printlock = spi_prettyprint_status_register_bp3_srwd,
8316 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008317 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008318 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008319 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008320 },
8321
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008322 {
8323 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008324 .name = "MX25L12835F/MX25L12845E/MX25L12865E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008325 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008326 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008327 .model_id = MACRONIX_MX25L12805D,
8328 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008329 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008330 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8331 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner8179be52011-06-04 13:13:34 +00008332 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008333 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008334 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008335 .block_erasers =
8336 {
8337 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008338 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008339 .block_erase = spi_block_erase_20,
8340 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008341 .eraseblocks = { {32 * 1024, 512} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008342 .block_erase = spi_block_erase_52,
8343 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008344 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008345 .block_erase = spi_block_erase_d8,
8346 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008347 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008348 .block_erase = spi_block_erase_60,
8349 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008350 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008351 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008352 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008353 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008354 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8355 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8356 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008357 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008358 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008359 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008360 },
8361
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008362 {
8363 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008364 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008365 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008366 .manufacture_id = MACRONIX_ID,
8367 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008368 .total_size = 2048,
8369 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008370 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00008371 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008372 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008373 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008374 .block_erasers =
8375 {
8376 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008377 .eraseblocks = { {64 * 1024, 32} },
8378 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008379 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008380 .eraseblocks = { {64 * 1024, 32} },
8381 .block_erase = spi_block_erase_d8,
8382 }, {
8383 .eraseblocks = { {2 * 1024 * 1024, 1} },
8384 .block_erase = spi_block_erase_60,
8385 }, {
8386 .eraseblocks = { {2 * 1024 * 1024, 1} },
8387 .block_erase = spi_block_erase_c7,
8388 },
8389 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008390 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00008391 .unlock = spi_disable_blockprotect,
8392 .write = spi_chip_write_256,
8393 .read = spi_chip_read, /* Fast read (0x0B) supported */
8394 .voltage = {2700, 3600},
8395 },
8396
8397 {
8398 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008399 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008400 .bustype = BUS_SPI,
8401 .manufacture_id = MACRONIX_ID,
8402 .model_id = MACRONIX_MX25L1605,
8403 .total_size = 2048,
8404 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008405 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008406 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8407 .tested = TEST_OK_PREW,
8408 .probe = probe_spi_rdid,
8409 .probe_timing = TIMING_ZERO,
8410 .block_erasers =
8411 {
8412 {
8413 .eraseblocks = { {4 * 1024, 512} },
8414 .block_erase = spi_block_erase_20,
8415 }, {
8416 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008417 .block_erase = spi_block_erase_52,
8418 }, {
8419 .eraseblocks = { {64 * 1024, 32} },
8420 .block_erase = spi_block_erase_d8,
8421 }, {
8422 .eraseblocks = { {2 * 1024 * 1024, 1} },
8423 .block_erase = spi_block_erase_60,
8424 }, {
8425 .eraseblocks = { {2 * 1024 * 1024, 1} },
8426 .block_erase = spi_block_erase_c7,
8427 },
8428 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008429 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008430 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008431 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008432 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008433 .voltage = {2700, 3600},
8434 },
8435
8436 {
8437 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008438 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008439 .bustype = BUS_SPI,
8440 .manufacture_id = MACRONIX_ID,
8441 .model_id = MACRONIX_MX25L1605,
8442 .total_size = 2048,
8443 .page_size = 256,
8444 .feature_bits = FEATURE_WRSR_WREN,
8445 .tested = TEST_OK_PREW,
8446 .probe = probe_spi_rdid,
8447 .probe_timing = TIMING_ZERO,
8448 .block_erasers =
8449 {
8450 {
8451 .eraseblocks = { {4 * 1024, 512} },
8452 .block_erase = spi_block_erase_20,
8453 }, {
8454 .eraseblocks = { {64 * 1024, 32} },
8455 .block_erase = spi_block_erase_d8,
8456 }, {
8457 .eraseblocks = { {2 * 1024 * 1024, 1} },
8458 .block_erase = spi_block_erase_60,
8459 }, {
8460 .eraseblocks = { {2 * 1024 * 1024, 1} },
8461 .block_erase = spi_block_erase_c7,
8462 },
8463 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008464 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008465 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008466 .write = spi_chip_write_256,
8467 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008468 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008469 },
8470
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008471 {
8472 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008473 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008474 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008475 .manufacture_id = MACRONIX_ID,
8476 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008477 .total_size = 2048,
8478 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008479 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8480 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Ponsc2054872021-01-15 18:57:32 +01008481 .tested = TEST_OK_PREW,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008482 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008483 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008484 .block_erasers =
8485 {
8486 {
8487 .eraseblocks = { {4 * 1024, 512} },
8488 .block_erase = spi_block_erase_20,
8489 }, {
8490 .eraseblocks = { {64 * 1024, 32} },
8491 .block_erase = spi_block_erase_d8,
8492 }, {
8493 .eraseblocks = { {2 * 1024 * 1024, 1} },
8494 .block_erase = spi_block_erase_60,
8495 }, {
8496 .eraseblocks = { {2 * 1024 * 1024, 1} },
8497 .block_erase = spi_block_erase_c7,
8498 }
8499 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008500 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008501 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008502 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008503 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008504 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008505 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00008506
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008507 {
8508 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00008509 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008510 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008511 .manufacture_id = MACRONIX_ID,
8512 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008513 .total_size = 2048,
8514 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008515 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8516 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008517 .tested = TEST_UNTESTED,
8518 .probe = probe_spi_rdid,
8519 .probe_timing = TIMING_ZERO,
8520 .block_erasers =
8521 {
8522 {
8523 .eraseblocks = { {4 * 1024, 512} },
8524 .block_erase = spi_block_erase_20,
8525 }, {
8526 .eraseblocks = { {64 * 1024, 32} },
8527 .block_erase = spi_block_erase_d8,
8528 }, {
8529 .eraseblocks = { {2 * 1024 * 1024, 1} },
8530 .block_erase = spi_block_erase_60,
8531 }, {
8532 .eraseblocks = { {2 * 1024 * 1024, 1} },
8533 .block_erase = spi_block_erase_c7,
8534 }
8535 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008536 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008537 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008538 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008539 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008540 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00008541 },
8542
8543 {
8544 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008545 .name = "MX25L2005(C)/MX25L2006E",
8546 .bustype = BUS_SPI,
8547 .manufacture_id = MACRONIX_ID,
8548 .model_id = MACRONIX_MX25L2005,
8549 .total_size = 256,
8550 .page_size = 256,
8551 .feature_bits = FEATURE_WRSR_WREN,
8552 .tested = TEST_OK_PREW,
8553 .probe = probe_spi_rdid,
8554 .probe_timing = TIMING_ZERO,
8555 .block_erasers =
8556 {
8557 {
8558 .eraseblocks = { {4 * 1024, 64} },
8559 .block_erase = spi_block_erase_20,
8560 }, {
8561 .eraseblocks = { {64 * 1024, 4} },
8562 .block_erase = spi_block_erase_52,
8563 }, {
8564 .eraseblocks = { {64 * 1024, 4} },
8565 .block_erase = spi_block_erase_d8,
8566 }, {
8567 .eraseblocks = { {256 * 1024, 1} },
8568 .block_erase = spi_block_erase_60,
8569 }, {
8570 .eraseblocks = { {256 * 1024, 1} },
8571 .block_erase = spi_block_erase_c7,
8572 },
8573 },
8574 .printlock = spi_prettyprint_status_register_bp1_srwd,
8575 .unlock = spi_disable_blockprotect,
8576 .write = spi_chip_write_256,
8577 .read = spi_chip_read, /* Fast read (0x0B) supported */
8578 .voltage = {2700, 3600},
8579 },
8580
8581 {
8582 .vendor = "Macronix",
Alan Green03707302019-08-26 12:50:43 +10008583 .name = "MX25L25635F/MX25L25645G",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008584 .bustype = BUS_SPI,
8585 .manufacture_id = MACRONIX_ID,
8586 .model_id = MACRONIX_MX25L25635F,
8587 .total_size = 32768,
8588 .page_size = 256,
8589 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8590 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8591 .tested = TEST_OK_PREW,
8592 .probe = probe_spi_rdid,
8593 .probe_timing = TIMING_ZERO,
8594 .block_erasers =
8595 {
8596 {
8597 .eraseblocks = { {4 * 1024, 8192} },
8598 .block_erase = spi_block_erase_21,
8599 }, {
8600 .eraseblocks = { {4 * 1024, 8192} },
8601 .block_erase = spi_block_erase_20,
8602 }, {
8603 .eraseblocks = { {32 * 1024, 1024} },
8604 .block_erase = spi_block_erase_5c,
8605 }, {
8606 .eraseblocks = { {32 * 1024, 1024} },
8607 .block_erase = spi_block_erase_52,
8608 }, {
8609 .eraseblocks = { {64 * 1024, 512} },
8610 .block_erase = spi_block_erase_dc,
8611 }, {
8612 .eraseblocks = { {64 * 1024, 512} },
8613 .block_erase = spi_block_erase_d8,
8614 }, {
8615 .eraseblocks = { {32 * 1024 * 1024, 1} },
8616 .block_erase = spi_block_erase_60,
8617 }, {
8618 .eraseblocks = { {32 * 1024 * 1024, 1} },
8619 .block_erase = spi_block_erase_c7,
8620 }
8621 },
8622 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8623 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8624 .unlock = spi_disable_blockprotect_bp3_srwd,
8625 .write = spi_chip_write_256,
8626 .read = spi_chip_read, /* Fast read (0x0B) supported */
8627 .voltage = {2700, 3600},
8628 },
8629
8630 {
8631 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00008632 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008633 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008634 .manufacture_id = MACRONIX_ID,
8635 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008636 .total_size = 4096,
8637 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008638 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008639 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008640 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008641 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008642 .block_erasers =
8643 {
8644 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008645 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008646 .block_erase = spi_block_erase_20,
8647 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008648 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008649 .block_erase = spi_block_erase_d8,
8650 }, {
8651 .eraseblocks = { {4 * 1024 * 1024, 1} },
8652 .block_erase = spi_block_erase_60,
8653 }, {
8654 .eraseblocks = { {4 * 1024 * 1024, 1} },
8655 .block_erase = spi_block_erase_c7,
8656 },
8657 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008658 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008659 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008660 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008661 .read = spi_chip_read, /* Fast read (0x0B) supported */
8662 .voltage = {2700, 3600},
8663 },
8664
8665 {
8666 .vendor = "Macronix",
8667 .name = "MX25L3205D/MX25L3208D",
8668 .bustype = BUS_SPI,
8669 .manufacture_id = MACRONIX_ID,
8670 .model_id = MACRONIX_MX25L3205,
8671 .total_size = 4096,
8672 .page_size = 256,
8673 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8674 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8675 .tested = TEST_OK_PREW,
8676 .probe = probe_spi_rdid,
8677 .probe_timing = TIMING_ZERO,
8678 .block_erasers =
8679 {
8680 {
8681 .eraseblocks = { {4 * 1024, 1024} },
8682 .block_erase = spi_block_erase_20,
8683 }, {
8684 .eraseblocks = { {64 * 1024, 64} },
8685 .block_erase = spi_block_erase_d8,
8686 }, {
8687 .eraseblocks = { {4 * 1024 * 1024, 1} },
8688 .block_erase = spi_block_erase_60,
8689 }, {
8690 .eraseblocks = { {4 * 1024 * 1024, 1} },
8691 .block_erase = spi_block_erase_c7,
8692 },
8693 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008694 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008695 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008696 .write = spi_chip_write_256,
8697 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8698 .voltage = {2700, 3600},
8699 },
8700
8701 {
8702 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008703 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008704 .bustype = BUS_SPI,
8705 .manufacture_id = MACRONIX_ID,
8706 .model_id = MACRONIX_MX25L3205,
8707 .total_size = 4096,
8708 .page_size = 256,
8709 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8710 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8711 .tested = TEST_OK_PREW,
8712 .probe = probe_spi_rdid,
8713 .probe_timing = TIMING_ZERO,
8714 .block_erasers =
8715 {
8716 {
8717 .eraseblocks = { {4 * 1024, 1024} },
8718 .block_erase = spi_block_erase_20,
8719 }, {
8720 .eraseblocks = { {64 * 1024, 64} },
8721 .block_erase = spi_block_erase_d8,
8722 }, {
8723 .eraseblocks = { {64 * 1024, 64} },
8724 .block_erase = spi_block_erase_52,
8725 }, {
8726 .eraseblocks = { {4 * 1024 * 1024, 1} },
8727 .block_erase = spi_block_erase_60,
8728 }, {
8729 .eraseblocks = { {4 * 1024 * 1024, 1} },
8730 .block_erase = spi_block_erase_c7,
8731 },
8732 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008733 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008734 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008735 .write = spi_chip_write_256,
8736 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008737 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008738 },
8739
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008740 {
8741 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008742 .name = "MX25L3235D",
8743 .bustype = BUS_SPI,
8744 .manufacture_id = MACRONIX_ID,
8745 .model_id = MACRONIX_MX25L3235D,
8746 .total_size = 4096,
8747 .page_size = 256,
8748 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
8749 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8750 .tested = TEST_UNTESTED,
8751 .probe = probe_spi_rdid,
8752 .probe_timing = TIMING_ZERO,
8753 .block_erasers =
8754 {
8755 {
8756 .eraseblocks = { {4 * 1024, 1024} },
8757 .block_erase = spi_block_erase_20,
8758 }, {
8759 .eraseblocks = { {64 * 1024, 64} },
8760 .block_erase = spi_block_erase_d8,
8761 }, {
8762 .eraseblocks = { {4 * 1024 * 1024, 1} },
8763 .block_erase = spi_block_erase_60,
8764 }, {
8765 .eraseblocks = { {4 * 1024 * 1024, 1} },
8766 .block_erase = spi_block_erase_c7,
8767 }
8768 },
8769 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8770 .unlock = spi_disable_blockprotect_bp3_srwd,
8771 .write = spi_chip_write_256,
8772 .read = spi_chip_read,
8773 .voltage = {2700, 3600},
8774 },
8775
8776 {
8777 .vendor = "Macronix",
Nico Huberb6683e02021-04-21 13:04:29 +02008778 .name = "MX25L3233F/MX25L3273E",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008779 .bustype = BUS_SPI,
8780 .manufacture_id = MACRONIX_ID,
8781 .model_id = MACRONIX_MX25L3205,
8782 .total_size = 4096,
8783 .page_size = 256,
Nico Huber6e69e2b2021-04-21 13:03:13 +02008784 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008785 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008786 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008787 .probe = probe_spi_rdid,
8788 .probe_timing = TIMING_ZERO,
8789 .block_erasers =
8790 {
8791 {
8792 .eraseblocks = { {4 * 1024, 1024} },
8793 .block_erase = spi_block_erase_20,
8794 }, {
8795 .eraseblocks = { {32 * 1024, 128} },
8796 .block_erase = spi_block_erase_52,
8797 }, {
8798 .eraseblocks = { {64 * 1024, 64} },
8799 .block_erase = spi_block_erase_d8,
8800 }, {
8801 .eraseblocks = { {4 * 1024 * 1024, 1} },
8802 .block_erase = spi_block_erase_60,
8803 }, {
8804 .eraseblocks = { {4 * 1024 * 1024, 1} },
8805 .block_erase = spi_block_erase_c7,
8806 },
8807 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008808 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008809 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008810 .write = spi_chip_write_256,
8811 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Nico Huberb6683e02021-04-21 13:04:29 +02008812 .voltage = {2700, 3600}, /* 33F 2.65V..3.6V */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008813 },
8814
8815 {
8816 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008817 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008818 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008819 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008820 .model_id = MACRONIX_MX25L4005,
8821 .total_size = 512,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008822 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008823 .feature_bits = FEATURE_WRSR_WREN,
8824 .tested = TEST_OK_PREW,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008825 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008826 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008827 .block_erasers =
8828 {
8829 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008830 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00008831 .block_erase = spi_block_erase_20,
8832 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008833 .eraseblocks = { {64 * 1024, 8} },
8834 .block_erase = spi_block_erase_52,
8835 }, {
8836 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson54596372010-01-09 05:30:14 +00008837 .block_erase = spi_block_erase_d8,
8838 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008839 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008840 .block_erase = spi_block_erase_60,
8841 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008842 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008843 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008844 },
Sean Nelson54596372010-01-09 05:30:14 +00008845 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008846 .printlock = spi_prettyprint_status_register_bp2_srwd,
8847 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008848 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008849 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008850 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008851 },
8852
8853 {
8854 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008855 .name = "MX25L512(E)/MX25V512(C)",
8856 .bustype = BUS_SPI,
8857 .manufacture_id = MACRONIX_ID,
8858 .model_id = MACRONIX_MX25L512,
8859 .total_size = 64,
8860 .page_size = 256,
8861 /* MX25L512E supports SFDP */
8862 .feature_bits = FEATURE_WRSR_WREN,
8863 .tested = TEST_OK_PREW,
8864 .probe = probe_spi_rdid,
8865 .probe_timing = TIMING_ZERO,
8866 .block_erasers =
8867 {
8868 {
8869 .eraseblocks = { {4 * 1024, 16} },
8870 .block_erase = spi_block_erase_20,
8871 }, {
8872 .eraseblocks = { {64 * 1024, 1} },
8873 .block_erase = spi_block_erase_52,
8874 }, {
8875 .eraseblocks = { {64 * 1024, 1} },
8876 .block_erase = spi_block_erase_d8,
8877 }, {
8878 .eraseblocks = { {64 * 1024, 1} },
8879 .block_erase = spi_block_erase_60,
8880 }, {
8881 .eraseblocks = { {64 * 1024, 1} },
8882 .block_erase = spi_block_erase_c7,
8883 },
8884 },
8885 .printlock = spi_prettyprint_status_register_bp1_srwd,
8886 .unlock = spi_disable_blockprotect,
8887 .write = spi_chip_write_256,
8888 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
8889 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
8890 },
8891
8892 {
8893 .vendor = "Macronix",
Steve Markgraf7e6f3a72020-07-13 18:22:56 +02008894 .name = "MX25L5121E",
8895 .bustype = BUS_SPI,
8896 .manufacture_id = MACRONIX_ID,
8897 .model_id = MACRONIX_MX25L5121E,
8898 .total_size = 64,
8899 .page_size = 32,
8900 .feature_bits = FEATURE_WRSR_WREN,
8901 .tested = TEST_OK_PREW,
8902 .probe = probe_spi_rdid,
8903 .probe_timing = TIMING_ZERO,
8904 .block_erasers =
8905 {
8906 {
8907 .eraseblocks = { {4 * 1024, 16} },
8908 .block_erase = spi_block_erase_20,
8909 }, {
8910 .eraseblocks = { {64 * 1024, 1} },
8911 .block_erase = spi_block_erase_52,
8912 }, {
8913 .eraseblocks = { {64 * 1024, 1} },
8914 .block_erase = spi_block_erase_d8,
8915 }, {
8916 .eraseblocks = { {64 * 1024, 1} },
8917 .block_erase = spi_block_erase_60,
8918 }, {
8919 .eraseblocks = { {64 * 1024, 1} },
8920 .block_erase = spi_block_erase_c7,
8921 },
8922 },
8923 .printlock = spi_prettyprint_status_register_bp1_srwd,
8924 .unlock = spi_disable_blockprotect,
8925 .write = spi_chip_write_256,
8926 .read = spi_chip_read, /* Fast read (0x0B) supported */
8927 .voltage = {2700, 3600},
8928 },
8929
8930 {
8931 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008932 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008933 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008934 .manufacture_id = MACRONIX_ID,
8935 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008936 .total_size = 8192,
8937 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008938 /* Has an additional 512B EEPROM sector */
8939 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008940 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008941 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008942 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008943 .block_erasers =
8944 {
8945 {
8946 .eraseblocks = { {64 * 1024, 128} },
8947 .block_erase = spi_block_erase_20,
8948 }, {
8949 .eraseblocks = { {64 * 1024, 128} },
8950 .block_erase = spi_block_erase_d8,
8951 }, {
8952 .eraseblocks = { {8 * 1024 * 1024, 1} },
8953 .block_erase = spi_block_erase_60,
8954 }, {
8955 .eraseblocks = { {8 * 1024 * 1024, 1} },
8956 .block_erase = spi_block_erase_c7,
8957 }
8958 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008959 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008960 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008961 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008962 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008963 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008964 },
8965
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008966 {
8967 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008968 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00008969 .bustype = BUS_SPI,
8970 .manufacture_id = MACRONIX_ID,
8971 .model_id = MACRONIX_MX25L6405,
8972 .total_size = 8192,
8973 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008974 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008975 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8976 .tested = TEST_OK_PREW,
8977 .probe = probe_spi_rdid,
8978 .probe_timing = TIMING_ZERO,
8979 .block_erasers =
8980 {
8981 {
8982 .eraseblocks = { {4 * 1024, 2048} },
8983 .block_erase = spi_block_erase_20,
8984 }, {
8985 .eraseblocks = { {64 * 1024, 128} },
8986 .block_erase = spi_block_erase_d8,
8987 }, {
8988 .eraseblocks = { {8 * 1024 * 1024, 1} },
8989 .block_erase = spi_block_erase_60,
8990 }, {
8991 .eraseblocks = { {8 * 1024 * 1024, 1} },
8992 .block_erase = spi_block_erase_c7,
8993 }
8994 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008995 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008996 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008997 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008998 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00008999 .voltage = {2700, 3600},
9000 },
9001
9002 {
9003 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009004 .name = "MX25L6406E/MX25L6408E",
9005 .bustype = BUS_SPI,
9006 .manufacture_id = MACRONIX_ID,
9007 .model_id = MACRONIX_MX25L6405,
9008 .total_size = 8192,
9009 .page_size = 256,
9010 /* MX25L6406E supports SFDP */
9011 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
9012 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9013 .tested = TEST_OK_PREW,
9014 .probe = probe_spi_rdid,
9015 .probe_timing = TIMING_ZERO,
9016 .block_erasers =
9017 {
9018 {
9019 .eraseblocks = { {4 * 1024, 2048} },
9020 .block_erase = spi_block_erase_20,
9021 }, {
9022 .eraseblocks = { {64 * 1024, 128} },
9023 .block_erase = spi_block_erase_52,
9024 }, {
9025 .eraseblocks = { {64 * 1024, 128} },
9026 .block_erase = spi_block_erase_d8,
9027 }, {
9028 .eraseblocks = { {8 * 1024 * 1024, 1} },
9029 .block_erase = spi_block_erase_60,
9030 }, {
9031 .eraseblocks = { {8 * 1024 * 1024, 1} },
9032 .block_erase = spi_block_erase_c7,
9033 }
9034 },
9035 .printlock = spi_prettyprint_status_register_bp3_srwd,
9036 .unlock = spi_disable_blockprotect_bp3_srwd,
9037 .write = spi_chip_write_256,
9038 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
9039 .voltage = {2700, 3600},
9040 },
9041
9042 {
9043 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01009044 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00009045 .bustype = BUS_SPI,
9046 .manufacture_id = MACRONIX_ID,
9047 .model_id = MACRONIX_MX25L6405,
9048 .total_size = 8192,
9049 .page_size = 256,
9050 /* supports SFDP */
9051 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9052 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9053 .tested = TEST_OK_PREW,
9054 .probe = probe_spi_rdid,
9055 .probe_timing = TIMING_ZERO,
9056 .block_erasers =
9057 {
9058 {
9059 .eraseblocks = { {4 * 1024, 2048} },
9060 .block_erase = spi_block_erase_20,
9061 }, {
9062 .eraseblocks = { {32 * 1024, 256} },
9063 .block_erase = spi_block_erase_52,
9064 }, {
9065 .eraseblocks = { {64 * 1024, 128} },
9066 .block_erase = spi_block_erase_d8,
9067 }, {
9068 .eraseblocks = { {8 * 1024 * 1024, 1} },
9069 .block_erase = spi_block_erase_60,
9070 }, {
9071 .eraseblocks = { {8 * 1024 * 1024, 1} },
9072 .block_erase = spi_block_erase_c7,
9073 }
9074 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009075 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009076 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009077 .write = spi_chip_write_256,
9078 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9079 .voltage = {2700, 3600},
9080 },
9081
9082 {
9083 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009084 .name = "MX25L6495F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009085 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009086 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009087 .model_id = MACRONIX_MX25L6495F,
9088 .total_size = 8192,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009089 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009090 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009091 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00009092 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009093 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009094 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009095 .block_erasers =
9096 {
9097 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009098 .eraseblocks = { {4 * 1024, 2048} },
Sean Nelson54596372010-01-09 05:30:14 +00009099 .block_erase = spi_block_erase_20,
9100 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009101 .eraseblocks = { {64 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00009102 .block_erase = spi_block_erase_d8,
9103 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009104 .eraseblocks = { {32 * 1024, 256} },
9105 .block_erase = spi_block_erase_52,
9106 }, {
9107 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009108 .block_erase = spi_block_erase_60,
9109 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009110 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009111 .block_erase = spi_block_erase_c7,
9112 }
9113 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009114 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009115 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009116 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009117 .voltage = {2700, 3600},
9118 },
9119
9120 {
9121 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009122 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Stefan Tauner5c316f92015-02-08 21:57:52 +00009123 .bustype = BUS_SPI,
9124 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009125 .model_id = MACRONIX_MX25L8005,
9126 .total_size = 1024,
9127 .page_size = 256,
9128 /* MX25L8006E, MX25L8008E support SFDP */
9129 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
9130 .feature_bits = FEATURE_WRSR_WREN,
9131 .tested = TEST_OK_PREW,
9132 .probe = probe_spi_rdid,
9133 .probe_timing = TIMING_ZERO,
9134 .block_erasers =
9135 {
9136 {
9137 .eraseblocks = { {4 * 1024, 256} },
9138 .block_erase = spi_block_erase_20,
9139 }, {
9140 .eraseblocks = { {64 * 1024, 16} },
9141 .block_erase = spi_block_erase_52,
9142 }, {
9143 .eraseblocks = { {64 * 1024, 16} },
9144 .block_erase = spi_block_erase_d8,
9145 }, {
9146 .eraseblocks = { {1024 * 1024, 1} },
9147 .block_erase = spi_block_erase_60,
9148 }, {
9149 .eraseblocks = { {1024 * 1024, 1} },
9150 .block_erase = spi_block_erase_c7,
9151 },
9152 },
9153 .printlock = spi_prettyprint_status_register_bp2_srwd,
9154 .unlock = spi_disable_blockprotect,
9155 .write = spi_chip_write_256,
9156 .read = spi_chip_read, /* Fast read (0x0B) supported */
9157 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
9158 },
9159
9160 {
9161 .vendor = "Macronix",
sibradzicf62623c2020-03-14 17:21:34 +09009162 .name = "MX25R3235F",
9163 .bustype = BUS_SPI,
9164 .manufacture_id = MACRONIX_ID,
9165 .model_id = MACRONIX_MX25R3235F,
9166 .total_size = 4096,
9167 .page_size = 256,
9168 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9169 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9170 .tested = TEST_OK_PREW,
9171 .probe = probe_spi_rdid,
9172 .probe_timing = TIMING_ZERO,
9173 .block_erasers =
9174 {
9175 {
9176 .eraseblocks = { {4 * 1024, 1024} },
9177 .block_erase = spi_block_erase_20,
9178 }, {
9179 .eraseblocks = { {64 * 1024, 64} },
9180 .block_erase = spi_block_erase_d8,
9181 }, {
9182 .eraseblocks = { {32 * 1024, 128} },
9183 .block_erase = spi_block_erase_52,
9184 }, {
9185 .eraseblocks = { {4 * 1024 * 1024, 1} },
9186 .block_erase = spi_block_erase_60,
9187 }, {
9188 .eraseblocks = { {4 * 1024 * 1024, 1} },
9189 .block_erase = spi_block_erase_c7,
9190 }
9191 },
9192 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit 6 is quad enable */
9193 .unlock = spi_disable_blockprotect_bp3_srwd,
9194 .write = spi_chip_write_256,
9195 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9196 .voltage = {1650, 3600},
9197 },
9198
9199 {
9200 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009201 .name = "MX25R6435F",
9202 .bustype = BUS_SPI,
9203 .manufacture_id = MACRONIX_ID,
9204 .model_id = MACRONIX_MX25R6435F,
9205 .total_size = 8192,
9206 .page_size = 256,
9207 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9208 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9209 .tested = TEST_OK_PREW,
9210 .probe = probe_spi_rdid,
9211 .probe_timing = TIMING_ZERO,
9212 .block_erasers =
9213 {
9214 {
9215 .eraseblocks = { {4 * 1024, 2048} },
9216 .block_erase = spi_block_erase_20,
9217 }, {
9218 .eraseblocks = { {64 * 1024, 128} },
9219 .block_erase = spi_block_erase_d8,
9220 }, {
9221 .eraseblocks = { {32 * 1024, 256} },
9222 .block_erase = spi_block_erase_52,
9223 }, {
9224 .eraseblocks = { {8 * 1024 * 1024, 1} },
9225 .block_erase = spi_block_erase_60,
9226 }, {
9227 .eraseblocks = { {8 * 1024 * 1024, 1} },
9228 .block_erase = spi_block_erase_c7,
9229 }
9230 },
9231 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9232 .unlock = spi_disable_blockprotect_bp3_srwd,
9233 .write = spi_chip_write_256,
9234 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9235 .voltage = {1650, 3600},
9236 },
9237
9238 {
9239 .vendor = "Macronix",
9240 .name = "MX25U12835F",
9241 .bustype = BUS_SPI,
9242 .manufacture_id = MACRONIX_ID,
9243 .model_id = MACRONIX_MX25U12835E,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009244 .total_size = 16384,
9245 .page_size = 256,
9246 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009247 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009248 .tested = TEST_OK_PREW,
9249 .probe = probe_spi_rdid,
9250 .probe_timing = TIMING_ZERO,
9251 .block_erasers =
9252 {
9253 {
9254 .eraseblocks = { {4 * 1024, 4096} },
9255 .block_erase = spi_block_erase_20,
9256 }, {
9257 .eraseblocks = { {32 * 1024, 512} },
9258 .block_erase = spi_block_erase_52,
9259 }, {
9260 .eraseblocks = { {64 * 1024, 256} },
9261 .block_erase = spi_block_erase_d8,
9262 }, {
9263 .eraseblocks = { {16 * 1024 * 1024, 1} },
9264 .block_erase = spi_block_erase_60,
9265 }, {
9266 .eraseblocks = { {16 * 1024 * 1024, 1} },
9267 .block_erase = spi_block_erase_c7,
9268 }
9269 },
Angel Ponsf112e242018-09-30 20:14:17 +02009270 /* TODO: security register */
9271 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9272 .unlock = spi_disable_blockprotect_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009273 .write = spi_chip_write_256, /* Multi I/O supported */
Angel Ponsf112e242018-09-30 20:14:17 +02009274 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9275 .voltage = {1650, 2000},
9276 },
9277
9278 {
9279 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00009280 .name = "MX25U1635E",
9281 .bustype = BUS_SPI,
9282 .manufacture_id = MACRONIX_ID,
9283 .model_id = MACRONIX_MX25U1635E,
9284 .total_size = 2048,
9285 .page_size = 256,
9286 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9287 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9288 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009289 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00009290 .probe = probe_spi_rdid,
9291 .probe_timing = TIMING_ZERO,
9292 .block_erasers =
9293 {
9294 {
9295 .eraseblocks = { {4 * 1024, 512} },
9296 .block_erase = spi_block_erase_20,
9297 }, {
9298 .eraseblocks = { {32 * 1024, 64} },
9299 .block_erase = spi_block_erase_52,
9300 }, {
9301 .eraseblocks = { {64 * 1024, 32} },
9302 .block_erase = spi_block_erase_d8,
9303 }, {
9304 .eraseblocks = { {2 * 1024 * 1024, 1} },
9305 .block_erase = spi_block_erase_60,
9306 }, {
9307 .eraseblocks = { {2 * 1024 * 1024, 1} },
9308 .block_erase = spi_block_erase_c7,
9309 }
9310 },
9311 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00009312 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009313 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00009314 .write = spi_chip_write_256,
9315 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9316 .voltage = {1650, 2000},
9317 },
9318
9319 {
9320 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07009321 .name = "MX25U25635F",
9322 .bustype = BUS_SPI,
9323 .manufacture_id = MACRONIX_ID,
9324 .model_id = MACRONIX_MX25U25635F,
9325 .total_size = 32768,
9326 .page_size = 256,
9327 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9328 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
Nikolai Artemiev148254b2021-03-23 17:21:10 +11009329 .tested = TEST_OK_PREW,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009330 .probe = probe_spi_rdid,
9331 .probe_timing = TIMING_ZERO,
9332 .block_erasers =
9333 {
9334 {
9335 .eraseblocks = { {4 * 1024, 8192} },
9336 .block_erase = spi_block_erase_21,
9337 }, {
9338 .eraseblocks = { {4 * 1024, 8192} },
9339 .block_erase = spi_block_erase_20,
9340 }, {
9341 .eraseblocks = { {32 * 1024, 1024} },
9342 .block_erase = spi_block_erase_5c,
9343 }, {
9344 .eraseblocks = { {32 * 1024, 1024} },
9345 .block_erase = spi_block_erase_52,
9346 }, {
9347 .eraseblocks = { {64 * 1024, 512} },
9348 .block_erase = spi_block_erase_dc,
9349 }, {
9350 .eraseblocks = { {64 * 1024, 512} },
9351 .block_erase = spi_block_erase_d8,
9352 }, {
9353 .eraseblocks = { {32 * 1024 * 1024, 1} },
9354 .block_erase = spi_block_erase_60,
9355 }, {
9356 .eraseblocks = { {32 * 1024 * 1024, 1} },
9357 .block_erase = spi_block_erase_c7,
9358 }
9359 },
9360 /* TODO: security register */
9361 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9362 .unlock = spi_disable_blockprotect_bp3_srwd,
9363 .write = spi_chip_write_256, /* Multi I/O supported */
9364 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9365 .voltage = {1650, 2000},
9366 },
9367
9368 {
9369 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009370 .name = "MX25U3235E/F",
9371 .bustype = BUS_SPI,
9372 .manufacture_id = MACRONIX_ID,
9373 .model_id = MACRONIX_MX25U3235E,
9374 .total_size = 4096,
9375 .page_size = 256,
9376 /* F model supports SFDP */
9377 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9378 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9379 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
9380 .tested = TEST_OK_PREW,
9381 .probe = probe_spi_rdid,
9382 .probe_timing = TIMING_ZERO,
9383 .block_erasers =
9384 {
9385 {
9386 .eraseblocks = { {4 * 1024, 1024} },
9387 .block_erase = spi_block_erase_20,
9388 }, {
9389 .eraseblocks = { {32 * 1024, 128} },
9390 .block_erase = spi_block_erase_52,
9391 }, {
9392 .eraseblocks = { {64 * 1024, 64} },
9393 .block_erase = spi_block_erase_d8,
9394 }, {
9395 .eraseblocks = { {4 * 1024 * 1024, 1} },
9396 .block_erase = spi_block_erase_60,
9397 }, {
9398 .eraseblocks = { {4 * 1024 * 1024, 1} },
9399 .block_erase = spi_block_erase_c7,
9400 }
9401 },
9402 /* TODO: security register */
9403 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9404 .unlock = spi_disable_blockprotect_bp3_srwd,
9405 .write = spi_chip_write_256,
9406 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9407 .voltage = {1650, 2000},
9408 },
9409
9410 {
9411 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009412 .name = "MX25U51245G",
9413 .bustype = BUS_SPI,
9414 .manufacture_id = MACRONIX_ID,
9415 .model_id = MACRONIX_MX25U51245G,
9416 .total_size = 65536,
9417 .page_size = 256,
9418 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
9419 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
9420 .tested = TEST_OK_PREW,
9421 .probe = probe_spi_rdid,
9422 .probe_timing = TIMING_ZERO,
9423 .block_erasers =
9424 {
9425 {
9426 .eraseblocks = { {4 * 1024, 16384} },
9427 .block_erase = spi_block_erase_21,
9428 }, {
9429 .eraseblocks = { {4 * 1024, 16384} },
9430 .block_erase = spi_block_erase_20,
9431 }, {
9432 .eraseblocks = { {32 * 1024, 2048} },
9433 .block_erase = spi_block_erase_5c,
9434 }, {
9435 .eraseblocks = { {32 * 1024, 2048} },
9436 .block_erase = spi_block_erase_52,
9437 }, {
9438 .eraseblocks = { {64 * 1024, 1024} },
9439 .block_erase = spi_block_erase_dc,
9440 }, {
9441 .eraseblocks = { {64 * 1024, 1024} },
9442 .block_erase = spi_block_erase_d8,
9443 }, {
9444 .eraseblocks = { {64 * 1024 * 1024, 1} },
9445 .block_erase = spi_block_erase_60,
9446 }, {
9447 .eraseblocks = { {64 * 1024 * 1024, 1} },
9448 .block_erase = spi_block_erase_c7,
9449 }
9450 },
9451 /* TODO: security register */
9452 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9453 .unlock = spi_disable_blockprotect_bp3_srwd,
9454 .write = spi_chip_write_256, /* Multi I/O supported */
9455 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9456 .voltage = {1650, 2000},
9457 },
9458
9459 {
9460 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009461 .name = "MX25U6435E/F",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009462 .bustype = BUS_SPI,
9463 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009464 .model_id = MACRONIX_MX25U6435E,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009465 .total_size = 8192,
9466 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009467 /* F model supports SFDP */
9468 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9469 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9470 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009471 .tested = TEST_OK_PREW,
9472 .probe = probe_spi_rdid,
9473 .probe_timing = TIMING_ZERO,
9474 .block_erasers =
9475 {
9476 {
9477 .eraseblocks = { {4 * 1024, 2048} },
9478 .block_erase = spi_block_erase_20,
9479 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009480 .eraseblocks = { {32 * 1024, 256} },
9481 .block_erase = spi_block_erase_52,
9482 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009483 .eraseblocks = { {64 * 1024, 128} },
9484 .block_erase = spi_block_erase_d8,
9485 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009486 .eraseblocks = { {8 * 1024 * 1024, 1} },
9487 .block_erase = spi_block_erase_60,
9488 }, {
9489 .eraseblocks = { {8 * 1024 * 1024, 1} },
9490 .block_erase = spi_block_erase_c7,
9491 }
9492 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009493 /* TODO: security register */
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009494 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9495 .unlock = spi_disable_blockprotect_bp3_srwd,
9496 .write = spi_chip_write_256,
9497 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009498 .voltage = {1650, 2000},
9499 },
9500
9501 {
9502 .vendor = "Macronix",
9503 .name = "MX25U8032E",
9504 .bustype = BUS_SPI,
9505 .manufacture_id = MACRONIX_ID,
9506 .model_id = MACRONIX_MX25U8032E,
9507 .total_size = 1024,
9508 .page_size = 256,
9509 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9510 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9511 .tested = TEST_OK_PREW,
9512 .probe = probe_spi_rdid,
9513 .probe_timing = TIMING_ZERO,
9514 .block_erasers =
9515 {
9516 {
9517 .eraseblocks = { {4 * 1024, 256} },
9518 .block_erase = spi_block_erase_20,
9519 }, {
9520 .eraseblocks = { {32 * 1024, 32} },
9521 .block_erase = spi_block_erase_52,
9522 }, {
9523 .eraseblocks = { {64 * 1024, 16} },
9524 .block_erase = spi_block_erase_d8,
9525 }, {
9526 .eraseblocks = { {1024 * 1024, 1} },
9527 .block_erase = spi_block_erase_60,
9528 }, {
9529 .eraseblocks = { {1024 * 1024, 1} },
9530 .block_erase = spi_block_erase_c7,
9531 }
9532 },
9533 /* TODO: security register */
9534 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9535 .unlock = spi_disable_blockprotect_bp3_srwd,
9536 .write = spi_chip_write_256,
9537 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9538 .voltage = {1650, 2000},
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009539 },
9540
9541 {
9542 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00009543 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009544 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009545 .manufacture_id = MACRONIX_ID,
9546 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009547 .total_size = 128,
9548 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009549 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9550 .tested = TEST_UNTESTED,
9551 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009552 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009553 .block_erasers =
9554 {
9555 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009556 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009557 {8 * 1024, 1},
9558 {4 * 1024, 2},
9559 {8 * 1024, 2},
9560 {32 * 1024, 1},
9561 {64 * 1024, 1},
9562 },
Sean Nelson35727f72010-01-28 23:55:12 +00009563 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009564 }, {
9565 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009566 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009567 }
9568 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009569 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009570 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009571 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009572 },
9573
9574 {
9575 .vendor = "Macronix",
9576 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009577 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009578 .manufacture_id = MACRONIX_ID,
9579 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009580 .total_size = 128,
9581 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009582 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00009583 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009584 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009585 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009586 .block_erasers =
9587 {
9588 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009589 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009590 {64 * 1024, 1},
9591 {32 * 1024, 1},
9592 {8 * 1024, 2},
9593 {4 * 1024, 2},
9594 {8 * 1024, 1},
9595 },
Sean Nelson35727f72010-01-28 23:55:12 +00009596 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009597 }, {
9598 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009599 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009600 }
9601 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009602 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009603 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009604 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009605 },
9606
9607 {
9608 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009609 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009610 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009611 .manufacture_id = MACRONIX_ID,
9612 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009613 .total_size = 256,
9614 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009615 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009616 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009617 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009618 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009619 .block_erasers =
9620 {
9621 {
9622 .eraseblocks = {
9623 {16 * 1024, 1},
9624 {8 * 1024, 2},
9625 {32 * 1024, 1},
9626 {64 * 1024, 3},
9627 },
Sean Nelson35727f72010-01-28 23:55:12 +00009628 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009629 }, {
9630 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009631 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009632 },
9633 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009634 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009635 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009636 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009637 },
9638
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009639 {
9640 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009641 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009642 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009643 .manufacture_id = MACRONIX_ID,
9644 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009645 .total_size = 256,
9646 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009647 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009648 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009649 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009650 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009651 .block_erasers =
9652 {
9653 {
9654 .eraseblocks = {
9655 {64 * 1024, 3},
9656 {32 * 1024, 1},
9657 {8 * 1024, 2},
9658 {16 * 1024, 1},
9659 },
Sean Nelson35727f72010-01-28 23:55:12 +00009660 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009661 }, {
9662 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009663 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009664 },
9665 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009666 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009667 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009668 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009669 },
9670
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009671 {
9672 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00009673 .name = "MX29F022(N)B",
9674 .bustype = BUS_PARALLEL,
9675 .manufacture_id = MACRONIX_ID,
9676 .model_id = MACRONIX_MX29F022B,
9677 .total_size = 256,
9678 .page_size = 0, /* unused */
9679 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9680 .tested = TEST_UNTESTED,
9681 .probe = probe_jedec,
9682 .probe_timing = TIMING_ZERO,
9683 .block_erasers =
9684 {
9685 {
9686 .eraseblocks = {
9687 {16 * 1024, 1},
9688 {8 * 1024, 2},
9689 {32 * 1024, 1},
9690 {64 * 1024, 3},
9691 },
9692 .block_erase = erase_sector_jedec,
9693 }, {
9694 .eraseblocks = { {256 * 1024, 1} },
9695 .block_erase = erase_chip_block_jedec,
9696 }
9697 },
9698 .write = write_jedec_1,
9699 .read = read_memmapped,
9700 .voltage = {4500, 5500},
9701 },
9702
9703 {
9704 .vendor = "Macronix",
9705 .name = "MX29F022(N)T",
9706 .bustype = BUS_PARALLEL,
9707 .manufacture_id = MACRONIX_ID,
9708 .model_id = MACRONIX_MX29F022T,
9709 .total_size = 256,
9710 .page_size = 0, /* unused */
9711 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9712 .tested = TEST_OK_PREW,
9713 .probe = probe_jedec,
9714 .probe_timing = TIMING_ZERO,
9715 .block_erasers =
9716 {
9717 {
9718 .eraseblocks = {
9719 {64 * 1024, 3},
9720 {32 * 1024, 1},
9721 {8 * 1024, 2},
9722 {16 * 1024, 1},
9723 },
9724 .block_erase = erase_sector_jedec,
9725 }, {
9726 .eraseblocks = { {256 * 1024, 1} },
9727 .block_erase = erase_chip_block_jedec,
9728 }
9729 },
9730 .write = write_jedec_1,
9731 .read = read_memmapped,
9732 .voltage = {4500, 5500},
9733 },
9734
9735 {
9736 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00009737 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009738 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00009739 .manufacture_id = MACRONIX_ID,
9740 .model_id = MACRONIX_MX29F040,
9741 .total_size = 512,
9742 .page_size = 64 * 1024,
9743 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9744 .tested = TEST_UNTESTED,
9745 .probe = probe_jedec,
9746 .probe_timing = TIMING_ZERO,
9747 .block_erasers =
9748 {
9749 {
9750 .eraseblocks = { {64 * 1024, 8} },
9751 .block_erase = erase_sector_jedec,
9752 }, {
9753 .eraseblocks = { {512 * 1024, 1} },
9754 .block_erase = erase_chip_block_jedec,
9755 },
9756 },
9757 .write = write_jedec_1,
9758 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009759 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00009760 },
9761
9762 {
9763 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009764 .name = "MX29GL128F",
9765 .bustype = BUS_PARALLEL,
9766 .manufacture_id = MACRONIX_ID,
9767 .model_id = MACRONIX_MX29GL128F,
9768 .total_size = 16384,
9769 .page_size = 128 * 1024, /* actual page size is 16 */
9770 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9771 .tested = TEST_UNTESTED,
9772 .probe = probe_jedec_29gl,
9773 .probe_timing = TIMING_ZERO,
9774 .block_erasers =
9775 {
9776 {
9777 .eraseblocks = { {128 * 1024, 128} },
9778 .block_erase = erase_sector_jedec,
9779 }, {
9780 .eraseblocks = { {16 * 1024 * 1024, 1} },
9781 .block_erase = erase_chip_block_jedec,
9782 },
9783 },
9784 .write = write_jedec_1,
9785 .read = read_memmapped,
9786 .voltage = {2700, 3600},
9787 },
9788
9789 {
9790 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009791 .name = "MX29GL320EB",
9792 .bustype = BUS_PARALLEL,
9793 .manufacture_id = MACRONIX_ID,
9794 .model_id = MACRONIX_MX29GL320EB,
9795 .total_size = 4096,
9796 .page_size = 128 * 1024, /* actual page size is 16 */
9797 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9798 .tested = TEST_UNTESTED,
9799 .probe = probe_jedec_29gl,
9800 .probe_timing = TIMING_ZERO,
9801 .block_erasers =
9802 {
9803 {
9804 .eraseblocks = {
9805 {8 * 1024, 8},
9806 {64 * 1024, 63},
9807 },
9808 .block_erase = erase_sector_jedec,
9809 }, {
9810 .eraseblocks = { {4 * 1024 * 1024, 1} },
9811 .block_erase = erase_chip_block_jedec,
9812 },
9813 },
9814 .write = write_jedec_1,
9815 .read = read_memmapped,
9816 .voltage = {2700, 3600},
9817 },
9818
9819 {
9820 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009821 .name = "MX29GL320EH/L",
9822 .bustype = BUS_PARALLEL,
9823 .manufacture_id = MACRONIX_ID,
9824 .model_id = MACRONIX_MX29GL320EHL,
9825 .total_size = 4096,
9826 .page_size = 128 * 1024, /* actual page size is 16 */
9827 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9828 .tested = TEST_UNTESTED,
9829 .probe = probe_jedec_29gl,
9830 .probe_timing = TIMING_ZERO,
9831 .block_erasers =
9832 {
9833 {
9834 .eraseblocks = { {64 * 1024, 64} },
9835 .block_erase = erase_sector_jedec,
9836 }, {
9837 .eraseblocks = { {4 * 1024 * 1024, 1} },
9838 .block_erase = erase_chip_block_jedec,
9839 },
9840 },
9841 .write = write_jedec_1,
9842 .read = read_memmapped,
9843 .voltage = {2700, 3600},
9844 },
9845
9846 {
9847 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009848 .name = "MX29GL320ET",
9849 .bustype = BUS_PARALLEL,
9850 .manufacture_id = MACRONIX_ID,
9851 .model_id = MACRONIX_MX29GL320ET,
9852 .total_size = 4096,
9853 .page_size = 128 * 1024, /* actual page size is 16 */
9854 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9855 .tested = TEST_UNTESTED,
9856 .probe = probe_jedec_29gl,
9857 .probe_timing = TIMING_ZERO,
9858 .block_erasers =
9859 {
9860 {
9861 .eraseblocks = {
9862 {64 * 1024, 63},
9863 {8 * 1024, 8},
9864 },
9865 .block_erase = erase_sector_jedec,
9866 }, {
9867 .eraseblocks = { {4 * 1024 * 1024, 1} },
9868 .block_erase = erase_chip_block_jedec,
9869 },
9870 },
9871 .write = write_jedec_1,
9872 .read = read_memmapped,
9873 .voltage = {2700, 3600},
9874 },
9875
9876 {
9877 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009878 .name = "MX29GL640EB",
9879 .bustype = BUS_PARALLEL,
9880 .manufacture_id = MACRONIX_ID,
9881 .model_id = MACRONIX_MX29GL640EB,
9882 .total_size = 8192,
9883 .page_size = 128 * 1024, /* actual page size is 16 */
9884 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9885 .tested = TEST_UNTESTED,
9886 .probe = probe_jedec_29gl,
9887 .probe_timing = TIMING_ZERO,
9888 .block_erasers =
9889 {
9890 {
9891 .eraseblocks = {
9892 {8 * 1024, 8},
9893 {64 * 1024, 127},
9894 },
9895 .block_erase = erase_sector_jedec,
9896 }, {
9897 .eraseblocks = { {8 * 1024 * 1024, 1} },
9898 .block_erase = erase_chip_block_jedec,
9899 },
9900 },
9901 .write = write_jedec_1,
9902 .read = read_memmapped,
9903 .voltage = {2700, 3600},
9904 },
9905
9906 {
9907 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009908 .name = "MX29GL640EH/L",
9909 .bustype = BUS_PARALLEL,
9910 .manufacture_id = MACRONIX_ID,
9911 .model_id = MACRONIX_MX29GL640EHL,
9912 .total_size = 8192,
9913 .page_size = 128 * 1024, /* actual page size is 16 */
9914 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9915 .tested = TEST_UNTESTED,
9916 .probe = probe_jedec_29gl,
9917 .probe_timing = TIMING_ZERO,
9918 .block_erasers =
9919 {
9920 {
9921 .eraseblocks = { {64 * 1024, 128} },
9922 .block_erase = erase_sector_jedec,
9923 }, {
9924 .eraseblocks = { {8 * 1024 * 1024, 1} },
9925 .block_erase = erase_chip_block_jedec,
9926 },
9927 },
9928 .write = write_jedec_1,
9929 .read = read_memmapped,
9930 .voltage = {2700, 3600},
9931 },
9932
9933 {
9934 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009935 .name = "MX29GL640ET",
9936 .bustype = BUS_PARALLEL,
9937 .manufacture_id = MACRONIX_ID,
9938 .model_id = MACRONIX_MX29GL640ET,
9939 .total_size = 8192,
9940 .page_size = 128 * 1024, /* actual page size is 16 */
9941 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9942 .tested = TEST_UNTESTED,
9943 .probe = probe_jedec_29gl,
9944 .probe_timing = TIMING_ZERO,
9945 .block_erasers =
9946 {
9947 {
9948 .eraseblocks = {
9949 {64 * 1024, 127},
9950 {8 * 1024, 8},
9951 },
9952 .block_erase = erase_sector_jedec,
9953 }, {
9954 .eraseblocks = { {8 * 1024 * 1024, 1} },
9955 .block_erase = erase_chip_block_jedec,
9956 },
9957 },
9958 .write = write_jedec_1,
9959 .read = read_memmapped,
9960 .voltage = {2700, 3600},
9961 },
9962
9963 {
9964 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00009965 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009966 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009967 .manufacture_id = MACRONIX_ID,
9968 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009969 .total_size = 512,
9970 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009971 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9972 .tested = TEST_UNTESTED,
9973 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009974 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009975 .block_erasers =
9976 {
9977 {
Stefan Tauner6697f712014-08-06 15:09:15 +00009978 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00009979 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009980 }, {
9981 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009982 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009983 },
9984 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009985 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009986 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009987 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00009988 },
9989
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009990 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009991 .vendor = "Macronix",
Hemanth Guruva Reddya136d422019-07-11 11:08:27 +02009992 .name = "MX66L51235F/MX25L51245G",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009993 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009994 .manufacture_id = MACRONIX_ID,
9995 .model_id = MACRONIX_MX66L51235F,
9996 .total_size = 65536,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009997 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009998 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9999 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010000 .tested = TEST_OK_PREW,
10001 .probe = probe_spi_rdid,
10002 .probe_timing = TIMING_ZERO,
10003 .block_erasers =
10004 {
10005 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010006 .eraseblocks = { {4 * 1024, 16384} },
10007 .block_erase = spi_block_erase_21,
10008 }, {
10009 .eraseblocks = { {4 * 1024, 16384} },
10010 .block_erase = spi_block_erase_20,
10011 }, {
10012 .eraseblocks = { {32 * 1024, 2048} },
10013 .block_erase = spi_block_erase_5c,
10014 }, {
10015 .eraseblocks = { {32 * 1024, 2048} },
10016 .block_erase = spi_block_erase_52,
10017 }, {
10018 .eraseblocks = { {64 * 1024, 1024} },
10019 .block_erase = spi_block_erase_dc,
10020 }, {
10021 .eraseblocks = { {64 * 1024, 1024} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010022 .block_erase = spi_block_erase_d8,
10023 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010024 .eraseblocks = { {64 * 1024 * 1024, 1} },
10025 .block_erase = spi_block_erase_60,
10026 }, {
10027 .eraseblocks = { {64 * 1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010028 .block_erase = spi_block_erase_c7,
10029 }
10030 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100010031 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
10032 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010033 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010034 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010035 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010036 .voltage = {2700, 3600},
10037 },
10038
10039 /* The ST M25P05 is a bit of a problem. It has the same ID as the
10040 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
10041 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
10042 * only is successful if RDID does not work.
10043 */
10044 {
10045 .vendor = "Micron/Numonyx/ST",
10046 .name = "M25P05",
10047 .bustype = BUS_SPI,
10048 .manufacture_id = 0, /* Not used. */
10049 .model_id = ST_M25P05_RES,
10050 .total_size = 64,
10051 .page_size = 256,
10052 .feature_bits = FEATURE_WRSR_WREN,
10053 .tested = TEST_UNTESTED,
10054 .probe = probe_spi_res1,
10055 .probe_timing = TIMING_ZERO,
10056 .block_erasers =
10057 {
10058 {
10059 .eraseblocks = { {32 * 1024, 2} },
10060 .block_erase = spi_block_erase_d8,
10061 }, {
10062 .eraseblocks = { {64 * 1024, 1} },
10063 .block_erase = spi_block_erase_c7,
10064 }
10065 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010066 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010067 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010068 .write = spi_chip_write_1, /* 128 */
10069 .read = spi_chip_read,
10070 .voltage = {2700, 3600},
10071 },
10072
10073 {
10074 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010075 .name = "M25P05-A",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010076 .bustype = BUS_SPI,
10077 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010078 .model_id = ST_M25P05A,
10079 .total_size = 64,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010080 .page_size = 256,
10081 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010082 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010083 .probe = probe_spi_rdid,
10084 .probe_timing = TIMING_ZERO,
10085 .block_erasers =
10086 {
10087 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010088 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010089 .block_erase = spi_block_erase_d8,
10090 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010091 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010092 .block_erase = spi_block_erase_c7,
10093 }
10094 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010095 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010096 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010097 .write = spi_chip_write_256,
10098 .read = spi_chip_read,
10099 .voltage = {2700, 3600},
10100 },
10101
10102 /* The ST M25P10 has the same problem as the M25P05. */
10103 {
10104 .vendor = "Micron/Numonyx/ST",
10105 .name = "M25P10",
10106 .bustype = BUS_SPI,
10107 .manufacture_id = 0, /* Not used. */
10108 .model_id = ST_M25P10_RES,
10109 .total_size = 128,
10110 .page_size = 256,
10111 .feature_bits = FEATURE_WRSR_WREN,
10112 .tested = TEST_UNTESTED,
10113 .probe = probe_spi_res1,
10114 .probe_timing = TIMING_ZERO,
10115 .block_erasers =
10116 {
10117 {
10118 .eraseblocks = { {32 * 1024, 4} },
10119 .block_erase = spi_block_erase_d8,
10120 }, {
10121 .eraseblocks = { {128 * 1024, 1} },
10122 .block_erase = spi_block_erase_c7,
10123 }
10124 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010125 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010126 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010127 .write = spi_chip_write_1, /* 128 */
10128 .read = spi_chip_read,
10129 .voltage = {2700, 3600},
10130 },
10131
10132 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010133 .vendor = "Micron/Numonyx/ST",
10134 .name = "M25P10-A",
10135 .bustype = BUS_SPI,
10136 .manufacture_id = ST_ID,
10137 .model_id = ST_M25P10A,
10138 .total_size = 128,
10139 .page_size = 256,
10140 .feature_bits = FEATURE_WRSR_WREN,
10141 .tested = TEST_OK_PREW,
10142 .probe = probe_spi_rdid,
10143 .probe_timing = TIMING_ZERO,
10144 .block_erasers =
10145 {
10146 {
10147 .eraseblocks = { {32 * 1024, 4} },
10148 .block_erase = spi_block_erase_d8,
10149 }, {
10150 .eraseblocks = { {128 * 1024, 1} },
10151 .block_erase = spi_block_erase_c7,
10152 }
10153 },
10154 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10155 .unlock = spi_disable_blockprotect_bp3_srwd,
10156 .write = spi_chip_write_256,
10157 .read = spi_chip_read,
10158 .voltage = {2700, 3600},
10159 },
10160
10161 {
10162 .vendor = "Micron/Numonyx/ST",
10163 .name = "M25P128",
10164 .bustype = BUS_SPI,
10165 .manufacture_id = ST_ID,
10166 .model_id = ST_M25P128,
10167 .total_size = 16384,
10168 .page_size = 256,
10169 .feature_bits = FEATURE_WRSR_WREN,
10170 .tested = TEST_OK_PREW,
10171 .probe = probe_spi_rdid,
10172 .probe_timing = TIMING_ZERO,
10173 .block_erasers =
10174 {
10175 {
10176 .eraseblocks = { {256 * 1024, 64} },
10177 .block_erase = spi_block_erase_d8,
10178 }, {
10179 .eraseblocks = { {16 * 1024 * 1024, 1} },
10180 .block_erase = spi_block_erase_c7,
10181 }
10182 },
10183 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10184 .unlock = spi_disable_blockprotect_bp3_srwd,
10185 .write = spi_chip_write_256,
10186 .read = spi_chip_read,
10187 .voltage = {2700, 3600},
10188 },
10189
10190 {
10191 .vendor = "Micron/Numonyx/ST",
10192 .name = "M25P16",
10193 .bustype = BUS_SPI,
10194 .manufacture_id = ST_ID,
10195 .model_id = ST_M25P16,
10196 .total_size = 2048,
10197 .page_size = 256,
10198 .feature_bits = FEATURE_WRSR_WREN,
10199 .tested = TEST_OK_PREW,
10200 .probe = probe_spi_rdid,
10201 .probe_timing = TIMING_ZERO,
10202 .block_erasers =
10203 {
10204 {
10205 .eraseblocks = { {64 * 1024, 32} },
10206 .block_erase = spi_block_erase_d8,
10207 }, {
10208 .eraseblocks = { {2 * 1024 * 1024, 1} },
10209 .block_erase = spi_block_erase_c7,
10210 }
10211 },
10212 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10213 .unlock = spi_disable_blockprotect_bp3_srwd,
10214 .write = spi_chip_write_256,
10215 .read = spi_chip_read,
10216 .voltage = {2700, 3600},
10217 },
10218
10219 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010220 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10221 .name = "M25P20",
10222 .bustype = BUS_SPI,
10223 .manufacture_id = ST_ID,
10224 .model_id = ST_M25P20,
10225 .total_size = 256,
10226 .page_size = 256,
10227 .feature_bits = FEATURE_WRSR_WREN,
10228 .tested = TEST_UNTESTED,
10229 .probe = probe_spi_rdid,
10230 .probe_timing = TIMING_ZERO,
10231 .block_erasers =
10232 {
10233 {
10234 .eraseblocks = { {64 * 1024, 4} },
10235 .block_erase = spi_block_erase_d8,
10236 }, {
10237 .eraseblocks = { {256 * 1024, 1} },
10238 .block_erase = spi_block_erase_c7,
10239 }
10240 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010241 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010242 .unlock = spi_disable_blockprotect,
10243 .write = spi_chip_write_256,
10244 .read = spi_chip_read, /* Fast read (0x0B) supported */
10245 .voltage = {2700, 3600},
10246 },
10247
10248 {
10249 .vendor = "Micron/Numonyx/ST",
10250 .name = "M25P20-old",
10251 .bustype = BUS_SPI,
10252 .manufacture_id = 0, /* Not used. */
10253 .model_id = ST_M25P20_RES,
10254 .total_size = 256,
10255 .page_size = 256,
10256 .feature_bits = FEATURE_WRSR_WREN,
10257 .tested = TEST_OK_PREW,
10258 .probe = probe_spi_res1,
10259 .probe_timing = TIMING_ZERO,
10260 .block_erasers =
10261 {
10262 {
10263 .eraseblocks = { {64 * 1024, 4} },
10264 .block_erase = spi_block_erase_d8,
10265 }, {
10266 .eraseblocks = { {256 * 1024, 1} },
10267 .block_erase = spi_block_erase_c7,
10268 }
10269 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010270 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010271 .unlock = spi_disable_blockprotect,
10272 .write = spi_chip_write_256,
10273 .read = spi_chip_read, /* Fast read (0x0B) supported */
10274 .voltage = {2700, 3600},
10275 },
10276
10277 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010278 .vendor = "Micron/Numonyx/ST",
10279 .name = "M25P32",
10280 .bustype = BUS_SPI,
10281 .manufacture_id = ST_ID,
10282 .model_id = ST_M25P32,
10283 .total_size = 4096,
10284 .page_size = 256,
10285 .feature_bits = FEATURE_WRSR_WREN,
10286 .tested = TEST_OK_PREW,
10287 .probe = probe_spi_rdid,
10288 .probe_timing = TIMING_ZERO,
10289 .block_erasers =
10290 {
10291 {
10292 .eraseblocks = { {64 * 1024, 64} },
10293 .block_erase = spi_block_erase_d8,
10294 }, {
10295 .eraseblocks = { {4 * 1024 * 1024, 1} },
10296 .block_erase = spi_block_erase_c7,
10297 }
10298 },
10299 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10300 .unlock = spi_disable_blockprotect_bp3_srwd,
10301 .write = spi_chip_write_256,
10302 .read = spi_chip_read,
10303 .voltage = {2700, 3600},
10304 },
10305
10306 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010307 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10308 .name = "M25P40",
10309 .bustype = BUS_SPI,
10310 .manufacture_id = ST_ID,
10311 .model_id = ST_M25P40,
10312 .total_size = 512,
10313 .page_size = 256,
10314 .feature_bits = FEATURE_WRSR_WREN,
10315 .tested = TEST_OK_PREW,
10316 .probe = probe_spi_rdid,
10317 .probe_timing = TIMING_ZERO,
10318 .block_erasers =
10319 {
10320 {
10321 .eraseblocks = { {64 * 1024, 8} },
10322 .block_erase = spi_block_erase_d8,
10323 }, {
10324 .eraseblocks = { {512 * 1024, 1} },
10325 .block_erase = spi_block_erase_c7,
10326 }
10327 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010328 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010329 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010330 .write = spi_chip_write_256,
10331 .read = spi_chip_read,
10332 .voltage = {2700, 3600},
10333 },
10334
10335 {
10336 .vendor = "Micron/Numonyx/ST",
10337 .name = "M25P40-old",
10338 .bustype = BUS_SPI,
10339 .manufacture_id = 0, /* Not used. */
10340 .model_id = ST_M25P40_RES,
10341 .total_size = 512,
10342 .page_size = 256,
10343 .feature_bits = FEATURE_WRSR_WREN,
10344 .tested = TEST_UNTESTED,
10345 .probe = probe_spi_res1,
10346 .probe_timing = TIMING_ZERO,
10347 .block_erasers =
10348 {
10349 {
10350 .eraseblocks = { {64 * 1024, 8} },
10351 .block_erase = spi_block_erase_d8,
10352 }, {
10353 .eraseblocks = { {512 * 1024, 1} },
10354 .block_erase = spi_block_erase_c7,
10355 }
10356 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010357 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010358 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010359 .write = spi_chip_write_256,
10360 .read = spi_chip_read,
10361 },
10362
10363 {
10364 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010365 .name = "M25P64",
10366 .bustype = BUS_SPI,
10367 .manufacture_id = ST_ID,
10368 .model_id = ST_M25P64,
10369 .total_size = 8192,
10370 .page_size = 256,
10371 .feature_bits = FEATURE_WRSR_WREN,
10372 .tested = TEST_OK_PREW,
10373 .probe = probe_spi_rdid,
10374 .probe_timing = TIMING_ZERO,
10375 .block_erasers =
10376 {
10377 {
10378 .eraseblocks = { {64 * 1024, 128} },
10379 .block_erase = spi_block_erase_d8,
10380 }, {
10381 .eraseblocks = { {8 * 1024 * 1024, 1} },
10382 .block_erase = spi_block_erase_c7,
10383 }
10384 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010385 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010386 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010387 .write = spi_chip_write_256,
10388 .read = spi_chip_read,
10389 .voltage = {2700, 3600},
10390 },
10391
10392 {
10393 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010394 .name = "M25P80",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010395 .bustype = BUS_SPI,
10396 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010397 .model_id = ST_M25P80,
10398 .total_size = 1024,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010399 .page_size = 256,
10400 .feature_bits = FEATURE_WRSR_WREN,
10401 .tested = TEST_OK_PREW,
10402 .probe = probe_spi_rdid,
10403 .probe_timing = TIMING_ZERO,
10404 .block_erasers =
10405 {
10406 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010407 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010408 .block_erase = spi_block_erase_d8,
10409 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010410 .eraseblocks = { {1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010411 .block_erase = spi_block_erase_c7,
10412 }
10413 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010414 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010415 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010416 .write = spi_chip_write_256,
10417 .read = spi_chip_read,
10418 .voltage = {2700, 3600},
10419 },
10420
10421 {
10422 .vendor = "Micron/Numonyx/ST",
10423 .name = "M25PE10",
10424 .bustype = BUS_SPI,
10425 .manufacture_id = ST_ID,
10426 .model_id = ST_M25PE10,
10427 .total_size = 128,
10428 .page_size = 256,
10429 .feature_bits = FEATURE_WRSR_WREN,
10430 .tested = TEST_UNTESTED,
10431 .probe = probe_spi_rdid,
10432 .probe_timing = TIMING_ZERO,
10433 .block_erasers =
10434 {
10435 {
10436 .eraseblocks = { {4 * 1024, 32} },
10437 .block_erase = spi_block_erase_20,
10438 }, {
10439 .eraseblocks = { {64 * 1024, 2} },
10440 .block_erase = spi_block_erase_d8,
10441 }, {
10442 .eraseblocks = { {128 * 1024, 1} },
10443 .block_erase = spi_block_erase_c7,
10444 }
10445 },
10446 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10447 .unlock = spi_disable_blockprotect,
10448 .write = spi_chip_write_256,
10449 .read = spi_chip_read,
10450 .voltage = {2700, 3600},
10451 },
10452
10453 {
10454 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010455 .name = "M25PE16",
10456 .bustype = BUS_SPI,
10457 .manufacture_id = ST_ID,
10458 .model_id = ST_M25PE16,
10459 .total_size = 2048,
10460 .page_size = 256,
10461 .feature_bits = FEATURE_WRSR_WREN,
10462 .tested = TEST_UNTESTED,
10463 .probe = probe_spi_rdid,
10464 .probe_timing = TIMING_ZERO,
10465 .block_erasers =
10466 {
10467 {
10468 .eraseblocks = { {4 * 1024, 512} },
10469 .block_erase = spi_block_erase_20,
10470 }, {
10471 .eraseblocks = { {64 * 1024, 32} },
10472 .block_erase = spi_block_erase_d8,
10473 }, {
10474 .eraseblocks = { {2 * 1024 * 1024, 1} },
10475 .block_erase = spi_block_erase_c7,
10476 }
10477 },
10478 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10479 .unlock = spi_disable_blockprotect,
10480 .write = spi_chip_write_256,
10481 .read = spi_chip_read,
10482 .voltage = {2700, 3600},
10483 },
10484
10485 {
10486 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010487 .name = "M25PE20",
10488 .bustype = BUS_SPI,
10489 .manufacture_id = ST_ID,
10490 .model_id = ST_M25PE20,
10491 .total_size = 256,
10492 .page_size = 256,
10493 .feature_bits = FEATURE_WRSR_WREN,
10494 .tested = TEST_UNTESTED,
10495 .probe = probe_spi_rdid,
10496 .probe_timing = TIMING_ZERO,
10497 .block_erasers =
10498 {
10499 {
10500 .eraseblocks = { {4 * 1024, 64} },
10501 .block_erase = spi_block_erase_20,
10502 }, {
10503 .eraseblocks = { {64 * 1024, 4} },
10504 .block_erase = spi_block_erase_d8,
10505 }, {
10506 .eraseblocks = { {256 * 1024, 1} },
10507 .block_erase = spi_block_erase_c7,
10508 }
10509 },
10510 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10511 .unlock = spi_disable_blockprotect,
10512 .write = spi_chip_write_256,
10513 .read = spi_chip_read,
10514 .voltage = {2700, 3600},
10515 },
10516
10517 {
10518 .vendor = "Micron/Numonyx/ST",
10519 .name = "M25PE40",
10520 .bustype = BUS_SPI,
10521 .manufacture_id = ST_ID,
10522 .model_id = ST_M25PE40,
10523 .total_size = 512,
10524 .page_size = 256,
10525 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010526 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010527 .probe = probe_spi_rdid,
10528 .probe_timing = TIMING_ZERO,
10529 .block_erasers =
10530 {
10531 {
10532 .eraseblocks = { {4 * 1024, 128} },
10533 .block_erase = spi_block_erase_20,
10534 }, {
10535 .eraseblocks = { {64 * 1024, 8} },
10536 .block_erase = spi_block_erase_d8,
10537 }, {
10538 .eraseblocks = { {512 * 1024, 1} },
10539 .block_erase = spi_block_erase_c7,
10540 }
10541 },
10542 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10543 .unlock = spi_disable_blockprotect,
10544 .write = spi_chip_write_256,
10545 .read = spi_chip_read,
10546 .voltage = {2700, 3600},
10547 },
10548
10549 {
10550 .vendor = "Micron/Numonyx/ST",
10551 .name = "M25PE80",
10552 .bustype = BUS_SPI,
10553 .manufacture_id = ST_ID,
10554 .model_id = ST_M25PE80,
10555 .total_size = 1024,
10556 .page_size = 256,
10557 .feature_bits = FEATURE_WRSR_WREN,
10558 .tested = TEST_OK_PREW,
10559 .probe = probe_spi_rdid,
10560 .probe_timing = TIMING_ZERO,
10561 .block_erasers =
10562 {
10563 {
10564 .eraseblocks = { {4 * 1024, 256} },
10565 .block_erase = spi_block_erase_20,
10566 }, {
10567 .eraseblocks = { {64 * 1024, 16} },
10568 .block_erase = spi_block_erase_d8,
10569 }, {
10570 .eraseblocks = { {1024 * 1024, 1} },
10571 .block_erase = spi_block_erase_c7,
10572 }
10573 },
10574 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10575 .unlock = spi_disable_blockprotect,
10576 .write = spi_chip_write_256,
10577 .read = spi_chip_read,
10578 .voltage = {2700, 3600},
10579 },
10580
10581 {
10582 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010583 .name = "M25PX16",
10584 .bustype = BUS_SPI,
10585 .manufacture_id = ST_ID,
10586 .model_id = ST_M25PX16,
10587 .total_size = 2048,
10588 .page_size = 256,
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, 512 } },
10598 .block_erase = spi_block_erase_20,
10599 }, {
10600 .eraseblocks = { {64 * 1024, 32} },
10601 .block_erase = spi_block_erase_d8,
10602 }, {
10603 .eraseblocks = { {2 * 1024 * 1024, 1} },
10604 .block_erase = spi_block_erase_c7,
10605 }
10606 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010607 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010608 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10609 .write = spi_chip_write_256,
10610 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010611 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010612 },
10613
10614 {
10615 .vendor = "Micron/Numonyx/ST",
10616 .name = "M25PX32",
10617 .bustype = BUS_SPI,
10618 .manufacture_id = ST_ID,
10619 .model_id = ST_M25PX32,
10620 .total_size = 4096,
10621 .page_size = 256,
10622 /* OTP: 64B total; read 0x4B; write 0x42 */
10623 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10624 .tested = TEST_OK_PRE,
10625 .probe = probe_spi_rdid,
10626 .probe_timing = TIMING_ZERO,
10627 .block_erasers =
10628 {
10629 {
10630 .eraseblocks = { { 4 * 1024, 1024 } },
10631 .block_erase = spi_block_erase_20,
10632 }, {
10633 .eraseblocks = { {64 * 1024, 64} },
10634 .block_erase = spi_block_erase_d8,
10635 }, {
10636 .eraseblocks = { {4 * 1024 * 1024, 1} },
10637 .block_erase = spi_block_erase_c7,
10638 }
10639 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010640 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010641 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10642 .write = spi_chip_write_256,
10643 .read = spi_chip_read,
10644 .voltage = {2700, 3600},
10645 },
10646
10647 {
10648 .vendor = "Micron/Numonyx/ST",
10649 .name = "M25PX64",
10650 .bustype = BUS_SPI,
10651 .manufacture_id = ST_ID,
10652 .model_id = ST_M25PX64,
10653 .total_size = 8192,
10654 .page_size = 256,
10655 /* OTP: 64B total; read 0x4B; write 0x42 */
10656 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010657 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010658 .probe = probe_spi_rdid,
10659 .probe_timing = TIMING_ZERO,
10660 .block_erasers =
10661 {
10662 {
10663 .eraseblocks = { { 4 * 1024, 2048 } },
10664 .block_erase = spi_block_erase_20,
10665 }, {
10666 .eraseblocks = { {64 * 1024, 128} },
10667 .block_erase = spi_block_erase_d8,
10668 }, {
10669 .eraseblocks = { {8 * 1024 * 1024, 1} },
10670 .block_erase = spi_block_erase_c7,
10671 }
10672 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010673 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010674 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10675 .write = spi_chip_write_256,
10676 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010677 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010678 },
10679
10680 {
10681 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010682 .name = "M25PX80",
10683 .bustype = BUS_SPI,
10684 .manufacture_id = ST_ID,
10685 .model_id = ST_M25PX80,
10686 .total_size = 1024,
10687 .page_size = 256,
10688 /* OTP: 64B total; read 0x4B, write 0x42 */
10689 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10690 .tested = TEST_OK_PREW,
10691 .probe = probe_spi_rdid,
10692 .probe_timing = TIMING_ZERO,
10693 .block_erasers =
10694 {
10695 {
10696 .eraseblocks = { { 4 * 1024, 256 } },
10697 .block_erase = spi_block_erase_20,
10698 }, {
10699 .eraseblocks = { {64 * 1024, 16} },
10700 .block_erase = spi_block_erase_d8,
10701 }, {
10702 .eraseblocks = { {1024 * 1024, 1} },
10703 .block_erase = spi_block_erase_c7,
10704 }
10705 },
10706 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
10707 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10708 .write = spi_chip_write_256,
10709 .read = spi_chip_read,
10710 .voltage = {2700, 3600},
10711 },
10712
10713 {
10714 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010715 .name = "M45PE10",
10716 .bustype = BUS_SPI,
10717 .manufacture_id = ST_ID,
10718 .model_id = ST_M45PE10,
10719 .total_size = 128,
10720 .page_size = 256,
10721 .tested = TEST_UNTESTED,
10722 .probe = probe_spi_rdid,
10723 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010724 .block_erasers =
10725 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010726 {
10727 .eraseblocks = { {256, 512} },
10728 .block_erase = spi_block_erase_db,
10729 }, {
10730 .eraseblocks = { {64 * 1024, 2} },
10731 .block_erase = spi_block_erase_d8,
10732 }
10733 },
10734 .printlock = spi_prettyprint_status_register_default_welwip,
10735 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10736 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10737 .read = spi_chip_read, /* Fast read (0x0B) supported */
10738 .voltage = {2700, 3600},
10739 },
10740
10741 {
10742 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010743 .name = "M45PE16",
10744 .bustype = BUS_SPI,
10745 .manufacture_id = ST_ID,
10746 .model_id = ST_M45PE16,
10747 .total_size = 2048,
10748 .page_size = 256,
10749 .tested = TEST_UNTESTED,
10750 .probe = probe_spi_rdid,
10751 .probe_timing = TIMING_ZERO,
10752 .block_erasers =
10753 {
10754 {
10755 .eraseblocks = { {256, 8192} },
10756 .block_erase = spi_block_erase_db,
10757 }, {
10758 .eraseblocks = { {64 * 1024, 32} },
10759 .block_erase = spi_block_erase_d8,
10760 }
10761 },
10762 .printlock = spi_prettyprint_status_register_default_welwip,
10763 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10764 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10765 .read = spi_chip_read, /* Fast read (0x0B) supported */
10766 .voltage = {2700, 3600},
10767 },
10768
10769 {
10770 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010771 .name = "M45PE20",
10772 .bustype = BUS_SPI,
10773 .manufacture_id = ST_ID,
10774 .model_id = ST_M45PE20,
10775 .total_size = 256,
10776 .page_size = 256,
10777 .tested = TEST_UNTESTED,
10778 .probe = probe_spi_rdid,
10779 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010780 .block_erasers =
10781 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010782 {
10783 .eraseblocks = { {256, 1024} },
10784 .block_erase = spi_block_erase_db,
10785 }, {
10786 .eraseblocks = { {64 * 1024, 4} },
10787 .block_erase = spi_block_erase_d8,
10788 }
10789 },
10790 .printlock = spi_prettyprint_status_register_default_welwip,
10791 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10792 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10793 .read = spi_chip_read, /* Fast read (0x0B) supported */
10794 .voltage = {2700, 3600},
10795 },
10796
10797 {
10798 .vendor = "Micron/Numonyx/ST",
10799 .name = "M45PE40",
10800 .bustype = BUS_SPI,
10801 .manufacture_id = ST_ID,
10802 .model_id = ST_M45PE40,
10803 .total_size = 512,
10804 .page_size = 256,
10805 .tested = TEST_UNTESTED,
10806 .probe = probe_spi_rdid,
10807 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010808 .block_erasers =
10809 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010810 {
10811 .eraseblocks = { {256, 2048} },
10812 .block_erase = spi_block_erase_db,
10813 }, {
10814 .eraseblocks = { {64 * 1024, 8} },
10815 .block_erase = spi_block_erase_d8,
10816 }
10817 },
10818 .printlock = spi_prettyprint_status_register_default_welwip,
10819 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000010820 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010821 .read = spi_chip_read, /* Fast read (0x0B) supported */
10822 .voltage = {2700, 3600},
10823 },
10824
10825 {
10826 .vendor = "Micron/Numonyx/ST",
10827 .name = "M45PE80",
10828 .bustype = BUS_SPI,
10829 .manufacture_id = ST_ID,
10830 .model_id = ST_M45PE80,
10831 .total_size = 1024,
10832 .page_size = 256,
10833 .tested = TEST_UNTESTED,
10834 .probe = probe_spi_rdid,
10835 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010836 .block_erasers =
10837 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010838 {
10839 .eraseblocks = { {256, 4096} },
10840 .block_erase = spi_block_erase_db,
10841 }, {
10842 .eraseblocks = { {64 * 1024, 16} },
10843 .block_erase = spi_block_erase_d8,
10844 }
10845 },
10846 .printlock = spi_prettyprint_status_register_default_welwip,
10847 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10848 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10849 .read = spi_chip_read, /* Fast read (0x0B) supported */
10850 .voltage = {2700, 3600},
10851 },
10852
10853 {
10854 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010855 .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
10856 .bustype = BUS_SPI,
10857 .manufacture_id = ST_ID,
10858 .model_id = ST_N25Q00A__1G,
10859 .total_size = 131072,
10860 .page_size = 256,
10861 /* supports SFDP */
10862 /* OTP: 64B total; read 0x4B, write 0x42 */
10863 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10864 .tested = TEST_UNTESTED,
10865 .probe = probe_spi_rdid,
10866 .probe_timing = TIMING_ZERO,
10867 .block_erasers =
10868 {
10869 {
10870 .eraseblocks = { {4 * 1024, 32768} },
10871 .block_erase = spi_block_erase_21,
10872 }, {
10873 .eraseblocks = { {4 * 1024, 32768} },
10874 .block_erase = spi_block_erase_20,
10875 }, {
10876 .eraseblocks = { {64 * 1024, 2048} },
10877 .block_erase = spi_block_erase_dc,
10878 }, {
10879 .eraseblocks = { {64 * 1024, 2048} },
10880 .block_erase = spi_block_erase_d8,
10881 }, {
10882 .eraseblocks = { {32768 * 1024, 4} },
10883 .block_erase = spi_block_erase_c4,
10884 }
10885 },
10886 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10887 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10888 .write = spi_chip_write_256, /* Multi I/O supported */
10889 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10890 .voltage = {1700, 2000},
10891 },
10892
10893 {
10894 .vendor = "Micron/Numonyx/ST",
10895 .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
10896 .bustype = BUS_SPI,
10897 .manufacture_id = ST_ID,
10898 .model_id = ST_N25Q00A__3G,
10899 .total_size = 131072,
10900 .page_size = 256,
10901 /* supports SFDP */
10902 /* OTP: 64B total; read 0x4B, write 0x42 */
10903 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10904 .tested = TEST_UNTESTED,
10905 .probe = probe_spi_rdid,
10906 .probe_timing = TIMING_ZERO,
10907 .block_erasers =
10908 {
10909 {
10910 .eraseblocks = { {4 * 1024, 32768} },
10911 .block_erase = spi_block_erase_21,
10912 }, {
10913 .eraseblocks = { {4 * 1024, 32768} },
10914 .block_erase = spi_block_erase_20,
10915 }, {
10916 .eraseblocks = { {64 * 1024, 2048} },
10917 .block_erase = spi_block_erase_dc,
10918 }, {
10919 .eraseblocks = { {64 * 1024, 2048} },
10920 .block_erase = spi_block_erase_d8,
10921 }, {
10922 .eraseblocks = { {32768 * 1024, 4} },
10923 .block_erase = spi_block_erase_c4,
10924 }
10925 },
10926 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10927 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10928 .write = spi_chip_write_256, /* Multi I/O supported */
10929 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10930 .voltage = {2700, 3600},
10931 },
10932
10933 {
10934 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010935 .name = "N25Q016",
10936 .bustype = BUS_SPI,
10937 .manufacture_id = ST_ID,
10938 .model_id = ST_N25Q016__1E,
10939 .total_size = 2048,
10940 .page_size = 256,
10941 /* supports SFDP */
10942 /* OTP: 64B total; read 0x4B, write 0x42 */
10943 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10944 .tested = TEST_UNTESTED,
10945 .probe = probe_spi_rdid,
10946 .probe_timing = TIMING_ZERO,
10947 .block_erasers =
10948 {
10949 {
10950 .eraseblocks = { {4 * 1024, 512} },
10951 .block_erase = spi_block_erase_20,
10952 }, {
10953 .eraseblocks = { {32 * 1024, 64} },
10954 .block_erase = spi_block_erase_52,
10955 }, {
10956 .eraseblocks = { {64 * 1024, 32} },
10957 .block_erase = spi_block_erase_d8,
10958 }, {
10959 .eraseblocks = { {2 * 1024 * 1024, 1} },
10960 .block_erase = spi_block_erase_c7,
10961 }
10962 },
10963 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10964 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10965 .write = spi_chip_write_256, /* Multi I/O supported */
10966 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10967 .voltage = {1700, 2000},
10968 },
10969
10970 {
10971 .vendor = "Micron/Numonyx/ST",
10972 .name = "N25Q032..1E",
10973 .bustype = BUS_SPI,
10974 .manufacture_id = ST_ID,
10975 .model_id = ST_N25Q032__1E,
10976 .total_size = 4096,
10977 .page_size = 256,
10978 /* supports SFDP */
10979 /* OTP: 64B total; read 0x4B, write 0x42 */
10980 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10981 .tested = TEST_UNTESTED,
10982 .probe = probe_spi_rdid,
10983 .probe_timing = TIMING_ZERO,
10984 .block_erasers =
10985 {
10986 {
10987 .eraseblocks = { {4 * 1024, 1024} },
10988 .block_erase = spi_block_erase_20,
10989 }, {
10990 .eraseblocks = { {64 * 1024, 64} },
10991 .block_erase = spi_block_erase_d8,
10992 }, {
10993 .eraseblocks = { {4 * 1024 * 1024, 1} },
10994 .block_erase = spi_block_erase_c7,
10995 }
10996 },
10997 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10998 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10999 .write = spi_chip_write_256, /* Multi I/O supported */
11000 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11001 .voltage = {1700, 2000},
11002 },
11003
11004 {
11005 .vendor = "Micron/Numonyx/ST",
11006 .name = "N25Q032..3E",
11007 .bustype = BUS_SPI,
11008 .manufacture_id = ST_ID,
11009 .model_id = ST_N25Q032__3E,
11010 .total_size = 4096,
11011 .page_size = 256,
11012 /* supports SFDP */
11013 /* OTP: 64B total; read 0x4B, write 0x42 */
11014 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11015 .tested = TEST_OK_PREW,
11016 .probe = probe_spi_rdid,
11017 .probe_timing = TIMING_ZERO,
11018 .block_erasers =
11019 {
11020 {
11021 .eraseblocks = { {4 * 1024, 1024} },
11022 .block_erase = spi_block_erase_20,
11023 }, {
11024 .eraseblocks = { {64 * 1024, 64} },
11025 .block_erase = spi_block_erase_d8,
11026 }, {
11027 .eraseblocks = { {4 * 1024 * 1024, 1} },
11028 .block_erase = spi_block_erase_c7,
11029 }
11030 },
11031 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11032 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11033 .write = spi_chip_write_256, /* Multi I/O supported */
11034 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11035 .voltage = {2700, 3600},
11036 },
11037
11038 {
11039 .vendor = "Micron/Numonyx/ST",
11040 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11041 .bustype = BUS_SPI,
11042 .manufacture_id = ST_ID,
11043 .model_id = ST_N25Q064__1E,
11044 .total_size = 8192,
11045 .page_size = 256,
11046 /* supports SFDP */
11047 /* OTP: 64B total; read 0x4B, write 0x42 */
11048 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011049 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011050 .probe = probe_spi_rdid,
11051 .probe_timing = TIMING_ZERO,
11052 .block_erasers =
11053 {
11054 {
11055 .eraseblocks = { {4 * 1024, 2048 } },
11056 .block_erase = spi_block_erase_20,
11057 }, {
11058 .eraseblocks = { {64 * 1024, 128} },
11059 .block_erase = spi_block_erase_d8,
11060 }, {
11061 .eraseblocks = { {8 * 1024 * 1024, 1} },
11062 .block_erase = spi_block_erase_c7,
11063 }
11064 },
11065 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11066 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11067 .write = spi_chip_write_256, /* Multi I/O supported */
11068 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11069 .voltage = {1700, 2000},
11070 },
11071
11072 {
11073 .vendor = "Micron/Numonyx/ST",
11074 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11075 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011076 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011077 .model_id = ST_N25Q064__3E,
11078 .total_size = 8192,
11079 .page_size = 256,
11080 /* supports SFDP */
11081 /* OTP: 64B total; read 0x4B, write 0x42 */
11082 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11083 .tested = TEST_OK_PREW,
11084 .probe = probe_spi_rdid,
11085 .probe_timing = TIMING_ZERO,
11086 .block_erasers =
11087 {
11088 {
11089 .eraseblocks = { {4 * 1024, 2048 } },
11090 .block_erase = spi_block_erase_20,
11091 }, {
11092 .eraseblocks = { {64 * 1024, 128} },
11093 .block_erase = spi_block_erase_d8,
11094 }, {
11095 .eraseblocks = { {8 * 1024 * 1024, 1} },
11096 .block_erase = spi_block_erase_c7,
11097 }
11098 },
11099 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11100 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11101 .write = spi_chip_write_256, /* Multi I/O supported */
11102 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11103 .voltage = {2700, 3600},
11104 },
11105
11106 {
11107 .vendor = "Micron/Numonyx/ST",
11108 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11109 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011110 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011111 .model_id = ST_N25Q128__1E,
11112 .total_size = 16384,
11113 .page_size = 256,
11114 /* supports SFDP */
11115 /* OTP: 64B total; read 0x4B, write 0x42 */
11116 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011117 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011118 .probe = probe_spi_rdid,
11119 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011120 .block_erasers =
11121 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011122 {
11123 .eraseblocks = { {4 * 1024, 4096 } },
11124 .block_erase = spi_block_erase_20,
11125 }, {
11126 .eraseblocks = { {64 * 1024, 256} },
11127 .block_erase = spi_block_erase_d8,
11128 }, {
11129 .eraseblocks = { {16384 * 1024, 1} },
11130 .block_erase = spi_block_erase_c7,
11131 }
11132 },
11133 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11134 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11135 .write = spi_chip_write_256, /* Multi I/O supported */
11136 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11137 .voltage = {1700, 2000},
11138 },
11139
11140 {
11141 .vendor = "Micron/Numonyx/ST",
11142 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11143 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011144 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011145 .model_id = ST_N25Q128__3E,
11146 .total_size = 16384,
11147 .page_size = 256,
11148 /* supports SFDP */
11149 /* OTP: 64B total; read 0x4B, write 0x42 */
11150 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11151 .tested = TEST_OK_PREW,
11152 .probe = probe_spi_rdid,
11153 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011154 .block_erasers =
11155 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011156 {
11157 .eraseblocks = { {4 * 1024, 4096 } },
11158 .block_erase = spi_block_erase_20,
11159 }, {
11160 .eraseblocks = { {64 * 1024, 256} },
11161 .block_erase = spi_block_erase_d8,
11162 }, {
11163 .eraseblocks = { {16384 * 1024, 1} },
11164 .block_erase = spi_block_erase_c7,
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 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011175 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011176 .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11177 .bustype = BUS_SPI,
11178 .manufacture_id = ST_ID,
11179 .model_id = ST_N25Q256__1E,
11180 .total_size = 32768,
11181 .page_size = 256,
11182 /* supports SFDP */
11183 /* OTP: 64B total; read 0x4B, write 0x42 */
11184 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11185 .tested = TEST_UNTESTED,
11186 .probe = probe_spi_rdid,
11187 .probe_timing = TIMING_ZERO,
11188 .block_erasers =
11189 {
11190 {
11191 .eraseblocks = { {4 * 1024, 8192} },
11192 .block_erase = spi_block_erase_21,
11193 }, {
11194 .eraseblocks = { {4 * 1024, 8192} },
11195 .block_erase = spi_block_erase_20,
11196 }, {
11197 .eraseblocks = { {64 * 1024, 512} },
11198 .block_erase = spi_block_erase_dc,
11199 }, {
11200 .eraseblocks = { {64 * 1024, 512} },
11201 .block_erase = spi_block_erase_d8,
11202 }, {
11203 .eraseblocks = { {32768 * 1024, 1} },
11204 .block_erase = spi_block_erase_c7,
11205 }
11206 },
11207 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11208 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11209 .write = spi_chip_write_256, /* Multi I/O supported */
11210 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11211 .voltage = {1700, 2000},
11212 },
11213
11214 {
11215 .vendor = "Micron/Numonyx/ST",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011216 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11217 .bustype = BUS_SPI,
11218 .manufacture_id = ST_ID,
11219 .model_id = ST_N25Q256__3E,
11220 .total_size = 32768,
11221 .page_size = 256,
11222 /* supports SFDP */
11223 /* OTP: 64B total; read 0x4B, write 0x42 */
11224 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11225 .tested = TEST_UNTESTED,
11226 .probe = probe_spi_rdid,
11227 .probe_timing = TIMING_ZERO,
11228 .block_erasers =
11229 {
11230 {
11231 .eraseblocks = { {4 * 1024, 8192} },
11232 .block_erase = spi_block_erase_21,
11233 }, {
11234 .eraseblocks = { {4 * 1024, 8192} },
11235 .block_erase = spi_block_erase_20,
11236 }, {
11237 .eraseblocks = { {64 * 1024, 512} },
11238 .block_erase = spi_block_erase_dc,
11239 }, {
11240 .eraseblocks = { {64 * 1024, 512} },
11241 .block_erase = spi_block_erase_d8,
11242 }, {
11243 .eraseblocks = { {32768 * 1024, 1} },
11244 .block_erase = spi_block_erase_c7,
11245 }
11246 },
11247 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11248 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11249 .write = spi_chip_write_256, /* Multi I/O supported */
11250 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11251 .voltage = {2700, 3600},
11252 },
11253
11254 {
11255 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011256 .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011257 .bustype = BUS_SPI,
11258 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011259 .model_id = ST_N25Q512__1G,
11260 .total_size = 65536,
11261 .page_size = 256,
11262 /* supports SFDP */
11263 /* OTP: 64B total; read 0x4B, write 0x42 */
11264 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11265 .tested = TEST_UNTESTED,
11266 .probe = probe_spi_rdid,
11267 .probe_timing = TIMING_ZERO,
11268 .block_erasers =
11269 {
11270 {
11271 .eraseblocks = { {4 * 1024, 16384} },
11272 .block_erase = spi_block_erase_21,
11273 }, {
11274 .eraseblocks = { {4 * 1024, 16384} },
11275 .block_erase = spi_block_erase_20,
11276 }, {
11277 .eraseblocks = { {64 * 1024, 1024} },
11278 .block_erase = spi_block_erase_dc,
11279 }, {
11280 .eraseblocks = { {64 * 1024, 1024} },
11281 .block_erase = spi_block_erase_d8,
11282 }, {
11283 .eraseblocks = { {32768 * 1024, 2} },
11284 .block_erase = spi_block_erase_c4,
11285 }
11286 },
11287 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11288 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11289 .write = spi_chip_write_256, /* Multi I/O supported */
11290 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11291 .voltage = {1700, 2000},
11292 },
11293
11294 {
11295 .vendor = "Micron/Numonyx/ST",
11296 .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
11297 .bustype = BUS_SPI,
11298 .manufacture_id = ST_ID,
11299 .model_id = ST_N25Q512__3G,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011300 .total_size = 65536,
11301 .page_size = 256,
11302 /* supports SFDP */
11303 /* OTP: 64B total; read 0x4B, write 0x42 */
11304 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11305 .tested = TEST_OK_PREW,
11306 .probe = probe_spi_rdid,
11307 .probe_timing = TIMING_ZERO,
11308 .block_erasers =
11309 {
11310 {
11311 .eraseblocks = { {4 * 1024, 16384} },
11312 .block_erase = spi_block_erase_21,
11313 }, {
11314 .eraseblocks = { {4 * 1024, 16384} },
11315 .block_erase = spi_block_erase_20,
11316 }, {
11317 .eraseblocks = { {64 * 1024, 1024} },
11318 .block_erase = spi_block_erase_dc,
11319 }, {
11320 .eraseblocks = { {64 * 1024, 1024} },
11321 .block_erase = spi_block_erase_d8,
11322 }, {
Jacob Creedone8e7b0e2019-07-22 12:21:22 -070011323 .eraseblocks = { {32768 * 1024, 2} },
11324 .block_erase = spi_block_erase_c4,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011325 }
11326 },
11327 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11328 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11329 .write = spi_chip_write_256, /* Multi I/O supported */
11330 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11331 .voltage = {2700, 3600},
11332 },
11333
11334 {
Ed Swierk199ab392017-07-03 13:33:44 -070011335 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011336 .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11337 .bustype = BUS_SPI,
11338 .manufacture_id = ST_ID,
11339 .model_id = ST_N25Q00A__3G,
11340 .total_size = 131072,
11341 .page_size = 256,
11342 /* supports SFDP */
11343 /* OTP: 64B total; read 0x4B, write 0x42 */
11344 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11345 .tested = TEST_OK_PREW,
11346 .probe = probe_spi_rdid,
11347 .probe_timing = TIMING_ZERO,
11348 .block_erasers =
11349 {
11350 {
11351 .eraseblocks = { {4 * 1024, 32768} },
11352 .block_erase = spi_block_erase_21,
11353 }, {
11354 .eraseblocks = { {4 * 1024, 32768} },
11355 .block_erase = spi_block_erase_20,
11356 }, {
11357 .eraseblocks = { {32 * 1024, 4096} },
11358 .block_erase = spi_block_erase_5c,
11359 }, {
11360 .eraseblocks = { {32 * 1024, 4096} },
11361 .block_erase = spi_block_erase_52,
11362 }, {
11363 .eraseblocks = { {64 * 1024, 2048} },
11364 .block_erase = spi_block_erase_dc,
11365 }, {
11366 .eraseblocks = { {64 * 1024, 2048} },
11367 .block_erase = spi_block_erase_d8,
11368 }, {
11369 .eraseblocks = { {65536 * 1024, 2} },
11370 .block_erase = spi_block_erase_c4,
11371 }
11372 },
11373 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11374 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11375 .write = spi_chip_write_256, /* Multi I/O supported */
11376 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11377 .voltage = {2700, 3600},
11378 },
11379
11380 {
11381 .vendor = "Micron",
11382 .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11383 .bustype = BUS_SPI,
11384 .manufacture_id = ST_ID,
11385 .model_id = ST_N25Q00A__1G,
11386 .total_size = 131072,
11387 .page_size = 256,
11388 /* supports SFDP */
11389 /* OTP: 64B total; read 0x4B, write 0x42 */
11390 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11391 .tested = TEST_UNTESTED,
11392 .probe = probe_spi_rdid,
11393 .probe_timing = TIMING_ZERO,
11394 .block_erasers =
11395 {
11396 {
11397 .eraseblocks = { {4 * 1024, 32768} },
11398 .block_erase = spi_block_erase_21,
11399 }, {
11400 .eraseblocks = { {4 * 1024, 32768} },
11401 .block_erase = spi_block_erase_20,
11402 }, {
11403 .eraseblocks = { {32 * 1024, 4096} },
11404 .block_erase = spi_block_erase_5c,
11405 }, {
11406 .eraseblocks = { {32 * 1024, 4096} },
11407 .block_erase = spi_block_erase_52,
11408 }, {
11409 .eraseblocks = { {64 * 1024, 2048} },
11410 .block_erase = spi_block_erase_dc,
11411 }, {
11412 .eraseblocks = { {64 * 1024, 2048} },
11413 .block_erase = spi_block_erase_d8,
11414 }, {
11415 .eraseblocks = { {65536 * 1024, 2} },
11416 .block_erase = spi_block_erase_c4,
11417 }
11418 },
11419 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11420 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11421 .write = spi_chip_write_256, /* Multi I/O supported */
11422 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11423 .voltage = {1700, 2000},
11424 },
11425
11426 {
11427 .vendor = "Micron",
11428 .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11429 .bustype = BUS_SPI,
11430 .manufacture_id = ST_ID,
11431 .model_id = ST_MT25QL02G,
11432 .total_size = 262144,
11433 .page_size = 256,
11434 /* supports SFDP */
11435 /* OTP: 64B total; read 0x4B, write 0x42 */
11436 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11437 .tested = TEST_UNTESTED,
11438 .probe = probe_spi_rdid,
11439 .probe_timing = TIMING_ZERO,
11440 .block_erasers =
11441 {
11442 {
11443 .eraseblocks = { {4 * 1024, 65536} },
11444 .block_erase = spi_block_erase_21,
11445 }, {
11446 .eraseblocks = { {4 * 1024, 65536} },
11447 .block_erase = spi_block_erase_20,
11448 }, {
11449 .eraseblocks = { {32 * 1024, 8192} },
11450 .block_erase = spi_block_erase_5c,
11451 }, {
11452 .eraseblocks = { {32 * 1024, 8192} },
11453 .block_erase = spi_block_erase_52,
11454 }, {
11455 .eraseblocks = { {64 * 1024, 4096} },
11456 .block_erase = spi_block_erase_dc,
11457 }, {
11458 .eraseblocks = { {64 * 1024, 4096} },
11459 .block_erase = spi_block_erase_d8,
11460 }, {
11461 .eraseblocks = { {65536 * 1024, 4} },
11462 .block_erase = spi_block_erase_c4,
11463 }
11464 },
11465 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11466 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11467 .write = spi_chip_write_256, /* Multi I/O supported */
11468 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11469 .voltage = {2700, 3600},
11470 },
11471
11472 {
11473 .vendor = "Micron",
11474 .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11475 .bustype = BUS_SPI,
11476 .manufacture_id = ST_ID,
11477 .model_id = ST_MT25QU02G,
11478 .total_size = 262144,
11479 .page_size = 256,
11480 /* supports SFDP */
11481 /* OTP: 64B total; read 0x4B, write 0x42 */
11482 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11483 .tested = TEST_UNTESTED,
11484 .probe = probe_spi_rdid,
11485 .probe_timing = TIMING_ZERO,
11486 .block_erasers =
11487 {
11488 {
11489 .eraseblocks = { {4 * 1024, 65536} },
11490 .block_erase = spi_block_erase_21,
11491 }, {
11492 .eraseblocks = { {4 * 1024, 65536} },
11493 .block_erase = spi_block_erase_20,
11494 }, {
11495 .eraseblocks = { {32 * 1024, 8192} },
11496 .block_erase = spi_block_erase_5c,
11497 }, {
11498 .eraseblocks = { {32 * 1024, 8192} },
11499 .block_erase = spi_block_erase_52,
11500 }, {
11501 .eraseblocks = { {64 * 1024, 4096} },
11502 .block_erase = spi_block_erase_dc,
11503 }, {
11504 .eraseblocks = { {64 * 1024, 4096} },
11505 .block_erase = spi_block_erase_d8,
11506 }, {
11507 .eraseblocks = { {65536 * 1024, 4} },
11508 .block_erase = spi_block_erase_c4,
11509 }
11510 },
11511 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11512 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11513 .write = spi_chip_write_256, /* Multi I/O supported */
11514 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11515 .voltage = {1700, 2000},
11516 },
11517
11518 {
11519 .vendor = "Micron",
11520 .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11521 .bustype = BUS_SPI,
11522 .manufacture_id = ST_ID,
11523 .model_id = ST_N25Q128__1E,
11524 .total_size = 16384,
11525 .page_size = 256,
11526 /* supports SFDP */
11527 /* OTP: 64B total; read 0x4B, write 0x42 */
11528 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11529 .tested = TEST_UNTESTED,
11530 .probe = probe_spi_rdid,
11531 .probe_timing = TIMING_ZERO,
11532 .block_erasers =
11533 {
11534 {
11535 .eraseblocks = { {4 * 1024, 4096} },
11536 .block_erase = spi_block_erase_20,
11537 }, {
11538 .eraseblocks = { {32 * 1024, 512} },
11539 .block_erase = spi_block_erase_52,
11540 }, {
11541 .eraseblocks = { {64 * 1024, 256} },
11542 .block_erase = spi_block_erase_d8,
11543 }, {
11544 .eraseblocks = { {16384 * 1024, 1} },
11545 .block_erase = spi_block_erase_c7,
11546 }, {
11547 .eraseblocks = { {16384 * 1024, 1} },
11548 .block_erase = spi_block_erase_60,
11549 }
11550 },
11551 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11552 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11553 .write = spi_chip_write_256, /* Multi I/O supported */
11554 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11555 .voltage = {1700, 2000},
11556 },
11557
11558 {
11559 .vendor = "Micron",
11560 .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11561 .bustype = BUS_SPI,
11562 .manufacture_id = ST_ID,
11563 .model_id = ST_N25Q128__3E,
11564 .total_size = 16384,
11565 .page_size = 256,
11566 /* supports SFDP */
11567 /* OTP: 64B total; read 0x4B, write 0x42 */
11568 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11569 .tested = TEST_UNTESTED,
11570 .probe = probe_spi_rdid,
11571 .probe_timing = TIMING_ZERO,
11572 .block_erasers =
11573 {
11574 {
11575 .eraseblocks = { {4 * 1024, 4096} },
11576 .block_erase = spi_block_erase_20,
11577 }, {
11578 .eraseblocks = { {32 * 1024, 512} },
11579 .block_erase = spi_block_erase_52,
11580 }, {
11581 .eraseblocks = { {64 * 1024, 256} },
11582 .block_erase = spi_block_erase_d8,
11583 }, {
11584 .eraseblocks = { {16384 * 1024, 1} },
11585 .block_erase = spi_block_erase_c7,
11586 }, {
11587 .eraseblocks = { {16384 * 1024, 1} },
11588 .block_erase = spi_block_erase_60,
11589 }
11590 },
11591 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11592 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11593 .write = spi_chip_write_256, /* Multi I/O supported */
11594 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11595 .voltage = {2700, 3600},
11596 },
11597
11598 {
11599 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011600 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011601 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011602 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070011603 .model_id = ST_N25Q256__3E,
11604 .total_size = 32768,
11605 .page_size = 256,
11606 /* supports SFDP */
11607 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011608 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11609 .tested = TEST_UNTESTED,
Ed Swierk199ab392017-07-03 13:33:44 -070011610 .probe = probe_spi_rdid,
11611 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011612 .block_erasers =
11613 {
Ed Swierk199ab392017-07-03 13:33:44 -070011614 {
11615 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011616 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011617 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011618 .eraseblocks = { {4 * 1024, 8192} },
11619 .block_erase = spi_block_erase_20,
11620 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011621 .eraseblocks = { {32 * 1024, 1024} },
11622 .block_erase = spi_block_erase_5c,
11623 }, {
11624 .eraseblocks = { {32 * 1024, 1024} },
11625 .block_erase = spi_block_erase_52,
11626 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011627 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011628 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011629 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011630 .eraseblocks = { {64 * 1024, 512} },
11631 .block_erase = spi_block_erase_d8,
11632 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011633 .eraseblocks = { {32768 * 1024, 1} },
11634 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011635 }, {
11636 .eraseblocks = { {32768 * 1024, 1} },
11637 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011638 }
11639 },
11640 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11641 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11642 .write = spi_chip_write_256, /* Multi I/O supported */
11643 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11644 .voltage = {2700, 3600},
11645 },
11646
11647 {
11648 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011649 .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11650 .bustype = BUS_SPI,
11651 .manufacture_id = ST_ID,
11652 .model_id = ST_N25Q256__1E,
11653 .total_size = 32768,
11654 .page_size = 256,
11655 /* supports SFDP */
11656 /* OTP: 64B total; read 0x4B, write 0x42 */
11657 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11658 .tested = TEST_UNTESTED,
11659 .probe = probe_spi_rdid,
11660 .probe_timing = TIMING_ZERO,
11661 .block_erasers =
11662 {
11663 {
11664 .eraseblocks = { {4 * 1024, 8192} },
11665 .block_erase = spi_block_erase_21,
11666 }, {
11667 .eraseblocks = { {4 * 1024, 8192} },
11668 .block_erase = spi_block_erase_20,
11669 }, {
11670 .eraseblocks = { {32 * 1024, 1024} },
11671 .block_erase = spi_block_erase_5c,
11672 }, {
11673 .eraseblocks = { {32 * 1024, 1024} },
11674 .block_erase = spi_block_erase_52,
11675 }, {
11676 .eraseblocks = { {64 * 1024, 512} },
11677 .block_erase = spi_block_erase_dc,
11678 }, {
11679 .eraseblocks = { {64 * 1024, 512} },
11680 .block_erase = spi_block_erase_d8,
11681 }, {
11682 .eraseblocks = { {32768 * 1024, 1} },
11683 .block_erase = spi_block_erase_c7,
11684 }, {
11685 .eraseblocks = { {32768 * 1024, 1} },
11686 .block_erase = spi_block_erase_60,
11687 }
11688 },
11689 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11690 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11691 .write = spi_chip_write_256, /* Multi I/O supported */
11692 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11693 .voltage = {1700, 2000},
11694 },
11695
11696 {
11697 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011698 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011699 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011700 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011701 .model_id = ST_N25Q512__3G,
Ed Swierk199ab392017-07-03 13:33:44 -070011702 .total_size = 65536,
11703 .page_size = 256,
11704 /* supports SFDP */
11705 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011706 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020011707 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011708 .probe = probe_spi_rdid,
11709 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011710 .block_erasers =
11711 {
Ed Swierk199ab392017-07-03 13:33:44 -070011712 {
11713 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011714 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011715 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011716 .eraseblocks = { {4 * 1024, 16384} },
11717 .block_erase = spi_block_erase_20,
11718 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011719 .eraseblocks = { {32 * 1024, 2048} },
11720 .block_erase = spi_block_erase_5c,
11721 }, {
11722 .eraseblocks = { {32 * 1024, 2048} },
11723 .block_erase = spi_block_erase_52,
11724 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011725 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011726 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011727 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011728 .eraseblocks = { {64 * 1024, 1024} },
11729 .block_erase = spi_block_erase_d8,
11730 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011731 .eraseblocks = { {65536 * 1024, 1} },
11732 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011733 }, {
11734 .eraseblocks = { {65536 * 1024, 1} },
11735 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011736 }
11737 },
11738 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11739 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11740 .write = spi_chip_write_256, /* Multi I/O supported */
11741 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11742 .voltage = {2700, 3600},
11743 },
11744
11745 {
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011746 .vendor = "Micron",
11747 .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11748 .bustype = BUS_SPI,
11749 .manufacture_id = ST_ID,
11750 .model_id = ST_N25Q512__1G,
11751 .total_size = 65536,
11752 .page_size = 256,
11753 /* supports SFDP */
11754 /* OTP: 64B total; read 0x4B, write 0x42 */
11755 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11756 .tested = TEST_OK_PREW,
11757 .probe = probe_spi_rdid,
11758 .probe_timing = TIMING_ZERO,
11759 .block_erasers =
11760 {
11761 {
11762 .eraseblocks = { {4 * 1024, 16384} },
11763 .block_erase = spi_block_erase_21,
11764 }, {
11765 .eraseblocks = { {4 * 1024, 16384} },
11766 .block_erase = spi_block_erase_20,
11767 }, {
11768 .eraseblocks = { {32 * 1024, 2048} },
11769 .block_erase = spi_block_erase_5c,
11770 }, {
11771 .eraseblocks = { {32 * 1024, 2048} },
11772 .block_erase = spi_block_erase_52,
11773 }, {
11774 .eraseblocks = { {64 * 1024, 1024} },
11775 .block_erase = spi_block_erase_dc,
11776 }, {
11777 .eraseblocks = { {64 * 1024, 1024} },
11778 .block_erase = spi_block_erase_d8,
11779 }, {
11780 .eraseblocks = { {65536 * 1024, 1} },
11781 .block_erase = spi_block_erase_c7,
11782 }, {
11783 .eraseblocks = { {65536 * 1024, 1} },
11784 .block_erase = spi_block_erase_60,
11785 }
11786 },
11787 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11788 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11789 .write = spi_chip_write_256, /* Multi I/O supported */
11790 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11791 .voltage = {1700, 2000},
11792 },
11793
11794 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011795 .vendor = "MoselVitelic",
11796 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011797 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011798 .manufacture_id = SYNCMOS_MVC_ID,
11799 .model_id = MVC_V29C51000B,
11800 .total_size = 64,
11801 .page_size = 512,
11802 .feature_bits = FEATURE_EITHER_RESET,
11803 .tested = TEST_UNTESTED,
11804 .probe = probe_jedec,
11805 .probe_timing = TIMING_ZERO,
11806 .block_erasers =
11807 {
11808 {
11809 .eraseblocks = { {512, 128} },
11810 .block_erase = erase_sector_jedec,
11811 }, {
11812 .eraseblocks = { {64 * 1024, 1} },
11813 .block_erase = erase_chip_block_jedec,
11814 },
11815 },
11816 .write = write_jedec_1,
11817 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011818 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011819 },
11820
11821 {
11822 .vendor = "MoselVitelic",
11823 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011824 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011825 .manufacture_id = SYNCMOS_MVC_ID,
11826 .model_id = MVC_V29C51000T,
11827 .total_size = 64,
11828 .page_size = 512,
11829 .feature_bits = FEATURE_EITHER_RESET,
11830 .tested = TEST_UNTESTED,
11831 .probe = probe_jedec,
11832 .probe_timing = TIMING_ZERO,
11833 .block_erasers =
11834 {
11835 {
11836 .eraseblocks = { {512, 128} },
11837 .block_erase = erase_sector_jedec,
11838 }, {
11839 .eraseblocks = { {64 * 1024, 1} },
11840 .block_erase = erase_chip_block_jedec,
11841 },
11842 },
11843 .write = write_jedec_1,
11844 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011845 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011846 },
11847
11848 {
11849 .vendor = "MoselVitelic",
11850 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011851 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011852 .manufacture_id = SYNCMOS_MVC_ID,
11853 .model_id = MVC_V29C51400B,
11854 .total_size = 512,
11855 .page_size = 1024,
11856 .feature_bits = FEATURE_EITHER_RESET,
11857 .tested = TEST_UNTESTED,
11858 .probe = probe_jedec,
11859 .probe_timing = TIMING_ZERO,
11860 .block_erasers =
11861 {
11862 {
11863 .eraseblocks = { {1024, 512} },
11864 .block_erase = erase_sector_jedec,
11865 }, {
11866 .eraseblocks = { {512 * 1024, 1} },
11867 .block_erase = erase_chip_block_jedec,
11868 },
11869 },
11870 .write = write_jedec_1,
11871 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011872 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011873 },
11874
11875 {
11876 .vendor = "MoselVitelic",
11877 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011878 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011879 .manufacture_id = SYNCMOS_MVC_ID,
11880 .model_id = MVC_V29C51400T,
11881 .total_size = 512,
11882 .page_size = 1024,
11883 .feature_bits = FEATURE_EITHER_RESET,
11884 .tested = TEST_UNTESTED,
11885 .probe = probe_jedec,
11886 .probe_timing = TIMING_ZERO,
11887 .block_erasers =
11888 {
11889 {
11890 .eraseblocks = { {1024, 512} },
11891 .block_erase = erase_sector_jedec,
11892 }, {
11893 .eraseblocks = { {512 * 1024, 1} },
11894 .block_erase = erase_chip_block_jedec,
11895 },
11896 },
11897 .write = write_jedec_1,
11898 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011899 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011900 },
11901
11902 {
11903 .vendor = "MoselVitelic",
11904 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011905 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011906 .manufacture_id = SYNCMOS_MVC_ID,
11907 .model_id = MVC_V29LC51000,
11908 .total_size = 64,
11909 .page_size = 512,
11910 .feature_bits = FEATURE_EITHER_RESET,
11911 .tested = TEST_UNTESTED,
11912 .probe = probe_jedec,
11913 .probe_timing = TIMING_ZERO,
11914 .block_erasers =
11915 {
11916 {
11917 .eraseblocks = { {512, 128} },
11918 .block_erase = erase_sector_jedec,
11919 }, {
11920 .eraseblocks = { {64 * 1024, 1} },
11921 .block_erase = erase_chip_block_jedec,
11922 },
11923 },
11924 .write = write_jedec_1,
11925 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011926 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011927 },
11928
11929 {
11930 .vendor = "MoselVitelic",
11931 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011932 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011933 .manufacture_id = SYNCMOS_MVC_ID,
11934 .model_id = MVC_V29LC51001,
11935 .total_size = 128,
11936 .page_size = 512,
11937 .feature_bits = FEATURE_EITHER_RESET,
11938 .tested = TEST_UNTESTED,
11939 .probe = probe_jedec,
11940 .probe_timing = TIMING_ZERO,
11941 .block_erasers =
11942 {
11943 {
11944 .eraseblocks = { {512, 256} },
11945 .block_erase = erase_sector_jedec,
11946 }, {
11947 .eraseblocks = { {128 * 1024, 1} },
11948 .block_erase = erase_chip_block_jedec,
11949 },
11950 },
11951 .write = write_jedec_1,
11952 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011953 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011954 },
11955
11956 {
11957 .vendor = "MoselVitelic",
11958 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011959 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011960 .manufacture_id = SYNCMOS_MVC_ID,
11961 .model_id = MVC_V29LC51002,
11962 .total_size = 256,
11963 .page_size = 512,
11964 .feature_bits = FEATURE_EITHER_RESET,
11965 .tested = TEST_UNTESTED,
11966 .probe = probe_jedec,
11967 .probe_timing = TIMING_ZERO,
11968 .block_erasers =
11969 {
11970 {
11971 .eraseblocks = { {512, 512} },
11972 .block_erase = erase_sector_jedec,
11973 }, {
11974 .eraseblocks = { {256 * 1024, 1} },
11975 .block_erase = erase_chip_block_jedec,
11976 },
11977 },
11978 .write = write_jedec_1,
11979 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011980 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011981 },
11982
11983 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011984 .vendor = "Nantronics",
11985 .name = "N25S10",
11986 .bustype = BUS_SPI,
11987 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11988 .model_id = NANTRONICS_N25S10,
11989 .total_size = 128,
11990 .page_size = 256,
11991 .feature_bits = FEATURE_WRSR_WREN,
11992 .tested = TEST_UNTESTED,
11993 .probe = probe_spi_rdid,
11994 .probe_timing = TIMING_ZERO,
11995 .block_erasers =
11996 {
11997 {
11998 .eraseblocks = { {4 * 1024, 32} },
11999 .block_erase = spi_block_erase_20,
12000 }, {
12001 .eraseblocks = { {4 * 1024, 32} },
12002 .block_erase = spi_block_erase_d7,
12003 }, {
12004 .eraseblocks = { {32 * 1024, 4} },
12005 .block_erase = spi_block_erase_52,
12006 }, {
12007 .eraseblocks = { {64 * 1024, 2} },
12008 .block_erase = spi_block_erase_d8,
12009 }, {
12010 .eraseblocks = { {128 * 1024, 1} },
12011 .block_erase = spi_block_erase_60,
12012 }, {
12013 .eraseblocks = { {128 * 1024, 1} },
12014 .block_erase = spi_block_erase_c7,
12015 }
12016 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012017 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012018 .unlock = spi_disable_blockprotect_bp3_srwd,
12019 .write = spi_chip_write_256,
12020 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12021 .voltage = {2700, 3600},
12022 },
12023
12024 {
12025 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012026 .name = "N25S16",
12027 .bustype = BUS_SPI,
12028 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12029 .model_id = NANTRONICS_N25S16,
12030 .total_size = 2048,
12031 .page_size = 256,
12032 .feature_bits = FEATURE_WRSR_WREN,
12033 .tested = TEST_UNTESTED,
12034 .probe = probe_spi_rdid,
12035 .probe_timing = TIMING_ZERO,
12036 .block_erasers =
12037 {
12038 {
12039 .eraseblocks = { {4 * 1024, 512} },
12040 .block_erase = spi_block_erase_20,
12041 }, {
12042 .eraseblocks = { {64 * 1024, 32} },
12043 .block_erase = spi_block_erase_d8,
12044 }, {
12045 .eraseblocks = { {2048 * 1024, 1} },
12046 .block_erase = spi_block_erase_60,
12047 }, {
12048 .eraseblocks = { {2048 * 1024, 1} },
12049 .block_erase = spi_block_erase_c7,
12050 }
12051 },
12052 .printlock = spi_prettyprint_status_register_bp3_srwd,
12053 .unlock = spi_disable_blockprotect_bp3_srwd,
12054 .write = spi_chip_write_256,
12055 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12056 .voltage = {2700, 3600},
12057 },
12058
12059 {
12060 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012061 .name = "N25S20",
12062 .bustype = BUS_SPI,
12063 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12064 .model_id = NANTRONICS_N25S20,
12065 .total_size = 256,
12066 .page_size = 256,
12067 .feature_bits = FEATURE_WRSR_WREN,
12068 .tested = TEST_UNTESTED,
12069 .probe = probe_spi_rdid,
12070 .probe_timing = TIMING_ZERO,
12071 .block_erasers =
12072 {
12073 {
12074 .eraseblocks = { {4 * 1024, 64} },
12075 .block_erase = spi_block_erase_20,
12076 }, {
12077 .eraseblocks = { {4 * 1024, 64} },
12078 .block_erase = spi_block_erase_d7,
12079 }, {
12080 .eraseblocks = { {32 * 1024, 8} },
12081 .block_erase = spi_block_erase_52,
12082 }, {
12083 .eraseblocks = { {64 * 1024, 4} },
12084 .block_erase = spi_block_erase_d8,
12085 }, {
12086 .eraseblocks = { {256 * 1024, 1} },
12087 .block_erase = spi_block_erase_60,
12088 }, {
12089 .eraseblocks = { {256 * 1024, 1} },
12090 .block_erase = spi_block_erase_c7,
12091 }
12092 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012093 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012094 .unlock = spi_disable_blockprotect_bp3_srwd,
12095 .write = spi_chip_write_256,
12096 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12097 .voltage = {2700, 3600},
12098 },
12099
12100 {
12101 .vendor = "Nantronics",
12102 .name = "N25S40",
12103 .bustype = BUS_SPI,
12104 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12105 .model_id = NANTRONICS_N25S40,
12106 .total_size = 512,
12107 .page_size = 256,
12108 .feature_bits = FEATURE_WRSR_WREN,
12109 .tested = TEST_UNTESTED,
12110 .probe = probe_spi_rdid,
12111 .probe_timing = TIMING_ZERO,
12112 .block_erasers =
12113 {
12114 {
12115 .eraseblocks = { {4 * 1024, 128} },
12116 .block_erase = spi_block_erase_20,
12117 }, {
12118 .eraseblocks = { {4 * 1024, 128} },
12119 .block_erase = spi_block_erase_d7,
12120 }, {
12121 .eraseblocks = { {32 * 1024, 16} },
12122 .block_erase = spi_block_erase_52,
12123 }, {
12124 .eraseblocks = { {64 * 1024, 8} },
12125 .block_erase = spi_block_erase_d8,
12126 }, {
12127 .eraseblocks = { {512 * 1024, 1} },
12128 .block_erase = spi_block_erase_60,
12129 }, {
12130 .eraseblocks = { {512 * 1024, 1} },
12131 .block_erase = spi_block_erase_c7,
12132 }
12133 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012134 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012135 .unlock = spi_disable_blockprotect_bp3_srwd,
12136 .write = spi_chip_write_256,
12137 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12138 .voltage = {2700, 3600},
12139 },
12140
12141 {
12142 .vendor = "Nantronics",
12143 .name = "N25S80",
12144 .bustype = BUS_SPI,
12145 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12146 .model_id = NANTRONICS_N25S80,
12147 .total_size = 1024,
12148 .page_size = 256,
12149 .feature_bits = FEATURE_WRSR_WREN,
12150 .tested = TEST_UNTESTED,
12151 .probe = probe_spi_rdid,
12152 .probe_timing = TIMING_ZERO,
12153 .block_erasers =
12154 {
12155 {
12156 .eraseblocks = { {4 * 1024, 256} },
12157 .block_erase = spi_block_erase_20,
12158 }, {
12159 .eraseblocks = { {32 * 1024, 32} },
12160 .block_erase = spi_block_erase_52,
12161 }, {
12162 .eraseblocks = { {64 * 1024, 16} },
12163 .block_erase = spi_block_erase_d8,
12164 }, {
12165 .eraseblocks = { {1024 * 1024, 1} },
12166 .block_erase = spi_block_erase_60,
12167 }, {
12168 .eraseblocks = { {1024 * 1024, 1} },
12169 .block_erase = spi_block_erase_c7,
12170 }
12171 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012172 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012173 .unlock = spi_disable_blockprotect_bp3_srwd,
12174 .write = spi_chip_write_256,
12175 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12176 .voltage = {2700, 3600},
12177 },
12178
12179 {
Stefan Taunerf4451612013-04-19 01:59:15 +000012180 .vendor = "PMC",
12181 .name = "Pm25LD010(C)",
12182 .bustype = BUS_SPI,
12183 .manufacture_id = PMC_ID,
12184 .model_id = PMC_PM25LD010,
12185 .total_size = 128,
12186 .page_size = 256,
12187 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012188 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012189 .probe = probe_spi_rdid,
12190 .probe_timing = TIMING_ZERO,
12191 .block_erasers =
12192 {
12193 {
12194 .eraseblocks = { {4 * 1024, 32} },
12195 .block_erase = spi_block_erase_20,
12196 }, {
12197 .eraseblocks = { {4 * 1024, 32} },
12198 .block_erase = spi_block_erase_d7,
12199 }, {
12200 .eraseblocks = { {32 * 1024, 4} },
12201 .block_erase = spi_block_erase_d8,
12202 }, {
12203 .eraseblocks = { {128 * 1024, 1} },
12204 .block_erase = spi_block_erase_60,
12205 }, {
12206 .eraseblocks = { {128 * 1024, 1} },
12207 .block_erase = spi_block_erase_c7,
12208 }
12209 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012210 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012211 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12212 .write = spi_chip_write_256,
12213 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12214 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
12215 },
12216
12217 {
12218 .vendor = "PMC",
12219 .name = "Pm25LD020(C)",
12220 .bustype = BUS_SPI,
12221 .manufacture_id = PMC_ID,
12222 .model_id = PMC_PM25LD020,
12223 .total_size = 256,
12224 .page_size = 256,
12225 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020012226 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012227 .probe = probe_spi_rdid,
12228 .probe_timing = TIMING_ZERO,
12229 .block_erasers =
12230 {
12231 {
12232 .eraseblocks = { {4 * 1024, 64} },
12233 .block_erase = spi_block_erase_20,
12234 }, {
12235 .eraseblocks = { {4 * 1024, 64} },
12236 .block_erase = spi_block_erase_d7,
12237 }, {
12238 .eraseblocks = { {64 * 1024, 4} },
12239 .block_erase = spi_block_erase_d8,
12240 }, {
12241 .eraseblocks = { {256 * 1024, 1} },
12242 .block_erase = spi_block_erase_60,
12243 }, {
12244 .eraseblocks = { {256 * 1024, 1} },
12245 .block_erase = spi_block_erase_c7,
12246 }
12247 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012248 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012249 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12250 .write = spi_chip_write_256,
12251 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12252 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
12253 },
12254
12255 {
12256 .vendor = "PMC",
12257 .name = "Pm25LD040(C)",
12258 .bustype = BUS_SPI,
12259 .manufacture_id = PMC_ID,
12260 .model_id = PMC_PM25LV040,
12261 .total_size = 512,
12262 .page_size = 256,
12263 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020012264 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012265 .probe = probe_spi_rdid,
12266 .probe_timing = TIMING_ZERO,
12267 .block_erasers =
12268 {
12269 {
12270 .eraseblocks = { {4 * 1024, 128} },
12271 .block_erase = spi_block_erase_20,
12272 }, {
12273 .eraseblocks = { {4 * 1024, 128} },
12274 .block_erase = spi_block_erase_d7,
12275 }, {
12276 .eraseblocks = { {64 * 1024, 8} },
12277 .block_erase = spi_block_erase_d8,
12278 }, {
12279 .eraseblocks = { {512 * 1024, 1} },
12280 .block_erase = spi_block_erase_60,
12281 }, {
12282 .eraseblocks = { {512 * 1024, 1} },
12283 .block_erase = spi_block_erase_c7,
12284 }
12285 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012286 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012287 .unlock = spi_disable_blockprotect,
12288 .write = spi_chip_write_256,
12289 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12290 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
12291 },
12292
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012293 {
12294 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012295 .name = "Pm25LD256C",
12296 .bustype = BUS_SPI,
12297 .manufacture_id = PMC_ID,
12298 .model_id = PMC_PM25LD256C,
12299 .total_size = 32,
12300 .page_size = 256,
12301 .feature_bits = FEATURE_WRSR_WREN,
12302 .tested = TEST_UNTESTED,
12303 .probe = probe_spi_rdid,
12304 .probe_timing = TIMING_ZERO,
12305 .block_erasers =
12306 {
12307 {
12308 .eraseblocks = { {4 * 1024, 8} },
12309 .block_erase = spi_block_erase_20,
12310 }, {
12311 .eraseblocks = { {4 * 1024, 8} },
12312 .block_erase = spi_block_erase_d7,
12313 }, {
12314 .eraseblocks = { {32 * 1024, 1} },
12315 .block_erase = spi_block_erase_d8,
12316 }, {
12317 .eraseblocks = { {32 * 1024, 1} },
12318 .block_erase = spi_block_erase_60,
12319 }, {
12320 .eraseblocks = { {32 * 1024, 1} },
12321 .block_erase = spi_block_erase_c7,
12322 }
12323 },
12324 .printlock = spi_prettyprint_status_register_bp2_srwd,
12325 .unlock = spi_disable_blockprotect,
12326 .write = spi_chip_write_256,
12327 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12328 .voltage = {2700, 3600},
12329 },
12330
12331 {
12332 .vendor = "PMC",
12333 .name = "Pm25LD512(C)",
12334 .bustype = BUS_SPI,
12335 .manufacture_id = PMC_ID,
12336 .model_id = PMC_PM25LD512,
12337 .total_size = 64,
12338 .page_size = 256,
12339 .feature_bits = FEATURE_WRSR_WREN,
12340 .tested = TEST_OK_PREW,
12341 .probe = probe_spi_rdid,
12342 .probe_timing = TIMING_ZERO,
12343 .block_erasers =
12344 {
12345 {
12346 .eraseblocks = { {4 * 1024, 16} },
12347 .block_erase = spi_block_erase_20,
12348 }, {
12349 .eraseblocks = { {4 * 1024, 16} },
12350 .block_erase = spi_block_erase_d7,
12351 }, {
12352 .eraseblocks = { {32 * 1024, 2} },
12353 .block_erase = spi_block_erase_d8,
12354 }, {
12355 .eraseblocks = { {64 * 1024, 1} },
12356 .block_erase = spi_block_erase_60,
12357 }, {
12358 .eraseblocks = { {64 * 1024, 1} },
12359 .block_erase = spi_block_erase_c7,
12360 }
12361 },
12362 .printlock = spi_prettyprint_status_register_bp2_srwd,
12363 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12364 .write = spi_chip_write_256,
12365 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12366 .voltage = {2300, 3600},
12367 },
12368
12369 {
12370 .vendor = "PMC",
12371 .name = "Pm25LQ016",
12372 .bustype = BUS_SPI,
12373 .manufacture_id = PMC_ID,
12374 .model_id = PMC_PM25LQ016,
12375 .total_size = 2048,
12376 .page_size = 256,
12377 /* OTP: 256B total; read 0x4B, write 0xB1 */
12378 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12379 .tested = TEST_UNTESTED,
12380 .probe = probe_spi_rdid,
12381 .probe_timing = TIMING_ZERO,
12382 .block_erasers =
12383 {
12384 {
12385 .eraseblocks = { {4 * 1024, 512} },
12386 .block_erase = spi_block_erase_20,
12387 }, {
12388 .eraseblocks = { {4 * 1024, 512} },
12389 .block_erase = spi_block_erase_d7,
12390 }, {
12391 .eraseblocks = { {64 * 1024, 32} },
12392 .block_erase = spi_block_erase_d8,
12393 }, {
12394 .eraseblocks = { {2048 * 1024, 1} },
12395 .block_erase = spi_block_erase_60,
12396 }, {
12397 .eraseblocks = { {2048 * 1024, 1} },
12398 .block_erase = spi_block_erase_c7,
12399 }
12400 },
12401 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12402 .unlock = spi_disable_blockprotect_bp3_srwd,
12403 .write = spi_chip_write_256,
12404 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12405 .voltage = {2300, 3600},
12406 },
12407
12408 {
12409 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012410 .name = "Pm25LQ020",
12411 .bustype = BUS_SPI,
12412 .manufacture_id = PMC_ID,
12413 .model_id = PMC_PM25LQ020,
12414 .total_size = 256,
12415 .page_size = 256,
12416 /* OTP: 256B total; read 0x4B, write 0xB1 */
12417 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12418 .tested = TEST_UNTESTED,
12419 .probe = probe_spi_rdid,
12420 .probe_timing = TIMING_ZERO,
12421 .block_erasers =
12422 {
12423 {
12424 .eraseblocks = { {4 * 1024, 64} },
12425 .block_erase = spi_block_erase_20,
12426 }, {
12427 .eraseblocks = { {4 * 1024, 64} },
12428 .block_erase = spi_block_erase_d7,
12429 }, {
12430 .eraseblocks = { {64 * 1024, 4} },
12431 .block_erase = spi_block_erase_d8,
12432 }, {
12433 .eraseblocks = { {256 * 1024, 1} },
12434 .block_erase = spi_block_erase_60,
12435 }, {
12436 .eraseblocks = { {256 * 1024, 1} },
12437 .block_erase = spi_block_erase_c7,
12438 }
12439 },
12440 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12441 .unlock = spi_disable_blockprotect_bp3_srwd,
12442 .write = spi_chip_write_256,
12443 .read = spi_chip_read,
12444 .voltage = {2300, 3600},
12445 },
12446
12447 {
12448 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012449 .name = "Pm25LQ032C",
12450 .bustype = BUS_SPI,
12451 .manufacture_id = PMC_ID,
12452 .model_id = PMC_PM25LQ032C,
12453 .total_size = 4096,
12454 .page_size = 256,
12455 /* OTP: 64B total; read 0x4B, write 0xB1 */
12456 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12457 .tested = TEST_OK_PREW,
12458 .probe = probe_spi_rdid,
12459 .probe_timing = TIMING_ZERO,
12460 .block_erasers =
12461 {
12462 {
12463 .eraseblocks = { {4 * 1024, 1024} },
12464 .block_erase = spi_block_erase_20,
12465 }, {
12466 .eraseblocks = { {4 * 1024, 1024} },
12467 .block_erase = spi_block_erase_d7,
12468 }, {
12469 .eraseblocks = { {64 * 1024, 64} },
12470 .block_erase = spi_block_erase_d8,
12471 }, {
12472 .eraseblocks = { {4096 * 1024, 1} },
12473 .block_erase = spi_block_erase_60,
12474 }, {
12475 .eraseblocks = { {4096 * 1024, 1} },
12476 .block_erase = spi_block_erase_c7,
12477 }
12478 },
12479 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12480 .unlock = spi_disable_blockprotect_bp3_srwd,
12481 .write = spi_chip_write_256,
12482 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12483 .voltage = {2700, 3600},
12484 },
12485
12486 {
12487 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012488 .name = "Pm25LQ040",
12489 .bustype = BUS_SPI,
12490 .manufacture_id = PMC_ID,
12491 .model_id = PMC_PM25LQ040,
12492 .total_size = 512,
12493 .page_size = 256,
12494 /* OTP: 256B total; read 0x4B, write 0xB1 */
12495 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12496 .tested = TEST_UNTESTED,
12497 .probe = probe_spi_rdid,
12498 .probe_timing = TIMING_ZERO,
12499 .block_erasers =
12500 {
12501 {
12502 .eraseblocks = { {4 * 1024, 128} },
12503 .block_erase = spi_block_erase_20,
12504 }, {
12505 .eraseblocks = { {4 * 1024, 128} },
12506 .block_erase = spi_block_erase_d7,
12507 }, {
12508 .eraseblocks = { {64 * 1024, 8} },
12509 .block_erase = spi_block_erase_d8,
12510 }, {
12511 .eraseblocks = { {512 * 1024, 1} },
12512 .block_erase = spi_block_erase_60,
12513 }, {
12514 .eraseblocks = { {512 * 1024, 1} },
12515 .block_erase = spi_block_erase_c7,
12516 }
12517 },
12518 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12519 .unlock = spi_disable_blockprotect_bp3_srwd,
12520 .write = spi_chip_write_256,
12521 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12522 .voltage = {2300, 3600},
12523 },
12524
12525 {
12526 .vendor = "PMC",
12527 .name = "Pm25LQ080",
12528 .bustype = BUS_SPI,
12529 .manufacture_id = PMC_ID,
12530 .model_id = PMC_PM25LQ080,
12531 .total_size = 1024,
12532 .page_size = 256,
12533 /* OTP: 64B total; read 0x4B, write 0xB1 */
12534 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12535 .tested = TEST_UNTESTED,
12536 .probe = probe_spi_rdid,
12537 .probe_timing = TIMING_ZERO,
12538 .block_erasers =
12539 {
12540 {
12541 .eraseblocks = { {4 * 1024, 256} },
12542 .block_erase = spi_block_erase_20,
12543 }, {
12544 .eraseblocks = { {4 * 1024, 256} },
12545 .block_erase = spi_block_erase_d7,
12546 }, {
12547 .eraseblocks = { {64 * 1024, 16} },
12548 .block_erase = spi_block_erase_d8,
12549 }, {
12550 .eraseblocks = { {1024 * 1024, 1} },
12551 .block_erase = spi_block_erase_60,
12552 }, {
12553 .eraseblocks = { {1024 * 1024, 1} },
12554 .block_erase = spi_block_erase_c7,
12555 }
12556 },
12557 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12558 .unlock = spi_disable_blockprotect_bp3_srwd,
12559 .write = spi_chip_write_256,
12560 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12561 .voltage = {2300, 3600},
12562 },
12563
12564 {
12565 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012566 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012567 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000012568 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012569 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012570 .total_size = 128,
12571 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012572 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000012573 .tested = TEST_OK_PREW,
12574 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012575 .probe_timing = TIMING_ZERO,
12576 .block_erasers =
12577 {
12578 {
12579 .eraseblocks = { {4 * 1024, 32} },
12580 .block_erase = spi_block_erase_d7,
12581 }, {
12582 .eraseblocks = { {32 * 1024, 4} },
12583 .block_erase = spi_block_erase_d8,
12584 }, {
12585 .eraseblocks = { {128 * 1024, 1} },
12586 .block_erase = spi_block_erase_c7,
12587 }
12588 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012589 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012590 .unlock = spi_disable_blockprotect,
12591 .write = spi_chip_write_256,
12592 .read = spi_chip_read, /* Fast read (0x0B) supported */
12593 .voltage = {2700, 3600},
12594 },
12595
12596 {
12597 .vendor = "PMC",
12598 .name = "Pm25LV010A",
12599 .bustype = BUS_SPI,
12600 .manufacture_id = PMC_ID,
12601 .model_id = PMC_PM25LV010,
12602 .total_size = 128,
12603 .page_size = 256,
12604 .feature_bits = FEATURE_WRSR_WREN,
12605 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012606 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012607 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012608 .block_erasers =
12609 {
12610 {
12611 .eraseblocks = { {4 * 1024, 32} },
12612 .block_erase = spi_block_erase_d7,
12613 }, {
12614 .eraseblocks = { {32 * 1024, 4} },
12615 .block_erase = spi_block_erase_d8,
12616 }, {
12617 .eraseblocks = { {128 * 1024, 1} },
12618 .block_erase = spi_block_erase_c7,
12619 }
12620 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012621 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012622 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012623 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012624 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012625 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012626 },
12627
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012628 {
12629 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012630 .name = "Pm25LV016B",
12631 .bustype = BUS_SPI,
12632 .manufacture_id = PMC_ID,
12633 .model_id = PMC_PM25LV016B,
12634 .total_size = 2048,
12635 .page_size = 256,
12636 .feature_bits = FEATURE_WRSR_WREN,
12637 .tested = TEST_UNTESTED,
12638 .probe = probe_spi_rdid,
12639 .probe_timing = TIMING_ZERO,
12640 .block_erasers =
12641 {
12642 {
12643 .eraseblocks = { {4 * 1024, 512} },
12644 .block_erase = spi_block_erase_d7,
12645 }, {
12646 .eraseblocks = { {4 * 1024, 512} },
12647 .block_erase = spi_block_erase_20,
12648 }, {
12649 .eraseblocks = { {64 * 1024, 32} },
12650 .block_erase = spi_block_erase_d8,
12651 }, {
12652 .eraseblocks = { {2 * 1024 * 1024, 1} },
12653 .block_erase = spi_block_erase_60,
12654 }, {
12655 .eraseblocks = { {2 * 1024 * 1024, 1} },
12656 .block_erase = spi_block_erase_c7,
12657 }
12658 },
12659 .printlock = spi_prettyprint_status_register_bp2_srwd,
12660 .unlock = spi_disable_blockprotect,
12661 .write = spi_chip_write_256,
12662 .read = spi_chip_read, /* Fast read (0x0B) supported */
12663 .voltage = {2700, 3600},
12664 },
12665
12666 {
12667 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012668 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012669 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012670 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012671 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012672 .total_size = 256,
12673 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012674 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012675 .tested = TEST_UNTESTED,
12676 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012677 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012678 .block_erasers =
12679 {
12680 {
12681 .eraseblocks = { {4 * 1024, 64} },
12682 .block_erase = spi_block_erase_d7,
12683 }, {
12684 .eraseblocks = { {64 * 1024, 4} },
12685 .block_erase = spi_block_erase_d8,
12686 }, {
12687 .eraseblocks = { {256 * 1024, 1} },
12688 .block_erase = spi_block_erase_c7,
12689 }
12690 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012691 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012692 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012693 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012694 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012695 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012696 },
12697
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012698 {
12699 .vendor = "PMC",
12700 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012701 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012702 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012703 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012704 .total_size = 512,
12705 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012706 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000012707 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012708 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012709 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012710 .block_erasers =
12711 {
12712 {
12713 .eraseblocks = { {4 * 1024, 128} },
12714 .block_erase = spi_block_erase_d7,
12715 }, {
12716 .eraseblocks = { {64 * 1024, 8} },
12717 .block_erase = spi_block_erase_d8,
12718 }, {
12719 .eraseblocks = { {512 * 1024, 1} },
12720 .block_erase = spi_block_erase_c7,
12721 }
12722 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012723 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012724 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012725 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012726 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012727 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012728 },
12729
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012730 {
12731 .vendor = "PMC",
12732 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012733 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012734 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012735 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012736 .total_size = 1024,
12737 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012738 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012739 .tested = TEST_UNTESTED,
12740 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012741 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012742 .block_erasers =
12743 {
12744 {
12745 .eraseblocks = { {4 * 1024, 256} },
12746 .block_erase = spi_block_erase_d7,
12747 }, {
12748 .eraseblocks = { {4 * 1024, 256} },
12749 .block_erase = spi_block_erase_20,
12750 }, {
12751 .eraseblocks = { {64 * 1024, 16} },
12752 .block_erase = spi_block_erase_d8,
12753 }, {
12754 .eraseblocks = { {1024 * 1024, 1} },
12755 .block_erase = spi_block_erase_60,
12756 }, {
12757 .eraseblocks = { {1024 * 1024, 1} },
12758 .block_erase = spi_block_erase_c7,
12759 }
12760 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012761 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012762 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012763 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012764 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012765 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012766 },
12767
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012768 {
12769 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012770 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012771 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012772 .manufacture_id = PMC_ID_NOPREFIX,
12773 .model_id = PMC_PM25LV512,
12774 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012775 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012776 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012777 .tested = TEST_OK_PREW,
12778 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012779 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012780 .block_erasers =
12781 {
12782 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012783 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000012784 .block_erase = spi_block_erase_d7,
12785 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012786 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000012787 .block_erase = spi_block_erase_d8,
12788 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012789 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000012790 .block_erase = spi_block_erase_c7,
12791 }
12792 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100012793 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012794 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012795 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012796 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012797 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012798 },
12799
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012800 {
12801 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000012802 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012803 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012804 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012805 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012806 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000012807 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012808 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012809 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012810 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000012811 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000012812 .block_erasers =
12813 {
12814 {
12815 .eraseblocks = {
12816 {16 * 1024, 1},
12817 {8 * 1024, 2},
12818 {96 * 1024, 1},
12819 {128 * 1024, 1},
12820 },
Sean Nelson35727f72010-01-28 23:55:12 +000012821 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012822 }, {
12823 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000012824 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012825 },
12826 },
Sean Nelson35727f72010-01-28 23:55:12 +000012827 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012828 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012829 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012830 },
12831
12832 {
12833 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012834 .name = "Pm29F002T",
12835 .bustype = BUS_PARALLEL,
12836 .manufacture_id = PMC_ID_NOPREFIX,
12837 .model_id = PMC_PM29F002T,
12838 .total_size = 256,
12839 .page_size = 8 * 1024,
12840 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12841 .tested = TEST_OK_PREW,
12842 .probe = probe_jedec,
12843 .probe_timing = TIMING_FIXME,
12844 .block_erasers =
12845 {
12846 {
12847 .eraseblocks = {
12848 {128 * 1024, 1},
12849 {96 * 1024, 1},
12850 {8 * 1024, 2},
12851 {16 * 1024, 1},
12852 },
12853 .block_erase = erase_sector_jedec,
12854 }, {
12855 .eraseblocks = { {256 * 1024, 1} },
12856 .block_erase = erase_chip_block_jedec,
12857 },
12858 },
12859 .write = write_jedec_1,
12860 .read = read_memmapped,
12861 .voltage = {4500, 5500},
12862 },
12863
12864 {
12865 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012866 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012867 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012868 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012869 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012870 .total_size = 128,
12871 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012872 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012873 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012874 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012875 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000012876 .block_erasers =
12877 {
12878 {
12879 .eraseblocks = { {4 * 1024, 32} },
12880 .block_erase = erase_sector_jedec,
12881 }, {
12882 .eraseblocks = { {64 * 1024, 2} },
12883 .block_erase = erase_block_jedec,
12884 }, {
12885 .eraseblocks = { {128 * 1024, 1} },
12886 .block_erase = erase_chip_block_jedec,
12887 }
12888 },
Sean Nelson35727f72010-01-28 23:55:12 +000012889 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012890 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012891 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012892 },
12893
12894 {
12895 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012896 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012897 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012898 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012899 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012900 .total_size = 256,
12901 .page_size = 4096,
12902 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12903 .tested = TEST_UNTESTED,
12904 .probe = probe_jedec,
12905 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100012906 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012907 {
12908 {
12909 .eraseblocks = { {4 * 1024, 64} },
12910 .block_erase = erase_sector_jedec,
12911 }, {
12912 .eraseblocks = { {64 * 1024, 4} },
12913 .block_erase = erase_block_jedec,
12914 }, {
12915 .eraseblocks = { {256 * 1024, 1} },
12916 .block_erase = erase_chip_block_jedec,
12917 }
12918 },
12919 .write = write_jedec_1,
12920 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012921 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012922 },
12923
12924 {
12925 .vendor = "PMC",
12926 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012927 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012928 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012929 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012930 .total_size = 512,
12931 .page_size = 4096,
12932 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012933 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012934 .probe = probe_jedec,
12935 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100012936 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012937 {
12938 {
12939 .eraseblocks = { {4 * 1024, 128} },
12940 .block_erase = erase_sector_jedec,
12941 }, {
12942 .eraseblocks = { {64 * 1024, 8} },
12943 .block_erase = erase_block_jedec,
12944 }, {
12945 .eraseblocks = { {512 * 1024, 1} },
12946 .block_erase = erase_chip_block_jedec,
12947 }
12948 },
12949 .write = write_jedec_1,
12950 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012951 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012952 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000012953
12954 {
12955 .vendor = "PMC",
12956 .name = "Pm39LV512",
12957 .bustype = BUS_PARALLEL,
12958 .manufacture_id = PMC_ID_NOPREFIX,
12959 .model_id = PMC_PM39LV512,
12960 .total_size = 64,
12961 .page_size = 4096,
12962 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12963 .tested = TEST_OK_PREW,
12964 .probe = probe_jedec,
12965 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12966 .block_erasers =
12967 {
12968 {
12969 .eraseblocks = { {4 * 1024, 16} },
12970 .block_erase = erase_sector_jedec,
12971 }, {
12972 .eraseblocks = { {64 * 1024, 1} },
12973 .block_erase = erase_block_jedec,
12974 }, {
12975 .eraseblocks = { {64 * 1024, 1} },
12976 .block_erase = erase_chip_block_jedec,
12977 }
12978 },
12979 .write = write_jedec_1,
12980 .read = read_memmapped,
12981 .voltage = {2700, 3600},
12982 },
12983
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012984 {
12985 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012986 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012987 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012988 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012989 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012990 .total_size = 256,
12991 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012992 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012993 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012994 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012995 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000012996 .block_erasers =
12997 {
12998 {
12999 .eraseblocks = { {4 * 1024, 64} },
13000 .block_erase = erase_sector_jedec,
13001 }, {
13002 .eraseblocks = { {16 * 1024, 16} },
13003 .block_erase = erase_block_jedec,
13004 }, {
13005 .eraseblocks = { {256 * 1024, 1} },
13006 .block_erase = erase_chip_block_jedec,
13007 }
13008 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013009 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000013010 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013011 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013012 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013013 },
13014
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013015 {
13016 .vendor = "PMC",
13017 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013018 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013019 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013020 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013021 .total_size = 512,
13022 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013023 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013024 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013025 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013026 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013027 .block_erasers =
13028 {
13029 {
13030 .eraseblocks = { {4 * 1024, 128} },
13031 .block_erase = erase_sector_jedec,
13032 }, {
13033 .eraseblocks = { {64 * 1024, 8} },
13034 .block_erase = erase_block_jedec,
13035 }, {
13036 .eraseblocks = { {512 * 1024, 1} },
13037 .block_erase = erase_chip_block_jedec,
13038 }
13039 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013040 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000013041 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013042 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013043 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013044 },
13045
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013046 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013047 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000013048 .name = "SST25LF020A",
13049 .bustype = BUS_SPI,
13050 .manufacture_id = SST_ID,
13051 .model_id = SST_SST25VF020_REMS,
13052 .total_size = 256,
13053 .page_size = 256,
13054 .feature_bits = FEATURE_WRSR_EWSR,
13055 .tested = TEST_OK_PREW,
13056 .probe = probe_spi_rems,
13057 .probe_timing = TIMING_ZERO,
13058 .block_erasers =
13059 {
13060 {
13061 .eraseblocks = { {4 * 1024, 64} },
13062 .block_erase = spi_block_erase_20,
13063 }, {
13064 .eraseblocks = { {32 * 1024, 8} },
13065 .block_erase = spi_block_erase_52,
13066 }, {
13067 .eraseblocks = { {256 * 1024, 1} },
13068 .block_erase = spi_block_erase_60,
13069 },
13070 },
13071 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13072 .unlock = spi_disable_blockprotect,
13073 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13074 .read = spi_chip_read, /* Fast read (0x0B) supported */
13075 .voltage = {2700, 3600},
13076 },
13077
13078 {
13079 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000013080 .name = "SST25LF040A",
13081 .bustype = BUS_SPI,
13082 .manufacture_id = SST_ID,
13083 .model_id = SST_SST25VF040_REMS,
13084 .total_size = 512,
13085 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013086 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000013087 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000013088 .probe = probe_spi_res2,
13089 .probe_timing = TIMING_ZERO,
13090 .block_erasers =
13091 {
13092 {
13093 .eraseblocks = { {4 * 1024, 128} },
13094 .block_erase = spi_block_erase_20,
13095 }, {
13096 .eraseblocks = { {32 * 1024, 16} },
13097 .block_erase = spi_block_erase_52,
13098 }, {
13099 .eraseblocks = { {512 * 1024, 1} },
13100 .block_erase = spi_block_erase_60,
13101 },
13102 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013103 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013104 .unlock = spi_disable_blockprotect,
13105 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13106 .read = spi_chip_read,
13107 .voltage = {3000, 3600},
13108 },
13109
13110 {
13111 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000013112 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000013113 .bustype = BUS_SPI,
13114 .manufacture_id = SST_ID,
13115 .model_id = SST_SST25VF080_REMS,
13116 .total_size = 1024,
13117 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013118 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000013119 .tested = TEST_UNTESTED,
13120 .probe = probe_spi_res2,
13121 .probe_timing = TIMING_ZERO,
13122 .block_erasers =
13123 {
13124 {
13125 .eraseblocks = { {4 * 1024, 256} },
13126 .block_erase = spi_block_erase_20,
13127 }, {
13128 .eraseblocks = { {32 * 1024, 32} },
13129 .block_erase = spi_block_erase_52,
13130 }, {
13131 .eraseblocks = { {1024 * 1024, 1} },
13132 .block_erase = spi_block_erase_60,
13133 },
13134 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013135 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013136 .unlock = spi_disable_blockprotect,
13137 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13138 .read = spi_chip_read,
13139 .voltage = {3000, 3600},
13140 },
13141
13142 {
13143 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000013144 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013145 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000013146 .manufacture_id = SST_ID,
13147 .model_id = SST_SST25VF010_REMS,
13148 .total_size = 128,
13149 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013150 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000013151 .tested = TEST_OK_PREW,
13152 .probe = probe_spi_rems,
13153 .probe_timing = TIMING_ZERO,
13154 .block_erasers =
13155 {
13156 {
13157 .eraseblocks = { {4 * 1024, 32} },
13158 .block_erase = spi_block_erase_20,
13159 }, {
13160 .eraseblocks = { {32 * 1024, 4} },
13161 .block_erase = spi_block_erase_52,
13162 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000013163 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013164 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013165 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000013166 .eraseblocks = { {128 * 1024, 1} },
13167 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000013168 }, {
13169 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013170 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013171 },
13172 },
13173 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13174 .unlock = spi_disable_blockprotect,
13175 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000013176 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013177 .voltage = {2700, 3600},
13178 },
13179
13180 {
13181 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013182 .name = "SST25VF016B",
13183 .bustype = BUS_SPI,
13184 .manufacture_id = SST_ID,
13185 .model_id = SST_SST25VF016B,
13186 .total_size = 2048,
13187 .page_size = 256,
13188 .feature_bits = FEATURE_WRSR_EITHER,
13189 .tested = TEST_OK_PREW,
13190 .probe = probe_spi_rdid,
13191 .probe_timing = TIMING_ZERO,
13192 .block_erasers =
13193 {
13194 {
13195 .eraseblocks = { {4 * 1024, 512} },
13196 .block_erase = spi_block_erase_20,
13197 }, {
13198 .eraseblocks = { {32 * 1024, 64} },
13199 .block_erase = spi_block_erase_52,
13200 }, {
13201 .eraseblocks = { {64 * 1024, 32} },
13202 .block_erase = spi_block_erase_d8,
13203 }, {
13204 .eraseblocks = { {2 * 1024 * 1024, 1} },
13205 .block_erase = spi_block_erase_60,
13206 }, {
13207 .eraseblocks = { {2 * 1024 * 1024, 1} },
13208 .block_erase = spi_block_erase_c7,
13209 },
13210 },
13211 .printlock = spi_prettyprint_status_register_sst25vf016,
13212 .unlock = spi_disable_blockprotect,
13213 .write = spi_aai_write,
13214 .read = spi_chip_read,
13215 .voltage = {2700, 3600},
13216 },
13217
13218 {
13219 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013220 .name = "SST25VF020",
13221 .bustype = BUS_SPI,
13222 .manufacture_id = SST_ID,
13223 .model_id = SST_SST25VF020_REMS,
13224 .total_size = 256,
13225 .page_size = 256,
13226 .feature_bits = FEATURE_WRSR_EWSR,
13227 .tested = TEST_UNTESTED,
13228 .probe = probe_spi_rems,
13229 .probe_timing = TIMING_ZERO,
13230 .block_erasers =
13231 {
13232 {
13233 .eraseblocks = { {4 * 1024, 64} },
13234 .block_erase = spi_block_erase_20,
13235 }, {
13236 .eraseblocks = { {32 * 1024, 8} },
13237 .block_erase = spi_block_erase_52,
13238 }, {
13239 .eraseblocks = { {256 * 1024, 1} },
13240 .block_erase = spi_block_erase_60,
13241 },
13242 },
13243 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13244 .unlock = spi_disable_blockprotect,
13245 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13246 .read = spi_chip_read, /* only */
13247 .voltage = {2700, 3600},
13248 },
13249
13250 {
13251 .vendor = "SST",
13252 .name = "SST25VF020B",
13253 .bustype = BUS_SPI,
13254 .manufacture_id = SST_ID,
13255 .model_id = SST_SST25VF020B,
13256 .total_size = 256,
13257 .page_size = 256,
13258 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013259 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000013260 .probe = probe_spi_rdid,
13261 .probe_timing = TIMING_ZERO,
13262 .block_erasers =
13263 {
13264 {
13265 .eraseblocks = { {4 * 1024, 64} },
13266 .block_erase = spi_block_erase_20,
13267 }, {
13268 .eraseblocks = { {32 * 1024, 8} },
13269 .block_erase = spi_block_erase_52,
13270 }, {
13271 .eraseblocks = { {64 * 1024, 4} },
13272 .block_erase = spi_block_erase_d8,
13273 }, {
13274 .eraseblocks = { {256 * 1024, 1} },
13275 .block_erase = spi_block_erase_60,
13276 }, {
13277 .eraseblocks = { {256 * 1024, 1} },
13278 .block_erase = spi_block_erase_c7,
13279 },
13280 },
13281 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
13282 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
13283 .write = spi_aai_write, /* AAI supported (0xAD) */
13284 .read = spi_chip_read, /* Fast read (0x0B) supported */
13285 .voltage = {2700, 3600},
13286 },
13287
13288 {
13289 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013290 .name = "SST25VF032B",
13291 .bustype = BUS_SPI,
13292 .manufacture_id = SST_ID,
13293 .model_id = SST_SST25VF032B,
13294 .total_size = 4096,
13295 .page_size = 256,
13296 .feature_bits = FEATURE_WRSR_EWSR,
13297 .tested = TEST_OK_PREW,
13298 .probe = probe_spi_rdid,
13299 .probe_timing = TIMING_ZERO,
13300 .block_erasers =
13301 {
13302 {
13303 .eraseblocks = { {4 * 1024, 1024} },
13304 .block_erase = spi_block_erase_20,
13305 }, {
13306 .eraseblocks = { {32 * 1024, 128} },
13307 .block_erase = spi_block_erase_52,
13308 }, {
13309 .eraseblocks = { {64 * 1024, 64} },
13310 .block_erase = spi_block_erase_d8,
13311 }, {
13312 .eraseblocks = { {4 * 1024 * 1024, 1} },
13313 .block_erase = spi_block_erase_60,
13314 }, {
13315 .eraseblocks = { {4 * 1024 * 1024, 1} },
13316 .block_erase = spi_block_erase_c7,
13317 },
13318 },
13319 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13320 .unlock = spi_disable_blockprotect,
13321 .write = spi_aai_write,
13322 .read = spi_chip_read,
13323 .voltage = {2700, 3600},
13324 },
13325
13326 {
13327 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013328 .name = "SST25VF040",
13329 .bustype = BUS_SPI,
13330 .manufacture_id = SST_ID,
13331 .model_id = SST_SST25VF040_REMS,
13332 .total_size = 512,
13333 .page_size = 256,
13334 .feature_bits = FEATURE_WRSR_EWSR,
13335 .tested = TEST_OK_PR,
13336 .probe = probe_spi_rems,
13337 .probe_timing = TIMING_ZERO,
13338 .block_erasers =
13339 {
13340 {
13341 .eraseblocks = { {4 * 1024, 128} },
13342 .block_erase = spi_block_erase_20,
13343 }, {
13344 .eraseblocks = { {32 * 1024, 16} },
13345 .block_erase = spi_block_erase_52,
13346 }, {
13347 .eraseblocks = { {512 * 1024, 1} },
13348 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000013349 },
13350 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013351 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000013352 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000013353 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13354 .read = spi_chip_read,
13355 .voltage = {2700, 3600},
13356 },
13357
13358 {
13359 .vendor = "SST",
13360 .name = "SST25VF040B",
13361 .bustype = BUS_SPI,
13362 .manufacture_id = SST_ID,
13363 .model_id = SST_SST25VF040B,
13364 .total_size = 512,
13365 .page_size = 256,
13366 .feature_bits = FEATURE_WRSR_EWSR,
13367 .tested = TEST_OK_PREW,
13368 .probe = probe_spi_rdid,
13369 .probe_timing = TIMING_ZERO,
13370 .block_erasers =
13371 {
13372 {
13373 .eraseblocks = { {4 * 1024, 128} },
13374 .block_erase = spi_block_erase_20,
13375 }, {
13376 .eraseblocks = { {32 * 1024, 16} },
13377 .block_erase = spi_block_erase_52,
13378 }, {
13379 .eraseblocks = { {64 * 1024, 8} },
13380 .block_erase = spi_block_erase_d8,
13381 }, {
13382 .eraseblocks = { {512 * 1024, 1} },
13383 .block_erase = spi_block_erase_60,
13384 }, {
13385 .eraseblocks = { {512 * 1024, 1} },
13386 .block_erase = spi_block_erase_c7,
13387 },
13388 },
13389 .printlock = spi_prettyprint_status_register_sst25vf040b,
13390 .unlock = spi_disable_blockprotect,
13391 .write = spi_aai_write, /* AAI supported (0xAD) */
13392 .read = spi_chip_read, /* Fast read (0x0B) supported */
13393 .voltage = {2700, 3600},
13394 },
13395
13396 {
13397 .vendor = "SST",
13398 .name = "SST25VF040B.REMS",
13399 .bustype = BUS_SPI,
13400 .manufacture_id = SST_ID,
13401 .model_id = SST_SST25VF040B_REMS,
13402 .total_size = 512,
13403 .page_size = 256,
13404 .feature_bits = FEATURE_WRSR_EWSR,
13405 .tested = TEST_OK_PREW,
13406 .probe = probe_spi_rems,
13407 .probe_timing = TIMING_ZERO,
13408 .block_erasers =
13409 {
13410 {
13411 .eraseblocks = { {4 * 1024, 128} },
13412 .block_erase = spi_block_erase_20,
13413 }, {
13414 .eraseblocks = { {32 * 1024, 16} },
13415 .block_erase = spi_block_erase_52,
13416 }, {
13417 .eraseblocks = { {64 * 1024, 8} },
13418 .block_erase = spi_block_erase_d8,
13419 }, {
13420 .eraseblocks = { {512 * 1024, 1} },
13421 .block_erase = spi_block_erase_60,
13422 }, {
13423 .eraseblocks = { {512 * 1024, 1} },
13424 .block_erase = spi_block_erase_c7,
13425 },
13426 },
13427 .printlock = spi_prettyprint_status_register_sst25vf040b,
13428 .unlock = spi_disable_blockprotect,
13429 .write = spi_aai_write,
13430 .read = spi_chip_read,
13431 .voltage = {2700, 3600},
13432 },
13433
13434 {
13435 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013436 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000013437 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013438 .manufacture_id = SST_ID,
13439 .model_id = SST_SST25VF064C,
13440 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013441 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013442 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013443 .tested = TEST_OK_PREW,
13444 .probe = probe_spi_rdid,
13445 .probe_timing = TIMING_ZERO,
13446 .block_erasers =
13447 {
13448 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013449 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013450 .block_erase = spi_block_erase_20,
13451 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013452 .eraseblocks = { {32 * 1024, 256} },
13453 .block_erase = spi_block_erase_52,
13454 }, {
13455 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013456 .block_erase = spi_block_erase_d8,
13457 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013458 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013459 .block_erase = spi_block_erase_60,
13460 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013461 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013462 .block_erase = spi_block_erase_c7,
13463 },
13464 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013465 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13466 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013467 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013468 .read = spi_chip_read,
13469 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000013470 },
13471
13472 {
13473 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013474 .name = "SST25VF080B",
13475 .bustype = BUS_SPI,
13476 .manufacture_id = SST_ID,
13477 .model_id = SST_SST25VF080B,
13478 .total_size = 1024,
13479 .page_size = 256,
13480 .feature_bits = FEATURE_WRSR_EWSR,
13481 .tested = TEST_OK_PREW,
13482 .probe = probe_spi_rdid,
13483 .probe_timing = TIMING_ZERO,
13484 .block_erasers =
13485 {
13486 {
13487 .eraseblocks = { {4 * 1024, 256} },
13488 .block_erase = spi_block_erase_20,
13489 }, {
13490 .eraseblocks = { {32 * 1024, 32} },
13491 .block_erase = spi_block_erase_52,
13492 }, {
13493 .eraseblocks = { {64 * 1024, 16} },
13494 .block_erase = spi_block_erase_d8,
13495 }, {
13496 .eraseblocks = { {1024 * 1024, 1} },
13497 .block_erase = spi_block_erase_60,
13498 }, {
13499 .eraseblocks = { {1024 * 1024, 1} },
13500 .block_erase = spi_block_erase_c7,
13501 },
13502 },
13503 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13504 .unlock = spi_disable_blockprotect,
13505 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000013506 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013507 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000013508 },
13509
13510 {
13511 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013512 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013513 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013514 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013515 .model_id = SST_SST25VF512_REMS,
13516 .total_size = 64,
13517 .page_size = 256,
13518 .feature_bits = FEATURE_WRSR_EWSR,
13519 .tested = TEST_OK_PREW,
13520 .probe = probe_spi_rems,
13521 .probe_timing = TIMING_ZERO,
13522 .block_erasers =
13523 {
13524 {
13525 .eraseblocks = { {4 * 1024, 16} },
13526 .block_erase = spi_block_erase_20,
13527 }, {
13528 .eraseblocks = { {32 * 1024, 2} },
13529 .block_erase = spi_block_erase_52,
13530 }, {
13531 .eraseblocks = { {32 * 1024, 2} },
13532 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
13533 }, {
13534 .eraseblocks = { {64 * 1024, 1} },
13535 .block_erase = spi_block_erase_60,
13536 }, {
13537 .eraseblocks = { {64 * 1024, 1} },
13538 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
13539 },
13540 },
13541 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13542 .unlock = spi_disable_blockprotect,
13543 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13544 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
13545 .voltage = {2700, 3600},
13546 },
13547
13548 {
13549 .vendor = "SST",
13550 .name = "SST25WF010",
13551 .bustype = BUS_SPI,
13552 .manufacture_id = SST_ID,
13553 .model_id = SST_SST25WF010,
13554 .total_size = 128,
13555 .page_size = 256,
13556 .feature_bits = FEATURE_WRSR_EITHER,
13557 .tested = TEST_UNTESTED,
13558 .probe = probe_spi_rdid,
13559 .probe_timing = TIMING_ZERO,
13560 .block_erasers =
13561 {
13562 {
13563 .eraseblocks = { {4 * 1024, 32} },
13564 .block_erase = spi_block_erase_20,
13565 }, {
13566 .eraseblocks = { {32 * 1024, 4} },
13567 .block_erase = spi_block_erase_52,
13568 }, {
13569 .eraseblocks = { {1024 * 128, 1} },
13570 .block_erase = spi_block_erase_60,
13571 }, {
13572 .eraseblocks = { {1024 * 128, 1} },
13573 .block_erase = spi_block_erase_c7,
13574 },
13575 },
13576 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13577 .unlock = spi_disable_blockprotect_bp2_srwd,
13578 .write = spi_aai_write,
13579 .read = spi_chip_read, /* Fast read (0x0B) supported */
13580 .voltage = {1650, 1950},
13581 },
13582
13583 {
13584 .vendor = "SST",
13585 .name = "SST25WF020",
13586 .bustype = BUS_SPI,
13587 .manufacture_id = SST_ID,
13588 .model_id = SST_SST25WF020,
13589 .total_size = 256,
13590 .page_size = 256,
13591 .feature_bits = FEATURE_WRSR_EITHER,
13592 .tested = TEST_UNTESTED,
13593 .probe = probe_spi_rdid,
13594 .probe_timing = TIMING_ZERO,
13595 .block_erasers =
13596 {
13597 {
13598 .eraseblocks = { {4 * 1024, 64} },
13599 .block_erase = spi_block_erase_20,
13600 }, {
13601 .eraseblocks = { {32 * 1024, 8} },
13602 .block_erase = spi_block_erase_52,
13603 }, {
13604 .eraseblocks = { {64 * 1024, 4} },
13605 .block_erase = spi_block_erase_d8,
13606 }, {
13607 .eraseblocks = { {1024 * 256, 1} },
13608 .block_erase = spi_block_erase_60,
13609 }, {
13610 .eraseblocks = { {1024 * 256, 1} },
13611 .block_erase = spi_block_erase_c7,
13612 },
13613 },
13614 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13615 .unlock = spi_disable_blockprotect_bp2_srwd,
13616 .write = spi_aai_write,
13617 .read = spi_chip_read, /* Fast read (0x0B) supported */
13618 .voltage = {1650, 1950},
13619 },
13620
13621 {
13622 .vendor = "SST",
13623 .name = "SST25WF020A",
13624 .bustype = BUS_SPI,
13625 .manufacture_id = SANYO_ID, /* See flashchips.h */
13626 .model_id = SST_SST25WF020A,
13627 .total_size = 256,
13628 .page_size = 256,
13629 .feature_bits = FEATURE_WRSR_WREN,
13630 .tested = TEST_UNTESTED,
13631 .probe = probe_spi_rdid,
13632 .probe_timing = TIMING_ZERO,
13633 .block_erasers =
13634 {
13635 {
13636 .eraseblocks = { {4 * 1024, 64} },
13637 .block_erase = spi_block_erase_20,
13638 }, {
13639 .eraseblocks = { {64 * 1024, 4} },
13640 .block_erase = spi_block_erase_d8,
13641 }, {
13642 .eraseblocks = { {256 * 1024, 1} },
13643 .block_erase = spi_block_erase_60,
13644 }, {
13645 .eraseblocks = { {256 * 1024, 1} },
13646 .block_erase = spi_block_erase_c7,
13647 },
13648 },
13649 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13650 .unlock = spi_disable_blockprotect_bp2_srwd,
13651 .write = spi_chip_write_256,
13652 .read = spi_chip_read, /* Fast read (0x0B) supported */
13653 .voltage = {1650, 1950},
13654 },
13655
13656 {
13657 .vendor = "SST",
13658 .name = "SST25WF040",
13659 .bustype = BUS_SPI,
13660 .manufacture_id = SST_ID,
13661 .model_id = SST_SST25WF040,
13662 .total_size = 512,
13663 .page_size = 256,
13664 .feature_bits = FEATURE_WRSR_EITHER,
13665 .tested = TEST_UNTESTED,
13666 .probe = probe_spi_rdid,
13667 .probe_timing = TIMING_ZERO,
13668 .block_erasers =
13669 {
13670 {
13671 .eraseblocks = { {4 * 1024, 128} },
13672 .block_erase = spi_block_erase_20,
13673 }, {
13674 .eraseblocks = { {32 * 1024, 16} },
13675 .block_erase = spi_block_erase_52,
13676 }, {
13677 .eraseblocks = { {64 * 1024, 8} },
13678 .block_erase = spi_block_erase_d8,
13679 }, {
13680 .eraseblocks = { {1024 * 512, 1} },
13681 .block_erase = spi_block_erase_60,
13682 }, {
13683 .eraseblocks = { {1024 * 512, 1} },
13684 .block_erase = spi_block_erase_c7,
13685 },
13686 },
13687 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13688 .unlock = spi_disable_blockprotect_bp2_srwd,
13689 .write = spi_aai_write,
13690 .read = spi_chip_read, /* Fast read (0x0B) supported */
13691 .voltage = {1650, 1950},
13692 },
13693
13694 {
13695 .vendor = "SST",
13696 .name = "SST25WF040B",
13697 .bustype = BUS_SPI,
13698 .manufacture_id = SANYO_ID, /* See flashchips.h */
13699 .model_id = SST_SST25WF040B,
13700 .total_size = 512,
13701 .page_size = 256,
13702 .feature_bits = FEATURE_WRSR_WREN,
13703 .tested = TEST_UNTESTED,
13704 .probe = probe_spi_rdid,
13705 .probe_timing = TIMING_ZERO,
13706 .block_erasers =
13707 {
13708 {
13709 .eraseblocks = { {4 * 1024, 128} },
13710 .block_erase = spi_block_erase_20,
13711 }, {
13712 .eraseblocks = { {64 * 1024, 8} },
13713 .block_erase = spi_block_erase_d8,
13714 }, {
13715 .eraseblocks = { {512 * 1024, 1} },
13716 .block_erase = spi_block_erase_60,
13717 }, {
13718 .eraseblocks = { {512 * 1024, 1} },
13719 .block_erase = spi_block_erase_c7,
13720 },
13721 },
13722 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13723 .unlock = spi_disable_blockprotect_bp2_srwd,
13724 .write = spi_chip_write_256,
13725 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13726 .voltage = {1650, 1950},
13727 },
13728
13729 {
13730 .vendor = "SST",
13731 .name = "SST25WF080",
13732 .bustype = BUS_SPI,
13733 .manufacture_id = SST_ID,
13734 .model_id = SST_SST25WF080,
13735 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013736 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013737 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000013738 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013739 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013740 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013741 .block_erasers =
13742 {
13743 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013744 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013745 .block_erase = spi_block_erase_20,
13746 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013747 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013748 .block_erase = spi_block_erase_52,
13749 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013750 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013751 .block_erase = spi_block_erase_d8,
13752 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013753 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013754 .block_erase = spi_block_erase_60,
13755 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013756 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013757 .block_erase = spi_block_erase_c7,
13758 },
13759 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013760 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
13761 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000013762 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013763 .read = spi_chip_read, /* Fast read (0x0B) supported */
13764 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000013765 },
13766
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013767 {
13768 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013769 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013770 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013771 .manufacture_id = SANYO_ID, /* See flashchips.h */
13772 .model_id = SST_SST25WF080B,
13773 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013774 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013775 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000013776 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013777 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013778 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013779 .block_erasers =
13780 {
13781 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013782 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013783 .block_erase = spi_block_erase_20,
13784 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013785 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013786 .block_erase = spi_block_erase_d8,
13787 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013788 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013789 .block_erase = spi_block_erase_60,
13790 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013791 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013792 .block_erase = spi_block_erase_c7,
13793 },
13794 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013795 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13796 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000013797 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013798 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13799 .voltage = {1650, 1950},
13800 },
13801
13802 {
13803 .vendor = "SST",
13804 .name = "SST25WF512",
13805 .bustype = BUS_SPI,
13806 .manufacture_id = SST_ID,
13807 .model_id = SST_SST25WF512,
13808 .total_size = 64,
13809 .page_size = 256,
13810 .feature_bits = FEATURE_WRSR_EITHER,
13811 .tested = TEST_UNTESTED,
13812 .probe = probe_spi_rdid,
13813 .probe_timing = TIMING_ZERO,
13814 .block_erasers =
13815 {
13816 {
13817 .eraseblocks = { {4 * 1024, 16} },
13818 .block_erase = spi_block_erase_20,
13819 }, {
13820 .eraseblocks = { {32 * 1024, 2} },
13821 .block_erase = spi_block_erase_52,
13822 }, {
13823 .eraseblocks = { {1024 * 64, 1} },
13824 .block_erase = spi_block_erase_60,
13825 }, {
13826 .eraseblocks = { {1024 * 64, 1} },
13827 .block_erase = spi_block_erase_c7,
13828 },
13829 },
13830 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13831 .unlock = spi_disable_blockprotect_bp2_srwd,
13832 .write = spi_aai_write,
13833 .read = spi_chip_read, /* Fast read (0x0B) supported */
13834 .voltage = {1650, 1950},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013835 },
13836
13837 {
13838 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070013839 .name = "SST26VF016B(A)",
13840 .bustype = BUS_SPI,
13841 .manufacture_id = SST_ID,
13842 .model_id = SST_SST26VF016B,
13843 .total_size = 2048,
13844 .page_size = 256,
13845 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13846 .tested = TEST_OK_PREW,
13847 .probe = probe_spi_rdid,
13848 .probe_timing = TIMING_ZERO,
13849 .block_erasers =
13850 {
13851 {
13852 .eraseblocks = { {4 * 1024, 512} },
13853 .block_erase = spi_block_erase_20,
13854 }, {
13855 .eraseblocks = {
13856 {8 * 1024, 4},
13857 {32 * 1024, 1},
13858 {64 * 1024, 30},
13859 {32 * 1024, 1},
13860 {8 * 1024, 4},
13861 },
13862 .block_erase = spi_block_erase_d8,
13863 }, {
13864 .eraseblocks = { {2 * 1024 * 1024, 1} },
13865 .block_erase = spi_block_erase_c7,
13866 },
13867 },
13868 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13869 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13870 .write = spi_chip_write_256, /* Multi I/O supported */
13871 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13872 .voltage = {2700, 3600},
13873 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100013874
Wei Hu25584de2018-04-30 14:02:08 -070013875 {
13876 .vendor = "SST",
13877 .name = "SST26VF032B(A)",
13878 .bustype = BUS_SPI,
13879 .manufacture_id = SST_ID,
13880 .model_id = SST_SST26VF032B,
13881 .total_size = 4096,
13882 .page_size = 256,
13883 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13884 .tested = TEST_UNTESTED,
13885 .probe = probe_spi_rdid,
13886 .probe_timing = TIMING_ZERO,
13887 .block_erasers =
13888 {
13889 {
13890 .eraseblocks = { {4 * 1024, 1024} },
13891 .block_erase = spi_block_erase_20,
13892 }, {
13893 .eraseblocks = {
13894 {8 * 1024, 4},
13895 {32 * 1024, 1},
13896 {64 * 1024, 62},
13897 {32 * 1024, 1},
13898 {8 * 1024, 4},
13899 },
13900 .block_erase = spi_block_erase_d8,
13901 }, {
13902 .eraseblocks = { {4 * 1024 * 1024, 1} },
13903 .block_erase = spi_block_erase_c7,
13904 },
13905 },
13906 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13907 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13908 .write = spi_chip_write_256, /* Multi I/O supported */
13909 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13910 .voltage = {2700, 3600},
13911 },
13912
Wei Hu25584de2018-04-30 14:02:08 -070013913 {
13914 .vendor = "SST",
13915 .name = "SST26VF064B(A)",
13916 .bustype = BUS_SPI,
13917 .manufacture_id = SST_ID,
13918 .model_id = SST_SST26VF064B,
13919 .total_size = 8192,
13920 .page_size = 256,
13921 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13922 .tested = TEST_OK_PREW,
13923 .probe = probe_spi_rdid,
13924 .probe_timing = TIMING_ZERO,
13925 .block_erasers =
13926 {
13927 {
13928 .eraseblocks = { {4 * 1024, 2048} },
13929 .block_erase = spi_block_erase_20,
13930 }, {
13931 .eraseblocks = {
13932 {8 * 1024, 4},
13933 {32 * 1024, 1},
13934 {64 * 1024, 126},
13935 {32 * 1024, 1},
13936 {8 * 1024, 4},
13937 },
13938 .block_erase = spi_block_erase_d8,
13939 }, {
13940 .eraseblocks = { {8 * 1024 * 1024, 1} },
13941 .block_erase = spi_block_erase_c7,
13942 },
13943 },
13944 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13945 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13946 .write = spi_chip_write_256, /* Multi I/O supported */
13947 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13948 .voltage = {2700, 3600},
13949 },
13950
13951 {
13952 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013953 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013954 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013955 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013956 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013957 .total_size = 512,
13958 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000013959 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013960 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013961 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013962 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013963 .block_erasers =
13964 {
13965 {
13966 .eraseblocks = { {128, 4096} },
13967 .block_erase = erase_sector_28sf040,
13968 }, {
13969 .eraseblocks = { {512 * 1024, 1} },
13970 .block_erase = erase_chip_28sf040,
13971 }
13972 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013973 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013974 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013975 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013976 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013977 },
13978
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013979 {
13980 .vendor = "SST",
13981 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013982 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013983 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013984 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013985 .total_size = 128,
13986 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013987 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013988 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013989 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013990 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013991 .block_erasers =
13992 {
13993 {
13994 .eraseblocks = { {128 * 1024, 1} },
13995 .block_erase = erase_chip_block_jedec,
13996 }
13997 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013998 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013999 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014000 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014001 },
14002
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014003 {
14004 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014005 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014006 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014007 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014008 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014009 .total_size = 256,
14010 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014011 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014012 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014013 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014014 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014015 .block_erasers =
14016 {
14017 {
14018 .eraseblocks = { {256 * 1024, 1} },
14019 .block_erase = erase_chip_block_jedec,
14020 }
14021 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014022 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014023 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014024 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014025 },
14026
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014027 {
14028 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014029 .name = "SST29LE010",
14030 .bustype = BUS_PARALLEL,
14031 .manufacture_id = SST_ID,
14032 .model_id = SST_SST29LE010,
14033 .total_size = 128,
14034 .page_size = 128,
14035 .feature_bits = FEATURE_LONG_RESET,
14036 .tested = TEST_UNTESTED,
14037 .probe = probe_jedec,
14038 .probe_timing = 10,
14039 .block_erasers =
14040 {
14041 {
14042 .eraseblocks = { {128 * 1024, 1} },
14043 .block_erase = erase_chip_block_jedec,
14044 }
14045 },
14046 .write = write_jedec,
14047 .read = read_memmapped,
14048 .voltage = {3000, 3600},
14049 },
14050
14051 {
14052 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014053 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014054 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014055 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014056 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014057 .total_size = 256,
14058 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014059 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014060 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014061 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014062 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014063 .block_erasers =
14064 {
14065 {
14066 .eraseblocks = { {256 * 1024, 1} },
14067 .block_erase = erase_chip_block_jedec,
14068 }
14069 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014070 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014071 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014072 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014073 },
14074
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014075 {
14076 .vendor = "SST",
14077 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014078 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014079 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014080 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014081 .total_size = 128,
14082 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014083 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014084 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014085 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014086 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014087 .block_erasers =
14088 {
14089 {
14090 .eraseblocks = { {4 * 1024, 32} },
14091 .block_erase = erase_sector_jedec,
14092 }, {
14093 .eraseblocks = { {128 * 1024, 1} },
14094 .block_erase = erase_chip_block_jedec,
14095 }
14096 },
Sean Nelson35727f72010-01-28 23:55:12 +000014097 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014098 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014099 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014100 },
14101
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014102 {
14103 .vendor = "SST",
14104 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014105 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014106 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014107 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014108 .total_size = 256,
14109 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014110 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000014111 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014112 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014113 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014114 .block_erasers =
14115 {
14116 {
14117 .eraseblocks = { {4 * 1024, 64} },
14118 .block_erase = erase_sector_jedec,
14119 }, {
14120 .eraseblocks = { {256 * 1024, 1} },
14121 .block_erase = erase_chip_block_jedec,
14122 }
14123 },
Sean Nelson35727f72010-01-28 23:55:12 +000014124 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014125 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014126 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014127 },
14128
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014129 {
14130 .vendor = "SST",
14131 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014132 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014133 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014134 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014135 .total_size = 512,
14136 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014137 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000014138 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014139 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014140 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014141 .block_erasers =
14142 {
14143 {
14144 .eraseblocks = { {4 * 1024, 128} },
14145 .block_erase = erase_sector_jedec,
14146 }, {
14147 .eraseblocks = { {512 * 1024, 1} },
14148 .block_erase = erase_chip_block_jedec,
14149 }
14150 },
Sean Nelson35727f72010-01-28 23:55:12 +000014151 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014152 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014153 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014154 },
14155
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014156 {
14157 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014158 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014159 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014160 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014161 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014162 .total_size = 64,
14163 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014164 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000014165 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014166 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014167 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014168 .block_erasers =
14169 {
14170 {
14171 .eraseblocks = { {4 * 1024, 16} },
14172 .block_erase = erase_sector_jedec,
14173 }, {
14174 .eraseblocks = { {64 * 1024, 1} },
14175 .block_erase = erase_chip_block_jedec,
14176 }
14177 },
Sean Nelson35727f72010-01-28 23:55:12 +000014178 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014179 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014180 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014181 },
14182
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014183 {
14184 .vendor = "SST",
14185 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014186 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014187 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014188 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014189 .total_size = 128,
14190 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014191 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000014192 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014193 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014194 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014195 .block_erasers =
14196 {
14197 {
14198 .eraseblocks = { {4 * 1024, 32} },
14199 .block_erase = erase_sector_jedec,
14200 }, {
14201 .eraseblocks = { {128 * 1024, 1} },
14202 .block_erase = erase_chip_block_jedec,
14203 }
14204 },
Sean Nelson35727f72010-01-28 23:55:12 +000014205 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014206 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014207 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014208 },
14209
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014210 {
14211 .vendor = "SST",
14212 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014213 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014214 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014215 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014216 .total_size = 256,
14217 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014218 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000014219 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014220 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014221 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014222 .block_erasers =
14223 {
14224 {
14225 .eraseblocks = { {4 * 1024, 64} },
14226 .block_erase = erase_sector_jedec,
14227 }, {
14228 .eraseblocks = { {256 * 1024, 1} },
14229 .block_erase = erase_chip_block_jedec,
14230 }
14231 },
Sean Nelson35727f72010-01-28 23:55:12 +000014232 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014233 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014234 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014235 },
14236
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014237 {
14238 .vendor = "SST",
14239 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014240 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014241 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014242 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014243 .total_size = 512,
14244 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014245 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014246 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014247 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014248 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014249 .block_erasers =
14250 {
14251 {
14252 .eraseblocks = { {4 * 1024, 128} },
14253 .block_erase = erase_sector_jedec,
14254 }, {
14255 .eraseblocks = { {512 * 1024, 1} },
14256 .block_erase = erase_chip_block_jedec,
14257 }
14258 },
Sean Nelson35727f72010-01-28 23:55:12 +000014259 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014260 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014261 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000014262 },
FENG yu ningff692fb2008-12-08 18:15:10 +000014263
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014264 {
14265 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000014266 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014267 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014268 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014269 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000014270 .total_size = 1024,
14271 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014272 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000014273 .tested = TEST_UNTESTED,
14274 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014275 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014276 .block_erasers =
14277 {
14278 {
14279 .eraseblocks = { {4 * 1024, 256} },
14280 .block_erase = erase_sector_jedec,
14281 }, {
14282 .eraseblocks = { {64 * 1024, 16} },
14283 .block_erase = erase_block_jedec,
14284 }, {
14285 .eraseblocks = { {1024 * 1024, 1} },
14286 .block_erase = erase_chip_block_jedec,
14287 }
14288 },
Sean Nelson35727f72010-01-28 23:55:12 +000014289 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014290 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014291 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000014292 },
14293
14294 {
14295 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014296 .name = "SST39VF512",
14297 .bustype = BUS_PARALLEL,
14298 .manufacture_id = SST_ID,
14299 .model_id = SST_SST39VF512,
14300 .total_size = 64,
14301 .page_size = 4096,
14302 .feature_bits = FEATURE_EITHER_RESET,
14303 .tested = TEST_OK_PREW,
14304 .probe = probe_jedec,
14305 .probe_timing = 1, /* 150 ns */
14306 .block_erasers =
14307 {
14308 {
14309 .eraseblocks = { {4 * 1024, 16} },
14310 .block_erase = erase_sector_jedec,
14311 }, {
14312 .eraseblocks = { {64 * 1024, 1} },
14313 .block_erase = erase_chip_block_jedec,
14314 }
14315 },
14316 .write = write_jedec_1,
14317 .read = read_memmapped,
14318 .voltage = {2700, 3600},
14319 },
14320
14321 {
14322 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014323 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014324 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014325 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014326 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014327 .total_size = 256,
14328 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014329 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014330 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014331 .probe = probe_jedec,
14332 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014333 .block_erasers =
14334 {
14335 {
14336 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014337 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014338 }, {
14339 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014340 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014341 }, {
14342 .eraseblocks = { {256 * 1024, 1} },
14343 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14344 }
14345 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014346 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014347 .unlock = unlock_sst_fwhub,
14348 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014349 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014350 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014351 },
14352
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014353 {
14354 .vendor = "SST",
14355 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014356 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014357 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014358 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014359 .total_size = 384,
14360 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014361 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000014362 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014363 .probe = probe_jedec,
14364 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014365 .block_erasers =
14366 {
14367 {
14368 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014369 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014370 }, {
14371 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014372 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014373 }, {
14374 .eraseblocks = { {384 * 1024, 1} },
14375 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14376 }
14377 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014378 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014379 .unlock = unlock_sst_fwhub,
14380 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014381 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014382 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014383 },
14384
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014385 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014386 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
14387 * and is only honored for 64k block erase, but not 4k sector erase.
14388 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014389 .vendor = "SST",
14390 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014391 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014392 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014393 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014394 .total_size = 512,
14395 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014396 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014397 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014398 .probe = probe_jedec,
14399 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014400 .block_erasers =
14401 {
14402 {
14403 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014404 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014405 }, {
14406 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014407 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014408 }, {
14409 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000014410 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014411 },
14412 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014413 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014414 .unlock = unlock_sst_fwhub,
14415 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014416 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014417 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014418 },
14419
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014420 {
14421 .vendor = "SST",
14422 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014423 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014424 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014425 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014426 .total_size = 512,
14427 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014428 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014429 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014430 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014431 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014432 .block_erasers =
14433 {
14434 {
14435 .eraseblocks = { {4 * 1024, 128} },
14436 .block_erase = erase_sector_49lfxxxc,
14437 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014438 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014439 {64 * 1024, 7},
14440 {32 * 1024, 1},
14441 {8 * 1024, 2},
14442 {16 * 1024, 1},
14443 },
Sean Nelson69e58112010-03-23 17:10:28 +000014444 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014445 }
14446 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014447 .printlock = printlock_regspace2_block_eraser_1,
14448 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014449 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014450 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014451 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014452 },
14453
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014454 {
14455 .vendor = "SST",
14456 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014457 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014458 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014459 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014460 .total_size = 1024,
14461 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014462 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014463 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014464 .probe = probe_jedec,
14465 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014466 .block_erasers =
14467 {
14468 {
14469 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014470 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014471 }, {
14472 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014473 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014474 }, {
14475 .eraseblocks = { {1024 * 1024, 1} },
14476 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14477 }
14478 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014479 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014480 .unlock = unlock_sst_fwhub,
14481 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014482 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014483 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014484 },
14485
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014486 {
14487 .vendor = "SST",
14488 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014489 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014490 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014491 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014492 .total_size = 1024,
14493 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014494 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014495 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014496 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014497 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014498 .block_erasers =
14499 {
14500 {
14501 .eraseblocks = { {4 * 1024, 256} },
14502 .block_erase = erase_sector_49lfxxxc,
14503 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014504 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014505 {64 * 1024, 15},
14506 {32 * 1024, 1},
14507 {8 * 1024, 2},
14508 {16 * 1024, 1},
14509 },
Sean Nelson69e58112010-03-23 17:10:28 +000014510 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014511 }
14512 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014513 .printlock = printlock_regspace2_block_eraser_1,
14514 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014515 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014516 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014517 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014518 },
14519
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014520 {
14521 .vendor = "SST",
14522 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014523 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014524 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014525 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014526 .total_size = 2048,
14527 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014528 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014529 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014530 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014531 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014532 .block_erasers =
14533 {
14534 {
14535 .eraseblocks = { {4 * 1024, 512} },
14536 .block_erase = erase_sector_49lfxxxc,
14537 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014538 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014539 {64 * 1024, 31},
14540 {32 * 1024, 1},
14541 {8 * 1024, 2},
14542 {16 * 1024, 1},
14543 },
Sean Nelson69e58112010-03-23 17:10:28 +000014544 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014545 }
14546 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014547 .printlock = printlock_regspace2_block_eraser_1,
14548 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014549 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014550 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014551 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014552 },
14553
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014554 {
14555 .vendor = "SST",
14556 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014557 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014558 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014559 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014560 .total_size = 256,
14561 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014562 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000014563 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014564 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014565 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014566 .block_erasers =
14567 {
14568 {
14569 .eraseblocks = { {4 * 1024, 64} },
14570 .block_erase = erase_sector_jedec,
14571 }, {
14572 .eraseblocks = { {16 * 1024, 16} },
14573 .block_erase = erase_block_jedec,
14574 }, {
14575 .eraseblocks = { {256 * 1024, 1} },
14576 .block_erase = NULL,
14577 }
14578 },
Sean Nelson35727f72010-01-28 23:55:12 +000014579 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014580 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014581 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000014582 },
14583
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014584 {
14585 .vendor = "SST",
14586 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014587 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014588 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014589 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014590 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000014591 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014592 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014593 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014594 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014595 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014596 .block_erasers =
14597 {
14598 {
14599 .eraseblocks = { {4 * 1024, 64} },
14600 .block_erase = erase_sector_jedec,
14601 }, {
14602 .eraseblocks = { {16 * 1024, 16} },
14603 .block_erase = erase_block_jedec,
14604 }, {
14605 .eraseblocks = { {256 * 1024, 1} },
14606 .block_erase = NULL,
14607 }
14608 },
Sean Nelson35727f72010-01-28 23:55:12 +000014609 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014610 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014611 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014612 },
14613
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014614 {
14615 .vendor = "SST",
14616 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014617 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014618 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014619 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014620 .total_size = 512,
14621 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014622 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014623 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014624 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014625 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014626 .block_erasers =
14627 {
14628 {
14629 .eraseblocks = { {4 * 1024, 128} },
14630 .block_erase = erase_sector_jedec,
14631 }, {
14632 .eraseblocks = { {64 * 1024, 8} },
14633 .block_erase = erase_block_jedec,
14634 }, {
14635 .eraseblocks = { {512 * 1024, 1} },
14636 .block_erase = NULL,
14637 }
14638 },
Sean Nelson35727f72010-01-28 23:55:12 +000014639 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014640 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014641 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014642 },
14643
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014644 {
14645 .vendor = "SST",
14646 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014647 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014648 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014649 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014650 .total_size = 512,
14651 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000014652 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014653 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014654 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014655 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014656 .block_erasers =
14657 {
14658 {
14659 .eraseblocks = { {4 * 1024, 128} },
14660 .block_erase = erase_sector_jedec,
14661 }, {
14662 .eraseblocks = { {64 * 1024, 8} },
14663 .block_erase = erase_block_jedec,
14664 }, {
14665 .eraseblocks = { {512 * 1024, 1} },
14666 .block_erase = NULL,
14667 }
14668 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014669 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014670 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014671 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014672 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014673 },
14674
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014675 {
14676 .vendor = "SST",
14677 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014678 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014679 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020014680 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014681 .total_size = 1024,
14682 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014683 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000014684 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014685 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014686 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014687 .block_erasers =
14688 {
14689 {
14690 .eraseblocks = { {4 * 1024, 256} },
14691 .block_erase = erase_sector_jedec,
14692 }, {
14693 .eraseblocks = { {64 * 1024, 16} },
14694 .block_erase = erase_block_jedec,
14695 }, {
14696 .eraseblocks = { {1024 * 1024, 1} },
14697 .block_erase = NULL,
14698 }
14699 },
Sean Nelson35727f72010-01-28 23:55:12 +000014700 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014701 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014702 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014703 },
14704
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014705 {
14706 .vendor = "SST",
14707 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014708 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014709 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014710 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014711 .total_size = 2048,
14712 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014713 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014714 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014715 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014716 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014717 .block_erasers =
14718 {
14719 {
14720 .eraseblocks = { {4 * 1024, 512} },
14721 .block_erase = erase_sector_49lfxxxc,
14722 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014723 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014724 {64 * 1024, 31},
14725 {32 * 1024, 1},
14726 {8 * 1024, 2},
14727 {16 * 1024, 1},
14728 },
Sean Nelson69e58112010-03-23 17:10:28 +000014729 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014730 }
14731 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014732 .printlock = printlock_regspace2_block_eraser_1,
14733 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014734 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014735 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014736 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014737 },
14738
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014739 {
14740 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014741 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014742 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014743 .manufacture_id = ST_ID,
14744 .model_id = ST_M29F002B,
14745 .total_size = 256,
14746 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014747 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014748 .tested = TEST_UNTESTED,
14749 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014750 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014751 .block_erasers =
14752 {
14753 {
14754 .eraseblocks = {
14755 {16 * 1024, 1},
14756 {8 * 1024, 2},
14757 {32 * 1024, 1},
14758 {64 * 1024, 3},
14759 },
14760 .block_erase = erase_sector_jedec,
14761 }, {
14762 .eraseblocks = { {256 * 1024, 1} },
14763 .block_erase = erase_chip_block_jedec,
14764 }
14765 },
Sean Nelson35727f72010-01-28 23:55:12 +000014766 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014767 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014768 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014769 },
14770
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014771 {
14772 .vendor = "ST",
14773 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014774 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014775 .manufacture_id = ST_ID,
14776 .model_id = ST_M29F002T,
14777 .total_size = 256,
14778 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014779 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014780 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014781 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014782 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014783 .block_erasers =
14784 {
14785 {
14786 .eraseblocks = {
14787 {64 * 1024, 3},
14788 {32 * 1024, 1},
14789 {8 * 1024, 2},
14790 {16 * 1024, 1},
14791 },
14792 .block_erase = erase_sector_jedec,
14793 }, {
14794 .eraseblocks = { {256 * 1024, 1} },
14795 .block_erase = erase_chip_block_jedec,
14796 }
14797 },
Sean Nelson35727f72010-01-28 23:55:12 +000014798 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014799 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014800 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014801 },
14802
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014803 {
14804 .vendor = "ST",
14805 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014806 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014807 .manufacture_id = ST_ID,
14808 .model_id = ST_M29F040B,
14809 .total_size = 512,
14810 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014811 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
14812 .tested = TEST_UNTESTED,
14813 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000014814 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000014815 .block_erasers =
14816 {
14817 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014818 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000014819 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014820 }, {
14821 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000014822 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014823 }
14824 },
Sean Nelson35727f72010-01-28 23:55:12 +000014825 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014826 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014827 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014828 },
14829
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014830 {
Sean Nelson35727f72010-01-28 23:55:12 +000014831 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014832 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014833 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014834 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014835 .manufacture_id = ST_ID,
14836 .model_id = ST_M29F400BB,
14837 .total_size = 512,
14838 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014839 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014840 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014841 .probe = probe_jedec,
14842 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014843 .block_erasers =
14844 {
14845 {
14846 .eraseblocks = {
14847 {16 * 1024, 1},
14848 {8 * 1024, 2},
14849 {32 * 1024, 1},
14850 {64 * 1024, 7},
14851 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014852 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014853 }, {
14854 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014855 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014856 }
14857 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014858 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014859 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014860 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014861 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100014862
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014863 {
14864 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
14865 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014866 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014867 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014868 .manufacture_id = ST_ID,
14869 .model_id = ST_M29F400BT,
14870 .total_size = 512,
14871 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014872 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014873 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014874 .probe = probe_jedec,
14875 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000014876 .block_erasers =
14877 {
14878 {
14879 .eraseblocks = {
14880 {64 * 1024, 7},
14881 {32 * 1024, 1},
14882 {8 * 1024, 2},
14883 {16 * 1024, 1},
14884 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014885 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014886 }, {
14887 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014888 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014889 }
14890 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014891 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014892 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014893 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014894 },
14895
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014896 {
14897 .vendor = "ST",
14898 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014899 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014900 .manufacture_id = ST_ID,
14901 .model_id = ST_M29W010B,
14902 .total_size = 128,
14903 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014904 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014905 .tested = TEST_UNTESTED,
14906 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014907 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014908 .block_erasers =
14909 {
14910 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014911 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014912 .block_erase = erase_sector_jedec,
14913 }, {
14914 .eraseblocks = { {128 * 1024, 1} },
14915 .block_erase = erase_chip_block_jedec,
14916 }
14917 },
Sean Nelson35727f72010-01-28 23:55:12 +000014918 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014919 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014920 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014921 },
14922
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014923 {
14924 .vendor = "ST",
14925 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014926 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014927 .manufacture_id = ST_ID,
14928 .model_id = ST_M29W040B,
14929 .total_size = 512,
14930 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014931 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014932 .tested = TEST_UNTESTED,
14933 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014934 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014935 .block_erasers =
14936 {
14937 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014938 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014939 .block_erase = erase_sector_jedec,
14940 }, {
14941 .eraseblocks = { {512 * 1024, 1} },
14942 .block_erase = erase_chip_block_jedec,
14943 }
14944 },
Sean Nelson35727f72010-01-28 23:55:12 +000014945 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014946 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014947 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014948 },
14949
Stefan Taunereb582572012-09-21 12:52:50 +000014950 {
14951 .vendor = "ST",
14952 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014953 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100014954 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000014955 .model_id = ST_M29W512B,
14956 .total_size = 64,
14957 .page_size = 64 * 1024,
14958 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014959 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000014960 .probe = probe_jedec,
14961 .probe_timing = TIMING_ZERO,
14962 .block_erasers =
14963 {
14964 {
14965 .eraseblocks = { {64 * 1024, 1} },
14966 .block_erase = erase_chip_block_jedec,
14967 }
14968 },
14969 .write = write_jedec_1,
14970 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014971 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000014972 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000014973
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014974 {
14975 .vendor = "ST",
14976 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014977 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014978 .manufacture_id = ST_ID,
14979 .model_id = ST_M50FLW040A,
14980 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014981 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014982 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014983 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014984 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014985 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014986 .block_erasers =
14987 {
14988 {
Sean Nelson329bde72010-01-19 16:39:19 +000014989 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014990 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014991 {64 * 1024, 5}, /* block */
14992 {4 * 1024, 16}, /* sector */
14993 {4 * 1024, 16}, /* sector */
14994 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014995 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014996 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014997 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014998 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014999 }
15000 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015001 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015002 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015003 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015004 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015005 },
15006
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015007 {
15008 .vendor = "ST",
15009 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015010 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015011 .manufacture_id = ST_ID,
15012 .model_id = ST_M50FLW040B,
15013 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015014 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015015 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015016 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015017 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015018 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015019 .block_erasers =
15020 {
15021 {
Sean Nelson329bde72010-01-19 16:39:19 +000015022 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015023 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015024 {4 * 1024, 16}, /* sector */
15025 {64 * 1024, 5}, /* block */
15026 {4 * 1024, 16}, /* sector */
15027 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015028 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015029 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015030 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015031 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015032 }
15033 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015034 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015035 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015036 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015037 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015038 },
15039
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015040 {
15041 .vendor = "ST",
15042 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015043 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015044 .manufacture_id = ST_ID,
15045 .model_id = ST_M50FLW080A,
15046 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015047 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015048 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015049 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015050 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015051 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015052 .block_erasers =
15053 {
15054 {
Sean Nelson329bde72010-01-19 16:39:19 +000015055 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015056 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015057 {64 * 1024, 13}, /* block */
15058 {4 * 1024, 16}, /* sector */
15059 {4 * 1024, 16}, /* sector */
15060 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015061 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015062 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015063 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015064 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015065 }
15066 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015067 .printlock = printlock_regspace2_block_eraser_0,
15068 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015069 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015070 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015071 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015072 },
15073
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015074 {
15075 .vendor = "ST",
15076 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015077 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015078 .manufacture_id = ST_ID,
15079 .model_id = ST_M50FLW080B,
15080 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015081 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015082 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015083 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015084 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015085 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015086 .block_erasers =
15087 {
15088 {
Sean Nelson329bde72010-01-19 16:39:19 +000015089 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015090 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015091 {4 * 1024, 16}, /* sector */
15092 {64 * 1024, 13}, /* block */
15093 {4 * 1024, 16}, /* sector */
15094 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015095 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015096 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015097 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015098 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015099 }
15100 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015101 .printlock = printlock_regspace2_block_eraser_0,
15102 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015103 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015104 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015105 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015106 },
15107
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015108 {
15109 .vendor = "ST",
15110 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015111 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015112 .manufacture_id = ST_ID,
15113 .model_id = ST_M50FW002,
15114 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000015115 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015116 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015117 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015118 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015119 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015120 .block_erasers =
15121 {
15122 {
15123 .eraseblocks = {
15124 {64 * 1024, 3},
15125 {32 * 1024, 1},
15126 {8 * 1024, 2},
15127 {16 * 1024, 1},
15128 },
Sean Nelson28accc22010-03-19 18:47:06 +000015129 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015130 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000015131 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015132 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000015133 }
15134 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015135 .printlock = printlock_regspace2_block_eraser_0,
15136 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015137 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015138 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015139 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015140 },
15141
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015142 {
15143 .vendor = "ST",
15144 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015145 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015146 .manufacture_id = ST_ID,
15147 .model_id = ST_M50FW016,
15148 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015149 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015150 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015151 .tested = TEST_UNTESTED,
15152 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015153 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015154 .block_erasers =
15155 {
15156 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015157 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000015158 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015159 }
15160 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015161 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015162 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015163 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015164 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015165 },
15166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015167 {
15168 .vendor = "ST",
15169 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015170 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015171 .manufacture_id = ST_ID,
15172 .model_id = ST_M50FW040,
15173 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015174 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015175 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000015176 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015177 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015178 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015179 .block_erasers =
15180 {
15181 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015182 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015183 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015184 }
15185 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015186 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015187 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015188 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015189 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015190 },
15191
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015192 {
15193 .vendor = "ST",
15194 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015195 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015196 .manufacture_id = ST_ID,
15197 .model_id = ST_M50FW080,
15198 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015199 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015200 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015201 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015202 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015203 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015204 .block_erasers =
15205 {
15206 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015207 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015208 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015209 }
15210 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015211 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015212 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015213 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015214 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015215 },
15216
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015217 {
15218 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015219 .name = "M50LPW080",
15220 .bustype = BUS_LPC, /* A/A Mux */
15221 .manufacture_id = ST_ID,
15222 .model_id = ST_M50LPW080,
15223 .total_size = 1024,
15224 .page_size = 0,
15225 .feature_bits = FEATURE_REGISTERMAP,
15226 .tested = TEST_UNTESTED,
15227 .probe = probe_82802ab,
15228 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15229 .block_erasers =
15230 {
15231 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015232 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015233 .block_erase = erase_block_82802ab,
15234 }
15235 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015236 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015237 .write = write_82802ab,
15238 .read = read_memmapped,
15239 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
15240 },
15241
15242 {
15243 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015244 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015245 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015246 .manufacture_id = ST_ID,
15247 .model_id = ST_M50LPW116,
15248 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015249 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015250 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015251 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015252 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000015253 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015254 .block_erasers =
15255 {
15256 {
15257 .eraseblocks = {
15258 {4 * 1024, 16},
15259 {64 * 1024, 30},
15260 {32 * 1024, 1},
15261 {8 * 1024, 2},
15262 {16 * 1024, 1},
15263 },
Sean Nelson28accc22010-03-19 18:47:06 +000015264 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015265 }
15266 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015267 .printlock = printlock_regspace2_block_eraser_0,
15268 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015269 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015270 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015271 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015272 },
15273
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015274 {
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030015275 .vendor = "ST",
15276 .name = "M95M02",
15277 .bustype = BUS_SPI,
15278 .manufacture_id = ST_ID,
15279 .model_id = ST_M95M02,
15280 .total_size = 256,
15281 .page_size = 256,
15282 .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO,
15283 .tested = TEST_OK_PREW,
15284 .probe = probe_spi_st95,
15285 .probe_timing = TIMING_ZERO,
15286 .block_erasers =
15287 {
15288 {
15289 .eraseblocks = { {256 * 1024, 1} },
15290 .block_erase = spi_block_erase_emulation,
15291 }
15292 },
15293
15294 .printlock = spi_prettyprint_status_register_bp1_srwd,
15295 .unlock = spi_disable_blockprotect_bp1_srwd,
15296 .write = spi_chip_write_256,
15297 .read = spi_chip_read,
15298 .voltage = {2500, 5500},
15299 },
15300
15301 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100015302 .vendor = "Sanyo",
15303 .name = "LE25FU106B",
15304 .bustype = BUS_SPI,
15305 .manufacture_id = SANYO_ID,
15306 .model_id = SANYO_LE25FU106B,
15307 .total_size = 128,
15308 .page_size = 256,
15309 .feature_bits = FEATURE_WRSR_WREN,
15310 .tested = TEST_UNTESTED,
15311 .probe = probe_spi_res2,
15312 .probe_timing = TIMING_ZERO,
15313 .block_erasers =
15314 {
15315 /* FIXME: Is this correct?
15316 {
15317 .eraseblocks = { {2 * 1024, 64} },
15318 .block_erase = spi_block_erase_d7,
15319 },*/
15320 {
15321 .eraseblocks = { {32 * 1024, 4} },
15322 .block_erase = spi_block_erase_d8,
15323 }, {
15324 .eraseblocks = { {128 * 1024, 1} },
15325 .block_erase = spi_block_erase_c7,
15326 }
15327 },
15328 .printlock = spi_prettyprint_status_register_bp1_srwd,
15329 .unlock = spi_disable_blockprotect_bp1_srwd,
15330 .write = spi_chip_write_256,
15331 .read = spi_chip_read,
15332 .voltage = {2300, 3600},
15333 },
15334
15335 {
15336 .vendor = "Sanyo",
15337 .name = "LE25FU206",
15338 .bustype = BUS_SPI,
15339 .manufacture_id = SANYO_ID,
15340 .model_id = SANYO_LE25FU206,
15341 .total_size = 256,
15342 .page_size = 256,
15343 .feature_bits = FEATURE_WRSR_WREN,
15344 .tested = TEST_UNTESTED,
15345 .probe = probe_spi_res2,
15346 .probe_timing = TIMING_ZERO,
15347 .block_erasers =
15348 {
15349 {
15350 .eraseblocks = { {4 * 1024, 64} },
15351 .block_erase = spi_block_erase_d7,
15352 }, {
15353 .eraseblocks = { {64 * 1024, 4} },
15354 .block_erase = spi_block_erase_d8,
15355 }, {
15356 .eraseblocks = { {256 * 1024, 1} },
15357 .block_erase = spi_block_erase_c7,
15358 }
15359 },
15360 .printlock = spi_prettyprint_status_register_bp1_srwd,
15361 .unlock = spi_disable_blockprotect_bp1_srwd,
15362 .write = spi_chip_write_256,
15363 .read = spi_chip_read,
15364 .voltage = {2300, 3600},
15365 },
15366
15367 {
15368 .vendor = "Sanyo",
15369 .name = "LE25FU206A",
15370 .bustype = BUS_SPI,
15371 .manufacture_id = SANYO_ID,
15372 .model_id = SANYO_LE25FU206A,
15373 .total_size = 256,
15374 .page_size = 256,
15375 .tested = TEST_UNTESTED,
15376 .probe = probe_spi_rdid,
15377 .probe_timing = TIMING_ZERO,
15378 .block_erasers =
15379 {
15380 {
15381 .eraseblocks = { {4 * 1024, 64} },
15382 .block_erase = spi_block_erase_20,
15383 }, {
15384 .eraseblocks = { {4 * 1024, 64} },
15385 .block_erase = spi_block_erase_d7,
15386 }, {
15387 .eraseblocks = { {64 * 1024, 4} },
15388 .block_erase = spi_block_erase_d8,
15389 }, {
15390 .eraseblocks = { {256 * 1024, 1} },
15391 .block_erase = spi_block_erase_60,
15392 }, {
15393 .eraseblocks = { {256 * 1024, 1} },
15394 .block_erase = spi_block_erase_c7,
15395 }
15396 },
15397 .printlock = spi_prettyprint_status_register_bp2_srwd,
15398 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15399 .write = spi_chip_write_256,
15400 .read = spi_chip_read,
15401 .voltage = {2300, 3600},
15402 },
15403
15404 {
15405 .vendor = "Sanyo",
15406 .name = "LE25FU406B",
15407 .bustype = BUS_SPI,
15408 .manufacture_id = SANYO_ID,
15409 .model_id = SANYO_LE25FU406B,
15410 .total_size = 512,
15411 .page_size = 256,
15412 .feature_bits = FEATURE_WRSR_WREN,
15413 .tested = TEST_OK_PREW,
15414 .probe = probe_spi_res2,
15415 .probe_timing = TIMING_ZERO,
15416 .block_erasers =
15417 {
15418 {
15419 .eraseblocks = { {4 * 1024, 128} },
15420 .block_erase = spi_block_erase_d7,
15421 }, {
15422 .eraseblocks = { {64 * 1024, 8} },
15423 .block_erase = spi_block_erase_d8,
15424 }, {
15425 .eraseblocks = { {512 * 1024, 1} },
15426 .block_erase = spi_block_erase_c7,
15427 }
15428 },
15429 .printlock = spi_prettyprint_status_register_bp2_srwd,
15430 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15431 .write = spi_chip_write_256,
15432 .read = spi_chip_read,
15433 .voltage = {2300, 3600},
15434 },
15435
15436 {
15437 .vendor = "Sanyo",
15438 .name = "LE25FU406C/LE25U40CMC",
15439 .bustype = BUS_SPI,
15440 .manufacture_id = SANYO_ID,
15441 .model_id = SANYO_LE25FU406C,
15442 .total_size = 512,
15443 .page_size = 256,
15444 .feature_bits = FEATURE_WRSR_WREN,
15445 .tested = TEST_OK_PREW,
15446 .probe = probe_spi_rdid,
15447 .probe_timing = TIMING_ZERO,
15448 .block_erasers =
15449 {
15450 {
15451 .eraseblocks = { {4 * 1024, 128} },
15452 .block_erase = spi_block_erase_20,
15453 }, {
15454 .eraseblocks = { {4 * 1024, 128} },
15455 .block_erase = spi_block_erase_d7,
15456 }, {
15457 .eraseblocks = { {64 * 1024, 8} },
15458 .block_erase = spi_block_erase_d8,
15459 }, {
15460 .eraseblocks = { {512 * 1024, 1} },
15461 .block_erase = spi_block_erase_60,
15462 }, {
15463 .eraseblocks = { {512 * 1024, 1} },
15464 .block_erase = spi_block_erase_c7,
15465 }
15466 },
15467 .printlock = spi_prettyprint_status_register_bp2_srwd,
15468 .unlock = spi_disable_blockprotect_bp2_srwd,
15469 .write = spi_chip_write_256,
15470 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
15471 .voltage = {2300, 3600},
15472 },
15473
15474 {
15475 .vendor = "Sanyo",
15476 .name = "LE25FW106",
15477 .bustype = BUS_SPI,
15478 .manufacture_id = SANYO_ID,
15479 .model_id = SANYO_LE25FW106,
15480 .total_size = 128,
15481 .page_size = 256,
15482 .feature_bits = FEATURE_WRSR_WREN,
15483 .tested = TEST_OK_PREW,
15484 .probe = probe_spi_res2,
15485 .probe_timing = TIMING_ZERO,
15486 .block_erasers =
15487 {
15488 {
15489 .eraseblocks = { {2 * 1024, 64} },
15490 .block_erase = spi_block_erase_d7,
15491 }, {
15492 .eraseblocks = { {32 * 1024, 4} },
15493 .block_erase = spi_block_erase_d8,
15494 }, {
15495 .eraseblocks = { {128 * 1024, 1} },
15496 .block_erase = spi_block_erase_c7,
15497 }
15498 },
15499 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
15500 .unlock = spi_disable_blockprotect_bp1_srwd,
15501 .write = spi_chip_write_256,
15502 .read = spi_chip_read,
15503 .voltage = {2700, 3600},
15504 },
15505
15506 {
15507 .vendor = "Sanyo",
15508 .name = "LE25FW203A",
15509 .bustype = BUS_SPI,
15510 .manufacture_id = SANYO_ID,
15511 .model_id = SANYO_LE25FW203A,
15512 .total_size = 256,
15513 .page_size = 256,
15514 .tested = TEST_UNTESTED,
15515 .probe = probe_spi_rdid,
15516 .probe_timing = TIMING_ZERO,
15517 .block_erasers =
15518 {
15519 {
15520 .eraseblocks = { {256, 1024} },
15521 .block_erase = spi_block_erase_db,
15522 }, {
15523 .eraseblocks = { {64 * 1024, 4} },
15524 .block_erase = spi_block_erase_d8,
15525 }, {
15526 .eraseblocks = { {256 * 1024, 1} },
15527 .block_erase = spi_block_erase_c7,
15528 }
15529 },
15530 .printlock = spi_prettyprint_status_register_default_welwip,
15531 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15532 .write = spi_chip_write_256,
15533 .read = spi_chip_read,
15534 .voltage = {2700, 3600},
15535 },
15536
15537 {
15538 .vendor = "Sanyo",
15539 .name = "LE25FW403A",
15540 .bustype = BUS_SPI,
15541 .manufacture_id = SANYO_ID,
15542 .model_id = SANYO_LE25FW403A,
15543 .total_size = 512,
15544 .page_size = 256,
15545 .tested = TEST_UNTESTED,
15546 .probe = probe_spi_rdid,
15547 .probe_timing = TIMING_ZERO,
15548 .block_erasers =
15549 {
15550 {
15551 .eraseblocks = { {256, 2 * 1024} },
15552 .block_erase = spi_block_erase_db,
15553 }, {
15554 .eraseblocks = { {64 * 1024, 8} },
15555 .block_erase = spi_block_erase_d8,
15556 }, {
15557 .eraseblocks = { {512 * 1024, 1} },
15558 .block_erase = spi_block_erase_c7,
15559 }
15560 },
15561 .printlock = spi_prettyprint_status_register_default_welwip,
15562 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15563 .write = spi_chip_write_256,
15564 .read = spi_chip_read,
15565 .voltage = {2700, 3600},
15566 },
15567
15568 {
15569 .vendor = "Sanyo",
15570 .name = "LE25FW406A",
15571 .bustype = BUS_SPI,
15572 .manufacture_id = SANYO_ID,
15573 .model_id = SANYO_LE25FW406A,
15574 .total_size = 512,
15575 .page_size = 256,
15576 .feature_bits = FEATURE_WRSR_WREN,
15577 .tested = TEST_OK_PREW,
15578 .probe = probe_spi_res2,
15579 .probe_timing = TIMING_ZERO,
15580 .block_erasers =
15581 {
15582 {
15583 .eraseblocks = { {4 * 1024, 128} },
15584 .block_erase = spi_block_erase_d7,
15585 }, {
15586 .eraseblocks = { {64 * 1024, 8} },
15587 .block_erase = spi_block_erase_d8,
15588 }, {
15589 .eraseblocks = { {512 * 1024, 1} },
15590 .block_erase = spi_block_erase_c7,
15591 }
15592 },
15593 .printlock = spi_prettyprint_status_register_plain,
15594 .unlock = spi_disable_blockprotect,
15595 .write = spi_chip_write_256,
15596 .read = spi_chip_read,
15597 .voltage = {2700, 3600},
15598 },
15599
15600 {
15601 .vendor = "Sanyo",
15602 .name = "LE25FW418A",
15603 .bustype = BUS_SPI,
15604 .manufacture_id = SANYO_ID,
15605 .model_id = SANYO_LE25FW418A,
15606 .total_size = 512,
15607 .page_size = 256,
15608 .feature_bits = FEATURE_WRSR_WREN,
15609 .tested = TEST_UNTESTED,
15610 .probe = probe_spi_res2,
15611 .probe_timing = TIMING_ZERO,
15612 .block_erasers =
15613 {
15614 {
15615 .eraseblocks = { {4 * 1024, 128} },
15616 .block_erase = spi_block_erase_d7,
15617 }, {
15618 .eraseblocks = { {64 * 1024, 8} },
15619 .block_erase = spi_block_erase_d8,
15620 }, {
15621 .eraseblocks = { {512 * 1024, 1} },
15622 .block_erase = spi_block_erase_c7,
15623 }
15624 },
15625 .printlock = spi_prettyprint_status_register_bp2_srwd,
15626 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15627 .write = spi_chip_write_256,
15628 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15629 .voltage = {2700, 3600},
15630 },
15631
15632 {
15633 .vendor = "Sanyo",
15634 .name = "LE25FW806",
15635 .bustype = BUS_SPI,
15636 .manufacture_id = SANYO_ID,
15637 .model_id = SANYO_LE25FW806,
15638 .total_size = 1024,
15639 .page_size = 256,
15640 .feature_bits = FEATURE_WRSR_WREN,
15641 .tested = TEST_UNTESTED,
15642 .probe = probe_spi_res2,
15643 .probe_timing = TIMING_ZERO,
15644 .block_erasers =
15645 {
15646 {
15647 .eraseblocks = { {4 * 1024, 256} },
15648 .block_erase = spi_block_erase_20,
15649 }, {
15650 .eraseblocks = { {4 * 1024, 256} },
15651 .block_erase = spi_block_erase_d7,
15652 }, {
15653 .eraseblocks = { {64 * 1024, 16} },
15654 .block_erase = spi_block_erase_d8,
15655 }, {
15656 .eraseblocks = { {1024 * 1024, 1} },
15657 .block_erase = spi_block_erase_c7,
15658 }
15659 },
15660 .printlock = spi_prettyprint_status_register_bp2_srwd,
15661 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15662 .write = spi_chip_write_256,
15663 .read = spi_chip_read,
15664 .voltage = {2700, 3600},
15665 },
15666
15667 {
15668 .vendor = "Sanyo",
15669 .name = "LE25FW808",
15670 .bustype = BUS_SPI,
15671 .manufacture_id = SANYO_ID,
15672 .model_id = SANYO_LE25FW808,
15673 .total_size = 1024,
15674 .page_size = 256,
15675 .feature_bits = FEATURE_WRSR_WREN,
15676 .tested = TEST_UNTESTED,
15677 .probe = probe_spi_res2,
15678 .probe_timing = TIMING_ZERO,
15679 .block_erasers =
15680 {
15681 {
15682 .eraseblocks = { {8 * 1024, 128} },
15683 .block_erase = spi_block_erase_d7,
15684 }, {
15685 .eraseblocks = { {64 * 1024, 16} },
15686 .block_erase = spi_block_erase_d8,
15687 }, {
15688 .eraseblocks = { {1024 * 1024, 1} },
15689 .block_erase = spi_block_erase_c7,
15690 }
15691 },
15692 .printlock = spi_prettyprint_status_register_bp2_srwd,
15693 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15694 .write = spi_chip_write_256,
15695 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15696 .voltage = {2700, 3600},
15697 },
15698
15699 {
15700 .vendor = "Sharp",
15701 .name = "LH28F008BJT-BTLZ1",
15702 .bustype = BUS_PARALLEL,
15703 .manufacture_id = SHARP_ID,
15704 .model_id = SHARP_LH28F008BJ__PB,
15705 .total_size = 1024,
15706 .page_size = 64 * 1024,
15707 .tested = TEST_OK_PREW,
15708 .probe = probe_82802ab,
15709 .probe_timing = TIMING_ZERO,
15710 .block_erasers =
15711 {
15712 {
15713 .eraseblocks = {
15714 {8 * 1024, 8},
15715 {64 * 1024, 15}
15716 },
15717 .block_erase = erase_block_82802ab,
15718 }, {
15719 .eraseblocks = { {1024 * 1024, 1} },
15720 .block_erase = erase_sector_49lfxxxc,
15721 }
15722 },
15723 .unlock = unlock_lh28f008bjt,
15724 .write = write_82802ab,
15725 .read = read_memmapped,
15726 .voltage = {2700, 3600},
15727 },
15728
15729 {
15730 .vendor = "Sharp",
15731 .name = "LHF00L04",
15732 .bustype = BUS_FWH, /* A/A Mux */
15733 .manufacture_id = SHARP_ID,
15734 .model_id = SHARP_LHF00L04,
15735 .total_size = 1024,
15736 .page_size = 64 * 1024,
15737 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
15738 .tested = TEST_UNTESTED,
15739 .probe = probe_82802ab,
15740 .probe_timing = TIMING_ZERO,
15741 .block_erasers =
15742 {
15743 {
15744 .eraseblocks = {
15745 {64 * 1024, 15},
15746 {8 * 1024, 8}
15747 },
15748 .block_erase = erase_block_82802ab,
15749 }, {
15750 .eraseblocks = {
15751 {1024 * 1024, 1}
15752 },
15753 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
15754 },
15755 },
15756 .unlock = unlock_regspace2_uniform_64k,
15757 .write = write_82802ab,
15758 .read = read_memmapped,
15759 .voltage = {3000, 3600},
15760 },
15761
15762 {
15763 .vendor = "Spansion",
15764 .name = "S25FL004A",
15765 .bustype = BUS_SPI,
15766 .manufacture_id = SPANSION_ID,
15767 .model_id = SPANSION_S25FL004A,
15768 .total_size = 512,
15769 .page_size = 256,
15770 .feature_bits = FEATURE_WRSR_WREN,
15771 .tested = TEST_UNTESTED,
15772 .probe = probe_spi_rdid,
15773 .probe_timing = TIMING_ZERO,
15774 .block_erasers =
15775 {
15776 {
15777 .eraseblocks = { {64 * 1024, 8} },
15778 .block_erase = spi_block_erase_d8,
15779 }, {
15780 .eraseblocks = { {512 * 1024, 1} },
15781 .block_erase = spi_block_erase_c7,
15782 }
15783 },
15784 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15785 .unlock = spi_disable_blockprotect,
15786 .write = spi_chip_write_256,
15787 .read = spi_chip_read,
15788 .voltage = {2700, 3600},
15789 },
15790
15791 {
15792 .vendor = "Spansion",
15793 .name = "S25FL008A",
15794 .bustype = BUS_SPI,
15795 .manufacture_id = SPANSION_ID,
15796 .model_id = SPANSION_S25FL008A,
15797 .total_size = 1024,
15798 .page_size = 256,
15799 .feature_bits = FEATURE_WRSR_WREN,
15800 .tested = TEST_OK_PRE,
15801 .probe = probe_spi_rdid,
15802 .probe_timing = TIMING_ZERO,
15803 .block_erasers =
15804 {
15805 {
15806 .eraseblocks = { {64 * 1024, 16} },
15807 .block_erase = spi_block_erase_d8,
15808 }, {
15809 .eraseblocks = { {1024 * 1024, 1} },
15810 .block_erase = spi_block_erase_c7,
15811 }
15812 },
15813 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15814 .unlock = spi_disable_blockprotect,
15815 .write = spi_chip_write_256,
15816 .read = spi_chip_read,
15817 .voltage = {2700, 3600},
15818 },
15819
15820 {
15821 .vendor = "Spansion",
15822 .name = "S25FL016A",
15823 .bustype = BUS_SPI,
15824 .manufacture_id = SPANSION_ID,
15825 .model_id = SPANSION_S25FL016A,
15826 .total_size = 2048,
15827 .page_size = 256,
15828 .feature_bits = FEATURE_WRSR_WREN,
15829 .tested = TEST_OK_PREW,
15830 .probe = probe_spi_rdid,
15831 .probe_timing = TIMING_ZERO,
15832 .block_erasers =
15833 {
15834 {
15835 .eraseblocks = { {64 * 1024, 32} },
15836 .block_erase = spi_block_erase_d8,
15837 }, {
15838 .eraseblocks = { {2 * 1024 * 1024, 1} },
15839 .block_erase = spi_block_erase_c7,
15840 }
15841 },
15842 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15843 .unlock = spi_disable_blockprotect,
15844 .write = spi_chip_write_256,
15845 .read = spi_chip_read,
15846 .voltage = {2700, 3600},
15847 },
15848
15849 {
15850 .vendor = "Spansion",
15851 .name = "S25FL032A/P",
15852 .bustype = BUS_SPI,
15853 .manufacture_id = SPANSION_ID,
15854 .model_id = SPANSION_S25FL032A,
15855 .total_size = 4096,
15856 .page_size = 256,
15857 .feature_bits = FEATURE_WRSR_WREN,
15858 .tested = TEST_OK_PREW,
15859 .probe = probe_spi_rdid,
15860 .probe_timing = TIMING_ZERO,
15861 .block_erasers =
15862 {
15863 {
15864 .eraseblocks = { {64 * 1024, 64} },
15865 .block_erase = spi_block_erase_d8,
15866 }, {
15867 .eraseblocks = { {4 * 1024 * 1024, 1} },
15868 .block_erase = spi_block_erase_c7,
15869 }
15870 },
15871 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15872 .unlock = spi_disable_blockprotect,
15873 .write = spi_chip_write_256,
15874 .read = spi_chip_read,
15875 .voltage = {2700, 3600},
15876 },
15877
15878 {
15879 .vendor = "Spansion",
15880 .name = "S25FL064A/P",
15881 .bustype = BUS_SPI,
15882 .manufacture_id = SPANSION_ID,
15883 .model_id = SPANSION_S25FL064A,
15884 .total_size = 8192,
15885 .page_size = 256,
15886 .feature_bits = FEATURE_WRSR_WREN,
15887 .tested = TEST_OK_PREW,
15888 .probe = probe_spi_rdid,
15889 .probe_timing = TIMING_ZERO,
15890 .block_erasers =
15891 {
15892 {
15893 .eraseblocks = { {64 * 1024, 128} },
15894 .block_erase = spi_block_erase_d8,
15895 }, {
15896 .eraseblocks = { {8 * 1024 * 1024, 1} },
15897 .block_erase = spi_block_erase_c7,
15898 }
15899 },
15900 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15901 .unlock = spi_disable_blockprotect,
15902 .write = spi_chip_write_256,
15903 .read = spi_chip_read,
15904 .voltage = {2700, 3600},
15905 },
15906
15907 {
15908 .vendor = "Spansion",
15909 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
15910 .bustype = BUS_SPI,
15911 .manufacture_id = SPANSION_ID,
15912 .model_id = SPANSION_S25FL216,
15913 .total_size = 2048,
15914 .page_size = 256,
15915 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
15916 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15917 .tested = TEST_UNTESTED,
15918 .probe = probe_spi_rdid,
15919 .probe_timing = TIMING_ZERO,
15920 .block_erasers =
15921 {
15922 {
15923 .eraseblocks = { {4 * 1024, 512} },
15924 .block_erase = spi_block_erase_20,
15925 }, {
15926 .eraseblocks = { {64 * 1024, 32} },
15927 .block_erase = spi_block_erase_d8,
15928 }, {
15929 .eraseblocks = { { 2048 * 1024, 1} },
15930 .block_erase = spi_block_erase_60,
15931 }, {
15932 .eraseblocks = { { 2048 * 1024, 1} },
15933 .block_erase = spi_block_erase_c7,
15934 }
15935 },
15936 .printlock = spi_prettyprint_status_register_bp3_srwd,
15937 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
15938 .write = spi_chip_write_256,
15939 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
15940 .voltage = {2700, 3600},
15941 },
15942
15943 {
15944 .vendor = "Spansion",
15945 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
15946 .bustype = BUS_SPI,
15947 .manufacture_id = SPANSION_ID,
15948 .model_id = SPANSION_S25FL128,
15949 .total_size = 16384,
15950 .page_size = 512,
15951 /* supports 4B addressing */
15952 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15953 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15954 .tested = TEST_UNTESTED,
15955 .probe = probe_spi_rdid,
15956 .probe_timing = TIMING_ZERO,
15957 .block_erasers =
15958 {
15959 {
15960 .eraseblocks = { {256 * 1024, 64} },
15961 .block_erase = spi_block_erase_d8,
15962 }, {
15963 .eraseblocks = { { 16384 * 1024, 1} },
15964 .block_erase = spi_block_erase_60,
15965 }, {
15966 .eraseblocks = { { 16384 * 1024, 1} },
15967 .block_erase = spi_block_erase_c7,
15968 }
15969 },
15970 .printlock = spi_prettyprint_status_register_bp2_srwd,
15971 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15972 .write = spi_chip_write_256, /* Multi I/O supported */
15973 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15974 .voltage = {2700, 3600},
15975 },
15976
15977 {
15978 .vendor = "Spansion",
15979 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15980 .bustype = BUS_SPI,
15981 .manufacture_id = SPANSION_ID,
15982 .model_id = SPANSION_S25FL128,
15983 .total_size = 16384,
15984 .page_size = 256,
15985 /* supports 4B addressing */
15986 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15987 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15988 .tested = TEST_OK_PREW,
15989 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
15990 .probe = probe_spi_rdid,
15991 .probe_timing = TIMING_ZERO,
15992 .block_erasers =
15993 {
15994 {
15995 /* This chip supports erasing of 32 so-called "parameter sectors" with
15996 * opcode 0x20 which may be configured to be on top or bottom of the address
15997 * space. Trying to access an address outside these 4kB blocks does have no
15998 * effect on the memory contents, e.g.
15999 .eraseblocks = {
16000 {4 * 1024, 32},
16001 {64 * 1024, 254} // inaccessible
16002 },
16003 .block_erase = spi_block_erase_20,
16004 }, { */
16005 .eraseblocks = { { 64 * 1024, 256} },
16006 .block_erase = spi_block_erase_d8,
16007 }, {
16008 .eraseblocks = { { 16384 * 1024, 1} },
16009 .block_erase = spi_block_erase_60,
16010 }, {
16011 .eraseblocks = { { 16384 * 1024, 1} },
16012 .block_erase = spi_block_erase_c7,
16013 }
16014 },
16015 .printlock = spi_prettyprint_status_register_bp2_srwd,
16016 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16017 .write = spi_chip_write_256, /* Multi I/O supported */
16018 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16019 .voltage = {2700, 3600},
16020 },
16021
16022 {
16023 .vendor = "Spansion",
16024 .name = "S25FL128P......0", /* uniform 64 kB sectors */
16025 .bustype = BUS_SPI,
16026 .manufacture_id = SPANSION_ID,
16027 .model_id = SPANSION_S25FL128,
16028 .total_size = 16384,
16029 .page_size = 256,
16030 .feature_bits = FEATURE_WRSR_WREN,
16031 .tested = TEST_OK_PREW,
16032 .probe = probe_spi_rdid,
16033 .probe_timing = TIMING_ZERO,
16034 .block_erasers =
16035 {
16036 {
16037 .eraseblocks = { {64 * 1024, 256} },
16038 .block_erase = spi_block_erase_20,
16039 }, {
16040 .eraseblocks = { {64 * 1024, 256} },
16041 .block_erase = spi_block_erase_d8,
16042 }, {
16043 .eraseblocks = { { 16384 * 1024, 1} },
16044 .block_erase = spi_block_erase_60,
16045 }, {
16046 .eraseblocks = { { 16384 * 1024, 1} },
16047 .block_erase = spi_block_erase_c7,
16048 }
16049 },
16050 .printlock = spi_prettyprint_status_register_bp3_srwd,
16051 .unlock = spi_disable_blockprotect_bp3_srwd,
16052 .write = spi_chip_write_256,
16053 .read = spi_chip_read, /* Fast read (0x0B) supported */
16054 .voltage = {2700, 3600},
16055 },
16056
16057 {
16058 .vendor = "Spansion",
16059 .name = "S25FL128P......1", /* uniform 256kB sectors */
16060 .bustype = BUS_SPI,
16061 .manufacture_id = SPANSION_ID,
16062 .model_id = SPANSION_S25FL128,
16063 .total_size = 16384,
16064 .page_size = 256,
16065 .feature_bits = FEATURE_WRSR_WREN,
16066 .tested = TEST_UNTESTED,
16067 .probe = probe_spi_rdid,
16068 .probe_timing = TIMING_ZERO,
16069 .block_erasers =
16070 {
16071 {
16072 .eraseblocks = { {256 * 1024, 64} },
16073 .block_erase = spi_block_erase_d8,
16074 }, {
16075 .eraseblocks = { { 16384 * 1024, 1} },
16076 .block_erase = spi_block_erase_c7,
16077 }
16078 },
16079 .printlock = spi_prettyprint_status_register_bp2_srwd,
16080 .unlock = spi_disable_blockprotect_bp2_srwd,
16081 .write = spi_chip_write_256,
16082 .read = spi_chip_read, /* Fast read (0x0B) supported */
16083 .voltage = {2700, 3600},
16084 },
16085
16086 {
16087 .vendor = "Spansion",
16088 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16089 .bustype = BUS_SPI,
16090 .manufacture_id = SPANSION_ID,
16091 .model_id = SPANSION_S25FL128,
16092 .total_size = 16384,
16093 .page_size = 256,
16094 /* supports 4B addressing */
16095 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16096 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16097 .tested = TEST_OK_PREW,
16098 .probe = probe_spi_rdid,
16099 .probe_timing = TIMING_ZERO,
16100 .block_erasers =
16101 {
16102 {
16103 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16104 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16105 * have no effect on the memory contents, but sets a flag in the SR.
16106 .eraseblocks = {
16107 {4 * 1024, 32},
16108 {64 * 1024, 254} // inaccessible
16109 },
16110 .block_erase = spi_block_erase_20,
16111 }, { */
16112 .eraseblocks = { { 64 * 1024, 256} },
16113 .block_erase = spi_block_erase_d8,
16114 }, {
16115 .eraseblocks = { { 16384 * 1024, 1} },
16116 .block_erase = spi_block_erase_60,
16117 }, {
16118 .eraseblocks = { { 16384 * 1024, 1} },
16119 .block_erase = spi_block_erase_c7,
16120 }
16121 },
16122 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16123 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16124 .write = spi_chip_write_256, /* Multi I/O supported */
16125 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16126 .voltage = {2700, 3600},
16127 },
16128
16129 {
16130 .vendor = "Spansion",
16131 .name = "S25FL128S......1", /* uniform 256 kB sectors */
16132 .bustype = BUS_SPI,
16133 .manufacture_id = SPANSION_ID,
16134 .model_id = SPANSION_S25FL128,
16135 .total_size = 16384,
16136 .page_size = 512,
16137 /* supports 4B addressing */
16138 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16139 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16140 .tested = TEST_UNTESTED,
16141 .probe = probe_spi_rdid,
16142 .probe_timing = TIMING_ZERO,
16143 .block_erasers =
16144 {
16145 {
16146 .eraseblocks = { {256 * 1024, 64} },
16147 .block_erase = spi_block_erase_d8,
16148 }, {
16149 .eraseblocks = { { 16384 * 1024, 1} },
16150 .block_erase = spi_block_erase_60,
16151 }, {
16152 .eraseblocks = { { 16384 * 1024, 1} },
16153 .block_erase = spi_block_erase_c7,
16154 }
16155 },
16156 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16157 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16158 .write = spi_chip_write_256, /* Multi I/O supported */
16159 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16160 .voltage = {2700, 3600},
16161 },
16162
16163 {
16164 .vendor = "Spansion",
16165 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16166 .bustype = BUS_SPI,
16167 .manufacture_id = SPANSION_ID,
16168 .model_id = SPANSION_S25FL128,
16169 .total_size = 16384,
16170 .page_size = 256,
16171 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16172 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16173 .tested = TEST_OK_PREW,
16174 .probe = probe_spi_rdid,
16175 .probe_timing = TIMING_ZERO,
16176 .block_erasers =
16177 {
16178 {
16179 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
16180 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
16181 * effect on the memory contents, but sets a flag in the SR.
16182 .eraseblocks = {
16183 {4 * 1024, 32},
16184 {64 * 1024, 254} // inaccessible
16185 },
16186 .block_erase = spi_block_erase_20,
16187 }, { */
16188 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
16189 .eraseblocks = {
16190 {8 * 1024, 16},
16191 {64 * 1024, 254} // inaccessible
16192 },
16193 .block_erase = spi_block_erase_40,
16194 }, { */
16195 .eraseblocks = { { 64 * 1024, 256} },
16196 .block_erase = spi_block_erase_d8,
16197 }, {
16198 .eraseblocks = { { 16384 * 1024, 1} },
16199 .block_erase = spi_block_erase_60,
16200 }, {
16201 .eraseblocks = { { 16384 * 1024, 1} },
16202 .block_erase = spi_block_erase_c7,
16203 }
16204 },
16205 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16206 .unlock = spi_disable_blockprotect_bp2_srwd,
16207 .write = spi_chip_write_256, /* Multi I/O supported */
16208 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16209 .voltage = {2700, 3600},
16210 },
16211
16212 {
16213 .vendor = "Spansion",
16214 .name = "S25FL129P......1", /* uniform 256 kB sectors */
16215 .bustype = BUS_SPI,
16216 .manufacture_id = SPANSION_ID,
16217 .model_id = SPANSION_S25FL128,
16218 .total_size = 16384,
16219 .page_size = 256,
16220 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16221 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16222 .tested = TEST_UNTESTED,
16223 .probe = probe_spi_rdid,
16224 .probe_timing = TIMING_ZERO,
16225 .block_erasers =
16226 {
16227 {
16228 .eraseblocks = { {256 * 1024, 64} },
16229 .block_erase = spi_block_erase_d8,
16230 }, {
16231 .eraseblocks = { { 16384 * 1024, 1} },
16232 .block_erase = spi_block_erase_60,
16233 }, {
16234 .eraseblocks = { { 16384 * 1024, 1} },
16235 .block_erase = spi_block_erase_c7,
16236 }
16237 },
16238 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16239 .unlock = spi_disable_blockprotect_bp2_srwd,
16240 .write = spi_chip_write_256, /* Multi I/O supported */
16241 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16242 .voltage = {2700, 3600},
16243 },
16244
16245 {
16246 .vendor = "Spansion",
16247 .name = "S25FL132K",
16248 .bustype = BUS_SPI,
16249 .manufacture_id = SPANSION_ID,
16250 .model_id = SPANSION_S25FL132K,
16251 .total_size = 4096,
16252 .page_size = 256,
16253 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16254 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16255 .tested = TEST_UNTESTED,
16256 .probe = probe_spi_rdid,
16257 .probe_timing = TIMING_ZERO,
16258 .block_erasers =
16259 {
16260 {
16261 .eraseblocks = { {4 * 1024, 1024} },
16262 .block_erase = spi_block_erase_20,
16263 }, {
16264 .eraseblocks = { {64 * 1024, 64} },
16265 .block_erase = spi_block_erase_d8,
16266 }, {
16267 .eraseblocks = { { 4096 * 1024, 1} },
16268 .block_erase = spi_block_erase_60,
16269 }, {
16270 .eraseblocks = { { 4096 * 1024, 1} },
16271 .block_erase = spi_block_erase_c7,
16272 }
16273 },
16274 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16275 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16276 .write = spi_chip_write_256,
16277 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16278 .voltage = {2700, 3600},
16279 },
16280
16281 {
16282 .vendor = "Spansion",
16283 .name = "S25FL164K",
16284 .bustype = BUS_SPI,
16285 .manufacture_id = SPANSION_ID,
16286 .model_id = SPANSION_S25FL164K,
16287 .total_size = 8192,
16288 .page_size = 256,
16289 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16290 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16291 .tested = TEST_OK_PREW,
16292 .probe = probe_spi_rdid,
16293 .probe_timing = TIMING_ZERO,
16294 .block_erasers =
16295 {
16296 {
16297 .eraseblocks = { {4 * 1024, 2048} },
16298 .block_erase = spi_block_erase_20,
16299 }, {
16300 .eraseblocks = { {64 * 1024, 128} },
16301 .block_erase = spi_block_erase_d8,
16302 }, {
16303 .eraseblocks = { { 8192 * 1024, 1} },
16304 .block_erase = spi_block_erase_60,
16305 }, {
16306 .eraseblocks = { { 8192 * 1024, 1} },
16307 .block_erase = spi_block_erase_c7,
16308 }
16309 },
16310 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16311 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16312 .write = spi_chip_write_256,
16313 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16314 .voltage = {2700, 3600},
16315 },
16316
16317 {
16318 .vendor = "Spansion",
16319 .name = "S25FL204K",
16320 .bustype = BUS_SPI,
16321 .manufacture_id = SPANSION_ID,
16322 .model_id = SPANSION_S25FL204,
16323 .total_size = 512,
16324 .page_size = 256,
16325 .feature_bits = FEATURE_WRSR_WREN,
16326 .tested = TEST_OK_PR,
16327 .probe = probe_spi_rdid,
16328 .probe_timing = TIMING_ZERO,
16329 .block_erasers =
16330 {
16331 {
16332 .eraseblocks = { {4 * 1024, 128} },
16333 .block_erase = spi_block_erase_20,
16334 }, {
16335 .eraseblocks = { {64 * 1024, 8} },
16336 .block_erase = spi_block_erase_d8,
16337 }, {
16338 .eraseblocks = { { 512 * 1024, 1} },
16339 .block_erase = spi_block_erase_60,
16340 }, {
16341 .eraseblocks = { { 512 * 1024, 1} },
16342 .block_erase = spi_block_erase_c7,
16343 }
16344 },
16345 .printlock = spi_prettyprint_status_register_bp3_srwd,
16346 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16347 .write = spi_chip_write_256,
16348 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16349 .voltage = {2700, 3600},
16350 },
16351
16352 {
16353 .vendor = "Spansion",
16354 .name = "S25FL208K",
16355 .bustype = BUS_SPI,
16356 .manufacture_id = SPANSION_ID,
16357 .model_id = SPANSION_S25FL208,
16358 .total_size = 1024,
16359 .page_size = 256,
16360 .feature_bits = FEATURE_WRSR_WREN,
16361 .tested = TEST_OK_PREW,
16362 .probe = probe_spi_rdid,
16363 .probe_timing = TIMING_ZERO,
16364 .block_erasers =
16365 {
16366 {
16367 .eraseblocks = { {4 * 1024, 256} },
16368 .block_erase = spi_block_erase_20,
16369 }, {
16370 .eraseblocks = { {64 * 1024, 16} },
16371 .block_erase = spi_block_erase_d8,
16372 }, {
16373 .eraseblocks = { { 1024 * 1024, 1} },
16374 .block_erase = spi_block_erase_60,
16375 }, {
16376 .eraseblocks = { { 1024 * 1024, 1} },
16377 .block_erase = spi_block_erase_c7,
16378 }
16379 },
16380 .printlock = spi_prettyprint_status_register_bp3_srwd,
16381 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16382 .write = spi_chip_write_256,
16383 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16384 .voltage = {2700, 3600},
16385 },
16386
16387 {
16388 .vendor = "Spansion",
16389 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16390 .bustype = BUS_SPI,
16391 .manufacture_id = SPANSION_ID,
16392 .model_id = SPANSION_S25FL256,
16393 .total_size = 32768,
16394 .page_size = 256,
16395 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16396 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_EAR7,
16397 .tested = TEST_OK_PREW,
16398 .probe = probe_spi_rdid,
16399 .probe_timing = TIMING_ZERO,
16400 .block_erasers =
16401 {
16402 {
16403 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16404 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16405 * have no effect on the memory contents, but sets a flag in the SR.
16406 .eraseblocks = {
16407 {4 * 1024, 32},
16408 {64 * 1024, 254} // inaccessible
16409 },
16410 .block_erase = spi_block_erase_20,
16411 }, { */
16412 .eraseblocks = { { 64 * 1024, 512} },
16413 .block_erase = spi_block_erase_dc,
16414 }, {
16415 .eraseblocks = { { 64 * 1024, 512} },
16416 .block_erase = spi_block_erase_d8,
16417 }, {
16418 .eraseblocks = { { 32768 * 1024, 1} },
16419 .block_erase = spi_block_erase_60,
16420 }, {
16421 .eraseblocks = { { 32768 * 1024, 1} },
16422 .block_erase = spi_block_erase_c7,
16423 }
16424 },
16425 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16426 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16427 .write = spi_chip_write_256, /* Multi I/O supported */
16428 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16429 .voltage = {2700, 3600},
16430 .wrea_override = 0x17,
16431 },
16432
16433 {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016434 .vendor = "Spansion",
16435 .name = "S25FL512S",
16436 .bustype = BUS_SPI,
16437 .manufacture_id = SPANSION_ID,
16438 .model_id = SPANSION_S25FL512,
16439 .total_size = 65536, /* 512 Mb (=> 64 MB)) */
16440 .page_size = 256,
16441 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16442 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_NATIVE,
16443 .tested = TEST_OK_PREW,
16444 .probe = probe_spi_rdid,
16445 .probe_timing = TIMING_ZERO,
16446 .block_erasers =
16447 {
16448 {
16449 .eraseblocks = { { 256 * 1024, 256} },
16450 .block_erase = spi_block_erase_dc,
16451 }, {
16452 .eraseblocks = { { 65536 * 1024, 1} },
16453 .block_erase = spi_block_erase_60,
16454 }, {
16455 .eraseblocks = { { 65536 * 1024, 1} },
16456 .block_erase = spi_block_erase_c7,
16457 }
16458 },
16459 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16460 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16461 .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */
16462 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16463 .voltage = {2700, 3600},
16464 },
16465
16466 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016467 .vendor = "SyncMOS/MoselVitelic",
16468 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016469 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016470 .manufacture_id = SYNCMOS_MVC_ID,
16471 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016472 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016473 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016474 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016475 .tested = TEST_UNTESTED,
16476 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016477 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016478 .block_erasers =
16479 {
16480 {
16481 .eraseblocks = { {512, 256} },
16482 .block_erase = erase_sector_jedec,
16483 }, {
16484 .eraseblocks = { {128 * 1024, 1} },
16485 .block_erase = erase_chip_block_jedec,
16486 },
16487 },
Sean Nelson35727f72010-01-28 23:55:12 +000016488 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016489 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016490 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016491 },
16492
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016493 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016494 .vendor = "SyncMOS/MoselVitelic",
16495 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016496 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016497 .manufacture_id = SYNCMOS_MVC_ID,
16498 .model_id = SM_MVC_29C51001T,
16499 .total_size = 128,
16500 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016501 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016502 .tested = TEST_UNTESTED,
16503 .probe = probe_jedec,
16504 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16505 .block_erasers =
16506 {
16507 {
16508 .eraseblocks = { {512, 256} },
16509 .block_erase = erase_sector_jedec,
16510 }, {
16511 .eraseblocks = { {128 * 1024, 1} },
16512 .block_erase = erase_chip_block_jedec,
16513 },
16514 },
16515 .write = write_jedec_1,
16516 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016517 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016518 },
16519
16520 {
16521 .vendor = "SyncMOS/MoselVitelic",
16522 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016523 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016524 .manufacture_id = SYNCMOS_MVC_ID,
16525 .model_id = SM_MVC_29C51002B,
16526 .total_size = 256,
16527 .page_size = 512,
16528 .feature_bits = FEATURE_EITHER_RESET,
16529 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016530 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016531 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016532 .block_erasers =
16533 {
16534 {
16535 .eraseblocks = { {512, 512} },
16536 .block_erase = erase_sector_jedec,
16537 }, {
16538 .eraseblocks = { {256 * 1024, 1} },
16539 .block_erase = erase_chip_block_jedec,
16540 },
16541 },
Sean Nelson35727f72010-01-28 23:55:12 +000016542 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016543 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000016544 },
16545
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016546 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016547 .vendor = "SyncMOS/MoselVitelic",
16548 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016549 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016550 .manufacture_id = SYNCMOS_MVC_ID,
16551 .model_id = SM_MVC_29C51002T,
16552 .total_size = 256,
16553 .page_size = 512,
16554 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016555 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016556 .probe = probe_jedec,
16557 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16558 .block_erasers =
16559 {
16560 {
16561 .eraseblocks = { {512, 512} },
16562 .block_erase = erase_sector_jedec,
16563 }, {
16564 .eraseblocks = { {256 * 1024, 1} },
16565 .block_erase = erase_chip_block_jedec,
16566 },
16567 },
16568 .write = write_jedec_1,
16569 .read = read_memmapped,
16570 },
16571
16572 {
16573 .vendor = "SyncMOS/MoselVitelic",
16574 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016575 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016576 .manufacture_id = SYNCMOS_MVC_ID,
16577 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016578 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016579 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016580 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016581 .tested = TEST_UNTESTED,
16582 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016583 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000016584 .block_erasers =
16585 {
16586 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016587 .eraseblocks = { {1024, 512} },
16588 .block_erase = erase_sector_jedec,
16589 }, {
16590 .eraseblocks = { {512 * 1024, 1} },
16591 .block_erase = erase_chip_block_jedec,
16592 },
16593 },
16594 .write = write_jedec_1,
16595 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016596 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016597 },
16598
16599 {
16600 .vendor = "SyncMOS/MoselVitelic",
16601 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016602 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016603 .manufacture_id = SYNCMOS_MVC_ID,
16604 .model_id = SM_MVC_29C51004T,
16605 .total_size = 512,
16606 .page_size = 1024,
16607 .feature_bits = FEATURE_EITHER_RESET,
16608 .tested = TEST_UNTESTED,
16609 .probe = probe_jedec,
16610 .probe_timing = TIMING_ZERO,
16611 .block_erasers =
16612 {
16613 {
16614 .eraseblocks = { {1024, 512} },
16615 .block_erase = erase_sector_jedec,
16616 }, {
16617 .eraseblocks = { {512 * 1024, 1} },
16618 .block_erase = erase_chip_block_jedec,
16619 },
16620 },
16621 .write = write_jedec_1,
16622 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016623 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016624 },
16625
16626 {
16627 .vendor = "SyncMOS/MoselVitelic",
16628 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016629 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016630 .manufacture_id = SYNCMOS_MVC_ID,
16631 .model_id = SM_MVC_29C31004B,
16632 .total_size = 512,
16633 .page_size = 1024,
16634 .feature_bits = FEATURE_EITHER_RESET,
16635 .tested = TEST_UNTESTED,
16636 .probe = probe_jedec,
16637 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16638 .block_erasers =
16639 {
16640 {
16641 .eraseblocks = { {1024, 512} },
16642 .block_erase = erase_sector_jedec,
16643 }, {
16644 .eraseblocks = { {512 * 1024, 1} },
16645 .block_erase = erase_chip_block_jedec,
16646 },
16647 },
16648 .write = write_jedec_1,
16649 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016650 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016651 },
16652
16653 {
16654 .vendor = "SyncMOS/MoselVitelic",
16655 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016656 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016657 .manufacture_id = SYNCMOS_MVC_ID,
16658 .model_id = SM_MVC_29C31004T,
16659 .total_size = 512,
16660 .page_size = 1024,
16661 .feature_bits = FEATURE_EITHER_RESET,
16662 .tested = TEST_UNTESTED,
16663 .probe = probe_jedec,
16664 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16665 .block_erasers =
16666 {
16667 {
16668 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000016669 .block_erase = erase_sector_jedec,
16670 }, {
16671 .eraseblocks = { {512 * 1024, 1} },
16672 .block_erase = erase_chip_block_jedec,
16673 },
16674 },
Sean Nelson35727f72010-01-28 23:55:12 +000016675 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016676 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016677 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016678 },
16679
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016680 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016681 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016682 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016683 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016684 .manufacture_id = TI_OLD_ID,
16685 .model_id = TI_TMS29F002RB,
16686 .total_size = 256,
16687 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016688 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016689 .tested = TEST_UNTESTED,
16690 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016691 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016692 .block_erasers =
16693 {
16694 {
16695 .eraseblocks = {
16696 {16 * 1024, 1},
16697 {8 * 1024, 2},
16698 {32 * 1024, 1},
16699 {64 * 1024, 3},
16700 },
16701 .block_erase = erase_sector_jedec,
16702 }, {
16703 .eraseblocks = { {256 * 1024, 1} },
16704 .block_erase = erase_chip_block_jedec,
16705 },
16706 },
Sean Nelson35727f72010-01-28 23:55:12 +000016707 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016708 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016709 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016710 },
16711
16712 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016713 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016714 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016715 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016716 .manufacture_id = TI_OLD_ID,
16717 .model_id = TI_TMS29F002RT,
16718 .total_size = 256,
16719 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016720 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016721 .tested = TEST_UNTESTED,
16722 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016723 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016724 .block_erasers =
16725 {
16726 {
16727 .eraseblocks = {
16728 {64 * 1024, 3},
16729 {32 * 1024, 1},
16730 {8 * 1024, 2},
16731 {16 * 1024, 1},
16732 },
16733 .block_erase = erase_sector_jedec,
16734 }, {
16735 .eraseblocks = { {256 * 1024, 1} },
16736 .block_erase = erase_chip_block_jedec,
16737 },
16738 },
Sean Nelson35727f72010-01-28 23:55:12 +000016739 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016740 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016741 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016742 },
16743
16744 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016745 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016746 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016747 .bustype = BUS_SPI,
16748 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016749 .model_id = WINBOND_NEX_W25P16,
16750 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016751 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016752 .feature_bits = FEATURE_WRSR_WREN,
16753 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016754 .probe = probe_spi_rdid,
16755 .probe_timing = TIMING_ZERO,
16756 .block_erasers =
16757 {
16758 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016759 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016760 .block_erase = spi_block_erase_d8,
16761 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016762 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016763 .block_erase = spi_block_erase_c7,
16764 }
16765 },
16766 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16767 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016768 .write = spi_chip_write_256,
16769 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016770 .voltage = {2700, 3600},
16771 },
16772
16773 {
16774 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016775 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016776 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016777 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016778 .model_id = WINBOND_NEX_W25P32,
16779 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016780 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016781 .feature_bits = FEATURE_WRSR_WREN,
16782 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016783 .probe = probe_spi_rdid,
16784 .probe_timing = TIMING_ZERO,
16785 .block_erasers =
16786 {
16787 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016788 .eraseblocks = { {64 * 1024, 64} },
16789 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016790 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016791 .eraseblocks = { {4096 * 1024, 1} },
16792 .block_erase = spi_block_erase_c7,
16793 }
16794 },
16795 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16796 .unlock = spi_disable_blockprotect,
16797 .write = spi_chip_write_256,
16798 .read = spi_chip_read, /* Fast read (0x0B) supported */
16799 .voltage = {2700, 3600},
16800 },
16801
16802 {
16803 .vendor = "Winbond",
16804 .name = "W25P80",
16805 .bustype = BUS_SPI,
16806 .manufacture_id = WINBOND_NEX_ID,
16807 .model_id = WINBOND_NEX_W25P80,
16808 .total_size = 1024,
16809 .page_size = 256,
16810 .feature_bits = FEATURE_WRSR_WREN,
16811 .tested = TEST_UNTESTED,
16812 .probe = probe_spi_rdid,
16813 .probe_timing = TIMING_ZERO,
16814 .block_erasers =
16815 {
16816 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000016817 .eraseblocks = { {64 * 1024, 16} },
16818 .block_erase = spi_block_erase_d8,
16819 }, {
16820 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000016821 .block_erase = spi_block_erase_c7,
16822 }
16823 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016824 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016825 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016826 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016827 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016828 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000016829 },
16830
16831 {
16832 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016833 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016834 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016835 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016836 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016837 .total_size = 16384,
16838 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016839 /* supports SFDP */
16840 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000016841 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016842 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016843 .probe = probe_spi_rdid,
16844 .probe_timing = TIMING_ZERO,
16845 .block_erasers =
16846 {
16847 {
16848 .eraseblocks = { {4 * 1024, 4096} },
16849 .block_erase = spi_block_erase_20,
16850 }, {
16851 .eraseblocks = { {32 * 1024, 512} },
16852 .block_erase = spi_block_erase_52,
16853 }, {
16854 .eraseblocks = { {64 * 1024, 256} },
16855 .block_erase = spi_block_erase_d8,
16856 }, {
16857 .eraseblocks = { {16 * 1024 * 1024, 1} },
16858 .block_erase = spi_block_erase_60,
16859 }, {
16860 .eraseblocks = { {16 * 1024 * 1024, 1} },
16861 .block_erase = spi_block_erase_c7,
16862 }
16863 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016864 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000016865 .unlock = spi_disable_blockprotect,
16866 .write = spi_chip_write_256,
16867 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016868 .voltage = {2700, 3600},
16869 },
16870
16871 {
16872 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020016873 .name = "W25Q128.V..M",
16874 .bustype = BUS_SPI,
16875 .manufacture_id = WINBOND_NEX_ID,
16876 .model_id = WINBOND_NEX_W25Q128_V_M,
16877 .total_size = 16384,
16878 .page_size = 256,
16879 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16880 .tested = TEST_OK_PREW,
16881 .probe = probe_spi_rdid,
16882 .probe_timing = TIMING_ZERO,
16883 .block_erasers =
16884 {
16885 {
16886 .eraseblocks = { {4 * 1024, 4096} },
16887 .block_erase = spi_block_erase_20,
16888 }, {
16889 .eraseblocks = { {32 * 1024, 512} },
16890 .block_erase = spi_block_erase_52,
16891 }, {
16892 .eraseblocks = { {64 * 1024, 256} },
16893 .block_erase = spi_block_erase_d8,
16894 }, {
16895 .eraseblocks = { {16 * 1024 * 1024, 1} },
16896 .block_erase = spi_block_erase_60,
16897 }, {
16898 .eraseblocks = { {16 * 1024 * 1024, 1} },
16899 .block_erase = spi_block_erase_c7,
16900 }
16901 },
Alan Greena1fc01d2019-09-23 17:12:44 +100016902 .printlock = spi_prettyprint_status_register_plain,
Patrick Rudolph34323492018-10-04 14:59:40 +020016903 .unlock = spi_disable_blockprotect,
16904 .write = spi_chip_write_256,
16905 .read = spi_chip_read,
16906 .voltage = {2700, 3600},
16907 },
16908
16909 {
16910 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016911 .name = "W25Q128.W",
16912 .bustype = BUS_SPI,
16913 .manufacture_id = WINBOND_NEX_ID,
16914 .model_id = WINBOND_NEX_W25Q128_W,
16915 .total_size = 16384,
16916 .page_size = 256,
16917 /* supports SFDP */
16918 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16919 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16920 .tested = TEST_OK_PREW,
16921 .probe = probe_spi_rdid,
16922 .probe_timing = TIMING_ZERO,
16923 .block_erasers =
16924 {
16925 {
16926 .eraseblocks = { {4 * 1024, 4096} },
16927 .block_erase = spi_block_erase_20,
16928 }, {
16929 .eraseblocks = { {32 * 1024, 512} },
16930 .block_erase = spi_block_erase_52,
16931 }, {
16932 .eraseblocks = { {64 * 1024, 256} },
16933 .block_erase = spi_block_erase_d8,
16934 }, {
16935 .eraseblocks = { {16 * 1024 * 1024, 1} },
16936 .block_erase = spi_block_erase_60,
16937 }, {
16938 .eraseblocks = { {16 * 1024 * 1024, 1} },
16939 .block_erase = spi_block_erase_c7,
16940 }
16941 },
16942 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16943 .unlock = spi_disable_blockprotect,
16944 .write = spi_chip_write_256,
16945 .read = spi_chip_read,
16946 .voltage = {1650, 1950},
16947 },
16948
16949 {
16950 .vendor = "Winbond",
Peichao Wang1a119492019-11-11 15:26:41 +080016951 .name = "W25Q128.JW.DTR",
16952 .bustype = BUS_SPI,
16953 .manufacture_id = WINBOND_NEX_ID,
16954 .model_id = WINBOND_NEX_W25Q128_DTR,
16955 .total_size = 16384,
16956 .page_size = 256,
16957 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16958 .tested = TEST_OK_PREW,
16959 .probe = probe_spi_rdid,
16960 .probe_timing = TIMING_ZERO,
16961 .block_erasers =
16962 {
16963 {
16964 .eraseblocks = { {4 * 1024, 4096} },
16965 .block_erase = spi_block_erase_20,
16966 }, {
16967 .eraseblocks = { {32 * 1024, 512} },
16968 .block_erase = spi_block_erase_52,
16969 }, {
16970 .eraseblocks = { {64 * 1024, 256} },
16971 .block_erase = spi_block_erase_d8,
16972 }, {
16973 .eraseblocks = { {16 * 1024 * 1024, 1} },
16974 .block_erase = spi_block_erase_60,
16975 }, {
16976 .eraseblocks = { {16 * 1024 * 1024, 1} },
16977 .block_erase = spi_block_erase_c7,
16978 }
16979 },
16980 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16981 .unlock = spi_disable_blockprotect,
16982 .write = spi_chip_write_256,
16983 .read = spi_chip_read,
16984 .voltage = {1650, 1950},
16985 },
16986
16987 {
16988 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016989 .name = "W25Q16.V",
16990 .bustype = BUS_SPI,
16991 .manufacture_id = WINBOND_NEX_ID,
16992 .model_id = WINBOND_NEX_W25Q16_V,
16993 .total_size = 2048,
16994 .page_size = 256,
16995 /* supports SFDP */
16996 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16997 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16998 .tested = TEST_OK_PREW,
16999 .probe = probe_spi_rdid,
17000 .probe_timing = TIMING_ZERO,
17001 .block_erasers =
17002 {
17003 {
17004 .eraseblocks = { {4 * 1024, 512} },
17005 .block_erase = spi_block_erase_20,
17006 }, {
17007 .eraseblocks = { {32 * 1024, 64} },
17008 .block_erase = spi_block_erase_52,
17009 }, {
17010 .eraseblocks = { {64 * 1024, 32} },
17011 .block_erase = spi_block_erase_d8,
17012 }, {
17013 .eraseblocks = { {2 * 1024 * 1024, 1} },
17014 .block_erase = spi_block_erase_60,
17015 }, {
17016 .eraseblocks = { {2 * 1024 * 1024, 1} },
17017 .block_erase = spi_block_erase_c7,
17018 }
17019 },
17020 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17021 .unlock = spi_disable_blockprotect,
17022 .write = spi_chip_write_256,
17023 .read = spi_chip_read,
17024 .voltage = {2700, 3600},
17025 },
17026
17027 {
17028 .vendor = "Winbond",
17029 .name = "W25Q16.W",
17030 .bustype = BUS_SPI,
17031 .manufacture_id = WINBOND_NEX_ID,
17032 .model_id = WINBOND_NEX_W25Q16_W,
17033 .total_size = 2048,
17034 .page_size = 256,
17035 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17036 /* QPI enable 0x38, disable 0xFF */
17037 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17038 .tested = TEST_UNTESTED,
17039 .probe = probe_spi_rdid,
17040 .probe_timing = TIMING_ZERO,
17041 .block_erasers =
17042 {
17043 {
17044 .eraseblocks = { {4 * 1024, 512} },
17045 .block_erase = spi_block_erase_20,
17046 }, {
17047 .eraseblocks = { {32 * 1024, 64} },
17048 .block_erase = spi_block_erase_52,
17049 }, {
17050 .eraseblocks = { {64 * 1024, 32} },
17051 .block_erase = spi_block_erase_d8,
17052 }, {
17053 .eraseblocks = { {2 * 1024 * 1024, 1} },
17054 .block_erase = spi_block_erase_60,
17055 }, {
17056 .eraseblocks = { {2 * 1024 * 1024, 1} },
17057 .block_erase = spi_block_erase_c7,
17058 }
17059 },
17060 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17061 .unlock = spi_disable_blockprotect,
17062 .write = spi_chip_write_256,
17063 .read = spi_chip_read,
17064 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17065 },
17066
17067 {
17068 .vendor = "Winbond",
17069 .name = "W25Q20.W",
17070 .bustype = BUS_SPI,
17071 .manufacture_id = WINBOND_NEX_ID,
17072 .model_id = WINBOND_NEX_W25Q20_W,
17073 .total_size = 256,
17074 .page_size = 256,
17075 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17076 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17077 .tested = TEST_UNTESTED,
17078 .probe = probe_spi_rdid,
17079 .probe_timing = TIMING_ZERO,
17080 .block_erasers =
17081 {
17082 {
17083 .eraseblocks = { {4 * 1024, 64} },
17084 .block_erase = spi_block_erase_20,
17085 }, {
17086 .eraseblocks = { {32 * 1024, 8} },
17087 .block_erase = spi_block_erase_52,
17088 }, {
17089 .eraseblocks = { {64 * 1024, 4} },
17090 .block_erase = spi_block_erase_d8,
17091 }, {
17092 .eraseblocks = { {256 * 1024, 1} },
17093 .block_erase = spi_block_erase_60,
17094 }, {
17095 .eraseblocks = { {256 * 1024, 1} },
17096 .block_erase = spi_block_erase_c7,
17097 }
17098 },
17099 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17100 .unlock = spi_disable_blockprotect,
17101 .write = spi_chip_write_256,
17102 .read = spi_chip_read,
17103 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17104 },
17105
17106 {
17107 .vendor = "Winbond",
Boris Baykovaa6c3742016-06-11 18:29:01 +020017108 .name = "W25Q256.V",
17109 .bustype = BUS_SPI,
17110 .manufacture_id = WINBOND_NEX_ID,
17111 .model_id = WINBOND_NEX_W25Q256_V,
17112 .total_size = 32768,
17113 .page_size = 256,
17114 /* supports SFDP */
17115 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17116 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
Nico Huberaac81422017-11-10 22:54:13 +010017117 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
17118 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
Angel Pons3130cbd2018-09-30 19:32:30 +020017119 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017120 .probe = probe_spi_rdid,
17121 .probe_timing = TIMING_ZERO,
17122 .block_erasers =
17123 {
17124 {
17125 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020017126 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017127 }, {
17128 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020017129 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017130 }, {
17131 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020017132 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017133 }, {
17134 .eraseblocks = { {32 * 1024 * 1024, 1} },
17135 .block_erase = spi_block_erase_60,
17136 }, {
17137 .eraseblocks = { {32 * 1024 * 1024, 1} },
17138 .block_erase = spi_block_erase_c7,
17139 }
17140 },
17141 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17142 .unlock = spi_disable_blockprotect,
17143 .write = spi_chip_write_256,
17144 .read = spi_chip_read,
17145 .voltage = {2700, 3600},
17146 },
17147
17148 {
17149 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000017150 .name = "W25Q256JV_M",
17151 .bustype = BUS_SPI,
17152 .manufacture_id = WINBOND_NEX_ID,
17153 .model_id = WINBOND_NEX_W25Q256JV_M,
17154 .total_size = 32768,
17155 .page_size = 256,
17156 /* supports SFDP */
17157 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17158 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
17159 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17160 .tested = TEST_OK_PREW,
17161 .probe = probe_spi_rdid,
17162 .probe_timing = TIMING_ZERO,
17163 .block_erasers =
17164 {
17165 {
17166 .eraseblocks = { {4 * 1024, 8192} },
17167 .block_erase = spi_block_erase_21,
17168 }, {
17169 .eraseblocks = { {4 * 1024, 8192} },
17170 .block_erase = spi_block_erase_20,
17171 }, {
17172 .eraseblocks = { {32 * 1024, 1024} },
17173 .block_erase = spi_block_erase_52,
17174 }, {
17175 .eraseblocks = { {64 * 1024, 512} },
17176 .block_erase = spi_block_erase_dc,
17177 }, {
17178 .eraseblocks = { {64 * 1024, 512} },
17179 .block_erase = spi_block_erase_d8,
17180 }, {
17181 .eraseblocks = { {32 * 1024 * 1024, 1} },
17182 .block_erase = spi_block_erase_60,
17183 }, {
17184 .eraseblocks = { {32 * 1024 * 1024, 1} },
17185 .block_erase = spi_block_erase_c7,
17186 }
17187 },
17188 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17189 .unlock = spi_disable_blockprotect,
17190 .write = spi_chip_write_256,
17191 .read = spi_chip_read,
17192 .voltage = {2700, 3600},
17193 },
17194
17195 {
17196 .vendor = "Winbond",
el-coderon01209852020-04-29 12:12:53 +020017197 .name = "W25Q256.W",
17198 .bustype = BUS_SPI,
17199 .manufacture_id = WINBOND_NEX_ID,
17200 .model_id = WINBOND_NEX_W25Q256_W,
17201 .total_size = 32768,
17202 .page_size = 256,
17203 /* supports SFDP */
17204 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17205 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
17206 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
17207 .tested = TEST_OK_PREW,
17208 .probe = probe_spi_rdid,
17209 .probe_timing = TIMING_ZERO,
17210 .block_erasers =
17211 {
17212 {
17213 .eraseblocks = { {4 * 1024, 8192} },
17214 .block_erase = spi_block_erase_20,
17215 }, {
17216 .eraseblocks = { {32 * 1024, 1024} },
17217 .block_erase = spi_block_erase_52,
17218 }, {
17219 .eraseblocks = { {64 * 1024, 512} },
17220 .block_erase = spi_block_erase_d8,
17221 }, {
17222 .eraseblocks = { {32 * 1024 * 1024, 1} },
17223 .block_erase = spi_block_erase_60,
17224 }, {
17225 .eraseblocks = { {32 * 1024 * 1024, 1} },
17226 .block_erase = spi_block_erase_c7,
17227 }
17228 },
17229 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17230 .unlock = spi_disable_blockprotect,
17231 .write = spi_chip_write_256,
17232 .read = spi_chip_read,
17233 .voltage = {1650, 1950},
17234 },
17235
17236 {
17237 .vendor = "Winbond",
David Hendricks31532602020-08-16 17:14:56 -070017238 .name = "W25Q256JW_DTR",
17239 .bustype = BUS_SPI,
17240 .manufacture_id = WINBOND_NEX_ID,
17241 .model_id = WINBOND_NEX_W25Q256_DTR,
17242 .total_size = 32768,
17243 .page_size = 256,
17244 /* supports SFDP */
17245 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17246 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
17247 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17248 .tested = TEST_OK_PREW,
17249 .probe = probe_spi_rdid,
17250 .probe_timing = TIMING_ZERO,
17251 .block_erasers =
17252 {
17253 {
17254 .eraseblocks = { {4 * 1024, 8192} },
17255 .block_erase = spi_block_erase_21,
17256 }, {
17257 .eraseblocks = { {4 * 1024, 8192} },
17258 .block_erase = spi_block_erase_20,
17259 }, {
17260 .eraseblocks = { {32 * 1024, 1024} },
17261 .block_erase = spi_block_erase_52,
17262 }, {
17263 .eraseblocks = { {64 * 1024, 512} },
17264 .block_erase = spi_block_erase_dc,
17265 }, {
17266 .eraseblocks = { {64 * 1024, 512} },
17267 .block_erase = spi_block_erase_d8,
17268 }, {
17269 .eraseblocks = { {32 * 1024 * 1024, 1} },
17270 .block_erase = spi_block_erase_60,
17271 }, {
17272 .eraseblocks = { {32 * 1024 * 1024, 1} },
17273 .block_erase = spi_block_erase_c7,
17274 }
17275 },
17276 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17277 .unlock = spi_disable_blockprotect,
17278 .write = spi_chip_write_256,
17279 .read = spi_chip_read,
17280 .voltage = {1700, 1950},
17281 },
17282
17283 {
17284 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017285 .name = "W25Q32.V",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017286 .bustype = BUS_SPI,
17287 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017288 .model_id = WINBOND_NEX_W25Q32_V,
17289 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017290 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017291 /* supports SFDP */
17292 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017293 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017294 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017295 .probe = probe_spi_rdid,
17296 .probe_timing = TIMING_ZERO,
17297 .block_erasers =
17298 {
17299 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017300 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017301 .block_erase = spi_block_erase_20,
17302 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017303 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017304 .block_erase = spi_block_erase_52,
17305 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017306 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017307 .block_erase = spi_block_erase_d8,
17308 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017309 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017310 .block_erase = spi_block_erase_60,
17311 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017312 .eraseblocks = { {4 * 1024 * 1024, 1} },
17313 .block_erase = spi_block_erase_c7,
17314 }
17315 },
17316 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17317 .unlock = spi_disable_blockprotect,
17318 .write = spi_chip_write_256,
17319 .read = spi_chip_read,
17320 .voltage = {2700, 3600},
17321 },
17322
17323 {
17324 .vendor = "Winbond",
17325 .name = "W25Q32.W",
17326 .bustype = BUS_SPI,
17327 .manufacture_id = WINBOND_NEX_ID,
17328 .model_id = WINBOND_NEX_W25Q32_W,
17329 .total_size = 4096,
17330 .page_size = 256,
17331 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17332 /* QPI enable 0x38, disable 0xFF */
17333 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17334 .tested = TEST_OK_PREW,
17335 .probe = probe_spi_rdid,
17336 .probe_timing = TIMING_ZERO,
17337 .block_erasers =
17338 {
17339 {
17340 .eraseblocks = { {4 * 1024, 1024} },
17341 .block_erase = spi_block_erase_20,
17342 }, {
17343 .eraseblocks = { {32 * 1024, 128} },
17344 .block_erase = spi_block_erase_52,
17345 }, {
17346 .eraseblocks = { {64 * 1024, 64} },
17347 .block_erase = spi_block_erase_d8,
17348 }, {
17349 .eraseblocks = { {4 * 1024 * 1024, 1} },
17350 .block_erase = spi_block_erase_60,
17351 }, {
17352 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017353 .block_erase = spi_block_erase_c7,
17354 }
17355 },
17356 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17357 .unlock = spi_disable_blockprotect,
17358 .write = spi_chip_write_256,
17359 .read = spi_chip_read,
17360 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17361 },
17362
17363 {
17364 .vendor = "Winbond",
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100017365 .name = "W25Q32JW...M",
17366 .bustype = BUS_SPI,
17367 .manufacture_id = WINBOND_NEX_ID,
17368 .model_id = WINBOND_NEX_W25Q32JW_M,
17369 .total_size = 4096,
17370 .page_size = 256,
17371 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17372 .tested = TEST_OK_PREW,
17373 .probe = probe_spi_rdid,
17374 .probe_timing = TIMING_ZERO,
17375 .block_erasers =
17376 {
17377 {
17378 .eraseblocks = { {4 * 1024, 1024} },
17379 .block_erase = spi_block_erase_20,
17380 }, {
17381 .eraseblocks = { {32 * 1024, 128} },
17382 .block_erase = spi_block_erase_52,
17383 }, {
17384 .eraseblocks = { {64 * 1024, 64} },
17385 .block_erase = spi_block_erase_d8,
17386 }, {
17387 .eraseblocks = { {4 * 1024 * 1024, 1} },
17388 .block_erase = spi_block_erase_60,
17389 }, {
17390 .eraseblocks = { {4 * 1024 * 1024, 1} },
17391 .block_erase = spi_block_erase_c7,
17392 }
17393 },
17394 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
17395 .unlock = spi_disable_blockprotect_bp2_srwd,
17396 .write = spi_chip_write_256,
17397 .read = spi_chip_read,
17398 .voltage = {1700, 1950},
17399 },
17400
17401 {
17402 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017403 .name = "W25Q40.V",
17404 .bustype = BUS_SPI,
17405 .manufacture_id = WINBOND_NEX_ID,
17406 .model_id = WINBOND_NEX_W25Q40_V,
17407 .total_size = 512,
17408 .page_size = 256,
17409 /* supports SFDP */
17410 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17411 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17412 .tested = TEST_OK_PREW,
17413 .probe = probe_spi_rdid,
17414 .probe_timing = TIMING_ZERO,
17415 .block_erasers =
17416 {
17417 {
17418 .eraseblocks = { {4 * 1024, 128} },
17419 .block_erase = spi_block_erase_20,
17420 }, {
17421 .eraseblocks = { {32 * 1024, 16} },
17422 .block_erase = spi_block_erase_52,
17423 }, {
17424 .eraseblocks = { {64 * 1024, 8} },
17425 .block_erase = spi_block_erase_d8,
17426 }, {
17427 .eraseblocks = { {512 * 1024, 1} },
17428 .block_erase = spi_block_erase_60,
17429 }, {
17430 .eraseblocks = { {512 * 1024, 1} },
17431 .block_erase = spi_block_erase_c7,
17432 }
17433 },
17434 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17435 .unlock = spi_disable_blockprotect,
17436 .write = spi_chip_write_256, /* Multi I/O supported */
17437 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17438 .voltage = {2700, 3600},
17439 },
17440
17441 {
17442 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020017443 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017444 .bustype = BUS_SPI,
17445 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020017446 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017447 .total_size = 512,
17448 .page_size = 256,
17449 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17450 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020017451 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017452 .probe = probe_spi_rdid,
17453 .probe_timing = TIMING_ZERO,
17454 .block_erasers =
17455 {
17456 {
17457 .eraseblocks = { {4 * 1024, 128} },
17458 .block_erase = spi_block_erase_20,
17459 }, {
17460 .eraseblocks = { {32 * 1024, 16} },
17461 .block_erase = spi_block_erase_52,
17462 }, {
17463 .eraseblocks = { {64 * 1024, 8} },
17464 .block_erase = spi_block_erase_d8,
17465 }, {
17466 .eraseblocks = { {512 * 1024, 1} },
17467 .block_erase = spi_block_erase_60,
17468 }, {
17469 .eraseblocks = { {512 * 1024, 1} },
17470 .block_erase = spi_block_erase_c7,
17471 }
17472 },
17473 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17474 .unlock = spi_disable_blockprotect,
17475 .write = spi_chip_write_256,
17476 .read = spi_chip_read,
17477 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17478 },
17479
17480 {
17481 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020017482 .name = "W25Q40EW",
17483 .bustype = BUS_SPI,
17484 .manufacture_id = WINBOND_NEX_ID,
17485 .model_id = WINBOND_NEX_W25Q40EW,
17486 .total_size = 512,
17487 .page_size = 256,
17488 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17489 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green07b8a172019-09-23 16:47:05 +100017490 .tested = TEST_OK_PREW,
Nico Huber25683572018-03-30 13:50:13 +020017491 .probe = probe_spi_rdid,
17492 .probe_timing = TIMING_ZERO,
17493 .block_erasers =
17494 {
17495 {
17496 .eraseblocks = { {4 * 1024, 128} },
17497 .block_erase = spi_block_erase_20,
17498 }, {
17499 .eraseblocks = { {32 * 1024, 16} },
17500 .block_erase = spi_block_erase_52,
17501 }, {
17502 .eraseblocks = { {64 * 1024, 8} },
17503 .block_erase = spi_block_erase_d8,
17504 }, {
17505 .eraseblocks = { {512 * 1024, 1} },
17506 .block_erase = spi_block_erase_60,
17507 }, {
17508 .eraseblocks = { {512 * 1024, 1} },
17509 .block_erase = spi_block_erase_c7,
17510 }
17511 },
17512 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17513 .unlock = spi_disable_blockprotect,
17514 .write = spi_chip_write_256,
17515 .read = spi_chip_read,
17516 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
17517 },
17518
Stanislav Sedovf5775442018-03-07 14:16:51 -080017519 {
17520 .vendor = "Winbond",
Joel Stanley55439612019-07-27 19:25:35 +093017521 .name = "W25Q512JV",
17522 .bustype = BUS_SPI,
17523 .manufacture_id = WINBOND_NEX_ID,
17524 .model_id = WINBOND_NEX_W25Q512JV,
17525 .total_size = 64 * 1024,
17526 .page_size = 256,
17527 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17528 .tested = TEST_OK_PREW,
17529 .probe = probe_spi_rdid,
17530 .probe_timing = TIMING_ZERO,
17531 .block_erasers =
17532 {
17533 {
17534 .eraseblocks = { {4 * 1024, 16384} },
17535 .block_erase = spi_block_erase_21,
17536 }, {
17537 .eraseblocks = { {4 * 1024, 16384} },
17538 .block_erase = spi_block_erase_20,
17539 }, {
17540 .eraseblocks = { {32 * 1024, 2048} },
17541 .block_erase = spi_block_erase_52,
17542 }, {
17543 .eraseblocks = { {64 * 1024, 1024} },
17544 .block_erase = spi_block_erase_dc,
17545 }, {
17546 .eraseblocks = { {64 * 1024, 1024} },
17547 .block_erase = spi_block_erase_d8,
17548 }, {
17549 .eraseblocks = { {64 * 1024 * 1024, 1} },
17550 .block_erase = spi_block_erase_60,
17551 }, {
17552 .eraseblocks = { {64 * 1024 * 1024, 1} },
17553 .block_erase = spi_block_erase_c7,
17554 }
17555 },
17556 .printlock = spi_prettyprint_status_register_plain,
17557 .unlock = spi_disable_blockprotect,
17558 .write = spi_chip_write_256,
17559 .read = spi_chip_read,
17560 .voltage = {2700, 3600},
17561 },
17562
17563 {
17564 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017565 .name = "W25Q64.V",
Stanislav Sedovf5775442018-03-07 14:16:51 -080017566 .bustype = BUS_SPI,
17567 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017568 .model_id = WINBOND_NEX_W25Q64_V,
17569 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080017570 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017571 /* supports SFDP */
17572 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Stanislav Sedovf5775442018-03-07 14:16:51 -080017573 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17574 .tested = TEST_OK_PREW,
17575 .probe = probe_spi_rdid,
17576 .probe_timing = TIMING_ZERO,
17577 .block_erasers =
17578 {
17579 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017580 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017581 .block_erase = spi_block_erase_20,
17582 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017583 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017584 .block_erase = spi_block_erase_52,
17585 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017586 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017587 .block_erase = spi_block_erase_d8,
17588 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017589 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017590 .block_erase = spi_block_erase_60,
17591 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017592 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017593 .block_erase = spi_block_erase_c7,
17594 }
17595 },
17596 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17597 .unlock = spi_disable_blockprotect,
17598 .write = spi_chip_write_256,
17599 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017600 .voltage = {2700, 3600},
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017601 },
17602
17603 {
17604 .vendor = "Winbond",
17605 .name = "W25Q64.W",
17606 .bustype = BUS_SPI,
17607 .manufacture_id = WINBOND_NEX_ID,
17608 .model_id = WINBOND_NEX_W25Q64_W,
17609 .total_size = 8192,
17610 .page_size = 256,
17611 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17612 /* QPI enable 0x38, disable 0xFF */
17613 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000017614 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017615 .probe = probe_spi_rdid,
17616 .probe_timing = TIMING_ZERO,
17617 .block_erasers =
17618 {
17619 {
17620 .eraseblocks = { {4 * 1024, 2048} },
17621 .block_erase = spi_block_erase_20,
17622 }, {
17623 .eraseblocks = { {32 * 1024, 256} },
17624 .block_erase = spi_block_erase_52,
17625 }, {
17626 .eraseblocks = { {64 * 1024, 128} },
17627 .block_erase = spi_block_erase_d8,
17628 }, {
17629 .eraseblocks = { {8 * 1024 * 1024, 1} },
17630 .block_erase = spi_block_erase_60,
17631 }, {
17632 .eraseblocks = { {8 * 1024 * 1024, 1} },
17633 .block_erase = spi_block_erase_c7,
17634 }
17635 },
17636 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17637 .unlock = spi_disable_blockprotect,
17638 .write = spi_chip_write_256,
17639 .read = spi_chip_read,
17640 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000017641 },
17642
17643 {
17644 .vendor = "Winbond",
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100017645 .name = "W25Q64JW...M",
Scott Chao1bbc5012020-04-08 22:10:50 +080017646 .bustype = BUS_SPI,
17647 .manufacture_id = WINBOND_NEX_ID,
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100017648 .model_id = WINBOND_NEX_W25Q64JW_M,
Scott Chao1bbc5012020-04-08 22:10:50 +080017649 .total_size = 8192,
17650 .page_size = 256,
17651 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17652 /* QPI enable 0x38, disable 0xFF */
17653 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17654 .tested = TEST_OK_PREW,
17655 .probe = probe_spi_rdid,
17656 .probe_timing = TIMING_ZERO,
17657 .block_erasers =
17658 {
17659 {
17660 .eraseblocks = { {4 * 1024, 2048} },
17661 .block_erase = spi_block_erase_20,
17662 }, {
17663 .eraseblocks = { {32 * 1024, 256} },
17664 .block_erase = spi_block_erase_52,
17665 }, {
17666 .eraseblocks = { {64 * 1024, 128} },
17667 .block_erase = spi_block_erase_d8,
17668 }, {
17669 .eraseblocks = { {8 * 1024 * 1024, 1} },
17670 .block_erase = spi_block_erase_60,
17671 }, {
17672 .eraseblocks = { {8 * 1024 * 1024, 1} },
17673 .block_erase = spi_block_erase_c7,
17674 }
17675 },
17676 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17677 .unlock = spi_disable_blockprotect,
17678 .write = spi_chip_write_256,
17679 .read = spi_chip_read,
17680 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17681 },
17682
17683 {
17684 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017685 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020017686 .bustype = BUS_SPI,
17687 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017688 .model_id = WINBOND_NEX_W25Q80_V,
17689 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020017690 .page_size = 256,
17691 /* supports SFDP */
17692 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100017693 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks48729d32017-12-08 14:44:07 -080017694 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020017695 .probe = probe_spi_rdid,
17696 .probe_timing = TIMING_ZERO,
17697 .block_erasers =
17698 {
17699 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017700 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017701 .block_erase = spi_block_erase_20,
17702 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017703 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017704 .block_erase = spi_block_erase_52,
17705 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017706 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017707 .block_erase = spi_block_erase_d8,
17708 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017709 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017710 .block_erase = spi_block_erase_60,
17711 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017712 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017713 .block_erase = spi_block_erase_c7,
17714 }
17715 },
17716 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17717 .unlock = spi_disable_blockprotect,
17718 .write = spi_chip_write_256,
17719 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017720 .voltage = {2700, 3600},
17721 },
17722
17723 {
17724 .vendor = "Winbond",
17725 .name = "W25Q80BW",
17726 .bustype = BUS_SPI,
17727 .manufacture_id = WINBOND_NEX_ID,
17728 .model_id = WINBOND_NEX_W25Q80BW,
17729 .total_size = 1024,
17730 .page_size = 256,
17731 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17732 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17733 .tested = TEST_OK_PREW,
17734 .probe = probe_spi_rdid,
17735 .probe_timing = TIMING_ZERO,
17736 .block_erasers =
17737 {
17738 {
17739 .eraseblocks = { {4 * 1024, 256} },
17740 .block_erase = spi_block_erase_20,
17741 }, {
17742 .eraseblocks = { {32 * 1024, 32} },
17743 .block_erase = spi_block_erase_52,
17744 }, {
17745 .eraseblocks = { {64 * 1024, 16} },
17746 .block_erase = spi_block_erase_d8,
17747 }, {
17748 .eraseblocks = { {1 * 1024 * 1024, 1} },
17749 .block_erase = spi_block_erase_60,
17750 }, {
17751 .eraseblocks = { {1 * 1024 * 1024, 1} },
17752 .block_erase = spi_block_erase_c7,
17753 }
17754 },
17755 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17756 .unlock = spi_disable_blockprotect,
17757 .write = spi_chip_write_256,
17758 .read = spi_chip_read,
17759 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17760 },
17761
17762 {
17763 .vendor = "Winbond",
17764 .name = "W25Q80EW",
17765 .bustype = BUS_SPI,
17766 .manufacture_id = WINBOND_NEX_ID,
17767 .model_id = WINBOND_NEX_W25Q80EW,
17768 .total_size = 1024,
17769 .page_size = 256,
17770 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17771 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17772 .tested = TEST_OK_PREW,
17773 .probe = probe_spi_rdid,
17774 .probe_timing = TIMING_ZERO,
17775 .block_erasers =
17776 {
17777 {
17778 .eraseblocks = { {4 * 1024, 256} },
17779 .block_erase = spi_block_erase_20,
17780 }, {
17781 .eraseblocks = { {32 * 1024, 32} },
17782 .block_erase = spi_block_erase_52,
17783 }, {
17784 .eraseblocks = { {64 * 1024, 16} },
17785 .block_erase = spi_block_erase_d8,
17786 }, {
17787 .eraseblocks = { {1 * 1024 * 1024, 1} },
17788 .block_erase = spi_block_erase_60,
17789 }, {
17790 .eraseblocks = { {1 * 1024 * 1024, 1} },
17791 .block_erase = spi_block_erase_c7,
17792 }
17793 },
17794 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17795 .unlock = spi_disable_blockprotect,
17796 .write = spi_chip_write_256,
17797 .read = spi_chip_read,
17798 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nico Huber70eed9f2017-04-24 22:19:27 +020017799 },
17800
17801 {
17802 .vendor = "Winbond",
Jacob Appelbaumebbdc022019-09-02 09:10:43 -040017803 .name = "W25X05",
17804 .bustype = BUS_SPI,
17805 .manufacture_id = WINBOND_NEX_ID,
17806 .model_id = WINBOND_NEX_W25X05,
17807 .total_size = 64,
17808 .page_size = 256,
17809 .feature_bits = FEATURE_WRSR_WREN,
17810 .tested = TEST_OK_PREW,
17811 .probe = probe_spi_rdid,
17812 .probe_timing = TIMING_ZERO,
17813 .block_erasers =
17814 {
17815 {
17816 .eraseblocks = { {4 * 1024, 16} },
17817 .block_erase = spi_block_erase_20,
17818 }, {
17819 .eraseblocks = { {32 * 1024, 2} },
17820 .block_erase = spi_block_erase_52,
17821 }, {
17822 .eraseblocks = { {64 * 1024, 1} },
17823 .block_erase = spi_block_erase_d8,
17824 }
17825 },
17826 .printlock = spi_prettyprint_status_register_plain,
17827 .unlock = spi_disable_blockprotect,
17828 .write = spi_chip_write_256,
17829 .read = spi_chip_read,
17830 .voltage = {2300, 3600},
17831 },
17832
17833 {
17834 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017835 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017836 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017837 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017838 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017839 .total_size = 128,
17840 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017841 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000017842 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017843 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017844 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017845 .block_erasers =
17846 {
17847 {
17848 .eraseblocks = { {4 * 1024, 32} },
17849 .block_erase = spi_block_erase_20,
17850 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017851 .eraseblocks = { {64 * 1024, 2} },
17852 .block_erase = spi_block_erase_d8,
17853 }, {
17854 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017855 .block_erase = spi_block_erase_c7,
17856 }
17857 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017858 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017859 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000017860 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017861 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017862 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017863 },
17864
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017865 {
17866 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017867 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017868 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000017869 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017870 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000017871 .total_size = 2048,
17872 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017873 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000017874 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000017875 .probe = probe_spi_rdid,
17876 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017877 .block_erasers =
17878 {
17879 {
17880 .eraseblocks = { {4 * 1024, 512} },
17881 .block_erase = spi_block_erase_20,
17882 }, {
17883 .eraseblocks = { {32 * 1024, 64} },
17884 .block_erase = spi_block_erase_52,
17885 }, {
17886 .eraseblocks = { {64 * 1024, 32} },
17887 .block_erase = spi_block_erase_d8,
17888 }, {
17889 .eraseblocks = { {2 * 1024 * 1024, 1} },
17890 .block_erase = spi_block_erase_60,
17891 }, {
17892 .eraseblocks = { {2 * 1024 * 1024, 1} },
17893 .block_erase = spi_block_erase_c7,
17894 }
17895 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017896 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017897 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000017898 .write = spi_chip_write_256,
17899 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017900 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000017901 },
17902
17903 {
17904 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017905 .name = "W25X20",
17906 .bustype = BUS_SPI,
17907 .manufacture_id = WINBOND_NEX_ID,
17908 .model_id = WINBOND_NEX_W25X20,
17909 .total_size = 256,
17910 .page_size = 256,
17911 .feature_bits = FEATURE_WRSR_WREN,
17912 .tested = TEST_OK_PREW,
17913 .probe = probe_spi_rdid,
17914 .probe_timing = TIMING_ZERO,
17915 .block_erasers =
17916 {
17917 {
17918 .eraseblocks = { {4 * 1024, 64} },
17919 .block_erase = spi_block_erase_20,
17920 }, {
17921 .eraseblocks = { {64 * 1024, 4} },
17922 .block_erase = spi_block_erase_d8,
17923 }, {
17924 .eraseblocks = { {256 * 1024, 1} },
17925 .block_erase = spi_block_erase_c7,
17926 }
17927 },
17928 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17929 .unlock = spi_disable_blockprotect,
17930 .write = spi_chip_write_256,
17931 .read = spi_chip_read,
17932 .voltage = {2700, 3600},
17933 },
17934
17935 {
17936 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017937 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017938 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000017939 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017940 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000017941 .total_size = 4096,
17942 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017943 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000017944 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000017945 .probe = probe_spi_rdid,
17946 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017947 .block_erasers =
17948 {
17949 {
17950 .eraseblocks = { {4 * 1024, 1024} },
17951 .block_erase = spi_block_erase_20,
17952 }, {
17953 .eraseblocks = { {32 * 1024, 128} },
17954 .block_erase = spi_block_erase_52,
17955 }, {
17956 .eraseblocks = { {64 * 1024, 64} },
17957 .block_erase = spi_block_erase_d8,
17958 }, {
17959 .eraseblocks = { {4 * 1024 * 1024, 1} },
17960 .block_erase = spi_block_erase_60,
17961 }, {
17962 .eraseblocks = { {4 * 1024 * 1024, 1} },
17963 .block_erase = spi_block_erase_c7,
17964 }
17965 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017966 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017967 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000017968 .write = spi_chip_write_256,
17969 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017970 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000017971 },
17972
17973 {
17974 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017975 .name = "W25X40",
17976 .bustype = BUS_SPI,
17977 .manufacture_id = WINBOND_NEX_ID,
17978 .model_id = WINBOND_NEX_W25X40,
17979 .total_size = 512,
17980 .page_size = 256,
17981 .feature_bits = FEATURE_WRSR_WREN,
17982 .tested = TEST_OK_PREW,
17983 .probe = probe_spi_rdid,
17984 .probe_timing = TIMING_ZERO,
17985 .block_erasers =
17986 {
17987 {
17988 .eraseblocks = { {4 * 1024, 128} },
17989 .block_erase = spi_block_erase_20,
17990 }, {
17991 .eraseblocks = { {64 * 1024, 8} },
17992 .block_erase = spi_block_erase_d8,
17993 }, {
17994 .eraseblocks = { {512 * 1024, 1} },
17995 .block_erase = spi_block_erase_c7,
17996 }
17997 },
17998 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17999 .unlock = spi_disable_blockprotect,
18000 .write = spi_chip_write_256,
18001 .read = spi_chip_read,
18002 .voltage = {2700, 3600},
18003 },
18004
18005 {
18006 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018007 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018008 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000018009 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018010 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000018011 .total_size = 8192,
18012 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000018013 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000018014 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000018015 .probe = probe_spi_rdid,
18016 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018017 .block_erasers =
18018 {
18019 {
18020 .eraseblocks = { {4 * 1024, 2048} },
18021 .block_erase = spi_block_erase_20,
18022 }, {
18023 .eraseblocks = { {32 * 1024, 256} },
18024 .block_erase = spi_block_erase_52,
18025 }, {
18026 .eraseblocks = { {64 * 1024, 128} },
18027 .block_erase = spi_block_erase_d8,
18028 }, {
18029 .eraseblocks = { {8 * 1024 * 1024, 1} },
18030 .block_erase = spi_block_erase_60,
18031 }, {
18032 .eraseblocks = { {8 * 1024 * 1024, 1} },
18033 .block_erase = spi_block_erase_c7,
18034 }
18035 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018036 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018037 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000018038 .write = spi_chip_write_256,
18039 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018040 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000018041 },
18042
18043 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100018044 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018045 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100018046 .bustype = BUS_SPI,
18047 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018048 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100018049 .total_size = 1024,
18050 .page_size = 256,
18051 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018052 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100018053 .probe = probe_spi_rdid,
18054 .probe_timing = TIMING_ZERO,
18055 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080018056 {
18057 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018058 .eraseblocks = { {4 * 1024, 256} },
18059 .block_erase = spi_block_erase_20,
18060 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080018061 .eraseblocks = { {64 * 1024, 16} },
18062 .block_erase = spi_block_erase_d8,
18063 }, {
18064 .eraseblocks = { {1024 * 1024, 1} },
18065 .block_erase = spi_block_erase_c7,
18066 }
18067 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100018068 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18069 .unlock = spi_disable_blockprotect,
18070 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018071 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100018072 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080018073 },
18074
Alan Greenf29ea362019-06-27 17:14:02 +100018075 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
18076 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000018077 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018078 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018079 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018080 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018081 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018082 .total_size = 128,
18083 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018084 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000018085 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018086 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018087 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018088 .block_erasers =
18089 {
18090 {
18091 .eraseblocks = { {128 * 1024, 1} },
18092 .block_erase = erase_chip_block_jedec,
18093 }
18094 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018095 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018096 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000018097 },
18098
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018099 {
18100 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018101 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
18102 .bustype = BUS_PARALLEL,
18103 .manufacture_id = WINBOND_ID,
18104 .model_id = WINBOND_W29C010,
18105 .total_size = 128,
18106 .page_size = 128,
18107 .feature_bits = FEATURE_LONG_RESET,
18108 .tested = TEST_OK_PREW,
18109 .probe = probe_w29ee011,
18110 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
18111 .block_erasers =
18112 {
18113 {
18114 .eraseblocks = { {128 * 1024, 1} },
18115 .block_erase = erase_chip_block_jedec,
18116 }
18117 },
18118 .write = write_jedec,
18119 .read = read_memmapped,
18120 },
18121
18122 {
18123 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018124 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018125 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018126 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018127 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018128 .total_size = 256,
18129 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018130 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018131 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018132 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018133 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018134 .block_erasers =
18135 {
18136 {
18137 .eraseblocks = { {256 * 1024, 1} },
18138 .block_erase = erase_chip_block_jedec,
18139 }
18140 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018141 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018142 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018143 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018144 },
18145
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018146 {
18147 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018148 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018149 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018150 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018151 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018152 .total_size = 512,
18153 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000018154 .feature_bits = FEATURE_LONG_RESET,
18155 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018156 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000018157 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018158 .block_erasers =
18159 {
18160 {
18161 .eraseblocks = { {512 * 1024, 1} },
18162 .block_erase = erase_chip_block_jedec,
18163 }
18164 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018165 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018166 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018167 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018168 },
18169
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018170 {
18171 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018172 .name = "W29C512A/W29EE512",
18173 .bustype = BUS_PARALLEL,
18174 .manufacture_id = WINBOND_ID,
18175 .model_id = WINBOND_W29C512A,
18176 .total_size = 64,
18177 .page_size = 128,
18178 .feature_bits = FEATURE_LONG_RESET,
18179 .tested = TEST_OK_PREW,
18180 .probe = probe_jedec,
18181 .probe_timing = 10,
18182 .block_erasers =
18183 {
18184 {
18185 .eraseblocks = { {64 * 1024, 1} },
18186 .block_erase = erase_chip_block_jedec,
18187 }
18188 },
18189 .write = write_jedec,
18190 .read = read_memmapped,
18191 .voltage = {4500, 5500},
18192 },
18193
18194 {
18195 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018196 .name = "W29GL032CB",
18197 .bustype = BUS_PARALLEL,
18198 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18199 .model_id = WINBOND_W29GL032CB,
18200 .total_size = 4096,
18201 .page_size = 128 * 1024, /* actual page size is 16 */
18202 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18203 .tested = TEST_UNTESTED,
18204 .probe = probe_jedec_29gl,
18205 .probe_timing = TIMING_ZERO,
18206 .block_erasers =
18207 {
18208 {
18209 .eraseblocks = {
18210 {8 * 1024, 8},
18211 {64 * 1024, 63},
18212 },
18213 .block_erase = erase_sector_jedec,
18214 }, {
18215 .eraseblocks = { {4 * 1024 * 1024, 1} },
18216 .block_erase = erase_chip_block_jedec,
18217 },
18218 },
18219 .write = write_jedec_1,
18220 .read = read_memmapped,
18221 .voltage = {2700, 3600},
18222 },
18223
18224 {
18225 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018226 .name = "W29GL032CH/L",
18227 .bustype = BUS_PARALLEL,
18228 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18229 .model_id = WINBOND_W29GL032CHL,
18230 .total_size = 4096,
18231 .page_size = 128 * 1024, /* actual page size is 16 */
18232 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18233 .tested = TEST_UNTESTED,
18234 .probe = probe_jedec_29gl,
18235 .probe_timing = TIMING_ZERO,
18236 .block_erasers =
18237 {
18238 {
18239 .eraseblocks = { {64 * 1024, 64} },
18240 .block_erase = erase_sector_jedec,
18241 }, {
18242 .eraseblocks = { {4 * 1024 * 1024, 1} },
18243 .block_erase = erase_chip_block_jedec,
18244 },
18245 },
18246 .write = write_jedec_1,
18247 .read = read_memmapped,
18248 .voltage = {2700, 3600},
18249 },
18250
18251 {
18252 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018253 .name = "W29GL032CT",
18254 .bustype = BUS_PARALLEL,
18255 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18256 .model_id = WINBOND_W29GL032CT,
18257 .total_size = 4096,
18258 .page_size = 128 * 1024, /* actual page size is 16 */
18259 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18260 .tested = TEST_UNTESTED,
18261 .probe = probe_jedec_29gl,
18262 .probe_timing = TIMING_ZERO,
18263 .block_erasers =
18264 {
18265 {
18266 .eraseblocks = {
18267 {64 * 1024, 63},
18268 {8 * 1024, 8},
18269 },
18270 .block_erase = erase_sector_jedec,
18271 }, {
18272 .eraseblocks = { {4 * 1024 * 1024, 1} },
18273 .block_erase = erase_chip_block_jedec,
18274 },
18275 },
18276 .write = write_jedec_1,
18277 .read = read_memmapped,
18278 .voltage = {2700, 3600},
18279 },
18280
18281 {
18282 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018283 .name = "W29GL064CB",
18284 .bustype = BUS_PARALLEL,
18285 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18286 .model_id = WINBOND_W29GL064CB,
18287 .total_size = 8192,
18288 .page_size = 128 * 1024, /* actual page size is 16 */
18289 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18290 .tested = TEST_UNTESTED,
18291 .probe = probe_jedec_29gl,
18292 .probe_timing = TIMING_ZERO,
18293 .block_erasers =
18294 {
18295 {
18296 .eraseblocks = {
18297 {8 * 1024, 8},
18298 {64 * 1024, 127},
18299 },
18300 .block_erase = erase_sector_jedec,
18301 }, {
18302 .eraseblocks = { {8 * 1024 * 1024, 1} },
18303 .block_erase = erase_chip_block_jedec,
18304 },
18305 },
18306 .write = write_jedec_1,
18307 .read = read_memmapped,
18308 .voltage = {2700, 3600},
18309 },
18310
18311 {
18312 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018313 .name = "W29GL064CH/L",
18314 .bustype = BUS_PARALLEL,
18315 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18316 .model_id = WINBOND_W29GL064CHL,
18317 .total_size = 8192,
18318 .page_size = 128 * 1024, /* actual page size is 16 */
18319 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18320 .tested = TEST_UNTESTED,
18321 .probe = probe_jedec_29gl,
18322 .probe_timing = TIMING_ZERO,
18323 .block_erasers =
18324 {
18325 {
18326 .eraseblocks = { {64 * 1024, 128} },
18327 .block_erase = erase_sector_jedec,
18328 }, {
18329 .eraseblocks = { {8 * 1024 * 1024, 1} },
18330 .block_erase = erase_chip_block_jedec,
18331 },
18332 },
18333 .write = write_jedec_1,
18334 .read = read_memmapped,
18335 .voltage = {2700, 3600},
18336 },
18337
18338 {
18339 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018340 .name = "W29GL064CT",
18341 .bustype = BUS_PARALLEL,
18342 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18343 .model_id = WINBOND_W29GL064CT,
18344 .total_size = 8192,
18345 .page_size = 128 * 1024, /* actual page size is 16 */
18346 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18347 .tested = TEST_UNTESTED,
18348 .probe = probe_jedec_29gl,
18349 .probe_timing = TIMING_ZERO,
18350 .block_erasers =
18351 {
18352 {
18353 .eraseblocks = {
18354 {64 * 1024, 127},
18355 {8 * 1024, 8},
18356 },
18357 .block_erase = erase_sector_jedec,
18358 }, {
18359 .eraseblocks = { {8 * 1024 * 1024, 1} },
18360 .block_erase = erase_chip_block_jedec,
18361 },
18362 },
18363 .write = write_jedec_1,
18364 .read = read_memmapped,
18365 .voltage = {2700, 3600},
18366 },
18367
18368 {
18369 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018370 .name = "W29GL128C",
18371 .bustype = BUS_PARALLEL,
18372 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18373 .model_id = WINBOND_W29GL128CHL,
18374 .total_size = 16384,
18375 .page_size = 128 * 1024, /* actual page size is 16 */
18376 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18377 .tested = TEST_UNTESTED,
18378 .probe = probe_jedec_29gl,
18379 .probe_timing = TIMING_ZERO,
18380 .block_erasers =
18381 {
18382 {
18383 .eraseblocks = { {128 * 1024, 128} },
18384 .block_erase = erase_sector_jedec,
18385 }, {
18386 .eraseblocks = { {16 * 1024 * 1024, 1} },
18387 .block_erase = erase_chip_block_jedec,
18388 },
18389 },
18390 .write = write_jedec_1,
18391 .read = read_memmapped,
18392 .voltage = {2700, 3600},
18393 },
18394
18395 {
18396 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000018397 .name = "W39F010",
18398 .bustype = BUS_PARALLEL,
18399 .manufacture_id = WINBOND_ID,
18400 .model_id = WINBOND_W39F010,
18401 .total_size = 128,
18402 .page_size = 4 * 1024,
18403 .feature_bits = FEATURE_EITHER_RESET,
18404 .tested = TEST_OK_PREW,
18405 .probe = probe_jedec,
18406 .probe_timing = 10,
18407 .block_erasers =
18408 {
18409 {
18410 .eraseblocks = { {4 * 1024, 32} },
18411 .block_erase = erase_block_jedec,
18412 }, {
18413 .eraseblocks = { {128 * 1024, 1} },
18414 .block_erase = erase_chip_block_jedec,
18415 }
18416 },
18417 .printlock = printlock_w39f010,
18418 .write = write_jedec_1,
18419 .read = read_memmapped,
18420 .voltage = {4500, 5500},
18421 },
18422
18423 {
18424 .vendor = "Winbond",
18425 .name = "W39L010",
18426 .bustype = BUS_PARALLEL,
18427 .manufacture_id = WINBOND_ID,
18428 .model_id = WINBOND_W39L010,
18429 .total_size = 128,
18430 .page_size = 4 * 1024,
18431 .feature_bits = FEATURE_EITHER_RESET,
18432 .tested = TEST_UNTESTED,
18433 .probe = probe_jedec,
18434 .probe_timing = 10,
18435 .block_erasers =
18436 {
18437 {
18438 .eraseblocks = { {4 * 1024, 32} },
18439 .block_erase = erase_block_jedec,
18440 }, {
18441 .eraseblocks = { {128 * 1024, 1} },
18442 .block_erase = erase_chip_block_jedec,
18443 }
18444 },
18445 .printlock = printlock_w39l010,
18446 .write = write_jedec_1,
18447 .read = read_memmapped,
18448 .voltage = {3000, 3600},
18449 },
18450
18451 {
18452 .vendor = "Winbond",
18453 .name = "W39L020",
18454 .bustype = BUS_PARALLEL,
18455 .manufacture_id = WINBOND_ID,
18456 .model_id = WINBOND_W39L020,
18457 .total_size = 256,
18458 .page_size = 4 * 1024,
18459 .feature_bits = FEATURE_EITHER_RESET,
18460 .tested = TEST_UNTESTED,
18461 .probe = probe_jedec,
18462 .probe_timing = 10,
18463 .block_erasers =
18464 {
18465 {
18466 .eraseblocks = { {4 * 1024, 64} },
18467 .block_erase = erase_block_jedec,
18468 }, {
18469 .eraseblocks = { {64 * 1024, 4} },
18470 .block_erase = erase_sector_jedec,
18471 }, {
18472 .eraseblocks = { {256 * 1024, 1} },
18473 .block_erase = erase_chip_block_jedec,
18474 }
18475 },
18476 .printlock = printlock_w39l020,
18477 .write = write_jedec_1,
18478 .read = read_memmapped,
18479 .voltage = {3000, 3600},
18480 },
18481
18482 {
18483 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000018484 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018485 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000018486 .manufacture_id = WINBOND_ID,
18487 .model_id = WINBOND_W39L040,
18488 .total_size = 512,
18489 .page_size = 64 * 1024,
18490 .feature_bits = FEATURE_EITHER_RESET,
18491 .tested = TEST_OK_PR,
18492 .probe = probe_jedec,
18493 .probe_timing = 10,
18494 .block_erasers =
18495 {
18496 {
18497 .eraseblocks = { {4 * 1024, 128} },
18498 .block_erase = erase_block_jedec,
18499 }, {
18500 .eraseblocks = { {64 * 1024, 8} },
18501 .block_erase = erase_sector_jedec,
18502 }, {
18503 .eraseblocks = { {512 * 1024, 1} },
18504 .block_erase = erase_chip_block_jedec,
18505 }
18506 },
18507 .printlock = printlock_w39l040,
18508 .write = write_jedec_1,
18509 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018510 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000018511 },
18512
18513 {
18514 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018515 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018516 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018517 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018518 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018519 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018520 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018521 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000018522 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018523 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000018524 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018525 .block_erasers =
18526 {
18527 {
18528 .eraseblocks = { {64 * 1024, 8} },
18529 .block_erase = erase_sector_jedec,
18530 }, {
18531 .eraseblocks = { {512 * 1024, 1} },
18532 .block_erase = erase_chip_block_jedec,
18533 }
18534 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018535 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000018536 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018537 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018538 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018539 },
18540
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018541 {
18542 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018543 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018544 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018545 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018546 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018547 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018548 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018549 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000018550 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018551 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000018552 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018553 .block_erasers =
18554 {
18555 {
18556 .eraseblocks = { {64 * 1024, 8} },
18557 .block_erase = erase_sector_jedec,
18558 }, {
18559 .eraseblocks = { {512 * 1024, 1} },
18560 .block_erase = erase_chip_block_jedec,
18561 }
18562 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018563 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000018564 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018565 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018566 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018567 },
18568
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018569 {
18570 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018571 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018572 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018573 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018574 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018575 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018576 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018577 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000018578 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000018579 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018580 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018581 .block_erasers =
18582 {
18583 {
18584 .eraseblocks = { {64 * 1024, 8} },
18585 .block_erase = erase_sector_jedec,
18586 }, {
18587 .eraseblocks = { {512 * 1024, 1} },
18588 .block_erase = erase_chip_block_jedec,
18589 }
18590 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000018591 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000018592 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018593 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018594 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018595 },
18596
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018597 {
18598 .vendor = "Winbond",
18599 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018600 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018601 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018602 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018603 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018604 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000018605 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000018606 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018607 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000018608 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018609 .block_erasers =
18610 {
18611 {
18612 .eraseblocks = { {4 * 1024, 128} },
18613 .block_erase = erase_block_jedec,
18614 }, {
18615 .eraseblocks = { {64 * 1024, 8} },
18616 .block_erase = erase_sector_jedec,
18617 }, {
18618 .eraseblocks = { {512 * 1024, 1} },
18619 .block_erase = erase_chip_block_jedec,
18620 }
18621 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018622 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000018623 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000018624 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018625 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018626 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018627 },
18628
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018629 {
18630 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018631 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018632 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018633 .manufacture_id = WINBOND_ID,
18634 .model_id = WINBOND_W39V040B,
18635 .total_size = 512,
18636 .page_size = 64 * 1024,
18637 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000018638 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018639 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000018640 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018641 .block_erasers =
18642 {
18643 {
18644 .eraseblocks = { {64 * 1024, 8} },
18645 .block_erase = erase_sector_jedec,
18646 }, {
18647 .eraseblocks = { {512 * 1024, 1} },
18648 .block_erase = erase_chip_block_jedec,
18649 }
18650 },
18651 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000018652 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018653 .write = write_jedec_1,
18654 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018655 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018656 },
18657
18658 {
18659 .vendor = "Winbond",
18660 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018661 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018662 .manufacture_id = WINBOND_ID,
18663 .model_id = WINBOND_W39V040C,
18664 .total_size = 512,
18665 .page_size = 64 * 1024,
18666 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000018667 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018668 .probe = probe_jedec,
18669 .probe_timing = 10,
18670 .block_erasers =
18671 {
18672 {
18673 .eraseblocks = { {64 * 1024, 8} },
18674 .block_erase = erase_sector_jedec,
18675 }, {
18676 .eraseblocks = { {512 * 1024, 1} },
18677 .block_erase = erase_chip_block_jedec,
18678 }
18679 },
18680 .printlock = printlock_w39v040fc,
18681 .write = write_jedec_1,
18682 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018683 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018684 },
18685
18686 {
18687 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018688 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018689 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018690 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018691 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018692 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000018693 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018694 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000018695 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018696 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000018697 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018698 .block_erasers =
18699 {
18700 {
18701 .eraseblocks = { {64 * 1024, 16} },
18702 .block_erase = erase_sector_jedec,
18703 }, {
18704 .eraseblocks = { {1024 * 1024, 1} },
18705 .block_erase = erase_chip_block_jedec,
18706 }
18707 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018708 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000018709 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018710 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018711 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018712 },
18713
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018714 {
18715 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018716 .name = "W39V080FA",
18717 .bustype = BUS_FWH,
18718 .manufacture_id = WINBOND_ID,
18719 .model_id = WINBOND_W39V080FA,
18720 .total_size = 1024,
18721 .page_size = 64 * 1024,
18722 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
18723 .tested = TEST_OK_PREW,
18724 .probe = probe_jedec,
18725 .probe_timing = 10,
18726 .block_erasers =
18727 {
18728 {
18729 .eraseblocks = { {64 * 1024, 16} },
18730 .block_erase = erase_sector_jedec,
18731 }, {
18732 .eraseblocks = { {1024 * 1024, 1} },
18733 .block_erase = erase_chip_block_jedec,
18734 }
18735 },
18736 .printlock = printlock_w39v080fa,
18737 .unlock = unlock_regspace2_uniform_64k,
18738 .write = write_jedec_1,
18739 .read = read_memmapped,
18740 .voltage = {3000, 3600}, /* Also has 12V fast program */
18741 },
18742
18743 {
18744 .vendor = "Winbond",
18745 .name = "W39V080FA (dual mode)",
18746 .bustype = BUS_FWH,
18747 .manufacture_id = WINBOND_ID,
18748 .model_id = WINBOND_W39V080FA_DM,
18749 .total_size = 512,
18750 .page_size = 64 * 1024,
18751 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
18752 .tested = TEST_UNTESTED,
18753 .probe = probe_jedec,
18754 .probe_timing = 10,
18755 .block_erasers =
18756 {
18757 {
18758 .eraseblocks = { {64 * 1024, 8} },
18759 .block_erase = erase_sector_jedec,
18760 }, {
18761 .eraseblocks = { {512 * 1024, 1} },
18762 .block_erase = erase_chip_block_jedec,
18763 }
18764 },
18765 .printlock = printlock_w39v080fa_dual,
18766 .write = write_jedec_1,
18767 .read = read_memmapped,
18768 .voltage = {3000, 3600}, /* Also has 12V fast program */
18769 },
18770
18771 {
18772 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018773 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018774 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018775 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018776 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018777 .total_size = 256,
18778 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018779 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000018780 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018781 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018782 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018783 .block_erasers =
18784 {
18785 {
18786 .eraseblocks = {
18787 {128 * 1024, 1},
18788 {96 * 1024, 1},
18789 {8 * 1024, 2},
18790 {16 * 1024, 1},
18791 },
18792 .block_erase = erase_sector_jedec,
18793 }, {
18794 .eraseblocks = { {256 * 1024, 1} },
18795 .block_erase = erase_chip_block_jedec,
18796 }
18797 },
Sean Nelson35727f72010-01-28 23:55:12 +000018798 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018799 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018800 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018801 },
18802
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018803 {
18804 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018805 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018806 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018807 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018808 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018809 .total_size = 256,
18810 .page_size = 128,
18811 .feature_bits = FEATURE_EITHER_RESET,
18812 .tested = TEST_OK_PROBE,
18813 .probe = probe_jedec,
18814 .probe_timing = 10,
18815 .block_erasers =
18816 {
18817 {
18818 .eraseblocks = { {256 * 1024, 1} },
18819 .block_erase = erase_chip_block_jedec,
18820 }
18821 },
18822 .write = write_jedec_1,
18823 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018824 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018825 },
18826
18827 {
18828 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018829 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018830 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018831 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018832 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018833 .total_size = 256,
18834 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018835 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018836 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018837 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018838 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018839 .block_erasers =
18840 {
18841 {
18842 .eraseblocks = {
18843 {64 * 1024, 3},
18844 {32 * 1024, 1},
18845 {8 * 1024, 2},
18846 {16 * 1024, 1},
18847 },
18848 .block_erase = erase_sector_jedec,
18849 }, {
18850 .eraseblocks = { {256 * 1024, 1} },
18851 .block_erase = erase_chip_block_jedec,
18852 }
18853 },
Sean Nelson35727f72010-01-28 23:55:12 +000018854 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018855 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018856 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018857 },
18858
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018859 {
18860 .vendor = "Winbond",
18861 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018862 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018863 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018864 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018865 .total_size = 256,
18866 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018867 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000018868 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018869 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018870 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018871 .block_erasers =
18872 {
18873 {
18874 .eraseblocks = {
18875 {64 * 1024, 3},
18876 {32 * 1024, 1},
18877 {8 * 1024, 2},
18878 {16 * 1024, 1},
18879 },
18880 .block_erase = erase_sector_jedec,
18881 }, {
18882 .eraseblocks = { {256 * 1024, 1} },
18883 .block_erase = erase_chip_block_jedec,
18884 }
18885 },
Sean Nelson35727f72010-01-28 23:55:12 +000018886 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018887 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018888 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018889 },
18890
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018891 {
luke heef884232020-12-28 18:22:21 +080018892 .vendor = "XMC",
18893 .name = "XM25QH128C",
18894 .bustype = BUS_SPI,
18895 .manufacture_id = ST_ID,
18896 .model_id = XMC_XM25QH128C,
18897 .total_size = 16384,
18898 .page_size = 256,
18899 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
18900 .tested = TEST_UNTESTED,
18901 .probe = probe_spi_rdid,
18902 .probe_timing = TIMING_ZERO,
18903 .block_erasers =
18904 {
18905 {
18906 .eraseblocks = { {4 * 1024, 4096} },
18907 .block_erase = spi_block_erase_20,
18908 }, {
18909 .eraseblocks = { {32 * 1024, 512} },
18910 .block_erase = spi_block_erase_52,
18911 }, {
18912 .eraseblocks = { {64 * 1024, 256} },
18913 .block_erase = spi_block_erase_d8,
18914 }, {
18915 .eraseblocks = { {16 * 1024 * 1024, 1} },
18916 .block_erase = spi_block_erase_60,
18917 }, {
18918 .eraseblocks = { {16 * 1024 * 1024, 1} },
18919 .block_erase = spi_block_erase_c7,
18920 }
18921 },
18922 .printlock = spi_prettyprint_status_register_plain,
18923 .unlock = spi_disable_blockprotect,
18924 .write = spi_chip_write_256,
18925 .read = spi_chip_read,
18926 .voltage = {2700, 3600},
18927 },
18928
18929 {
18930 .vendor = "XMC",
18931 .name = "XM25QH256C",
18932 .bustype = BUS_SPI,
18933 .manufacture_id = ST_ID,
18934 .model_id = XMC_XM25QH256C,
18935 .total_size = 32768,
18936 .page_size = 256,
18937 /* supports SFDP */
18938 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
18939 .tested = TEST_UNTESTED,
18940 .probe = probe_spi_rdid,
18941 .probe_timing = TIMING_ZERO,
18942 .block_erasers =
18943 {
18944 {
18945 .eraseblocks = { {4 * 1024, 8192} },
18946 .block_erase = spi_block_erase_21,
18947 }, {
18948 .eraseblocks = { {4 * 1024, 8192} },
18949 .block_erase = spi_block_erase_20,
18950 }, {
18951 .eraseblocks = { {32 * 1024, 1024} },
18952 .block_erase = spi_block_erase_52,
18953 }, {
18954 .eraseblocks = { {64 * 1024, 512} },
18955 .block_erase = spi_block_erase_dc,
18956 }, {
18957 .eraseblocks = { {64 * 1024, 512} },
18958 .block_erase = spi_block_erase_d8,
18959 }, {
18960 .eraseblocks = { {32 * 1024 * 1024, 1} },
18961 .block_erase = spi_block_erase_60,
18962 }, {
18963 .eraseblocks = { {32 * 1024 * 1024, 1} },
18964 .block_erase = spi_block_erase_c7,
18965 }
18966 },
18967 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18968 .unlock = spi_disable_blockprotect,
18969 .write = spi_chip_write_256,
18970 .read = spi_chip_read,
18971 .voltage = {2700, 3600},
18972 },
18973
18974 {
18975 .vendor = "XMC",
18976 .name = "XM25QH64C",
18977 .bustype = BUS_SPI,
18978 .manufacture_id = ST_ID,
18979 .model_id = XMC_XM25QH64C,
18980 .total_size = 8192,
18981 .page_size = 256,
18982 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
18983 .tested = TEST_UNTESTED,
18984 .probe = probe_spi_rdid,
18985 .probe_timing = TIMING_ZERO,
18986 .block_erasers =
18987 {
18988 {
18989 .eraseblocks = { {4 * 1024, 2048} },
18990 .block_erase = spi_block_erase_20,
18991 }, {
18992 .eraseblocks = { {32 * 1024, 256} },
18993 .block_erase = spi_block_erase_52,
18994 }, {
18995 .eraseblocks = { {64 * 1024, 128} },
18996 .block_erase = spi_block_erase_d8,
18997 }, {
18998 .eraseblocks = { {8 * 1024 * 1024, 1} },
18999 .block_erase = spi_block_erase_60,
19000 }, {
19001 .eraseblocks = { {8 * 1024 * 1024, 1} },
19002 .block_erase = spi_block_erase_c7,
19003 }
19004 },
19005 .printlock = spi_prettyprint_status_register_plain,
19006 .unlock = spi_disable_blockprotect,
19007 .write = spi_chip_write_256,
19008 .read = spi_chip_read,
19009 .voltage = {2700, 3600},
19010 },
19011
19012 {
19013 .vendor = "XMC",
19014 .name = "XM25QU128C",
19015 .bustype = BUS_SPI,
19016 .manufacture_id = ST_ID,
19017 .model_id = XMC_XM25QU128C,
19018 .total_size = 16384,
19019 .page_size = 256,
19020 /* supports SFDP */
19021 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19022 .tested = TEST_UNTESTED,
19023 .probe = probe_spi_rdid,
19024 .probe_timing = TIMING_ZERO,
19025 .block_erasers =
19026 {
19027 {
19028 .eraseblocks = { {4 * 1024, 4096} },
19029 .block_erase = spi_block_erase_20,
19030 }, {
19031 .eraseblocks = { {32 * 1024, 512} },
19032 .block_erase = spi_block_erase_52,
19033 }, {
19034 .eraseblocks = { {64 * 1024, 256} },
19035 .block_erase = spi_block_erase_d8,
19036 }, {
19037 .eraseblocks = { {16 * 1024 * 1024, 1} },
19038 .block_erase = spi_block_erase_60,
19039 }, {
19040 .eraseblocks = { {16 * 1024 * 1024, 1} },
19041 .block_erase = spi_block_erase_c7,
19042 }
19043 },
19044 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19045 .unlock = spi_disable_blockprotect,
19046 .write = spi_chip_write_256,
19047 .read = spi_chip_read,
19048 .voltage = {1650, 1950},
19049 },
19050
19051 {
19052 .vendor = "XMC",
19053 .name = "XM25QU256C",
19054 .bustype = BUS_SPI,
19055 .manufacture_id = ST_ID,
19056 .model_id = XMC_XM25QU256C,
19057 .total_size = 32768,
19058 .page_size = 256,
19059 /* supports SFDP */
19060 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
19061 .tested = TEST_UNTESTED,
19062 .probe = probe_spi_rdid,
19063 .probe_timing = TIMING_ZERO,
19064 .block_erasers =
19065 {
19066 {
19067 .eraseblocks = { {4 * 1024, 8192} },
19068 .block_erase = spi_block_erase_21,
19069 }, {
19070 .eraseblocks = { {4 * 1024, 8192} },
19071 .block_erase = spi_block_erase_20,
19072 }, {
19073 .eraseblocks = { {32 * 1024, 1024} },
19074 .block_erase = spi_block_erase_52,
19075 }, {
19076 .eraseblocks = { {64 * 1024, 512} },
19077 .block_erase = spi_block_erase_dc,
19078 }, {
19079 .eraseblocks = { {64 * 1024, 512} },
19080 .block_erase = spi_block_erase_d8,
19081 }, {
19082 .eraseblocks = { {32 * 1024 * 1024, 1} },
19083 .block_erase = spi_block_erase_60,
19084 }, {
19085 .eraseblocks = { {32 * 1024 * 1024, 1} },
19086 .block_erase = spi_block_erase_c7,
19087 }
19088 },
19089 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19090 .unlock = spi_disable_blockprotect,
19091 .write = spi_chip_write_256,
19092 .read = spi_chip_read,
19093 .voltage = {1650, 1950},
19094 },
19095
19096 {
19097 .vendor = "XMC",
19098 .name = "XM25QU64C",
19099 .bustype = BUS_SPI,
19100 .manufacture_id = ST_ID,
19101 .model_id = XMC_XM25QU64C,
19102 .total_size = 8192,
19103 .page_size = 256,
19104 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19105 .tested = TEST_UNTESTED,
19106 .probe = probe_spi_rdid,
19107 .probe_timing = TIMING_ZERO,
19108 .block_erasers =
19109 {
19110 {
19111 .eraseblocks = { {4 * 1024, 2048} },
19112 .block_erase = spi_block_erase_20,
19113 }, {
19114 .eraseblocks = { {32 * 1024, 256} },
19115 .block_erase = spi_block_erase_52,
19116 }, {
19117 .eraseblocks = { {64 * 1024, 128} },
19118 .block_erase = spi_block_erase_d8,
19119 }, {
19120 .eraseblocks = { {8 * 1024 * 1024, 1} },
19121 .block_erase = spi_block_erase_60,
19122 }, {
19123 .eraseblocks = { {8 * 1024 * 1024, 1} },
19124 .block_erase = spi_block_erase_c7,
19125 }
19126 },
19127 .printlock = spi_prettyprint_status_register_plain,
19128 .unlock = spi_disable_blockprotect,
19129 .write = spi_chip_write_256,
19130 .read = spi_chip_read,
19131 .voltage = {1650, 1950},
19132 },
19133
19134 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100019135 .vendor = "Zetta Device",
19136 .name = "ZD25D20",
19137 .bustype = BUS_SPI,
19138 .manufacture_id = ZETTADEVICE_ID,
19139 .model_id = ZETTADEVICE_ZD25D20,
19140 .total_size = 256,
19141 .page_size = 256,
19142 .feature_bits = FEATURE_WRSR_WREN,
19143 .tested = TEST_UNTESTED,
19144 .probe = probe_spi_rdid,
19145 .probe_timing = TIMING_ZERO,
19146 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080019147 {
19148 {
19149 .eraseblocks = { {4 * 1024, 64} },
19150 .block_erase = spi_block_erase_20,
19151 }, {
19152 .eraseblocks = { {32 * 1024, 8} },
19153 .block_erase = spi_block_erase_52,
19154 }, {
19155 .eraseblocks = { {64 * 1024, 4} },
19156 .block_erase = spi_block_erase_d8,
19157 }, {
19158 .eraseblocks = { {256 * 1024, 1} },
19159 .block_erase = spi_block_erase_60,
19160 }, {
19161 .eraseblocks = { {256 * 1024, 1} },
19162 .block_erase = spi_block_erase_c7,
19163 }
19164 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100019165 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19166 .unlock = spi_disable_blockprotect,
19167 .write = spi_chip_write_256,
19168 .read = spi_chip_read,
19169 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080019170 },
19171
19172 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100019173 .vendor = "Zetta Device",
19174 .name = "ZD25D40",
19175 .bustype = BUS_SPI,
19176 .manufacture_id = ZETTADEVICE_ID,
19177 .model_id = ZETTADEVICE_ZD25D40,
19178 .total_size = 512,
19179 .page_size = 256,
19180 .feature_bits = FEATURE_WRSR_WREN,
19181 .tested = TEST_UNTESTED,
19182 .probe = probe_spi_rdid,
19183 .probe_timing = TIMING_ZERO,
19184 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080019185 {
19186 {
19187 .eraseblocks = { {4 * 1024, 128} },
19188 .block_erase = spi_block_erase_20,
19189 }, {
19190 .eraseblocks = { {32 * 1024, 16} },
19191 .block_erase = spi_block_erase_52,
19192 }, {
19193 .eraseblocks = { {64 * 1024, 8} },
19194 .block_erase = spi_block_erase_d8,
19195 }, {
19196 .eraseblocks = { {512 * 1024, 1} },
19197 .block_erase = spi_block_erase_60,
19198 }, {
19199 .eraseblocks = { {512 * 1024, 1} },
19200 .block_erase = spi_block_erase_c7,
19201 }
19202 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100019203 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19204 .unlock = spi_disable_blockprotect,
19205 .write = spi_chip_write_256,
19206 .read = spi_chip_read,
19207 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080019208 },
19209
Stefan Taunerac1b4c82012-02-17 14:51:04 +000019210 {
Alan Greendd592202019-08-23 10:11:37 +100019211 .vendor = "Unknown",
19212 .name = "SFDP-capable chip",
19213 .bustype = BUS_SPI,
19214 .manufacture_id = GENERIC_MANUF_ID,
19215 .model_id = SFDP_DEVICE_ID,
19216 .total_size = 0, /* set by probing function */
19217 .page_size = 0, /* set by probing function */
19218 .feature_bits = 0, /* set by probing function */
19219 /* We present our own "report this" text hence we do not */
19220 /* want the default "This flash part has status UNTESTED..." */
19221 /* text to be printed. */
19222 .tested = TEST_OK_PREW,
19223 .probe = probe_spi_sfdp,
19224 .block_erasers = {}, /* set by probing function */
19225 .unlock = spi_disable_blockprotect, /* is this safe? */
19226 .write = NULL, /* set by probing function */
19227 .read = spi_chip_read,
19228 /* FIXME: some vendor extensions define this */
19229 .voltage = {0},
19230 },
19231
19232 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000019233 .vendor = "Programmer",
19234 .name = "Opaque flash chip",
19235 .bustype = BUS_PROG,
19236 .manufacture_id = PROGMANUF_ID,
19237 .model_id = PROGDEV_ID,
19238 .total_size = 0,
19239 .page_size = 256,
19240 /* probe is assumed to work, rest will be filled in by probe */
19241 .tested = TEST_OK_PROBE,
19242 .probe = probe_opaque,
19243 /* eraseblock sizes will be set by the probing function */
19244 .block_erasers =
19245 {
19246 {
19247 .block_erase = erase_opaque,
19248 }
19249 },
19250 .write = write_opaque,
19251 .read = read_opaque,
19252 },
19253
19254 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000019255 .vendor = "AMIC",
19256 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019257 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000019258 .manufacture_id = AMIC_ID,
19259 .model_id = GENERIC_DEVICE_ID,
19260 .total_size = 0,
19261 .page_size = 256,
19262 .tested = TEST_BAD_PREW,
19263 .probe = probe_spi_rdid4,
19264 .probe_timing = TIMING_ZERO,
19265 .write = NULL,
19266 .read = NULL,
19267 },
19268
19269 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019270 .vendor = "Atmel",
19271 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019272 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019273 .manufacture_id = ATMEL_ID,
19274 .model_id = GENERIC_DEVICE_ID,
19275 .total_size = 0,
19276 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019277 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019278 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019279 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019280 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019281 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019282 },
19283
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019284 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000019285 .vendor = "Eon",
19286 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019287 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019288 .manufacture_id = EON_ID_NOPREFIX,
19289 .model_id = GENERIC_DEVICE_ID,
19290 .total_size = 0,
19291 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019292 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019293 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019294 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019295 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019296 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019297 },
19298
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019299 {
19300 .vendor = "Macronix",
19301 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019302 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000019303 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019304 .model_id = GENERIC_DEVICE_ID,
19305 .total_size = 0,
19306 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019307 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019308 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019309 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019310 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019311 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019312 },
19313
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019314 {
19315 .vendor = "PMC",
19316 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019317 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019318 .manufacture_id = PMC_ID,
19319 .model_id = GENERIC_DEVICE_ID,
19320 .total_size = 0,
19321 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019322 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019323 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019324 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019325 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019326 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019327 },
19328
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019329 {
19330 .vendor = "SST",
19331 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019332 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019333 .manufacture_id = SST_ID,
19334 .model_id = GENERIC_DEVICE_ID,
19335 .total_size = 0,
19336 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019337 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019338 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019339 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019340 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019341 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019342 },
19343
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019344 {
19345 .vendor = "ST",
19346 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019347 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019348 .manufacture_id = ST_ID,
19349 .model_id = GENERIC_DEVICE_ID,
19350 .total_size = 0,
19351 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019352 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019353 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019354 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019355 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019356 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019357 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000019358
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019359 {
Sean Nelson118e1d62009-11-24 02:08:11 +000019360 .vendor = "Sanyo",
19361 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019362 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000019363 .manufacture_id = SANYO_ID,
19364 .model_id = GENERIC_DEVICE_ID,
19365 .total_size = 0,
19366 .page_size = 256,
19367 .tested = TEST_BAD_PREW,
19368 .probe = probe_spi_rdid,
19369 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000019370 .write = NULL,
19371 .read = NULL,
19372 },
19373
19374 {
Stefan Taunereb582572012-09-21 12:52:50 +000019375 .vendor = "Winbond",
19376 .name = "unknown Winbond (ex Nexcom) SPI chip",
19377 .bustype = BUS_SPI,
19378 .manufacture_id = WINBOND_NEX_ID,
19379 .model_id = GENERIC_DEVICE_ID,
19380 .total_size = 0,
19381 .page_size = 256,
19382 .tested = TEST_BAD_PREW,
19383 .probe = probe_spi_rdid,
19384 .probe_timing = TIMING_ZERO,
19385 .write = NULL,
19386 .read = NULL,
19387 },
19388
19389 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019390 .vendor = "Generic",
19391 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019392 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019393 .manufacture_id = GENERIC_MANUF_ID,
19394 .model_id = GENERIC_DEVICE_ID,
19395 .total_size = 0,
19396 .page_size = 256,
19397 .tested = TEST_BAD_PREW,
19398 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019399 .write = NULL,
19400 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000019401
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019402 {
19403 .vendor = "Generic",
19404 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019405 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019406 .manufacture_id = GENERIC_MANUF_ID,
19407 .model_id = GENERIC_DEVICE_ID,
19408 .total_size = 0,
19409 .page_size = 256,
19410 .tested = TEST_BAD_PREW,
19411 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019412 .write = NULL,
19413 },
19414
Stefan Tauner96658be2014-05-26 22:05:31 +000019415 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000019416};
Stefan Tauner96658be2014-05-26 22:05:31 +000019417
19418const unsigned int flashchips_size = ARRAY_SIZE(flashchips);