blob: 583c534d620d64d9b629eb62081a682bf66850e1 [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 */
20
21#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000022#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000023#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000024
Uwe Hermannfc425e82008-03-16 02:06:25 +000025/**
Uwe Hermanna9720402009-05-21 15:55:46 +000026 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000027 *
Alan Green1f9cc7d2019-07-01 11:10:45 +100028 * Temporarily, this file is sorted alphabetically by vendor and name to
29 * assist with merging the Chromium fork of flashrom.
30 *
31 * The usual intention is that that this list is sorted by vendor, then chip
32 * family and chip density, which is useful for the output of 'flashrom -L'.
Uwe Hermannfc425e82008-03-16 02:06:25 +000033 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000034const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000035
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000036 /*
37 * .vendor = Vendor name
38 * .name = Chip name
39 * .bustype = Supported flash bus types (Parallel, LPC...)
40 * .manufacture_id = Manufacturer chip ID
41 * .model_id = Model chip ID
42 * .total_size = Total size in (binary) kbytes
43 * .page_size = Page or eraseblock(?) size in bytes
44 * .tested = Test status
45 * .probe = Probe function
46 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000047 * .block_erasers[] = Array of erase layouts and erase functions
48 * {
49 * .eraseblocks[] = Array of { blocksize, blockcount }
50 * .block_erase = Block erase function
51 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000052 * .printlock = Chip lock status function
53 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000054 * .write = Chip write function
55 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000056 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000057 */
58
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000059 {
60 .vendor = "AMD",
61 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000062 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000063 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000064 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000065 .total_size = 256,
66 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000067 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000068 .tested = TEST_UNTESTED,
69 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000070 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000071 .block_erasers =
72 {
73 {
74 .eraseblocks = {
75 {16 * 1024, 1},
76 {8 * 1024, 2},
77 {32 * 1024, 1},
78 {64 * 1024, 3},
79 },
80 .block_erase = erase_sector_jedec,
81 }, {
82 .eraseblocks = { {256 * 1024, 1} },
83 .block_erase = erase_chip_block_jedec,
84 },
85 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000086 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000087 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000088 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000089 },
90
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000091 {
92 .vendor = "AMD",
93 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000094 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000095 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000096 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000097 .total_size = 256,
98 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000099 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
100 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000101 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000102 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000103 .block_erasers =
104 {
105 {
106 .eraseblocks = {
107 {64 * 1024, 3},
108 {32 * 1024, 1},
109 {8 * 1024, 2},
110 {16 * 1024, 1},
111 },
112 .block_erase = erase_sector_jedec,
113 }, {
114 .eraseblocks = { {256 * 1024, 1} },
115 .block_erase = erase_chip_block_jedec,
116 },
117 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000118 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000119 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000120 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000121 },
122
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 {
124 .vendor = "AMD",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000125 .name = "Am29F010",
126 .bustype = BUS_PARALLEL,
127 .manufacture_id = AMD_ID,
128 .model_id = AMD_AM29F010,
129 .total_size = 128,
130 .page_size = 16 * 1024,
131 .feature_bits = FEATURE_SHORT_RESET,
132 .tested = TEST_UNTESTED,
133 .probe = probe_jedec,
134 .probe_timing = TIMING_ZERO,
135 .block_erasers =
136 {
137 {
138 .eraseblocks = { {16 * 1024, 8} },
139 .block_erase = erase_sector_jedec,
140 }, {
141 .eraseblocks = { {128 * 1024, 1} },
142 .block_erase = erase_chip_block_jedec,
143 },
144 },
145 .write = write_jedec_1,
146 .read = read_memmapped,
147 .voltage = {4500, 5500},
148 },
149
150 {
151 .vendor = "AMD",
152 .name = "Am29F010A/B",
153 .bustype = BUS_PARALLEL,
154 .manufacture_id = AMD_ID,
155 .model_id = AMD_AM29F010,
156 .total_size = 128,
157 .page_size = 16 * 1024,
158 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Alan Greena4e579f2019-07-24 14:18:39 +1000159 .tested = TEST_OK_PRE,
Alan Green1f9cc7d2019-07-01 11:10:45 +1000160 .probe = probe_jedec,
161 .probe_timing = TIMING_ZERO,
162 .block_erasers =
163 {
164 {
165 .eraseblocks = { {16 * 1024, 8} },
166 .block_erase = erase_sector_jedec,
167 }, {
168 .eraseblocks = { {128 * 1024, 1} },
169 .block_erase = erase_chip_block_jedec,
170 },
171 },
172 .write = write_jedec_1,
173 .read = read_memmapped,
174 .voltage = {4500, 5500},
175 },
176
177 {
178 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000179 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000180 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000181 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000182 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000183 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000184 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000185 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000186 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000187 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000188 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000189 .block_erasers =
190 {
191 {
192 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000193 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000194 }, {
195 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000196 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000197 },
198 },
Sean Nelson35727f72010-01-28 23:55:12 +0000199 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000200 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000201 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000202 },
203
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000204 {
205 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000206 .name = "Am29F040",
207 .bustype = BUS_PARALLEL,
208 .manufacture_id = AMD_ID,
209 .model_id = AMD_AM29F040,
210 .total_size = 512,
211 .page_size = 64 * 1024,
212 .feature_bits = FEATURE_EITHER_RESET,
213 .tested = TEST_UNTESTED,
214 .probe = probe_jedec,
215 .probe_timing = TIMING_ZERO,
216 .block_erasers =
217 {
218 {
219 .eraseblocks = { {64 * 1024, 8} },
220 .block_erase = erase_sector_jedec,
221 }, {
222 .eraseblocks = { {512 * 1024, 1} },
223 .block_erase = erase_chip_block_jedec,
224 },
225 },
226 .write = write_jedec_1,
227 .read = read_memmapped,
228 .voltage = {4500, 5500},
229 },
230
231 {
232 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000233 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000234 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000235 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000236 .model_id = AMD_AM29F040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000237 .total_size = 512,
238 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000239 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
240 .tested = TEST_UNTESTED,
241 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000242 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000243 .block_erasers =
244 {
245 {
246 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000247 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000248 }, {
249 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000250 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000251 },
252 },
Sean Nelson35727f72010-01-28 23:55:12 +0000253 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000254 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000255 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000256 },
257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000258 {
259 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000260 .name = "Am29F080",
261 .bustype = BUS_PARALLEL,
262 .manufacture_id = AMD_ID,
263 .model_id = AMD_AM29F080,
264 .total_size = 1024,
265 .page_size = 64 * 1024,
266 .feature_bits = FEATURE_EITHER_RESET,
267 .tested = TEST_UNTESTED,
268 .probe = probe_jedec,
269 .probe_timing = TIMING_ZERO,
270 .block_erasers =
271 {
272 {
273 .eraseblocks = { {64 * 1024, 16} },
274 .block_erase = erase_sector_jedec,
275 }, {
276 .eraseblocks = { {1024 * 1024, 1} },
277 .block_erase = erase_chip_block_jedec,
278 },
279 },
280 .write = write_jedec_1,
281 .read = read_memmapped,
282 .voltage = {4500, 5500},
283 },
284
285 {
286 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000287 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000288 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000289 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000290 .model_id = AMD_AM29F080,
Peter Stuge8440cc02009-01-25 23:55:12 +0000291 .total_size = 1024,
292 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000293 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000294 .tested = TEST_UNTESTED,
295 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000296 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000297 .block_erasers =
298 {
299 {
300 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000301 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000302 }, {
303 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000304 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000305 },
306 },
Sean Nelson35727f72010-01-28 23:55:12 +0000307 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000308 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000309 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000310 },
311
312 {
313 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000314 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000315 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000316 .manufacture_id = AMD_ID,
317 .model_id = AMD_AM29LV001BB,
318 .total_size = 128,
319 .page_size = 64 * 1024, /* unused */
320 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
321 .tested = TEST_OK_PREW,
322 .probe = probe_jedec,
323 .probe_timing = TIMING_ZERO,
324 .block_erasers =
325 {
326 {
327 .eraseblocks = {
328 {8 * 1024, 1},
329 {4 * 1024, 2},
330 {16 * 1024, 7},
331 },
332 .block_erase = erase_sector_jedec,
333 }, {
334 .eraseblocks = { {128 * 1024, 1} },
335 .block_erase = erase_chip_block_jedec,
336 },
337 },
338 .write = write_jedec_1,
339 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000340 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000341 },
342
343 {
344 .vendor = "AMD",
345 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000346 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000347 .manufacture_id = AMD_ID,
348 .model_id = AMD_AM29LV001BT,
349 .total_size = 128,
350 .page_size = 64 * 1024, /* unused */
351 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
352 .tested = TEST_UNTESTED,
353 .probe = probe_jedec,
354 .probe_timing = TIMING_ZERO,
355 .block_erasers =
356 {
357 {
358 .eraseblocks = {
359 {16 * 1024, 7},
360 {4 * 1024, 2},
361 {8 * 1024, 1},
362 },
363 .block_erase = erase_sector_jedec,
364 }, {
365 .eraseblocks = { {128 * 1024, 1} },
366 .block_erase = erase_chip_block_jedec,
367 },
368 },
369 .write = write_jedec_1,
370 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000371 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000372 },
373
374 {
375 .vendor = "AMD",
376 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000377 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000378 .manufacture_id = AMD_ID,
379 .model_id = AMD_AM29LV002BB,
380 .total_size = 256,
381 .page_size = 64 * 1024, /* unused */
382 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
383 .tested = TEST_UNTESTED,
384 .probe = probe_jedec,
385 .probe_timing = TIMING_ZERO,
386 .block_erasers =
387 {
388 {
389 .eraseblocks = {
390 {16 * 1024, 1},
391 {8 * 1024, 2},
392 {32 * 1024, 1},
393 {64 * 1024, 3},
394 },
395 .block_erase = erase_sector_jedec,
396 }, {
397 .eraseblocks = { {256 * 1024, 1} },
398 .block_erase = erase_chip_block_jedec,
399 },
400 },
401 .write = write_jedec_1,
402 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000403 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000404 },
405
406 {
407 .vendor = "AMD",
408 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000409 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000410 .manufacture_id = AMD_ID,
411 .model_id = AMD_AM29LV002BT,
412 .total_size = 256,
413 .page_size = 64 * 1024, /* unused */
414 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
415 .tested = TEST_UNTESTED,
416 .probe = probe_jedec,
417 .probe_timing = TIMING_ZERO,
418 .block_erasers =
419 {
420 {
421 .eraseblocks = {
422 {64 * 1024, 3},
423 {32 * 1024, 1},
424 {8 * 1024, 2},
425 {16 * 1024, 1},
426 },
427 .block_erase = erase_sector_jedec,
428 }, {
429 .eraseblocks = { {256 * 1024, 1} },
430 .block_erase = erase_chip_block_jedec,
431 },
432 },
433 .write = write_jedec_1,
434 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000435 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000436 },
437
438 {
439 .vendor = "AMD",
440 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000441 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000442 .manufacture_id = AMD_ID,
443 .model_id = AMD_AM29LV004BB,
444 .total_size = 512,
445 .page_size = 64 * 1024, /* unused */
446 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
447 .tested = TEST_UNTESTED,
448 .probe = probe_jedec,
449 .probe_timing = TIMING_ZERO,
450 .block_erasers =
451 {
452 {
453 .eraseblocks = {
454 {16 * 1024, 1},
455 {8 * 1024, 2},
456 {32 * 1024, 1},
457 {64 * 1024, 7},
458 },
459 .block_erase = erase_sector_jedec,
460 }, {
461 .eraseblocks = { {512 * 1024, 1} },
462 .block_erase = erase_chip_block_jedec,
463 },
464 },
465 .write = write_jedec_1,
466 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000467 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000468 },
469
470 {
471 .vendor = "AMD",
472 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000473 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000474 .manufacture_id = AMD_ID,
475 .model_id = AMD_AM29LV004BT,
476 .total_size = 512,
477 .page_size = 64 * 1024, /* unused */
478 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
479 .tested = TEST_UNTESTED,
480 .probe = probe_jedec,
481 .probe_timing = TIMING_ZERO,
482 .block_erasers =
483 {
484 {
485 .eraseblocks = {
486 {64 * 1024, 7},
487 {32 * 1024, 1},
488 {8 * 1024, 2},
489 {16 * 1024, 1},
490 },
491 .block_erase = erase_sector_jedec,
492 }, {
493 .eraseblocks = { {512 * 1024, 1} },
494 .block_erase = erase_chip_block_jedec,
495 },
496 },
497 .write = write_jedec_1,
498 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000499 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000500 },
501
502 {
503 .vendor = "AMD",
504 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000505 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000506 .manufacture_id = AMD_ID,
507 .model_id = AMD_AM29LV008BB,
508 .total_size = 1024,
509 .page_size = 64 * 1024, /* unused */
510 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000511 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000512 .probe = probe_jedec,
513 .probe_timing = TIMING_ZERO,
514 .block_erasers =
515 {
516 {
517 .eraseblocks = {
518 {16 * 1024, 1},
519 {8 * 1024, 2},
520 {32 * 1024, 1},
521 {64 * 1024, 15},
522 },
523 .block_erase = erase_sector_jedec,
524 }, {
525 .eraseblocks = { {1024 * 1024, 1} },
526 .block_erase = erase_chip_block_jedec,
527 },
528 },
529 .write = write_jedec_1,
530 .read = read_memmapped,
Alan Greenf5ad6882019-06-27 12:09:13 +1000531 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000532 },
533
534 {
535 .vendor = "AMD",
536 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000537 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000538 .manufacture_id = AMD_ID,
539 .model_id = AMD_AM29LV008BT,
540 .total_size = 1024,
541 .page_size = 64 * 1024, /* unused */
542 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
543 .tested = TEST_UNTESTED,
544 .probe = probe_jedec,
545 .probe_timing = TIMING_ZERO,
546 .block_erasers =
547 {
548 {
549 .eraseblocks = {
550 {64 * 1024, 15},
551 {32 * 1024, 1},
552 {8 * 1024, 2},
553 {16 * 1024, 1},
554 },
555 .block_erase = erase_sector_jedec,
556 }, {
557 .eraseblocks = { {1024 * 1024, 1} },
558 .block_erase = erase_chip_block_jedec,
559 },
560 },
561 .write = write_jedec_1,
562 .read = read_memmapped,
Alan Greenf5ad6882019-06-27 12:09:13 +1000563 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000564 },
565
566 {
567 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000568 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000569 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000570 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000571 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000572 .total_size = 512,
573 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000574 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000575 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000576 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000577 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000578 .block_erasers =
579 {
580 {
581 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000582 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000583 }, {
584 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000585 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000586 },
587 },
Sean Nelson35727f72010-01-28 23:55:12 +0000588 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000589 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000590 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000591 },
592
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000593 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000594 .vendor = "AMD",
595 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000596 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000597 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000598 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000599 .total_size = 1024,
600 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000601 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000602 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000603 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000604 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000605 .block_erasers =
606 {
607 {
608 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000609 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000610 }, {
611 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000612 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000613 },
614 },
Sean Nelson35727f72010-01-28 23:55:12 +0000615 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000616 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000617 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000618 },
619
620 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000621 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000622 .name = "A25L010",
623 .bustype = BUS_SPI,
624 .manufacture_id = AMIC_ID_NOPREFIX,
625 .model_id = AMIC_A25L010,
626 .total_size = 128,
627 .page_size = 256,
628 .feature_bits = FEATURE_WRSR_WREN,
629 .tested = TEST_UNTESTED,
630 .probe = probe_spi_rdid,
631 .probe_timing = TIMING_ZERO,
632 .block_erasers =
633 {
634 {
635 .eraseblocks = { { 4 * 1024, 32 } },
636 .block_erase = spi_block_erase_20,
637 }, {
638 .eraseblocks = { { 64 * 1024, 2 } },
639 .block_erase = spi_block_erase_d8,
640 }, {
641 .eraseblocks = { { 128 * 1024, 1 } },
642 .block_erase = spi_block_erase_c7,
643 }
644 },
645 .printlock = spi_prettyprint_status_register_bp2_srwd,
646 .unlock = spi_disable_blockprotect,
647 .write = spi_chip_write_256,
648 .read = spi_chip_read,
649 .voltage = {2700, 3600},
650 },
651
652 {
653 .vendor = "AMIC",
654 .name = "A25L016",
655 .bustype = BUS_SPI,
656 .manufacture_id = AMIC_ID_NOPREFIX,
657 .model_id = AMIC_A25L016,
658 .total_size = 2048,
659 .page_size = 256,
660 .feature_bits = FEATURE_WRSR_WREN,
661 .tested = TEST_UNTESTED,
662 .probe = probe_spi_rdid,
663 .probe_timing = TIMING_ZERO,
664 .block_erasers =
665 {
666 {
667 .eraseblocks = { { 4 * 1024, 512 } },
668 .block_erase = spi_block_erase_20,
669 }, {
670 .eraseblocks = { { 64 * 1024, 32 } },
671 .block_erase = spi_block_erase_d8,
672 }, {
673 .eraseblocks = { { 2048 * 1024, 1 } },
674 .block_erase = spi_block_erase_c7,
675 }
676 },
677 .printlock = spi_prettyprint_status_register_bp2_srwd,
678 .unlock = spi_disable_blockprotect,
679 .write = spi_chip_write_256,
680 .read = spi_chip_read,
681 .voltage = {2700, 3600},
682 },
683
684 {
685 .vendor = "AMIC",
686 .name = "A25L020",
687 .bustype = BUS_SPI,
688 .manufacture_id = AMIC_ID_NOPREFIX,
689 .model_id = AMIC_A25L020,
690 .total_size = 256,
691 .page_size = 256,
692 .feature_bits = FEATURE_WRSR_WREN,
693 .tested = TEST_UNTESTED,
694 .probe = probe_spi_rdid,
695 .probe_timing = TIMING_ZERO,
696 .block_erasers =
697 {
698 {
699 .eraseblocks = { { 4 * 1024, 64 } },
700 .block_erase = spi_block_erase_20,
701 }, {
702 .eraseblocks = { { 64 * 1024, 4 } },
703 .block_erase = spi_block_erase_d8,
704 }, {
705 .eraseblocks = { { 256 * 1024, 1 } },
706 .block_erase = spi_block_erase_c7,
707 }
708 },
709 .printlock = spi_prettyprint_status_register_bp2_srwd,
710 .unlock = spi_disable_blockprotect,
711 .write = spi_chip_write_256,
712 .read = spi_chip_read,
713 .voltage = {2700, 3600},
714 },
715
716 {
717 .vendor = "AMIC",
718 .name = "A25L032",
719 .bustype = BUS_SPI,
720 .manufacture_id = AMIC_ID_NOPREFIX,
721 .model_id = AMIC_A25L032,
722 .total_size = 4096,
723 .page_size = 256,
724 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
725 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
726 .tested = TEST_OK_PREW,
727 .probe = probe_spi_rdid,
728 .probe_timing = TIMING_ZERO,
729 .block_erasers =
730 {
731 {
732 .eraseblocks = { { 4 * 1024, 1024 } },
733 .block_erase = spi_block_erase_20,
734 }, {
735 .eraseblocks = { { 64 * 1024, 64 } },
736 .block_erase = spi_block_erase_52,
737 }, {
738 .eraseblocks = { { 64 * 1024, 64 } },
739 .block_erase = spi_block_erase_d8,
740 }, {
741 .eraseblocks = { { 4096 * 1024, 1 } },
742 .block_erase = spi_block_erase_60,
743 }, {
744 .eraseblocks = { { 4096 * 1024, 1 } },
745 .block_erase = spi_block_erase_c7,
746 }
747 },
748 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
749 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
750 .write = spi_chip_write_256,
751 .read = spi_chip_read,
752 .voltage = {2700, 3600},
753 },
754
755 {
756 .vendor = "AMIC",
757 .name = "A25L040",
758 .bustype = BUS_SPI,
759 .manufacture_id = AMIC_ID_NOPREFIX,
760 .model_id = AMIC_A25L040,
761 .total_size = 512,
762 .page_size = 256,
763 .feature_bits = FEATURE_WRSR_WREN,
764 .tested = TEST_UNTESTED,
765 .probe = probe_spi_rdid,
766 .probe_timing = TIMING_ZERO,
767 .block_erasers =
768 {
769 {
770 .eraseblocks = { { 4 * 1024, 128 } },
771 .block_erase = spi_block_erase_20,
772 }, {
773 .eraseblocks = { { 64 * 1024, 8 } },
774 .block_erase = spi_block_erase_d8,
775 }, {
776 .eraseblocks = { { 512 * 1024, 1 } },
777 .block_erase = spi_block_erase_c7,
778 }
779 },
780 .printlock = spi_prettyprint_status_register_bp2_srwd,
781 .unlock = spi_disable_blockprotect,
782 .write = spi_chip_write_256,
783 .read = spi_chip_read,
784 .voltage = {2700, 3600},
785 },
786
787 {
788 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000789 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000790 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000791 .manufacture_id = AMIC_ID,
792 .model_id = AMIC_A25L05PT,
793 .total_size = 64,
794 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000795 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000796 .tested = TEST_UNTESTED,
797 .probe = probe_spi_rdid4,
798 .probe_timing = TIMING_ZERO,
799 .block_erasers =
800 {
801 {
802 .eraseblocks = {
803 {32 * 1024, 1},
804 {16 * 1024, 1},
805 {8 * 1024, 1},
806 {4 * 1024, 2},
807 },
808 .block_erase = spi_block_erase_d8,
809 }, {
810 .eraseblocks = { {64 * 1024, 1} },
811 .block_erase = spi_block_erase_c7,
812 }
813 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000814 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000815 .unlock = spi_disable_blockprotect,
816 .write = spi_chip_write_256,
817 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000818 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000819 },
820
821 {
822 .vendor = "AMIC",
823 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000824 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000825 .manufacture_id = AMIC_ID,
826 .model_id = AMIC_A25L05PU,
827 .total_size = 64,
828 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000829 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000830 .tested = TEST_UNTESTED,
831 .probe = probe_spi_rdid4,
832 .probe_timing = TIMING_ZERO,
833 .block_erasers =
834 {
835 {
836 .eraseblocks = {
837 {4 * 1024, 2},
838 {8 * 1024, 1},
839 {16 * 1024, 1},
840 {32 * 1024, 1},
841 },
842 .block_erase = spi_block_erase_d8,
843 }, {
844 .eraseblocks = { {64 * 1024, 1} },
845 .block_erase = spi_block_erase_c7,
846 }
847 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000848 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000849 .unlock = spi_disable_blockprotect,
850 .write = spi_chip_write_256,
851 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000852 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000853 },
854
855 {
856 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000857 .name = "A25L080",
858 .bustype = BUS_SPI,
859 .manufacture_id = AMIC_ID_NOPREFIX,
860 .model_id = AMIC_A25L080,
861 .total_size = 1024,
862 .page_size = 256,
863 .feature_bits = FEATURE_WRSR_WREN,
864 .tested = TEST_UNTESTED,
865 .probe = probe_spi_rdid,
866 .probe_timing = TIMING_ZERO,
867 .block_erasers =
868 {
869 {
870 .eraseblocks = { { 4 * 1024, 256 } },
871 .block_erase = spi_block_erase_20,
872 }, {
873 .eraseblocks = { { 64 * 1024, 16 } },
874 .block_erase = spi_block_erase_d8,
875 }, {
876 .eraseblocks = { { 1024 * 1024, 1 } },
877 .block_erase = spi_block_erase_c7,
878 }
879 },
880 .printlock = spi_prettyprint_status_register_bp2_srwd,
881 .unlock = spi_disable_blockprotect,
882 .write = spi_chip_write_256,
883 .read = spi_chip_read,
884 .voltage = {2700, 3600},
885 },
886
887 {
888 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000889 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000890 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000891 .manufacture_id = AMIC_ID,
892 .model_id = AMIC_A25L10PT,
893 .total_size = 128,
894 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000895 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000896 .tested = TEST_UNTESTED,
897 .probe = probe_spi_rdid4,
898 .probe_timing = TIMING_ZERO,
899 .block_erasers =
900 {
901 {
902 .eraseblocks = {
903 {64 * 1024, 1},
904 {32 * 1024, 1},
905 {16 * 1024, 1},
906 {8 * 1024, 1},
907 {4 * 1024, 2},
908 },
909 .block_erase = spi_block_erase_d8,
910 }, {
911 .eraseblocks = { {128 * 1024, 1} },
912 .block_erase = spi_block_erase_c7,
913 }
914 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000915 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000916 .unlock = spi_disable_blockprotect,
917 .write = spi_chip_write_256,
918 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000919 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000920 },
921
922 {
923 .vendor = "AMIC",
924 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000925 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000926 .manufacture_id = AMIC_ID,
927 .model_id = AMIC_A25L10PU,
928 .total_size = 128,
929 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000930 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000931 .tested = TEST_UNTESTED,
932 .probe = probe_spi_rdid4,
933 .probe_timing = TIMING_ZERO,
934 .block_erasers =
935 {
936 {
937 .eraseblocks = {
938 {4 * 1024, 2},
939 {8 * 1024, 1},
940 {16 * 1024, 1},
941 {32 * 1024, 1},
942 {64 * 1024, 1},
943 },
944 .block_erase = spi_block_erase_d8,
945 }, {
946 .eraseblocks = { {128 * 1024, 1} },
947 .block_erase = spi_block_erase_c7,
948 }
949 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000950 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000951 .unlock = spi_disable_blockprotect,
952 .write = spi_chip_write_256,
953 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000954 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000955 },
956
957 {
958 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000959 .name = "A25L16PT",
960 .bustype = BUS_SPI,
961 .manufacture_id = AMIC_ID,
962 .model_id = AMIC_A25L16PT,
963 .total_size = 2048,
964 .page_size = 256,
965 .feature_bits = FEATURE_WRSR_WREN,
966 .tested = TEST_UNTESTED,
967 .probe = probe_spi_rdid4,
968 .probe_timing = TIMING_ZERO,
969 .block_erasers =
970 {
971 {
972 .eraseblocks = {
973 {64 * 1024, 31},
974 {32 * 1024, 1},
975 {16 * 1024, 1},
976 {8 * 1024, 1},
977 {4 * 1024, 2},
978 },
979 .block_erase = spi_block_erase_d8,
980 }, {
981 .eraseblocks = { {2048 * 1024, 1} },
982 .block_erase = spi_block_erase_60,
983 }, {
984 .eraseblocks = { {2048 * 1024, 1} },
985 .block_erase = spi_block_erase_c7,
986 }
987 },
988 .printlock = spi_prettyprint_status_register_bp2_srwd,
989 .unlock = spi_disable_blockprotect,
990 .write = spi_chip_write_256,
991 .read = spi_chip_read,
992 .voltage = {2700, 3600},
993 },
994
995 {
996 .vendor = "AMIC",
997 .name = "A25L16PU",
998 .bustype = BUS_SPI,
999 .manufacture_id = AMIC_ID,
1000 .model_id = AMIC_A25L16PU,
1001 .total_size = 2048,
1002 .page_size = 256,
1003 .feature_bits = FEATURE_WRSR_WREN,
1004 .tested = TEST_OK_PR,
1005 .probe = probe_spi_rdid4,
1006 .probe_timing = TIMING_ZERO,
1007 .block_erasers =
1008 {
1009 {
1010 .eraseblocks = {
1011 {4 * 1024, 2},
1012 {8 * 1024, 1},
1013 {16 * 1024, 1},
1014 {32 * 1024, 1},
1015 {64 * 1024, 31},
1016 },
1017 .block_erase = spi_block_erase_d8,
1018 }, {
1019 .eraseblocks = { {2048 * 1024, 1} },
1020 .block_erase = spi_block_erase_60,
1021 }, {
1022 .eraseblocks = { {2048 * 1024, 1} },
1023 .block_erase = spi_block_erase_c7,
1024 }
1025 },
1026 .printlock = spi_prettyprint_status_register_bp2_srwd,
1027 .unlock = spi_disable_blockprotect,
1028 .write = spi_chip_write_256,
1029 .read = spi_chip_read,
1030 .voltage = {2700, 3600},
1031 },
1032
1033 {
1034 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001035 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001036 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001037 .manufacture_id = AMIC_ID,
1038 .model_id = AMIC_A25L20PT,
1039 .total_size = 256,
1040 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001041 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001042 .tested = TEST_UNTESTED,
1043 .probe = probe_spi_rdid4,
1044 .probe_timing = TIMING_ZERO,
1045 .block_erasers =
1046 {
1047 {
1048 .eraseblocks = {
1049 {64 * 1024, 3},
1050 {32 * 1024, 1},
1051 {16 * 1024, 1},
1052 {8 * 1024, 1},
1053 {4 * 1024, 2},
1054 },
1055 .block_erase = spi_block_erase_d8,
1056 }, {
1057 .eraseblocks = { {256 * 1024, 1} },
1058 .block_erase = spi_block_erase_c7,
1059 }
1060 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001061 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001062 .unlock = spi_disable_blockprotect,
1063 .write = spi_chip_write_256,
1064 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001065 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001066 },
1067
1068 {
1069 .vendor = "AMIC",
1070 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001071 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001072 .manufacture_id = AMIC_ID,
1073 .model_id = AMIC_A25L20PU,
1074 .total_size = 256,
1075 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001076 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001077 .tested = TEST_UNTESTED,
1078 .probe = probe_spi_rdid4,
1079 .probe_timing = TIMING_ZERO,
1080 .block_erasers =
1081 {
1082 {
1083 .eraseblocks = {
1084 {4 * 1024, 2},
1085 {8 * 1024, 1},
1086 {16 * 1024, 1},
1087 {32 * 1024, 1},
1088 {64 * 1024, 3},
1089 },
1090 .block_erase = spi_block_erase_d8,
1091 }, {
1092 .eraseblocks = { {256 * 1024, 1} },
1093 .block_erase = spi_block_erase_c7,
1094 }
1095 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001096 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001097 .unlock = spi_disable_blockprotect,
1098 .write = spi_chip_write_256,
1099 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001100 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001101 },
1102
1103 /* The A25L40P{T,U} chips are distinguished by their
1104 * erase block layouts, but without any distinction in RDID.
1105 * This inexplicable quirk was verified by Rudolf Marek
1106 * and discussed on the flashrom mailing list on 2010-07-12.
1107 */
1108 {
1109 .vendor = "AMIC",
1110 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001111 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001112 .manufacture_id = AMIC_ID,
1113 .model_id = AMIC_A25L40PT,
1114 .total_size = 512,
1115 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001116 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001117 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001118 .probe = probe_spi_rdid4,
1119 .probe_timing = TIMING_ZERO,
1120 .block_erasers =
1121 {
1122 {
1123 .eraseblocks = {
1124 {64 * 1024, 7},
1125 {32 * 1024, 1},
1126 {16 * 1024, 1},
1127 {8 * 1024, 1},
1128 {4 * 1024, 2},
1129 },
1130 .block_erase = spi_block_erase_d8,
1131 }, {
1132 .eraseblocks = { {512 * 1024, 1} },
1133 .block_erase = spi_block_erase_c7,
1134 }
1135 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001136 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001137 .unlock = spi_disable_blockprotect,
1138 .write = spi_chip_write_256,
1139 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001140 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001141 },
1142
1143 {
1144 .vendor = "AMIC",
1145 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001146 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001147 .manufacture_id = AMIC_ID,
1148 .model_id = AMIC_A25L40PU,
1149 .total_size = 512,
1150 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001151 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons6f088352018-09-30 19:59:42 +02001152 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001153 .probe = probe_spi_rdid4,
1154 .probe_timing = TIMING_ZERO,
1155 .block_erasers =
1156 {
1157 {
1158 .eraseblocks = {
1159 {4 * 1024, 2},
1160 {8 * 1024, 1},
1161 {16 * 1024, 1},
1162 {32 * 1024, 1},
1163 {64 * 1024, 7},
1164 },
1165 .block_erase = spi_block_erase_d8,
1166 }, {
1167 .eraseblocks = { {512 * 1024, 1} },
1168 .block_erase = spi_block_erase_c7,
1169 }
1170 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001171 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001172 .unlock = spi_disable_blockprotect,
1173 .write = spi_chip_write_256,
1174 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001175 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001176 },
1177
1178 {
1179 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001180 .name = "A25L512",
1181 .bustype = BUS_SPI,
1182 .manufacture_id = AMIC_ID_NOPREFIX,
1183 .model_id = AMIC_A25L512,
1184 .total_size = 64,
1185 .page_size = 256,
1186 .feature_bits = FEATURE_WRSR_WREN,
1187 .tested = TEST_UNTESTED,
1188 .probe = probe_spi_rdid,
1189 .probe_timing = TIMING_ZERO,
1190 .block_erasers =
1191 {
1192 {
1193 .eraseblocks = { { 4 * 1024, 16 } },
1194 .block_erase = spi_block_erase_20,
1195 }, {
1196 .eraseblocks = { { 64 * 1024, 1 } },
1197 .block_erase = spi_block_erase_d8,
1198 }, {
1199 .eraseblocks = { { 64 * 1024, 1 } },
1200 .block_erase = spi_block_erase_c7,
1201 }
1202 },
1203 .printlock = spi_prettyprint_status_register_bp2_srwd,
1204 .unlock = spi_disable_blockprotect,
1205 .write = spi_chip_write_256,
1206 .read = spi_chip_read,
1207 .voltage = {2700, 3600},
1208 },
1209
1210 {
1211 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001212 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001213 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001214 .manufacture_id = AMIC_ID,
1215 .model_id = AMIC_A25L80P,
1216 .total_size = 1024,
1217 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001218 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001219 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001220 .probe = probe_spi_rdid4,
1221 .probe_timing = TIMING_ZERO,
1222 .block_erasers =
1223 {
1224 {
1225 .eraseblocks = {
1226 {4 * 1024, 2},
1227 {8 * 1024, 1},
1228 {16 * 1024, 1},
1229 {32 * 1024, 1},
1230 {64 * 1024, 15},
1231 },
1232 .block_erase = spi_block_erase_d8,
1233 }, {
1234 .eraseblocks = { {1024 * 1024, 1} },
1235 .block_erase = spi_block_erase_c7,
1236 }
1237 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001238 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001239 .unlock = spi_disable_blockprotect,
1240 .write = spi_chip_write_256,
1241 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001242 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001243 },
1244
1245 {
1246 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001247 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001248 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001249 .manufacture_id = AMIC_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001250 .model_id = AMIC_A25LQ032,
Dan Lenski11617122010-07-29 15:00:40 +00001251 .total_size = 4096,
1252 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001253 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001254 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1255 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001256 .tested = TEST_UNTESTED,
Dan Lenski11617122010-07-29 15:00:40 +00001257 .probe = probe_spi_rdid,
1258 .probe_timing = TIMING_ZERO,
1259 .block_erasers =
1260 {
1261 {
1262 .eraseblocks = { { 4 * 1024, 1024 } },
1263 .block_erase = spi_block_erase_20,
1264 }, {
1265 .eraseblocks = { { 64 * 1024, 64 } },
1266 .block_erase = spi_block_erase_52,
1267 }, {
1268 .eraseblocks = { { 64 * 1024, 64 } },
1269 .block_erase = spi_block_erase_d8,
1270 }, {
1271 .eraseblocks = { { 4096 * 1024, 1 } },
1272 .block_erase = spi_block_erase_60,
1273 }, {
1274 .eraseblocks = { { 4096 * 1024, 1 } },
1275 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001276 }
Dan Lenski11617122010-07-29 15:00:40 +00001277 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001278 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1279 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001280 .write = spi_chip_write_256,
1281 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001282 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001283 },
1284
1285 {
1286 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001287 .name = "A25LQ16",
1288 .bustype = BUS_SPI,
1289 .manufacture_id = AMIC_ID_NOPREFIX,
1290 .model_id = AMIC_A25LQ16,
1291 .total_size = 2048,
1292 .page_size = 256,
1293 /* supports SFDP */
1294 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1295 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1296 .tested = TEST_UNTESTED,
1297 .probe = probe_spi_rdid,
1298 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10001299 .block_erasers =
1300 {
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001301 {
1302 .eraseblocks = { { 4 * 1024, 512 } },
1303 .block_erase = spi_block_erase_20,
1304 }, {
1305 .eraseblocks = { { 64 * 1024, 32 } },
1306 .block_erase = spi_block_erase_52,
1307 }, {
1308 .eraseblocks = { { 64 * 1024, 32 } },
1309 .block_erase = spi_block_erase_d8,
1310 }, {
1311 .eraseblocks = { { 2048 * 1024, 1 } },
1312 .block_erase = spi_block_erase_60,
1313 }, {
1314 .eraseblocks = { { 2048 * 1024, 1 } },
1315 .block_erase = spi_block_erase_c7,
1316 }
1317 },
1318 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1319 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1320 .write = spi_chip_write_256,
1321 .read = spi_chip_read,
1322 .voltage = {2700, 3600},
1323 },
1324
1325 {
1326 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001327 .name = "A25LQ64",
1328 .bustype = BUS_SPI,
1329 .manufacture_id = AMIC_ID_NOPREFIX,
Stefan Tauner23e10b82016-01-23 16:16:49 +00001330 .model_id = AMIC_A25LQ64,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001331 .total_size = 8192,
1332 .page_size = 256,
1333 /* supports SFDP */
1334 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
1335 /* QPI enable 0x35, disable 0xF5 */
1336 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
1337 .tested = TEST_UNTESTED,
1338 .probe = probe_spi_rdid,
1339 .probe_timing = TIMING_ZERO,
1340 .block_erasers =
1341 {
1342 {
1343 .eraseblocks = { { 4 * 1024, 2048 } },
1344 .block_erase = spi_block_erase_20,
1345 }, {
1346 .eraseblocks = { { 32 * 1024, 256 } },
1347 .block_erase = spi_block_erase_52,
1348 }, {
1349 .eraseblocks = { { 64 * 1024, 128 } },
1350 .block_erase = spi_block_erase_d8,
1351 }, {
1352 .eraseblocks = { { 8192 * 1024, 1 } },
1353 .block_erase = spi_block_erase_60,
1354 }, {
1355 .eraseblocks = { { 8192 * 1024, 1 } },
1356 .block_erase = spi_block_erase_c7,
1357 }
1358 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001359 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */
Stefan Tauner5c316f92015-02-08 21:57:52 +00001360 .unlock = spi_disable_blockprotect_bp3_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001361 .write = spi_chip_write_256,
1362 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001363 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001364 },
1365
1366 {
1367 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001368 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001369 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001370 .manufacture_id = AMIC_ID_NOPREFIX,
1371 .model_id = AMIC_A29002B,
1372 .total_size = 256,
1373 .page_size = 64 * 1024,
1374 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1375 .tested = TEST_UNTESTED,
1376 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001377 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001378 .block_erasers =
1379 {
1380 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001381 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001382 {16 * 1024, 1},
1383 {8 * 1024, 2},
1384 {32 * 1024, 1},
1385 {64 * 1024, 3},
1386 },
1387 .block_erase = erase_sector_jedec,
1388 }, {
1389 .eraseblocks = { {256 * 1024, 1} },
1390 .block_erase = erase_chip_block_jedec,
1391 },
1392 },
1393 .write = write_jedec_1,
1394 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001395 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001396 },
1397
1398 {
1399 .vendor = "AMIC",
1400 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001401 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001402 .manufacture_id = AMIC_ID_NOPREFIX,
1403 .model_id = AMIC_A29002T,
1404 .total_size = 256,
1405 .page_size = 64 * 1024,
1406 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001407 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001408 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001409 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001410 .block_erasers =
1411 {
1412 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001413 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001414 {64 * 1024, 3},
1415 {32 * 1024, 1},
1416 {8 * 1024, 2},
1417 {16 * 1024, 1},
1418 },
1419 .block_erase = erase_sector_jedec,
1420 }, {
1421 .eraseblocks = { {256 * 1024, 1} },
1422 .block_erase = erase_chip_block_jedec,
1423 },
1424 },
1425 .write = write_jedec_1,
1426 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001427 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001428 },
1429
1430 {
1431 .vendor = "AMIC",
1432 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001433 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001434 .manufacture_id = AMIC_ID_NOPREFIX,
1435 .model_id = AMIC_A29040B,
1436 .total_size = 512,
1437 .page_size = 64 * 1024,
1438 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Corey Osgoodcbd56652013-09-10 10:42:48 +00001439 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001440 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001441 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001442 .block_erasers =
1443 {
1444 {
1445 .eraseblocks = { {64 * 1024, 8} },
1446 .block_erase = erase_sector_jedec,
1447 }, {
1448 .eraseblocks = { {512 * 1024, 1} },
1449 .block_erase = erase_chip_block_jedec,
1450 },
1451 },
1452 .write = write_jedec_1,
1453 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001454 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001455 },
1456
1457 {
1458 .vendor = "AMIC",
1459 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001460 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001461 .manufacture_id = AMIC_ID_NOPREFIX,
1462 .model_id = AMIC_A49LF040A,
1463 .total_size = 512,
1464 .page_size = 64 * 1024,
1465 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001466 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001467 .probe = probe_jedec,
1468 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1469 .block_erasers =
1470 {
1471 {
1472 .eraseblocks = { {64 * 1024, 8} },
1473 .block_erase = erase_block_jedec,
1474 }, {
1475 .eraseblocks = { {512 * 1024, 1} },
1476 .block_erase = erase_chip_block_jedec,
1477 }
1478 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001479 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001480 .write = write_jedec_1,
1481 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001482 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001483 },
1484
1485 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001486 .vendor = "Atmel",
1487 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001488 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001489 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001490 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001491 .total_size = 256,
1492 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001493 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1494 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001495 .tested = TEST_UNTESTED,
1496 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001497 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001498 .block_erasers =
1499 {
1500 {
1501 .eraseblocks = { {4 * 1024, 64} },
1502 .block_erase = spi_block_erase_20,
1503 }, {
1504 .eraseblocks = { {32 * 1024, 8} },
1505 .block_erase = spi_block_erase_52,
1506 }, {
1507 .eraseblocks = { {64 * 1024, 4} },
1508 .block_erase = spi_block_erase_d8,
1509 }, {
1510 .eraseblocks = { {256 * 1024, 1} },
1511 .block_erase = spi_block_erase_60,
1512 }, {
1513 .eraseblocks = { {256 * 1024, 1} },
1514 .block_erase = spi_block_erase_c7,
1515 }
1516 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001517 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001518 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001519 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001520 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001521 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001522 },
1523
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001524 {
1525 .vendor = "Atmel",
Steffen Mauch0b59b0d2018-06-02 23:46:03 +02001526 .name = "AT25DF021A",
1527 .bustype = BUS_SPI,
1528 .manufacture_id = ATMEL_ID,
1529 .model_id = ATMEL_AT25DF021A,
1530 .total_size = 256,
1531 .page_size = 256,
1532 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1533 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1534 .tested = TEST_OK_PREW,
1535 .probe = probe_spi_rdid,
1536 .probe_timing = TIMING_ZERO,
1537 .block_erasers =
1538 {
1539 {
1540 .eraseblocks = { {4 * 1024, 64} },
1541 .block_erase = spi_block_erase_20,
1542 }, {
1543 .eraseblocks = { {32 * 1024, 8} },
1544 .block_erase = spi_block_erase_52,
1545 }, {
1546 .eraseblocks = { {64 * 1024, 4} },
1547 .block_erase = spi_block_erase_d8,
1548 }, {
1549 .eraseblocks = { {256 * 1024, 1} },
1550 .block_erase = spi_block_erase_60,
1551 }, {
1552 .eraseblocks = { {256 * 1024, 1} },
1553 .block_erase = spi_block_erase_c7,
1554 }
1555 },
1556 .printlock = spi_prettyprint_status_register_at25df,
1557 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
1558 .write = spi_chip_write_256,
1559 .read = spi_chip_read,
1560 .voltage = {1650, 3600},
1561 },
1562
1563 {
1564 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001565 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001566 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001567 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001568 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001569 .total_size = 512,
1570 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001571 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00001572 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001573 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001574 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001575 .block_erasers =
1576 {
1577 {
1578 .eraseblocks = { {4 * 1024, 128} },
1579 .block_erase = spi_block_erase_20,
1580 }, {
1581 .eraseblocks = { {32 * 1024, 16} },
1582 .block_erase = spi_block_erase_52,
1583 }, {
1584 .eraseblocks = { {64 * 1024, 8} },
1585 .block_erase = spi_block_erase_d8,
1586 }, {
1587 .eraseblocks = { {512 * 1024, 1} },
1588 .block_erase = spi_block_erase_60,
1589 }, {
1590 .eraseblocks = { {512 * 1024, 1} },
1591 .block_erase = spi_block_erase_c7,
1592 }
1593 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001594 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001595 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001596 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001597 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001598 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001599 },
1600
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001601 {
1602 .vendor = "Atmel",
1603 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001604 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001605 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001606 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001607 .total_size = 1024,
1608 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001609 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001610 .tested = TEST_UNTESTED,
1611 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001612 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001613 .block_erasers =
1614 {
1615 {
1616 .eraseblocks = { {4 * 1024, 256} },
1617 .block_erase = spi_block_erase_20,
1618 }, {
1619 .eraseblocks = { {32 * 1024, 32} },
1620 .block_erase = spi_block_erase_52,
1621 }, {
1622 .eraseblocks = { {64 * 1024, 16} },
1623 .block_erase = spi_block_erase_d8,
1624 }, {
1625 .eraseblocks = { {1024 * 1024, 1} },
1626 .block_erase = spi_block_erase_60,
1627 }, {
1628 .eraseblocks = { {1024 * 1024, 1} },
1629 .block_erase = spi_block_erase_c7,
1630 }
1631 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001632 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001633 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001634 .write = spi_chip_write_256,
1635 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001636 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001637 },
1638
1639 {
1640 .vendor = "Atmel",
1641 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001642 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001643 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001644 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001645 .total_size = 1024,
1646 .page_size = 256,
1647 .feature_bits = FEATURE_WRSR_WREN,
1648 .tested = TEST_UNTESTED,
1649 .probe = probe_spi_rdid,
1650 .probe_timing = TIMING_ZERO,
1651 .block_erasers =
1652 {
1653 {
1654 .eraseblocks = { {4 * 1024, 256} },
1655 .block_erase = spi_block_erase_20,
1656 }, {
1657 .eraseblocks = { {32 * 1024, 32} },
1658 .block_erase = spi_block_erase_52,
1659 }, {
1660 .eraseblocks = { {64 * 1024, 16} },
1661 .block_erase = spi_block_erase_d8,
1662 }, {
1663 .eraseblocks = { {1024 * 1024, 1} },
1664 .block_erase = spi_block_erase_60,
1665 }, {
1666 .eraseblocks = { {1024 * 1024, 1} },
1667 .block_erase = spi_block_erase_c7,
1668 }
1669 },
1670 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001671 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001672 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001673 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001674 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001675 },
1676
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001677 {
1678 .vendor = "Atmel",
1679 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001680 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001681 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001682 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001683 .total_size = 2048,
1684 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001685 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons8b5b9622018-09-30 19:13:15 +02001686 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001687 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001688 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001689 .block_erasers =
1690 {
1691 {
1692 .eraseblocks = { {4 * 1024, 512} },
1693 .block_erase = spi_block_erase_20,
1694 }, {
1695 .eraseblocks = { {32 * 1024, 64} },
1696 .block_erase = spi_block_erase_52,
1697 }, {
1698 .eraseblocks = { {64 * 1024, 32} },
1699 .block_erase = spi_block_erase_d8,
1700 }, {
1701 .eraseblocks = { {2 * 1024 * 1024, 1} },
1702 .block_erase = spi_block_erase_60,
1703 }, {
1704 .eraseblocks = { {2 * 1024 * 1024, 1} },
1705 .block_erase = spi_block_erase_c7,
1706 }
1707 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001708 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001709 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001710 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001711 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001712 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001713 },
1714
Alan Green86bf6ab2019-06-27 16:58:20 +10001715 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001716 {
1717 .vendor = "Atmel",
1718 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001719 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001720 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001721 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001722 .total_size = 4096,
1723 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001724 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001725 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001726 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001727 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001728 .block_erasers =
1729 {
1730 {
1731 .eraseblocks = { {4 * 1024, 1024} },
1732 .block_erase = spi_block_erase_20,
1733 }, {
1734 .eraseblocks = { {32 * 1024, 128} },
1735 .block_erase = spi_block_erase_52,
1736 }, {
1737 .eraseblocks = { {64 * 1024, 64} },
1738 .block_erase = spi_block_erase_d8,
1739 }, {
1740 .eraseblocks = { {4 * 1024 * 1024, 1} },
1741 .block_erase = spi_block_erase_60,
1742 }, {
1743 .eraseblocks = { {4 * 1024 * 1024, 1} },
1744 .block_erase = spi_block_erase_c7,
1745 }
1746 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001747 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001748 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001749 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001750 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001751 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001752 },
1753
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001754 {
1755 .vendor = "Atmel",
1756 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001757 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001758 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001759 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001760 .total_size = 4096,
1761 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001762 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1763 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001764 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001765 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001766 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001767 .block_erasers =
1768 {
1769 {
1770 .eraseblocks = { {4 * 1024, 1024} },
1771 .block_erase = spi_block_erase_20,
1772 }, {
1773 .eraseblocks = { {32 * 1024, 128} },
1774 .block_erase = spi_block_erase_52,
1775 }, {
1776 .eraseblocks = { {64 * 1024, 64} },
1777 .block_erase = spi_block_erase_d8,
1778 }, {
1779 .eraseblocks = { {4 * 1024 * 1024, 1} },
1780 .block_erase = spi_block_erase_60,
1781 }, {
1782 .eraseblocks = { {4 * 1024 * 1024, 1} },
1783 .block_erase = spi_block_erase_c7,
1784 }
1785 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001786 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001787 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001788 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001789 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001790 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001791 },
1792
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001793 {
1794 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001795 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001796 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001797 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001798 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001799 .total_size = 8192,
1800 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001801 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001802 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001803 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001804 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001805 .block_erasers =
1806 {
1807 {
1808 .eraseblocks = { {4 * 1024, 2048} },
1809 .block_erase = spi_block_erase_20,
1810 }, {
1811 .eraseblocks = { {32 * 1024, 256} },
1812 .block_erase = spi_block_erase_52,
1813 }, {
1814 .eraseblocks = { {64 * 1024, 128} },
1815 .block_erase = spi_block_erase_d8,
1816 }, {
1817 .eraseblocks = { {8 * 1024 * 1024, 1} },
1818 .block_erase = spi_block_erase_60,
1819 }, {
1820 .eraseblocks = { {8 * 1024 * 1024, 1} },
1821 .block_erase = spi_block_erase_c7,
1822 }
1823 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001824 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001825 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001826 .write = spi_chip_write_256,
1827 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001828 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001829 },
1830
1831 {
1832 .vendor = "Atmel",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001833 .name = "AT25DL081",
1834 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001835 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001836 .model_id = ATMEL_AT25DF081,
1837 .total_size = 1024,
1838 .page_size = 256,
1839 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1840 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1841 .tested = TEST_UNTESTED,
1842 .probe = probe_spi_rdid,
1843 .probe_timing = TIMING_ZERO,
1844 .block_erasers =
1845 {
1846 {
1847 .eraseblocks = { {4 * 1024, 256} },
1848 .block_erase = spi_block_erase_20,
1849 }, {
1850 .eraseblocks = { {32 * 1024, 32} },
1851 .block_erase = spi_block_erase_52,
1852 }, {
1853 .eraseblocks = { {64 * 1024, 16} },
1854 .block_erase = spi_block_erase_d8,
1855 }, {
1856 .eraseblocks = { {1 * 1024 * 1024, 1} },
1857 .block_erase = spi_block_erase_60,
1858 }, {
1859 .eraseblocks = { {1 * 1024 * 1024, 1} },
1860 .block_erase = spi_block_erase_c7,
1861 }
1862 },
1863 .printlock = spi_prettyprint_status_register_at25df_sec,
1864 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1865 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1866 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1867 .voltage = {1650, 1950},
1868 },
1869
1870 {
1871 .vendor = "Atmel",
1872 .name = "AT25DL161",
1873 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001874 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001875 .model_id = ATMEL_AT25DL161,
1876 .total_size = 2048,
1877 .page_size = 256,
1878 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1879 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1880 .tested = TEST_UNTESTED,
1881 .probe = probe_spi_rdid,
1882 .probe_timing = TIMING_ZERO,
1883 .block_erasers =
1884 {
1885 {
1886 .eraseblocks = { {4 * 1024, 512} },
1887 .block_erase = spi_block_erase_20,
1888 }, {
1889 .eraseblocks = { {32 * 1024, 64} },
1890 .block_erase = spi_block_erase_52,
1891 }, {
1892 .eraseblocks = { {64 * 1024, 32} },
1893 .block_erase = spi_block_erase_d8,
1894 }, {
1895 .eraseblocks = { {2 * 1024 * 1024, 1} },
1896 .block_erase = spi_block_erase_60,
1897 }, {
1898 .eraseblocks = { {2 * 1024 * 1024, 1} },
1899 .block_erase = spi_block_erase_c7,
1900 }
1901 },
1902 .printlock = spi_prettyprint_status_register_at25df_sec,
1903 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1904 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1905 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1906 .voltage = {1650, 1950},
1907 },
1908
1909 {
1910 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001911 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001912 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001913 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001914 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001915 .total_size = 2048,
1916 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001917 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1918 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001919 .tested = TEST_UNTESTED,
1920 .probe = probe_spi_rdid,
1921 .probe_timing = TIMING_ZERO,
1922 .block_erasers =
1923 {
1924 {
1925 .eraseblocks = { {4 * 1024, 512} },
1926 .block_erase = spi_block_erase_20,
1927 }, {
1928 .eraseblocks = { {32 * 1024, 64} },
1929 .block_erase = spi_block_erase_52,
1930 }, {
1931 .eraseblocks = { {64 * 1024, 32} },
1932 .block_erase = spi_block_erase_d8,
1933 }, {
1934 .eraseblocks = { {2 * 1024 * 1024, 1} },
1935 .block_erase = spi_block_erase_60,
1936 }, {
1937 .eraseblocks = { {2 * 1024 * 1024, 1} },
1938 .block_erase = spi_block_erase_c7,
1939 }
1940 },
1941 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001942 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001943 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001944 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001945 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001946 },
1947
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001948 {
1949 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001950 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1951 * All other properties seem to be the same.*/
1952 .name = "AT25F1024(A)",
1953 .bustype = BUS_SPI,
1954 .manufacture_id = ATMEL_ID,
1955 .model_id = ATMEL_AT25F1024,
1956 .total_size = 128,
1957 .page_size = 256,
1958 .feature_bits = FEATURE_WRSR_WREN,
1959 .tested = TEST_OK_PREW,
1960 .probe = probe_spi_at25f,
1961 .probe_timing = TIMING_ZERO,
1962 .block_erasers =
1963 {
1964 {
1965 .eraseblocks = { {32 * 1024, 4} },
1966 .block_erase = spi_block_erase_52,
1967 }, {
1968 .eraseblocks = { {128 * 1024, 1} },
1969 .block_erase = spi_block_erase_62,
1970 }
1971 },
1972 .printlock = spi_prettyprint_status_register_at25f,
1973 .unlock = spi_disable_blockprotect_at25f,
1974 .write = spi_chip_write_256,
1975 .read = spi_chip_read,
1976 .voltage = {2700, 3600},
1977 },
1978
1979 {
1980 .vendor = "Atmel",
1981 .name = "AT25F2048",
1982 .bustype = BUS_SPI,
1983 .manufacture_id = ATMEL_ID,
1984 .model_id = ATMEL_AT25F2048,
1985 .total_size = 256,
1986 .page_size = 256,
1987 .feature_bits = FEATURE_WRSR_WREN,
1988 .tested = TEST_UNTESTED,
1989 .probe = probe_spi_at25f,
1990 .probe_timing = TIMING_ZERO,
1991 .block_erasers =
1992 {
1993 {
1994 .eraseblocks = { {64 * 1024, 4} },
1995 .block_erase = spi_block_erase_52,
1996 }, {
1997 .eraseblocks = { {256 * 1024, 1} },
1998 .block_erase = spi_block_erase_62,
1999 }
2000 },
2001 .printlock = spi_prettyprint_status_register_at25f,
2002 .unlock = spi_disable_blockprotect_at25f,
2003 .write = spi_chip_write_256,
2004 .read = spi_chip_read,
2005 .voltage = {2700, 3600},
2006 },
2007
2008 {
2009 .vendor = "Atmel",
2010 .name = "AT25F4096",
2011 .bustype = BUS_SPI,
2012 .manufacture_id = ATMEL_ID,
2013 .model_id = ATMEL_AT25F4096,
2014 .total_size = 512,
2015 .page_size = 256,
2016 .feature_bits = FEATURE_WRSR_WREN,
2017 .tested = TEST_OK_PREW,
2018 .probe = probe_spi_at25f,
2019 .probe_timing = TIMING_ZERO,
2020 .block_erasers =
2021 {
2022 {
2023 .eraseblocks = { {64 * 1024, 8} },
2024 .block_erase = spi_block_erase_52,
2025 }, {
2026 .eraseblocks = { {512 * 1024, 1} },
2027 .block_erase = spi_block_erase_62,
2028 }
2029 },
2030 .printlock = spi_prettyprint_status_register_at25f4096,
2031 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2032 .unlock = spi_disable_blockprotect_bp2_srwd,
2033 .write = spi_chip_write_256,
2034 .read = spi_chip_read,
2035 .voltage = {2700, 3600},
2036 },
2037
2038 {
2039 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00002040 .name = "AT25F512",
2041 .bustype = BUS_SPI,
2042 .manufacture_id = ATMEL_ID,
2043 .model_id = ATMEL_AT25F512,
2044 .total_size = 64,
2045 .page_size = 256,
2046 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00002047 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002048 .probe = probe_spi_at25f,
2049 .probe_timing = TIMING_ZERO,
2050 .block_erasers =
2051 {
2052 {
2053 .eraseblocks = { {32 * 1024, 2} },
2054 .block_erase = spi_block_erase_52,
2055 }, {
2056 .eraseblocks = { {64 * 1024, 1} },
2057 .block_erase = spi_block_erase_62,
2058 }
2059 },
2060 .printlock = spi_prettyprint_status_register_at25f,
2061 .unlock = spi_disable_blockprotect_at25f,
2062 .write = spi_chip_write_256,
2063 .read = spi_chip_read,
2064 .voltage = {2700, 3600},
2065 },
2066
2067 {
2068 .vendor = "Atmel",
2069 .name = "AT25F512A",
2070 .bustype = BUS_SPI,
2071 .manufacture_id = ATMEL_ID,
2072 .model_id = ATMEL_AT25F512A,
2073 .total_size = 64,
2074 .page_size = 128,
2075 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00002076 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002077 .probe = probe_spi_at25f,
2078 .probe_timing = TIMING_ZERO,
2079 .block_erasers =
2080 {
2081 {
2082 .eraseblocks = { {32 * 1024, 2} },
2083 .block_erase = spi_block_erase_52,
2084 }, {
2085 .eraseblocks = { {64 * 1024, 1} },
2086 .block_erase = spi_block_erase_62,
2087 }
2088 },
2089 .printlock = spi_prettyprint_status_register_at25f512a,
2090 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
2091 .unlock = spi_disable_blockprotect_at25f512a,
2092 .write = spi_chip_write_256,
2093 .read = spi_chip_read,
2094 .voltage = {2700, 3600},
2095 },
2096
2097 {
2098 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002100 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002101 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002102 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 .total_size = 64,
2104 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00002105 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2106 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002107 .tested = TEST_UNTESTED,
2108 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002109 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002110 .block_erasers =
2111 {
2112 {
2113 .eraseblocks = { {4 * 1024, 16} },
2114 .block_erase = spi_block_erase_20,
2115 }, {
2116 .eraseblocks = { {32 * 1024, 2} },
2117 .block_erase = spi_block_erase_52,
2118 }, {
2119 .eraseblocks = { {32 * 1024, 2} },
2120 .block_erase = spi_block_erase_d8,
2121 }, {
2122 .eraseblocks = { {64 * 1024, 1} },
2123 .block_erase = spi_block_erase_60,
2124 }, {
2125 .eraseblocks = { {64 * 1024, 1} },
2126 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00002127 }, {
2128 .eraseblocks = { {64 * 1024, 1} },
2129 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00002130 }
2131 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00002132 .printlock = spi_prettyprint_status_register_at25f512b,
2133 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002134 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002136 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002137 },
2138
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002139 {
2140 .vendor = "Atmel",
2141 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002142 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002143 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002144 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002145 .total_size = 128,
2146 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002147 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002148 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002149 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002150 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002151 .block_erasers =
2152 {
2153 {
2154 .eraseblocks = { {4 * 1024, 32} },
2155 .block_erase = spi_block_erase_20,
2156 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002157 .eraseblocks = { {4 * 1024, 32} },
2158 .block_erase = spi_block_erase_d7,
2159 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002160 .eraseblocks = { {32 * 1024, 4} },
2161 .block_erase = spi_block_erase_52,
2162 }, {
2163 .eraseblocks = { {32 * 1024, 4} },
2164 .block_erase = spi_block_erase_d8,
2165 }, {
2166 .eraseblocks = { {128 * 1024, 1} },
2167 .block_erase = spi_block_erase_60,
2168 }, {
2169 .eraseblocks = { {128 * 1024, 1} },
2170 .block_erase = spi_block_erase_c7,
2171 }
2172 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002173 .printlock = spi_prettyprint_status_register_at25fs010,
2174 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002175 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002176 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002177 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002178 },
2179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002180 {
2181 .vendor = "Atmel",
2182 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002183 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002184 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002185 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002186 .total_size = 512,
2187 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002188 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002189 .tested = TEST_UNTESTED,
2190 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002191 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002192 .block_erasers =
2193 {
2194 {
2195 .eraseblocks = { {4 * 1024, 128} },
2196 .block_erase = spi_block_erase_20,
2197 }, {
2198 .eraseblocks = { {64 * 1024, 8} },
2199 .block_erase = spi_block_erase_52,
2200 }, {
2201 .eraseblocks = { {64 * 1024, 8} },
2202 .block_erase = spi_block_erase_d8,
2203 }, {
2204 .eraseblocks = { {512 * 1024, 1} },
2205 .block_erase = spi_block_erase_60,
2206 }, {
2207 .eraseblocks = { {512 * 1024, 1} },
2208 .block_erase = spi_block_erase_c7,
2209 }
2210 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002211 .printlock = spi_prettyprint_status_register_at25fs040,
2212 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002213 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002214 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002215 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002216 },
2217
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002218 {
2219 .vendor = "Atmel",
jvma3ab6c62018-03-08 15:43:20 +01002220 .name = "AT25SF041",
2221 .bustype = BUS_SPI,
2222 .manufacture_id = ATMEL_ID,
2223 .model_id = ATMEL_AT25SF041,
2224 .total_size = 512,
2225 .page_size = 256,
2226 .feature_bits = FEATURE_WRSR_WREN,
2227 .tested = TEST_OK_PREW,
2228 .probe = probe_spi_rdid,
2229 .probe_timing = TIMING_ZERO,
2230 .block_erasers =
2231 {
2232 {
2233 .eraseblocks = { {4 * 1024, 128} },
2234 .block_erase = spi_block_erase_20,
2235 }, {
2236 .eraseblocks = { {32 * 1024, 16} },
2237 .block_erase = spi_block_erase_52,
2238 }, {
2239 .eraseblocks = { {64 * 1024, 8} },
2240 .block_erase = spi_block_erase_d8,
2241 }, {
2242 .eraseblocks = { {512 * 1024, 1} },
2243 .block_erase = spi_block_erase_60,
2244 }, {
2245 .eraseblocks = { {512 * 1024, 1} },
2246 .block_erase = spi_block_erase_c7,
2247 }
2248 },
2249 .printlock = spi_prettyprint_status_register_plain,
2250 .unlock = spi_disable_blockprotect,
2251 .write = spi_chip_write_256,
2252 .read = spi_chip_read,
2253 .voltage = {2500, 3600},
2254 },
2255
2256 {
2257 .vendor = "Atmel",
Evan Jensen291c1012018-05-17 14:30:19 -07002258 .name = "AT25SF081",
2259 .bustype = BUS_SPI,
2260 .manufacture_id = ATMEL_ID,
2261 .model_id = ATMEL_AT25SF081,
2262 .total_size = 1024,
2263 .page_size = 256,
2264 .feature_bits = FEATURE_WRSR_WREN,
2265 .tested = TEST_OK_PREW,
2266 .probe = probe_spi_rdid,
2267 .probe_timing = TIMING_ZERO,
2268 .block_erasers =
2269 {
2270 {
2271 .eraseblocks = { {4 * 1024, 256} },
2272 .block_erase = spi_block_erase_20,
2273 }, {
2274 .eraseblocks = { {32 * 1024, 32} },
2275 .block_erase = spi_block_erase_52,
2276 }, {
2277 .eraseblocks = { {64 * 1024, 16} },
2278 .block_erase = spi_block_erase_d8,
2279 }, {
2280 .eraseblocks = { {1024 * 1024, 1} },
2281 .block_erase = spi_block_erase_60,
2282 }, {
2283 .eraseblocks = { {1024 * 1024, 1} },
2284 .block_erase = spi_block_erase_c7,
2285 }
2286 },
2287 .printlock = spi_prettyprint_status_register_plain,
2288 .unlock = spi_disable_blockprotect,
2289 .write = spi_chip_write_256,
2290 .read = spi_chip_read,
2291 .voltage = {2300, 3600},
2292 },
2293
2294 {
2295 .vendor = "Atmel",
Stanislav Sedovf5775442018-03-07 14:16:51 -08002296 .name = "AT25SF161",
2297 .bustype = BUS_SPI,
2298 .manufacture_id = ATMEL_ID,
2299 .model_id = ATMEL_AT25SF161,
2300 .total_size = 2048,
2301 .page_size = 256,
2302 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
2303 .tested = TEST_OK_PREW,
2304 .probe = probe_spi_rdid,
2305 .probe_timing = TIMING_ZERO,
2306 .block_erasers =
2307 {
2308 {
2309 .eraseblocks = { {4 * 1024, 512} },
2310 .block_erase = spi_block_erase_20,
2311 }, {
2312 .eraseblocks = { {32 * 1024, 64} },
2313 .block_erase = spi_block_erase_52,
2314 }, {
2315 .eraseblocks = { {64 * 1024, 32} },
2316 .block_erase = spi_block_erase_d8,
2317 }, {
2318 .eraseblocks = { {2048 * 1024, 1} },
2319 .block_erase = spi_block_erase_60,
2320 }, {
2321 .eraseblocks = { {2048 * 1024, 1} },
2322 .block_erase = spi_block_erase_c7,
2323 }
2324 },
2325 .printlock = spi_prettyprint_status_register_plain,
2326 .unlock = spi_disable_blockprotect,
2327 .write = spi_chip_write_256,
2328 .read = spi_chip_read,
2329 .voltage = {2500, 3600},
2330 },
2331
2332 {
Alan Green57938f82019-06-27 15:06:43 +10002333 .vendor = "Atmel",
darkarnium41394382019-11-04 20:06:48 +00002334 .name = "AT25SF321",
2335 .bustype = BUS_SPI,
2336 .manufacture_id = ATMEL_ID,
2337 .model_id = ATMEL_AT25SF321,
2338 .total_size = 4096,
2339 .page_size = 256,
2340 .feature_bits = FEATURE_WRSR_WREN,
2341 .tested = TEST_OK_PR,
2342 .probe = probe_spi_rdid,
2343 .probe_timing = TIMING_ZERO,
2344 .block_erasers =
2345 {
2346 {
2347 .eraseblocks = { {4 * 1024, 1024} },
2348 .block_erase = spi_block_erase_20,
2349 }, {
2350 .eraseblocks = { {32 * 1024, 128} },
2351 .block_erase = spi_block_erase_52,
2352 }, {
2353 .eraseblocks = { {64 * 1024, 64} },
2354 .block_erase = spi_block_erase_d8,
2355 }, {
2356 .eraseblocks = { {4096 * 1024, 1} },
2357 .block_erase = spi_block_erase_60,
2358 }, {
2359 .eraseblocks = { {4096 * 1024, 1} },
2360 .block_erase = spi_block_erase_c7,
2361 }
2362 },
2363 .printlock = spi_prettyprint_status_register_plain,
2364 .unlock = spi_disable_blockprotect,
2365 .write = spi_chip_write_256,
2366 .read = spi_chip_read,
2367 .voltage = {2500, 3600},
2368 },
2369
2370 {
2371 .vendor = "Atmel",
Hal Martin49e23d22018-05-27 14:18:43 +02002372 .name = "AT25SL128A",
2373 .bustype = BUS_SPI,
2374 .manufacture_id = ATMEL_ID,
2375 .model_id = ATMEL_AT25SL128A,
2376 .total_size = 16384,
2377 .page_size = 256,
2378 /* supports SFDP */
2379 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
2380 .tested = TEST_OK_PREW,
2381 .probe = probe_spi_rdid,
2382 .probe_timing = TIMING_ZERO,
2383 .block_erasers =
2384 {
2385 {
2386 .eraseblocks = { {4 * 1024, 4096} },
2387 .block_erase = spi_block_erase_20,
2388 }, {
2389 .eraseblocks = { {32 * 1024, 512} },
2390 .block_erase = spi_block_erase_52,
2391 }, {
2392 .eraseblocks = { {64 * 1024, 256} },
2393 .block_erase = spi_block_erase_d8,
2394 }, {
2395 .eraseblocks = { {16 * 1024 * 1024, 1} },
2396 .block_erase = spi_block_erase_60,
2397 }, {
2398 .eraseblocks = { {16 * 1024 * 1024, 1} },
2399 .block_erase = spi_block_erase_c7,
2400 }
2401 },
2402 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
2403 .unlock = spi_disable_blockprotect,
2404 .write = spi_chip_write_256,
2405 .read = spi_chip_read,
2406 .voltage = {1700, 2000},
2407 },
2408
2409 {
Stanislav Sedovf5775442018-03-07 14:16:51 -08002410 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002411 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002412 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002413 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002414 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002415 .total_size = 512,
2416 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002417 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002418 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002419 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002420 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002421 .block_erasers =
2422 {
2423 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002424 .eraseblocks = { {256, 2048} },
2425 .block_erase = spi_block_erase_81,
2426 }, {
2427 .eraseblocks = { {2 * 1024, 256} },
2428 .block_erase = spi_block_erase_50,
2429 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002430 .eraseblocks = { {4 * 1024, 128} },
2431 .block_erase = spi_block_erase_20,
2432 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002433 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002434 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002435 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002436 .write = spi_chip_write_1,
2437 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002438 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002439 },
2440
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002441 {
2442 .vendor = "Atmel",
2443 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002444 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002445 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002446 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002447 .total_size = 1024,
2448 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002449 .feature_bits = FEATURE_WRSR_WREN,
2450 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002451 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002452 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002453 .block_erasers =
2454 {
2455 {
2456 .eraseblocks = { {4 * 1024, 256} },
2457 .block_erase = spi_block_erase_20,
2458 }, {
2459 .eraseblocks = { {32 * 1024, 32} },
2460 .block_erase = spi_block_erase_52,
2461 }, {
2462 .eraseblocks = { {64 * 1024, 16} },
2463 .block_erase = spi_block_erase_d8,
2464 }, {
2465 .eraseblocks = { {1024 * 1024, 1} },
2466 .block_erase = spi_block_erase_60,
2467 }, {
2468 .eraseblocks = { {1024 * 1024, 1} },
2469 .block_erase = spi_block_erase_c7,
2470 }
2471 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002472 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002473 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002474 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002475 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002476 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002477 },
2478
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002479 {
2480 .vendor = "Atmel",
2481 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002482 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002483 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002484 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002485 .total_size = 2048,
2486 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002487 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002488 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002489 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002490 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002491 .block_erasers =
2492 {
2493 {
2494 .eraseblocks = { {4 * 1024, 512} },
2495 .block_erase = spi_block_erase_20,
2496 }, {
2497 .eraseblocks = { {32 * 1024, 64} },
2498 .block_erase = spi_block_erase_52,
2499 }, {
2500 .eraseblocks = { {64 * 1024, 32} },
2501 .block_erase = spi_block_erase_d8,
2502 }, {
2503 .eraseblocks = { {2 * 1024 * 1024, 1} },
2504 .block_erase = spi_block_erase_60,
2505 }, {
2506 .eraseblocks = { {2 * 1024 * 1024, 1} },
2507 .block_erase = spi_block_erase_c7,
2508 }
2509 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002510 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002511 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002512 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002513 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002514 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002515 },
2516
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002517 {
2518 .vendor = "Atmel",
2519 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002520 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002521 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002522 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002523 .total_size = 2048,
2524 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002525 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002526 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002527 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002528 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002529 .block_erasers =
2530 {
2531 {
2532 .eraseblocks = { {4 * 1024, 512} },
2533 .block_erase = spi_block_erase_20,
2534 }, {
2535 .eraseblocks = { {32 * 1024, 64} },
2536 .block_erase = spi_block_erase_52,
2537 }, {
2538 .eraseblocks = { {64 * 1024, 32} },
2539 .block_erase = spi_block_erase_d8,
2540 }, {
2541 .eraseblocks = { {2 * 1024 * 1024, 1} },
2542 .block_erase = spi_block_erase_60,
2543 }, {
2544 .eraseblocks = { {2 * 1024 * 1024, 1} },
2545 .block_erase = spi_block_erase_c7,
2546 }
2547 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002548 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002549 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002550 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002551 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002552 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002553 },
2554
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002555 {
2556 .vendor = "Atmel",
2557 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002558 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002559 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002560 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002561 .total_size = 512,
2562 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002563 .feature_bits = FEATURE_WRSR_WREN,
Alan Green908adf42019-07-03 15:34:06 +10002564 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD},
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002565 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002566 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002567 .block_erasers =
2568 {
2569 {
2570 .eraseblocks = { {4 * 1024, 128} },
2571 .block_erase = spi_block_erase_20,
2572 }, {
2573 .eraseblocks = { {32 * 1024, 16} },
2574 .block_erase = spi_block_erase_52,
2575 }, {
2576 .eraseblocks = { {64 * 1024, 8} },
2577 .block_erase = spi_block_erase_d8,
2578 }, {
2579 .eraseblocks = { {512 * 1024, 1} },
2580 .block_erase = spi_block_erase_60,
2581 }, {
2582 .eraseblocks = { {512 * 1024, 1} },
2583 .block_erase = spi_block_erase_c7,
2584 }
2585 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002586 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Alan Greencbb85c02019-06-25 13:42:34 +10002587 .write = NULL, /* Incompatible Page write */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002588 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002589 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002590 },
2591
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002592 {
2593 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002594 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002595 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002596 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002597 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002598 .total_size = 128,
2599 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002600 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002601 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002602 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002603 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002604 .block_erasers =
2605 {
2606 {
2607 .eraseblocks = { {128 * 1024, 1} },
2608 .block_erase = erase_chip_block_jedec,
2609 }
2610 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002611 .write = write_jedec, /* FIXME */
2612 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002613 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002614 },
2615
2616 {
2617 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002618 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002619 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002620 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002621 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002622 .total_size = 256,
2623 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002624 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002625 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002626 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002627 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002628 .block_erasers =
2629 {
2630 {
2631 .eraseblocks = { {256 * 1024, 1} },
2632 .block_erase = erase_chip_block_jedec,
2633 }
2634 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002635 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002636 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002637 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002638 },
2639
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002640 {
2641 .vendor = "Atmel",
2642 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002643 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002644 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002645 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002646 .total_size = 512,
2647 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002648 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002649 .tested = TEST_UNTESTED,
2650 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002651 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002652 .block_erasers =
2653 {
2654 {
2655 .eraseblocks = { {512 * 1024, 1} },
2656 .block_erase = erase_chip_block_jedec,
2657 }
2658 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002659 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002660 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002661 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002662 },
2663
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002664 {
2665 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10002666 .name = "AT29C512",
2667 .bustype = BUS_PARALLEL,
2668 .manufacture_id = ATMEL_ID,
2669 .model_id = ATMEL_AT29C512,
2670 .total_size = 64,
2671 .page_size = 128,
2672 .feature_bits = FEATURE_LONG_RESET,
2673 .tested = TEST_OK_PREW,
2674 .probe = probe_jedec,
2675 .probe_timing = 10000, /* 10mS, Enter=Exec */
2676 .block_erasers =
2677 {
2678 {
2679 .eraseblocks = { {64 * 1024, 1} },
2680 .block_erase = erase_chip_block_jedec,
2681 }
2682 },
2683 .write = write_jedec,
2684 .read = read_memmapped,
2685 .voltage = {4500, 5500},
2686 },
2687
2688 {
2689 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002690 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002691 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002692 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002693 .model_id = ATMEL_AT45CS1282,
Alan Greencbb85c02019-06-25 13:42:34 +10002694 .total_size = 16896, /* No power of two sizes */
2695 .page_size = 1056, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002696 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002697 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2698 .feature_bits = FEATURE_OTP,
2699 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002700 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002701 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002702 .block_erasers =
2703 {
2704 {
2705 .eraseblocks = {
2706 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2707 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2708 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2709 },
2710 .block_erase = spi_erase_at45cs_sector,
2711 }
2712 },
2713 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002714 .write = spi_write_at45db,
2715 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002716 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002717 .gran = write_gran_1056bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002718 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002719
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002720 {
2721 .vendor = "Atmel",
2722 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002723 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002724 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002725 .model_id = ATMEL_AT45DB011D,
Alan Greencbb85c02019-06-25 13:42:34 +10002726 .total_size = 128, /* or 132, determined from status register */
2727 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002728 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002729 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2730 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002731 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002732 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002733 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002734 .block_erasers =
2735 {
2736 {
2737 .eraseblocks = { {256, 512} },
2738 .block_erase = spi_erase_at45db_page,
2739 }, {
2740 .eraseblocks = { {8 * 256, 512/8} },
2741 .block_erase = spi_erase_at45db_block,
2742 }, {
2743 .eraseblocks = {
2744 {8 * 256, 1},
2745 {120 * 256, 1},
2746 {128 * 256, 3},
2747 },
2748 .block_erase = spi_erase_at45db_sector
2749 }, {
2750 .eraseblocks = { {128 * 1024, 1} },
2751 .block_erase = spi_erase_at45db_chip,
2752 }
2753 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002754 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002755 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002756 /* granularity will be set by the probing function. */
2757 .write = spi_write_at45db,
2758 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002759 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002760 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002761
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002762 {
2763 .vendor = "Atmel",
2764 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002765 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002766 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002767 .model_id = ATMEL_AT45DB021D,
Alan Greencbb85c02019-06-25 13:42:34 +10002768 .total_size = 256, /* or 264, determined from status register */
2769 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002770 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002771 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2772 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002773 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002774 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002775 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002776 .block_erasers =
2777 {
2778 {
2779 .eraseblocks = { {256, 1024} },
2780 .block_erase = spi_erase_at45db_page,
2781 }, {
2782 .eraseblocks = { {8 * 256, 1024/8} },
2783 .block_erase = spi_erase_at45db_block,
2784 }, {
2785 .eraseblocks = {
2786 {8 * 256, 1},
2787 {120 * 256, 1},
2788 {128 * 256, 7},
2789 },
2790 .block_erase = spi_erase_at45db_sector
2791 }, {
2792 .eraseblocks = { {256 * 1024, 1} },
2793 .block_erase = spi_erase_at45db_chip,
2794 }
2795 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002796 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002797 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002798 /* granularity will be set by the probing function. */
2799 .write = spi_write_at45db,
2800 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002801 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002802 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002803
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002804 {
2805 .vendor = "Atmel",
2806 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002807 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002808 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002809 .model_id = ATMEL_AT45DB041D,
Alan Greencbb85c02019-06-25 13:42:34 +10002810 .total_size = 512, /* or 528, determined from status register */
2811 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002812 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002813 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2814 .feature_bits = FEATURE_OTP,
2815 .tested = TEST_OK_PREW,
2816 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002817 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002818 .block_erasers =
2819 {
2820 {
2821 .eraseblocks = { {256, 2048} },
2822 .block_erase = spi_erase_at45db_page,
2823 }, {
2824 .eraseblocks = { {8 * 256, 2048/8} },
2825 .block_erase = spi_erase_at45db_block,
2826 }, {
2827 .eraseblocks = {
2828 {8 * 256, 1},
2829 {248 * 256, 1},
2830 {256 * 256, 7},
2831 },
2832 .block_erase = spi_erase_at45db_sector
2833 }, {
2834 .eraseblocks = { {512 * 1024, 1} },
2835 .block_erase = spi_erase_at45db_chip,
2836 }
2837 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002838 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002839 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002840 /* granularity will be set by the probing function. */
2841 .write = spi_write_at45db,
2842 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2843 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002844 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002845
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002846 {
2847 .vendor = "Atmel",
2848 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002849 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002850 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002851 .model_id = ATMEL_AT45DB081D,
Alan Greencbb85c02019-06-25 13:42:34 +10002852 .total_size = 1024, /* or 1056, determined from status register */
2853 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002854 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002855 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2856 .feature_bits = FEATURE_OTP,
Angel Pons250aeba2018-09-30 20:28:22 +02002857 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002858 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002859 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002860 .block_erasers =
2861 {
2862 {
2863 .eraseblocks = { {256, 4096} },
2864 .block_erase = spi_erase_at45db_page,
2865 }, {
2866 .eraseblocks = { {8 * 256, 4096/8} },
2867 .block_erase = spi_erase_at45db_block,
2868 }, {
2869 .eraseblocks = {
2870 {8 * 256, 1},
2871 {248 * 256, 1},
2872 {256 * 256, 15},
2873 },
2874 .block_erase = spi_erase_at45db_sector
2875 }, {
2876 .eraseblocks = { {1024 * 1024, 1} },
2877 .block_erase = spi_erase_at45db_chip,
2878 }
2879 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002880 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002881 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002882 /* granularity will be set by the probing function. */
2883 .write = spi_write_at45db,
2884 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002885 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002886 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002887
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002888 {
2889 .vendor = "Atmel",
2890 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002891 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002892 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002893 .model_id = ATMEL_AT45DB161D,
Alan Greencbb85c02019-06-25 13:42:34 +10002894 .total_size = 2048, /* or 2112, determined from status register */
2895 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002896 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002897 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2898 .feature_bits = FEATURE_OTP,
2899 .tested = TEST_OK_PREW,
2900 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002901 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002902 .block_erasers =
2903 {
2904 {
2905 .eraseblocks = { {512, 4096} },
2906 .block_erase = spi_erase_at45db_page,
2907 }, {
2908 .eraseblocks = { {8 * 512, 4096/8} },
2909 .block_erase = spi_erase_at45db_block,
2910 }, {
2911 .eraseblocks = {
2912 {8 * 512, 1},
2913 {248 * 512, 1},
2914 {256 * 512, 15},
2915 },
2916 .block_erase = spi_erase_at45db_sector
2917 }, {
2918 .eraseblocks = { {2048 * 1024, 1} },
2919 .block_erase = spi_erase_at45db_chip,
2920 }
2921 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002922 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002923 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002924 /* granularity will be set by the probing function. */
2925 .write = spi_write_at45db,
2926 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002927 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002928 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002929
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002930 {
2931 .vendor = "Atmel",
2932 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002933 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002934 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002935 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10002936 .total_size = 4224, /* No power of two sizes */
2937 .page_size = 528, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002938 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002939 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2940 .feature_bits = FEATURE_OTP,
2941 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002942 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002943 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002944 .block_erasers =
2945 {
2946 {
2947 .eraseblocks = { {528, 8192} },
2948 .block_erase = spi_erase_at45db_page,
2949 }, {
2950 .eraseblocks = { {8 * 528, 8192/8} },
2951 .block_erase = spi_erase_at45db_block,
2952 }, /* Although the datasheets describes sectors (which can be write protected)
2953 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00002954 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002955 .eraseblocks = {
2956 {8 * 528, 1},
2957 {120 * 528, 1},
2958 {128 * 528, 63},
2959 },
2960 .block_erase = spi_erase_at45db_sector
2961 }, */ {
2962 .eraseblocks = { {4224 * 1024, 1} },
2963 .block_erase = spi_erase_at45db_chip,
2964 }
2965 },
2966 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002967 .write = spi_write_at45db,
2968 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002969 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002970 .gran = write_gran_528bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002971 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002972
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002973 {
2974 .vendor = "Atmel",
2975 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002976 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002977 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002978 .model_id = ATMEL_AT45DB321D,
Alan Greencbb85c02019-06-25 13:42:34 +10002979 .total_size = 4096, /* or 4224, determined from status register */
2980 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002981 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002982 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002983 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00002984 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002985 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002986 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002987 .block_erasers =
2988 {
2989 {
2990 .eraseblocks = { {512, 8192} },
2991 .block_erase = spi_erase_at45db_page,
2992 }, {
2993 .eraseblocks = { {8 * 512, 8192/8} },
2994 .block_erase = spi_erase_at45db_block,
2995 }, {
2996 .eraseblocks = {
2997 {8 * 512, 1},
2998 {120 * 512, 1},
2999 {128 * 512, 63},
3000 },
3001 .block_erase = spi_erase_at45db_sector
3002 }, {
3003 .eraseblocks = { {4096 * 1024, 1} },
3004 .block_erase = spi_erase_at45db_chip,
3005 }
3006 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003007 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003008 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003009 /* granularity will be set by the probing function. */
3010 .write = spi_write_at45db,
3011 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3012 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
3013 },
3014
3015 {
3016 .vendor = "Atmel",
3017 .name = "AT45DB321E",
3018 .bustype = BUS_SPI,
3019 .manufacture_id = ATMEL_ID,
3020 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10003021 .total_size = 4096, /* or 4224, determined from status register */
3022 .page_size = 512, /* or 528, determined from status register */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003023 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
3024 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3025 .feature_bits = FEATURE_OTP,
3026 .tested = TEST_UNTESTED,
3027 .probe = probe_spi_at45db,
3028 .probe_timing = TIMING_ZERO,
3029 .block_erasers =
3030 {
3031 {
3032 .eraseblocks = { {512, 8192} },
3033 .block_erase = spi_erase_at45db_page,
3034 }, {
3035 .eraseblocks = { {8 * 512, 8192/8} },
3036 .block_erase = spi_erase_at45db_block,
3037 }, {
3038 .eraseblocks = {
3039 {8 * 512, 1},
3040 {120 * 512, 1},
3041 {128 * 512, 63},
3042 },
3043 .block_erase = spi_erase_at45db_sector
3044 }, {
3045 .eraseblocks = { {4096 * 1024, 1} },
3046 .block_erase = spi_erase_at45db_chip,
3047 }
3048 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003049 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
Alan Greenc1863ca2019-06-27 15:08:03 +10003050 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003051 /* granularity will be set by the probing function. */
3052 .write = spi_write_at45db,
3053 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3054 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003055 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003056
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003057 {
3058 .vendor = "Atmel",
3059 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003060 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003061 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003062 .model_id = ATMEL_AT45DB642D,
Alan Greencbb85c02019-06-25 13:42:34 +10003063 .total_size = 8192, /* or 8448, determined from status register */
3064 .page_size = 1024, /* or 1056, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00003065 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003066 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3067 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00003068 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003069 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003070 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003071 .block_erasers =
3072 {
3073 {
3074 .eraseblocks = { {1024, 8192} },
3075 .block_erase = spi_erase_at45db_page,
3076 }, {
3077 .eraseblocks = { {8 * 1024, 8192/8} },
3078 .block_erase = spi_erase_at45db_block,
3079 }, {
3080 .eraseblocks = {
3081 {8 * 1024, 1},
3082 {248 * 1024, 1},
3083 {256 * 1024, 31},
3084 },
3085 .block_erase = spi_erase_at45db_sector
3086 }, {
3087 .eraseblocks = { {8192 * 1024, 1} },
3088 .block_erase = spi_erase_at45db_chip,
3089 }
3090 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003091 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003092 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003093 /* granularity will be set by the probing function. */
3094 .write = spi_write_at45db,
3095 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003096 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003097 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003098
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003099 {
3100 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003101 .name = "AT49(H)F010",
3102 .bustype = BUS_PARALLEL,
3103 .manufacture_id = ATMEL_ID,
3104 .model_id = ATMEL_AT49F010,
3105 .total_size = 128,
3106 .page_size = 0, /* unused */
3107 .feature_bits = FEATURE_EITHER_RESET,
3108 .tested = TEST_OK_PREW,
3109 .probe = probe_jedec,
3110 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3111 .block_erasers =
3112 {
3113 {
3114 .eraseblocks = { {128 * 1024, 1} },
3115 .block_erase = erase_chip_block_jedec,
3116 }
3117 },
3118 .printlock = printlock_at49f,
3119 .write = write_jedec_1,
3120 .read = read_memmapped,
3121 .voltage = {4500, 5500},
3122 },
3123
3124 {
3125 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003126 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003127 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003128 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003129 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003130 .total_size = 64,
3131 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00003132 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00003133 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003134 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003135 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003136 .block_erasers =
3137 {
3138 {
3139 .eraseblocks = { {64 * 1024, 1} },
3140 .block_erase = erase_chip_block_jedec,
3141 }
3142 },
Sean Nelson35727f72010-01-28 23:55:12 +00003143 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003144 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003145 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003146 },
3147
3148 {
3149 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003150 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003151 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003152 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003153 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003154 .total_size = 256,
3155 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003156 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003157 .tested = TEST_UNTESTED,
3158 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003159 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003160 .block_erasers =
3161 {
3162 {
3163 .eraseblocks = {
3164 {16 * 1024, 1},
3165 {8 * 1024, 2},
3166 {96 * 1024, 1},
3167 {128 * 1024, 1},
3168 },
3169 .block_erase = erase_sector_jedec,
3170 }, {
3171 .eraseblocks = { {256 * 1024, 1} },
3172 .block_erase = erase_chip_block_jedec,
3173 }
3174 },
Sean Nelson35727f72010-01-28 23:55:12 +00003175 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003176 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003177 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003178 },
3179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003180 {
3181 .vendor = "Atmel",
3182 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003183 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003184 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003185 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003186 .total_size = 256,
3187 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003188 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003189 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003190 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003191 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003192 .block_erasers =
3193 {
3194 {
3195 .eraseblocks = {
3196 {128 * 1024, 1},
3197 {96 * 1024, 1},
3198 {8 * 1024, 2},
3199 {16 * 1024, 1},
3200 },
3201 .block_erase = erase_sector_jedec,
3202 }, {
3203 .eraseblocks = { {256 * 1024, 1} },
3204 .block_erase = erase_chip_block_jedec,
3205 }
3206 },
Sean Nelson35727f72010-01-28 23:55:12 +00003207 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003208 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003209 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003210 },
3211
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00003212 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00003213 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003214 .name = "AT49F020",
3215 .bustype = BUS_PARALLEL,
3216 .manufacture_id = ATMEL_ID,
3217 .model_id = ATMEL_AT49F020,
3218 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003219 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003220 .feature_bits = FEATURE_EITHER_RESET,
3221 .tested = TEST_OK_PRE,
3222 .probe = probe_jedec,
3223 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3224 .block_erasers =
3225 {
3226 {
3227 .eraseblocks = { {256 * 1024, 1} },
3228 .block_erase = erase_chip_block_jedec,
3229 }
3230 /* Chip features an optional permanent write protection
3231 * of the first 8 kB. The erase function is the same as
3232 * above, but 00000H to 01FFFH will not be erased.
3233 * FIXME: add another eraser when partial erasers are
3234 * supported.
3235 */
3236 },
3237 .printlock = printlock_at49f,
3238 .write = write_jedec_1,
3239 .read = read_memmapped,
3240 .voltage = {4500, 5500},
3241 },
3242
3243 {
3244 .vendor = "Atmel",
3245 .name = "AT49F040",
3246 .bustype = BUS_PARALLEL,
3247 .manufacture_id = ATMEL_ID,
3248 .model_id = ATMEL_AT49F040,
3249 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003250 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003251 .feature_bits = FEATURE_EITHER_RESET,
3252 .tested = TEST_UNTESTED,
3253 .probe = probe_jedec,
3254 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3255 .block_erasers =
3256 {
3257 {
3258 .eraseblocks = { {512 * 1024, 1} },
3259 .block_erase = erase_chip_block_jedec,
3260 }
3261 /* Chip features an optional permanent write protection
3262 * of the first 16 kB. The erase function is the same as
3263 * above, but 00000H to 03FFFH will not be erased.
3264 * FIXME: add another eraser when partial erasers are
3265 * supported.
3266 */
3267 },
3268 .printlock = printlock_at49f,
3269 .write = write_jedec_1,
3270 .read = read_memmapped,
3271 .voltage = {4500, 5500},
3272 },
3273
3274 {
3275 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003276 .name = "AT49F080",
3277 .bustype = BUS_PARALLEL,
3278 .manufacture_id = ATMEL_ID,
3279 .model_id = ATMEL_AT49F080,
3280 .total_size = 1024,
3281 .page_size = 0, /* unused */
3282 .feature_bits = FEATURE_EITHER_RESET,
3283 .tested = TEST_UNTESTED,
3284 .probe = probe_jedec,
3285 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3286 .block_erasers =
3287 {
3288 {
3289 .eraseblocks = { {1024 * 1024, 1} },
3290 .block_erase = erase_chip_block_jedec,
3291 }
3292 /* Chip features an optional permanent write protection
3293 * of the first 16 kB. The erase function is the same as
3294 * above, but 00000H to 03FFFH will not be erased.
3295 * FIXME: add another eraser when partial erasers are
3296 * supported.
3297 */
3298 },
3299 .printlock = printlock_at49f,
3300 .write = write_jedec_1,
3301 .read = read_memmapped,
3302 .voltage = {4500, 5500},
3303 },
3304
3305 {
3306 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3307 .vendor = "Atmel",
3308 .name = "AT49F080T",
3309 .bustype = BUS_PARALLEL,
3310 .manufacture_id = ATMEL_ID,
3311 .model_id = ATMEL_AT49F080T,
3312 .total_size = 1024,
3313 .page_size = 0, /* unused */
3314 .feature_bits = FEATURE_EITHER_RESET,
3315 .tested = TEST_UNTESTED,
3316 .probe = probe_jedec,
3317 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3318 .block_erasers =
3319 {
3320 {
3321 .eraseblocks = { {1024 * 1024, 1} },
3322 .block_erase = erase_chip_block_jedec,
3323 }
3324 /* Chip features an optional permanent write protection
3325 * of the first 16 kB. The erase function is the same as
3326 * above, but FC000H to FFFFFH will not be erased.
3327 * FIXME: add another eraser when partial erasers are
3328 * supported.
3329 */
3330 },
3331 .printlock = printlock_at49f,
3332 .write = write_jedec_1,
3333 .read = read_memmapped,
3334 .voltage = {4500, 5500},
3335 },
3336
3337 {
3338 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003339 .name = "AT49LH002",
3340 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3341 .manufacture_id = ATMEL_ID,
3342 .model_id = ATMEL_AT49LH002,
3343 .total_size = 256,
3344 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003345 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003346 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003347 .probe = probe_82802ab,
3348 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003349 .block_erasers =
3350 {
3351 {
3352 .eraseblocks = {
3353 {64 * 1024, 3},
3354 {32 * 1024, 1},
3355 {8 * 1024, 2},
3356 {16 * 1024, 1},
3357 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003358 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003359 }, {
3360 .eraseblocks = {
3361 {64 * 1024, 4},
3362 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003363 .block_erase = erase_block_82802ab,
3364 },
3365 },
3366 .printlock = printlock_regspace2_block_eraser_0,
3367 .unlock = unlock_regspace2_block_eraser_0,
3368 .write = write_82802ab,
3369 .read = read_memmapped,
3370 .voltage = {3000, 3600},
3371 },
3372
3373 {
3374 .vendor = "Atmel",
Stefan Tauner7de93932014-08-03 13:05:45 +00003375 .name = "AT49LH004",
3376 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3377 .manufacture_id = ATMEL_ID,
3378 .model_id = ATMEL_AT49LH004,
3379 .total_size = 512,
3380 .page_size = 0, /* unused */
3381 .feature_bits = FEATURE_REGISTERMAP,
3382 .tested = TEST_UNTESTED,
3383 .probe = probe_82802ab,
3384 .probe_timing = TIMING_ZERO,
3385 .block_erasers =
3386 {
3387 {
3388 .eraseblocks = {
3389 {64 * 1024, 7},
3390 {32 * 1024, 1},
3391 {8 * 1024, 2},
3392 {16 * 1024, 1},
3393 },
3394 .block_erase = erase_block_82802ab,
3395 }, {
3396 .eraseblocks = {
3397 {64 * 1024, 8},
3398 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003399 .block_erase = NULL, /* TODO: Implement. */
3400 },
3401 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003402 .printlock = printlock_regspace2_block_eraser_0,
3403 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003404 .write = write_82802ab,
3405 .read = read_memmapped,
3406 .voltage = {3000, 3600},
3407 },
3408
3409 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003410 .vendor = "Atmel",
3411 .name = "AT49LH00B4",
3412 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3413 .manufacture_id = ATMEL_ID,
3414 .model_id = ATMEL_AT49LH00B4,
3415 .total_size = 512,
Andrew Morganca081462011-09-13 22:05:44 +00003416 .page_size = 0, /* unused */
Alan Green1f9cc7d2019-07-01 11:10:45 +10003417 .feature_bits = FEATURE_REGISTERMAP,
3418 .tested = TEST_UNTESTED,
3419 .probe = probe_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003420 .probe_timing = TIMING_ZERO,
3421 .block_erasers =
3422 {
3423 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003424 .eraseblocks = {
3425 {8 * 1024, 2},
3426 {16 * 1024, 1},
3427 {32 * 1024, 1},
3428 {64 * 1024, 7},
3429 },
3430 .block_erase = NULL, /* TODO: Implement. */
3431 }, {
3432 .eraseblocks = {
3433 {64 * 1024, 8},
3434 },
3435 .block_erase = erase_block_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003436 },
3437 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003438 .printlock = printlock_regspace2_block_eraser_0,
3439 .unlock = unlock_regspace2_block_eraser_0,
3440 .write = write_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003441 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003442 .voltage = {3000, 3600},
Andrew Morganca081462011-09-13 22:05:44 +00003443 },
3444
3445 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003446 .vendor = "Bright",
3447 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003448 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003449 .manufacture_id = BRIGHT_ID,
3450 .model_id = BRIGHT_BM29F040,
3451 .total_size = 512,
3452 .page_size = 64 * 1024,
3453 .feature_bits = FEATURE_EITHER_RESET,
3454 .tested = TEST_OK_PR,
3455 .probe = probe_jedec,
3456 .probe_timing = TIMING_ZERO,
3457 .block_erasers =
3458 {
3459 {
3460 .eraseblocks = { {64 * 1024, 8} },
3461 .block_erase = erase_sector_jedec,
3462 }, {
3463 .eraseblocks = { {512 * 1024, 1} },
3464 .block_erase = erase_chip_block_jedec,
3465 },
3466 },
3467 .write = write_jedec_1,
3468 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003469 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003470 },
3471
3472 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003473 .vendor = "Catalyst",
3474 .name = "CAT28F512",
3475 .bustype = BUS_PARALLEL,
3476 .manufacture_id = CATALYST_ID,
3477 .model_id = CATALYST_CAT28F512,
3478 .total_size = 64,
3479 .page_size = 0, /* unused */
3480 .feature_bits = 0,
Alan Green908adf42019-07-03 15:34:06 +10003481 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD},
Alan Green1f9cc7d2019-07-01 11:10:45 +10003482 .probe = probe_jedec, /* FIXME! */
3483 .probe_timing = TIMING_ZERO,
3484 .block_erasers =
3485 {
3486 {
3487 .eraseblocks = { {64 * 1024, 1} },
3488 .block_erase = NULL, /* TODO */
3489 },
3490 },
3491 .write = NULL, /* TODO */
3492 .read = read_memmapped,
3493 .voltage = {4500, 5500},
3494 },
3495
3496 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003497 .vendor = "ENE",
3498 .name = "KB9012 (EDI)",
3499 .bustype = BUS_SPI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003500 .total_size = 128,
3501 .page_size = 128,
3502 .feature_bits = FEATURE_ERASED_ZERO,
3503 .tested = TEST_OK_PREW,
Alan Greenc1863ca2019-06-27 15:08:03 +10003504 .spi_cmd_set = SPI_EDI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003505 .probe = edi_probe_kb9012,
3506 .probe_timing = TIMING_ZERO,
3507 .block_erasers =
3508 {
3509 {
3510 .eraseblocks = { {128, 1024} },
3511 .block_erase = edi_chip_block_erase,
3512 },
3513 },
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003514 .write = edi_chip_write,
3515 .read = edi_chip_read,
3516 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10003517 .gran = write_gran_128bytes,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003518 },
3519
3520 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003521 .vendor = "ESI",
3522 .name = "ES25P16",
3523 .bustype = BUS_SPI,
3524 .manufacture_id = EXCEL_ID_NOPREFIX,
3525 .model_id = EXCEL_ES25P16,
3526 .total_size = 2 * 1024,
3527 .page_size = 256,
3528 /* 256-byte parameter page separate from memory array:
3529 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3530 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003531 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003532 .probe = probe_spi_rdid,
3533 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003534 .block_erasers =
3535 {
3536 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003537 .eraseblocks = { {64 * 1024, 32} },
3538 .block_erase = spi_block_erase_d8,
Sean Nelson54596372010-01-09 05:30:14 +00003539 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003540 .eraseblocks = { {2 * 1024 * 1024, 1} },
3541 .block_erase = spi_block_erase_c7,
Sean Nelson54596372010-01-09 05:30:14 +00003542 }
3543 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003544 .printlock = spi_prettyprint_status_register_bp2_srwd,
3545 .unlock = spi_disable_blockprotect_bp2_srwd,
3546 .write = spi_chip_write_256,
3547 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3548 .voltage = {2700, 3600},
3549 },
3550
3551 {
3552 .vendor = "ESI",
3553 .name = "ES25P40",
3554 .bustype = BUS_SPI,
3555 .manufacture_id = EXCEL_ID_NOPREFIX,
3556 .model_id = EXCEL_ES25P40,
3557 .total_size = 512,
3558 .page_size = 256,
3559 /* 256-byte parameter page separate from memory array:
3560 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3561 .feature_bits = FEATURE_WRSR_WREN,
3562 .tested = TEST_UNTESTED,
3563 .probe = probe_spi_rdid,
3564 .probe_timing = TIMING_ZERO,
3565 .block_erasers =
3566 {
3567 {
3568 .eraseblocks = { {64 * 1024, 8} },
3569 .block_erase = spi_block_erase_d8,
3570 }, {
3571 .eraseblocks = { {512 * 1024, 1} },
3572 .block_erase = spi_block_erase_c7,
3573 }
3574 },
3575 .printlock = spi_prettyprint_status_register_bp2_srwd,
3576 .unlock = spi_disable_blockprotect_bp2_srwd,
3577 .write = spi_chip_write_256,
3578 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3579 .voltage = {2700, 3600},
3580 },
3581
3582 {
3583 .vendor = "ESI",
3584 .name = "ES25P80",
3585 .bustype = BUS_SPI,
3586 .manufacture_id = EXCEL_ID_NOPREFIX,
3587 .model_id = EXCEL_ES25P80,
3588 .total_size = 1024,
3589 .page_size = 256,
3590 /* 256-byte parameter page separate from memory array:
3591 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3592 .feature_bits = FEATURE_WRSR_WREN,
3593 .tested = TEST_UNTESTED,
3594 .probe = probe_spi_rdid,
3595 .probe_timing = TIMING_ZERO,
3596 .block_erasers =
3597 {
3598 {
3599 .eraseblocks = { {64 * 1024, 16} },
3600 .block_erase = spi_block_erase_d8,
3601 }, {
3602 .eraseblocks = { {1024 * 1024, 1} },
3603 .block_erase = spi_block_erase_c7,
3604 }
3605 },
3606 .printlock = spi_prettyprint_status_register_bp2_srwd,
3607 .unlock = spi_disable_blockprotect_bp2_srwd,
3608 .write = spi_chip_write_256,
3609 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3610 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003611 },
3612
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003613 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003614 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003615 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003616 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003617 .manufacture_id = ESMT_ID,
3618 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003619 .total_size = 1024,
3620 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003621 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003622 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003623 .probe = probe_spi_rdid,
3624 .probe_timing = TIMING_ZERO,
3625 .block_erasers =
3626 {
3627 {
3628 .eraseblocks = { {4 * 1024, 256} },
3629 .block_erase = spi_block_erase_20,
3630 }, {
3631 .eraseblocks = { {64 * 1024, 16} },
3632 .block_erase = spi_block_erase_d8,
3633 }, {
3634 .eraseblocks = { {1024 * 1024, 1} },
3635 .block_erase = spi_block_erase_60,
3636 }, {
3637 .eraseblocks = { {1024 * 1024, 1} },
3638 .block_erase = spi_block_erase_c7,
3639 }
3640 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003641 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003642 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003643 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003644 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003645 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003646 },
3647
3648 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003649 .vendor = "ESMT",
3650 .name = "F25L32PA",
3651 .bustype = BUS_SPI,
3652 .manufacture_id = ESMT_ID,
3653 .model_id = ESMT_F25L32PA,
3654 .total_size = 4096,
3655 .page_size = 256,
3656 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3657 .tested = TEST_UNTESTED,
3658 .probe = probe_spi_rdid,
3659 .probe_timing = TIMING_ZERO,
3660 .block_erasers =
3661 {
3662 {
3663 .eraseblocks = { {4 * 1024, 1024} },
3664 .block_erase = spi_block_erase_20,
3665 }, {
3666 .eraseblocks = { {64 * 1024, 64} },
3667 .block_erase = spi_block_erase_d8,
3668 }, {
3669 .eraseblocks = { {4 * 1024 * 1024, 1} },
3670 .block_erase = spi_block_erase_60,
3671 }, {
3672 .eraseblocks = { {4 * 1024 * 1024, 1} },
3673 .block_erase = spi_block_erase_c7,
3674 }
3675 },
3676 .printlock = spi_prettyprint_status_register_bp2_bpl,
3677 .unlock = spi_disable_blockprotect,
3678 .write = spi_chip_write_256,
3679 .read = spi_chip_read,
3680 .voltage = {2700, 3600},
3681 },
3682
3683 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003684 .vendor = "ESMT",
3685 .name = "F49B002UA",
3686 .bustype = BUS_PARALLEL,
3687 .manufacture_id = ESMT_ID,
3688 .model_id = ESMT_F49B002UA,
3689 .total_size = 256,
3690 .page_size = 4096,
3691 .feature_bits = FEATURE_EITHER_RESET,
3692 .tested = TEST_UNTESTED,
3693 .probe = probe_jedec,
3694 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3695 .block_erasers =
3696 {
3697 {
3698 .eraseblocks = {
3699 {128 * 1024, 1},
3700 {96 * 1024, 1},
3701 {8 * 1024, 2},
3702 {16 * 1024, 1},
3703 },
3704 .block_erase = erase_sector_jedec,
3705 }, {
3706 .eraseblocks = { {256 * 1024, 1} },
3707 .block_erase = erase_chip_block_jedec,
3708 }
3709 },
3710 .write = write_jedec_1,
3711 .read = read_memmapped,
3712 .voltage = {4500, 5500},
3713 },
3714
3715 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003716 .vendor = "Eon",
3717 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003718 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003719 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003720 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003721 .total_size = 64,
3722 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003723 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003724 .tested = TEST_UNTESTED,
3725 .probe = probe_spi_rdid,
3726 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003727 .block_erasers =
3728 {
3729 {
3730 .eraseblocks = {
3731 {4 * 1024, 2},
3732 {8 * 1024, 1},
3733 {16 * 1024, 1},
3734 {32 * 1024, 1},
3735 },
3736 .block_erase = spi_block_erase_d8,
3737 }, {
3738 .eraseblocks = { {64 * 1024, 1} },
3739 .block_erase = spi_block_erase_c7,
3740 }
3741 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003742 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003743 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003744 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003745 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003746 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003747 },
3748
3749 {
3750 .vendor = "Eon",
3751 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003752 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003753 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003754 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003755 .total_size = 64,
3756 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003757 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003758 .tested = TEST_UNTESTED,
3759 .probe = probe_spi_rdid,
3760 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003761 .block_erasers =
3762 {
3763 {
3764 .eraseblocks = {
3765 {32 * 1024, 1},
3766 {16 * 1024, 1},
3767 {8 * 1024, 1},
3768 {4 * 1024, 2},
3769 },
3770 .block_erase = spi_block_erase_d8,
3771 }, {
3772 .eraseblocks = { {64 * 1024, 1} },
3773 .block_erase = spi_block_erase_c7,
3774 }
3775 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003776 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003777 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003778 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003779 .read = spi_chip_read, /* Fast read (0x0B) supported */
3780 .voltage = {2700, 3600},
3781 },
3782
3783 {
3784 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003785 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003786 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003787 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003788 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003789 .total_size = 128,
3790 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003791 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003792 .tested = TEST_UNTESTED,
3793 .probe = probe_spi_rdid,
3794 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003795 .block_erasers =
3796 {
3797 {
3798 .eraseblocks = {
3799 {4 * 1024, 2},
3800 {8 * 1024, 1},
3801 {16 * 1024, 1},
3802 {32 * 1024, 3},
3803 },
3804 .block_erase = spi_block_erase_d8,
3805 }, {
3806 .eraseblocks = { {128 * 1024, 1} },
3807 .block_erase = spi_block_erase_c7,
3808 }
3809 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003810 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003811 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003812 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003813 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003814 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003815 },
3816
3817 {
3818 .vendor = "Eon",
3819 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003820 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003821 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003822 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003823 .total_size = 128,
3824 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003825 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003826 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003827 .probe = probe_spi_rdid,
3828 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003829 .block_erasers =
3830 {
3831 {
3832 .eraseblocks = {
3833 {32 * 1024, 3},
3834 {16 * 1024, 1},
3835 {8 * 1024, 1},
3836 {4 * 1024, 2},
3837 },
3838 .block_erase = spi_block_erase_d8,
3839 }, {
3840 .eraseblocks = { {128 * 1024, 1} },
3841 .block_erase = spi_block_erase_c7,
3842 }
3843 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003844 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003845 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003846 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003847 .read = spi_chip_read, /* Fast read (0x0B) supported */
3848 .voltage = {2700, 3600},
3849 },
3850
3851 {
3852 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003853 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003854 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003855 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003856 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003857 .total_size = 2048,
3858 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003859 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003860 .tested = TEST_UNTESTED,
3861 .probe = probe_spi_rdid,
3862 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003863 .block_erasers =
3864 {
3865 {
3866 .eraseblocks = {
3867 {4 * 1024, 2},
3868 {8 * 1024, 1},
3869 {16 * 1024, 1},
3870 {32 * 1024, 1},
3871 {64 * 1024, 31},
3872 },
3873 .block_erase = spi_block_erase_d8,
3874 }, {
3875 .eraseblocks = { {2 * 1024 * 1024, 1} },
3876 .block_erase = spi_block_erase_c7,
3877 }
3878 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003879 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003880 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003881 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003882 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003883 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003884 },
3885
3886 {
3887 .vendor = "Eon",
3888 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003889 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003890 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003891 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003892 .total_size = 2048,
3893 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003894 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003895 .tested = TEST_UNTESTED,
3896 .probe = probe_spi_rdid,
3897 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003898 .block_erasers =
3899 {
3900 {
3901 .eraseblocks = {
3902 {64 * 1024, 31},
3903 {32 * 1024, 1},
3904 {16 * 1024, 1},
3905 {8 * 1024, 1},
3906 {4 * 1024, 2},
3907 },
3908 .block_erase = spi_block_erase_d8,
3909 }, {
3910 .eraseblocks = { {2 * 1024 * 1024, 1} },
3911 .block_erase = spi_block_erase_c7,
3912 }
3913 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003914 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003915 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003916 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003917 .read = spi_chip_read, /* Fast read (0x0B) supported */
3918 .voltage = {2700, 3600},
3919 },
3920
3921 {
3922 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003923 .name = "EN25B20",
Stefan Taunerb175af52015-01-24 15:06:27 +00003924 .bustype = BUS_SPI,
3925 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003926 .model_id = EON_EN25B20,
3927 .total_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003928 .page_size = 256,
3929 .feature_bits = FEATURE_WRSR_WREN,
3930 .tested = TEST_UNTESTED,
3931 .probe = probe_spi_rdid,
3932 .probe_timing = TIMING_ZERO,
3933 .block_erasers =
3934 {
3935 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003936 .eraseblocks = {
3937 {4 * 1024, 2},
3938 {8 * 1024, 1},
3939 {16 * 1024, 1},
3940 {32 * 1024, 1},
3941 {64 * 1024, 3}
3942 },
Stefan Taunerb175af52015-01-24 15:06:27 +00003943 .block_erase = spi_block_erase_d8,
3944 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003945 .eraseblocks = { {256 * 1024, 1} },
3946 .block_erase = spi_block_erase_c7,
3947 }
3948 },
3949 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3950 .unlock = spi_disable_blockprotect,
3951 .write = spi_chip_write_256,
3952 .read = spi_chip_read, /* Fast read (0x0B) supported */
3953 .voltage = {2700, 3600},
3954 },
3955
3956 {
3957 .vendor = "Eon",
3958 .name = "EN25B20T",
3959 .bustype = BUS_SPI,
3960 .manufacture_id = EON_ID_NOPREFIX,
3961 .model_id = EON_EN25B20,
3962 .total_size = 256,
3963 .page_size = 256,
3964 .feature_bits = FEATURE_WRSR_WREN,
3965 .tested = TEST_UNTESTED,
3966 .probe = probe_spi_rdid,
3967 .probe_timing = TIMING_ZERO,
3968 .block_erasers =
3969 {
3970 {
3971 .eraseblocks = {
3972 {64 * 1024, 3},
3973 {32 * 1024, 1},
3974 {16 * 1024, 1},
3975 {8 * 1024, 1},
3976 {4 * 1024, 2},
3977 },
3978 .block_erase = spi_block_erase_d8,
3979 }, {
3980 .eraseblocks = { {256 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00003981 .block_erase = spi_block_erase_c7,
3982 }
3983 },
3984 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3985 .unlock = spi_disable_blockprotect,
3986 .write = spi_chip_write_256,
3987 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003988 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003989 },
3990
3991 {
3992 .vendor = "Eon",
3993 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003994 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003995 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003996 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003997 .total_size = 4096,
3998 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003999 /* OTP: 512B total; enter 0x3A */
4000 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004001 .tested = TEST_UNTESTED,
4002 .probe = probe_spi_rdid,
4003 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004004 .block_erasers =
4005 {
4006 {
4007 .eraseblocks = {
4008 {4 * 1024, 2},
4009 {8 * 1024, 1},
4010 {16 * 1024, 1},
4011 {32 * 1024, 1},
4012 {64 * 1024, 63},
4013 },
4014 .block_erase = spi_block_erase_d8,
4015 }, {
4016 .eraseblocks = { {4 * 1024 * 1024, 1} },
4017 .block_erase = spi_block_erase_c7,
4018 }
4019 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004020 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004021 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004022 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004023 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004024 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004025 },
4026
4027 {
4028 .vendor = "Eon",
4029 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004030 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004031 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004032 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004033 .total_size = 4096,
4034 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004035 /* OTP: 512B total; enter 0x3A */
4036 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004037 .tested = TEST_UNTESTED,
4038 .probe = probe_spi_rdid,
4039 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004040 .block_erasers =
4041 {
4042 {
4043 .eraseblocks = {
4044 {64 * 1024, 63},
4045 {32 * 1024, 1},
4046 {16 * 1024, 1},
4047 {8 * 1024, 1},
4048 {4 * 1024, 2},
4049 },
4050 .block_erase = spi_block_erase_d8,
4051 }, {
4052 .eraseblocks = { {4 * 1024 * 1024, 1} },
4053 .block_erase = spi_block_erase_c7,
4054 }
4055 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004056 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004057 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004058 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004059 .read = spi_chip_read, /* Fast read (0x0B) supported */
4060 .voltage = {2700, 3600},
4061 },
4062
4063 {
4064 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004065 .name = "EN25B40",
Stefan Taunerb175af52015-01-24 15:06:27 +00004066 .bustype = BUS_SPI,
4067 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004068 .model_id = EON_EN25B40,
4069 .total_size = 512,
Stefan Taunerb175af52015-01-24 15:06:27 +00004070 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004071 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004072 .tested = TEST_UNTESTED,
4073 .probe = probe_spi_rdid,
4074 .probe_timing = TIMING_ZERO,
4075 .block_erasers =
4076 {
4077 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004078 .eraseblocks = {
4079 {4 * 1024, 2},
4080 {8 * 1024, 1},
4081 {16 * 1024, 1},
4082 {32 * 1024, 1},
4083 {64 * 1024, 7}
4084 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004085 .block_erase = spi_block_erase_d8,
4086 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004087 .eraseblocks = { {512 * 1024, 1} },
4088 .block_erase = spi_block_erase_c7,
4089 }
4090 },
4091 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4092 .unlock = spi_disable_blockprotect,
4093 .write = spi_chip_write_256,
4094 .read = spi_chip_read, /* Fast read (0x0B) supported */
4095 .voltage = {2700, 3600},
4096 },
4097
4098 {
4099 .vendor = "Eon",
4100 .name = "EN25B40T",
4101 .bustype = BUS_SPI,
4102 .manufacture_id = EON_ID_NOPREFIX,
4103 .model_id = EON_EN25B40,
4104 .total_size = 512,
4105 .page_size = 256,
4106 .feature_bits = FEATURE_WRSR_WREN,
4107 .tested = TEST_UNTESTED,
4108 .probe = probe_spi_rdid,
4109 .probe_timing = TIMING_ZERO,
4110 .block_erasers =
4111 {
4112 {
4113 .eraseblocks = {
4114 {64 * 1024, 7},
4115 {32 * 1024, 1},
4116 {16 * 1024, 1},
4117 {8 * 1024, 1},
4118 {4 * 1024, 2},
4119 },
4120 .block_erase = spi_block_erase_d8,
4121 }, {
4122 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004123 .block_erase = spi_block_erase_c7,
4124 }
4125 },
4126 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4127 .unlock = spi_disable_blockprotect,
4128 .write = spi_chip_write_256,
4129 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004130 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004131 },
4132
4133 {
4134 .vendor = "Eon",
4135 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004136 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004137 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004138 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004139 .total_size = 8192,
4140 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004141 /* OTP: 512B total; enter 0x3A */
4142 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004143 .tested = TEST_UNTESTED,
4144 .probe = probe_spi_rdid,
4145 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004146 .block_erasers =
4147 {
4148 {
4149 .eraseblocks = {
4150 {4 * 1024, 2},
4151 {8 * 1024, 1},
4152 {16 * 1024, 1},
4153 {32 * 1024, 1},
4154 {64 * 1024, 127},
4155 },
4156 .block_erase = spi_block_erase_d8,
4157 }, {
4158 .eraseblocks = { {8 * 1024 * 1024, 1} },
4159 .block_erase = spi_block_erase_c7,
4160 }
4161 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004162 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004163 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004164 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004165 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004166 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004167 },
4168
4169 {
4170 .vendor = "Eon",
4171 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004172 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004173 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004174 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004175 .total_size = 8192,
4176 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004177 /* OTP: 512B total; enter 0x3A */
4178 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004179 .tested = TEST_UNTESTED,
4180 .probe = probe_spi_rdid,
4181 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004182 .block_erasers =
4183 {
4184 {
4185 .eraseblocks = {
4186 {64 * 1024, 127},
4187 {32 * 1024, 1},
4188 {16 * 1024, 1},
4189 {8 * 1024, 1},
4190 {4 * 1024, 2},
4191 },
4192 .block_erase = spi_block_erase_d8,
4193 }, {
4194 .eraseblocks = { {8 * 1024 * 1024, 1} },
4195 .block_erase = spi_block_erase_c7,
4196 }
4197 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004198 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004199 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004200 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004201 .read = spi_chip_read, /* Fast read (0x0B) supported */
4202 .voltage = {2700, 3600},
4203 },
4204
4205 {
4206 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004207 .name = "EN25B80",
Stefan Taunerb175af52015-01-24 15:06:27 +00004208 .bustype = BUS_SPI,
4209 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004210 .model_id = EON_EN25B80,
4211 .total_size = 1024,
Stefan Taunerb175af52015-01-24 15:06:27 +00004212 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004213 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004214 .tested = TEST_UNTESTED,
4215 .probe = probe_spi_rdid,
4216 .probe_timing = TIMING_ZERO,
4217 .block_erasers =
4218 {
4219 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004220 .eraseblocks = {
4221 {4 * 1024, 2},
4222 {8 * 1024, 1},
4223 {16 * 1024, 1},
4224 {32 * 1024, 1},
4225 {64 * 1024, 15}
4226 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004227 .block_erase = spi_block_erase_d8,
4228 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004229 .eraseblocks = { {1024 * 1024, 1} },
4230 .block_erase = spi_block_erase_c7,
4231 }
4232 },
4233 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4234 .unlock = spi_disable_blockprotect,
4235 .write = spi_chip_write_256,
4236 .read = spi_chip_read, /* Fast read (0x0B) supported */
4237 .voltage = {2700, 3600},
4238 },
4239
4240 {
4241 .vendor = "Eon",
4242 .name = "EN25B80T",
4243 .bustype = BUS_SPI,
4244 .manufacture_id = EON_ID_NOPREFIX,
4245 .model_id = EON_EN25B80,
4246 .total_size = 1024,
4247 .page_size = 256,
4248 .feature_bits = FEATURE_WRSR_WREN,
4249 .tested = TEST_UNTESTED,
4250 .probe = probe_spi_rdid,
4251 .probe_timing = TIMING_ZERO,
4252 .block_erasers =
4253 {
4254 {
4255 .eraseblocks = {
4256 {64 * 1024, 15},
4257 {32 * 1024, 1},
4258 {16 * 1024, 1},
4259 {8 * 1024, 1},
4260 {4 * 1024, 2},
4261 },
4262 .block_erase = spi_block_erase_d8,
4263 }, {
4264 .eraseblocks = { {1024 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004265 .block_erase = spi_block_erase_c7,
4266 }
4267 },
4268 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4269 .unlock = spi_disable_blockprotect,
4270 .write = spi_chip_write_256,
4271 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004272 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004273 },
4274
4275 {
4276 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004277 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004278 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004279 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004280 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004281 .total_size = 64,
4282 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004283 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004284 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004285 .probe = probe_spi_rdid,
4286 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004287 .block_erasers =
4288 {
4289 {
4290 .eraseblocks = { {4 * 1024, 16} },
4291 .block_erase = spi_block_erase_20,
4292 }, {
4293 .eraseblocks = { {32 * 1024, 2} },
4294 .block_erase = spi_block_erase_d8,
4295 }, {
4296 .eraseblocks = { {32 * 1024, 2} },
4297 .block_erase = spi_block_erase_52,
4298 }, {
4299 .eraseblocks = { {64 * 1024, 1} },
4300 .block_erase = spi_block_erase_60,
4301 }, {
4302 .eraseblocks = { {64 * 1024, 1} },
4303 .block_erase = spi_block_erase_c7,
4304 }
4305 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004306 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004307 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004308 .write = spi_chip_write_256,
4309 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004310 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004311 },
4312
4313 {
4314 .vendor = "Eon",
4315 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004316 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004317 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004318 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004319 .total_size = 128,
4320 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004321 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004322 .tested = TEST_UNTESTED,
4323 .probe = probe_spi_rdid,
4324 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004325 .block_erasers =
4326 {
4327 {
4328 .eraseblocks = { {4 * 1024, 32} },
4329 .block_erase = spi_block_erase_20,
4330 }, {
4331 .eraseblocks = { {32 * 1024, 4} },
4332 .block_erase = spi_block_erase_d8,
4333 }, {
4334 .eraseblocks = { {32 * 1024, 4} },
4335 .block_erase = spi_block_erase_52,
4336 }, {
4337 .eraseblocks = { {128 * 1024, 1} },
4338 .block_erase = spi_block_erase_60,
4339 }, {
4340 .eraseblocks = { {128 * 1024, 1} },
4341 .block_erase = spi_block_erase_c7,
4342 }
4343 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004344 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004345 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004346 .write = spi_chip_write_256,
4347 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004348 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004349 },
4350
4351 {
4352 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004353 .name = "EN25F16",
4354 .bustype = BUS_SPI,
4355 .manufacture_id = EON_ID_NOPREFIX,
4356 .model_id = EON_EN25F16,
4357 .total_size = 2048,
4358 .page_size = 256,
4359 .feature_bits = FEATURE_WRSR_WREN,
4360 .tested = TEST_OK_PREW,
4361 .probe = probe_spi_rdid,
4362 .probe_timing = TIMING_ZERO,
4363 .block_erasers =
4364 {
4365 {
4366 .eraseblocks = { {4 * 1024, 512} },
4367 .block_erase = spi_block_erase_20,
4368 }, {
4369 .eraseblocks = { {64 * 1024, 32} },
4370 .block_erase = spi_block_erase_d8,
4371 }, {
4372 .eraseblocks = { {2 * 1024 * 1024, 1} },
4373 .block_erase = spi_block_erase_60,
4374 }, {
4375 .eraseblocks = { {2 * 1024 * 1024, 1} },
4376 .block_erase = spi_block_erase_c7,
4377 }
4378 },
4379 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4380 .unlock = spi_disable_blockprotect,
4381 .write = spi_chip_write_256,
4382 .read = spi_chip_read,
4383 .voltage = {2700, 3600},
4384 },
4385
4386 {
4387 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004388 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004389 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004390 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004391 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004392 .total_size = 256,
4393 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004394 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004395 .tested = TEST_UNTESTED,
4396 .probe = probe_spi_rdid,
4397 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004398 .block_erasers =
4399 {
4400 {
4401 .eraseblocks = { {4 * 1024, 64} },
4402 .block_erase = spi_block_erase_20,
4403 }, {
4404 .eraseblocks = { {64 * 1024, 4} },
4405 .block_erase = spi_block_erase_d8,
4406 }, {
4407 .eraseblocks = { {64 * 1024, 4} },
4408 .block_erase = spi_block_erase_52,
4409 }, {
4410 .eraseblocks = { {256 * 1024, 1} },
4411 .block_erase = spi_block_erase_60,
4412 }, {
4413 .eraseblocks = { {256 * 1024, 1} },
4414 .block_erase = spi_block_erase_c7,
4415 }
4416 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004417 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004418 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004419 .write = spi_chip_write_256,
4420 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004421 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004422 },
4423
4424 {
4425 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004426 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004427 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004428 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004429 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004430 .total_size = 4096,
4431 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004432 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004433 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004434 .probe = probe_spi_rdid,
4435 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004436 .block_erasers =
4437 {
4438 {
4439 .eraseblocks = { {4 * 1024, 1024} },
4440 .block_erase = spi_block_erase_20,
4441 }, {
4442 .eraseblocks = { {64 * 1024, 64} },
4443 .block_erase = spi_block_erase_d8,
4444 }, {
4445 .eraseblocks = { {4 * 1024 * 1024, 1} },
4446 .block_erase = spi_block_erase_60,
4447 }, {
4448 .eraseblocks = { {4 * 1024 * 1024, 1} },
4449 .block_erase = spi_block_erase_c7,
4450 }
4451 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004452 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004453 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004454 .write = spi_chip_write_256,
4455 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004456 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004457 },
4458
4459 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004460 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004461 .name = "EN25F40",
4462 .bustype = BUS_SPI,
4463 .manufacture_id = EON_ID_NOPREFIX,
4464 .model_id = EON_EN25F40,
4465 .total_size = 512,
4466 .page_size = 256,
4467 .feature_bits = FEATURE_WRSR_WREN,
4468 .tested = TEST_OK_PREW,
4469 .probe = probe_spi_rdid,
4470 .probe_timing = TIMING_ZERO,
4471 .block_erasers =
4472 {
4473 {
4474 .eraseblocks = { {4 * 1024, 128} },
4475 .block_erase = spi_block_erase_20,
4476 }, {
4477 .eraseblocks = { {64 * 1024, 8} },
4478 .block_erase = spi_block_erase_d8,
4479 }, {
4480 .eraseblocks = { {512 * 1024, 1} },
4481 .block_erase = spi_block_erase_60,
4482 }, {
4483 .eraseblocks = { {512 * 1024, 1} },
4484 .block_erase = spi_block_erase_c7,
4485 },
4486 },
4487 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4488 .unlock = spi_disable_blockprotect,
4489 .write = spi_chip_write_256,
4490 .read = spi_chip_read,
4491 .voltage = {2700, 3600},
4492 },
4493
4494 {
4495 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004496 .name = "EN25F64",
4497 .bustype = BUS_SPI,
4498 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004499 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004500 .total_size = 8192,
4501 .page_size = 256,
4502 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004503 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004504 .probe = probe_spi_rdid,
4505 .probe_timing = TIMING_ZERO,
4506 .block_erasers =
4507 {
4508 {
4509 .eraseblocks = { {4 * 1024, 2048} },
4510 .block_erase = spi_block_erase_20,
4511 }, {
4512 .eraseblocks = { {64 * 1024, 128} },
4513 .block_erase = spi_block_erase_d8,
4514 }, {
4515 .eraseblocks = { {8 * 1024 * 1024, 1} },
4516 .block_erase = spi_block_erase_60,
4517 }, {
4518 .eraseblocks = { {8 * 1024 * 1024, 1} },
4519 .block_erase = spi_block_erase_c7,
4520 }
4521 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004522 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004523 .unlock = spi_disable_blockprotect,
4524 .write = spi_chip_write_256,
4525 .read = spi_chip_read,
4526 .voltage = {2700, 3600},
4527 },
4528
4529 {
4530 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004531 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004532 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004533 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004534 .model_id = EON_EN25F80,
David Hendricks6d715302011-07-24 22:21:57 +00004535 .total_size = 1024,
4536 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004537 .feature_bits = FEATURE_WRSR_WREN,
4538 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004539 .probe = probe_spi_rdid,
4540 .probe_timing = TIMING_ZERO,
4541 .block_erasers =
4542 {
4543 {
4544 .eraseblocks = { {4 * 1024, 256} },
4545 .block_erase = spi_block_erase_20,
4546 }, {
4547 .eraseblocks = { {64 * 1024, 16} },
4548 .block_erase = spi_block_erase_d8,
4549 }, {
4550 .eraseblocks = { {1024 * 1024, 1} },
4551 .block_erase = spi_block_erase_60,
4552 }, {
4553 .eraseblocks = { {1024 * 1024, 1} },
4554 .block_erase = spi_block_erase_c7,
4555 }
4556 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004557 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004558 .unlock = spi_disable_blockprotect,
4559 .write = spi_chip_write_256,
4560 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004561 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004562 },
4563
4564 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004565 .vendor = "Eon",
4566 .name = "EN25P05",
4567 .bustype = BUS_SPI,
4568 .manufacture_id = EON_ID_NOPREFIX,
4569 .model_id = EON_EN25B05,
4570 .total_size = 64,
4571 .page_size = 256,
4572 .feature_bits = FEATURE_WRSR_WREN,
4573 .tested = TEST_UNTESTED,
4574 .probe = probe_spi_rdid,
4575 .probe_timing = TIMING_ZERO,
4576 .block_erasers =
4577 {
4578 {
4579 .eraseblocks = {
4580 {32 * 1024, 2} },
4581 .block_erase = spi_block_erase_d8,
4582 }, {
4583 .eraseblocks = { {64 * 1024, 1} },
4584 .block_erase = spi_block_erase_c7,
4585 }
4586 },
4587 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4588 .unlock = spi_disable_blockprotect,
4589 .write = spi_chip_write_256,
4590 .read = spi_chip_read, /* Fast read (0x0B) supported */
4591 .voltage = {2700, 3600},
4592 },
4593
4594 {
4595 .vendor = "Eon",
4596 .name = "EN25P10",
4597 .bustype = BUS_SPI,
4598 .manufacture_id = EON_ID_NOPREFIX,
4599 .model_id = EON_EN25B10,
4600 .total_size = 128,
4601 .page_size = 256,
4602 .feature_bits = FEATURE_WRSR_WREN,
4603 .tested = TEST_UNTESTED,
4604 .probe = probe_spi_rdid,
4605 .probe_timing = TIMING_ZERO,
4606 .block_erasers =
4607 {
4608 {
4609 .eraseblocks = { {32 * 1024, 4} },
4610 .block_erase = spi_block_erase_d8,
4611 }, {
4612 .eraseblocks = { {128 * 1024, 1} },
4613 .block_erase = spi_block_erase_c7,
4614 }
4615 },
4616 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4617 .unlock = spi_disable_blockprotect,
4618 .write = spi_chip_write_256,
4619 .read = spi_chip_read, /* Fast read (0x0B) supported */
4620 .voltage = {2700, 3600},
4621 },
4622
4623 {
4624 .vendor = "Eon",
4625 .name = "EN25P16",
4626 .bustype = BUS_SPI,
4627 .manufacture_id = EON_ID_NOPREFIX,
4628 .model_id = EON_EN25B16,
4629 .total_size = 2048,
4630 .page_size = 256,
4631 .feature_bits = FEATURE_WRSR_WREN,
4632 .tested = TEST_UNTESTED,
4633 .probe = probe_spi_rdid,
4634 .probe_timing = TIMING_ZERO,
4635 .block_erasers =
4636 {
4637 {
4638 .eraseblocks = { {64 * 1024, 32} },
4639 .block_erase = spi_block_erase_d8,
4640 }, {
4641 .eraseblocks = { {2 * 1024 * 1024, 1} },
4642 .block_erase = spi_block_erase_c7,
4643 }
4644 },
4645 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4646 .unlock = spi_disable_blockprotect,
4647 .write = spi_chip_write_256,
4648 .read = spi_chip_read, /* Fast read (0x0B) supported */
4649 .voltage = {2700, 3600},
4650 },
4651
4652 {
4653 .vendor = "Eon",
4654 .name = "EN25P20",
4655 .bustype = BUS_SPI,
4656 .manufacture_id = EON_ID_NOPREFIX,
4657 .model_id = EON_EN25B20,
4658 .total_size = 256,
4659 .page_size = 256,
4660 .feature_bits = FEATURE_WRSR_WREN,
4661 .tested = TEST_UNTESTED,
4662 .probe = probe_spi_rdid,
4663 .probe_timing = TIMING_ZERO,
4664 .block_erasers =
4665 {
4666 {
4667 .eraseblocks = { {64 * 1024, 4} },
4668 .block_erase = spi_block_erase_d8,
4669 }, {
4670 .eraseblocks = { {256 * 1024, 1} },
4671 .block_erase = spi_block_erase_c7,
4672 }
4673 },
4674 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4675 .unlock = spi_disable_blockprotect,
4676 .write = spi_chip_write_256,
4677 .read = spi_chip_read, /* Fast read (0x0B) supported */
4678 .voltage = {2700, 3600},
4679 },
4680
4681 {
4682 .vendor = "Eon",
4683 .name = "EN25P32", /* Uniform version of EN25B32 */
4684 .bustype = BUS_SPI,
4685 .manufacture_id = EON_ID_NOPREFIX,
4686 .model_id = EON_EN25B32,
4687 .total_size = 4096,
4688 .page_size = 256,
4689 /* OTP: 512B total; enter 0x3A */
4690 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4691 .tested = TEST_UNTESTED,
4692 .probe = probe_spi_rdid,
4693 .probe_timing = TIMING_ZERO,
4694 .block_erasers =
4695 {
4696 {
4697 .eraseblocks = { {64 * 1024, 64} },
4698 .block_erase = spi_block_erase_d8,
4699 }, {
4700 .eraseblocks = { {4 * 1024 * 1024, 1} },
4701 .block_erase = spi_block_erase_c7,
4702 }
4703 },
4704 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4705 .unlock = spi_disable_blockprotect,
4706 .write = spi_chip_write_256,
4707 .read = spi_chip_read, /* Fast read (0x0B) supported */
4708 .voltage = {2700, 3600},
4709 },
4710
4711 {
4712 .vendor = "Eon",
4713 .name = "EN25P40",
4714 .bustype = BUS_SPI,
4715 .manufacture_id = EON_ID_NOPREFIX,
4716 .model_id = EON_EN25B40,
4717 .total_size = 512,
4718 .page_size = 256,
4719 .feature_bits = FEATURE_WRSR_WREN,
4720 .tested = TEST_UNTESTED,
4721 .probe = probe_spi_rdid,
4722 .probe_timing = TIMING_ZERO,
4723 .block_erasers =
4724 {
4725 {
4726 .eraseblocks = { {64 * 1024, 8} },
4727 .block_erase = spi_block_erase_d8,
4728 }, {
4729 .eraseblocks = { {512 * 1024, 1} },
4730 .block_erase = spi_block_erase_c7,
4731 }
4732 },
4733 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4734 .unlock = spi_disable_blockprotect,
4735 .write = spi_chip_write_256,
4736 .read = spi_chip_read, /* Fast read (0x0B) supported */
4737 .voltage = {2700, 3600},
4738 },
4739
4740 {
4741 .vendor = "Eon",
4742 .name = "EN25P64",
4743 .bustype = BUS_SPI,
4744 .manufacture_id = EON_ID_NOPREFIX,
4745 .model_id = EON_EN25B64,
4746 .total_size = 8192,
4747 .page_size = 256,
4748 /* OTP: 512B total; enter 0x3A */
4749 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4750 .tested = TEST_UNTESTED,
4751 .probe = probe_spi_rdid,
4752 .probe_timing = TIMING_ZERO,
4753 .block_erasers =
4754 {
4755 {
4756 .eraseblocks = { {64 * 1024, 128} },
4757 .block_erase = spi_block_erase_d8,
4758 }, {
4759 .eraseblocks = { {8 * 1024 * 1024, 1} },
4760 .block_erase = spi_block_erase_c7,
4761 }
4762 },
4763 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4764 .unlock = spi_disable_blockprotect,
4765 .write = spi_chip_write_256,
4766 .read = spi_chip_read, /* Fast read (0x0B) supported */
4767 .voltage = {2700, 3600},
4768 },
4769
4770 {
4771 .vendor = "Eon",
4772 .name = "EN25P80",
4773 .bustype = BUS_SPI,
4774 .manufacture_id = EON_ID_NOPREFIX,
4775 .model_id = EON_EN25B80,
4776 .total_size = 1024,
4777 .page_size = 256,
4778 .feature_bits = FEATURE_WRSR_WREN,
4779 .tested = TEST_UNTESTED,
4780 .probe = probe_spi_rdid,
4781 .probe_timing = TIMING_ZERO,
4782 .block_erasers =
4783 {
4784 {
4785 .eraseblocks = { {64 * 1024, 16} },
4786 .block_erase = spi_block_erase_d8,
4787 }, {
4788 .eraseblocks = { {1024 * 1024, 1} },
4789 .block_erase = spi_block_erase_c7,
4790 }
4791 },
4792 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4793 .unlock = spi_disable_blockprotect,
4794 .write = spi_chip_write_256,
4795 .read = spi_chip_read, /* Fast read (0x0B) supported */
4796 .voltage = {2700, 3600},
4797 },
4798
4799 {
4800 .vendor = "Eon",
4801 .name = "EN25Q128",
4802 .bustype = BUS_SPI,
4803 .manufacture_id = EON_ID_NOPREFIX,
4804 .model_id = EON_EN25Q128,
4805 .total_size = 16384,
4806 .page_size = 256,
4807 /* OTP: 512B total; enter 0x3A */
4808 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4809 .tested = TEST_OK_PREW,
4810 .probe = probe_spi_rdid,
4811 .probe_timing = TIMING_ZERO,
4812 .block_erasers =
4813 {
4814 {
4815 .eraseblocks = { {4 * 1024, 4096} },
4816 .block_erase = spi_block_erase_20,
4817 }, {
4818 .eraseblocks = { {64 * 1024, 256} },
4819 .block_erase = spi_block_erase_d8,
4820 }, {
4821 .eraseblocks = { {16 * 1024 * 1024, 1} },
4822 .block_erase = spi_block_erase_60,
4823 }, {
4824 .eraseblocks = { {16 * 1024 * 1024, 1} },
4825 .block_erase = spi_block_erase_c7,
4826 }
4827 },
4828 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4829 .unlock = spi_disable_blockprotect,
4830 .write = spi_chip_write_256,
4831 .read = spi_chip_read,
4832 },
4833
4834 {
David Hendricks6d715302011-07-24 22:21:57 +00004835 /* Note: EN25D16 is an evil twin which shares the model ID
4836 but has different write protection capabilities */
4837 .vendor = "Eon",
4838 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004839 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004840 .manufacture_id = EON_ID_NOPREFIX,
4841 .model_id = EON_EN25Q16,
4842 .total_size = 2048,
4843 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004844 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4845 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004846 .tested = TEST_UNTESTED,
4847 .probe = probe_spi_rdid,
4848 .probe_timing = TIMING_ZERO,
4849 .block_erasers =
4850 {
4851 {
4852 .eraseblocks = { {4 * 1024, 512} },
4853 .block_erase = spi_block_erase_20,
4854 }, {
4855 .eraseblocks = { {64 * 1024, 32} },
4856 .block_erase = spi_block_erase_d8,
4857 }, {
4858 /* not supported by Q16 version */
4859 .eraseblocks = { {64 * 1024, 32} },
4860 .block_erase = spi_block_erase_52,
4861 }, {
4862 .eraseblocks = { {2 * 1024 * 1024, 1} },
4863 .block_erase = spi_block_erase_60,
4864 }, {
4865 .eraseblocks = { {2 * 1024 * 1024, 1} },
4866 .block_erase = spi_block_erase_c7,
4867 }
4868 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004869 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004870 .unlock = spi_disable_blockprotect,
4871 .write = spi_chip_write_256,
4872 .read = spi_chip_read,
4873 .voltage = {2700, 3600},
4874 },
4875
4876 {
4877 .vendor = "Eon",
4878 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004879 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004880 .manufacture_id = EON_ID_NOPREFIX,
4881 .model_id = EON_EN25Q32,
4882 .total_size = 4096,
4883 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004884 /* OTP: 512B total; enter 0x3A */
4885 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004886 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004887 .probe = probe_spi_rdid,
4888 .probe_timing = TIMING_ZERO,
4889 .block_erasers =
4890 {
4891 {
4892 .eraseblocks = { {4 * 1024, 1024} },
4893 .block_erase = spi_block_erase_20,
4894 }, {
4895 .eraseblocks = { {64 * 1024, 64} },
4896 .block_erase = spi_block_erase_d8,
4897 }, {
4898 .eraseblocks = { {4 * 1024 * 1024, 1} },
4899 .block_erase = spi_block_erase_60,
4900 }, {
4901 .eraseblocks = { {4 * 1024 * 1024, 1} },
4902 .block_erase = spi_block_erase_c7,
4903 }
4904 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004905 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004906 .unlock = spi_disable_blockprotect,
4907 .write = spi_chip_write_256,
4908 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004909 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004910 },
4911
4912 {
4913 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004914 .name = "EN25Q40",
4915 .bustype = BUS_SPI,
4916 .manufacture_id = EON_ID_NOPREFIX,
4917 .model_id = EON_EN25Q40,
4918 .total_size = 512,
4919 .page_size = 256,
4920 /* OTP: 256B total; enter 0x3A */
4921 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4922 .tested = TEST_UNTESTED,
4923 .probe = probe_spi_rdid,
4924 .probe_timing = TIMING_ZERO,
4925 .block_erasers =
4926 {
4927 {
4928 .eraseblocks = { {4 * 1024, 128} },
4929 .block_erase = spi_block_erase_20,
4930 }, {
4931 .eraseblocks = { {64 * 1024, 8} },
4932 .block_erase = spi_block_erase_d8,
4933 }, {
4934 .eraseblocks = { {512 * 1024, 1} },
4935 .block_erase = spi_block_erase_60,
4936 }, {
4937 .eraseblocks = { {512 * 1024, 1} },
4938 .block_erase = spi_block_erase_c7,
4939 }
4940 },
4941 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4942 .unlock = spi_disable_blockprotect,
4943 .write = spi_chip_write_256,
4944 .read = spi_chip_read,
4945 .voltage = {2700, 3600},
4946 },
4947
4948 {
4949 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004950 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004951 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004952 .manufacture_id = EON_ID_NOPREFIX,
4953 .model_id = EON_EN25Q64,
4954 .total_size = 8192,
4955 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004956 /* OTP: 512B total; enter 0x3A */
4957 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004958 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004959 .probe = probe_spi_rdid,
4960 .probe_timing = TIMING_ZERO,
4961 .block_erasers =
4962 {
4963 {
4964 .eraseblocks = { {4 * 1024, 2048} },
4965 .block_erase = spi_block_erase_20,
4966 }, {
4967 .eraseblocks = { {64 * 1024, 128} },
4968 .block_erase = spi_block_erase_d8,
4969 }, {
4970 .eraseblocks = { {8 * 1024 * 1024, 1} },
4971 .block_erase = spi_block_erase_60,
4972 }, {
4973 .eraseblocks = { {8 * 1024 * 1024, 1} },
4974 .block_erase = spi_block_erase_c7,
4975 }
4976 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004977 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004978 .unlock = spi_disable_blockprotect,
4979 .write = spi_chip_write_256,
4980 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004981 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004982 },
4983
4984 {
4985 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004986 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004987 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004988 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004989 .model_id = EON_EN25Q80,
4990 .total_size = 1024,
4991 .page_size = 256,
4992 /* OTP: 256B total; enter 0x3A */
4993 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4994 .tested = TEST_UNTESTED,
4995 .probe = probe_spi_rdid,
4996 .probe_timing = TIMING_ZERO,
4997 .block_erasers =
4998 {
4999 {
5000 .eraseblocks = { {4 * 1024, 256} },
5001 .block_erase = spi_block_erase_20,
5002 }, {
5003 .eraseblocks = { {64 * 1024, 16} },
5004 .block_erase = spi_block_erase_d8,
5005 }, {
5006 .eraseblocks = { {1024 * 1024, 1} },
5007 .block_erase = spi_block_erase_60,
5008 }, {
5009 .eraseblocks = { {1024 * 1024, 1} },
5010 .block_erase = spi_block_erase_c7,
5011 }
5012 },
5013 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5014 .unlock = spi_disable_blockprotect,
5015 .write = spi_chip_write_256,
5016 .read = spi_chip_read,
5017 .voltage = {2700, 3600},
5018 },
5019
5020 {
5021 .vendor = "Eon",
5022 .name = "EN25QH128",
5023 .bustype = BUS_SPI,
5024 .manufacture_id = EON_ID_NOPREFIX,
5025 .model_id = EON_EN25QH128,
David Hendricks6d715302011-07-24 22:21:57 +00005026 .total_size = 16384,
5027 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005028 /* supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00005029 /* OTP: 512B total; enter 0x3A */
Alan Green1f9cc7d2019-07-01 11:10:45 +10005030 /* QPI enable 0x38, disable 0xFF */
5031 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5032 .tested = TEST_UNTESTED,
David Hendricks6d715302011-07-24 22:21:57 +00005033 .probe = probe_spi_rdid,
5034 .probe_timing = TIMING_ZERO,
5035 .block_erasers =
5036 {
5037 {
5038 .eraseblocks = { {4 * 1024, 4096} },
5039 .block_erase = spi_block_erase_20,
5040 }, {
5041 .eraseblocks = { {64 * 1024, 256} },
5042 .block_erase = spi_block_erase_d8,
5043 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005044 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005045 .block_erase = spi_block_erase_60,
5046 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005047 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005048 .block_erase = spi_block_erase_c7,
5049 }
5050 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005051 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5052 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005053 .write = spi_chip_write_256,
5054 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005055 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005056 },
5057
5058 {
5059 .vendor = "Eon",
5060 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005061 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005062 .manufacture_id = EON_ID_NOPREFIX,
5063 .model_id = EON_EN25QH16,
5064 .total_size = 2048,
5065 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005066 /* supports SFDP */
5067 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005068 /* QPI enable 0x38, disable 0xFF */
5069 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00005070 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005071 .probe = probe_spi_rdid,
5072 .probe_timing = TIMING_ZERO,
5073 .block_erasers =
5074 {
5075 {
5076 .eraseblocks = { {4 * 1024, 512} },
5077 .block_erase = spi_block_erase_20,
5078 }, {
5079 .eraseblocks = { {64 * 1024, 32} },
5080 .block_erase = spi_block_erase_d8,
5081 }, {
5082 .eraseblocks = { {1024 * 2048, 1} },
5083 .block_erase = spi_block_erase_60,
5084 }, {
5085 .eraseblocks = { {1024 * 2048, 1} },
5086 .block_erase = spi_block_erase_c7,
5087 }
5088 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005089 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005090 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005091 .write = spi_chip_write_256,
5092 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005093 .voltage = {2700, 3600},
5094 },
5095
5096 {
5097 .vendor = "Eon",
5098 .name = "EN25QH32",
5099 .bustype = BUS_SPI,
5100 .manufacture_id = EON_ID_NOPREFIX,
5101 .model_id = EON_EN25QH32,
5102 .total_size = 4096,
5103 .page_size = 256,
5104 /* supports SFDP */
5105 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005106 /* QPI enable 0x38, disable 0xFF */
5107 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005108 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005109 .probe = probe_spi_rdid,
5110 .probe_timing = TIMING_ZERO,
5111 .block_erasers =
5112 {
5113 {
5114 .eraseblocks = { {4 * 1024, 1024} },
5115 .block_erase = spi_block_erase_20,
5116 }, {
5117 .eraseblocks = { {64 * 1024, 64} },
5118 .block_erase = spi_block_erase_d8,
5119 }, {
5120 .eraseblocks = { {1024 * 4096, 1} },
5121 .block_erase = spi_block_erase_60,
5122 }, {
5123 .eraseblocks = { {1024 * 4096, 1} },
5124 .block_erase = spi_block_erase_c7,
5125 }
5126 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005127 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005128 .unlock = spi_disable_blockprotect_bp3_srwd,
5129 .write = spi_chip_write_256,
5130 .read = spi_chip_read,
5131 .voltage = {2700, 3600},
5132 },
5133
5134 {
5135 .vendor = "Eon",
5136 .name = "EN25QH64",
5137 .bustype = BUS_SPI,
5138 .manufacture_id = EON_ID_NOPREFIX,
5139 .model_id = EON_EN25QH64,
5140 .total_size = 8192,
5141 .page_size = 256,
5142 /* supports SFDP */
5143 /* OTP: 512B total; enter 0x3A */
5144 /* QPI enable 0x38, disable 0xFF */
5145 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005146 .tested = TEST_OK_PREW,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005147 .probe = probe_spi_rdid,
5148 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005149 .block_erasers =
5150 {
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005151 {
5152 .eraseblocks = { {4 * 1024, 2048} },
5153 .block_erase = spi_block_erase_20,
5154 }, {
5155 .eraseblocks = { {64 * 1024, 128} },
5156 .block_erase = spi_block_erase_d8,
5157 }, {
5158 .eraseblocks = { { 8192 * 1024, 1} },
5159 .block_erase = spi_block_erase_60,
5160 }, {
5161 .eraseblocks = { { 8192 * 1024, 1} },
5162 .block_erase = spi_block_erase_c7,
5163 }
5164 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005165 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005166 .unlock = spi_disable_blockprotect_bp3_srwd,
5167 .write = spi_chip_write_256,
5168 .read = spi_chip_read,
5169 .voltage = {2700, 3600},
5170 },
5171
5172 {
5173 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005174 .name = "EN25S10",
5175 .bustype = BUS_SPI,
5176 .manufacture_id = EON_ID_NOPREFIX,
5177 .model_id = EON_EN25S10,
5178 .total_size = 128,
5179 .page_size = 256,
5180 /* OTP: 256B total; enter 0x3A */
5181 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5182 .tested = TEST_UNTESTED,
5183 .probe = probe_spi_rdid,
5184 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005185 .block_erasers =
5186 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005187 {
5188 .eraseblocks = { {4 * 1024, 32} },
5189 .block_erase = spi_block_erase_20,
5190 }, {
5191 .eraseblocks = { {32 * 1024, 4} },
5192 .block_erase = spi_block_erase_52,
5193 }, {
5194 .eraseblocks = { {128 * 1024, 1} },
5195 .block_erase = spi_block_erase_60,
5196 }, {
5197 .eraseblocks = { {128 * 1024, 1} },
5198 .block_erase = spi_block_erase_c7,
5199 }
5200 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005201 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005202 .unlock = spi_disable_blockprotect,
5203 .write = spi_chip_write_256,
5204 .read = spi_chip_read,
5205 .voltage = {1650, 1950},
5206 },
5207
5208 {
5209 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005210 .name = "EN25S16",
5211 .bustype = BUS_SPI,
5212 .manufacture_id = EON_ID_NOPREFIX,
5213 .model_id = EON_EN25S16,
5214 .total_size = 2048,
5215 .page_size = 256,
5216 /* OTP: 512B total; enter 0x3A */
5217 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5218 .tested = TEST_UNTESTED,
5219 .probe = probe_spi_rdid,
5220 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005221 .block_erasers =
5222 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005223 {
5224 .eraseblocks = { {4 * 1024, 512} },
5225 .block_erase = spi_block_erase_20,
5226 }, {
5227 .eraseblocks = { {64 * 1024, 32} },
5228 .block_erase = spi_block_erase_52,
5229 }, {
5230 .eraseblocks = { {32 * 1024, 64} },
5231 .block_erase = spi_block_erase_d8,
5232 }, {
5233 .eraseblocks = { {2048 * 1024, 1} },
5234 .block_erase = spi_block_erase_60,
5235 }, {
5236 .eraseblocks = { {2048 * 1024, 1} },
5237 .block_erase = spi_block_erase_c7,
5238 }
5239 },
5240 .printlock = spi_prettyprint_status_register_en25s_wp,
5241 .unlock = spi_disable_blockprotect_bp3_srwd,
5242 .write = spi_chip_write_256,
5243 .read = spi_chip_read,
5244 .voltage = {1650, 1950},
5245 },
5246
5247 {
5248 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005249 .name = "EN25S20",
5250 .bustype = BUS_SPI,
5251 .manufacture_id = EON_ID_NOPREFIX,
5252 .model_id = EON_EN25S20,
5253 .total_size = 256,
5254 .page_size = 256,
5255 /* OTP: 256B total; enter 0x3A */
5256 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5257 .tested = TEST_UNTESTED,
5258 .probe = probe_spi_rdid,
5259 .probe_timing = TIMING_ZERO,
5260 .block_erasers =
5261 {
5262 {
5263 .eraseblocks = { {4 * 1024, 64} },
5264 .block_erase = spi_block_erase_20,
5265 }, {
5266 .eraseblocks = { {64 * 1024, 4} },
5267 .block_erase = spi_block_erase_d8,
5268 }, {
5269 .eraseblocks = { {256 * 1024, 1} },
5270 .block_erase = spi_block_erase_60,
5271 }, {
5272 .eraseblocks = { {256 * 1024, 1} },
5273 .block_erase = spi_block_erase_c7,
5274 }
5275 },
5276 .printlock = spi_prettyprint_status_register_bp2_srwd,
5277 .unlock = spi_disable_blockprotect,
5278 .write = spi_chip_write_256,
5279 .read = spi_chip_read,
5280 .voltage = {1650, 1950},
5281 },
5282
5283 {
5284 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005285 .name = "EN25S32",
5286 .bustype = BUS_SPI,
5287 .manufacture_id = EON_ID_NOPREFIX,
5288 .model_id = EON_EN25S32,
5289 .total_size = 4096,
5290 .page_size = 256,
5291 /* OTP: 512B total; enter 0x3A */
5292 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5293 .tested = TEST_UNTESTED,
5294 .probe = probe_spi_rdid,
5295 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005296 .block_erasers =
5297 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005298 {
5299 .eraseblocks = { {4 * 1024, 1024} },
5300 .block_erase = spi_block_erase_20,
5301 }, {
5302 .eraseblocks = { {32 * 1024, 128} },
5303 .block_erase = spi_block_erase_52,
5304 }, {
5305 .eraseblocks = { {64 * 1024, 64} },
5306 .block_erase = spi_block_erase_d8,
5307 }, {
5308 .eraseblocks = { {4096 * 1024, 1} },
5309 .block_erase = spi_block_erase_60,
5310 }, {
5311 .eraseblocks = { {4096 * 1024, 1} },
5312 .block_erase = spi_block_erase_c7,
5313 }
5314 },
5315 .printlock = spi_prettyprint_status_register_en25s_wp,
5316 .unlock = spi_disable_blockprotect_bp3_srwd,
5317 .write = spi_chip_write_256,
5318 .read = spi_chip_read,
5319 .voltage = {1650, 1950},
5320 },
5321
5322 {
5323 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005324 .name = "EN25S40",
5325 .bustype = BUS_SPI,
5326 .manufacture_id = EON_ID_NOPREFIX,
5327 .model_id = EON_EN25S40,
5328 .total_size = 512,
5329 .page_size = 256,
5330 /* OTP: 256B total; enter 0x3A */
5331 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5332 .tested = TEST_OK_PREW,
5333 .probe = probe_spi_rdid,
5334 .probe_timing = TIMING_ZERO,
5335 .block_erasers =
5336 {
5337 {
5338 .eraseblocks = { {4 * 1024, 128} },
5339 .block_erase = spi_block_erase_20,
5340 }, {
5341 .eraseblocks = { {64 * 1024, 8} },
5342 .block_erase = spi_block_erase_d8,
5343 }, {
5344 .eraseblocks = { {512 * 1024, 1} },
5345 .block_erase = spi_block_erase_60,
5346 }, {
5347 .eraseblocks = { {512 * 1024, 1} },
5348 .block_erase = spi_block_erase_c7,
5349 }
5350 },
5351 .printlock = spi_prettyprint_status_register_bp2_srwd,
5352 .unlock = spi_disable_blockprotect,
5353 .write = spi_chip_write_256,
5354 .read = spi_chip_read,
5355 .voltage = {1650, 1950},
5356 },
5357
5358 {
5359 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005360 .name = "EN25S64",
5361 .bustype = BUS_SPI,
5362 .manufacture_id = EON_ID_NOPREFIX,
5363 .model_id = EON_EN25S64,
5364 .total_size = 8192,
5365 .page_size = 256,
5366 /* OTP: 512B total; enter 0x3A */
5367 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5368 .tested = TEST_UNTESTED,
5369 .probe = probe_spi_rdid,
5370 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005371 .block_erasers =
5372 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005373 {
5374 .eraseblocks = { {4 * 1024, 2048} },
5375 .block_erase = spi_block_erase_20,
5376 }, {
5377 .eraseblocks = { {64 * 1024, 128} },
5378 .block_erase = spi_block_erase_d8,
5379 }, {
5380 .eraseblocks = { {8192 * 1024, 1} },
5381 .block_erase = spi_block_erase_60,
5382 }, {
5383 .eraseblocks = { {8192 * 1024, 1} },
5384 .block_erase = spi_block_erase_c7,
5385 }
5386 },
5387 .printlock = spi_prettyprint_status_register_en25s_wp,
5388 .unlock = spi_disable_blockprotect_bp3_srwd,
5389 .write = spi_chip_write_256,
5390 .read = spi_chip_read,
5391 .voltage = {1650, 1950},
5392 },
5393
5394 {
5395 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005396 .name = "EN25S80",
5397 .bustype = BUS_SPI,
5398 .manufacture_id = EON_ID_NOPREFIX,
5399 .model_id = EON_EN25S80,
5400 .total_size = 1024,
5401 .page_size = 256,
5402 /* OTP: 256B total; enter 0x3A */
5403 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5404 .tested = TEST_UNTESTED,
5405 .probe = probe_spi_rdid,
5406 .probe_timing = TIMING_ZERO,
Russ Dill3cd5a122010-03-05 08:44:11 +00005407 .block_erasers =
5408 {
5409 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005410 .eraseblocks = { {4 * 1024, 256} },
5411 .block_erase = spi_block_erase_20,
5412 }, {
5413 .eraseblocks = { {64 * 1024, 16} },
5414 .block_erase = spi_block_erase_d8,
5415 }, {
5416 .eraseblocks = { {1024 * 1024, 1} },
5417 .block_erase = spi_block_erase_60,
5418 }, {
5419 .eraseblocks = { {1024 * 1024, 1} },
5420 .block_erase = spi_block_erase_c7,
5421 }
Russ Dill3cd5a122010-03-05 08:44:11 +00005422 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005423 .printlock = spi_prettyprint_status_register_bp2_srwd,
5424 .unlock = spi_disable_blockprotect,
5425 .write = spi_chip_write_256,
5426 .read = spi_chip_read,
5427 .voltage = {1650, 1950},
Russ Dill3cd5a122010-03-05 08:44:11 +00005428 },
5429
5430 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005431 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005432 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005433 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005434 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005435 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005436 .total_size = 256,
5437 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005438 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Alan Green4362e622019-08-26 15:02:12 +10005439 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005440 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005441 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005442 .block_erasers =
5443 {
5444 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005445 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005446 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005447 {8 * 1024, 2},
5448 {32 * 1024, 1},
5449 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005450 },
5451 .block_erase = erase_sector_jedec,
5452 }, {
5453 .eraseblocks = { {256 * 1024, 1} },
5454 .block_erase = erase_chip_block_jedec,
5455 },
5456 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005457 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005458 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005459 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005460 },
5461
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005462 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005463 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005464 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005465 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005466 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005467 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005468 .total_size = 256,
5469 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005470 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005471 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005472 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005473 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005474 .block_erasers =
5475 {
5476 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005477 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005478 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005479 {32 * 1024, 1},
5480 {8 * 1024, 2},
5481 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005482 },
5483 .block_erase = erase_sector_jedec,
5484 }, {
5485 .eraseblocks = { {256 * 1024, 1} },
5486 .block_erase = erase_chip_block_jedec,
5487 },
5488 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005489 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005490 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005491 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005492 },
5493
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005494 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005495 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005496 .name = "EN29F010",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005497 .bustype = BUS_PARALLEL,
5498 .manufacture_id = EON_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005499 .model_id = EON_EN29F010,
5500 .total_size = 128,
5501 .page_size = 128,
5502 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5503 .tested = TEST_OK_PRE,
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005504 .probe = probe_jedec,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005505 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005506 .block_erasers =
5507 {
5508 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005509 .eraseblocks = { {16 * 1024, 8} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005510 .block_erase = erase_sector_jedec,
5511 },
5512 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005513 .eraseblocks = { {128 * 1024, 1} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005514 .block_erase = erase_chip_block_jedec,
5515 },
5516 },
5517 .write = write_jedec_1,
5518 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005519 .voltage = {4500, 5500},
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005520 },
5521
5522 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005523 .vendor = "Eon",
5524 .name = "EN29GL064(A)B",
5525 .bustype = BUS_PARALLEL,
5526 .manufacture_id = EON_ID,
5527 .model_id = EON_EN29GL064B,
5528 .total_size = 8192,
5529 .page_size = 128 * 1024, /* actual page size is 16 */
5530 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5531 .tested = TEST_UNTESTED,
5532 .probe = probe_jedec_29gl,
5533 .probe_timing = TIMING_ZERO,
5534 .block_erasers =
5535 {
5536 {
5537 .eraseblocks = {
5538 {8 * 1024, 8},
5539 {64 * 1024, 127},
5540 },
5541 .block_erase = erase_sector_jedec,
5542 }, {
5543 .eraseblocks = { {8 * 1024 * 1024, 1} },
5544 .block_erase = erase_chip_block_jedec,
5545 },
5546 },
5547 .write = write_jedec_1,
5548 .read = read_memmapped,
5549 .voltage = {2700, 3600},
5550 },
5551
5552 {
5553 .vendor = "Eon",
5554 .name = "EN29GL064(A)T",
5555 .bustype = BUS_PARALLEL,
5556 .manufacture_id = EON_ID,
5557 .model_id = EON_EN29GL064T,
5558 .total_size = 8192,
5559 .page_size = 128 * 1024, /* actual page size is 16 */
5560 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5561 .tested = TEST_UNTESTED,
5562 .probe = probe_jedec_29gl,
5563 .probe_timing = TIMING_ZERO,
5564 .block_erasers =
5565 {
5566 {
5567 .eraseblocks = {
5568 {64 * 1024, 127},
5569 {8 * 1024, 8},
5570 },
5571 .block_erase = erase_sector_jedec,
5572 }, {
5573 .eraseblocks = { {8 * 1024 * 1024, 1} },
5574 .block_erase = erase_chip_block_jedec,
5575 },
5576 },
5577 .write = write_jedec_1,
5578 .read = read_memmapped,
5579 .voltage = {2700, 3600},
5580 },
5581
5582 {
5583 .vendor = "Eon",
5584 .name = "EN29GL064H/L",
5585 .bustype = BUS_PARALLEL,
5586 .manufacture_id = EON_ID,
5587 .model_id = EON_EN29GL064HL,
5588 .total_size = 8192,
5589 .page_size = 128 * 1024, /* actual page size is 16 */
5590 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5591 .tested = TEST_UNTESTED,
5592 .probe = probe_jedec_29gl,
5593 .probe_timing = TIMING_ZERO,
5594 .block_erasers =
5595 {
5596 {
5597 .eraseblocks = { {64 * 1024, 128} },
5598 .block_erase = erase_sector_jedec,
5599 }, {
5600 .eraseblocks = { {8 * 1024 * 1024, 1} },
5601 .block_erase = erase_chip_block_jedec,
5602 },
5603 },
5604 .write = write_jedec_1,
5605 .read = read_memmapped,
5606 .voltage = {2700, 3600},
5607 },
5608
5609 {
5610 .vendor = "Eon",
5611 .name = "EN29GL128",
5612 .bustype = BUS_PARALLEL,
5613 .manufacture_id = EON_ID,
5614 .model_id = EON_EN29GL128HL,
5615 .total_size = 16384,
5616 .page_size = 128 * 1024, /* actual page size is 16 */
5617 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5618 .tested = TEST_UNTESTED,
5619 .probe = probe_jedec_29gl,
5620 .probe_timing = TIMING_ZERO,
5621 .block_erasers =
5622 {
5623 {
5624 .eraseblocks = { {128 * 1024, 128} },
5625 .block_erase = erase_sector_jedec,
5626 }, {
5627 .eraseblocks = { {16 * 1024 * 1024, 1} },
5628 .block_erase = erase_chip_block_jedec,
5629 },
5630 },
5631 .write = write_jedec_1,
5632 .read = read_memmapped,
5633 .voltage = {2700, 3600},
5634 },
5635
5636 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005637 .vendor = "Eon",
5638 .name = "EN29LV040(A)",
5639 .bustype = BUS_PARALLEL,
5640 .manufacture_id = EON_ID,
5641 .model_id = EON_EN29LV040,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005642 .total_size = 512,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005643 .page_size = 4 * 1024,
5644 .tested = TEST_OK_PREW,
5645 .probe = probe_jedec,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005646 .probe_timing = TIMING_ZERO,
5647 .block_erasers =
5648 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005649 {
5650 .eraseblocks = { {64 * 1024, 8} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005651 .block_erase = erase_sector_jedec,
5652 },
5653 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005654 .eraseblocks = { {512 * 1024, 1} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005655 .block_erase = erase_chip_block_jedec,
5656 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005657 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005658 .write = write_jedec_1,
5659 .read = read_memmapped,
5660 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005661 },
5662
5663 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005664 .vendor = "Eon",
5665 .name = "EN29LV640B",
5666 .bustype = BUS_PARALLEL,
5667 .manufacture_id = EON_ID,
5668 .model_id = EON_EN29LV640B,
5669 .total_size = 8192,
5670 .page_size = 8192,
5671 .feature_bits = FEATURE_ADDR_SHIFTED,
5672 .tested = TEST_OK_PREW,
5673 .probe = probe_en29lv640b,
5674 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005675 .block_erasers =
5676 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005677 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005678 .eraseblocks = {
5679 {8 * 1024, 8},
5680 {64 * 1024, 127},
5681 },
5682 .block_erase = erase_block_jedec,
Stefan Tauner0be072c2016-03-13 15:16:30 +00005683 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005684 .eraseblocks = { {8 * 1024 * 1024, 1} },
5685 .block_erase = erase_chip_block_jedec,
5686 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005687 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005688 .write = write_en29lv640b,
5689 .read = read_memmapped,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005690 .voltage = {2700, 3600},
5691 },
5692
5693 {
Jakob Petersson0cf3e122019-02-18 01:55:43 +01005694 .vendor = "Fudan",
5695 .name = "FM25F005",
5696 .bustype = BUS_SPI,
5697 .manufacture_id = FUDAN_ID_NOPREFIX,
5698 .model_id = FUDAN_FM25F005,
5699 .total_size = 64,
5700 .page_size = 256,
5701 /* OTP: 256B total; enter 0x3A */
5702 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5703 .tested = TEST_UNTESTED,
5704 .probe = probe_spi_rdid,
5705 .probe_timing = TIMING_ZERO,
5706 .block_erasers = {
5707 {
5708 .eraseblocks = { {4 * 1024, 16} },
5709 .block_erase = spi_block_erase_20,
5710 }, {
5711 .eraseblocks = { {32 * 1024, 2} },
5712 .block_erase = spi_block_erase_52,
5713 }, {
5714 .eraseblocks = { {64 * 1024, 1} },
5715 .block_erase = spi_block_erase_d8,
5716 }, {
5717 .eraseblocks = { {64 * 1024, 1} },
5718 .block_erase = spi_block_erase_60,
5719 }, {
5720 .eraseblocks = { {64 * 1024, 1} },
5721 .block_erase = spi_block_erase_c7,
5722 }
5723 },
5724 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5725 .unlock = spi_disable_blockprotect_bp2_srwd,
5726 .write = spi_chip_write_256,
5727 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5728 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5729 },
5730
5731 {
5732 .vendor = "Fudan",
5733 .name = "FM25F01",
5734 .bustype = BUS_SPI,
5735 .manufacture_id = FUDAN_ID_NOPREFIX,
5736 .model_id = FUDAN_FM25F01,
5737 .total_size = 128,
5738 .page_size = 256,
5739 /* OTP: 256B total; enter 0x3A */
5740 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5741 .tested = TEST_UNTESTED,
5742 .probe = probe_spi_rdid,
5743 .probe_timing = TIMING_ZERO,
5744 .block_erasers = {
5745 {
5746 .eraseblocks = { {4 * 1024, 32} },
5747 .block_erase = spi_block_erase_20,
5748 }, {
5749 .eraseblocks = { {32 * 1024, 4} },
5750 .block_erase = spi_block_erase_52,
5751 }, {
5752 .eraseblocks = { {64 * 1024, 2} },
5753 .block_erase = spi_block_erase_d8,
5754 }, {
5755 .eraseblocks = { {128 * 1024, 1} },
5756 .block_erase = spi_block_erase_60,
5757 }, {
5758 .eraseblocks = { {128 * 1024, 1} },
5759 .block_erase = spi_block_erase_c7,
5760 }
5761 },
5762 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5763 .unlock = spi_disable_blockprotect_bp2_srwd,
5764 .write = spi_chip_write_256,
5765 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5766 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5767 },
5768
5769 {
5770 .vendor = "Fudan",
5771 .name = "FM25F02(A)",
5772 .bustype = BUS_SPI,
5773 .manufacture_id = FUDAN_ID_NOPREFIX,
5774 .model_id = FUDAN_FM25F02,
5775 .total_size = 256,
5776 .page_size = 256,
5777 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
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, 64} },
5785 .block_erase = spi_block_erase_20,
5786 }, {
5787 .eraseblocks = { {32 * 1024, 8} },
5788 .block_erase = spi_block_erase_52,
5789 }, {
5790 .eraseblocks = { {64 * 1024, 4} },
5791 .block_erase = spi_block_erase_d8,
5792 }, {
5793 .eraseblocks = { {1024 * 256, 1} },
5794 .block_erase = spi_block_erase_60,
5795 }, {
5796 .eraseblocks = { {1024 * 256, 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 = "FM25F04(A)",
5810 .bustype = BUS_SPI,
5811 .manufacture_id = FUDAN_ID_NOPREFIX,
5812 .model_id = FUDAN_FM25F04,
5813 .total_size = 512,
5814 .page_size = 256,
5815 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
5816 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5817 .tested = TEST_UNTESTED,
5818 .probe = probe_spi_rdid,
5819 .probe_timing = TIMING_ZERO,
5820 .block_erasers = {
5821 {
5822 .eraseblocks = { {4 * 1024, 128} },
5823 .block_erase = spi_block_erase_20,
5824 }, {
5825 .eraseblocks = { {32 * 1024, 16} },
5826 .block_erase = spi_block_erase_52,
5827 }, {
5828 .eraseblocks = { {64 * 1024, 8} },
5829 .block_erase = spi_block_erase_d8,
5830 }, {
5831 .eraseblocks = { {1024 * 512, 1} },
5832 .block_erase = spi_block_erase_60,
5833 }, {
5834 .eraseblocks = { {1024 * 512, 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},
5843 },
5844
5845 {
5846 .vendor = "Fudan",
5847 .name = "FM25Q08",
5848 .bustype = BUS_SPI,
5849 .manufacture_id = FUDAN_ID_NOPREFIX,
5850 .model_id = FUDAN_FM25Q08,
5851 .total_size = 1024,
5852 .page_size = 256,
5853 /* supports SFDP */
5854 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
5855 /* QPI enable 0x38, disable 0xFF */
5856 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5857 .tested = TEST_UNTESTED,
5858 .probe = probe_spi_rdid,
5859 .probe_timing = TIMING_ZERO,
5860 .block_erasers = {
5861 {
5862 .eraseblocks = { {4 * 1024, 256} },
5863 .block_erase = spi_block_erase_20,
5864 }, {
5865 .eraseblocks = { {32 * 1024, 32} },
5866 .block_erase = spi_block_erase_52,
5867 }, {
5868 .eraseblocks = { {64 * 1024, 16} },
5869 .block_erase = spi_block_erase_d8,
5870 }, {
5871 .eraseblocks = { {1024 * 1024, 1} },
5872 .block_erase = spi_block_erase_60,
5873 }, {
5874 .eraseblocks = { {1024 * 1024, 1} },
5875 .block_erase = spi_block_erase_c7,
5876 },
5877 },
5878 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
5879 .unlock = spi_disable_blockprotect_bp2_srwd,
5880 .write = spi_chip_write_256,
5881 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5882 .voltage = {2700, 3600},
5883 },
5884
5885 {
5886 .vendor = "Fudan",
5887 .name = "FM25Q16",
5888 .bustype = BUS_SPI,
5889 .manufacture_id = FUDAN_ID_NOPREFIX,
5890 .model_id = FUDAN_FM25Q16,
5891 .total_size = 2048,
5892 .page_size = 256,
5893 /* supports SFDP */
5894 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
5895 /* QPI enable 0x38, disable 0xFF */
5896 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5897 .tested = TEST_UNTESTED,
5898 .probe = probe_spi_rdid,
5899 .probe_timing = TIMING_ZERO,
5900 .block_erasers = {
5901 {
5902 .eraseblocks = { {4 * 1024, 512} },
5903 .block_erase = spi_block_erase_20,
5904 }, {
5905 .eraseblocks = { {32 * 1024, 64} },
5906 .block_erase = spi_block_erase_52,
5907 }, {
5908 .eraseblocks = { {64 * 1024, 32} },
5909 .block_erase = spi_block_erase_d8,
5910 }, {
5911 .eraseblocks = { {2 * 1024 * 1024, 1} },
5912 .block_erase = spi_block_erase_60,
5913 }, {
5914 .eraseblocks = { {2 * 1024 * 1024, 1} },
5915 .block_erase = spi_block_erase_c7,
5916 }
5917 },
5918 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
5919 .unlock = spi_disable_blockprotect_bp2_srwd,
5920 .write = spi_chip_write_256,
5921 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5922 .voltage = {2700, 3600},
5923 },
5924
5925 {
5926 .vendor = "Fudan",
5927 .name = "FM25Q32",
5928 .bustype = BUS_SPI,
5929 .manufacture_id = FUDAN_ID_NOPREFIX,
5930 .model_id = FUDAN_FM25Q32,
5931 .total_size = 4096,
5932 .page_size = 256,
5933 /* supports SFDP */
5934 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
5935 /* QPI enable 0x38, disable 0xFF */
5936 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5937 .tested = TEST_UNTESTED,
5938 .probe = probe_spi_rdid,
5939 .probe_timing = TIMING_ZERO,
5940 .block_erasers = {
5941 {
5942 .eraseblocks = { {4 * 1024, 1024} },
5943 .block_erase = spi_block_erase_20,
5944 }, {
5945 .eraseblocks = { {32 * 1024, 128} },
5946 .block_erase = spi_block_erase_52,
5947 }, {
5948 .eraseblocks = { {64 * 1024, 64} },
5949 .block_erase = spi_block_erase_d8,
5950 }, {
5951 .eraseblocks = { {4 * 1024 * 1024, 1} },
5952 .block_erase = spi_block_erase_60,
5953 }, {
5954 .eraseblocks = { {4 * 1024 * 1024, 1} },
5955 .block_erase = spi_block_erase_c7,
5956 },
5957 },
5958 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
5959 .unlock = spi_disable_blockprotect_bp2_srwd,
5960 .write = spi_chip_write_256,
5961 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5962 .voltage = {2700, 3600},
5963 },
5964
5965 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005966 .vendor = "Fujitsu",
5967 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005968 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005969 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005970 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005971 .total_size = 512,
5972 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005973 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005974 .tested = TEST_UNTESTED,
5975 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005976 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005977 .block_erasers =
5978 {
5979 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005980 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005981 {16 * 1024, 1},
5982 {8 * 1024, 2},
5983 {32 * 1024, 1},
5984 {64 * 1024, 7},
5985 },
Sean Nelson35727f72010-01-28 23:55:12 +00005986 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005987 }, {
5988 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005989 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005990 },
5991 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005992 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005993 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005994 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005995 },
5996
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005997 {
5998 .vendor = "Fujitsu",
5999 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006000 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006001 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006002 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006003 .total_size = 512,
6004 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006005 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006006 .tested = TEST_UNTESTED,
6007 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006008 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006009 .block_erasers =
6010 {
6011 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006012 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006013 {64 * 1024, 7},
6014 {32 * 1024, 1},
6015 {8 * 1024, 2},
6016 {16 * 1024, 1},
6017 },
Sean Nelson35727f72010-01-28 23:55:12 +00006018 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006019 }, {
6020 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006021 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006022 },
6023 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006024 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006025 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006026 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006027 },
6028
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006029 {
Sean Nelson35727f72010-01-28 23:55:12 +00006030 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006031 .vendor = "Fujitsu",
6032 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006033 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006034 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006035 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006036 .total_size = 512,
6037 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006038 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006039 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006040 .probe = probe_jedec,
6041 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006042 .block_erasers =
6043 {
6044 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006045 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006046 {16 * 1024, 1},
6047 {8 * 1024, 2},
6048 {32 * 1024, 1},
6049 {64 * 1024, 7},
6050 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006051 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006052 }, {
6053 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006054 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006055 },
6056 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006057 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006058 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006059 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00006060 },
6061
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006062 {
6063 .vendor = "Fujitsu",
6064 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006065 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006066 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006067 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006068 .total_size = 512,
6069 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006070 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006071 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006072 .probe = probe_jedec,
6073 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006074 .block_erasers =
6075 {
6076 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006077 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006078 {64 * 1024, 7},
6079 {32 * 1024, 1},
6080 {8 * 1024, 2},
6081 {16 * 1024, 1},
6082 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006083 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006084 }, {
6085 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006086 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006087 },
6088 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006089 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006090 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006091 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00006092 },
6093
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006094 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006095 .vendor = "Fujitsu",
6096 .name = "MBM29LV160BE",
6097 .bustype = BUS_PARALLEL,
6098 .manufacture_id = FUJITSU_ID,
6099 .model_id = FUJITSU_MBM29LV160BE,
6100 .total_size = 2 * 1024,
6101 .page_size = 0,
6102 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6103 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006104 .probe = probe_jedec,
6105 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006106 .block_erasers =
6107 {
6108 {
6109 .eraseblocks = {
6110 {16 * 1024, 1},
6111 {8 * 1024, 2},
6112 {32 * 1024, 1},
6113 {64 * 1024, 31},
6114 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006115 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006116 }, {
6117 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006118 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006119 },
6120 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006121 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006122 .read = read_memmapped,
6123 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
6124 },
6125
6126 {
6127 .vendor = "Fujitsu",
6128 .name = "MBM29LV160TE",
6129 .bustype = BUS_PARALLEL,
6130 .manufacture_id = FUJITSU_ID,
6131 .model_id = FUJITSU_MBM29LV160TE,
6132 .total_size = 2 * 1024,
6133 .page_size = 0,
6134 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6135 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006136 .probe = probe_jedec,
6137 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006138 .block_erasers =
6139 {
6140 {
6141 .eraseblocks = {
6142 {64 * 1024, 31},
6143 {32 * 1024, 1},
6144 {8 * 1024, 2},
6145 {16 * 1024, 1},
6146 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006147 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006148 }, {
6149 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006150 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006151 },
6152 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006153 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006154 .read = read_memmapped,
6155 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
6156 },
6157
6158 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006159 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006160 .name = "GD25B128B/GD25Q128B",
Roman Titov95edc892015-04-03 21:29:04 +00006161 .bustype = BUS_SPI,
6162 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006163 .model_id = GIGADEVICE_GD25Q128,
6164 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006165 .page_size = 256,
6166 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6167 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006168 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006169 .probe = probe_spi_rdid,
6170 .probe_timing = TIMING_ZERO,
6171 .block_erasers =
6172 {
6173 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006174 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006175 .block_erase = spi_block_erase_20,
6176 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006177 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006178 .block_erase = spi_block_erase_52,
6179 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006180 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006181 .block_erase = spi_block_erase_d8,
6182 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006183 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006184 .block_erase = spi_block_erase_60,
6185 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006186 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006187 .block_erase = spi_block_erase_c7,
6188 }
6189 },
6190 .printlock = spi_prettyprint_status_register_bp4_srwd,
6191 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6192 .write = spi_chip_write_256,
6193 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10006194 .voltage = {2700, 3600},
Roman Titov95edc892015-04-03 21:29:04 +00006195 },
6196
6197 {
6198 .vendor = "GigaDevice",
Alan Green188127e2019-08-06 16:10:34 +10006199 .name = "GD25LQ128C/GD25LQ128D",
Roman Titov95edc892015-04-03 21:29:04 +00006200 .bustype = BUS_SPI,
6201 .manufacture_id = GIGADEVICE_ID,
Alan Green188127e2019-08-06 16:10:34 +10006202 .model_id = GIGADEVICE_GD25LQ128CD,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006203 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006204 .page_size = 256,
6205 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6206 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6207 .tested = TEST_UNTESTED,
6208 .probe = probe_spi_rdid,
6209 .probe_timing = TIMING_ZERO,
6210 .block_erasers =
6211 {
6212 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006213 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006214 .block_erase = spi_block_erase_20,
6215 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006216 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006217 .block_erase = spi_block_erase_52,
6218 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006219 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006220 .block_erase = spi_block_erase_d8,
6221 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006222 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006223 .block_erase = spi_block_erase_60,
6224 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006225 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006226 .block_erase = spi_block_erase_c7,
6227 }
6228 },
6229 .printlock = spi_prettyprint_status_register_bp4_srwd,
6230 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6231 .write = spi_chip_write_256,
6232 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6233 .voltage = {1695, 1950},
6234 },
6235
6236 {
6237 .vendor = "GigaDevice",
6238 .name = "GD25LQ16",
6239 .bustype = BUS_SPI,
6240 .manufacture_id = GIGADEVICE_ID,
6241 .model_id = GIGADEVICE_GD25LQ16,
6242 .total_size = 2048,
6243 .page_size = 256,
6244 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6245 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6246 .tested = TEST_UNTESTED,
6247 .probe = probe_spi_rdid,
6248 .probe_timing = TIMING_ZERO,
6249 .block_erasers =
6250 {
6251 {
6252 .eraseblocks = { {4 * 1024, 512} },
6253 .block_erase = spi_block_erase_20,
6254 }, {
6255 .eraseblocks = { {32 * 1024, 64} },
6256 .block_erase = spi_block_erase_52,
6257 }, {
6258 .eraseblocks = { {64 * 1024, 32} },
6259 .block_erase = spi_block_erase_d8,
6260 }, {
6261 .eraseblocks = { {2 * 1024 * 1024, 1} },
6262 .block_erase = spi_block_erase_60,
6263 }, {
6264 .eraseblocks = { {2 * 1024 * 1024, 1} },
6265 .block_erase = spi_block_erase_c7,
6266 }
6267 },
6268 .printlock = spi_prettyprint_status_register_bp4_srwd,
6269 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6270 .write = spi_chip_write_256,
6271 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6272 .voltage = {1695, 1950},
6273 },
6274
6275 {
6276 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006277 .name = "GD25LQ32",
6278 .bustype = BUS_SPI,
6279 .manufacture_id = GIGADEVICE_ID,
6280 .model_id = GIGADEVICE_GD25LQ32,
6281 .total_size = 4096,
6282 .page_size = 256,
6283 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6284 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6285 .tested = TEST_OK_PREW,
6286 .probe = probe_spi_rdid,
6287 .probe_timing = TIMING_ZERO,
6288 .block_erasers =
6289 {
6290 {
6291 .eraseblocks = { {4 * 1024, 1024} },
6292 .block_erase = spi_block_erase_20,
6293 }, {
6294 .eraseblocks = { {32 * 1024, 128} },
6295 .block_erase = spi_block_erase_52,
6296 }, {
6297 .eraseblocks = { {64 * 1024, 64} },
6298 .block_erase = spi_block_erase_d8,
6299 }, {
6300 .eraseblocks = { {4 * 1024 * 1024, 1} },
6301 .block_erase = spi_block_erase_60,
6302 }, {
6303 .eraseblocks = { {4 * 1024 * 1024, 1} },
6304 .block_erase = spi_block_erase_c7,
6305 }
6306 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006307 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006308 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6309 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00006310 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6311 .voltage = {1695, 1950},
6312 },
6313
6314 {
6315 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006316 .name = "GD25LQ40",
6317 .bustype = BUS_SPI,
6318 .manufacture_id = GIGADEVICE_ID,
6319 .model_id = GIGADEVICE_GD25LQ40,
6320 .total_size = 512,
6321 .page_size = 256,
6322 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6323 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6324 .tested = TEST_UNTESTED,
6325 .probe = probe_spi_rdid,
6326 .probe_timing = TIMING_ZERO,
6327 .block_erasers =
6328 {
6329 {
6330 .eraseblocks = { {4 * 1024, 128} },
6331 .block_erase = spi_block_erase_20,
6332 }, {
6333 .eraseblocks = { {32 * 1024, 16} },
6334 .block_erase = spi_block_erase_52,
6335 }, {
6336 .eraseblocks = { {64 * 1024, 8} },
6337 .block_erase = spi_block_erase_d8,
6338 }, {
6339 .eraseblocks = { {512 * 1024, 1} },
6340 .block_erase = spi_block_erase_60,
6341 }, {
6342 .eraseblocks = { {512 * 1024, 1} },
6343 .block_erase = spi_block_erase_c7,
6344 }
6345 },
6346 .printlock = spi_prettyprint_status_register_bp4_srwd,
6347 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6348 .write = spi_chip_write_256,
6349 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6350 .voltage = {1695, 1950},
6351 },
6352
6353 {
6354 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00006355 .name = "GD25LQ64(B)",
6356 .bustype = BUS_SPI,
6357 .manufacture_id = GIGADEVICE_ID,
6358 .model_id = GIGADEVICE_GD25LQ64,
6359 .total_size = 8192,
6360 .page_size = 256,
6361 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6362 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00006363 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006364 .probe = probe_spi_rdid,
6365 .probe_timing = TIMING_ZERO,
6366 .block_erasers =
6367 {
6368 {
6369 .eraseblocks = { {4 * 1024, 2048} },
6370 .block_erase = spi_block_erase_20,
6371 }, {
6372 .eraseblocks = { {32 * 1024, 256} },
6373 .block_erase = spi_block_erase_52,
6374 }, {
6375 .eraseblocks = { {64 * 1024, 128} },
6376 .block_erase = spi_block_erase_d8,
6377 }, {
6378 .eraseblocks = { {8 * 1024 * 1024, 1} },
6379 .block_erase = spi_block_erase_60,
6380 }, {
6381 .eraseblocks = { {8 * 1024 * 1024, 1} },
6382 .block_erase = spi_block_erase_c7,
6383 }
6384 },
6385 .printlock = spi_prettyprint_status_register_bp4_srwd,
6386 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6387 .write = spi_chip_write_256,
6388 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6389 .voltage = {1695, 1950},
6390 },
6391
6392 {
6393 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006394 .name = "GD25LQ80",
Roman Titov95edc892015-04-03 21:29:04 +00006395 .bustype = BUS_SPI,
6396 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006397 .model_id = GIGADEVICE_GD25LQ80,
6398 .total_size = 1024,
Roman Titov95edc892015-04-03 21:29:04 +00006399 .page_size = 256,
6400 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6401 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6402 .tested = TEST_UNTESTED,
6403 .probe = probe_spi_rdid,
6404 .probe_timing = TIMING_ZERO,
6405 .block_erasers =
6406 {
6407 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006408 .eraseblocks = { {4 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006409 .block_erase = spi_block_erase_20,
6410 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006411 .eraseblocks = { {32 * 1024, 32} },
Roman Titov95edc892015-04-03 21:29:04 +00006412 .block_erase = spi_block_erase_52,
6413 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006414 .eraseblocks = { {64 * 1024, 16} },
Roman Titov95edc892015-04-03 21:29:04 +00006415 .block_erase = spi_block_erase_d8,
6416 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006417 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006418 .block_erase = spi_block_erase_60,
6419 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006420 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006421 .block_erase = spi_block_erase_c7,
6422 }
6423 },
6424 .printlock = spi_prettyprint_status_register_bp4_srwd,
6425 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6426 .write = spi_chip_write_256,
6427 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6428 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006429 },
6430
6431 {
6432 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006433 .name = "GD25Q10",
6434 .bustype = BUS_SPI,
6435 .manufacture_id = GIGADEVICE_ID,
6436 .model_id = GIGADEVICE_GD25Q10,
6437 .total_size = 128,
6438 .page_size = 256,
6439 .feature_bits = FEATURE_WRSR_WREN,
6440 .tested = TEST_UNTESTED,
6441 .probe = probe_spi_rdid,
6442 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006443 .block_erasers =
6444 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006445 {
6446 .eraseblocks = { {4 * 1024, 32} },
6447 .block_erase = spi_block_erase_20,
6448 }, {
6449 .eraseblocks = { {32 * 1024, 4} },
6450 .block_erase = spi_block_erase_52,
6451 }, {
6452 .eraseblocks = { {64 * 1024, 2} },
6453 .block_erase = spi_block_erase_d8,
6454 }, {
6455 .eraseblocks = { {128 * 1024, 1} },
6456 .block_erase = spi_block_erase_60,
6457 }, {
6458 .eraseblocks = { {128 * 1024, 1} },
6459 .block_erase = spi_block_erase_c7,
6460 }
6461 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006462 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006463 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6464 .write = spi_chip_write_256,
6465 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6466 .voltage = {2700, 3600},
6467 },
6468
6469 {
6470 .vendor = "GigaDevice",
Alan Green4f009122019-08-26 10:45:18 +10006471 .name = "GD25Q127C/GD25Q128C",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006472 .bustype = BUS_SPI,
6473 .manufacture_id = GIGADEVICE_ID,
6474 .model_id = GIGADEVICE_GD25Q128,
6475 .total_size = 16384,
6476 .page_size = 256,
6477 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6478 /* QPI: enable 0x38, disable 0xFF */
6479 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Angel Ponsbce364c2018-09-30 20:04:14 +02006480 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006481 .probe = probe_spi_rdid,
6482 .probe_timing = TIMING_ZERO,
6483 .block_erasers =
6484 {
6485 {
6486 .eraseblocks = { {4 * 1024, 4096} },
6487 .block_erase = spi_block_erase_20,
6488 }, {
6489 .eraseblocks = { {32 * 1024, 512} },
6490 .block_erase = spi_block_erase_52,
6491 }, {
6492 .eraseblocks = { {64 * 1024, 256} },
6493 .block_erase = spi_block_erase_d8,
6494 }, {
6495 .eraseblocks = { {16 * 1024 * 1024, 1} },
6496 .block_erase = spi_block_erase_60,
6497 }, {
6498 .eraseblocks = { {16 * 1024 * 1024, 1} },
6499 .block_erase = spi_block_erase_c7,
6500 }
6501 },
6502 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6503 .printlock = spi_prettyprint_status_register_bp4_srwd,
6504 .unlock = spi_disable_blockprotect_bp4_srwd,
6505 .write = spi_chip_write_256,
6506 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6507 .voltage = {2700, 3600},
6508 },
6509
6510 {
6511 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006512 .name = "GD25Q16(B)",
6513 .bustype = BUS_SPI,
6514 .manufacture_id = GIGADEVICE_ID,
6515 .model_id = GIGADEVICE_GD25Q16,
6516 .total_size = 2048,
6517 .page_size = 256,
6518 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6519 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6520 .tested = TEST_OK_PREW,
6521 .probe = probe_spi_rdid,
6522 .probe_timing = TIMING_ZERO,
6523 .block_erasers =
6524 {
6525 {
6526 .eraseblocks = { {4 * 1024, 512} },
6527 .block_erase = spi_block_erase_20,
6528 }, {
6529 .eraseblocks = { {32 * 1024, 64} },
6530 .block_erase = spi_block_erase_52,
6531 }, {
6532 .eraseblocks = { {64 * 1024, 32} },
6533 .block_erase = spi_block_erase_d8,
6534 }, {
6535 .eraseblocks = { {2 * 1024 * 1024, 1} },
6536 .block_erase = spi_block_erase_60,
6537 }, {
6538 .eraseblocks = { {2 * 1024 * 1024, 1} },
6539 .block_erase = spi_block_erase_c7,
6540 }
6541 },
6542 .printlock = spi_prettyprint_status_register_bp4_srwd,
6543 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6544 .write = spi_chip_write_256,
6545 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6546 .voltage = {2700, 3600},
6547 },
6548
6549 {
6550 .vendor = "GigaDevice",
6551 .name = "GD25Q20(B)",
6552 .bustype = BUS_SPI,
6553 .manufacture_id = GIGADEVICE_ID,
6554 .model_id = GIGADEVICE_GD25Q20,
6555 .total_size = 256,
6556 .page_size = 256,
6557 .feature_bits = FEATURE_WRSR_WREN,
6558 .tested = TEST_OK_PREW,
6559 .probe = probe_spi_rdid,
6560 .probe_timing = TIMING_ZERO,
6561 .block_erasers =
6562 {
6563 {
6564 .eraseblocks = { {4 * 1024, 64} },
6565 .block_erase = spi_block_erase_20,
6566 }, {
6567 .eraseblocks = { {32 * 1024, 8} },
6568 .block_erase = spi_block_erase_52,
6569 }, {
6570 .eraseblocks = { {64 * 1024, 4} },
6571 .block_erase = spi_block_erase_d8,
6572 }, {
6573 .eraseblocks = { {256 * 1024, 1} },
6574 .block_erase = spi_block_erase_60,
6575 }, {
6576 .eraseblocks = { {256 * 1024, 1} },
6577 .block_erase = spi_block_erase_c7,
6578 }
6579 },
6580 .printlock = spi_prettyprint_status_register_bp4_srwd,
6581 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6582 .write = spi_chip_write_256,
6583 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6584 .voltage = {2700, 3600},
6585 },
6586
6587 {
6588 .vendor = "GigaDevice",
Alan Green86fc9cf2019-08-26 15:02:12 +10006589 .name = "GD25Q256D",
6590 .bustype = BUS_SPI,
6591 .manufacture_id = GIGADEVICE_ID,
6592 .model_id = GIGADEVICE_GD25Q256D,
6593 .total_size = 32768,
6594 .page_size = 256,
6595 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
6596 .tested = TEST_UNTESTED,
6597 .probe = probe_spi_rdid,
6598 .probe_timing = TIMING_ZERO,
6599 .block_erasers =
6600 {
6601 {
6602 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber5374dc32019-10-04 16:16:15 +02006603 .block_erase = spi_block_erase_21,
6604 }, {
6605 .eraseblocks = { {4 * 1024, 8192} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006606 .block_erase = spi_block_erase_20,
6607 }, {
6608 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber5374dc32019-10-04 16:16:15 +02006609 .block_erase = spi_block_erase_5c,
6610 }, {
6611 .eraseblocks = { {32 * 1024, 1024} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006612 .block_erase = spi_block_erase_52,
6613 }, {
6614 .eraseblocks = { {64 * 1024, 512} },
Nico Huber5374dc32019-10-04 16:16:15 +02006615 .block_erase = spi_block_erase_dc,
6616 }, {
6617 .eraseblocks = { {64 * 1024, 512} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006618 .block_erase = spi_block_erase_d8,
6619 }, {
6620 .eraseblocks = { {32 * 1024 * 1024, 1} },
6621 .block_erase = spi_block_erase_60,
6622 }, {
6623 .eraseblocks = { {32 * 1024 * 1024, 1} },
6624 .block_erase = spi_block_erase_c7,
6625 }
6626 },
6627 .printlock = spi_prettyprint_status_register_bp3_srwd,
6628 .unlock = spi_disable_blockprotect,
6629 .write = spi_chip_write_256,
6630 .read = spi_chip_read,
6631 .voltage = {2700, 3600},
6632 },
6633
6634 {
6635 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006636 .name = "GD25Q32(B)",
6637 .bustype = BUS_SPI,
6638 .manufacture_id = GIGADEVICE_ID,
6639 .model_id = GIGADEVICE_GD25Q32,
6640 .total_size = 4096,
6641 .page_size = 256,
6642 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6643 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6644 .tested = TEST_OK_PREW,
6645 .probe = probe_spi_rdid,
6646 .probe_timing = TIMING_ZERO,
6647 .block_erasers =
6648 {
6649 {
6650 .eraseblocks = { {4 * 1024, 1024} },
6651 .block_erase = spi_block_erase_20,
6652 }, {
6653 .eraseblocks = { {32 * 1024, 128} },
6654 .block_erase = spi_block_erase_52,
6655 }, {
6656 .eraseblocks = { {64 * 1024, 64} },
6657 .block_erase = spi_block_erase_d8,
6658 }, {
6659 .eraseblocks = { {4 * 1024 * 1024, 1} },
6660 .block_erase = spi_block_erase_60,
6661 }, {
6662 .eraseblocks = { {4 * 1024 * 1024, 1} },
6663 .block_erase = spi_block_erase_c7,
6664 }
6665 },
6666 .printlock = spi_prettyprint_status_register_bp4_srwd,
6667 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6668 .write = spi_chip_write_256,
6669 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6670 .voltage = {2700, 3600},
6671 },
6672
6673 {
6674 .vendor = "GigaDevice",
6675 .name = "GD25Q40(B)",
6676 .bustype = BUS_SPI,
6677 .manufacture_id = GIGADEVICE_ID,
6678 .model_id = GIGADEVICE_GD25Q40,
6679 .total_size = 512,
6680 .page_size = 256,
6681 .feature_bits = FEATURE_WRSR_WREN,
6682 .tested = TEST_UNTESTED,
6683 .probe = probe_spi_rdid,
6684 .probe_timing = TIMING_ZERO,
6685 .block_erasers =
6686 {
6687 {
6688 .eraseblocks = { {4 * 1024, 128} },
6689 .block_erase = spi_block_erase_20,
6690 }, {
6691 .eraseblocks = { {32 * 1024, 16} },
6692 .block_erase = spi_block_erase_52,
6693 }, {
6694 .eraseblocks = { {64 * 1024, 8} },
6695 .block_erase = spi_block_erase_d8,
6696 }, {
6697 .eraseblocks = { {512 * 1024, 1} },
6698 .block_erase = spi_block_erase_60,
6699 }, {
6700 .eraseblocks = { {512 * 1024, 1} },
6701 .block_erase = spi_block_erase_c7,
6702 }
6703 },
6704 .printlock = spi_prettyprint_status_register_bp4_srwd,
6705 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6706 .write = spi_chip_write_256,
6707 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6708 .voltage = {2700, 3600},
6709 },
6710
6711 {
6712 .vendor = "GigaDevice",
6713 .name = "GD25Q512",
6714 .bustype = BUS_SPI,
6715 .manufacture_id = GIGADEVICE_ID,
6716 .model_id = GIGADEVICE_GD25Q512,
6717 .total_size = 64,
6718 .page_size = 256,
6719 .feature_bits = FEATURE_WRSR_WREN,
6720 .tested = TEST_OK_PREW,
6721 .probe = probe_spi_rdid,
6722 .probe_timing = TIMING_ZERO,
6723 .block_erasers =
6724 {
6725 {
6726 .eraseblocks = { {4 * 1024, 16} },
6727 .block_erase = spi_block_erase_20,
6728 }, {
6729 .eraseblocks = { {32 * 1024, 2} },
6730 .block_erase = spi_block_erase_52,
6731 }, {
6732 .eraseblocks = { {64 * 1024, 1} },
6733 .block_erase = spi_block_erase_60,
6734 }, {
6735 .eraseblocks = { {64 * 1024, 1} },
6736 .block_erase = spi_block_erase_c7,
6737 }
6738 },
6739 .printlock = spi_prettyprint_status_register_bp4_srwd,
6740 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6741 .write = spi_chip_write_256,
6742 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6743 .voltage = {2700, 3600},
6744 },
6745
6746 {
6747 .vendor = "GigaDevice",
6748 .name = "GD25Q64(B)",
6749 .bustype = BUS_SPI,
6750 .manufacture_id = GIGADEVICE_ID,
6751 .model_id = GIGADEVICE_GD25Q64,
6752 .total_size = 8192,
6753 .page_size = 256,
6754 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6755 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6756 .tested = TEST_OK_PREW,
6757 .probe = probe_spi_rdid,
6758 .probe_timing = TIMING_ZERO,
6759 .block_erasers =
6760 {
6761 {
6762 .eraseblocks = { {4 * 1024, 2048} },
6763 .block_erase = spi_block_erase_20,
6764 }, {
6765 .eraseblocks = { {32 * 1024, 256} },
6766 .block_erase = spi_block_erase_52,
6767 }, {
6768 .eraseblocks = { {64 * 1024, 128} },
6769 .block_erase = spi_block_erase_d8,
6770 }, {
6771 .eraseblocks = { {8 * 1024 * 1024, 1} },
6772 .block_erase = spi_block_erase_60,
6773 }, {
6774 .eraseblocks = { {8 * 1024 * 1024, 1} },
6775 .block_erase = spi_block_erase_c7,
6776 }
6777 },
6778 .printlock = spi_prettyprint_status_register_bp4_srwd,
6779 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6780 .write = spi_chip_write_256,
6781 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6782 .voltage = {2700, 3600},
6783 },
6784
6785 {
6786 .vendor = "GigaDevice",
6787 .name = "GD25Q80(B)",
6788 .bustype = BUS_SPI,
6789 .manufacture_id = GIGADEVICE_ID,
6790 .model_id = GIGADEVICE_GD25Q80,
6791 .total_size = 1024,
6792 .page_size = 256,
6793 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6794 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6795 .tested = TEST_OK_PREW,
6796 .probe = probe_spi_rdid,
6797 .probe_timing = TIMING_ZERO,
6798 .block_erasers =
6799 {
6800 {
6801 .eraseblocks = { {4 * 1024, 256} },
6802 .block_erase = spi_block_erase_20,
6803 }, {
6804 .eraseblocks = { {32 * 1024, 32} },
6805 .block_erase = spi_block_erase_52,
6806 }, {
6807 .eraseblocks = { {64 * 1024, 16} },
6808 .block_erase = spi_block_erase_d8,
6809 }, {
6810 .eraseblocks = { {1024 * 1024, 1} },
6811 .block_erase = spi_block_erase_60,
6812 }, {
6813 .eraseblocks = { {1024 * 1024, 1} },
6814 .block_erase = spi_block_erase_c7,
6815 }
6816 },
6817 .printlock = spi_prettyprint_status_register_bp4_srwd,
6818 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6819 .write = spi_chip_write_256,
6820 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6821 .voltage = {2700, 3600},
6822 },
6823
6824 {
6825 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006826 .name = "GD25T80",
6827 .bustype = BUS_SPI,
6828 .manufacture_id = GIGADEVICE_ID,
6829 .model_id = GIGADEVICE_GD25T80,
6830 .total_size = 1024,
6831 .page_size = 256,
6832 /* OTP: 256B total; enter 0x3A */
6833 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6834 .tested = TEST_UNTESTED,
6835 .probe = probe_spi_rdid,
6836 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006837 .block_erasers =
6838 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006839 {
6840 .eraseblocks = { {4 * 1024, 256} },
6841 .block_erase = spi_block_erase_20,
6842 }, {
6843 .eraseblocks = { {64 * 1024, 16} },
6844 .block_erase = spi_block_erase_52,
6845 }, {
6846 .eraseblocks = { {64 * 1024, 16} },
6847 .block_erase = spi_block_erase_d8,
6848 }, {
6849 .eraseblocks = { {1024 * 1024, 1} },
6850 .block_erase = spi_block_erase_60,
6851 }, {
6852 .eraseblocks = { {1024 * 1024, 1} },
6853 .block_erase = spi_block_erase_c7,
6854 }
6855 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006856 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006857 .unlock = spi_disable_blockprotect,
6858 .write = spi_chip_write_256,
6859 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006860 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006861 },
6862
6863 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006864 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006865 .name = "GD25VQ16C",
6866 .bustype = BUS_SPI,
6867 .manufacture_id = GIGADEVICE_ID,
6868 .model_id = GIGADEVICE_GD25VQ16C,
6869 .total_size = 2 * 1024,
6870 .page_size = 256,
6871 /* Supports SFDP */
6872 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6873 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6874 .tested = TEST_UNTESTED,
6875 .probe = probe_spi_rdid,
6876 .probe_timing = TIMING_ZERO,
6877 .block_erasers =
6878 {
6879 {
6880 .eraseblocks = { { 4 * 1024, 512} },
6881 .block_erase = spi_block_erase_20,
6882 }, {
6883 .eraseblocks = { { 32 * 1024, 64} },
6884 .block_erase = spi_block_erase_52,
6885 }, {
6886 .eraseblocks = { { 64 * 1024, 32} },
6887 .block_erase = spi_block_erase_d8,
6888 }, {
6889 .eraseblocks = { {2 * 1024 * 1024, 1} },
6890 .block_erase = spi_block_erase_60,
6891 }, {
6892 .eraseblocks = { {2 * 1024 * 1024, 1} },
6893 .block_erase = spi_block_erase_c7,
6894 }
6895 },
6896 .printlock = spi_prettyprint_status_register_bp4_srwd,
6897 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6898 .write = spi_chip_write_256,
6899 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6900 .voltage = {2300, 3600},
6901 },
6902
6903 {
6904 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006905 .name = "GD25VQ21B",
6906 .bustype = BUS_SPI,
6907 .manufacture_id = GIGADEVICE_ID,
6908 .model_id = GIGADEVICE_GD25VQ21B,
6909 .total_size = 256,
6910 .page_size = 256,
6911 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6912 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6913 .tested = TEST_UNTESTED,
6914 .probe = probe_spi_rdid,
6915 .probe_timing = TIMING_ZERO,
6916 .block_erasers =
6917 {
6918 {
6919 .eraseblocks = { { 4 * 1024, 64} },
6920 .block_erase = spi_block_erase_20,
6921 }, {
6922 .eraseblocks = { { 32 * 1024, 8} },
6923 .block_erase = spi_block_erase_52,
6924 }, {
6925 .eraseblocks = { { 64 * 1024, 4} },
6926 .block_erase = spi_block_erase_d8,
6927 }, {
6928 .eraseblocks = { {256 * 1024, 1} },
6929 .block_erase = spi_block_erase_60,
6930 }, {
6931 .eraseblocks = { {256 * 1024, 1} },
6932 .block_erase = spi_block_erase_c7,
6933 }
6934 },
6935 .printlock = spi_prettyprint_status_register_bp4_srwd,
6936 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6937 .write = spi_chip_write_256,
6938 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6939 .voltage = {2300, 3600},
6940 },
6941
6942 {
6943 .vendor = "GigaDevice",
6944 .name = "GD25VQ40C",
6945 .bustype = BUS_SPI,
6946 .manufacture_id = GIGADEVICE_ID,
6947 .model_id = GIGADEVICE_GD25VQ41B,
6948 .total_size = 512,
6949 .page_size = 256,
6950 /* Supports SFDP */
6951 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6952 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6953 .tested = TEST_UNTESTED,
6954 .probe = probe_spi_rdid,
6955 .probe_timing = TIMING_ZERO,
6956 .block_erasers =
6957 {
6958 {
6959 .eraseblocks = { { 4 * 1024, 128} },
6960 .block_erase = spi_block_erase_20,
6961 }, {
6962 .eraseblocks = { { 32 * 1024, 16} },
6963 .block_erase = spi_block_erase_52,
6964 }, {
6965 .eraseblocks = { { 64 * 1024, 8} },
6966 .block_erase = spi_block_erase_d8,
6967 }, {
6968 .eraseblocks = { {512 * 1024, 1} },
6969 .block_erase = spi_block_erase_60,
6970 }, {
6971 .eraseblocks = { {512 * 1024, 1} },
6972 .block_erase = spi_block_erase_c7,
6973 }
6974 },
6975 .printlock = spi_prettyprint_status_register_bp4_srwd,
6976 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6977 .write = spi_chip_write_256,
6978 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6979 .voltage = {2300, 3600},
6980 },
6981
6982 {
6983 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006984 .name = "GD25VQ41B",
6985 .bustype = BUS_SPI,
6986 .manufacture_id = GIGADEVICE_ID,
6987 .model_id = GIGADEVICE_GD25VQ41B,
6988 .total_size = 512,
6989 .page_size = 256,
6990 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6991 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006992 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006993 .probe = probe_spi_rdid,
6994 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006995 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006996 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00006997 {
6998 .eraseblocks = { { 4 * 1024, 128} },
6999 .block_erase = spi_block_erase_20,
7000 }, {
7001 .eraseblocks = { { 32 * 1024, 16} },
7002 .block_erase = spi_block_erase_52,
7003 }, {
7004 .eraseblocks = { { 64 * 1024, 8} },
7005 .block_erase = spi_block_erase_d8,
7006 }, {
7007 .eraseblocks = { {512 * 1024, 1} },
7008 .block_erase = spi_block_erase_60,
7009 }, {
7010 .eraseblocks = { {512 * 1024, 1} },
7011 .block_erase = spi_block_erase_c7,
7012 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007013 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007014 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007015 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7016 .write = spi_chip_write_256,
7017 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7018 .voltage = {2300, 3600},
7019 },
7020
7021 {
7022 .vendor = "GigaDevice",
7023 .name = "GD25VQ80C",
7024 .bustype = BUS_SPI,
7025 .manufacture_id = GIGADEVICE_ID,
7026 .model_id = GIGADEVICE_GD25VQ80C,
7027 .total_size = 1024,
7028 .page_size = 256,
7029 /* Supports SFDP */
7030 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7031 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7032 .tested = TEST_UNTESTED,
7033 .probe = probe_spi_rdid,
7034 .probe_timing = TIMING_ZERO,
7035 .block_erasers =
7036 {
7037 {
7038 .eraseblocks = { { 4 * 1024, 256} },
7039 .block_erase = spi_block_erase_20,
7040 }, {
7041 .eraseblocks = { { 32 * 1024, 32} },
7042 .block_erase = spi_block_erase_52,
7043 }, {
7044 .eraseblocks = { { 64 * 1024, 16} },
7045 .block_erase = spi_block_erase_d8,
7046 }, {
7047 .eraseblocks = { {1024 * 1024, 1} },
7048 .block_erase = spi_block_erase_60,
7049 }, {
7050 .eraseblocks = { {1024 * 1024, 1} },
7051 .block_erase = spi_block_erase_c7,
7052 }
7053 },
7054 .printlock = spi_prettyprint_status_register_bp4_srwd,
7055 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7056 .write = spi_chip_write_256,
7057 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7058 .voltage = {2300, 3600},
7059 },
7060
7061 {
Dino Li3214f582020-03-25 17:39:53 +08007062 .vendor = "GigaDevice",
7063 .name = "GD25WQ80E",
7064 .bustype = BUS_SPI,
7065 .manufacture_id = GIGADEVICE_ID,
7066 .model_id = GIGADEVICE_GD25WQ80E,
7067 .total_size = 1024,
7068 .page_size = 256,
7069 .feature_bits = FEATURE_WRSR_WREN,
7070 .tested = TEST_OK_PREW,
7071 .probe = probe_spi_rdid,
7072 .probe_timing = TIMING_ZERO,
7073 .block_erasers =
7074 {
7075 {
7076 .eraseblocks = { {4 * 1024, 256} },
7077 .block_erase = spi_block_erase_20,
7078 }, {
7079 .eraseblocks = { {32 * 1024, 32} },
7080 .block_erase = spi_block_erase_52,
7081 }, {
7082 .eraseblocks = { {64 * 1024, 16} },
7083 .block_erase = spi_block_erase_d8,
7084 }, {
7085 .eraseblocks = { {1 * 1024 * 1024, 1} },
7086 .block_erase = spi_block_erase_60,
7087 }, {
7088 .eraseblocks = { {1 * 1024 * 1024, 1} },
7089 .block_erase = spi_block_erase_c7,
7090 }
7091 },
7092 .printlock = spi_prettyprint_status_register_bp4_srwd,
7093 .unlock = spi_disable_blockprotect_bp4_srwd,
7094 .write = spi_chip_write_256,
7095 .read = spi_chip_read,
7096 .voltage = {1650, 3600},
7097 },
7098
7099 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007100 .vendor = "Hyundai",
7101 .name = "HY29F002B",
7102 .bustype = BUS_PARALLEL,
7103 .manufacture_id = HYUNDAI_ID,
7104 .model_id = HYUNDAI_HY29F002B,
7105 .total_size = 256,
7106 .page_size = 256 * 1024,
7107 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007108 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007109 .probe = probe_jedec,
7110 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007111 .block_erasers =
7112 {
7113 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007114 .eraseblocks = {
7115 {16 * 1024, 1},
7116 {8 * 1024, 2},
7117 {32 * 1024, 1},
7118 {64 * 1024, 3},
7119 },
7120 .block_erase = erase_sector_jedec,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007121 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007122 .eraseblocks = { {256 * 1024, 1} },
7123 .block_erase = erase_chip_block_jedec,
7124 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007125 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007126 .write = write_jedec_1,
7127 .read = read_memmapped,
7128 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007129 },
7130
7131 {
David Borgc96a8bd2010-06-21 16:12:22 +00007132 .vendor = "Hyundai",
7133 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007134 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00007135 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007136 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00007137 .total_size = 256,
7138 .page_size = 256 * 1024,
7139 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007140 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00007141 .probe = probe_jedec,
7142 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7143 .block_erasers =
7144 {
7145 {
7146 .eraseblocks = {
7147 {64 * 1024, 3},
7148 {32 * 1024, 1},
7149 {8 * 1024, 2},
7150 {16 * 1024, 1},
7151 },
7152 .block_erase = erase_sector_jedec,
7153 }, {
7154 .eraseblocks = { {256 * 1024, 1} },
7155 .block_erase = erase_chip_block_jedec,
7156 },
7157 },
7158 .write = write_jedec_1,
7159 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007160 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00007161 },
7162
7163 {
7164 .vendor = "Hyundai",
Joshua Roysf1324e02010-09-16 00:51:51 +00007165 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007166 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007167 .manufacture_id = HYUNDAI_ID,
7168 .model_id = HYUNDAI_HY29F040A,
7169 .total_size = 512,
7170 .page_size = 64 * 1024,
7171 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7172 .tested = TEST_UNTESTED,
7173 .probe = probe_jedec,
7174 .probe_timing = TIMING_ZERO,
7175 .block_erasers =
7176 {
7177 {
7178 .eraseblocks = { {64 * 1024, 8} },
7179 .block_erase = erase_sector_jedec,
7180 }, {
7181 .eraseblocks = { {512 * 1024, 1} },
7182 .block_erase = erase_chip_block_jedec,
7183 },
7184 },
7185 .write = write_jedec_1,
7186 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007187 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00007188 },
7189
7190 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007191 .vendor = "ISSI",
Angel Pons2ef47f32018-09-30 16:47:30 +02007192 .name = "IS25LP064",
7193 .bustype = BUS_SPI,
7194 .manufacture_id = ISSI_ID_SPI,
7195 .model_id = ISSI_IS25LP064,
7196 .total_size = 8192,
7197 .page_size = 256,
7198 /* OTP: 1024B total; read 0x48; write 0x42 */
7199 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7200 .tested = TEST_UNTESTED,
7201 .probe = probe_spi_rdid,
7202 .probe_timing = TIMING_ZERO,
7203 .block_erasers =
7204 {
7205 {
7206 .eraseblocks = { {4 * 1024, 2048} },
7207 .block_erase = spi_block_erase_20,
7208 }, {
7209 .eraseblocks = { {4 * 1024, 2048} },
7210 .block_erase = spi_block_erase_d7,
7211 }, {
7212 .eraseblocks = { {32 * 1024, 256} },
7213 .block_erase = spi_block_erase_52,
7214 }, {
7215 .eraseblocks = { {64 * 1024, 128} },
7216 .block_erase = spi_block_erase_d8,
7217 }, {
7218 .eraseblocks = { {8 * 1024 * 1024, 1} },
7219 .block_erase = spi_block_erase_60,
7220 }, {
7221 .eraseblocks = { {8 * 1024 * 1024, 1} },
7222 .block_erase = spi_block_erase_c7,
7223 }
7224 },
7225 .unlock = spi_disable_blockprotect,
7226 .write = spi_chip_write_256,
7227 .read = spi_chip_read,
7228 .voltage = {2300, 3600},
7229 },
7230
7231 {
7232 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007233 .name = "IS25LP128",
7234 .bustype = BUS_SPI,
7235 .manufacture_id = ISSI_ID_SPI,
7236 .model_id = ISSI_IS25LP128,
7237 .total_size = 16384,
7238 .page_size = 256,
7239 /* OTP: 1024B total; read 0x48; write 0x42 */
7240 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7241 .tested = TEST_OK_PREW,
7242 .probe = probe_spi_rdid,
7243 .probe_timing = TIMING_ZERO,
7244 .block_erasers =
7245 {
7246 {
7247 .eraseblocks = { {4 * 1024, 4096} },
7248 .block_erase = spi_block_erase_20,
7249 }, {
7250 .eraseblocks = { {4 * 1024, 4096} },
7251 .block_erase = spi_block_erase_d7,
7252 }, {
7253 .eraseblocks = { {32 * 1024, 512} },
7254 .block_erase = spi_block_erase_52,
7255 }, {
7256 .eraseblocks = { {64 * 1024, 256} },
7257 .block_erase = spi_block_erase_d8,
7258 }, {
7259 .eraseblocks = { {16 * 1024 * 1024, 1} },
7260 .block_erase = spi_block_erase_60,
7261 }, {
7262 .eraseblocks = { {16 * 1024 * 1024, 1} },
7263 .block_erase = spi_block_erase_c7,
7264 }
7265 },
7266 .unlock = spi_disable_blockprotect,
7267 .write = spi_chip_write_256,
7268 .read = spi_chip_read,
7269 .voltage = {2300, 3600},
7270 },
7271
7272 {
7273 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007274 .name = "IS25LP256",
7275 .bustype = BUS_SPI,
7276 .manufacture_id = ISSI_ID_SPI,
7277 .model_id = ISSI_IS25LP256,
7278 .total_size = 32768,
7279 .page_size = 256,
7280 /* supports SFDP */
7281 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7282 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7283 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7284 .tested = TEST_OK_PREW,
7285 .probe = probe_spi_rdid,
7286 .probe_timing = TIMING_ZERO,
7287 .block_erasers =
7288 {
7289 {
7290 .eraseblocks = { {4 * 1024, 8192} },
7291 .block_erase = spi_block_erase_21,
7292 }, {
7293 .eraseblocks = { {4 * 1024, 8192} },
7294 .block_erase = spi_block_erase_20,
7295 /* could also use spi_block_erase_d7 */
7296 }, {
7297 .eraseblocks = { {32 * 1024, 1024} },
7298 .block_erase = spi_block_erase_5c,
7299 }, {
7300 .eraseblocks = { {32 * 1024, 1024} },
7301 .block_erase = spi_block_erase_52,
7302 }, {
7303 .eraseblocks = { {64 * 1024, 512} },
7304 .block_erase = spi_block_erase_dc,
7305 }, {
7306 .eraseblocks = { {64 * 1024, 512} },
7307 .block_erase = spi_block_erase_d8,
7308 }, {
7309 .eraseblocks = { {32 * 1024 * 1024, 1} },
7310 .block_erase = spi_block_erase_60,
7311 }, {
7312 .eraseblocks = { {32 * 1024 * 1024, 1} },
7313 .block_erase = spi_block_erase_c7,
7314 }
7315 },
7316 .unlock = spi_disable_blockprotect,
7317 .write = spi_chip_write_256,
7318 .read = spi_chip_read,
7319 .voltage = {2300, 3600},
7320 },
7321
7322 {
7323 .vendor = "ISSI",
Nico Huberb27b8d12018-10-02 20:46:21 +02007324 .name = "IS25WP032",
7325 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007326 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007327 .model_id = ISSI_IS25WP032,
7328 .total_size = 4096,
7329 .page_size = 256,
7330 /* OTP: 1024B total; read 0x48; write 0x42 */
7331 /* QPI enable 0x35, disable 0xF5 */
7332 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7333 .tested = TEST_UNTESTED,
7334 .probe = probe_spi_rdid,
7335 .probe_timing = TIMING_ZERO,
7336 .block_erasers =
7337 {
7338 {
7339 .eraseblocks = { {4 * 1024, 1024} },
7340 .block_erase = spi_block_erase_20,
7341 }, {
7342 .eraseblocks = { {4 * 1024, 1024} },
7343 .block_erase = spi_block_erase_d7,
7344 }, {
7345 .eraseblocks = { {32 * 1024, 128} },
7346 .block_erase = spi_block_erase_52,
7347 }, {
7348 .eraseblocks = { {64 * 1024, 64} },
7349 .block_erase = spi_block_erase_d8,
7350 }, {
7351 .eraseblocks = { {4 * 1024 * 1024, 1} },
7352 .block_erase = spi_block_erase_60,
7353 }, {
7354 .eraseblocks = { {4 * 1024 * 1024, 1} },
7355 .block_erase = spi_block_erase_c7,
7356 }
7357 },
7358 .unlock = spi_disable_blockprotect,
7359 .write = spi_chip_write_256,
7360 .read = spi_chip_read,
7361 .voltage = {1650, 1950},
7362 },
7363
7364 {
7365 .vendor = "ISSI",
7366 .name = "IS25WP064",
7367 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007368 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007369 .model_id = ISSI_IS25WP064,
7370 .total_size = 8192,
7371 .page_size = 256,
7372 /* OTP: 1024B total; read 0x48; write 0x42 */
7373 /* QPI enable 0x35, disable 0xF5 */
7374 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7375 .tested = TEST_OK_PREW,
7376 .probe = probe_spi_rdid,
7377 .probe_timing = TIMING_ZERO,
7378 .block_erasers =
7379 {
7380 {
7381 .eraseblocks = { {4 * 1024, 2048} },
7382 .block_erase = spi_block_erase_20,
7383 }, {
7384 .eraseblocks = { {4 * 1024, 2048} },
7385 .block_erase = spi_block_erase_d7,
7386 }, {
7387 .eraseblocks = { {32 * 1024, 256} },
7388 .block_erase = spi_block_erase_52,
7389 }, {
7390 .eraseblocks = { {64 * 1024, 128} },
7391 .block_erase = spi_block_erase_d8,
7392 }, {
7393 .eraseblocks = { {8 * 1024 * 1024, 1} },
7394 .block_erase = spi_block_erase_60,
7395 }, {
7396 .eraseblocks = { {8 * 1024 * 1024, 1} },
7397 .block_erase = spi_block_erase_c7,
7398 }
7399 },
7400 .unlock = spi_disable_blockprotect,
7401 .write = spi_chip_write_256,
7402 .read = spi_chip_read,
7403 .voltage = {1650, 1950},
7404 },
7405
7406 {
7407 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007408 .name = "IS25WP128",
7409 .bustype = BUS_SPI,
7410 .manufacture_id = ISSI_ID_SPI,
7411 .model_id = ISSI_IS25WP128,
7412 .total_size = 16384,
7413 .page_size = 256,
7414 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huberb27b8d12018-10-02 20:46:21 +02007415 /* QPI enable 0x35, disable 0xF5 */
7416 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks3083ed92017-05-02 13:25:56 -07007417 .tested = TEST_OK_PREW,
7418 .probe = probe_spi_rdid,
7419 .probe_timing = TIMING_ZERO,
7420 .block_erasers =
7421 {
7422 {
7423 .eraseblocks = { {4 * 1024, 4096} },
7424 .block_erase = spi_block_erase_20,
7425 }, {
7426 .eraseblocks = { {4 * 1024, 4096} },
7427 .block_erase = spi_block_erase_d7,
7428 }, {
7429 .eraseblocks = { {32 * 1024, 512} },
7430 .block_erase = spi_block_erase_52,
7431 }, {
7432 .eraseblocks = { {64 * 1024, 256} },
7433 .block_erase = spi_block_erase_d8,
7434 }, {
7435 .eraseblocks = { {16 * 1024 * 1024, 1} },
7436 .block_erase = spi_block_erase_60,
7437 }, {
7438 .eraseblocks = { {16 * 1024 * 1024, 1} },
7439 .block_erase = spi_block_erase_c7,
7440 }
7441 },
7442 .unlock = spi_disable_blockprotect,
7443 .write = spi_chip_write_256,
7444 .read = spi_chip_read,
7445 .voltage = {1650, 1950},
7446 },
7447
7448 {
7449 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007450 .name = "IS25WP256",
7451 .bustype = BUS_SPI,
7452 .manufacture_id = ISSI_ID_SPI,
7453 .model_id = ISSI_IS25WP256,
7454 .total_size = 32768,
7455 .page_size = 256,
7456 /* supports SFDP */
7457 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7458 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7459 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7460 .tested = TEST_OK_PREW,
7461 .probe = probe_spi_rdid,
7462 .probe_timing = TIMING_ZERO,
7463 .block_erasers =
7464 {
7465 {
7466 .eraseblocks = { {4 * 1024, 8192} },
7467 .block_erase = spi_block_erase_21,
7468 }, {
7469 .eraseblocks = { {4 * 1024, 8192} },
7470 .block_erase = spi_block_erase_20,
7471 /* could also use spi_block_erase_d7 */
7472 }, {
7473 .eraseblocks = { {32 * 1024, 1024} },
7474 .block_erase = spi_block_erase_5c,
7475 }, {
7476 .eraseblocks = { {32 * 1024, 1024} },
7477 .block_erase = spi_block_erase_52,
7478 }, {
7479 .eraseblocks = { {64 * 1024, 512} },
7480 .block_erase = spi_block_erase_dc,
7481 }, {
7482 .eraseblocks = { {64 * 1024, 512} },
7483 .block_erase = spi_block_erase_d8,
7484 }, {
7485 .eraseblocks = { {32 * 1024 * 1024, 1} },
7486 .block_erase = spi_block_erase_60,
7487 }, {
7488 .eraseblocks = { {32 * 1024 * 1024, 1} },
7489 .block_erase = spi_block_erase_c7,
7490 }
7491 },
7492 .unlock = spi_disable_blockprotect,
7493 .write = spi_chip_write_256,
7494 .read = spi_chip_read,
7495 .voltage = {1650, 1950},
7496 },
7497
7498 {
7499 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007500 .name = "IS29GL064B",
7501 .bustype = BUS_PARALLEL,
7502 .manufacture_id = ISSI_ID,
7503 .model_id = ISSI_PMC_IS29GL064B,
7504 .total_size = 8192,
7505 .page_size = 128 * 1024, /* actual page size is 16 */
7506 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7507 .tested = TEST_UNTESTED,
7508 .probe = probe_jedec_29gl,
7509 .probe_timing = TIMING_ZERO,
7510 .block_erasers =
7511 {
7512 {
7513 .eraseblocks = {
7514 {8 * 1024, 8},
7515 {64 * 1024, 127},
7516 },
7517 .block_erase = erase_sector_jedec,
7518 }, {
7519 .eraseblocks = { {8 * 1024 * 1024, 1} },
7520 .block_erase = erase_chip_block_jedec,
7521 },
7522 },
7523 .write = write_jedec_1,
7524 .read = read_memmapped,
7525 .voltage = {2700, 3600},
7526 },
7527
7528 {
7529 .vendor = "ISSI",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007530 .name = "IS29GL064H/L",
7531 .bustype = BUS_PARALLEL,
7532 .manufacture_id = ISSI_ID,
7533 .model_id = ISSI_PMC_IS29GL064HL,
7534 .total_size = 8192,
7535 .page_size = 128 * 1024, /* actual page size is 16 */
7536 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7537 .tested = TEST_UNTESTED,
7538 .probe = probe_jedec_29gl,
7539 .probe_timing = TIMING_ZERO,
7540 .block_erasers =
7541 {
7542 {
7543 .eraseblocks = { {64 * 1024, 128} },
7544 .block_erase = erase_sector_jedec,
7545 }, {
7546 .eraseblocks = { {8 * 1024 * 1024, 1} },
7547 .block_erase = erase_chip_block_jedec,
7548 },
7549 },
7550 .write = write_jedec_1,
7551 .read = read_memmapped,
7552 .voltage = {2700, 3600},
7553 },
7554
7555 {
7556 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007557 .name = "IS29GL064T",
7558 .bustype = BUS_PARALLEL,
7559 .manufacture_id = ISSI_ID,
7560 .model_id = ISSI_PMC_IS29GL064T,
7561 .total_size = 8192,
7562 .page_size = 128 * 1024, /* actual page size is 16 */
7563 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7564 .tested = TEST_UNTESTED,
7565 .probe = probe_jedec_29gl,
7566 .probe_timing = TIMING_ZERO,
7567 .block_erasers =
7568 {
7569 {
7570 .eraseblocks = {
7571 {64 * 1024, 127},
7572 {8 * 1024, 8},
7573 },
7574 .block_erase = erase_sector_jedec,
7575 }, {
7576 .eraseblocks = { {8 * 1024 * 1024, 1} },
7577 .block_erase = erase_chip_block_jedec,
7578 },
7579 },
7580 .write = write_jedec_1,
7581 .read = read_memmapped,
7582 .voltage = {2700, 3600},
7583 },
7584
7585 {
7586 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007587 .name = "IS29GL128H/L",
7588 .bustype = BUS_PARALLEL,
7589 .manufacture_id = ISSI_ID,
7590 .model_id = ISSI_PMC_IS29GL128HL,
7591 .total_size = 16384,
7592 .page_size = 128 * 1024, /* actual page size is 16 */
7593 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7594 .tested = TEST_UNTESTED,
7595 .probe = probe_jedec_29gl,
7596 .probe_timing = TIMING_ZERO,
7597 .block_erasers =
7598 {
7599 {
7600 .eraseblocks = { {128 * 1024, 128} },
7601 .block_erase = erase_sector_jedec,
7602 }, {
7603 .eraseblocks = { {16 * 1024 * 1024, 1} },
7604 .block_erase = erase_chip_block_jedec,
7605 },
7606 },
7607 .write = write_jedec_1,
7608 .read = read_memmapped,
7609 .voltage = {2700, 3600},
7610 },
7611
7612 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007613 .vendor = "Intel",
7614 .name = "25F160S33B8",
7615 .bustype = BUS_SPI,
7616 .manufacture_id = INTEL_ID,
7617 .model_id = INTEL_25F160S33B8,
7618 .total_size = 2048,
7619 .page_size = 256,
7620 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7621 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7622 .tested = TEST_UNTESTED,
7623 .probe = probe_spi_rdid,
7624 .probe_timing = TIMING_ZERO,
7625 .block_erasers =
7626 {
7627 {
7628 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7629 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7630 * have no effect on the memory contents, but sets a flag in the SR.
7631 .eraseblocks = {
7632 {8 * 1024, 8},
7633 {64 * 1024, 31} // inaccessible
7634 },
7635 .block_erase = spi_block_erase_40,
7636 }, { */
7637 .eraseblocks = { {64 * 1024, 32} },
7638 .block_erase = spi_block_erase_d8,
7639 }, {
7640 .eraseblocks = { {2 * 1024 * 1024, 1} },
7641 .block_erase = spi_block_erase_c7,
7642 }
7643 },
7644 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7645 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7646 .write = spi_chip_write_256,
7647 .read = spi_chip_read, /* also fast read 0x0B */
7648 .voltage = {2700, 3600},
7649 },
7650
7651 {
7652 .vendor = "Intel",
7653 .name = "25F160S33T8",
7654 .bustype = BUS_SPI,
7655 .manufacture_id = INTEL_ID,
7656 .model_id = INTEL_25F160S33T8,
7657 .total_size = 2048,
7658 .page_size = 256,
7659 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7660 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7661 .tested = TEST_UNTESTED,
7662 .probe = probe_spi_rdid,
7663 .probe_timing = TIMING_ZERO,
7664 .block_erasers =
7665 {
7666 {
7667 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7668 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7669 * have no effect on the memory contents, but sets a flag in the SR.
7670 .eraseblocks = {
7671 {64 * 1024, 31}, // inaccessible
7672 {8 * 1024, 8}
7673 },
7674 .block_erase = spi_block_erase_40,
7675 }, { */
7676 .eraseblocks = { {64 * 1024, 32} },
7677 .block_erase = spi_block_erase_d8,
7678 }, {
7679 .eraseblocks = { {2 * 1024 * 1024, 1} },
7680 .block_erase = spi_block_erase_c7,
7681 }
7682 },
7683 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7684 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7685 .write = spi_chip_write_256,
7686 .read = spi_chip_read, /* also fast read 0x0B */
7687 .voltage = {2700, 3600},
7688 },
7689
7690 {
7691 .vendor = "Intel",
7692 .name = "25F320S33B8",
7693 .bustype = BUS_SPI,
7694 .manufacture_id = INTEL_ID,
7695 .model_id = INTEL_25F320S33B8,
7696 .total_size = 4096,
7697 .page_size = 256,
7698 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7699 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7700 .tested = TEST_UNTESTED,
7701 .probe = probe_spi_rdid,
7702 .probe_timing = TIMING_ZERO,
7703 .block_erasers =
7704 {
7705 {
7706 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7707 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7708 * have no effect on the memory contents, but sets a flag in the SR.
7709 .eraseblocks = {
7710 {8 * 1024, 8},
7711 {64 * 1024, 63} // inaccessible
7712 },
7713 .block_erase = spi_block_erase_40,
7714 }, { */
7715 .eraseblocks = { {64 * 1024, 64} },
7716 .block_erase = spi_block_erase_d8,
7717 }, {
7718 .eraseblocks = { {4 * 1024 * 1024, 1} },
7719 .block_erase = spi_block_erase_c7,
7720 }
7721 },
7722 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7723 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7724 .write = spi_chip_write_256,
7725 .read = spi_chip_read, /* also fast read 0x0B */
7726 .voltage = {2700, 3600},
7727 },
7728
7729 {
7730 .vendor = "Intel",
7731 .name = "25F320S33T8",
7732 .bustype = BUS_SPI,
7733 .manufacture_id = INTEL_ID,
7734 .model_id = INTEL_25F320S33T8,
7735 .total_size = 4096,
7736 .page_size = 256,
7737 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7738 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7739 .tested = TEST_UNTESTED,
7740 .probe = probe_spi_rdid,
7741 .probe_timing = TIMING_ZERO,
7742 .block_erasers =
7743 {
7744 {
7745 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7746 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7747 * have no effect on the memory contents, but sets a flag in the SR.
7748 .eraseblocks = {
7749 {64 * 1024, 63}, // inaccessible
7750 {8 * 1024, 8}
7751 },
7752 .block_erase = spi_block_erase_40,
7753 }, { */
7754 .eraseblocks = { {64 * 1024, 64} },
7755 .block_erase = spi_block_erase_d8,
7756 }, {
7757 .eraseblocks = { {4 * 1024 * 1024, 1} },
7758 .block_erase = spi_block_erase_c7,
7759 }
7760 },
7761 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7762 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7763 .write = spi_chip_write_256,
7764 .read = spi_chip_read, /* also fast read 0x0B */
7765 .voltage = {2700, 3600},
7766 },
7767
7768 {
7769 .vendor = "Intel",
7770 .name = "25F640S33B8",
7771 .bustype = BUS_SPI,
7772 .manufacture_id = INTEL_ID,
7773 .model_id = INTEL_25F640S33B8,
7774 .total_size = 8192,
7775 .page_size = 256,
7776 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7777 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7778 .tested = TEST_UNTESTED,
7779 .probe = probe_spi_rdid,
7780 .probe_timing = TIMING_ZERO,
7781 .block_erasers =
7782 {
7783 {
7784 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7785 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7786 * have no effect on the memory contents, but sets a flag in the SR.
7787 .eraseblocks = {
7788 {8 * 1024, 8},
7789 {64 * 1024, 127} // inaccessible
7790 },
7791 .block_erase = spi_block_erase_40,
7792 }, { */
7793 .eraseblocks = { {64 * 1024, 128} },
7794 .block_erase = spi_block_erase_d8,
7795 }, {
7796 .eraseblocks = { {8 * 1024 * 1024, 1} },
7797 .block_erase = spi_block_erase_c7,
7798 }
7799 },
7800 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7801 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7802 .write = spi_chip_write_256,
7803 .read = spi_chip_read, /* also fast read 0x0B */
7804 .voltage = {2700, 3600},
7805 },
7806
7807 {
7808 .vendor = "Intel",
7809 .name = "25F640S33T8",
7810 .bustype = BUS_SPI,
7811 .manufacture_id = INTEL_ID,
7812 .model_id = INTEL_25F640S33T8,
7813 .total_size = 8192,
7814 .page_size = 256,
7815 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7816 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7817 .tested = TEST_UNTESTED,
7818 .probe = probe_spi_rdid,
7819 .probe_timing = TIMING_ZERO,
7820 .block_erasers =
7821 {
7822 {
7823 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7824 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7825 * have no effect on the memory contents, but sets a flag in the SR.
7826 .eraseblocks = {
7827 {64 * 1024, 127}, // inaccessible
7828 {8 * 1024, 8}
7829 },
7830 .block_erase = spi_block_erase_40,
7831 }, { */
7832 .eraseblocks = { {64 * 1024, 128} },
7833 .block_erase = spi_block_erase_d8,
7834 }, {
7835 .eraseblocks = { {8 * 1024 * 1024, 1} },
7836 .block_erase = spi_block_erase_c7,
7837 }
7838 },
7839 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7840 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7841 .write = spi_chip_write_256,
7842 .read = spi_chip_read, /* also fast read 0x0B */
7843 .voltage = {2700, 3600},
7844 },
7845
7846 {
7847 .vendor = "Intel",
7848 .name = "28F001BN/BX-B",
7849 .bustype = BUS_PARALLEL,
7850 .manufacture_id = INTEL_ID,
7851 .model_id = INTEL_28F001B,
7852 .total_size = 128,
7853 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
7854 .tested = TEST_UNTESTED,
7855 .probe = probe_jedec,
7856 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7857 .block_erasers =
7858 {
7859 {
7860 .eraseblocks = {
7861 {8 * 1024, 1},
7862 {4 * 1024, 2},
7863 {112 * 1024, 1},
7864 },
7865 .block_erase = erase_block_82802ab,
7866 },
7867 },
7868 .write = write_82802ab,
7869 .read = read_memmapped,
7870 .voltage = {4500, 5500},
7871 },
7872
7873 {
7874 .vendor = "Intel",
7875 .name = "28F001BN/BX-T",
7876 .bustype = BUS_PARALLEL,
7877 .manufacture_id = INTEL_ID,
7878 .model_id = INTEL_28F001T,
7879 .total_size = 128,
7880 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
7881 .tested = TEST_OK_PREW,
7882 .probe = probe_jedec,
7883 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7884 .block_erasers =
7885 {
7886 {
7887 .eraseblocks = {
7888 {112 * 1024, 1},
7889 {4 * 1024, 2},
7890 {8 * 1024, 1},
7891 },
7892 .block_erase = erase_block_82802ab,
7893 },
7894 },
7895 .write = write_82802ab,
7896 .read = read_memmapped,
7897 .voltage = {4500, 5500},
7898 },
7899
7900 {
7901 .vendor = "Intel",
7902 .name = "28F002BC/BL/BV/BX-T",
7903 .bustype = BUS_PARALLEL,
7904 .manufacture_id = INTEL_ID,
7905 .model_id = INTEL_28F002T,
7906 .total_size = 256,
7907 .page_size = 256 * 1024,
7908 .tested = TEST_OK_PRE,
7909 .probe = probe_82802ab,
7910 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7911 .block_erasers =
7912 {
7913 {
7914 .eraseblocks = {
7915 {128 * 1024, 1},
7916 {96 * 1024, 1},
7917 {8 * 1024, 2},
7918 {16 * 1024, 1},
7919 },
7920 .block_erase = erase_block_82802ab,
7921 },
7922 },
7923 .write = write_82802ab,
7924 .read = read_memmapped,
7925 },
7926
7927 {
7928 .vendor = "Intel",
7929 .name = "28F004B5/BE/BV/BX-B",
7930 .bustype = BUS_PARALLEL,
7931 .manufacture_id = INTEL_ID,
7932 .model_id = INTEL_28F004B,
7933 .total_size = 512,
7934 .page_size = 128 * 1024, /* maximal block size */
7935 .tested = TEST_UNTESTED,
7936 .probe = probe_82802ab,
7937 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7938 .block_erasers =
7939 {
7940 {
7941 .eraseblocks = {
7942 {16 * 1024, 1},
7943 {8 * 1024, 2},
7944 {96 * 1024, 1},
7945 {128 * 1024, 3},
7946 },
7947 .block_erase = erase_block_82802ab,
7948 },
7949 },
7950 .write = write_82802ab,
7951 .read = read_memmapped,
7952 },
7953
7954 {
7955 .vendor = "Intel",
7956 .name = "28F004B5/BE/BV/BX-T",
7957 .bustype = BUS_PARALLEL,
7958 .manufacture_id = INTEL_ID,
7959 .model_id = INTEL_28F004T,
7960 .total_size = 512,
7961 .page_size = 128 * 1024, /* maximal block size */
7962 .tested = TEST_UNTESTED,
7963 .probe = probe_82802ab,
7964 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7965 .block_erasers =
7966 {
7967 {
7968 .eraseblocks = {
7969 {128 * 1024, 3},
7970 {96 * 1024, 1},
7971 {8 * 1024, 2},
7972 {16 * 1024, 1},
7973 },
7974 .block_erase = erase_block_82802ab,
7975 },
7976 },
7977 .write = write_82802ab,
7978 .read = read_memmapped,
7979 },
7980
7981 {
7982 .vendor = "Intel",
7983 .name = "28F008S3/S5/SC",
7984 .bustype = BUS_PARALLEL,
7985 .manufacture_id = INTEL_ID,
7986 .model_id = INTEL_28F004S3,
7987 .total_size = 512,
7988 .page_size = 256,
7989 .tested = TEST_UNTESTED,
7990 .probe = probe_82802ab,
7991 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7992 .block_erasers =
7993 {
7994 {
7995 .eraseblocks = { {64 * 1024, 8} },
7996 .block_erase = erase_block_82802ab,
7997 },
7998 },
7999 .unlock = unlock_28f004s5,
8000 .write = write_82802ab,
8001 .read = read_memmapped,
8002 },
8003
8004 {
8005 .vendor = "Intel",
8006 .name = "28F400BV/BX/CE/CV-B",
8007 .bustype = BUS_PARALLEL,
8008 .manufacture_id = INTEL_ID,
8009 .model_id = INTEL_28F400B,
8010 .total_size = 512,
8011 .page_size = 128 * 1024, /* maximal block size */
8012 .feature_bits = FEATURE_ADDR_SHIFTED,
8013 .tested = TEST_UNTESTED,
8014 .probe = probe_82802ab,
8015 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8016 .block_erasers =
8017 {
8018 {
8019 .eraseblocks = {
8020 {16 * 1024, 1},
8021 {8 * 1024, 2},
8022 {96 * 1024, 1},
8023 {128 * 1024, 3},
8024 },
8025 .block_erase = erase_block_82802ab,
8026 },
8027 },
8028 .write = write_82802ab,
8029 .read = read_memmapped,
8030 },
8031
8032 {
8033 .vendor = "Intel",
8034 .name = "28F400BV/BX/CE/CV-T",
8035 .bustype = BUS_PARALLEL,
8036 .manufacture_id = INTEL_ID,
8037 .model_id = INTEL_28F400T,
8038 .total_size = 512,
8039 .page_size = 128 * 1024, /* maximal block size */
8040 .feature_bits = FEATURE_ADDR_SHIFTED,
8041 .tested = TEST_UNTESTED,
8042 .probe = probe_82802ab,
8043 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8044 .block_erasers =
8045 {
8046 {
8047 .eraseblocks = {
8048 {128 * 1024, 3},
8049 {96 * 1024, 1},
8050 {8 * 1024, 2},
8051 {16 * 1024, 1},
8052 },
8053 .block_erase = erase_block_82802ab,
8054 },
8055 },
8056 .write = write_82802ab,
8057 .read = read_memmapped,
8058 },
8059
8060 {
8061 .vendor = "Intel",
8062 .name = "82802AB",
8063 .bustype = BUS_FWH,
8064 .manufacture_id = INTEL_ID,
8065 .model_id = INTEL_82802AB,
8066 .total_size = 512,
8067 .page_size = 64 * 1024,
8068 .feature_bits = FEATURE_REGISTERMAP,
Alan Green88552572019-07-24 13:56:06 +10008069 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008070 .probe = probe_82802ab,
8071 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8072 .block_erasers =
8073 {
8074 {
8075 .eraseblocks = { {64 * 1024, 8} },
8076 .block_erase = erase_block_82802ab,
8077 },
8078 },
8079 .unlock = unlock_regspace2_uniform_64k,
8080 .write = write_82802ab,
8081 .read = read_memmapped,
8082 .voltage = {3000, 3600},
8083 },
8084
8085 {
8086 .vendor = "Intel",
8087 .name = "82802AC",
8088 .bustype = BUS_FWH,
8089 .manufacture_id = INTEL_ID,
8090 .model_id = INTEL_82802AC,
8091 .total_size = 1024,
8092 .page_size = 64 * 1024,
8093 .feature_bits = FEATURE_REGISTERMAP,
8094 .tested = TEST_OK_PR,
8095 .probe = probe_82802ab,
8096 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8097 .block_erasers =
8098 {
8099 {
8100 .eraseblocks = { {64 * 1024, 16} },
8101 .block_erase = erase_block_82802ab,
8102 },
8103 },
8104 .unlock = unlock_regspace2_uniform_64k,
8105 .write = write_82802ab,
8106 .read = read_memmapped,
8107 .voltage = {3000, 3600},
8108 },
8109
8110 {
8111 .vendor = "Macronix",
8112 .name = "MX23L12854",
8113 .bustype = BUS_SPI,
8114 .manufacture_id = MACRONIX_ID,
8115 .model_id = MACRONIX_MX23L12854,
8116 .total_size = 16384,
8117 .page_size = 256,
8118 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8119 .probe = probe_spi_rdid,
8120 .probe_timing = TIMING_ZERO,
8121 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
8122 .read = spi_chip_read, /* Fast read (0x0B) supported */
8123 .voltage = {3000, 3600},
8124 },
8125
8126 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008127 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008128 .name = "MX23L1654",
8129 .bustype = BUS_SPI,
8130 .manufacture_id = MACRONIX_ID,
8131 .model_id = MACRONIX_MX23L1654,
8132 .total_size = 2048,
8133 .page_size = 256,
8134 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8135 .probe = probe_spi_rdid,
8136 .probe_timing = TIMING_ZERO,
8137 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
8138 .read = spi_chip_read, /* Fast read (0x0B) supported */
8139 .voltage = {3000, 3600},
8140 },
8141
8142 {
8143 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008144 .name = "MX23L3254",
8145 .bustype = BUS_SPI,
8146 .manufacture_id = MACRONIX_ID,
8147 .model_id = MACRONIX_MX23L3254,
8148 .total_size = 4096,
8149 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00008150 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008151 .probe = probe_spi_rdid,
8152 .probe_timing = TIMING_ZERO,
8153 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
8154 .read = spi_chip_read, /* Fast read (0x0B) supported */
8155 .voltage = {3000, 3600},
8156 },
8157
8158 {
8159 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008160 .name = "MX23L6454",
8161 .bustype = BUS_SPI,
8162 .manufacture_id = MACRONIX_ID,
8163 .model_id = MACRONIX_MX23L6454,
8164 .total_size = 8192,
8165 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008166 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00008167 .probe = probe_spi_rdid,
8168 .probe_timing = TIMING_ZERO,
8169 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
8170 .read = spi_chip_read, /* Fast read (0x0B) supported */
8171 .voltage = {3000, 3600},
8172 },
8173
8174 {
8175 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00008176 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008177 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008178 .manufacture_id = MACRONIX_ID,
8179 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008180 .total_size = 128,
8181 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008182 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00008183 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00008184 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008185 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008186 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008187 .block_erasers =
8188 {
8189 {
8190 .eraseblocks = { {4 * 1024, 32} },
8191 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008192 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008193 .eraseblocks = { {64 * 1024, 2} },
8194 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008195 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008196 .eraseblocks = { {128 * 1024, 1} },
8197 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008198 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008199 .eraseblocks = { {128 * 1024, 1} },
8200 .block_erase = spi_block_erase_c7,
8201 },
8202 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008203 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008204 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008205 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008206 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008207 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008208 },
8209
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008210 {
8211 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008212 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008213 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008214 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008215 .model_id = MACRONIX_MX25L12805D,
8216 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008217 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008218 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8219 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008220 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008221 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008222 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008223 .block_erasers =
8224 {
8225 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008226 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008227 .block_erase = spi_block_erase_20,
8228 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008229 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008230 .block_erase = spi_block_erase_d8,
8231 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008232 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008233 .block_erase = spi_block_erase_60,
8234 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008235 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008236 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008237 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008238 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008239 .printlock = spi_prettyprint_status_register_bp3_srwd,
8240 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008241 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008242 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008243 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008244 },
8245
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008246 {
8247 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008248 .name = "MX25L12835F/MX25L12845E/MX25L12865E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008249 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008250 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008251 .model_id = MACRONIX_MX25L12805D,
8252 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008253 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008254 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8255 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner8179be52011-06-04 13:13:34 +00008256 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008257 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008258 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008259 .block_erasers =
8260 {
8261 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008262 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008263 .block_erase = spi_block_erase_20,
8264 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008265 .eraseblocks = { {32 * 1024, 512} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008266 .block_erase = spi_block_erase_52,
8267 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008268 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008269 .block_erase = spi_block_erase_d8,
8270 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008271 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008272 .block_erase = spi_block_erase_60,
8273 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008274 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008275 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008276 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008277 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008278 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8279 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8280 .unlock = spi_disable_blockprotect_bp3_srwd,
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 */
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",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008288 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008289 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008290 .manufacture_id = MACRONIX_ID,
8291 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008292 .total_size = 2048,
8293 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008294 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00008295 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008296 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008297 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008298 .block_erasers =
8299 {
8300 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008301 .eraseblocks = { {64 * 1024, 32} },
8302 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008303 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008304 .eraseblocks = { {64 * 1024, 32} },
8305 .block_erase = spi_block_erase_d8,
8306 }, {
8307 .eraseblocks = { {2 * 1024 * 1024, 1} },
8308 .block_erase = spi_block_erase_60,
8309 }, {
8310 .eraseblocks = { {2 * 1024 * 1024, 1} },
8311 .block_erase = spi_block_erase_c7,
8312 },
8313 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008314 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00008315 .unlock = spi_disable_blockprotect,
8316 .write = spi_chip_write_256,
8317 .read = spi_chip_read, /* Fast read (0x0B) supported */
8318 .voltage = {2700, 3600},
8319 },
8320
8321 {
8322 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008323 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008324 .bustype = BUS_SPI,
8325 .manufacture_id = MACRONIX_ID,
8326 .model_id = MACRONIX_MX25L1605,
8327 .total_size = 2048,
8328 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008329 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008330 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8331 .tested = TEST_OK_PREW,
8332 .probe = probe_spi_rdid,
8333 .probe_timing = TIMING_ZERO,
8334 .block_erasers =
8335 {
8336 {
8337 .eraseblocks = { {4 * 1024, 512} },
8338 .block_erase = spi_block_erase_20,
8339 }, {
8340 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008341 .block_erase = spi_block_erase_52,
8342 }, {
8343 .eraseblocks = { {64 * 1024, 32} },
8344 .block_erase = spi_block_erase_d8,
8345 }, {
8346 .eraseblocks = { {2 * 1024 * 1024, 1} },
8347 .block_erase = spi_block_erase_60,
8348 }, {
8349 .eraseblocks = { {2 * 1024 * 1024, 1} },
8350 .block_erase = spi_block_erase_c7,
8351 },
8352 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008353 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008354 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008355 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008356 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008357 .voltage = {2700, 3600},
8358 },
8359
8360 {
8361 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008362 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008363 .bustype = BUS_SPI,
8364 .manufacture_id = MACRONIX_ID,
8365 .model_id = MACRONIX_MX25L1605,
8366 .total_size = 2048,
8367 .page_size = 256,
8368 .feature_bits = FEATURE_WRSR_WREN,
8369 .tested = TEST_OK_PREW,
8370 .probe = probe_spi_rdid,
8371 .probe_timing = TIMING_ZERO,
8372 .block_erasers =
8373 {
8374 {
8375 .eraseblocks = { {4 * 1024, 512} },
8376 .block_erase = spi_block_erase_20,
8377 }, {
8378 .eraseblocks = { {64 * 1024, 32} },
8379 .block_erase = spi_block_erase_d8,
8380 }, {
8381 .eraseblocks = { {2 * 1024 * 1024, 1} },
8382 .block_erase = spi_block_erase_60,
8383 }, {
8384 .eraseblocks = { {2 * 1024 * 1024, 1} },
8385 .block_erase = spi_block_erase_c7,
8386 },
8387 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008388 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008389 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008390 .write = spi_chip_write_256,
8391 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008392 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008393 },
8394
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008395 {
8396 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008397 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008398 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008399 .manufacture_id = MACRONIX_ID,
8400 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008401 .total_size = 2048,
8402 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008403 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8404 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008405 .tested = TEST_UNTESTED,
8406 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008407 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008408 .block_erasers =
8409 {
8410 {
8411 .eraseblocks = { {4 * 1024, 512} },
8412 .block_erase = spi_block_erase_20,
8413 }, {
8414 .eraseblocks = { {64 * 1024, 32} },
8415 .block_erase = spi_block_erase_d8,
8416 }, {
8417 .eraseblocks = { {2 * 1024 * 1024, 1} },
8418 .block_erase = spi_block_erase_60,
8419 }, {
8420 .eraseblocks = { {2 * 1024 * 1024, 1} },
8421 .block_erase = spi_block_erase_c7,
8422 }
8423 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008424 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008425 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008426 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008427 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008428 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008429 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00008430
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008431 {
8432 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00008433 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008434 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008435 .manufacture_id = MACRONIX_ID,
8436 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008437 .total_size = 2048,
8438 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008439 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8440 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008441 .tested = TEST_UNTESTED,
8442 .probe = probe_spi_rdid,
8443 .probe_timing = TIMING_ZERO,
8444 .block_erasers =
8445 {
8446 {
8447 .eraseblocks = { {4 * 1024, 512} },
8448 .block_erase = spi_block_erase_20,
8449 }, {
8450 .eraseblocks = { {64 * 1024, 32} },
8451 .block_erase = spi_block_erase_d8,
8452 }, {
8453 .eraseblocks = { {2 * 1024 * 1024, 1} },
8454 .block_erase = spi_block_erase_60,
8455 }, {
8456 .eraseblocks = { {2 * 1024 * 1024, 1} },
8457 .block_erase = spi_block_erase_c7,
8458 }
8459 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008460 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008461 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008462 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008463 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008464 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00008465 },
8466
8467 {
8468 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008469 .name = "MX25L2005(C)/MX25L2006E",
8470 .bustype = BUS_SPI,
8471 .manufacture_id = MACRONIX_ID,
8472 .model_id = MACRONIX_MX25L2005,
8473 .total_size = 256,
8474 .page_size = 256,
8475 .feature_bits = FEATURE_WRSR_WREN,
8476 .tested = TEST_OK_PREW,
8477 .probe = probe_spi_rdid,
8478 .probe_timing = TIMING_ZERO,
8479 .block_erasers =
8480 {
8481 {
8482 .eraseblocks = { {4 * 1024, 64} },
8483 .block_erase = spi_block_erase_20,
8484 }, {
8485 .eraseblocks = { {64 * 1024, 4} },
8486 .block_erase = spi_block_erase_52,
8487 }, {
8488 .eraseblocks = { {64 * 1024, 4} },
8489 .block_erase = spi_block_erase_d8,
8490 }, {
8491 .eraseblocks = { {256 * 1024, 1} },
8492 .block_erase = spi_block_erase_60,
8493 }, {
8494 .eraseblocks = { {256 * 1024, 1} },
8495 .block_erase = spi_block_erase_c7,
8496 },
8497 },
8498 .printlock = spi_prettyprint_status_register_bp1_srwd,
8499 .unlock = spi_disable_blockprotect,
8500 .write = spi_chip_write_256,
8501 .read = spi_chip_read, /* Fast read (0x0B) supported */
8502 .voltage = {2700, 3600},
8503 },
8504
8505 {
8506 .vendor = "Macronix",
Alan Green03707302019-08-26 12:50:43 +10008507 .name = "MX25L25635F/MX25L25645G",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008508 .bustype = BUS_SPI,
8509 .manufacture_id = MACRONIX_ID,
8510 .model_id = MACRONIX_MX25L25635F,
8511 .total_size = 32768,
8512 .page_size = 256,
8513 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8514 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8515 .tested = TEST_OK_PREW,
8516 .probe = probe_spi_rdid,
8517 .probe_timing = TIMING_ZERO,
8518 .block_erasers =
8519 {
8520 {
8521 .eraseblocks = { {4 * 1024, 8192} },
8522 .block_erase = spi_block_erase_21,
8523 }, {
8524 .eraseblocks = { {4 * 1024, 8192} },
8525 .block_erase = spi_block_erase_20,
8526 }, {
8527 .eraseblocks = { {32 * 1024, 1024} },
8528 .block_erase = spi_block_erase_5c,
8529 }, {
8530 .eraseblocks = { {32 * 1024, 1024} },
8531 .block_erase = spi_block_erase_52,
8532 }, {
8533 .eraseblocks = { {64 * 1024, 512} },
8534 .block_erase = spi_block_erase_dc,
8535 }, {
8536 .eraseblocks = { {64 * 1024, 512} },
8537 .block_erase = spi_block_erase_d8,
8538 }, {
8539 .eraseblocks = { {32 * 1024 * 1024, 1} },
8540 .block_erase = spi_block_erase_60,
8541 }, {
8542 .eraseblocks = { {32 * 1024 * 1024, 1} },
8543 .block_erase = spi_block_erase_c7,
8544 }
8545 },
8546 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8547 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8548 .unlock = spi_disable_blockprotect_bp3_srwd,
8549 .write = spi_chip_write_256,
8550 .read = spi_chip_read, /* Fast read (0x0B) supported */
8551 .voltage = {2700, 3600},
8552 },
8553
8554 {
8555 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00008556 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008557 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008558 .manufacture_id = MACRONIX_ID,
8559 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008560 .total_size = 4096,
8561 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008562 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008563 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008564 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008565 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008566 .block_erasers =
8567 {
8568 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008569 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008570 .block_erase = spi_block_erase_20,
8571 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008572 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008573 .block_erase = spi_block_erase_d8,
8574 }, {
8575 .eraseblocks = { {4 * 1024 * 1024, 1} },
8576 .block_erase = spi_block_erase_60,
8577 }, {
8578 .eraseblocks = { {4 * 1024 * 1024, 1} },
8579 .block_erase = spi_block_erase_c7,
8580 },
8581 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008582 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008583 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008584 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008585 .read = spi_chip_read, /* Fast read (0x0B) supported */
8586 .voltage = {2700, 3600},
8587 },
8588
8589 {
8590 .vendor = "Macronix",
8591 .name = "MX25L3205D/MX25L3208D",
8592 .bustype = BUS_SPI,
8593 .manufacture_id = MACRONIX_ID,
8594 .model_id = MACRONIX_MX25L3205,
8595 .total_size = 4096,
8596 .page_size = 256,
8597 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8598 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8599 .tested = TEST_OK_PREW,
8600 .probe = probe_spi_rdid,
8601 .probe_timing = TIMING_ZERO,
8602 .block_erasers =
8603 {
8604 {
8605 .eraseblocks = { {4 * 1024, 1024} },
8606 .block_erase = spi_block_erase_20,
8607 }, {
8608 .eraseblocks = { {64 * 1024, 64} },
8609 .block_erase = spi_block_erase_d8,
8610 }, {
8611 .eraseblocks = { {4 * 1024 * 1024, 1} },
8612 .block_erase = spi_block_erase_60,
8613 }, {
8614 .eraseblocks = { {4 * 1024 * 1024, 1} },
8615 .block_erase = spi_block_erase_c7,
8616 },
8617 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008618 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008619 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008620 .write = spi_chip_write_256,
8621 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8622 .voltage = {2700, 3600},
8623 },
8624
8625 {
8626 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008627 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008628 .bustype = BUS_SPI,
8629 .manufacture_id = MACRONIX_ID,
8630 .model_id = MACRONIX_MX25L3205,
8631 .total_size = 4096,
8632 .page_size = 256,
8633 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8634 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8635 .tested = TEST_OK_PREW,
8636 .probe = probe_spi_rdid,
8637 .probe_timing = TIMING_ZERO,
8638 .block_erasers =
8639 {
8640 {
8641 .eraseblocks = { {4 * 1024, 1024} },
8642 .block_erase = spi_block_erase_20,
8643 }, {
8644 .eraseblocks = { {64 * 1024, 64} },
8645 .block_erase = spi_block_erase_d8,
8646 }, {
8647 .eraseblocks = { {64 * 1024, 64} },
8648 .block_erase = spi_block_erase_52,
8649 }, {
8650 .eraseblocks = { {4 * 1024 * 1024, 1} },
8651 .block_erase = spi_block_erase_60,
8652 }, {
8653 .eraseblocks = { {4 * 1024 * 1024, 1} },
8654 .block_erase = spi_block_erase_c7,
8655 },
8656 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008657 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008658 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008659 .write = spi_chip_write_256,
8660 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008661 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008662 },
8663
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008664 {
8665 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008666 .name = "MX25L3235D",
8667 .bustype = BUS_SPI,
8668 .manufacture_id = MACRONIX_ID,
8669 .model_id = MACRONIX_MX25L3235D,
8670 .total_size = 4096,
8671 .page_size = 256,
8672 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
8673 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8674 .tested = TEST_UNTESTED,
8675 .probe = probe_spi_rdid,
8676 .probe_timing = TIMING_ZERO,
8677 .block_erasers =
8678 {
8679 {
8680 .eraseblocks = { {4 * 1024, 1024} },
8681 .block_erase = spi_block_erase_20,
8682 }, {
8683 .eraseblocks = { {64 * 1024, 64} },
8684 .block_erase = spi_block_erase_d8,
8685 }, {
8686 .eraseblocks = { {4 * 1024 * 1024, 1} },
8687 .block_erase = spi_block_erase_60,
8688 }, {
8689 .eraseblocks = { {4 * 1024 * 1024, 1} },
8690 .block_erase = spi_block_erase_c7,
8691 }
8692 },
8693 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8694 .unlock = spi_disable_blockprotect_bp3_srwd,
8695 .write = spi_chip_write_256,
8696 .read = spi_chip_read,
8697 .voltage = {2700, 3600},
8698 },
8699
8700 {
8701 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008702 .name = "MX25L3273E",
8703 .bustype = BUS_SPI,
8704 .manufacture_id = MACRONIX_ID,
8705 .model_id = MACRONIX_MX25L3205,
8706 .total_size = 4096,
8707 .page_size = 256,
8708 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8709 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008710 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008711 .probe = probe_spi_rdid,
8712 .probe_timing = TIMING_ZERO,
8713 .block_erasers =
8714 {
8715 {
8716 .eraseblocks = { {4 * 1024, 1024} },
8717 .block_erase = spi_block_erase_20,
8718 }, {
8719 .eraseblocks = { {32 * 1024, 128} },
8720 .block_erase = spi_block_erase_52,
8721 }, {
8722 .eraseblocks = { {64 * 1024, 64} },
8723 .block_erase = spi_block_erase_d8,
8724 }, {
8725 .eraseblocks = { {4 * 1024 * 1024, 1} },
8726 .block_erase = spi_block_erase_60,
8727 }, {
8728 .eraseblocks = { {4 * 1024 * 1024, 1} },
8729 .block_erase = spi_block_erase_c7,
8730 },
8731 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008732 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008733 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008734 .write = spi_chip_write_256,
8735 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8736 .voltage = {2700, 3600},
8737 },
8738
8739 {
8740 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008741 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008742 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008743 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008744 .model_id = MACRONIX_MX25L4005,
8745 .total_size = 512,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008746 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008747 .feature_bits = FEATURE_WRSR_WREN,
8748 .tested = TEST_OK_PREW,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008749 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008750 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008751 .block_erasers =
8752 {
8753 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008754 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00008755 .block_erase = spi_block_erase_20,
8756 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008757 .eraseblocks = { {64 * 1024, 8} },
8758 .block_erase = spi_block_erase_52,
8759 }, {
8760 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson54596372010-01-09 05:30:14 +00008761 .block_erase = spi_block_erase_d8,
8762 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008763 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008764 .block_erase = spi_block_erase_60,
8765 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008766 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008767 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008768 },
Sean Nelson54596372010-01-09 05:30:14 +00008769 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008770 .printlock = spi_prettyprint_status_register_bp2_srwd,
8771 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008772 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008773 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008774 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008775 },
8776
8777 {
8778 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008779 .name = "MX25L512(E)/MX25V512(C)",
8780 .bustype = BUS_SPI,
8781 .manufacture_id = MACRONIX_ID,
8782 .model_id = MACRONIX_MX25L512,
8783 .total_size = 64,
8784 .page_size = 256,
8785 /* MX25L512E supports SFDP */
8786 .feature_bits = FEATURE_WRSR_WREN,
8787 .tested = TEST_OK_PREW,
8788 .probe = probe_spi_rdid,
8789 .probe_timing = TIMING_ZERO,
8790 .block_erasers =
8791 {
8792 {
8793 .eraseblocks = { {4 * 1024, 16} },
8794 .block_erase = spi_block_erase_20,
8795 }, {
8796 .eraseblocks = { {64 * 1024, 1} },
8797 .block_erase = spi_block_erase_52,
8798 }, {
8799 .eraseblocks = { {64 * 1024, 1} },
8800 .block_erase = spi_block_erase_d8,
8801 }, {
8802 .eraseblocks = { {64 * 1024, 1} },
8803 .block_erase = spi_block_erase_60,
8804 }, {
8805 .eraseblocks = { {64 * 1024, 1} },
8806 .block_erase = spi_block_erase_c7,
8807 },
8808 },
8809 .printlock = spi_prettyprint_status_register_bp1_srwd,
8810 .unlock = spi_disable_blockprotect,
8811 .write = spi_chip_write_256,
8812 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
8813 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
8814 },
8815
8816 {
8817 .vendor = "Macronix",
Steve Markgraf7e6f3a72020-07-13 18:22:56 +02008818 .name = "MX25L5121E",
8819 .bustype = BUS_SPI,
8820 .manufacture_id = MACRONIX_ID,
8821 .model_id = MACRONIX_MX25L5121E,
8822 .total_size = 64,
8823 .page_size = 32,
8824 .feature_bits = FEATURE_WRSR_WREN,
8825 .tested = TEST_OK_PREW,
8826 .probe = probe_spi_rdid,
8827 .probe_timing = TIMING_ZERO,
8828 .block_erasers =
8829 {
8830 {
8831 .eraseblocks = { {4 * 1024, 16} },
8832 .block_erase = spi_block_erase_20,
8833 }, {
8834 .eraseblocks = { {64 * 1024, 1} },
8835 .block_erase = spi_block_erase_52,
8836 }, {
8837 .eraseblocks = { {64 * 1024, 1} },
8838 .block_erase = spi_block_erase_d8,
8839 }, {
8840 .eraseblocks = { {64 * 1024, 1} },
8841 .block_erase = spi_block_erase_60,
8842 }, {
8843 .eraseblocks = { {64 * 1024, 1} },
8844 .block_erase = spi_block_erase_c7,
8845 },
8846 },
8847 .printlock = spi_prettyprint_status_register_bp1_srwd,
8848 .unlock = spi_disable_blockprotect,
8849 .write = spi_chip_write_256,
8850 .read = spi_chip_read, /* Fast read (0x0B) supported */
8851 .voltage = {2700, 3600},
8852 },
8853
8854 {
8855 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008856 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008857 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008858 .manufacture_id = MACRONIX_ID,
8859 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008860 .total_size = 8192,
8861 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008862 /* Has an additional 512B EEPROM sector */
8863 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008864 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008865 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008866 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008867 .block_erasers =
8868 {
8869 {
8870 .eraseblocks = { {64 * 1024, 128} },
8871 .block_erase = spi_block_erase_20,
8872 }, {
8873 .eraseblocks = { {64 * 1024, 128} },
8874 .block_erase = spi_block_erase_d8,
8875 }, {
8876 .eraseblocks = { {8 * 1024 * 1024, 1} },
8877 .block_erase = spi_block_erase_60,
8878 }, {
8879 .eraseblocks = { {8 * 1024 * 1024, 1} },
8880 .block_erase = spi_block_erase_c7,
8881 }
8882 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008883 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008884 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008885 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008886 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008887 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008888 },
8889
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008890 {
8891 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008892 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00008893 .bustype = BUS_SPI,
8894 .manufacture_id = MACRONIX_ID,
8895 .model_id = MACRONIX_MX25L6405,
8896 .total_size = 8192,
8897 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008898 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008899 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8900 .tested = TEST_OK_PREW,
8901 .probe = probe_spi_rdid,
8902 .probe_timing = TIMING_ZERO,
8903 .block_erasers =
8904 {
8905 {
8906 .eraseblocks = { {4 * 1024, 2048} },
8907 .block_erase = spi_block_erase_20,
8908 }, {
8909 .eraseblocks = { {64 * 1024, 128} },
8910 .block_erase = spi_block_erase_d8,
8911 }, {
8912 .eraseblocks = { {8 * 1024 * 1024, 1} },
8913 .block_erase = spi_block_erase_60,
8914 }, {
8915 .eraseblocks = { {8 * 1024 * 1024, 1} },
8916 .block_erase = spi_block_erase_c7,
8917 }
8918 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008919 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008920 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008921 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008922 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00008923 .voltage = {2700, 3600},
8924 },
8925
8926 {
8927 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008928 .name = "MX25L6406E/MX25L6408E",
8929 .bustype = BUS_SPI,
8930 .manufacture_id = MACRONIX_ID,
8931 .model_id = MACRONIX_MX25L6405,
8932 .total_size = 8192,
8933 .page_size = 256,
8934 /* MX25L6406E supports SFDP */
8935 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
8936 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8937 .tested = TEST_OK_PREW,
8938 .probe = probe_spi_rdid,
8939 .probe_timing = TIMING_ZERO,
8940 .block_erasers =
8941 {
8942 {
8943 .eraseblocks = { {4 * 1024, 2048} },
8944 .block_erase = spi_block_erase_20,
8945 }, {
8946 .eraseblocks = { {64 * 1024, 128} },
8947 .block_erase = spi_block_erase_52,
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 },
8959 .printlock = spi_prettyprint_status_register_bp3_srwd,
8960 .unlock = spi_disable_blockprotect_bp3_srwd,
8961 .write = spi_chip_write_256,
8962 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
8963 .voltage = {2700, 3600},
8964 },
8965
8966 {
8967 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01008968 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
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,
8974 /* supports SFDP */
8975 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8976 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8977 .tested = TEST_OK_PREW,
8978 .probe = probe_spi_rdid,
8979 .probe_timing = TIMING_ZERO,
8980 .block_erasers =
8981 {
8982 {
8983 .eraseblocks = { {4 * 1024, 2048} },
8984 .block_erase = spi_block_erase_20,
8985 }, {
8986 .eraseblocks = { {32 * 1024, 256} },
8987 .block_erase = spi_block_erase_52,
8988 }, {
8989 .eraseblocks = { {64 * 1024, 128} },
8990 .block_erase = spi_block_erase_d8,
8991 }, {
8992 .eraseblocks = { {8 * 1024 * 1024, 1} },
8993 .block_erase = spi_block_erase_60,
8994 }, {
8995 .eraseblocks = { {8 * 1024 * 1024, 1} },
8996 .block_erase = spi_block_erase_c7,
8997 }
8998 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008999 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009000 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009001 .write = spi_chip_write_256,
9002 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9003 .voltage = {2700, 3600},
9004 },
9005
9006 {
9007 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009008 .name = "MX25L6495F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009009 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009010 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009011 .model_id = MACRONIX_MX25L6495F,
9012 .total_size = 8192,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009013 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009014 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009015 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00009016 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009017 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009018 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009019 .block_erasers =
9020 {
9021 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009022 .eraseblocks = { {4 * 1024, 2048} },
Sean Nelson54596372010-01-09 05:30:14 +00009023 .block_erase = spi_block_erase_20,
9024 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009025 .eraseblocks = { {64 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00009026 .block_erase = spi_block_erase_d8,
9027 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009028 .eraseblocks = { {32 * 1024, 256} },
9029 .block_erase = spi_block_erase_52,
9030 }, {
9031 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009032 .block_erase = spi_block_erase_60,
9033 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009034 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009035 .block_erase = spi_block_erase_c7,
9036 }
9037 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009038 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009039 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009040 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009041 .voltage = {2700, 3600},
9042 },
9043
9044 {
9045 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009046 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Stefan Tauner5c316f92015-02-08 21:57:52 +00009047 .bustype = BUS_SPI,
9048 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009049 .model_id = MACRONIX_MX25L8005,
9050 .total_size = 1024,
9051 .page_size = 256,
9052 /* MX25L8006E, MX25L8008E support SFDP */
9053 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
9054 .feature_bits = FEATURE_WRSR_WREN,
9055 .tested = TEST_OK_PREW,
9056 .probe = probe_spi_rdid,
9057 .probe_timing = TIMING_ZERO,
9058 .block_erasers =
9059 {
9060 {
9061 .eraseblocks = { {4 * 1024, 256} },
9062 .block_erase = spi_block_erase_20,
9063 }, {
9064 .eraseblocks = { {64 * 1024, 16} },
9065 .block_erase = spi_block_erase_52,
9066 }, {
9067 .eraseblocks = { {64 * 1024, 16} },
9068 .block_erase = spi_block_erase_d8,
9069 }, {
9070 .eraseblocks = { {1024 * 1024, 1} },
9071 .block_erase = spi_block_erase_60,
9072 }, {
9073 .eraseblocks = { {1024 * 1024, 1} },
9074 .block_erase = spi_block_erase_c7,
9075 },
9076 },
9077 .printlock = spi_prettyprint_status_register_bp2_srwd,
9078 .unlock = spi_disable_blockprotect,
9079 .write = spi_chip_write_256,
9080 .read = spi_chip_read, /* Fast read (0x0B) supported */
9081 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
9082 },
9083
9084 {
9085 .vendor = "Macronix",
sibradzicf62623c2020-03-14 17:21:34 +09009086 .name = "MX25R3235F",
9087 .bustype = BUS_SPI,
9088 .manufacture_id = MACRONIX_ID,
9089 .model_id = MACRONIX_MX25R3235F,
9090 .total_size = 4096,
9091 .page_size = 256,
9092 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9093 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9094 .tested = TEST_OK_PREW,
9095 .probe = probe_spi_rdid,
9096 .probe_timing = TIMING_ZERO,
9097 .block_erasers =
9098 {
9099 {
9100 .eraseblocks = { {4 * 1024, 1024} },
9101 .block_erase = spi_block_erase_20,
9102 }, {
9103 .eraseblocks = { {64 * 1024, 64} },
9104 .block_erase = spi_block_erase_d8,
9105 }, {
9106 .eraseblocks = { {32 * 1024, 128} },
9107 .block_erase = spi_block_erase_52,
9108 }, {
9109 .eraseblocks = { {4 * 1024 * 1024, 1} },
9110 .block_erase = spi_block_erase_60,
9111 }, {
9112 .eraseblocks = { {4 * 1024 * 1024, 1} },
9113 .block_erase = spi_block_erase_c7,
9114 }
9115 },
9116 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit 6 is quad enable */
9117 .unlock = spi_disable_blockprotect_bp3_srwd,
9118 .write = spi_chip_write_256,
9119 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9120 .voltage = {1650, 3600},
9121 },
9122
9123 {
9124 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009125 .name = "MX25R6435F",
9126 .bustype = BUS_SPI,
9127 .manufacture_id = MACRONIX_ID,
9128 .model_id = MACRONIX_MX25R6435F,
9129 .total_size = 8192,
9130 .page_size = 256,
9131 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9132 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9133 .tested = TEST_OK_PREW,
9134 .probe = probe_spi_rdid,
9135 .probe_timing = TIMING_ZERO,
9136 .block_erasers =
9137 {
9138 {
9139 .eraseblocks = { {4 * 1024, 2048} },
9140 .block_erase = spi_block_erase_20,
9141 }, {
9142 .eraseblocks = { {64 * 1024, 128} },
9143 .block_erase = spi_block_erase_d8,
9144 }, {
9145 .eraseblocks = { {32 * 1024, 256} },
9146 .block_erase = spi_block_erase_52,
9147 }, {
9148 .eraseblocks = { {8 * 1024 * 1024, 1} },
9149 .block_erase = spi_block_erase_60,
9150 }, {
9151 .eraseblocks = { {8 * 1024 * 1024, 1} },
9152 .block_erase = spi_block_erase_c7,
9153 }
9154 },
9155 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9156 .unlock = spi_disable_blockprotect_bp3_srwd,
9157 .write = spi_chip_write_256,
9158 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9159 .voltage = {1650, 3600},
9160 },
9161
9162 {
9163 .vendor = "Macronix",
9164 .name = "MX25U12835F",
9165 .bustype = BUS_SPI,
9166 .manufacture_id = MACRONIX_ID,
9167 .model_id = MACRONIX_MX25U12835E,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009168 .total_size = 16384,
9169 .page_size = 256,
9170 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009171 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009172 .tested = TEST_OK_PREW,
9173 .probe = probe_spi_rdid,
9174 .probe_timing = TIMING_ZERO,
9175 .block_erasers =
9176 {
9177 {
9178 .eraseblocks = { {4 * 1024, 4096} },
9179 .block_erase = spi_block_erase_20,
9180 }, {
9181 .eraseblocks = { {32 * 1024, 512} },
9182 .block_erase = spi_block_erase_52,
9183 }, {
9184 .eraseblocks = { {64 * 1024, 256} },
9185 .block_erase = spi_block_erase_d8,
9186 }, {
9187 .eraseblocks = { {16 * 1024 * 1024, 1} },
9188 .block_erase = spi_block_erase_60,
9189 }, {
9190 .eraseblocks = { {16 * 1024 * 1024, 1} },
9191 .block_erase = spi_block_erase_c7,
9192 }
9193 },
Angel Ponsf112e242018-09-30 20:14:17 +02009194 /* TODO: security register */
9195 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9196 .unlock = spi_disable_blockprotect_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009197 .write = spi_chip_write_256, /* Multi I/O supported */
Angel Ponsf112e242018-09-30 20:14:17 +02009198 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9199 .voltage = {1650, 2000},
9200 },
9201
9202 {
9203 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00009204 .name = "MX25U1635E",
9205 .bustype = BUS_SPI,
9206 .manufacture_id = MACRONIX_ID,
9207 .model_id = MACRONIX_MX25U1635E,
9208 .total_size = 2048,
9209 .page_size = 256,
9210 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9211 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9212 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009213 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00009214 .probe = probe_spi_rdid,
9215 .probe_timing = TIMING_ZERO,
9216 .block_erasers =
9217 {
9218 {
9219 .eraseblocks = { {4 * 1024, 512} },
9220 .block_erase = spi_block_erase_20,
9221 }, {
9222 .eraseblocks = { {32 * 1024, 64} },
9223 .block_erase = spi_block_erase_52,
9224 }, {
9225 .eraseblocks = { {64 * 1024, 32} },
9226 .block_erase = spi_block_erase_d8,
9227 }, {
9228 .eraseblocks = { {2 * 1024 * 1024, 1} },
9229 .block_erase = spi_block_erase_60,
9230 }, {
9231 .eraseblocks = { {2 * 1024 * 1024, 1} },
9232 .block_erase = spi_block_erase_c7,
9233 }
9234 },
9235 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00009236 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009237 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00009238 .write = spi_chip_write_256,
9239 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9240 .voltage = {1650, 2000},
9241 },
9242
9243 {
9244 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07009245 .name = "MX25U25635F",
9246 .bustype = BUS_SPI,
9247 .manufacture_id = MACRONIX_ID,
9248 .model_id = MACRONIX_MX25U25635F,
9249 .total_size = 32768,
9250 .page_size = 256,
9251 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9252 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
9253 .tested = TEST_OK_PR,
9254 .probe = probe_spi_rdid,
9255 .probe_timing = TIMING_ZERO,
9256 .block_erasers =
9257 {
9258 {
9259 .eraseblocks = { {4 * 1024, 8192} },
9260 .block_erase = spi_block_erase_21,
9261 }, {
9262 .eraseblocks = { {4 * 1024, 8192} },
9263 .block_erase = spi_block_erase_20,
9264 }, {
9265 .eraseblocks = { {32 * 1024, 1024} },
9266 .block_erase = spi_block_erase_5c,
9267 }, {
9268 .eraseblocks = { {32 * 1024, 1024} },
9269 .block_erase = spi_block_erase_52,
9270 }, {
9271 .eraseblocks = { {64 * 1024, 512} },
9272 .block_erase = spi_block_erase_dc,
9273 }, {
9274 .eraseblocks = { {64 * 1024, 512} },
9275 .block_erase = spi_block_erase_d8,
9276 }, {
9277 .eraseblocks = { {32 * 1024 * 1024, 1} },
9278 .block_erase = spi_block_erase_60,
9279 }, {
9280 .eraseblocks = { {32 * 1024 * 1024, 1} },
9281 .block_erase = spi_block_erase_c7,
9282 }
9283 },
9284 /* TODO: security register */
9285 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9286 .unlock = spi_disable_blockprotect_bp3_srwd,
9287 .write = spi_chip_write_256, /* Multi I/O supported */
9288 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9289 .voltage = {1650, 2000},
9290 },
9291
9292 {
9293 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009294 .name = "MX25U3235E/F",
9295 .bustype = BUS_SPI,
9296 .manufacture_id = MACRONIX_ID,
9297 .model_id = MACRONIX_MX25U3235E,
9298 .total_size = 4096,
9299 .page_size = 256,
9300 /* F model supports SFDP */
9301 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9302 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9303 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
9304 .tested = TEST_OK_PREW,
9305 .probe = probe_spi_rdid,
9306 .probe_timing = TIMING_ZERO,
9307 .block_erasers =
9308 {
9309 {
9310 .eraseblocks = { {4 * 1024, 1024} },
9311 .block_erase = spi_block_erase_20,
9312 }, {
9313 .eraseblocks = { {32 * 1024, 128} },
9314 .block_erase = spi_block_erase_52,
9315 }, {
9316 .eraseblocks = { {64 * 1024, 64} },
9317 .block_erase = spi_block_erase_d8,
9318 }, {
9319 .eraseblocks = { {4 * 1024 * 1024, 1} },
9320 .block_erase = spi_block_erase_60,
9321 }, {
9322 .eraseblocks = { {4 * 1024 * 1024, 1} },
9323 .block_erase = spi_block_erase_c7,
9324 }
9325 },
9326 /* TODO: security register */
9327 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9328 .unlock = spi_disable_blockprotect_bp3_srwd,
9329 .write = spi_chip_write_256,
9330 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9331 .voltage = {1650, 2000},
9332 },
9333
9334 {
9335 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009336 .name = "MX25U51245G",
9337 .bustype = BUS_SPI,
9338 .manufacture_id = MACRONIX_ID,
9339 .model_id = MACRONIX_MX25U51245G,
9340 .total_size = 65536,
9341 .page_size = 256,
9342 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
9343 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
9344 .tested = TEST_OK_PREW,
9345 .probe = probe_spi_rdid,
9346 .probe_timing = TIMING_ZERO,
9347 .block_erasers =
9348 {
9349 {
9350 .eraseblocks = { {4 * 1024, 16384} },
9351 .block_erase = spi_block_erase_21,
9352 }, {
9353 .eraseblocks = { {4 * 1024, 16384} },
9354 .block_erase = spi_block_erase_20,
9355 }, {
9356 .eraseblocks = { {32 * 1024, 2048} },
9357 .block_erase = spi_block_erase_5c,
9358 }, {
9359 .eraseblocks = { {32 * 1024, 2048} },
9360 .block_erase = spi_block_erase_52,
9361 }, {
9362 .eraseblocks = { {64 * 1024, 1024} },
9363 .block_erase = spi_block_erase_dc,
9364 }, {
9365 .eraseblocks = { {64 * 1024, 1024} },
9366 .block_erase = spi_block_erase_d8,
9367 }, {
9368 .eraseblocks = { {64 * 1024 * 1024, 1} },
9369 .block_erase = spi_block_erase_60,
9370 }, {
9371 .eraseblocks = { {64 * 1024 * 1024, 1} },
9372 .block_erase = spi_block_erase_c7,
9373 }
9374 },
9375 /* TODO: security register */
9376 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9377 .unlock = spi_disable_blockprotect_bp3_srwd,
9378 .write = spi_chip_write_256, /* Multi I/O supported */
9379 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9380 .voltage = {1650, 2000},
9381 },
9382
9383 {
9384 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009385 .name = "MX25U6435E/F",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009386 .bustype = BUS_SPI,
9387 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009388 .model_id = MACRONIX_MX25U6435E,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009389 .total_size = 8192,
9390 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009391 /* F model supports SFDP */
9392 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9393 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9394 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009395 .tested = TEST_OK_PREW,
9396 .probe = probe_spi_rdid,
9397 .probe_timing = TIMING_ZERO,
9398 .block_erasers =
9399 {
9400 {
9401 .eraseblocks = { {4 * 1024, 2048} },
9402 .block_erase = spi_block_erase_20,
9403 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009404 .eraseblocks = { {32 * 1024, 256} },
9405 .block_erase = spi_block_erase_52,
9406 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009407 .eraseblocks = { {64 * 1024, 128} },
9408 .block_erase = spi_block_erase_d8,
9409 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009410 .eraseblocks = { {8 * 1024 * 1024, 1} },
9411 .block_erase = spi_block_erase_60,
9412 }, {
9413 .eraseblocks = { {8 * 1024 * 1024, 1} },
9414 .block_erase = spi_block_erase_c7,
9415 }
9416 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009417 /* TODO: security register */
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009418 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9419 .unlock = spi_disable_blockprotect_bp3_srwd,
9420 .write = spi_chip_write_256,
9421 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009422 .voltage = {1650, 2000},
9423 },
9424
9425 {
9426 .vendor = "Macronix",
9427 .name = "MX25U8032E",
9428 .bustype = BUS_SPI,
9429 .manufacture_id = MACRONIX_ID,
9430 .model_id = MACRONIX_MX25U8032E,
9431 .total_size = 1024,
9432 .page_size = 256,
9433 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9434 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9435 .tested = TEST_OK_PREW,
9436 .probe = probe_spi_rdid,
9437 .probe_timing = TIMING_ZERO,
9438 .block_erasers =
9439 {
9440 {
9441 .eraseblocks = { {4 * 1024, 256} },
9442 .block_erase = spi_block_erase_20,
9443 }, {
9444 .eraseblocks = { {32 * 1024, 32} },
9445 .block_erase = spi_block_erase_52,
9446 }, {
9447 .eraseblocks = { {64 * 1024, 16} },
9448 .block_erase = spi_block_erase_d8,
9449 }, {
9450 .eraseblocks = { {1024 * 1024, 1} },
9451 .block_erase = spi_block_erase_60,
9452 }, {
9453 .eraseblocks = { {1024 * 1024, 1} },
9454 .block_erase = spi_block_erase_c7,
9455 }
9456 },
9457 /* TODO: security register */
9458 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9459 .unlock = spi_disable_blockprotect_bp3_srwd,
9460 .write = spi_chip_write_256,
9461 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9462 .voltage = {1650, 2000},
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009463 },
9464
9465 {
9466 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00009467 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009468 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009469 .manufacture_id = MACRONIX_ID,
9470 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009471 .total_size = 128,
9472 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009473 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9474 .tested = TEST_UNTESTED,
9475 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009476 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009477 .block_erasers =
9478 {
9479 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009480 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009481 {8 * 1024, 1},
9482 {4 * 1024, 2},
9483 {8 * 1024, 2},
9484 {32 * 1024, 1},
9485 {64 * 1024, 1},
9486 },
Sean Nelson35727f72010-01-28 23:55:12 +00009487 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009488 }, {
9489 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009490 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009491 }
9492 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009493 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009494 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009495 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009496 },
9497
9498 {
9499 .vendor = "Macronix",
9500 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009501 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009502 .manufacture_id = MACRONIX_ID,
9503 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009504 .total_size = 128,
9505 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009506 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00009507 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009508 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009509 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009510 .block_erasers =
9511 {
9512 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009513 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009514 {64 * 1024, 1},
9515 {32 * 1024, 1},
9516 {8 * 1024, 2},
9517 {4 * 1024, 2},
9518 {8 * 1024, 1},
9519 },
Sean Nelson35727f72010-01-28 23:55:12 +00009520 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009521 }, {
9522 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009523 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009524 }
9525 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009526 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009527 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009528 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009529 },
9530
9531 {
9532 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009533 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009534 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009535 .manufacture_id = MACRONIX_ID,
9536 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009537 .total_size = 256,
9538 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009539 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009540 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009541 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009542 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009543 .block_erasers =
9544 {
9545 {
9546 .eraseblocks = {
9547 {16 * 1024, 1},
9548 {8 * 1024, 2},
9549 {32 * 1024, 1},
9550 {64 * 1024, 3},
9551 },
Sean Nelson35727f72010-01-28 23:55:12 +00009552 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009553 }, {
9554 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009555 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009556 },
9557 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009558 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009559 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009560 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009561 },
9562
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009563 {
9564 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009565 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009566 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009567 .manufacture_id = MACRONIX_ID,
9568 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009569 .total_size = 256,
9570 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009571 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009572 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009573 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009574 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009575 .block_erasers =
9576 {
9577 {
9578 .eraseblocks = {
9579 {64 * 1024, 3},
9580 {32 * 1024, 1},
9581 {8 * 1024, 2},
9582 {16 * 1024, 1},
9583 },
Sean Nelson35727f72010-01-28 23:55:12 +00009584 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009585 }, {
9586 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009587 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009588 },
9589 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009590 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009591 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009592 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009593 },
9594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009595 {
9596 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00009597 .name = "MX29F022(N)B",
9598 .bustype = BUS_PARALLEL,
9599 .manufacture_id = MACRONIX_ID,
9600 .model_id = MACRONIX_MX29F022B,
9601 .total_size = 256,
9602 .page_size = 0, /* unused */
9603 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9604 .tested = TEST_UNTESTED,
9605 .probe = probe_jedec,
9606 .probe_timing = TIMING_ZERO,
9607 .block_erasers =
9608 {
9609 {
9610 .eraseblocks = {
9611 {16 * 1024, 1},
9612 {8 * 1024, 2},
9613 {32 * 1024, 1},
9614 {64 * 1024, 3},
9615 },
9616 .block_erase = erase_sector_jedec,
9617 }, {
9618 .eraseblocks = { {256 * 1024, 1} },
9619 .block_erase = erase_chip_block_jedec,
9620 }
9621 },
9622 .write = write_jedec_1,
9623 .read = read_memmapped,
9624 .voltage = {4500, 5500},
9625 },
9626
9627 {
9628 .vendor = "Macronix",
9629 .name = "MX29F022(N)T",
9630 .bustype = BUS_PARALLEL,
9631 .manufacture_id = MACRONIX_ID,
9632 .model_id = MACRONIX_MX29F022T,
9633 .total_size = 256,
9634 .page_size = 0, /* unused */
9635 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9636 .tested = TEST_OK_PREW,
9637 .probe = probe_jedec,
9638 .probe_timing = TIMING_ZERO,
9639 .block_erasers =
9640 {
9641 {
9642 .eraseblocks = {
9643 {64 * 1024, 3},
9644 {32 * 1024, 1},
9645 {8 * 1024, 2},
9646 {16 * 1024, 1},
9647 },
9648 .block_erase = erase_sector_jedec,
9649 }, {
9650 .eraseblocks = { {256 * 1024, 1} },
9651 .block_erase = erase_chip_block_jedec,
9652 }
9653 },
9654 .write = write_jedec_1,
9655 .read = read_memmapped,
9656 .voltage = {4500, 5500},
9657 },
9658
9659 {
9660 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00009661 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009662 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00009663 .manufacture_id = MACRONIX_ID,
9664 .model_id = MACRONIX_MX29F040,
9665 .total_size = 512,
9666 .page_size = 64 * 1024,
9667 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9668 .tested = TEST_UNTESTED,
9669 .probe = probe_jedec,
9670 .probe_timing = TIMING_ZERO,
9671 .block_erasers =
9672 {
9673 {
9674 .eraseblocks = { {64 * 1024, 8} },
9675 .block_erase = erase_sector_jedec,
9676 }, {
9677 .eraseblocks = { {512 * 1024, 1} },
9678 .block_erase = erase_chip_block_jedec,
9679 },
9680 },
9681 .write = write_jedec_1,
9682 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009683 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00009684 },
9685
9686 {
9687 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009688 .name = "MX29GL128F",
9689 .bustype = BUS_PARALLEL,
9690 .manufacture_id = MACRONIX_ID,
9691 .model_id = MACRONIX_MX29GL128F,
9692 .total_size = 16384,
9693 .page_size = 128 * 1024, /* actual page size is 16 */
9694 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9695 .tested = TEST_UNTESTED,
9696 .probe = probe_jedec_29gl,
9697 .probe_timing = TIMING_ZERO,
9698 .block_erasers =
9699 {
9700 {
9701 .eraseblocks = { {128 * 1024, 128} },
9702 .block_erase = erase_sector_jedec,
9703 }, {
9704 .eraseblocks = { {16 * 1024 * 1024, 1} },
9705 .block_erase = erase_chip_block_jedec,
9706 },
9707 },
9708 .write = write_jedec_1,
9709 .read = read_memmapped,
9710 .voltage = {2700, 3600},
9711 },
9712
9713 {
9714 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009715 .name = "MX29GL320EB",
9716 .bustype = BUS_PARALLEL,
9717 .manufacture_id = MACRONIX_ID,
9718 .model_id = MACRONIX_MX29GL320EB,
9719 .total_size = 4096,
9720 .page_size = 128 * 1024, /* actual page size is 16 */
9721 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9722 .tested = TEST_UNTESTED,
9723 .probe = probe_jedec_29gl,
9724 .probe_timing = TIMING_ZERO,
9725 .block_erasers =
9726 {
9727 {
9728 .eraseblocks = {
9729 {8 * 1024, 8},
9730 {64 * 1024, 63},
9731 },
9732 .block_erase = erase_sector_jedec,
9733 }, {
9734 .eraseblocks = { {4 * 1024 * 1024, 1} },
9735 .block_erase = erase_chip_block_jedec,
9736 },
9737 },
9738 .write = write_jedec_1,
9739 .read = read_memmapped,
9740 .voltage = {2700, 3600},
9741 },
9742
9743 {
9744 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009745 .name = "MX29GL320EH/L",
9746 .bustype = BUS_PARALLEL,
9747 .manufacture_id = MACRONIX_ID,
9748 .model_id = MACRONIX_MX29GL320EHL,
9749 .total_size = 4096,
9750 .page_size = 128 * 1024, /* actual page size is 16 */
9751 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9752 .tested = TEST_UNTESTED,
9753 .probe = probe_jedec_29gl,
9754 .probe_timing = TIMING_ZERO,
9755 .block_erasers =
9756 {
9757 {
9758 .eraseblocks = { {64 * 1024, 64} },
9759 .block_erase = erase_sector_jedec,
9760 }, {
9761 .eraseblocks = { {4 * 1024 * 1024, 1} },
9762 .block_erase = erase_chip_block_jedec,
9763 },
9764 },
9765 .write = write_jedec_1,
9766 .read = read_memmapped,
9767 .voltage = {2700, 3600},
9768 },
9769
9770 {
9771 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009772 .name = "MX29GL320ET",
9773 .bustype = BUS_PARALLEL,
9774 .manufacture_id = MACRONIX_ID,
9775 .model_id = MACRONIX_MX29GL320ET,
9776 .total_size = 4096,
9777 .page_size = 128 * 1024, /* actual page size is 16 */
9778 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9779 .tested = TEST_UNTESTED,
9780 .probe = probe_jedec_29gl,
9781 .probe_timing = TIMING_ZERO,
9782 .block_erasers =
9783 {
9784 {
9785 .eraseblocks = {
9786 {64 * 1024, 63},
9787 {8 * 1024, 8},
9788 },
9789 .block_erase = erase_sector_jedec,
9790 }, {
9791 .eraseblocks = { {4 * 1024 * 1024, 1} },
9792 .block_erase = erase_chip_block_jedec,
9793 },
9794 },
9795 .write = write_jedec_1,
9796 .read = read_memmapped,
9797 .voltage = {2700, 3600},
9798 },
9799
9800 {
9801 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009802 .name = "MX29GL640EB",
9803 .bustype = BUS_PARALLEL,
9804 .manufacture_id = MACRONIX_ID,
9805 .model_id = MACRONIX_MX29GL640EB,
9806 .total_size = 8192,
9807 .page_size = 128 * 1024, /* actual page size is 16 */
9808 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9809 .tested = TEST_UNTESTED,
9810 .probe = probe_jedec_29gl,
9811 .probe_timing = TIMING_ZERO,
9812 .block_erasers =
9813 {
9814 {
9815 .eraseblocks = {
9816 {8 * 1024, 8},
9817 {64 * 1024, 127},
9818 },
9819 .block_erase = erase_sector_jedec,
9820 }, {
9821 .eraseblocks = { {8 * 1024 * 1024, 1} },
9822 .block_erase = erase_chip_block_jedec,
9823 },
9824 },
9825 .write = write_jedec_1,
9826 .read = read_memmapped,
9827 .voltage = {2700, 3600},
9828 },
9829
9830 {
9831 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009832 .name = "MX29GL640EH/L",
9833 .bustype = BUS_PARALLEL,
9834 .manufacture_id = MACRONIX_ID,
9835 .model_id = MACRONIX_MX29GL640EHL,
9836 .total_size = 8192,
9837 .page_size = 128 * 1024, /* actual page size is 16 */
9838 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9839 .tested = TEST_UNTESTED,
9840 .probe = probe_jedec_29gl,
9841 .probe_timing = TIMING_ZERO,
9842 .block_erasers =
9843 {
9844 {
9845 .eraseblocks = { {64 * 1024, 128} },
9846 .block_erase = erase_sector_jedec,
9847 }, {
9848 .eraseblocks = { {8 * 1024 * 1024, 1} },
9849 .block_erase = erase_chip_block_jedec,
9850 },
9851 },
9852 .write = write_jedec_1,
9853 .read = read_memmapped,
9854 .voltage = {2700, 3600},
9855 },
9856
9857 {
9858 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009859 .name = "MX29GL640ET",
9860 .bustype = BUS_PARALLEL,
9861 .manufacture_id = MACRONIX_ID,
9862 .model_id = MACRONIX_MX29GL640ET,
9863 .total_size = 8192,
9864 .page_size = 128 * 1024, /* actual page size is 16 */
9865 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9866 .tested = TEST_UNTESTED,
9867 .probe = probe_jedec_29gl,
9868 .probe_timing = TIMING_ZERO,
9869 .block_erasers =
9870 {
9871 {
9872 .eraseblocks = {
9873 {64 * 1024, 127},
9874 {8 * 1024, 8},
9875 },
9876 .block_erase = erase_sector_jedec,
9877 }, {
9878 .eraseblocks = { {8 * 1024 * 1024, 1} },
9879 .block_erase = erase_chip_block_jedec,
9880 },
9881 },
9882 .write = write_jedec_1,
9883 .read = read_memmapped,
9884 .voltage = {2700, 3600},
9885 },
9886
9887 {
9888 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00009889 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009890 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009891 .manufacture_id = MACRONIX_ID,
9892 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009893 .total_size = 512,
9894 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009895 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9896 .tested = TEST_UNTESTED,
9897 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009898 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009899 .block_erasers =
9900 {
9901 {
Stefan Tauner6697f712014-08-06 15:09:15 +00009902 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00009903 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009904 }, {
9905 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009906 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009907 },
9908 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009909 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009910 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009911 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00009912 },
9913
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009914 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009915 .vendor = "Macronix",
Hemanth Guruva Reddya136d422019-07-11 11:08:27 +02009916 .name = "MX66L51235F/MX25L51245G",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009917 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009918 .manufacture_id = MACRONIX_ID,
9919 .model_id = MACRONIX_MX66L51235F,
9920 .total_size = 65536,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009921 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009922 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9923 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009924 .tested = TEST_OK_PREW,
9925 .probe = probe_spi_rdid,
9926 .probe_timing = TIMING_ZERO,
9927 .block_erasers =
9928 {
9929 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009930 .eraseblocks = { {4 * 1024, 16384} },
9931 .block_erase = spi_block_erase_21,
9932 }, {
9933 .eraseblocks = { {4 * 1024, 16384} },
9934 .block_erase = spi_block_erase_20,
9935 }, {
9936 .eraseblocks = { {32 * 1024, 2048} },
9937 .block_erase = spi_block_erase_5c,
9938 }, {
9939 .eraseblocks = { {32 * 1024, 2048} },
9940 .block_erase = spi_block_erase_52,
9941 }, {
9942 .eraseblocks = { {64 * 1024, 1024} },
9943 .block_erase = spi_block_erase_dc,
9944 }, {
9945 .eraseblocks = { {64 * 1024, 1024} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009946 .block_erase = spi_block_erase_d8,
9947 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009948 .eraseblocks = { {64 * 1024 * 1024, 1} },
9949 .block_erase = spi_block_erase_60,
9950 }, {
9951 .eraseblocks = { {64 * 1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009952 .block_erase = spi_block_erase_c7,
9953 }
9954 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009955 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
9956 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009957 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009958 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009959 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009960 .voltage = {2700, 3600},
9961 },
9962
9963 /* The ST M25P05 is a bit of a problem. It has the same ID as the
9964 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
9965 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
9966 * only is successful if RDID does not work.
9967 */
9968 {
9969 .vendor = "Micron/Numonyx/ST",
9970 .name = "M25P05",
9971 .bustype = BUS_SPI,
9972 .manufacture_id = 0, /* Not used. */
9973 .model_id = ST_M25P05_RES,
9974 .total_size = 64,
9975 .page_size = 256,
9976 .feature_bits = FEATURE_WRSR_WREN,
9977 .tested = TEST_UNTESTED,
9978 .probe = probe_spi_res1,
9979 .probe_timing = TIMING_ZERO,
9980 .block_erasers =
9981 {
9982 {
9983 .eraseblocks = { {32 * 1024, 2} },
9984 .block_erase = spi_block_erase_d8,
9985 }, {
9986 .eraseblocks = { {64 * 1024, 1} },
9987 .block_erase = spi_block_erase_c7,
9988 }
9989 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009990 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009991 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009992 .write = spi_chip_write_1, /* 128 */
9993 .read = spi_chip_read,
9994 .voltage = {2700, 3600},
9995 },
9996
9997 {
9998 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009999 .name = "M25P05-A",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010000 .bustype = BUS_SPI,
10001 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010002 .model_id = ST_M25P05A,
10003 .total_size = 64,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010004 .page_size = 256,
10005 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010006 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010007 .probe = probe_spi_rdid,
10008 .probe_timing = TIMING_ZERO,
10009 .block_erasers =
10010 {
10011 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010012 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010013 .block_erase = spi_block_erase_d8,
10014 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010015 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010016 .block_erase = spi_block_erase_c7,
10017 }
10018 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010019 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010020 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010021 .write = spi_chip_write_256,
10022 .read = spi_chip_read,
10023 .voltage = {2700, 3600},
10024 },
10025
10026 /* The ST M25P10 has the same problem as the M25P05. */
10027 {
10028 .vendor = "Micron/Numonyx/ST",
10029 .name = "M25P10",
10030 .bustype = BUS_SPI,
10031 .manufacture_id = 0, /* Not used. */
10032 .model_id = ST_M25P10_RES,
10033 .total_size = 128,
10034 .page_size = 256,
10035 .feature_bits = FEATURE_WRSR_WREN,
10036 .tested = TEST_UNTESTED,
10037 .probe = probe_spi_res1,
10038 .probe_timing = TIMING_ZERO,
10039 .block_erasers =
10040 {
10041 {
10042 .eraseblocks = { {32 * 1024, 4} },
10043 .block_erase = spi_block_erase_d8,
10044 }, {
10045 .eraseblocks = { {128 * 1024, 1} },
10046 .block_erase = spi_block_erase_c7,
10047 }
10048 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010049 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010050 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010051 .write = spi_chip_write_1, /* 128 */
10052 .read = spi_chip_read,
10053 .voltage = {2700, 3600},
10054 },
10055
10056 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010057 .vendor = "Micron/Numonyx/ST",
10058 .name = "M25P10-A",
10059 .bustype = BUS_SPI,
10060 .manufacture_id = ST_ID,
10061 .model_id = ST_M25P10A,
10062 .total_size = 128,
10063 .page_size = 256,
10064 .feature_bits = FEATURE_WRSR_WREN,
10065 .tested = TEST_OK_PREW,
10066 .probe = probe_spi_rdid,
10067 .probe_timing = TIMING_ZERO,
10068 .block_erasers =
10069 {
10070 {
10071 .eraseblocks = { {32 * 1024, 4} },
10072 .block_erase = spi_block_erase_d8,
10073 }, {
10074 .eraseblocks = { {128 * 1024, 1} },
10075 .block_erase = spi_block_erase_c7,
10076 }
10077 },
10078 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10079 .unlock = spi_disable_blockprotect_bp3_srwd,
10080 .write = spi_chip_write_256,
10081 .read = spi_chip_read,
10082 .voltage = {2700, 3600},
10083 },
10084
10085 {
10086 .vendor = "Micron/Numonyx/ST",
10087 .name = "M25P128",
10088 .bustype = BUS_SPI,
10089 .manufacture_id = ST_ID,
10090 .model_id = ST_M25P128,
10091 .total_size = 16384,
10092 .page_size = 256,
10093 .feature_bits = FEATURE_WRSR_WREN,
10094 .tested = TEST_OK_PREW,
10095 .probe = probe_spi_rdid,
10096 .probe_timing = TIMING_ZERO,
10097 .block_erasers =
10098 {
10099 {
10100 .eraseblocks = { {256 * 1024, 64} },
10101 .block_erase = spi_block_erase_d8,
10102 }, {
10103 .eraseblocks = { {16 * 1024 * 1024, 1} },
10104 .block_erase = spi_block_erase_c7,
10105 }
10106 },
10107 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10108 .unlock = spi_disable_blockprotect_bp3_srwd,
10109 .write = spi_chip_write_256,
10110 .read = spi_chip_read,
10111 .voltage = {2700, 3600},
10112 },
10113
10114 {
10115 .vendor = "Micron/Numonyx/ST",
10116 .name = "M25P16",
10117 .bustype = BUS_SPI,
10118 .manufacture_id = ST_ID,
10119 .model_id = ST_M25P16,
10120 .total_size = 2048,
10121 .page_size = 256,
10122 .feature_bits = FEATURE_WRSR_WREN,
10123 .tested = TEST_OK_PREW,
10124 .probe = probe_spi_rdid,
10125 .probe_timing = TIMING_ZERO,
10126 .block_erasers =
10127 {
10128 {
10129 .eraseblocks = { {64 * 1024, 32} },
10130 .block_erase = spi_block_erase_d8,
10131 }, {
10132 .eraseblocks = { {2 * 1024 * 1024, 1} },
10133 .block_erase = spi_block_erase_c7,
10134 }
10135 },
10136 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10137 .unlock = spi_disable_blockprotect_bp3_srwd,
10138 .write = spi_chip_write_256,
10139 .read = spi_chip_read,
10140 .voltage = {2700, 3600},
10141 },
10142
10143 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010144 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10145 .name = "M25P20",
10146 .bustype = BUS_SPI,
10147 .manufacture_id = ST_ID,
10148 .model_id = ST_M25P20,
10149 .total_size = 256,
10150 .page_size = 256,
10151 .feature_bits = FEATURE_WRSR_WREN,
10152 .tested = TEST_UNTESTED,
10153 .probe = probe_spi_rdid,
10154 .probe_timing = TIMING_ZERO,
10155 .block_erasers =
10156 {
10157 {
10158 .eraseblocks = { {64 * 1024, 4} },
10159 .block_erase = spi_block_erase_d8,
10160 }, {
10161 .eraseblocks = { {256 * 1024, 1} },
10162 .block_erase = spi_block_erase_c7,
10163 }
10164 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010165 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010166 .unlock = spi_disable_blockprotect,
10167 .write = spi_chip_write_256,
10168 .read = spi_chip_read, /* Fast read (0x0B) supported */
10169 .voltage = {2700, 3600},
10170 },
10171
10172 {
10173 .vendor = "Micron/Numonyx/ST",
10174 .name = "M25P20-old",
10175 .bustype = BUS_SPI,
10176 .manufacture_id = 0, /* Not used. */
10177 .model_id = ST_M25P20_RES,
10178 .total_size = 256,
10179 .page_size = 256,
10180 .feature_bits = FEATURE_WRSR_WREN,
10181 .tested = TEST_OK_PREW,
10182 .probe = probe_spi_res1,
10183 .probe_timing = TIMING_ZERO,
10184 .block_erasers =
10185 {
10186 {
10187 .eraseblocks = { {64 * 1024, 4} },
10188 .block_erase = spi_block_erase_d8,
10189 }, {
10190 .eraseblocks = { {256 * 1024, 1} },
10191 .block_erase = spi_block_erase_c7,
10192 }
10193 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010194 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010195 .unlock = spi_disable_blockprotect,
10196 .write = spi_chip_write_256,
10197 .read = spi_chip_read, /* Fast read (0x0B) supported */
10198 .voltage = {2700, 3600},
10199 },
10200
10201 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010202 .vendor = "Micron/Numonyx/ST",
10203 .name = "M25P32",
10204 .bustype = BUS_SPI,
10205 .manufacture_id = ST_ID,
10206 .model_id = ST_M25P32,
10207 .total_size = 4096,
10208 .page_size = 256,
10209 .feature_bits = FEATURE_WRSR_WREN,
10210 .tested = TEST_OK_PREW,
10211 .probe = probe_spi_rdid,
10212 .probe_timing = TIMING_ZERO,
10213 .block_erasers =
10214 {
10215 {
10216 .eraseblocks = { {64 * 1024, 64} },
10217 .block_erase = spi_block_erase_d8,
10218 }, {
10219 .eraseblocks = { {4 * 1024 * 1024, 1} },
10220 .block_erase = spi_block_erase_c7,
10221 }
10222 },
10223 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10224 .unlock = spi_disable_blockprotect_bp3_srwd,
10225 .write = spi_chip_write_256,
10226 .read = spi_chip_read,
10227 .voltage = {2700, 3600},
10228 },
10229
10230 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010231 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10232 .name = "M25P40",
10233 .bustype = BUS_SPI,
10234 .manufacture_id = ST_ID,
10235 .model_id = ST_M25P40,
10236 .total_size = 512,
10237 .page_size = 256,
10238 .feature_bits = FEATURE_WRSR_WREN,
10239 .tested = TEST_OK_PREW,
10240 .probe = probe_spi_rdid,
10241 .probe_timing = TIMING_ZERO,
10242 .block_erasers =
10243 {
10244 {
10245 .eraseblocks = { {64 * 1024, 8} },
10246 .block_erase = spi_block_erase_d8,
10247 }, {
10248 .eraseblocks = { {512 * 1024, 1} },
10249 .block_erase = spi_block_erase_c7,
10250 }
10251 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010252 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010253 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010254 .write = spi_chip_write_256,
10255 .read = spi_chip_read,
10256 .voltage = {2700, 3600},
10257 },
10258
10259 {
10260 .vendor = "Micron/Numonyx/ST",
10261 .name = "M25P40-old",
10262 .bustype = BUS_SPI,
10263 .manufacture_id = 0, /* Not used. */
10264 .model_id = ST_M25P40_RES,
10265 .total_size = 512,
10266 .page_size = 256,
10267 .feature_bits = FEATURE_WRSR_WREN,
10268 .tested = TEST_UNTESTED,
10269 .probe = probe_spi_res1,
10270 .probe_timing = TIMING_ZERO,
10271 .block_erasers =
10272 {
10273 {
10274 .eraseblocks = { {64 * 1024, 8} },
10275 .block_erase = spi_block_erase_d8,
10276 }, {
10277 .eraseblocks = { {512 * 1024, 1} },
10278 .block_erase = spi_block_erase_c7,
10279 }
10280 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010281 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010282 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010283 .write = spi_chip_write_256,
10284 .read = spi_chip_read,
10285 },
10286
10287 {
10288 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010289 .name = "M25P64",
10290 .bustype = BUS_SPI,
10291 .manufacture_id = ST_ID,
10292 .model_id = ST_M25P64,
10293 .total_size = 8192,
10294 .page_size = 256,
10295 .feature_bits = FEATURE_WRSR_WREN,
10296 .tested = TEST_OK_PREW,
10297 .probe = probe_spi_rdid,
10298 .probe_timing = TIMING_ZERO,
10299 .block_erasers =
10300 {
10301 {
10302 .eraseblocks = { {64 * 1024, 128} },
10303 .block_erase = spi_block_erase_d8,
10304 }, {
10305 .eraseblocks = { {8 * 1024 * 1024, 1} },
10306 .block_erase = spi_block_erase_c7,
10307 }
10308 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010309 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010310 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010311 .write = spi_chip_write_256,
10312 .read = spi_chip_read,
10313 .voltage = {2700, 3600},
10314 },
10315
10316 {
10317 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010318 .name = "M25P80",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010319 .bustype = BUS_SPI,
10320 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010321 .model_id = ST_M25P80,
10322 .total_size = 1024,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010323 .page_size = 256,
10324 .feature_bits = FEATURE_WRSR_WREN,
10325 .tested = TEST_OK_PREW,
10326 .probe = probe_spi_rdid,
10327 .probe_timing = TIMING_ZERO,
10328 .block_erasers =
10329 {
10330 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010331 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010332 .block_erase = spi_block_erase_d8,
10333 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010334 .eraseblocks = { {1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010335 .block_erase = spi_block_erase_c7,
10336 }
10337 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010338 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010339 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010340 .write = spi_chip_write_256,
10341 .read = spi_chip_read,
10342 .voltage = {2700, 3600},
10343 },
10344
10345 {
10346 .vendor = "Micron/Numonyx/ST",
10347 .name = "M25PE10",
10348 .bustype = BUS_SPI,
10349 .manufacture_id = ST_ID,
10350 .model_id = ST_M25PE10,
10351 .total_size = 128,
10352 .page_size = 256,
10353 .feature_bits = FEATURE_WRSR_WREN,
10354 .tested = TEST_UNTESTED,
10355 .probe = probe_spi_rdid,
10356 .probe_timing = TIMING_ZERO,
10357 .block_erasers =
10358 {
10359 {
10360 .eraseblocks = { {4 * 1024, 32} },
10361 .block_erase = spi_block_erase_20,
10362 }, {
10363 .eraseblocks = { {64 * 1024, 2} },
10364 .block_erase = spi_block_erase_d8,
10365 }, {
10366 .eraseblocks = { {128 * 1024, 1} },
10367 .block_erase = spi_block_erase_c7,
10368 }
10369 },
10370 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10371 .unlock = spi_disable_blockprotect,
10372 .write = spi_chip_write_256,
10373 .read = spi_chip_read,
10374 .voltage = {2700, 3600},
10375 },
10376
10377 {
10378 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010379 .name = "M25PE16",
10380 .bustype = BUS_SPI,
10381 .manufacture_id = ST_ID,
10382 .model_id = ST_M25PE16,
10383 .total_size = 2048,
10384 .page_size = 256,
10385 .feature_bits = FEATURE_WRSR_WREN,
10386 .tested = TEST_UNTESTED,
10387 .probe = probe_spi_rdid,
10388 .probe_timing = TIMING_ZERO,
10389 .block_erasers =
10390 {
10391 {
10392 .eraseblocks = { {4 * 1024, 512} },
10393 .block_erase = spi_block_erase_20,
10394 }, {
10395 .eraseblocks = { {64 * 1024, 32} },
10396 .block_erase = spi_block_erase_d8,
10397 }, {
10398 .eraseblocks = { {2 * 1024 * 1024, 1} },
10399 .block_erase = spi_block_erase_c7,
10400 }
10401 },
10402 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10403 .unlock = spi_disable_blockprotect,
10404 .write = spi_chip_write_256,
10405 .read = spi_chip_read,
10406 .voltage = {2700, 3600},
10407 },
10408
10409 {
10410 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010411 .name = "M25PE20",
10412 .bustype = BUS_SPI,
10413 .manufacture_id = ST_ID,
10414 .model_id = ST_M25PE20,
10415 .total_size = 256,
10416 .page_size = 256,
10417 .feature_bits = FEATURE_WRSR_WREN,
10418 .tested = TEST_UNTESTED,
10419 .probe = probe_spi_rdid,
10420 .probe_timing = TIMING_ZERO,
10421 .block_erasers =
10422 {
10423 {
10424 .eraseblocks = { {4 * 1024, 64} },
10425 .block_erase = spi_block_erase_20,
10426 }, {
10427 .eraseblocks = { {64 * 1024, 4} },
10428 .block_erase = spi_block_erase_d8,
10429 }, {
10430 .eraseblocks = { {256 * 1024, 1} },
10431 .block_erase = spi_block_erase_c7,
10432 }
10433 },
10434 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10435 .unlock = spi_disable_blockprotect,
10436 .write = spi_chip_write_256,
10437 .read = spi_chip_read,
10438 .voltage = {2700, 3600},
10439 },
10440
10441 {
10442 .vendor = "Micron/Numonyx/ST",
10443 .name = "M25PE40",
10444 .bustype = BUS_SPI,
10445 .manufacture_id = ST_ID,
10446 .model_id = ST_M25PE40,
10447 .total_size = 512,
10448 .page_size = 256,
10449 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010450 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010451 .probe = probe_spi_rdid,
10452 .probe_timing = TIMING_ZERO,
10453 .block_erasers =
10454 {
10455 {
10456 .eraseblocks = { {4 * 1024, 128} },
10457 .block_erase = spi_block_erase_20,
10458 }, {
10459 .eraseblocks = { {64 * 1024, 8} },
10460 .block_erase = spi_block_erase_d8,
10461 }, {
10462 .eraseblocks = { {512 * 1024, 1} },
10463 .block_erase = spi_block_erase_c7,
10464 }
10465 },
10466 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10467 .unlock = spi_disable_blockprotect,
10468 .write = spi_chip_write_256,
10469 .read = spi_chip_read,
10470 .voltage = {2700, 3600},
10471 },
10472
10473 {
10474 .vendor = "Micron/Numonyx/ST",
10475 .name = "M25PE80",
10476 .bustype = BUS_SPI,
10477 .manufacture_id = ST_ID,
10478 .model_id = ST_M25PE80,
10479 .total_size = 1024,
10480 .page_size = 256,
10481 .feature_bits = FEATURE_WRSR_WREN,
10482 .tested = TEST_OK_PREW,
10483 .probe = probe_spi_rdid,
10484 .probe_timing = TIMING_ZERO,
10485 .block_erasers =
10486 {
10487 {
10488 .eraseblocks = { {4 * 1024, 256} },
10489 .block_erase = spi_block_erase_20,
10490 }, {
10491 .eraseblocks = { {64 * 1024, 16} },
10492 .block_erase = spi_block_erase_d8,
10493 }, {
10494 .eraseblocks = { {1024 * 1024, 1} },
10495 .block_erase = spi_block_erase_c7,
10496 }
10497 },
10498 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10499 .unlock = spi_disable_blockprotect,
10500 .write = spi_chip_write_256,
10501 .read = spi_chip_read,
10502 .voltage = {2700, 3600},
10503 },
10504
10505 {
10506 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010507 .name = "M25PX16",
10508 .bustype = BUS_SPI,
10509 .manufacture_id = ST_ID,
10510 .model_id = ST_M25PX16,
10511 .total_size = 2048,
10512 .page_size = 256,
10513 /* OTP: 64B total; read 0x4B; write 0x42 */
10514 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10515 .tested = TEST_OK_PREW,
10516 .probe = probe_spi_rdid,
10517 .probe_timing = TIMING_ZERO,
10518 .block_erasers =
10519 {
10520 {
10521 .eraseblocks = { { 4 * 1024, 512 } },
10522 .block_erase = spi_block_erase_20,
10523 }, {
10524 .eraseblocks = { {64 * 1024, 32} },
10525 .block_erase = spi_block_erase_d8,
10526 }, {
10527 .eraseblocks = { {2 * 1024 * 1024, 1} },
10528 .block_erase = spi_block_erase_c7,
10529 }
10530 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010531 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010532 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10533 .write = spi_chip_write_256,
10534 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010535 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010536 },
10537
10538 {
10539 .vendor = "Micron/Numonyx/ST",
10540 .name = "M25PX32",
10541 .bustype = BUS_SPI,
10542 .manufacture_id = ST_ID,
10543 .model_id = ST_M25PX32,
10544 .total_size = 4096,
10545 .page_size = 256,
10546 /* OTP: 64B total; read 0x4B; write 0x42 */
10547 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10548 .tested = TEST_OK_PRE,
10549 .probe = probe_spi_rdid,
10550 .probe_timing = TIMING_ZERO,
10551 .block_erasers =
10552 {
10553 {
10554 .eraseblocks = { { 4 * 1024, 1024 } },
10555 .block_erase = spi_block_erase_20,
10556 }, {
10557 .eraseblocks = { {64 * 1024, 64} },
10558 .block_erase = spi_block_erase_d8,
10559 }, {
10560 .eraseblocks = { {4 * 1024 * 1024, 1} },
10561 .block_erase = spi_block_erase_c7,
10562 }
10563 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010564 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010565 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10566 .write = spi_chip_write_256,
10567 .read = spi_chip_read,
10568 .voltage = {2700, 3600},
10569 },
10570
10571 {
10572 .vendor = "Micron/Numonyx/ST",
10573 .name = "M25PX64",
10574 .bustype = BUS_SPI,
10575 .manufacture_id = ST_ID,
10576 .model_id = ST_M25PX64,
10577 .total_size = 8192,
10578 .page_size = 256,
10579 /* OTP: 64B total; read 0x4B; write 0x42 */
10580 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010581 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010582 .probe = probe_spi_rdid,
10583 .probe_timing = TIMING_ZERO,
10584 .block_erasers =
10585 {
10586 {
10587 .eraseblocks = { { 4 * 1024, 2048 } },
10588 .block_erase = spi_block_erase_20,
10589 }, {
10590 .eraseblocks = { {64 * 1024, 128} },
10591 .block_erase = spi_block_erase_d8,
10592 }, {
10593 .eraseblocks = { {8 * 1024 * 1024, 1} },
10594 .block_erase = spi_block_erase_c7,
10595 }
10596 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010597 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010598 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10599 .write = spi_chip_write_256,
10600 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010601 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010602 },
10603
10604 {
10605 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010606 .name = "M25PX80",
10607 .bustype = BUS_SPI,
10608 .manufacture_id = ST_ID,
10609 .model_id = ST_M25PX80,
10610 .total_size = 1024,
10611 .page_size = 256,
10612 /* OTP: 64B total; read 0x4B, write 0x42 */
10613 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10614 .tested = TEST_OK_PREW,
10615 .probe = probe_spi_rdid,
10616 .probe_timing = TIMING_ZERO,
10617 .block_erasers =
10618 {
10619 {
10620 .eraseblocks = { { 4 * 1024, 256 } },
10621 .block_erase = spi_block_erase_20,
10622 }, {
10623 .eraseblocks = { {64 * 1024, 16} },
10624 .block_erase = spi_block_erase_d8,
10625 }, {
10626 .eraseblocks = { {1024 * 1024, 1} },
10627 .block_erase = spi_block_erase_c7,
10628 }
10629 },
10630 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
10631 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10632 .write = spi_chip_write_256,
10633 .read = spi_chip_read,
10634 .voltage = {2700, 3600},
10635 },
10636
10637 {
10638 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010639 .name = "M45PE10",
10640 .bustype = BUS_SPI,
10641 .manufacture_id = ST_ID,
10642 .model_id = ST_M45PE10,
10643 .total_size = 128,
10644 .page_size = 256,
10645 .tested = TEST_UNTESTED,
10646 .probe = probe_spi_rdid,
10647 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010648 .block_erasers =
10649 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010650 {
10651 .eraseblocks = { {256, 512} },
10652 .block_erase = spi_block_erase_db,
10653 }, {
10654 .eraseblocks = { {64 * 1024, 2} },
10655 .block_erase = spi_block_erase_d8,
10656 }
10657 },
10658 .printlock = spi_prettyprint_status_register_default_welwip,
10659 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10660 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10661 .read = spi_chip_read, /* Fast read (0x0B) supported */
10662 .voltage = {2700, 3600},
10663 },
10664
10665 {
10666 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010667 .name = "M45PE16",
10668 .bustype = BUS_SPI,
10669 .manufacture_id = ST_ID,
10670 .model_id = ST_M45PE16,
10671 .total_size = 2048,
10672 .page_size = 256,
10673 .tested = TEST_UNTESTED,
10674 .probe = probe_spi_rdid,
10675 .probe_timing = TIMING_ZERO,
10676 .block_erasers =
10677 {
10678 {
10679 .eraseblocks = { {256, 8192} },
10680 .block_erase = spi_block_erase_db,
10681 }, {
10682 .eraseblocks = { {64 * 1024, 32} },
10683 .block_erase = spi_block_erase_d8,
10684 }
10685 },
10686 .printlock = spi_prettyprint_status_register_default_welwip,
10687 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10688 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10689 .read = spi_chip_read, /* Fast read (0x0B) supported */
10690 .voltage = {2700, 3600},
10691 },
10692
10693 {
10694 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010695 .name = "M45PE20",
10696 .bustype = BUS_SPI,
10697 .manufacture_id = ST_ID,
10698 .model_id = ST_M45PE20,
10699 .total_size = 256,
10700 .page_size = 256,
10701 .tested = TEST_UNTESTED,
10702 .probe = probe_spi_rdid,
10703 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010704 .block_erasers =
10705 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010706 {
10707 .eraseblocks = { {256, 1024} },
10708 .block_erase = spi_block_erase_db,
10709 }, {
10710 .eraseblocks = { {64 * 1024, 4} },
10711 .block_erase = spi_block_erase_d8,
10712 }
10713 },
10714 .printlock = spi_prettyprint_status_register_default_welwip,
10715 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10716 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10717 .read = spi_chip_read, /* Fast read (0x0B) supported */
10718 .voltage = {2700, 3600},
10719 },
10720
10721 {
10722 .vendor = "Micron/Numonyx/ST",
10723 .name = "M45PE40",
10724 .bustype = BUS_SPI,
10725 .manufacture_id = ST_ID,
10726 .model_id = ST_M45PE40,
10727 .total_size = 512,
10728 .page_size = 256,
10729 .tested = TEST_UNTESTED,
10730 .probe = probe_spi_rdid,
10731 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010732 .block_erasers =
10733 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010734 {
10735 .eraseblocks = { {256, 2048} },
10736 .block_erase = spi_block_erase_db,
10737 }, {
10738 .eraseblocks = { {64 * 1024, 8} },
10739 .block_erase = spi_block_erase_d8,
10740 }
10741 },
10742 .printlock = spi_prettyprint_status_register_default_welwip,
10743 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000010744 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010745 .read = spi_chip_read, /* Fast read (0x0B) supported */
10746 .voltage = {2700, 3600},
10747 },
10748
10749 {
10750 .vendor = "Micron/Numonyx/ST",
10751 .name = "M45PE80",
10752 .bustype = BUS_SPI,
10753 .manufacture_id = ST_ID,
10754 .model_id = ST_M45PE80,
10755 .total_size = 1024,
10756 .page_size = 256,
10757 .tested = TEST_UNTESTED,
10758 .probe = probe_spi_rdid,
10759 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010760 .block_erasers =
10761 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010762 {
10763 .eraseblocks = { {256, 4096} },
10764 .block_erase = spi_block_erase_db,
10765 }, {
10766 .eraseblocks = { {64 * 1024, 16} },
10767 .block_erase = spi_block_erase_d8,
10768 }
10769 },
10770 .printlock = spi_prettyprint_status_register_default_welwip,
10771 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10772 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10773 .read = spi_chip_read, /* Fast read (0x0B) supported */
10774 .voltage = {2700, 3600},
10775 },
10776
10777 {
10778 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010779 .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
10780 .bustype = BUS_SPI,
10781 .manufacture_id = ST_ID,
10782 .model_id = ST_N25Q00A__1G,
10783 .total_size = 131072,
10784 .page_size = 256,
10785 /* supports SFDP */
10786 /* OTP: 64B total; read 0x4B, write 0x42 */
10787 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10788 .tested = TEST_UNTESTED,
10789 .probe = probe_spi_rdid,
10790 .probe_timing = TIMING_ZERO,
10791 .block_erasers =
10792 {
10793 {
10794 .eraseblocks = { {4 * 1024, 32768} },
10795 .block_erase = spi_block_erase_21,
10796 }, {
10797 .eraseblocks = { {4 * 1024, 32768} },
10798 .block_erase = spi_block_erase_20,
10799 }, {
10800 .eraseblocks = { {64 * 1024, 2048} },
10801 .block_erase = spi_block_erase_dc,
10802 }, {
10803 .eraseblocks = { {64 * 1024, 2048} },
10804 .block_erase = spi_block_erase_d8,
10805 }, {
10806 .eraseblocks = { {32768 * 1024, 4} },
10807 .block_erase = spi_block_erase_c4,
10808 }
10809 },
10810 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10811 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10812 .write = spi_chip_write_256, /* Multi I/O supported */
10813 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10814 .voltage = {1700, 2000},
10815 },
10816
10817 {
10818 .vendor = "Micron/Numonyx/ST",
10819 .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
10820 .bustype = BUS_SPI,
10821 .manufacture_id = ST_ID,
10822 .model_id = ST_N25Q00A__3G,
10823 .total_size = 131072,
10824 .page_size = 256,
10825 /* supports SFDP */
10826 /* OTP: 64B total; read 0x4B, write 0x42 */
10827 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10828 .tested = TEST_UNTESTED,
10829 .probe = probe_spi_rdid,
10830 .probe_timing = TIMING_ZERO,
10831 .block_erasers =
10832 {
10833 {
10834 .eraseblocks = { {4 * 1024, 32768} },
10835 .block_erase = spi_block_erase_21,
10836 }, {
10837 .eraseblocks = { {4 * 1024, 32768} },
10838 .block_erase = spi_block_erase_20,
10839 }, {
10840 .eraseblocks = { {64 * 1024, 2048} },
10841 .block_erase = spi_block_erase_dc,
10842 }, {
10843 .eraseblocks = { {64 * 1024, 2048} },
10844 .block_erase = spi_block_erase_d8,
10845 }, {
10846 .eraseblocks = { {32768 * 1024, 4} },
10847 .block_erase = spi_block_erase_c4,
10848 }
10849 },
10850 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10851 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10852 .write = spi_chip_write_256, /* Multi I/O supported */
10853 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10854 .voltage = {2700, 3600},
10855 },
10856
10857 {
10858 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010859 .name = "N25Q016",
10860 .bustype = BUS_SPI,
10861 .manufacture_id = ST_ID,
10862 .model_id = ST_N25Q016__1E,
10863 .total_size = 2048,
10864 .page_size = 256,
10865 /* supports SFDP */
10866 /* OTP: 64B total; read 0x4B, write 0x42 */
10867 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10868 .tested = TEST_UNTESTED,
10869 .probe = probe_spi_rdid,
10870 .probe_timing = TIMING_ZERO,
10871 .block_erasers =
10872 {
10873 {
10874 .eraseblocks = { {4 * 1024, 512} },
10875 .block_erase = spi_block_erase_20,
10876 }, {
10877 .eraseblocks = { {32 * 1024, 64} },
10878 .block_erase = spi_block_erase_52,
10879 }, {
10880 .eraseblocks = { {64 * 1024, 32} },
10881 .block_erase = spi_block_erase_d8,
10882 }, {
10883 .eraseblocks = { {2 * 1024 * 1024, 1} },
10884 .block_erase = spi_block_erase_c7,
10885 }
10886 },
10887 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10888 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10889 .write = spi_chip_write_256, /* Multi I/O supported */
10890 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10891 .voltage = {1700, 2000},
10892 },
10893
10894 {
10895 .vendor = "Micron/Numonyx/ST",
10896 .name = "N25Q032..1E",
10897 .bustype = BUS_SPI,
10898 .manufacture_id = ST_ID,
10899 .model_id = ST_N25Q032__1E,
10900 .total_size = 4096,
10901 .page_size = 256,
10902 /* supports SFDP */
10903 /* OTP: 64B total; read 0x4B, write 0x42 */
10904 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10905 .tested = TEST_UNTESTED,
10906 .probe = probe_spi_rdid,
10907 .probe_timing = TIMING_ZERO,
10908 .block_erasers =
10909 {
10910 {
10911 .eraseblocks = { {4 * 1024, 1024} },
10912 .block_erase = spi_block_erase_20,
10913 }, {
10914 .eraseblocks = { {64 * 1024, 64} },
10915 .block_erase = spi_block_erase_d8,
10916 }, {
10917 .eraseblocks = { {4 * 1024 * 1024, 1} },
10918 .block_erase = spi_block_erase_c7,
10919 }
10920 },
10921 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10922 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10923 .write = spi_chip_write_256, /* Multi I/O supported */
10924 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10925 .voltage = {1700, 2000},
10926 },
10927
10928 {
10929 .vendor = "Micron/Numonyx/ST",
10930 .name = "N25Q032..3E",
10931 .bustype = BUS_SPI,
10932 .manufacture_id = ST_ID,
10933 .model_id = ST_N25Q032__3E,
10934 .total_size = 4096,
10935 .page_size = 256,
10936 /* supports SFDP */
10937 /* OTP: 64B total; read 0x4B, write 0x42 */
10938 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10939 .tested = TEST_OK_PREW,
10940 .probe = probe_spi_rdid,
10941 .probe_timing = TIMING_ZERO,
10942 .block_erasers =
10943 {
10944 {
10945 .eraseblocks = { {4 * 1024, 1024} },
10946 .block_erase = spi_block_erase_20,
10947 }, {
10948 .eraseblocks = { {64 * 1024, 64} },
10949 .block_erase = spi_block_erase_d8,
10950 }, {
10951 .eraseblocks = { {4 * 1024 * 1024, 1} },
10952 .block_erase = spi_block_erase_c7,
10953 }
10954 },
10955 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10956 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10957 .write = spi_chip_write_256, /* Multi I/O supported */
10958 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10959 .voltage = {2700, 3600},
10960 },
10961
10962 {
10963 .vendor = "Micron/Numonyx/ST",
10964 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10965 .bustype = BUS_SPI,
10966 .manufacture_id = ST_ID,
10967 .model_id = ST_N25Q064__1E,
10968 .total_size = 8192,
10969 .page_size = 256,
10970 /* supports SFDP */
10971 /* OTP: 64B total; read 0x4B, write 0x42 */
10972 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010973 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010974 .probe = probe_spi_rdid,
10975 .probe_timing = TIMING_ZERO,
10976 .block_erasers =
10977 {
10978 {
10979 .eraseblocks = { {4 * 1024, 2048 } },
10980 .block_erase = spi_block_erase_20,
10981 }, {
10982 .eraseblocks = { {64 * 1024, 128} },
10983 .block_erase = spi_block_erase_d8,
10984 }, {
10985 .eraseblocks = { {8 * 1024 * 1024, 1} },
10986 .block_erase = spi_block_erase_c7,
10987 }
10988 },
10989 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10990 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10991 .write = spi_chip_write_256, /* Multi I/O supported */
10992 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10993 .voltage = {1700, 2000},
10994 },
10995
10996 {
10997 .vendor = "Micron/Numonyx/ST",
10998 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10999 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011000 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011001 .model_id = ST_N25Q064__3E,
11002 .total_size = 8192,
11003 .page_size = 256,
11004 /* supports SFDP */
11005 /* OTP: 64B total; read 0x4B, write 0x42 */
11006 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11007 .tested = TEST_OK_PREW,
11008 .probe = probe_spi_rdid,
11009 .probe_timing = TIMING_ZERO,
11010 .block_erasers =
11011 {
11012 {
11013 .eraseblocks = { {4 * 1024, 2048 } },
11014 .block_erase = spi_block_erase_20,
11015 }, {
11016 .eraseblocks = { {64 * 1024, 128} },
11017 .block_erase = spi_block_erase_d8,
11018 }, {
11019 .eraseblocks = { {8 * 1024 * 1024, 1} },
11020 .block_erase = spi_block_erase_c7,
11021 }
11022 },
11023 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11024 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11025 .write = spi_chip_write_256, /* Multi I/O supported */
11026 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11027 .voltage = {2700, 3600},
11028 },
11029
11030 {
11031 .vendor = "Micron/Numonyx/ST",
11032 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11033 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011034 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011035 .model_id = ST_N25Q128__1E,
11036 .total_size = 16384,
11037 .page_size = 256,
11038 /* supports SFDP */
11039 /* OTP: 64B total; read 0x4B, write 0x42 */
11040 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011041 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011042 .probe = probe_spi_rdid,
11043 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011044 .block_erasers =
11045 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011046 {
11047 .eraseblocks = { {4 * 1024, 4096 } },
11048 .block_erase = spi_block_erase_20,
11049 }, {
11050 .eraseblocks = { {64 * 1024, 256} },
11051 .block_erase = spi_block_erase_d8,
11052 }, {
11053 .eraseblocks = { {16384 * 1024, 1} },
11054 .block_erase = spi_block_erase_c7,
11055 }
11056 },
11057 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11058 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11059 .write = spi_chip_write_256, /* Multi I/O supported */
11060 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11061 .voltage = {1700, 2000},
11062 },
11063
11064 {
11065 .vendor = "Micron/Numonyx/ST",
11066 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11067 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011068 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011069 .model_id = ST_N25Q128__3E,
11070 .total_size = 16384,
11071 .page_size = 256,
11072 /* supports SFDP */
11073 /* OTP: 64B total; read 0x4B, write 0x42 */
11074 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11075 .tested = TEST_OK_PREW,
11076 .probe = probe_spi_rdid,
11077 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011078 .block_erasers =
11079 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011080 {
11081 .eraseblocks = { {4 * 1024, 4096 } },
11082 .block_erase = spi_block_erase_20,
11083 }, {
11084 .eraseblocks = { {64 * 1024, 256} },
11085 .block_erase = spi_block_erase_d8,
11086 }, {
11087 .eraseblocks = { {16384 * 1024, 1} },
11088 .block_erase = spi_block_erase_c7,
11089 }
11090 },
11091 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11092 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11093 .write = spi_chip_write_256, /* Multi I/O supported */
11094 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11095 .voltage = {2700, 3600},
11096 },
11097
11098 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011099 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011100 .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11101 .bustype = BUS_SPI,
11102 .manufacture_id = ST_ID,
11103 .model_id = ST_N25Q256__1E,
11104 .total_size = 32768,
11105 .page_size = 256,
11106 /* supports SFDP */
11107 /* OTP: 64B total; read 0x4B, write 0x42 */
11108 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11109 .tested = TEST_UNTESTED,
11110 .probe = probe_spi_rdid,
11111 .probe_timing = TIMING_ZERO,
11112 .block_erasers =
11113 {
11114 {
11115 .eraseblocks = { {4 * 1024, 8192} },
11116 .block_erase = spi_block_erase_21,
11117 }, {
11118 .eraseblocks = { {4 * 1024, 8192} },
11119 .block_erase = spi_block_erase_20,
11120 }, {
11121 .eraseblocks = { {64 * 1024, 512} },
11122 .block_erase = spi_block_erase_dc,
11123 }, {
11124 .eraseblocks = { {64 * 1024, 512} },
11125 .block_erase = spi_block_erase_d8,
11126 }, {
11127 .eraseblocks = { {32768 * 1024, 1} },
11128 .block_erase = spi_block_erase_c7,
11129 }
11130 },
11131 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11132 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11133 .write = spi_chip_write_256, /* Multi I/O supported */
11134 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11135 .voltage = {1700, 2000},
11136 },
11137
11138 {
11139 .vendor = "Micron/Numonyx/ST",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011140 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11141 .bustype = BUS_SPI,
11142 .manufacture_id = ST_ID,
11143 .model_id = ST_N25Q256__3E,
11144 .total_size = 32768,
11145 .page_size = 256,
11146 /* supports SFDP */
11147 /* OTP: 64B total; read 0x4B, write 0x42 */
11148 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11149 .tested = TEST_UNTESTED,
11150 .probe = probe_spi_rdid,
11151 .probe_timing = TIMING_ZERO,
11152 .block_erasers =
11153 {
11154 {
11155 .eraseblocks = { {4 * 1024, 8192} },
11156 .block_erase = spi_block_erase_21,
11157 }, {
11158 .eraseblocks = { {4 * 1024, 8192} },
11159 .block_erase = spi_block_erase_20,
11160 }, {
11161 .eraseblocks = { {64 * 1024, 512} },
11162 .block_erase = spi_block_erase_dc,
11163 }, {
11164 .eraseblocks = { {64 * 1024, 512} },
11165 .block_erase = spi_block_erase_d8,
11166 }, {
11167 .eraseblocks = { {32768 * 1024, 1} },
11168 .block_erase = spi_block_erase_c7,
11169 }
11170 },
11171 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11172 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11173 .write = spi_chip_write_256, /* Multi I/O supported */
11174 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11175 .voltage = {2700, 3600},
11176 },
11177
11178 {
11179 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011180 .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011181 .bustype = BUS_SPI,
11182 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011183 .model_id = ST_N25Q512__1G,
11184 .total_size = 65536,
11185 .page_size = 256,
11186 /* supports SFDP */
11187 /* OTP: 64B total; read 0x4B, write 0x42 */
11188 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11189 .tested = TEST_UNTESTED,
11190 .probe = probe_spi_rdid,
11191 .probe_timing = TIMING_ZERO,
11192 .block_erasers =
11193 {
11194 {
11195 .eraseblocks = { {4 * 1024, 16384} },
11196 .block_erase = spi_block_erase_21,
11197 }, {
11198 .eraseblocks = { {4 * 1024, 16384} },
11199 .block_erase = spi_block_erase_20,
11200 }, {
11201 .eraseblocks = { {64 * 1024, 1024} },
11202 .block_erase = spi_block_erase_dc,
11203 }, {
11204 .eraseblocks = { {64 * 1024, 1024} },
11205 .block_erase = spi_block_erase_d8,
11206 }, {
11207 .eraseblocks = { {32768 * 1024, 2} },
11208 .block_erase = spi_block_erase_c4,
11209 }
11210 },
11211 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11212 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11213 .write = spi_chip_write_256, /* Multi I/O supported */
11214 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11215 .voltage = {1700, 2000},
11216 },
11217
11218 {
11219 .vendor = "Micron/Numonyx/ST",
11220 .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
11221 .bustype = BUS_SPI,
11222 .manufacture_id = ST_ID,
11223 .model_id = ST_N25Q512__3G,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011224 .total_size = 65536,
11225 .page_size = 256,
11226 /* supports SFDP */
11227 /* OTP: 64B total; read 0x4B, write 0x42 */
11228 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11229 .tested = TEST_OK_PREW,
11230 .probe = probe_spi_rdid,
11231 .probe_timing = TIMING_ZERO,
11232 .block_erasers =
11233 {
11234 {
11235 .eraseblocks = { {4 * 1024, 16384} },
11236 .block_erase = spi_block_erase_21,
11237 }, {
11238 .eraseblocks = { {4 * 1024, 16384} },
11239 .block_erase = spi_block_erase_20,
11240 }, {
11241 .eraseblocks = { {64 * 1024, 1024} },
11242 .block_erase = spi_block_erase_dc,
11243 }, {
11244 .eraseblocks = { {64 * 1024, 1024} },
11245 .block_erase = spi_block_erase_d8,
11246 }, {
Jacob Creedone8e7b0e2019-07-22 12:21:22 -070011247 .eraseblocks = { {32768 * 1024, 2} },
11248 .block_erase = spi_block_erase_c4,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011249 }
11250 },
11251 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11252 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11253 .write = spi_chip_write_256, /* Multi I/O supported */
11254 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11255 .voltage = {2700, 3600},
11256 },
11257
11258 {
Ed Swierk199ab392017-07-03 13:33:44 -070011259 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011260 .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11261 .bustype = BUS_SPI,
11262 .manufacture_id = ST_ID,
11263 .model_id = ST_N25Q00A__3G,
11264 .total_size = 131072,
11265 .page_size = 256,
11266 /* supports SFDP */
11267 /* OTP: 64B total; read 0x4B, write 0x42 */
11268 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11269 .tested = TEST_OK_PREW,
11270 .probe = probe_spi_rdid,
11271 .probe_timing = TIMING_ZERO,
11272 .block_erasers =
11273 {
11274 {
11275 .eraseblocks = { {4 * 1024, 32768} },
11276 .block_erase = spi_block_erase_21,
11277 }, {
11278 .eraseblocks = { {4 * 1024, 32768} },
11279 .block_erase = spi_block_erase_20,
11280 }, {
11281 .eraseblocks = { {32 * 1024, 4096} },
11282 .block_erase = spi_block_erase_5c,
11283 }, {
11284 .eraseblocks = { {32 * 1024, 4096} },
11285 .block_erase = spi_block_erase_52,
11286 }, {
11287 .eraseblocks = { {64 * 1024, 2048} },
11288 .block_erase = spi_block_erase_dc,
11289 }, {
11290 .eraseblocks = { {64 * 1024, 2048} },
11291 .block_erase = spi_block_erase_d8,
11292 }, {
11293 .eraseblocks = { {65536 * 1024, 2} },
11294 .block_erase = spi_block_erase_c4,
11295 }
11296 },
11297 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11298 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11299 .write = spi_chip_write_256, /* Multi I/O supported */
11300 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11301 .voltage = {2700, 3600},
11302 },
11303
11304 {
11305 .vendor = "Micron",
11306 .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11307 .bustype = BUS_SPI,
11308 .manufacture_id = ST_ID,
11309 .model_id = ST_N25Q00A__1G,
11310 .total_size = 131072,
11311 .page_size = 256,
11312 /* supports SFDP */
11313 /* OTP: 64B total; read 0x4B, write 0x42 */
11314 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11315 .tested = TEST_UNTESTED,
11316 .probe = probe_spi_rdid,
11317 .probe_timing = TIMING_ZERO,
11318 .block_erasers =
11319 {
11320 {
11321 .eraseblocks = { {4 * 1024, 32768} },
11322 .block_erase = spi_block_erase_21,
11323 }, {
11324 .eraseblocks = { {4 * 1024, 32768} },
11325 .block_erase = spi_block_erase_20,
11326 }, {
11327 .eraseblocks = { {32 * 1024, 4096} },
11328 .block_erase = spi_block_erase_5c,
11329 }, {
11330 .eraseblocks = { {32 * 1024, 4096} },
11331 .block_erase = spi_block_erase_52,
11332 }, {
11333 .eraseblocks = { {64 * 1024, 2048} },
11334 .block_erase = spi_block_erase_dc,
11335 }, {
11336 .eraseblocks = { {64 * 1024, 2048} },
11337 .block_erase = spi_block_erase_d8,
11338 }, {
11339 .eraseblocks = { {65536 * 1024, 2} },
11340 .block_erase = spi_block_erase_c4,
11341 }
11342 },
11343 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11344 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11345 .write = spi_chip_write_256, /* Multi I/O supported */
11346 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11347 .voltage = {1700, 2000},
11348 },
11349
11350 {
11351 .vendor = "Micron",
11352 .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11353 .bustype = BUS_SPI,
11354 .manufacture_id = ST_ID,
11355 .model_id = ST_MT25QL02G,
11356 .total_size = 262144,
11357 .page_size = 256,
11358 /* supports SFDP */
11359 /* OTP: 64B total; read 0x4B, write 0x42 */
11360 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11361 .tested = TEST_UNTESTED,
11362 .probe = probe_spi_rdid,
11363 .probe_timing = TIMING_ZERO,
11364 .block_erasers =
11365 {
11366 {
11367 .eraseblocks = { {4 * 1024, 65536} },
11368 .block_erase = spi_block_erase_21,
11369 }, {
11370 .eraseblocks = { {4 * 1024, 65536} },
11371 .block_erase = spi_block_erase_20,
11372 }, {
11373 .eraseblocks = { {32 * 1024, 8192} },
11374 .block_erase = spi_block_erase_5c,
11375 }, {
11376 .eraseblocks = { {32 * 1024, 8192} },
11377 .block_erase = spi_block_erase_52,
11378 }, {
11379 .eraseblocks = { {64 * 1024, 4096} },
11380 .block_erase = spi_block_erase_dc,
11381 }, {
11382 .eraseblocks = { {64 * 1024, 4096} },
11383 .block_erase = spi_block_erase_d8,
11384 }, {
11385 .eraseblocks = { {65536 * 1024, 4} },
11386 .block_erase = spi_block_erase_c4,
11387 }
11388 },
11389 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11390 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11391 .write = spi_chip_write_256, /* Multi I/O supported */
11392 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11393 .voltage = {2700, 3600},
11394 },
11395
11396 {
11397 .vendor = "Micron",
11398 .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11399 .bustype = BUS_SPI,
11400 .manufacture_id = ST_ID,
11401 .model_id = ST_MT25QU02G,
11402 .total_size = 262144,
11403 .page_size = 256,
11404 /* supports SFDP */
11405 /* OTP: 64B total; read 0x4B, write 0x42 */
11406 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11407 .tested = TEST_UNTESTED,
11408 .probe = probe_spi_rdid,
11409 .probe_timing = TIMING_ZERO,
11410 .block_erasers =
11411 {
11412 {
11413 .eraseblocks = { {4 * 1024, 65536} },
11414 .block_erase = spi_block_erase_21,
11415 }, {
11416 .eraseblocks = { {4 * 1024, 65536} },
11417 .block_erase = spi_block_erase_20,
11418 }, {
11419 .eraseblocks = { {32 * 1024, 8192} },
11420 .block_erase = spi_block_erase_5c,
11421 }, {
11422 .eraseblocks = { {32 * 1024, 8192} },
11423 .block_erase = spi_block_erase_52,
11424 }, {
11425 .eraseblocks = { {64 * 1024, 4096} },
11426 .block_erase = spi_block_erase_dc,
11427 }, {
11428 .eraseblocks = { {64 * 1024, 4096} },
11429 .block_erase = spi_block_erase_d8,
11430 }, {
11431 .eraseblocks = { {65536 * 1024, 4} },
11432 .block_erase = spi_block_erase_c4,
11433 }
11434 },
11435 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11436 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11437 .write = spi_chip_write_256, /* Multi I/O supported */
11438 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11439 .voltage = {1700, 2000},
11440 },
11441
11442 {
11443 .vendor = "Micron",
11444 .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11445 .bustype = BUS_SPI,
11446 .manufacture_id = ST_ID,
11447 .model_id = ST_N25Q128__1E,
11448 .total_size = 16384,
11449 .page_size = 256,
11450 /* supports SFDP */
11451 /* OTP: 64B total; read 0x4B, write 0x42 */
11452 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11453 .tested = TEST_UNTESTED,
11454 .probe = probe_spi_rdid,
11455 .probe_timing = TIMING_ZERO,
11456 .block_erasers =
11457 {
11458 {
11459 .eraseblocks = { {4 * 1024, 4096} },
11460 .block_erase = spi_block_erase_20,
11461 }, {
11462 .eraseblocks = { {32 * 1024, 512} },
11463 .block_erase = spi_block_erase_52,
11464 }, {
11465 .eraseblocks = { {64 * 1024, 256} },
11466 .block_erase = spi_block_erase_d8,
11467 }, {
11468 .eraseblocks = { {16384 * 1024, 1} },
11469 .block_erase = spi_block_erase_c7,
11470 }, {
11471 .eraseblocks = { {16384 * 1024, 1} },
11472 .block_erase = spi_block_erase_60,
11473 }
11474 },
11475 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11476 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11477 .write = spi_chip_write_256, /* Multi I/O supported */
11478 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11479 .voltage = {1700, 2000},
11480 },
11481
11482 {
11483 .vendor = "Micron",
11484 .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11485 .bustype = BUS_SPI,
11486 .manufacture_id = ST_ID,
11487 .model_id = ST_N25Q128__3E,
11488 .total_size = 16384,
11489 .page_size = 256,
11490 /* supports SFDP */
11491 /* OTP: 64B total; read 0x4B, write 0x42 */
11492 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11493 .tested = TEST_UNTESTED,
11494 .probe = probe_spi_rdid,
11495 .probe_timing = TIMING_ZERO,
11496 .block_erasers =
11497 {
11498 {
11499 .eraseblocks = { {4 * 1024, 4096} },
11500 .block_erase = spi_block_erase_20,
11501 }, {
11502 .eraseblocks = { {32 * 1024, 512} },
11503 .block_erase = spi_block_erase_52,
11504 }, {
11505 .eraseblocks = { {64 * 1024, 256} },
11506 .block_erase = spi_block_erase_d8,
11507 }, {
11508 .eraseblocks = { {16384 * 1024, 1} },
11509 .block_erase = spi_block_erase_c7,
11510 }, {
11511 .eraseblocks = { {16384 * 1024, 1} },
11512 .block_erase = spi_block_erase_60,
11513 }
11514 },
11515 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11516 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11517 .write = spi_chip_write_256, /* Multi I/O supported */
11518 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11519 .voltage = {2700, 3600},
11520 },
11521
11522 {
11523 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011524 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011525 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011526 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070011527 .model_id = ST_N25Q256__3E,
11528 .total_size = 32768,
11529 .page_size = 256,
11530 /* supports SFDP */
11531 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011532 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11533 .tested = TEST_UNTESTED,
Ed Swierk199ab392017-07-03 13:33:44 -070011534 .probe = probe_spi_rdid,
11535 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011536 .block_erasers =
11537 {
Ed Swierk199ab392017-07-03 13:33:44 -070011538 {
11539 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011540 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011541 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011542 .eraseblocks = { {4 * 1024, 8192} },
11543 .block_erase = spi_block_erase_20,
11544 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011545 .eraseblocks = { {32 * 1024, 1024} },
11546 .block_erase = spi_block_erase_5c,
11547 }, {
11548 .eraseblocks = { {32 * 1024, 1024} },
11549 .block_erase = spi_block_erase_52,
11550 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011551 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011552 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011553 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011554 .eraseblocks = { {64 * 1024, 512} },
11555 .block_erase = spi_block_erase_d8,
11556 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011557 .eraseblocks = { {32768 * 1024, 1} },
11558 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011559 }, {
11560 .eraseblocks = { {32768 * 1024, 1} },
11561 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011562 }
11563 },
11564 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11565 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11566 .write = spi_chip_write_256, /* Multi I/O supported */
11567 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11568 .voltage = {2700, 3600},
11569 },
11570
11571 {
11572 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011573 .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11574 .bustype = BUS_SPI,
11575 .manufacture_id = ST_ID,
11576 .model_id = ST_N25Q256__1E,
11577 .total_size = 32768,
11578 .page_size = 256,
11579 /* supports SFDP */
11580 /* OTP: 64B total; read 0x4B, write 0x42 */
11581 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11582 .tested = TEST_UNTESTED,
11583 .probe = probe_spi_rdid,
11584 .probe_timing = TIMING_ZERO,
11585 .block_erasers =
11586 {
11587 {
11588 .eraseblocks = { {4 * 1024, 8192} },
11589 .block_erase = spi_block_erase_21,
11590 }, {
11591 .eraseblocks = { {4 * 1024, 8192} },
11592 .block_erase = spi_block_erase_20,
11593 }, {
11594 .eraseblocks = { {32 * 1024, 1024} },
11595 .block_erase = spi_block_erase_5c,
11596 }, {
11597 .eraseblocks = { {32 * 1024, 1024} },
11598 .block_erase = spi_block_erase_52,
11599 }, {
11600 .eraseblocks = { {64 * 1024, 512} },
11601 .block_erase = spi_block_erase_dc,
11602 }, {
11603 .eraseblocks = { {64 * 1024, 512} },
11604 .block_erase = spi_block_erase_d8,
11605 }, {
11606 .eraseblocks = { {32768 * 1024, 1} },
11607 .block_erase = spi_block_erase_c7,
11608 }, {
11609 .eraseblocks = { {32768 * 1024, 1} },
11610 .block_erase = spi_block_erase_60,
11611 }
11612 },
11613 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11614 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11615 .write = spi_chip_write_256, /* Multi I/O supported */
11616 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11617 .voltage = {1700, 2000},
11618 },
11619
11620 {
11621 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011622 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011623 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011624 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011625 .model_id = ST_N25Q512__3G,
Ed Swierk199ab392017-07-03 13:33:44 -070011626 .total_size = 65536,
11627 .page_size = 256,
11628 /* supports SFDP */
11629 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011630 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020011631 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011632 .probe = probe_spi_rdid,
11633 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011634 .block_erasers =
11635 {
Ed Swierk199ab392017-07-03 13:33:44 -070011636 {
11637 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011638 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011639 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011640 .eraseblocks = { {4 * 1024, 16384} },
11641 .block_erase = spi_block_erase_20,
11642 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011643 .eraseblocks = { {32 * 1024, 2048} },
11644 .block_erase = spi_block_erase_5c,
11645 }, {
11646 .eraseblocks = { {32 * 1024, 2048} },
11647 .block_erase = spi_block_erase_52,
11648 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011649 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011650 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011651 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011652 .eraseblocks = { {64 * 1024, 1024} },
11653 .block_erase = spi_block_erase_d8,
11654 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011655 .eraseblocks = { {65536 * 1024, 1} },
11656 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011657 }, {
11658 .eraseblocks = { {65536 * 1024, 1} },
11659 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011660 }
11661 },
11662 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11663 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11664 .write = spi_chip_write_256, /* Multi I/O supported */
11665 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11666 .voltage = {2700, 3600},
11667 },
11668
11669 {
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011670 .vendor = "Micron",
11671 .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11672 .bustype = BUS_SPI,
11673 .manufacture_id = ST_ID,
11674 .model_id = ST_N25Q512__1G,
11675 .total_size = 65536,
11676 .page_size = 256,
11677 /* supports SFDP */
11678 /* OTP: 64B total; read 0x4B, write 0x42 */
11679 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11680 .tested = TEST_OK_PREW,
11681 .probe = probe_spi_rdid,
11682 .probe_timing = TIMING_ZERO,
11683 .block_erasers =
11684 {
11685 {
11686 .eraseblocks = { {4 * 1024, 16384} },
11687 .block_erase = spi_block_erase_21,
11688 }, {
11689 .eraseblocks = { {4 * 1024, 16384} },
11690 .block_erase = spi_block_erase_20,
11691 }, {
11692 .eraseblocks = { {32 * 1024, 2048} },
11693 .block_erase = spi_block_erase_5c,
11694 }, {
11695 .eraseblocks = { {32 * 1024, 2048} },
11696 .block_erase = spi_block_erase_52,
11697 }, {
11698 .eraseblocks = { {64 * 1024, 1024} },
11699 .block_erase = spi_block_erase_dc,
11700 }, {
11701 .eraseblocks = { {64 * 1024, 1024} },
11702 .block_erase = spi_block_erase_d8,
11703 }, {
11704 .eraseblocks = { {65536 * 1024, 1} },
11705 .block_erase = spi_block_erase_c7,
11706 }, {
11707 .eraseblocks = { {65536 * 1024, 1} },
11708 .block_erase = spi_block_erase_60,
11709 }
11710 },
11711 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11712 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11713 .write = spi_chip_write_256, /* Multi I/O supported */
11714 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11715 .voltage = {1700, 2000},
11716 },
11717
11718 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011719 .vendor = "MoselVitelic",
11720 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011721 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011722 .manufacture_id = SYNCMOS_MVC_ID,
11723 .model_id = MVC_V29C51000B,
11724 .total_size = 64,
11725 .page_size = 512,
11726 .feature_bits = FEATURE_EITHER_RESET,
11727 .tested = TEST_UNTESTED,
11728 .probe = probe_jedec,
11729 .probe_timing = TIMING_ZERO,
11730 .block_erasers =
11731 {
11732 {
11733 .eraseblocks = { {512, 128} },
11734 .block_erase = erase_sector_jedec,
11735 }, {
11736 .eraseblocks = { {64 * 1024, 1} },
11737 .block_erase = erase_chip_block_jedec,
11738 },
11739 },
11740 .write = write_jedec_1,
11741 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011742 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011743 },
11744
11745 {
11746 .vendor = "MoselVitelic",
11747 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011748 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011749 .manufacture_id = SYNCMOS_MVC_ID,
11750 .model_id = MVC_V29C51000T,
11751 .total_size = 64,
11752 .page_size = 512,
11753 .feature_bits = FEATURE_EITHER_RESET,
11754 .tested = TEST_UNTESTED,
11755 .probe = probe_jedec,
11756 .probe_timing = TIMING_ZERO,
11757 .block_erasers =
11758 {
11759 {
11760 .eraseblocks = { {512, 128} },
11761 .block_erase = erase_sector_jedec,
11762 }, {
11763 .eraseblocks = { {64 * 1024, 1} },
11764 .block_erase = erase_chip_block_jedec,
11765 },
11766 },
11767 .write = write_jedec_1,
11768 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011769 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011770 },
11771
11772 {
11773 .vendor = "MoselVitelic",
11774 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011775 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011776 .manufacture_id = SYNCMOS_MVC_ID,
11777 .model_id = MVC_V29C51400B,
11778 .total_size = 512,
11779 .page_size = 1024,
11780 .feature_bits = FEATURE_EITHER_RESET,
11781 .tested = TEST_UNTESTED,
11782 .probe = probe_jedec,
11783 .probe_timing = TIMING_ZERO,
11784 .block_erasers =
11785 {
11786 {
11787 .eraseblocks = { {1024, 512} },
11788 .block_erase = erase_sector_jedec,
11789 }, {
11790 .eraseblocks = { {512 * 1024, 1} },
11791 .block_erase = erase_chip_block_jedec,
11792 },
11793 },
11794 .write = write_jedec_1,
11795 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011796 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011797 },
11798
11799 {
11800 .vendor = "MoselVitelic",
11801 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011802 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011803 .manufacture_id = SYNCMOS_MVC_ID,
11804 .model_id = MVC_V29C51400T,
11805 .total_size = 512,
11806 .page_size = 1024,
11807 .feature_bits = FEATURE_EITHER_RESET,
11808 .tested = TEST_UNTESTED,
11809 .probe = probe_jedec,
11810 .probe_timing = TIMING_ZERO,
11811 .block_erasers =
11812 {
11813 {
11814 .eraseblocks = { {1024, 512} },
11815 .block_erase = erase_sector_jedec,
11816 }, {
11817 .eraseblocks = { {512 * 1024, 1} },
11818 .block_erase = erase_chip_block_jedec,
11819 },
11820 },
11821 .write = write_jedec_1,
11822 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011823 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011824 },
11825
11826 {
11827 .vendor = "MoselVitelic",
11828 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011829 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011830 .manufacture_id = SYNCMOS_MVC_ID,
11831 .model_id = MVC_V29LC51000,
11832 .total_size = 64,
11833 .page_size = 512,
11834 .feature_bits = FEATURE_EITHER_RESET,
11835 .tested = TEST_UNTESTED,
11836 .probe = probe_jedec,
11837 .probe_timing = TIMING_ZERO,
11838 .block_erasers =
11839 {
11840 {
11841 .eraseblocks = { {512, 128} },
11842 .block_erase = erase_sector_jedec,
11843 }, {
11844 .eraseblocks = { {64 * 1024, 1} },
11845 .block_erase = erase_chip_block_jedec,
11846 },
11847 },
11848 .write = write_jedec_1,
11849 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011850 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011851 },
11852
11853 {
11854 .vendor = "MoselVitelic",
11855 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011856 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011857 .manufacture_id = SYNCMOS_MVC_ID,
11858 .model_id = MVC_V29LC51001,
11859 .total_size = 128,
11860 .page_size = 512,
11861 .feature_bits = FEATURE_EITHER_RESET,
11862 .tested = TEST_UNTESTED,
11863 .probe = probe_jedec,
11864 .probe_timing = TIMING_ZERO,
11865 .block_erasers =
11866 {
11867 {
11868 .eraseblocks = { {512, 256} },
11869 .block_erase = erase_sector_jedec,
11870 }, {
11871 .eraseblocks = { {128 * 1024, 1} },
11872 .block_erase = erase_chip_block_jedec,
11873 },
11874 },
11875 .write = write_jedec_1,
11876 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011877 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011878 },
11879
11880 {
11881 .vendor = "MoselVitelic",
11882 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011883 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011884 .manufacture_id = SYNCMOS_MVC_ID,
11885 .model_id = MVC_V29LC51002,
11886 .total_size = 256,
11887 .page_size = 512,
11888 .feature_bits = FEATURE_EITHER_RESET,
11889 .tested = TEST_UNTESTED,
11890 .probe = probe_jedec,
11891 .probe_timing = TIMING_ZERO,
11892 .block_erasers =
11893 {
11894 {
11895 .eraseblocks = { {512, 512} },
11896 .block_erase = erase_sector_jedec,
11897 }, {
11898 .eraseblocks = { {256 * 1024, 1} },
11899 .block_erase = erase_chip_block_jedec,
11900 },
11901 },
11902 .write = write_jedec_1,
11903 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011904 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011905 },
11906
11907 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011908 .vendor = "Nantronics",
11909 .name = "N25S10",
11910 .bustype = BUS_SPI,
11911 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11912 .model_id = NANTRONICS_N25S10,
11913 .total_size = 128,
11914 .page_size = 256,
11915 .feature_bits = FEATURE_WRSR_WREN,
11916 .tested = TEST_UNTESTED,
11917 .probe = probe_spi_rdid,
11918 .probe_timing = TIMING_ZERO,
11919 .block_erasers =
11920 {
11921 {
11922 .eraseblocks = { {4 * 1024, 32} },
11923 .block_erase = spi_block_erase_20,
11924 }, {
11925 .eraseblocks = { {4 * 1024, 32} },
11926 .block_erase = spi_block_erase_d7,
11927 }, {
11928 .eraseblocks = { {32 * 1024, 4} },
11929 .block_erase = spi_block_erase_52,
11930 }, {
11931 .eraseblocks = { {64 * 1024, 2} },
11932 .block_erase = spi_block_erase_d8,
11933 }, {
11934 .eraseblocks = { {128 * 1024, 1} },
11935 .block_erase = spi_block_erase_60,
11936 }, {
11937 .eraseblocks = { {128 * 1024, 1} },
11938 .block_erase = spi_block_erase_c7,
11939 }
11940 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011941 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011942 .unlock = spi_disable_blockprotect_bp3_srwd,
11943 .write = spi_chip_write_256,
11944 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11945 .voltage = {2700, 3600},
11946 },
11947
11948 {
11949 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011950 .name = "N25S16",
11951 .bustype = BUS_SPI,
11952 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11953 .model_id = NANTRONICS_N25S16,
11954 .total_size = 2048,
11955 .page_size = 256,
11956 .feature_bits = FEATURE_WRSR_WREN,
11957 .tested = TEST_UNTESTED,
11958 .probe = probe_spi_rdid,
11959 .probe_timing = TIMING_ZERO,
11960 .block_erasers =
11961 {
11962 {
11963 .eraseblocks = { {4 * 1024, 512} },
11964 .block_erase = spi_block_erase_20,
11965 }, {
11966 .eraseblocks = { {64 * 1024, 32} },
11967 .block_erase = spi_block_erase_d8,
11968 }, {
11969 .eraseblocks = { {2048 * 1024, 1} },
11970 .block_erase = spi_block_erase_60,
11971 }, {
11972 .eraseblocks = { {2048 * 1024, 1} },
11973 .block_erase = spi_block_erase_c7,
11974 }
11975 },
11976 .printlock = spi_prettyprint_status_register_bp3_srwd,
11977 .unlock = spi_disable_blockprotect_bp3_srwd,
11978 .write = spi_chip_write_256,
11979 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11980 .voltage = {2700, 3600},
11981 },
11982
11983 {
11984 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011985 .name = "N25S20",
11986 .bustype = BUS_SPI,
11987 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11988 .model_id = NANTRONICS_N25S20,
11989 .total_size = 256,
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, 64} },
11999 .block_erase = spi_block_erase_20,
12000 }, {
12001 .eraseblocks = { {4 * 1024, 64} },
12002 .block_erase = spi_block_erase_d7,
12003 }, {
12004 .eraseblocks = { {32 * 1024, 8} },
12005 .block_erase = spi_block_erase_52,
12006 }, {
12007 .eraseblocks = { {64 * 1024, 4} },
12008 .block_erase = spi_block_erase_d8,
12009 }, {
12010 .eraseblocks = { {256 * 1024, 1} },
12011 .block_erase = spi_block_erase_60,
12012 }, {
12013 .eraseblocks = { {256 * 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",
12026 .name = "N25S40",
12027 .bustype = BUS_SPI,
12028 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12029 .model_id = NANTRONICS_N25S40,
12030 .total_size = 512,
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, 128} },
12040 .block_erase = spi_block_erase_20,
12041 }, {
12042 .eraseblocks = { {4 * 1024, 128} },
12043 .block_erase = spi_block_erase_d7,
12044 }, {
12045 .eraseblocks = { {32 * 1024, 16} },
12046 .block_erase = spi_block_erase_52,
12047 }, {
12048 .eraseblocks = { {64 * 1024, 8} },
12049 .block_erase = spi_block_erase_d8,
12050 }, {
12051 .eraseblocks = { {512 * 1024, 1} },
12052 .block_erase = spi_block_erase_60,
12053 }, {
12054 .eraseblocks = { {512 * 1024, 1} },
12055 .block_erase = spi_block_erase_c7,
12056 }
12057 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012058 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012059 .unlock = spi_disable_blockprotect_bp3_srwd,
12060 .write = spi_chip_write_256,
12061 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12062 .voltage = {2700, 3600},
12063 },
12064
12065 {
12066 .vendor = "Nantronics",
12067 .name = "N25S80",
12068 .bustype = BUS_SPI,
12069 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12070 .model_id = NANTRONICS_N25S80,
12071 .total_size = 1024,
12072 .page_size = 256,
12073 .feature_bits = FEATURE_WRSR_WREN,
12074 .tested = TEST_UNTESTED,
12075 .probe = probe_spi_rdid,
12076 .probe_timing = TIMING_ZERO,
12077 .block_erasers =
12078 {
12079 {
12080 .eraseblocks = { {4 * 1024, 256} },
12081 .block_erase = spi_block_erase_20,
12082 }, {
12083 .eraseblocks = { {32 * 1024, 32} },
12084 .block_erase = spi_block_erase_52,
12085 }, {
12086 .eraseblocks = { {64 * 1024, 16} },
12087 .block_erase = spi_block_erase_d8,
12088 }, {
12089 .eraseblocks = { {1024 * 1024, 1} },
12090 .block_erase = spi_block_erase_60,
12091 }, {
12092 .eraseblocks = { {1024 * 1024, 1} },
12093 .block_erase = spi_block_erase_c7,
12094 }
12095 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012096 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012097 .unlock = spi_disable_blockprotect_bp3_srwd,
12098 .write = spi_chip_write_256,
12099 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12100 .voltage = {2700, 3600},
12101 },
12102
12103 {
Stefan Taunerf4451612013-04-19 01:59:15 +000012104 .vendor = "PMC",
12105 .name = "Pm25LD010(C)",
12106 .bustype = BUS_SPI,
12107 .manufacture_id = PMC_ID,
12108 .model_id = PMC_PM25LD010,
12109 .total_size = 128,
12110 .page_size = 256,
12111 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012112 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012113 .probe = probe_spi_rdid,
12114 .probe_timing = TIMING_ZERO,
12115 .block_erasers =
12116 {
12117 {
12118 .eraseblocks = { {4 * 1024, 32} },
12119 .block_erase = spi_block_erase_20,
12120 }, {
12121 .eraseblocks = { {4 * 1024, 32} },
12122 .block_erase = spi_block_erase_d7,
12123 }, {
12124 .eraseblocks = { {32 * 1024, 4} },
12125 .block_erase = spi_block_erase_d8,
12126 }, {
12127 .eraseblocks = { {128 * 1024, 1} },
12128 .block_erase = spi_block_erase_60,
12129 }, {
12130 .eraseblocks = { {128 * 1024, 1} },
12131 .block_erase = spi_block_erase_c7,
12132 }
12133 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012134 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012135 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12136 .write = spi_chip_write_256,
12137 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12138 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
12139 },
12140
12141 {
12142 .vendor = "PMC",
12143 .name = "Pm25LD020(C)",
12144 .bustype = BUS_SPI,
12145 .manufacture_id = PMC_ID,
12146 .model_id = PMC_PM25LD020,
12147 .total_size = 256,
12148 .page_size = 256,
12149 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020012150 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012151 .probe = probe_spi_rdid,
12152 .probe_timing = TIMING_ZERO,
12153 .block_erasers =
12154 {
12155 {
12156 .eraseblocks = { {4 * 1024, 64} },
12157 .block_erase = spi_block_erase_20,
12158 }, {
12159 .eraseblocks = { {4 * 1024, 64} },
12160 .block_erase = spi_block_erase_d7,
12161 }, {
12162 .eraseblocks = { {64 * 1024, 4} },
12163 .block_erase = spi_block_erase_d8,
12164 }, {
12165 .eraseblocks = { {256 * 1024, 1} },
12166 .block_erase = spi_block_erase_60,
12167 }, {
12168 .eraseblocks = { {256 * 1024, 1} },
12169 .block_erase = spi_block_erase_c7,
12170 }
12171 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012172 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012173 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12174 .write = spi_chip_write_256,
12175 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12176 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
12177 },
12178
12179 {
12180 .vendor = "PMC",
12181 .name = "Pm25LD040(C)",
12182 .bustype = BUS_SPI,
12183 .manufacture_id = PMC_ID,
12184 .model_id = PMC_PM25LV040,
12185 .total_size = 512,
12186 .page_size = 256,
12187 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020012188 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012189 .probe = probe_spi_rdid,
12190 .probe_timing = TIMING_ZERO,
12191 .block_erasers =
12192 {
12193 {
12194 .eraseblocks = { {4 * 1024, 128} },
12195 .block_erase = spi_block_erase_20,
12196 }, {
12197 .eraseblocks = { {4 * 1024, 128} },
12198 .block_erase = spi_block_erase_d7,
12199 }, {
12200 .eraseblocks = { {64 * 1024, 8} },
12201 .block_erase = spi_block_erase_d8,
12202 }, {
12203 .eraseblocks = { {512 * 1024, 1} },
12204 .block_erase = spi_block_erase_60,
12205 }, {
12206 .eraseblocks = { {512 * 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,
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 Pm25LD040 */
12215 },
12216
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012217 {
12218 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012219 .name = "Pm25LD256C",
12220 .bustype = BUS_SPI,
12221 .manufacture_id = PMC_ID,
12222 .model_id = PMC_PM25LD256C,
12223 .total_size = 32,
12224 .page_size = 256,
12225 .feature_bits = FEATURE_WRSR_WREN,
12226 .tested = TEST_UNTESTED,
12227 .probe = probe_spi_rdid,
12228 .probe_timing = TIMING_ZERO,
12229 .block_erasers =
12230 {
12231 {
12232 .eraseblocks = { {4 * 1024, 8} },
12233 .block_erase = spi_block_erase_20,
12234 }, {
12235 .eraseblocks = { {4 * 1024, 8} },
12236 .block_erase = spi_block_erase_d7,
12237 }, {
12238 .eraseblocks = { {32 * 1024, 1} },
12239 .block_erase = spi_block_erase_d8,
12240 }, {
12241 .eraseblocks = { {32 * 1024, 1} },
12242 .block_erase = spi_block_erase_60,
12243 }, {
12244 .eraseblocks = { {32 * 1024, 1} },
12245 .block_erase = spi_block_erase_c7,
12246 }
12247 },
12248 .printlock = spi_prettyprint_status_register_bp2_srwd,
12249 .unlock = spi_disable_blockprotect,
12250 .write = spi_chip_write_256,
12251 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12252 .voltage = {2700, 3600},
12253 },
12254
12255 {
12256 .vendor = "PMC",
12257 .name = "Pm25LD512(C)",
12258 .bustype = BUS_SPI,
12259 .manufacture_id = PMC_ID,
12260 .model_id = PMC_PM25LD512,
12261 .total_size = 64,
12262 .page_size = 256,
12263 .feature_bits = FEATURE_WRSR_WREN,
12264 .tested = TEST_OK_PREW,
12265 .probe = probe_spi_rdid,
12266 .probe_timing = TIMING_ZERO,
12267 .block_erasers =
12268 {
12269 {
12270 .eraseblocks = { {4 * 1024, 16} },
12271 .block_erase = spi_block_erase_20,
12272 }, {
12273 .eraseblocks = { {4 * 1024, 16} },
12274 .block_erase = spi_block_erase_d7,
12275 }, {
12276 .eraseblocks = { {32 * 1024, 2} },
12277 .block_erase = spi_block_erase_d8,
12278 }, {
12279 .eraseblocks = { {64 * 1024, 1} },
12280 .block_erase = spi_block_erase_60,
12281 }, {
12282 .eraseblocks = { {64 * 1024, 1} },
12283 .block_erase = spi_block_erase_c7,
12284 }
12285 },
12286 .printlock = spi_prettyprint_status_register_bp2_srwd,
12287 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12288 .write = spi_chip_write_256,
12289 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12290 .voltage = {2300, 3600},
12291 },
12292
12293 {
12294 .vendor = "PMC",
12295 .name = "Pm25LQ016",
12296 .bustype = BUS_SPI,
12297 .manufacture_id = PMC_ID,
12298 .model_id = PMC_PM25LQ016,
12299 .total_size = 2048,
12300 .page_size = 256,
12301 /* OTP: 256B total; read 0x4B, write 0xB1 */
12302 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12303 .tested = TEST_UNTESTED,
12304 .probe = probe_spi_rdid,
12305 .probe_timing = TIMING_ZERO,
12306 .block_erasers =
12307 {
12308 {
12309 .eraseblocks = { {4 * 1024, 512} },
12310 .block_erase = spi_block_erase_20,
12311 }, {
12312 .eraseblocks = { {4 * 1024, 512} },
12313 .block_erase = spi_block_erase_d7,
12314 }, {
12315 .eraseblocks = { {64 * 1024, 32} },
12316 .block_erase = spi_block_erase_d8,
12317 }, {
12318 .eraseblocks = { {2048 * 1024, 1} },
12319 .block_erase = spi_block_erase_60,
12320 }, {
12321 .eraseblocks = { {2048 * 1024, 1} },
12322 .block_erase = spi_block_erase_c7,
12323 }
12324 },
12325 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12326 .unlock = spi_disable_blockprotect_bp3_srwd,
12327 .write = spi_chip_write_256,
12328 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12329 .voltage = {2300, 3600},
12330 },
12331
12332 {
12333 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012334 .name = "Pm25LQ020",
12335 .bustype = BUS_SPI,
12336 .manufacture_id = PMC_ID,
12337 .model_id = PMC_PM25LQ020,
12338 .total_size = 256,
12339 .page_size = 256,
12340 /* OTP: 256B total; read 0x4B, write 0xB1 */
12341 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12342 .tested = TEST_UNTESTED,
12343 .probe = probe_spi_rdid,
12344 .probe_timing = TIMING_ZERO,
12345 .block_erasers =
12346 {
12347 {
12348 .eraseblocks = { {4 * 1024, 64} },
12349 .block_erase = spi_block_erase_20,
12350 }, {
12351 .eraseblocks = { {4 * 1024, 64} },
12352 .block_erase = spi_block_erase_d7,
12353 }, {
12354 .eraseblocks = { {64 * 1024, 4} },
12355 .block_erase = spi_block_erase_d8,
12356 }, {
12357 .eraseblocks = { {256 * 1024, 1} },
12358 .block_erase = spi_block_erase_60,
12359 }, {
12360 .eraseblocks = { {256 * 1024, 1} },
12361 .block_erase = spi_block_erase_c7,
12362 }
12363 },
12364 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12365 .unlock = spi_disable_blockprotect_bp3_srwd,
12366 .write = spi_chip_write_256,
12367 .read = spi_chip_read,
12368 .voltage = {2300, 3600},
12369 },
12370
12371 {
12372 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012373 .name = "Pm25LQ032C",
12374 .bustype = BUS_SPI,
12375 .manufacture_id = PMC_ID,
12376 .model_id = PMC_PM25LQ032C,
12377 .total_size = 4096,
12378 .page_size = 256,
12379 /* OTP: 64B total; read 0x4B, write 0xB1 */
12380 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12381 .tested = TEST_OK_PREW,
12382 .probe = probe_spi_rdid,
12383 .probe_timing = TIMING_ZERO,
12384 .block_erasers =
12385 {
12386 {
12387 .eraseblocks = { {4 * 1024, 1024} },
12388 .block_erase = spi_block_erase_20,
12389 }, {
12390 .eraseblocks = { {4 * 1024, 1024} },
12391 .block_erase = spi_block_erase_d7,
12392 }, {
12393 .eraseblocks = { {64 * 1024, 64} },
12394 .block_erase = spi_block_erase_d8,
12395 }, {
12396 .eraseblocks = { {4096 * 1024, 1} },
12397 .block_erase = spi_block_erase_60,
12398 }, {
12399 .eraseblocks = { {4096 * 1024, 1} },
12400 .block_erase = spi_block_erase_c7,
12401 }
12402 },
12403 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12404 .unlock = spi_disable_blockprotect_bp3_srwd,
12405 .write = spi_chip_write_256,
12406 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12407 .voltage = {2700, 3600},
12408 },
12409
12410 {
12411 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012412 .name = "Pm25LQ040",
12413 .bustype = BUS_SPI,
12414 .manufacture_id = PMC_ID,
12415 .model_id = PMC_PM25LQ040,
12416 .total_size = 512,
12417 .page_size = 256,
12418 /* OTP: 256B total; read 0x4B, write 0xB1 */
12419 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12420 .tested = TEST_UNTESTED,
12421 .probe = probe_spi_rdid,
12422 .probe_timing = TIMING_ZERO,
12423 .block_erasers =
12424 {
12425 {
12426 .eraseblocks = { {4 * 1024, 128} },
12427 .block_erase = spi_block_erase_20,
12428 }, {
12429 .eraseblocks = { {4 * 1024, 128} },
12430 .block_erase = spi_block_erase_d7,
12431 }, {
12432 .eraseblocks = { {64 * 1024, 8} },
12433 .block_erase = spi_block_erase_d8,
12434 }, {
12435 .eraseblocks = { {512 * 1024, 1} },
12436 .block_erase = spi_block_erase_60,
12437 }, {
12438 .eraseblocks = { {512 * 1024, 1} },
12439 .block_erase = spi_block_erase_c7,
12440 }
12441 },
12442 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12443 .unlock = spi_disable_blockprotect_bp3_srwd,
12444 .write = spi_chip_write_256,
12445 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12446 .voltage = {2300, 3600},
12447 },
12448
12449 {
12450 .vendor = "PMC",
12451 .name = "Pm25LQ080",
12452 .bustype = BUS_SPI,
12453 .manufacture_id = PMC_ID,
12454 .model_id = PMC_PM25LQ080,
12455 .total_size = 1024,
12456 .page_size = 256,
12457 /* OTP: 64B total; read 0x4B, write 0xB1 */
12458 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12459 .tested = TEST_UNTESTED,
12460 .probe = probe_spi_rdid,
12461 .probe_timing = TIMING_ZERO,
12462 .block_erasers =
12463 {
12464 {
12465 .eraseblocks = { {4 * 1024, 256} },
12466 .block_erase = spi_block_erase_20,
12467 }, {
12468 .eraseblocks = { {4 * 1024, 256} },
12469 .block_erase = spi_block_erase_d7,
12470 }, {
12471 .eraseblocks = { {64 * 1024, 16} },
12472 .block_erase = spi_block_erase_d8,
12473 }, {
12474 .eraseblocks = { {1024 * 1024, 1} },
12475 .block_erase = spi_block_erase_60,
12476 }, {
12477 .eraseblocks = { {1024 * 1024, 1} },
12478 .block_erase = spi_block_erase_c7,
12479 }
12480 },
12481 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12482 .unlock = spi_disable_blockprotect_bp3_srwd,
12483 .write = spi_chip_write_256,
12484 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12485 .voltage = {2300, 3600},
12486 },
12487
12488 {
12489 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012490 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012491 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000012492 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012493 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012494 .total_size = 128,
12495 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012496 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000012497 .tested = TEST_OK_PREW,
12498 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012499 .probe_timing = TIMING_ZERO,
12500 .block_erasers =
12501 {
12502 {
12503 .eraseblocks = { {4 * 1024, 32} },
12504 .block_erase = spi_block_erase_d7,
12505 }, {
12506 .eraseblocks = { {32 * 1024, 4} },
12507 .block_erase = spi_block_erase_d8,
12508 }, {
12509 .eraseblocks = { {128 * 1024, 1} },
12510 .block_erase = spi_block_erase_c7,
12511 }
12512 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012513 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012514 .unlock = spi_disable_blockprotect,
12515 .write = spi_chip_write_256,
12516 .read = spi_chip_read, /* Fast read (0x0B) supported */
12517 .voltage = {2700, 3600},
12518 },
12519
12520 {
12521 .vendor = "PMC",
12522 .name = "Pm25LV010A",
12523 .bustype = BUS_SPI,
12524 .manufacture_id = PMC_ID,
12525 .model_id = PMC_PM25LV010,
12526 .total_size = 128,
12527 .page_size = 256,
12528 .feature_bits = FEATURE_WRSR_WREN,
12529 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012530 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012531 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012532 .block_erasers =
12533 {
12534 {
12535 .eraseblocks = { {4 * 1024, 32} },
12536 .block_erase = spi_block_erase_d7,
12537 }, {
12538 .eraseblocks = { {32 * 1024, 4} },
12539 .block_erase = spi_block_erase_d8,
12540 }, {
12541 .eraseblocks = { {128 * 1024, 1} },
12542 .block_erase = spi_block_erase_c7,
12543 }
12544 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012545 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012546 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012547 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012548 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012549 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012550 },
12551
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012552 {
12553 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012554 .name = "Pm25LV016B",
12555 .bustype = BUS_SPI,
12556 .manufacture_id = PMC_ID,
12557 .model_id = PMC_PM25LV016B,
12558 .total_size = 2048,
12559 .page_size = 256,
12560 .feature_bits = FEATURE_WRSR_WREN,
12561 .tested = TEST_UNTESTED,
12562 .probe = probe_spi_rdid,
12563 .probe_timing = TIMING_ZERO,
12564 .block_erasers =
12565 {
12566 {
12567 .eraseblocks = { {4 * 1024, 512} },
12568 .block_erase = spi_block_erase_d7,
12569 }, {
12570 .eraseblocks = { {4 * 1024, 512} },
12571 .block_erase = spi_block_erase_20,
12572 }, {
12573 .eraseblocks = { {64 * 1024, 32} },
12574 .block_erase = spi_block_erase_d8,
12575 }, {
12576 .eraseblocks = { {2 * 1024 * 1024, 1} },
12577 .block_erase = spi_block_erase_60,
12578 }, {
12579 .eraseblocks = { {2 * 1024 * 1024, 1} },
12580 .block_erase = spi_block_erase_c7,
12581 }
12582 },
12583 .printlock = spi_prettyprint_status_register_bp2_srwd,
12584 .unlock = spi_disable_blockprotect,
12585 .write = spi_chip_write_256,
12586 .read = spi_chip_read, /* Fast read (0x0B) supported */
12587 .voltage = {2700, 3600},
12588 },
12589
12590 {
12591 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012592 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012593 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012594 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012595 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012596 .total_size = 256,
12597 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012598 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012599 .tested = TEST_UNTESTED,
12600 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012601 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012602 .block_erasers =
12603 {
12604 {
12605 .eraseblocks = { {4 * 1024, 64} },
12606 .block_erase = spi_block_erase_d7,
12607 }, {
12608 .eraseblocks = { {64 * 1024, 4} },
12609 .block_erase = spi_block_erase_d8,
12610 }, {
12611 .eraseblocks = { {256 * 1024, 1} },
12612 .block_erase = spi_block_erase_c7,
12613 }
12614 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012615 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012616 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012617 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012618 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012619 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012620 },
12621
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012622 {
12623 .vendor = "PMC",
12624 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012625 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012626 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012627 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012628 .total_size = 512,
12629 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012630 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000012631 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012632 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012633 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012634 .block_erasers =
12635 {
12636 {
12637 .eraseblocks = { {4 * 1024, 128} },
12638 .block_erase = spi_block_erase_d7,
12639 }, {
12640 .eraseblocks = { {64 * 1024, 8} },
12641 .block_erase = spi_block_erase_d8,
12642 }, {
12643 .eraseblocks = { {512 * 1024, 1} },
12644 .block_erase = spi_block_erase_c7,
12645 }
12646 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012647 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012648 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012649 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012650 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012651 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012652 },
12653
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012654 {
12655 .vendor = "PMC",
12656 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012657 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012658 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012659 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012660 .total_size = 1024,
12661 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012662 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012663 .tested = TEST_UNTESTED,
12664 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012665 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012666 .block_erasers =
12667 {
12668 {
12669 .eraseblocks = { {4 * 1024, 256} },
12670 .block_erase = spi_block_erase_d7,
12671 }, {
12672 .eraseblocks = { {4 * 1024, 256} },
12673 .block_erase = spi_block_erase_20,
12674 }, {
12675 .eraseblocks = { {64 * 1024, 16} },
12676 .block_erase = spi_block_erase_d8,
12677 }, {
12678 .eraseblocks = { {1024 * 1024, 1} },
12679 .block_erase = spi_block_erase_60,
12680 }, {
12681 .eraseblocks = { {1024 * 1024, 1} },
12682 .block_erase = spi_block_erase_c7,
12683 }
12684 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012685 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012686 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012687 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012688 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012689 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012690 },
12691
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012692 {
12693 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012694 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012695 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012696 .manufacture_id = PMC_ID_NOPREFIX,
12697 .model_id = PMC_PM25LV512,
12698 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012699 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012700 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012701 .tested = TEST_OK_PREW,
12702 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012703 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012704 .block_erasers =
12705 {
12706 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012707 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000012708 .block_erase = spi_block_erase_d7,
12709 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012710 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000012711 .block_erase = spi_block_erase_d8,
12712 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012713 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000012714 .block_erase = spi_block_erase_c7,
12715 }
12716 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100012717 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012718 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012719 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012720 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012721 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012722 },
12723
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012724 {
12725 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000012726 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012727 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012728 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012729 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012730 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000012731 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012732 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012733 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012734 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000012735 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000012736 .block_erasers =
12737 {
12738 {
12739 .eraseblocks = {
12740 {16 * 1024, 1},
12741 {8 * 1024, 2},
12742 {96 * 1024, 1},
12743 {128 * 1024, 1},
12744 },
Sean Nelson35727f72010-01-28 23:55:12 +000012745 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012746 }, {
12747 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000012748 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012749 },
12750 },
Sean Nelson35727f72010-01-28 23:55:12 +000012751 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012752 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012753 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012754 },
12755
12756 {
12757 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012758 .name = "Pm29F002T",
12759 .bustype = BUS_PARALLEL,
12760 .manufacture_id = PMC_ID_NOPREFIX,
12761 .model_id = PMC_PM29F002T,
12762 .total_size = 256,
12763 .page_size = 8 * 1024,
12764 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12765 .tested = TEST_OK_PREW,
12766 .probe = probe_jedec,
12767 .probe_timing = TIMING_FIXME,
12768 .block_erasers =
12769 {
12770 {
12771 .eraseblocks = {
12772 {128 * 1024, 1},
12773 {96 * 1024, 1},
12774 {8 * 1024, 2},
12775 {16 * 1024, 1},
12776 },
12777 .block_erase = erase_sector_jedec,
12778 }, {
12779 .eraseblocks = { {256 * 1024, 1} },
12780 .block_erase = erase_chip_block_jedec,
12781 },
12782 },
12783 .write = write_jedec_1,
12784 .read = read_memmapped,
12785 .voltage = {4500, 5500},
12786 },
12787
12788 {
12789 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012790 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012791 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012792 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012793 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012794 .total_size = 128,
12795 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012796 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012797 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012798 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012799 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000012800 .block_erasers =
12801 {
12802 {
12803 .eraseblocks = { {4 * 1024, 32} },
12804 .block_erase = erase_sector_jedec,
12805 }, {
12806 .eraseblocks = { {64 * 1024, 2} },
12807 .block_erase = erase_block_jedec,
12808 }, {
12809 .eraseblocks = { {128 * 1024, 1} },
12810 .block_erase = erase_chip_block_jedec,
12811 }
12812 },
Sean Nelson35727f72010-01-28 23:55:12 +000012813 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012814 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012815 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012816 },
12817
12818 {
12819 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012820 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012821 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012822 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012823 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012824 .total_size = 256,
12825 .page_size = 4096,
12826 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12827 .tested = TEST_UNTESTED,
12828 .probe = probe_jedec,
12829 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100012830 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012831 {
12832 {
12833 .eraseblocks = { {4 * 1024, 64} },
12834 .block_erase = erase_sector_jedec,
12835 }, {
12836 .eraseblocks = { {64 * 1024, 4} },
12837 .block_erase = erase_block_jedec,
12838 }, {
12839 .eraseblocks = { {256 * 1024, 1} },
12840 .block_erase = erase_chip_block_jedec,
12841 }
12842 },
12843 .write = write_jedec_1,
12844 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012845 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012846 },
12847
12848 {
12849 .vendor = "PMC",
12850 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012851 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012852 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012853 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012854 .total_size = 512,
12855 .page_size = 4096,
12856 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012857 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012858 .probe = probe_jedec,
12859 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100012860 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012861 {
12862 {
12863 .eraseblocks = { {4 * 1024, 128} },
12864 .block_erase = erase_sector_jedec,
12865 }, {
12866 .eraseblocks = { {64 * 1024, 8} },
12867 .block_erase = erase_block_jedec,
12868 }, {
12869 .eraseblocks = { {512 * 1024, 1} },
12870 .block_erase = erase_chip_block_jedec,
12871 }
12872 },
12873 .write = write_jedec_1,
12874 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012875 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012876 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000012877
12878 {
12879 .vendor = "PMC",
12880 .name = "Pm39LV512",
12881 .bustype = BUS_PARALLEL,
12882 .manufacture_id = PMC_ID_NOPREFIX,
12883 .model_id = PMC_PM39LV512,
12884 .total_size = 64,
12885 .page_size = 4096,
12886 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12887 .tested = TEST_OK_PREW,
12888 .probe = probe_jedec,
12889 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12890 .block_erasers =
12891 {
12892 {
12893 .eraseblocks = { {4 * 1024, 16} },
12894 .block_erase = erase_sector_jedec,
12895 }, {
12896 .eraseblocks = { {64 * 1024, 1} },
12897 .block_erase = erase_block_jedec,
12898 }, {
12899 .eraseblocks = { {64 * 1024, 1} },
12900 .block_erase = erase_chip_block_jedec,
12901 }
12902 },
12903 .write = write_jedec_1,
12904 .read = read_memmapped,
12905 .voltage = {2700, 3600},
12906 },
12907
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012908 {
12909 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012910 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012911 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012912 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012913 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012914 .total_size = 256,
12915 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012916 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012917 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012918 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012919 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000012920 .block_erasers =
12921 {
12922 {
12923 .eraseblocks = { {4 * 1024, 64} },
12924 .block_erase = erase_sector_jedec,
12925 }, {
12926 .eraseblocks = { {16 * 1024, 16} },
12927 .block_erase = erase_block_jedec,
12928 }, {
12929 .eraseblocks = { {256 * 1024, 1} },
12930 .block_erase = erase_chip_block_jedec,
12931 }
12932 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012933 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000012934 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012935 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012936 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012937 },
12938
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012939 {
12940 .vendor = "PMC",
12941 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012942 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012943 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012944 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012945 .total_size = 512,
12946 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012947 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000012948 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012949 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000012950 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012951 .block_erasers =
12952 {
12953 {
12954 .eraseblocks = { {4 * 1024, 128} },
12955 .block_erase = erase_sector_jedec,
12956 }, {
12957 .eraseblocks = { {64 * 1024, 8} },
12958 .block_erase = erase_block_jedec,
12959 }, {
12960 .eraseblocks = { {512 * 1024, 1} },
12961 .block_erase = erase_chip_block_jedec,
12962 }
12963 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012964 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000012965 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012966 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012967 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012968 },
12969
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012970 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012971 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000012972 .name = "SST25LF020A",
12973 .bustype = BUS_SPI,
12974 .manufacture_id = SST_ID,
12975 .model_id = SST_SST25VF020_REMS,
12976 .total_size = 256,
12977 .page_size = 256,
12978 .feature_bits = FEATURE_WRSR_EWSR,
12979 .tested = TEST_OK_PREW,
12980 .probe = probe_spi_rems,
12981 .probe_timing = TIMING_ZERO,
12982 .block_erasers =
12983 {
12984 {
12985 .eraseblocks = { {4 * 1024, 64} },
12986 .block_erase = spi_block_erase_20,
12987 }, {
12988 .eraseblocks = { {32 * 1024, 8} },
12989 .block_erase = spi_block_erase_52,
12990 }, {
12991 .eraseblocks = { {256 * 1024, 1} },
12992 .block_erase = spi_block_erase_60,
12993 },
12994 },
12995 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12996 .unlock = spi_disable_blockprotect,
12997 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12998 .read = spi_chip_read, /* Fast read (0x0B) supported */
12999 .voltage = {2700, 3600},
13000 },
13001
13002 {
13003 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000013004 .name = "SST25LF040A",
13005 .bustype = BUS_SPI,
13006 .manufacture_id = SST_ID,
13007 .model_id = SST_SST25VF040_REMS,
13008 .total_size = 512,
13009 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013010 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000013011 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000013012 .probe = probe_spi_res2,
13013 .probe_timing = TIMING_ZERO,
13014 .block_erasers =
13015 {
13016 {
13017 .eraseblocks = { {4 * 1024, 128} },
13018 .block_erase = spi_block_erase_20,
13019 }, {
13020 .eraseblocks = { {32 * 1024, 16} },
13021 .block_erase = spi_block_erase_52,
13022 }, {
13023 .eraseblocks = { {512 * 1024, 1} },
13024 .block_erase = spi_block_erase_60,
13025 },
13026 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013027 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013028 .unlock = spi_disable_blockprotect,
13029 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13030 .read = spi_chip_read,
13031 .voltage = {3000, 3600},
13032 },
13033
13034 {
13035 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000013036 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000013037 .bustype = BUS_SPI,
13038 .manufacture_id = SST_ID,
13039 .model_id = SST_SST25VF080_REMS,
13040 .total_size = 1024,
13041 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013042 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000013043 .tested = TEST_UNTESTED,
13044 .probe = probe_spi_res2,
13045 .probe_timing = TIMING_ZERO,
13046 .block_erasers =
13047 {
13048 {
13049 .eraseblocks = { {4 * 1024, 256} },
13050 .block_erase = spi_block_erase_20,
13051 }, {
13052 .eraseblocks = { {32 * 1024, 32} },
13053 .block_erase = spi_block_erase_52,
13054 }, {
13055 .eraseblocks = { {1024 * 1024, 1} },
13056 .block_erase = spi_block_erase_60,
13057 },
13058 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013059 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013060 .unlock = spi_disable_blockprotect,
13061 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13062 .read = spi_chip_read,
13063 .voltage = {3000, 3600},
13064 },
13065
13066 {
13067 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000013068 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013069 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000013070 .manufacture_id = SST_ID,
13071 .model_id = SST_SST25VF010_REMS,
13072 .total_size = 128,
13073 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013074 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000013075 .tested = TEST_OK_PREW,
13076 .probe = probe_spi_rems,
13077 .probe_timing = TIMING_ZERO,
13078 .block_erasers =
13079 {
13080 {
13081 .eraseblocks = { {4 * 1024, 32} },
13082 .block_erase = spi_block_erase_20,
13083 }, {
13084 .eraseblocks = { {32 * 1024, 4} },
13085 .block_erase = spi_block_erase_52,
13086 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000013087 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013088 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013089 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000013090 .eraseblocks = { {128 * 1024, 1} },
13091 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000013092 }, {
13093 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013094 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013095 },
13096 },
13097 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13098 .unlock = spi_disable_blockprotect,
13099 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000013100 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013101 .voltage = {2700, 3600},
13102 },
13103
13104 {
13105 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013106 .name = "SST25VF016B",
13107 .bustype = BUS_SPI,
13108 .manufacture_id = SST_ID,
13109 .model_id = SST_SST25VF016B,
13110 .total_size = 2048,
13111 .page_size = 256,
13112 .feature_bits = FEATURE_WRSR_EITHER,
13113 .tested = TEST_OK_PREW,
13114 .probe = probe_spi_rdid,
13115 .probe_timing = TIMING_ZERO,
13116 .block_erasers =
13117 {
13118 {
13119 .eraseblocks = { {4 * 1024, 512} },
13120 .block_erase = spi_block_erase_20,
13121 }, {
13122 .eraseblocks = { {32 * 1024, 64} },
13123 .block_erase = spi_block_erase_52,
13124 }, {
13125 .eraseblocks = { {64 * 1024, 32} },
13126 .block_erase = spi_block_erase_d8,
13127 }, {
13128 .eraseblocks = { {2 * 1024 * 1024, 1} },
13129 .block_erase = spi_block_erase_60,
13130 }, {
13131 .eraseblocks = { {2 * 1024 * 1024, 1} },
13132 .block_erase = spi_block_erase_c7,
13133 },
13134 },
13135 .printlock = spi_prettyprint_status_register_sst25vf016,
13136 .unlock = spi_disable_blockprotect,
13137 .write = spi_aai_write,
13138 .read = spi_chip_read,
13139 .voltage = {2700, 3600},
13140 },
13141
13142 {
13143 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013144 .name = "SST25VF020",
13145 .bustype = BUS_SPI,
13146 .manufacture_id = SST_ID,
13147 .model_id = SST_SST25VF020_REMS,
13148 .total_size = 256,
13149 .page_size = 256,
13150 .feature_bits = FEATURE_WRSR_EWSR,
13151 .tested = TEST_UNTESTED,
13152 .probe = probe_spi_rems,
13153 .probe_timing = TIMING_ZERO,
13154 .block_erasers =
13155 {
13156 {
13157 .eraseblocks = { {4 * 1024, 64} },
13158 .block_erase = spi_block_erase_20,
13159 }, {
13160 .eraseblocks = { {32 * 1024, 8} },
13161 .block_erase = spi_block_erase_52,
13162 }, {
13163 .eraseblocks = { {256 * 1024, 1} },
13164 .block_erase = spi_block_erase_60,
13165 },
13166 },
13167 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13168 .unlock = spi_disable_blockprotect,
13169 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13170 .read = spi_chip_read, /* only */
13171 .voltage = {2700, 3600},
13172 },
13173
13174 {
13175 .vendor = "SST",
13176 .name = "SST25VF020B",
13177 .bustype = BUS_SPI,
13178 .manufacture_id = SST_ID,
13179 .model_id = SST_SST25VF020B,
13180 .total_size = 256,
13181 .page_size = 256,
13182 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013183 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000013184 .probe = probe_spi_rdid,
13185 .probe_timing = TIMING_ZERO,
13186 .block_erasers =
13187 {
13188 {
13189 .eraseblocks = { {4 * 1024, 64} },
13190 .block_erase = spi_block_erase_20,
13191 }, {
13192 .eraseblocks = { {32 * 1024, 8} },
13193 .block_erase = spi_block_erase_52,
13194 }, {
13195 .eraseblocks = { {64 * 1024, 4} },
13196 .block_erase = spi_block_erase_d8,
13197 }, {
13198 .eraseblocks = { {256 * 1024, 1} },
13199 .block_erase = spi_block_erase_60,
13200 }, {
13201 .eraseblocks = { {256 * 1024, 1} },
13202 .block_erase = spi_block_erase_c7,
13203 },
13204 },
13205 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
13206 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
13207 .write = spi_aai_write, /* AAI supported (0xAD) */
13208 .read = spi_chip_read, /* Fast read (0x0B) supported */
13209 .voltage = {2700, 3600},
13210 },
13211
13212 {
13213 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013214 .name = "SST25VF032B",
13215 .bustype = BUS_SPI,
13216 .manufacture_id = SST_ID,
13217 .model_id = SST_SST25VF032B,
13218 .total_size = 4096,
13219 .page_size = 256,
13220 .feature_bits = FEATURE_WRSR_EWSR,
13221 .tested = TEST_OK_PREW,
13222 .probe = probe_spi_rdid,
13223 .probe_timing = TIMING_ZERO,
13224 .block_erasers =
13225 {
13226 {
13227 .eraseblocks = { {4 * 1024, 1024} },
13228 .block_erase = spi_block_erase_20,
13229 }, {
13230 .eraseblocks = { {32 * 1024, 128} },
13231 .block_erase = spi_block_erase_52,
13232 }, {
13233 .eraseblocks = { {64 * 1024, 64} },
13234 .block_erase = spi_block_erase_d8,
13235 }, {
13236 .eraseblocks = { {4 * 1024 * 1024, 1} },
13237 .block_erase = spi_block_erase_60,
13238 }, {
13239 .eraseblocks = { {4 * 1024 * 1024, 1} },
13240 .block_erase = spi_block_erase_c7,
13241 },
13242 },
13243 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13244 .unlock = spi_disable_blockprotect,
13245 .write = spi_aai_write,
13246 .read = spi_chip_read,
13247 .voltage = {2700, 3600},
13248 },
13249
13250 {
13251 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013252 .name = "SST25VF040",
13253 .bustype = BUS_SPI,
13254 .manufacture_id = SST_ID,
13255 .model_id = SST_SST25VF040_REMS,
13256 .total_size = 512,
13257 .page_size = 256,
13258 .feature_bits = FEATURE_WRSR_EWSR,
13259 .tested = TEST_OK_PR,
13260 .probe = probe_spi_rems,
13261 .probe_timing = TIMING_ZERO,
13262 .block_erasers =
13263 {
13264 {
13265 .eraseblocks = { {4 * 1024, 128} },
13266 .block_erase = spi_block_erase_20,
13267 }, {
13268 .eraseblocks = { {32 * 1024, 16} },
13269 .block_erase = spi_block_erase_52,
13270 }, {
13271 .eraseblocks = { {512 * 1024, 1} },
13272 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000013273 },
13274 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013275 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000013276 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000013277 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13278 .read = spi_chip_read,
13279 .voltage = {2700, 3600},
13280 },
13281
13282 {
13283 .vendor = "SST",
13284 .name = "SST25VF040B",
13285 .bustype = BUS_SPI,
13286 .manufacture_id = SST_ID,
13287 .model_id = SST_SST25VF040B,
13288 .total_size = 512,
13289 .page_size = 256,
13290 .feature_bits = FEATURE_WRSR_EWSR,
13291 .tested = TEST_OK_PREW,
13292 .probe = probe_spi_rdid,
13293 .probe_timing = TIMING_ZERO,
13294 .block_erasers =
13295 {
13296 {
13297 .eraseblocks = { {4 * 1024, 128} },
13298 .block_erase = spi_block_erase_20,
13299 }, {
13300 .eraseblocks = { {32 * 1024, 16} },
13301 .block_erase = spi_block_erase_52,
13302 }, {
13303 .eraseblocks = { {64 * 1024, 8} },
13304 .block_erase = spi_block_erase_d8,
13305 }, {
13306 .eraseblocks = { {512 * 1024, 1} },
13307 .block_erase = spi_block_erase_60,
13308 }, {
13309 .eraseblocks = { {512 * 1024, 1} },
13310 .block_erase = spi_block_erase_c7,
13311 },
13312 },
13313 .printlock = spi_prettyprint_status_register_sst25vf040b,
13314 .unlock = spi_disable_blockprotect,
13315 .write = spi_aai_write, /* AAI supported (0xAD) */
13316 .read = spi_chip_read, /* Fast read (0x0B) supported */
13317 .voltage = {2700, 3600},
13318 },
13319
13320 {
13321 .vendor = "SST",
13322 .name = "SST25VF040B.REMS",
13323 .bustype = BUS_SPI,
13324 .manufacture_id = SST_ID,
13325 .model_id = SST_SST25VF040B_REMS,
13326 .total_size = 512,
13327 .page_size = 256,
13328 .feature_bits = FEATURE_WRSR_EWSR,
13329 .tested = TEST_OK_PREW,
13330 .probe = probe_spi_rems,
13331 .probe_timing = TIMING_ZERO,
13332 .block_erasers =
13333 {
13334 {
13335 .eraseblocks = { {4 * 1024, 128} },
13336 .block_erase = spi_block_erase_20,
13337 }, {
13338 .eraseblocks = { {32 * 1024, 16} },
13339 .block_erase = spi_block_erase_52,
13340 }, {
13341 .eraseblocks = { {64 * 1024, 8} },
13342 .block_erase = spi_block_erase_d8,
13343 }, {
13344 .eraseblocks = { {512 * 1024, 1} },
13345 .block_erase = spi_block_erase_60,
13346 }, {
13347 .eraseblocks = { {512 * 1024, 1} },
13348 .block_erase = spi_block_erase_c7,
13349 },
13350 },
13351 .printlock = spi_prettyprint_status_register_sst25vf040b,
13352 .unlock = spi_disable_blockprotect,
13353 .write = spi_aai_write,
13354 .read = spi_chip_read,
13355 .voltage = {2700, 3600},
13356 },
13357
13358 {
13359 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013360 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000013361 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013362 .manufacture_id = SST_ID,
13363 .model_id = SST_SST25VF064C,
13364 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013365 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013366 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013367 .tested = TEST_OK_PREW,
13368 .probe = probe_spi_rdid,
13369 .probe_timing = TIMING_ZERO,
13370 .block_erasers =
13371 {
13372 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013373 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013374 .block_erase = spi_block_erase_20,
13375 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013376 .eraseblocks = { {32 * 1024, 256} },
13377 .block_erase = spi_block_erase_52,
13378 }, {
13379 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013380 .block_erase = spi_block_erase_d8,
13381 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013382 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013383 .block_erase = spi_block_erase_60,
13384 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013385 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013386 .block_erase = spi_block_erase_c7,
13387 },
13388 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013389 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13390 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013391 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013392 .read = spi_chip_read,
13393 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000013394 },
13395
13396 {
13397 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013398 .name = "SST25VF080B",
13399 .bustype = BUS_SPI,
13400 .manufacture_id = SST_ID,
13401 .model_id = SST_SST25VF080B,
13402 .total_size = 1024,
13403 .page_size = 256,
13404 .feature_bits = FEATURE_WRSR_EWSR,
13405 .tested = TEST_OK_PREW,
13406 .probe = probe_spi_rdid,
13407 .probe_timing = TIMING_ZERO,
13408 .block_erasers =
13409 {
13410 {
13411 .eraseblocks = { {4 * 1024, 256} },
13412 .block_erase = spi_block_erase_20,
13413 }, {
13414 .eraseblocks = { {32 * 1024, 32} },
13415 .block_erase = spi_block_erase_52,
13416 }, {
13417 .eraseblocks = { {64 * 1024, 16} },
13418 .block_erase = spi_block_erase_d8,
13419 }, {
13420 .eraseblocks = { {1024 * 1024, 1} },
13421 .block_erase = spi_block_erase_60,
13422 }, {
13423 .eraseblocks = { {1024 * 1024, 1} },
13424 .block_erase = spi_block_erase_c7,
13425 },
13426 },
13427 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13428 .unlock = spi_disable_blockprotect,
13429 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000013430 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013431 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000013432 },
13433
13434 {
13435 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013436 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013437 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013438 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013439 .model_id = SST_SST25VF512_REMS,
13440 .total_size = 64,
13441 .page_size = 256,
13442 .feature_bits = FEATURE_WRSR_EWSR,
13443 .tested = TEST_OK_PREW,
13444 .probe = probe_spi_rems,
13445 .probe_timing = TIMING_ZERO,
13446 .block_erasers =
13447 {
13448 {
13449 .eraseblocks = { {4 * 1024, 16} },
13450 .block_erase = spi_block_erase_20,
13451 }, {
13452 .eraseblocks = { {32 * 1024, 2} },
13453 .block_erase = spi_block_erase_52,
13454 }, {
13455 .eraseblocks = { {32 * 1024, 2} },
13456 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
13457 }, {
13458 .eraseblocks = { {64 * 1024, 1} },
13459 .block_erase = spi_block_erase_60,
13460 }, {
13461 .eraseblocks = { {64 * 1024, 1} },
13462 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
13463 },
13464 },
13465 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13466 .unlock = spi_disable_blockprotect,
13467 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13468 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
13469 .voltage = {2700, 3600},
13470 },
13471
13472 {
13473 .vendor = "SST",
13474 .name = "SST25WF010",
13475 .bustype = BUS_SPI,
13476 .manufacture_id = SST_ID,
13477 .model_id = SST_SST25WF010,
13478 .total_size = 128,
13479 .page_size = 256,
13480 .feature_bits = FEATURE_WRSR_EITHER,
13481 .tested = TEST_UNTESTED,
13482 .probe = probe_spi_rdid,
13483 .probe_timing = TIMING_ZERO,
13484 .block_erasers =
13485 {
13486 {
13487 .eraseblocks = { {4 * 1024, 32} },
13488 .block_erase = spi_block_erase_20,
13489 }, {
13490 .eraseblocks = { {32 * 1024, 4} },
13491 .block_erase = spi_block_erase_52,
13492 }, {
13493 .eraseblocks = { {1024 * 128, 1} },
13494 .block_erase = spi_block_erase_60,
13495 }, {
13496 .eraseblocks = { {1024 * 128, 1} },
13497 .block_erase = spi_block_erase_c7,
13498 },
13499 },
13500 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13501 .unlock = spi_disable_blockprotect_bp2_srwd,
13502 .write = spi_aai_write,
13503 .read = spi_chip_read, /* Fast read (0x0B) supported */
13504 .voltage = {1650, 1950},
13505 },
13506
13507 {
13508 .vendor = "SST",
13509 .name = "SST25WF020",
13510 .bustype = BUS_SPI,
13511 .manufacture_id = SST_ID,
13512 .model_id = SST_SST25WF020,
13513 .total_size = 256,
13514 .page_size = 256,
13515 .feature_bits = FEATURE_WRSR_EITHER,
13516 .tested = TEST_UNTESTED,
13517 .probe = probe_spi_rdid,
13518 .probe_timing = TIMING_ZERO,
13519 .block_erasers =
13520 {
13521 {
13522 .eraseblocks = { {4 * 1024, 64} },
13523 .block_erase = spi_block_erase_20,
13524 }, {
13525 .eraseblocks = { {32 * 1024, 8} },
13526 .block_erase = spi_block_erase_52,
13527 }, {
13528 .eraseblocks = { {64 * 1024, 4} },
13529 .block_erase = spi_block_erase_d8,
13530 }, {
13531 .eraseblocks = { {1024 * 256, 1} },
13532 .block_erase = spi_block_erase_60,
13533 }, {
13534 .eraseblocks = { {1024 * 256, 1} },
13535 .block_erase = spi_block_erase_c7,
13536 },
13537 },
13538 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13539 .unlock = spi_disable_blockprotect_bp2_srwd,
13540 .write = spi_aai_write,
13541 .read = spi_chip_read, /* Fast read (0x0B) supported */
13542 .voltage = {1650, 1950},
13543 },
13544
13545 {
13546 .vendor = "SST",
13547 .name = "SST25WF020A",
13548 .bustype = BUS_SPI,
13549 .manufacture_id = SANYO_ID, /* See flashchips.h */
13550 .model_id = SST_SST25WF020A,
13551 .total_size = 256,
13552 .page_size = 256,
13553 .feature_bits = FEATURE_WRSR_WREN,
13554 .tested = TEST_UNTESTED,
13555 .probe = probe_spi_rdid,
13556 .probe_timing = TIMING_ZERO,
13557 .block_erasers =
13558 {
13559 {
13560 .eraseblocks = { {4 * 1024, 64} },
13561 .block_erase = spi_block_erase_20,
13562 }, {
13563 .eraseblocks = { {64 * 1024, 4} },
13564 .block_erase = spi_block_erase_d8,
13565 }, {
13566 .eraseblocks = { {256 * 1024, 1} },
13567 .block_erase = spi_block_erase_60,
13568 }, {
13569 .eraseblocks = { {256 * 1024, 1} },
13570 .block_erase = spi_block_erase_c7,
13571 },
13572 },
13573 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13574 .unlock = spi_disable_blockprotect_bp2_srwd,
13575 .write = spi_chip_write_256,
13576 .read = spi_chip_read, /* Fast read (0x0B) supported */
13577 .voltage = {1650, 1950},
13578 },
13579
13580 {
13581 .vendor = "SST",
13582 .name = "SST25WF040",
13583 .bustype = BUS_SPI,
13584 .manufacture_id = SST_ID,
13585 .model_id = SST_SST25WF040,
13586 .total_size = 512,
13587 .page_size = 256,
13588 .feature_bits = FEATURE_WRSR_EITHER,
13589 .tested = TEST_UNTESTED,
13590 .probe = probe_spi_rdid,
13591 .probe_timing = TIMING_ZERO,
13592 .block_erasers =
13593 {
13594 {
13595 .eraseblocks = { {4 * 1024, 128} },
13596 .block_erase = spi_block_erase_20,
13597 }, {
13598 .eraseblocks = { {32 * 1024, 16} },
13599 .block_erase = spi_block_erase_52,
13600 }, {
13601 .eraseblocks = { {64 * 1024, 8} },
13602 .block_erase = spi_block_erase_d8,
13603 }, {
13604 .eraseblocks = { {1024 * 512, 1} },
13605 .block_erase = spi_block_erase_60,
13606 }, {
13607 .eraseblocks = { {1024 * 512, 1} },
13608 .block_erase = spi_block_erase_c7,
13609 },
13610 },
13611 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13612 .unlock = spi_disable_blockprotect_bp2_srwd,
13613 .write = spi_aai_write,
13614 .read = spi_chip_read, /* Fast read (0x0B) supported */
13615 .voltage = {1650, 1950},
13616 },
13617
13618 {
13619 .vendor = "SST",
13620 .name = "SST25WF040B",
13621 .bustype = BUS_SPI,
13622 .manufacture_id = SANYO_ID, /* See flashchips.h */
13623 .model_id = SST_SST25WF040B,
13624 .total_size = 512,
13625 .page_size = 256,
13626 .feature_bits = FEATURE_WRSR_WREN,
13627 .tested = TEST_UNTESTED,
13628 .probe = probe_spi_rdid,
13629 .probe_timing = TIMING_ZERO,
13630 .block_erasers =
13631 {
13632 {
13633 .eraseblocks = { {4 * 1024, 128} },
13634 .block_erase = spi_block_erase_20,
13635 }, {
13636 .eraseblocks = { {64 * 1024, 8} },
13637 .block_erase = spi_block_erase_d8,
13638 }, {
13639 .eraseblocks = { {512 * 1024, 1} },
13640 .block_erase = spi_block_erase_60,
13641 }, {
13642 .eraseblocks = { {512 * 1024, 1} },
13643 .block_erase = spi_block_erase_c7,
13644 },
13645 },
13646 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13647 .unlock = spi_disable_blockprotect_bp2_srwd,
13648 .write = spi_chip_write_256,
13649 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13650 .voltage = {1650, 1950},
13651 },
13652
13653 {
13654 .vendor = "SST",
13655 .name = "SST25WF080",
13656 .bustype = BUS_SPI,
13657 .manufacture_id = SST_ID,
13658 .model_id = SST_SST25WF080,
13659 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013660 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013661 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000013662 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013663 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013664 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013665 .block_erasers =
13666 {
13667 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013668 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013669 .block_erase = spi_block_erase_20,
13670 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013671 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013672 .block_erase = spi_block_erase_52,
13673 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013674 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013675 .block_erase = spi_block_erase_d8,
13676 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013677 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013678 .block_erase = spi_block_erase_60,
13679 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013680 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013681 .block_erase = spi_block_erase_c7,
13682 },
13683 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013684 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
13685 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000013686 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013687 .read = spi_chip_read, /* Fast read (0x0B) supported */
13688 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000013689 },
13690
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013691 {
13692 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013693 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013694 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013695 .manufacture_id = SANYO_ID, /* See flashchips.h */
13696 .model_id = SST_SST25WF080B,
13697 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013698 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013699 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000013700 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013701 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013702 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013703 .block_erasers =
13704 {
13705 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013706 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013707 .block_erase = spi_block_erase_20,
13708 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013709 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013710 .block_erase = spi_block_erase_d8,
13711 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013712 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013713 .block_erase = spi_block_erase_60,
13714 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013715 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013716 .block_erase = spi_block_erase_c7,
13717 },
13718 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013719 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13720 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000013721 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013722 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13723 .voltage = {1650, 1950},
13724 },
13725
13726 {
13727 .vendor = "SST",
13728 .name = "SST25WF512",
13729 .bustype = BUS_SPI,
13730 .manufacture_id = SST_ID,
13731 .model_id = SST_SST25WF512,
13732 .total_size = 64,
13733 .page_size = 256,
13734 .feature_bits = FEATURE_WRSR_EITHER,
13735 .tested = TEST_UNTESTED,
13736 .probe = probe_spi_rdid,
13737 .probe_timing = TIMING_ZERO,
13738 .block_erasers =
13739 {
13740 {
13741 .eraseblocks = { {4 * 1024, 16} },
13742 .block_erase = spi_block_erase_20,
13743 }, {
13744 .eraseblocks = { {32 * 1024, 2} },
13745 .block_erase = spi_block_erase_52,
13746 }, {
13747 .eraseblocks = { {1024 * 64, 1} },
13748 .block_erase = spi_block_erase_60,
13749 }, {
13750 .eraseblocks = { {1024 * 64, 1} },
13751 .block_erase = spi_block_erase_c7,
13752 },
13753 },
13754 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13755 .unlock = spi_disable_blockprotect_bp2_srwd,
13756 .write = spi_aai_write,
13757 .read = spi_chip_read, /* Fast read (0x0B) supported */
13758 .voltage = {1650, 1950},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013759 },
13760
13761 {
13762 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070013763 .name = "SST26VF016B(A)",
13764 .bustype = BUS_SPI,
13765 .manufacture_id = SST_ID,
13766 .model_id = SST_SST26VF016B,
13767 .total_size = 2048,
13768 .page_size = 256,
13769 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13770 .tested = TEST_OK_PREW,
13771 .probe = probe_spi_rdid,
13772 .probe_timing = TIMING_ZERO,
13773 .block_erasers =
13774 {
13775 {
13776 .eraseblocks = { {4 * 1024, 512} },
13777 .block_erase = spi_block_erase_20,
13778 }, {
13779 .eraseblocks = {
13780 {8 * 1024, 4},
13781 {32 * 1024, 1},
13782 {64 * 1024, 30},
13783 {32 * 1024, 1},
13784 {8 * 1024, 4},
13785 },
13786 .block_erase = spi_block_erase_d8,
13787 }, {
13788 .eraseblocks = { {2 * 1024 * 1024, 1} },
13789 .block_erase = spi_block_erase_c7,
13790 },
13791 },
13792 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13793 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13794 .write = spi_chip_write_256, /* Multi I/O supported */
13795 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13796 .voltage = {2700, 3600},
13797 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100013798
Wei Hu25584de2018-04-30 14:02:08 -070013799 {
13800 .vendor = "SST",
13801 .name = "SST26VF032B(A)",
13802 .bustype = BUS_SPI,
13803 .manufacture_id = SST_ID,
13804 .model_id = SST_SST26VF032B,
13805 .total_size = 4096,
13806 .page_size = 256,
13807 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13808 .tested = TEST_UNTESTED,
13809 .probe = probe_spi_rdid,
13810 .probe_timing = TIMING_ZERO,
13811 .block_erasers =
13812 {
13813 {
13814 .eraseblocks = { {4 * 1024, 1024} },
13815 .block_erase = spi_block_erase_20,
13816 }, {
13817 .eraseblocks = {
13818 {8 * 1024, 4},
13819 {32 * 1024, 1},
13820 {64 * 1024, 62},
13821 {32 * 1024, 1},
13822 {8 * 1024, 4},
13823 },
13824 .block_erase = spi_block_erase_d8,
13825 }, {
13826 .eraseblocks = { {4 * 1024 * 1024, 1} },
13827 .block_erase = spi_block_erase_c7,
13828 },
13829 },
13830 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13831 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13832 .write = spi_chip_write_256, /* Multi I/O supported */
13833 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13834 .voltage = {2700, 3600},
13835 },
13836
Wei Hu25584de2018-04-30 14:02:08 -070013837 {
13838 .vendor = "SST",
13839 .name = "SST26VF064B(A)",
13840 .bustype = BUS_SPI,
13841 .manufacture_id = SST_ID,
13842 .model_id = SST_SST26VF064B,
13843 .total_size = 8192,
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, 2048} },
13853 .block_erase = spi_block_erase_20,
13854 }, {
13855 .eraseblocks = {
13856 {8 * 1024, 4},
13857 {32 * 1024, 1},
13858 {64 * 1024, 126},
13859 {32 * 1024, 1},
13860 {8 * 1024, 4},
13861 },
13862 .block_erase = spi_block_erase_d8,
13863 }, {
13864 .eraseblocks = { {8 * 1024 * 1024, 1} },
13865 .block_erase = spi_block_erase_c7,
13866 },
13867 },
13868 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13869 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13870 .write = spi_chip_write_256, /* Multi I/O supported */
13871 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13872 .voltage = {2700, 3600},
13873 },
13874
13875 {
13876 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013877 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013878 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013879 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013880 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013881 .total_size = 512,
13882 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000013883 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013884 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013885 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013886 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013887 .block_erasers =
13888 {
13889 {
13890 .eraseblocks = { {128, 4096} },
13891 .block_erase = erase_sector_28sf040,
13892 }, {
13893 .eraseblocks = { {512 * 1024, 1} },
13894 .block_erase = erase_chip_28sf040,
13895 }
13896 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013897 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013898 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013899 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013900 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013901 },
13902
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013903 {
13904 .vendor = "SST",
13905 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013906 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013907 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013908 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013909 .total_size = 128,
13910 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013911 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013912 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013913 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013914 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013915 .block_erasers =
13916 {
13917 {
13918 .eraseblocks = { {128 * 1024, 1} },
13919 .block_erase = erase_chip_block_jedec,
13920 }
13921 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013922 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013923 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013924 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013925 },
13926
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013927 {
13928 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013929 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013930 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013931 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013932 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013933 .total_size = 256,
13934 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013935 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013936 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013937 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013938 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013939 .block_erasers =
13940 {
13941 {
13942 .eraseblocks = { {256 * 1024, 1} },
13943 .block_erase = erase_chip_block_jedec,
13944 }
13945 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013946 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013947 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013948 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013949 },
13950
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013951 {
13952 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013953 .name = "SST29LE010",
13954 .bustype = BUS_PARALLEL,
13955 .manufacture_id = SST_ID,
13956 .model_id = SST_SST29LE010,
13957 .total_size = 128,
13958 .page_size = 128,
13959 .feature_bits = FEATURE_LONG_RESET,
13960 .tested = TEST_UNTESTED,
13961 .probe = probe_jedec,
13962 .probe_timing = 10,
13963 .block_erasers =
13964 {
13965 {
13966 .eraseblocks = { {128 * 1024, 1} },
13967 .block_erase = erase_chip_block_jedec,
13968 }
13969 },
13970 .write = write_jedec,
13971 .read = read_memmapped,
13972 .voltage = {3000, 3600},
13973 },
13974
13975 {
13976 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013977 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013978 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013979 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013980 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013981 .total_size = 256,
13982 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013983 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013984 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013985 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013986 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013987 .block_erasers =
13988 {
13989 {
13990 .eraseblocks = { {256 * 1024, 1} },
13991 .block_erase = erase_chip_block_jedec,
13992 }
13993 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013994 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013995 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013996 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013997 },
13998
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013999 {
14000 .vendor = "SST",
14001 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014002 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014003 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014004 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014005 .total_size = 128,
14006 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014007 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014008 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014009 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014010 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014011 .block_erasers =
14012 {
14013 {
14014 .eraseblocks = { {4 * 1024, 32} },
14015 .block_erase = erase_sector_jedec,
14016 }, {
14017 .eraseblocks = { {128 * 1024, 1} },
14018 .block_erase = erase_chip_block_jedec,
14019 }
14020 },
Sean Nelson35727f72010-01-28 23:55:12 +000014021 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014022 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014023 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014024 },
14025
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014026 {
14027 .vendor = "SST",
14028 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014029 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014030 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014031 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014032 .total_size = 256,
14033 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014034 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000014035 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014036 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014037 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014038 .block_erasers =
14039 {
14040 {
14041 .eraseblocks = { {4 * 1024, 64} },
14042 .block_erase = erase_sector_jedec,
14043 }, {
14044 .eraseblocks = { {256 * 1024, 1} },
14045 .block_erase = erase_chip_block_jedec,
14046 }
14047 },
Sean Nelson35727f72010-01-28 23:55:12 +000014048 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014049 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014050 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014051 },
14052
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014053 {
14054 .vendor = "SST",
14055 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014056 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014057 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014058 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014059 .total_size = 512,
14060 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014061 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000014062 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014063 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014064 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014065 .block_erasers =
14066 {
14067 {
14068 .eraseblocks = { {4 * 1024, 128} },
14069 .block_erase = erase_sector_jedec,
14070 }, {
14071 .eraseblocks = { {512 * 1024, 1} },
14072 .block_erase = erase_chip_block_jedec,
14073 }
14074 },
Sean Nelson35727f72010-01-28 23:55:12 +000014075 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014076 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014077 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014078 },
14079
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014080 {
14081 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014082 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014083 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014084 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014085 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014086 .total_size = 64,
14087 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014088 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000014089 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014090 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014091 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014092 .block_erasers =
14093 {
14094 {
14095 .eraseblocks = { {4 * 1024, 16} },
14096 .block_erase = erase_sector_jedec,
14097 }, {
14098 .eraseblocks = { {64 * 1024, 1} },
14099 .block_erase = erase_chip_block_jedec,
14100 }
14101 },
Sean Nelson35727f72010-01-28 23:55:12 +000014102 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014103 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014104 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014105 },
14106
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014107 {
14108 .vendor = "SST",
14109 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014110 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014111 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014112 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014113 .total_size = 128,
14114 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014115 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000014116 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014117 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014118 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014119 .block_erasers =
14120 {
14121 {
14122 .eraseblocks = { {4 * 1024, 32} },
14123 .block_erase = erase_sector_jedec,
14124 }, {
14125 .eraseblocks = { {128 * 1024, 1} },
14126 .block_erase = erase_chip_block_jedec,
14127 }
14128 },
Sean Nelson35727f72010-01-28 23:55:12 +000014129 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014130 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014131 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014132 },
14133
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014134 {
14135 .vendor = "SST",
14136 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014137 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014138 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014139 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014140 .total_size = 256,
14141 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014142 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000014143 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014144 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014145 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014146 .block_erasers =
14147 {
14148 {
14149 .eraseblocks = { {4 * 1024, 64} },
14150 .block_erase = erase_sector_jedec,
14151 }, {
14152 .eraseblocks = { {256 * 1024, 1} },
14153 .block_erase = erase_chip_block_jedec,
14154 }
14155 },
Sean Nelson35727f72010-01-28 23:55:12 +000014156 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014157 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014158 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014159 },
14160
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014161 {
14162 .vendor = "SST",
14163 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014164 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014165 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014166 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014167 .total_size = 512,
14168 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014169 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014170 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014171 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014172 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014173 .block_erasers =
14174 {
14175 {
14176 .eraseblocks = { {4 * 1024, 128} },
14177 .block_erase = erase_sector_jedec,
14178 }, {
14179 .eraseblocks = { {512 * 1024, 1} },
14180 .block_erase = erase_chip_block_jedec,
14181 }
14182 },
Sean Nelson35727f72010-01-28 23:55:12 +000014183 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014184 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014185 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000014186 },
FENG yu ningff692fb2008-12-08 18:15:10 +000014187
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014188 {
14189 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000014190 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014191 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014192 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014193 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000014194 .total_size = 1024,
14195 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014196 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000014197 .tested = TEST_UNTESTED,
14198 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014199 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014200 .block_erasers =
14201 {
14202 {
14203 .eraseblocks = { {4 * 1024, 256} },
14204 .block_erase = erase_sector_jedec,
14205 }, {
14206 .eraseblocks = { {64 * 1024, 16} },
14207 .block_erase = erase_block_jedec,
14208 }, {
14209 .eraseblocks = { {1024 * 1024, 1} },
14210 .block_erase = erase_chip_block_jedec,
14211 }
14212 },
Sean Nelson35727f72010-01-28 23:55:12 +000014213 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014214 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014215 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000014216 },
14217
14218 {
14219 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014220 .name = "SST39VF512",
14221 .bustype = BUS_PARALLEL,
14222 .manufacture_id = SST_ID,
14223 .model_id = SST_SST39VF512,
14224 .total_size = 64,
14225 .page_size = 4096,
14226 .feature_bits = FEATURE_EITHER_RESET,
14227 .tested = TEST_OK_PREW,
14228 .probe = probe_jedec,
14229 .probe_timing = 1, /* 150 ns */
14230 .block_erasers =
14231 {
14232 {
14233 .eraseblocks = { {4 * 1024, 16} },
14234 .block_erase = erase_sector_jedec,
14235 }, {
14236 .eraseblocks = { {64 * 1024, 1} },
14237 .block_erase = erase_chip_block_jedec,
14238 }
14239 },
14240 .write = write_jedec_1,
14241 .read = read_memmapped,
14242 .voltage = {2700, 3600},
14243 },
14244
14245 {
14246 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014247 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014248 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014249 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014250 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014251 .total_size = 256,
14252 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014253 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014254 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014255 .probe = probe_jedec,
14256 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014257 .block_erasers =
14258 {
14259 {
14260 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014261 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014262 }, {
14263 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014264 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014265 }, {
14266 .eraseblocks = { {256 * 1024, 1} },
14267 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14268 }
14269 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014270 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014271 .unlock = unlock_sst_fwhub,
14272 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014273 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014274 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014275 },
14276
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014277 {
14278 .vendor = "SST",
14279 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014280 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014281 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014282 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014283 .total_size = 384,
14284 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014285 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000014286 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014287 .probe = probe_jedec,
14288 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014289 .block_erasers =
14290 {
14291 {
14292 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014293 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014294 }, {
14295 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014296 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014297 }, {
14298 .eraseblocks = { {384 * 1024, 1} },
14299 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14300 }
14301 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014302 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014303 .unlock = unlock_sst_fwhub,
14304 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014305 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014306 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014307 },
14308
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014309 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014310 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
14311 * and is only honored for 64k block erase, but not 4k sector erase.
14312 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014313 .vendor = "SST",
14314 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014315 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014316 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014317 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014318 .total_size = 512,
14319 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014320 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014321 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014322 .probe = probe_jedec,
14323 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014324 .block_erasers =
14325 {
14326 {
14327 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014328 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014329 }, {
14330 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014331 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014332 }, {
14333 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000014334 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014335 },
14336 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014337 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014338 .unlock = unlock_sst_fwhub,
14339 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014340 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014341 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014342 },
14343
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014344 {
14345 .vendor = "SST",
14346 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014347 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014348 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014349 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014350 .total_size = 512,
14351 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014352 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014353 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014354 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014355 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014356 .block_erasers =
14357 {
14358 {
14359 .eraseblocks = { {4 * 1024, 128} },
14360 .block_erase = erase_sector_49lfxxxc,
14361 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014362 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014363 {64 * 1024, 7},
14364 {32 * 1024, 1},
14365 {8 * 1024, 2},
14366 {16 * 1024, 1},
14367 },
Sean Nelson69e58112010-03-23 17:10:28 +000014368 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014369 }
14370 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014371 .printlock = printlock_regspace2_block_eraser_1,
14372 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014373 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014374 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014375 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014376 },
14377
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014378 {
14379 .vendor = "SST",
14380 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014381 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014382 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014383 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014384 .total_size = 1024,
14385 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014386 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014387 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014388 .probe = probe_jedec,
14389 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014390 .block_erasers =
14391 {
14392 {
14393 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014394 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014395 }, {
14396 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014397 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014398 }, {
14399 .eraseblocks = { {1024 * 1024, 1} },
14400 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14401 }
14402 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014403 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014404 .unlock = unlock_sst_fwhub,
14405 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014406 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014407 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014408 },
14409
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014410 {
14411 .vendor = "SST",
14412 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014413 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014414 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014415 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014416 .total_size = 1024,
14417 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014418 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014419 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014420 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014421 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014422 .block_erasers =
14423 {
14424 {
14425 .eraseblocks = { {4 * 1024, 256} },
14426 .block_erase = erase_sector_49lfxxxc,
14427 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014428 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014429 {64 * 1024, 15},
14430 {32 * 1024, 1},
14431 {8 * 1024, 2},
14432 {16 * 1024, 1},
14433 },
Sean Nelson69e58112010-03-23 17:10:28 +000014434 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014435 }
14436 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014437 .printlock = printlock_regspace2_block_eraser_1,
14438 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014439 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014440 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014441 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014442 },
14443
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014444 {
14445 .vendor = "SST",
14446 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014447 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014448 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014449 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014450 .total_size = 2048,
14451 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014452 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014453 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014454 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014455 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014456 .block_erasers =
14457 {
14458 {
14459 .eraseblocks = { {4 * 1024, 512} },
14460 .block_erase = erase_sector_49lfxxxc,
14461 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014462 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014463 {64 * 1024, 31},
14464 {32 * 1024, 1},
14465 {8 * 1024, 2},
14466 {16 * 1024, 1},
14467 },
Sean Nelson69e58112010-03-23 17:10:28 +000014468 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014469 }
14470 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014471 .printlock = printlock_regspace2_block_eraser_1,
14472 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014473 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014474 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014475 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014476 },
14477
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014478 {
14479 .vendor = "SST",
14480 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014481 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014482 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014483 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014484 .total_size = 256,
14485 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014486 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000014487 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014488 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014489 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014490 .block_erasers =
14491 {
14492 {
14493 .eraseblocks = { {4 * 1024, 64} },
14494 .block_erase = erase_sector_jedec,
14495 }, {
14496 .eraseblocks = { {16 * 1024, 16} },
14497 .block_erase = erase_block_jedec,
14498 }, {
14499 .eraseblocks = { {256 * 1024, 1} },
14500 .block_erase = NULL,
14501 }
14502 },
Sean Nelson35727f72010-01-28 23:55:12 +000014503 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014504 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014505 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000014506 },
14507
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014508 {
14509 .vendor = "SST",
14510 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014511 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014512 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014513 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014514 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000014515 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014516 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014517 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014518 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014519 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014520 .block_erasers =
14521 {
14522 {
14523 .eraseblocks = { {4 * 1024, 64} },
14524 .block_erase = erase_sector_jedec,
14525 }, {
14526 .eraseblocks = { {16 * 1024, 16} },
14527 .block_erase = erase_block_jedec,
14528 }, {
14529 .eraseblocks = { {256 * 1024, 1} },
14530 .block_erase = NULL,
14531 }
14532 },
Sean Nelson35727f72010-01-28 23:55:12 +000014533 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014534 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014535 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014536 },
14537
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014538 {
14539 .vendor = "SST",
14540 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014541 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014542 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014543 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014544 .total_size = 512,
14545 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014546 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014547 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014548 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014549 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014550 .block_erasers =
14551 {
14552 {
14553 .eraseblocks = { {4 * 1024, 128} },
14554 .block_erase = erase_sector_jedec,
14555 }, {
14556 .eraseblocks = { {64 * 1024, 8} },
14557 .block_erase = erase_block_jedec,
14558 }, {
14559 .eraseblocks = { {512 * 1024, 1} },
14560 .block_erase = NULL,
14561 }
14562 },
Sean Nelson35727f72010-01-28 23:55:12 +000014563 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014564 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014565 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014566 },
14567
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014568 {
14569 .vendor = "SST",
14570 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014571 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014572 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014573 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014574 .total_size = 512,
14575 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000014576 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014577 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014578 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014579 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014580 .block_erasers =
14581 {
14582 {
14583 .eraseblocks = { {4 * 1024, 128} },
14584 .block_erase = erase_sector_jedec,
14585 }, {
14586 .eraseblocks = { {64 * 1024, 8} },
14587 .block_erase = erase_block_jedec,
14588 }, {
14589 .eraseblocks = { {512 * 1024, 1} },
14590 .block_erase = NULL,
14591 }
14592 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014593 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014594 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014595 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014596 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014597 },
14598
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014599 {
14600 .vendor = "SST",
14601 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014602 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014603 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020014604 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014605 .total_size = 1024,
14606 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014607 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000014608 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014609 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014610 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014611 .block_erasers =
14612 {
14613 {
14614 .eraseblocks = { {4 * 1024, 256} },
14615 .block_erase = erase_sector_jedec,
14616 }, {
14617 .eraseblocks = { {64 * 1024, 16} },
14618 .block_erase = erase_block_jedec,
14619 }, {
14620 .eraseblocks = { {1024 * 1024, 1} },
14621 .block_erase = NULL,
14622 }
14623 },
Sean Nelson35727f72010-01-28 23:55:12 +000014624 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014625 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014626 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014627 },
14628
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014629 {
14630 .vendor = "SST",
14631 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014632 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014633 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014634 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014635 .total_size = 2048,
14636 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014637 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014638 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014639 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014640 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014641 .block_erasers =
14642 {
14643 {
14644 .eraseblocks = { {4 * 1024, 512} },
14645 .block_erase = erase_sector_49lfxxxc,
14646 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014647 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014648 {64 * 1024, 31},
14649 {32 * 1024, 1},
14650 {8 * 1024, 2},
14651 {16 * 1024, 1},
14652 },
Sean Nelson69e58112010-03-23 17:10:28 +000014653 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014654 }
14655 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014656 .printlock = printlock_regspace2_block_eraser_1,
14657 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014658 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014659 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014660 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014661 },
14662
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014663 {
14664 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014665 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014666 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014667 .manufacture_id = ST_ID,
14668 .model_id = ST_M29F002B,
14669 .total_size = 256,
14670 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014671 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014672 .tested = TEST_UNTESTED,
14673 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014674 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014675 .block_erasers =
14676 {
14677 {
14678 .eraseblocks = {
14679 {16 * 1024, 1},
14680 {8 * 1024, 2},
14681 {32 * 1024, 1},
14682 {64 * 1024, 3},
14683 },
14684 .block_erase = erase_sector_jedec,
14685 }, {
14686 .eraseblocks = { {256 * 1024, 1} },
14687 .block_erase = erase_chip_block_jedec,
14688 }
14689 },
Sean Nelson35727f72010-01-28 23:55:12 +000014690 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014691 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014692 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014693 },
14694
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014695 {
14696 .vendor = "ST",
14697 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014698 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014699 .manufacture_id = ST_ID,
14700 .model_id = ST_M29F002T,
14701 .total_size = 256,
14702 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014703 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014704 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014705 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014706 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014707 .block_erasers =
14708 {
14709 {
14710 .eraseblocks = {
14711 {64 * 1024, 3},
14712 {32 * 1024, 1},
14713 {8 * 1024, 2},
14714 {16 * 1024, 1},
14715 },
14716 .block_erase = erase_sector_jedec,
14717 }, {
14718 .eraseblocks = { {256 * 1024, 1} },
14719 .block_erase = erase_chip_block_jedec,
14720 }
14721 },
Sean Nelson35727f72010-01-28 23:55:12 +000014722 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014723 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014724 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014725 },
14726
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014727 {
14728 .vendor = "ST",
14729 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014730 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014731 .manufacture_id = ST_ID,
14732 .model_id = ST_M29F040B,
14733 .total_size = 512,
14734 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014735 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
14736 .tested = TEST_UNTESTED,
14737 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000014738 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000014739 .block_erasers =
14740 {
14741 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014742 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000014743 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014744 }, {
14745 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000014746 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014747 }
14748 },
Sean Nelson35727f72010-01-28 23:55:12 +000014749 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014750 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014751 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014752 },
14753
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014754 {
Sean Nelson35727f72010-01-28 23:55:12 +000014755 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014756 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014757 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014758 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014759 .manufacture_id = ST_ID,
14760 .model_id = ST_M29F400BB,
14761 .total_size = 512,
14762 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014763 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014764 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014765 .probe = probe_jedec,
14766 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014767 .block_erasers =
14768 {
14769 {
14770 .eraseblocks = {
14771 {16 * 1024, 1},
14772 {8 * 1024, 2},
14773 {32 * 1024, 1},
14774 {64 * 1024, 7},
14775 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014776 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014777 }, {
14778 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014779 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014780 }
14781 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014782 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014783 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014784 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014785 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100014786
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014787 {
14788 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
14789 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014790 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014791 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014792 .manufacture_id = ST_ID,
14793 .model_id = ST_M29F400BT,
14794 .total_size = 512,
14795 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014796 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014797 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014798 .probe = probe_jedec,
14799 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000014800 .block_erasers =
14801 {
14802 {
14803 .eraseblocks = {
14804 {64 * 1024, 7},
14805 {32 * 1024, 1},
14806 {8 * 1024, 2},
14807 {16 * 1024, 1},
14808 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014809 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014810 }, {
14811 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014812 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014813 }
14814 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014815 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014816 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014817 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014818 },
14819
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014820 {
14821 .vendor = "ST",
14822 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014823 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014824 .manufacture_id = ST_ID,
14825 .model_id = ST_M29W010B,
14826 .total_size = 128,
14827 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014828 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014829 .tested = TEST_UNTESTED,
14830 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014831 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014832 .block_erasers =
14833 {
14834 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014835 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014836 .block_erase = erase_sector_jedec,
14837 }, {
14838 .eraseblocks = { {128 * 1024, 1} },
14839 .block_erase = erase_chip_block_jedec,
14840 }
14841 },
Sean Nelson35727f72010-01-28 23:55:12 +000014842 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014843 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014844 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014845 },
14846
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014847 {
14848 .vendor = "ST",
14849 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014850 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014851 .manufacture_id = ST_ID,
14852 .model_id = ST_M29W040B,
14853 .total_size = 512,
14854 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014855 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014856 .tested = TEST_UNTESTED,
14857 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014858 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014859 .block_erasers =
14860 {
14861 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014862 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014863 .block_erase = erase_sector_jedec,
14864 }, {
14865 .eraseblocks = { {512 * 1024, 1} },
14866 .block_erase = erase_chip_block_jedec,
14867 }
14868 },
Sean Nelson35727f72010-01-28 23:55:12 +000014869 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014870 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014871 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014872 },
14873
Stefan Taunereb582572012-09-21 12:52:50 +000014874 {
14875 .vendor = "ST",
14876 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014877 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100014878 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000014879 .model_id = ST_M29W512B,
14880 .total_size = 64,
14881 .page_size = 64 * 1024,
14882 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014883 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000014884 .probe = probe_jedec,
14885 .probe_timing = TIMING_ZERO,
14886 .block_erasers =
14887 {
14888 {
14889 .eraseblocks = { {64 * 1024, 1} },
14890 .block_erase = erase_chip_block_jedec,
14891 }
14892 },
14893 .write = write_jedec_1,
14894 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014895 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000014896 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000014897
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014898 {
14899 .vendor = "ST",
14900 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014901 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014902 .manufacture_id = ST_ID,
14903 .model_id = ST_M50FLW040A,
14904 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014905 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014906 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014907 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014908 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014909 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014910 .block_erasers =
14911 {
14912 {
Sean Nelson329bde72010-01-19 16:39:19 +000014913 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014914 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014915 {64 * 1024, 5}, /* block */
14916 {4 * 1024, 16}, /* sector */
14917 {4 * 1024, 16}, /* sector */
14918 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014919 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014920 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014921 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014922 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014923 }
14924 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014925 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100014926 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014927 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014928 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014929 },
14930
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014931 {
14932 .vendor = "ST",
14933 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014934 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014935 .manufacture_id = ST_ID,
14936 .model_id = ST_M50FLW040B,
14937 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014938 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014939 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014940 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014941 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014942 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014943 .block_erasers =
14944 {
14945 {
Sean Nelson329bde72010-01-19 16:39:19 +000014946 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014947 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014948 {4 * 1024, 16}, /* sector */
14949 {64 * 1024, 5}, /* block */
14950 {4 * 1024, 16}, /* sector */
14951 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014952 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014953 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014954 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014955 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014956 }
14957 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014958 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100014959 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014960 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014961 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014962 },
14963
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014964 {
14965 .vendor = "ST",
14966 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014967 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014968 .manufacture_id = ST_ID,
14969 .model_id = ST_M50FLW080A,
14970 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014971 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014972 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014973 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014974 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014975 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014976 .block_erasers =
14977 {
14978 {
Sean Nelson329bde72010-01-19 16:39:19 +000014979 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014980 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014981 {64 * 1024, 13}, /* block */
14982 {4 * 1024, 16}, /* sector */
14983 {4 * 1024, 16}, /* sector */
14984 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014985 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014986 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014987 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014988 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014989 }
14990 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014991 .printlock = printlock_regspace2_block_eraser_0,
14992 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014993 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014994 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014995 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014996 },
14997
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014998 {
14999 .vendor = "ST",
15000 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015001 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015002 .manufacture_id = ST_ID,
15003 .model_id = ST_M50FLW080B,
15004 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015005 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015006 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015007 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015008 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015009 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015010 .block_erasers =
15011 {
15012 {
Sean Nelson329bde72010-01-19 16:39:19 +000015013 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015014 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015015 {4 * 1024, 16}, /* sector */
15016 {64 * 1024, 13}, /* block */
15017 {4 * 1024, 16}, /* sector */
15018 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015019 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015020 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015021 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015022 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015023 }
15024 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015025 .printlock = printlock_regspace2_block_eraser_0,
15026 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015027 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015028 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015029 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015030 },
15031
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015032 {
15033 .vendor = "ST",
15034 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015035 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015036 .manufacture_id = ST_ID,
15037 .model_id = ST_M50FW002,
15038 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000015039 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015040 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015041 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015042 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015043 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015044 .block_erasers =
15045 {
15046 {
15047 .eraseblocks = {
15048 {64 * 1024, 3},
15049 {32 * 1024, 1},
15050 {8 * 1024, 2},
15051 {16 * 1024, 1},
15052 },
Sean Nelson28accc22010-03-19 18:47:06 +000015053 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015054 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000015055 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015056 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000015057 }
15058 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015059 .printlock = printlock_regspace2_block_eraser_0,
15060 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015061 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015062 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015063 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015064 },
15065
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015066 {
15067 .vendor = "ST",
15068 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015069 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015070 .manufacture_id = ST_ID,
15071 .model_id = ST_M50FW016,
15072 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015073 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015074 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015075 .tested = TEST_UNTESTED,
15076 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015077 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015078 .block_erasers =
15079 {
15080 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015081 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000015082 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015083 }
15084 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015085 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015086 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015087 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015088 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015089 },
15090
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015091 {
15092 .vendor = "ST",
15093 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015094 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015095 .manufacture_id = ST_ID,
15096 .model_id = ST_M50FW040,
15097 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015098 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015099 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000015100 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015101 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015102 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015103 .block_erasers =
15104 {
15105 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015106 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015107 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015108 }
15109 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015110 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015111 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015112 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015113 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015114 },
15115
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015116 {
15117 .vendor = "ST",
15118 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015119 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015120 .manufacture_id = ST_ID,
15121 .model_id = ST_M50FW080,
15122 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015123 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015124 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015125 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015126 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015127 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015128 .block_erasers =
15129 {
15130 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015131 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015132 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015133 }
15134 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015135 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015136 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015137 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015138 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015139 },
15140
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015141 {
15142 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015143 .name = "M50LPW080",
15144 .bustype = BUS_LPC, /* A/A Mux */
15145 .manufacture_id = ST_ID,
15146 .model_id = ST_M50LPW080,
15147 .total_size = 1024,
15148 .page_size = 0,
15149 .feature_bits = FEATURE_REGISTERMAP,
15150 .tested = TEST_UNTESTED,
15151 .probe = probe_82802ab,
15152 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15153 .block_erasers =
15154 {
15155 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015156 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015157 .block_erase = erase_block_82802ab,
15158 }
15159 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015160 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015161 .write = write_82802ab,
15162 .read = read_memmapped,
15163 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
15164 },
15165
15166 {
15167 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015168 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015169 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015170 .manufacture_id = ST_ID,
15171 .model_id = ST_M50LPW116,
15172 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015173 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015174 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015175 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015176 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000015177 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015178 .block_erasers =
15179 {
15180 {
15181 .eraseblocks = {
15182 {4 * 1024, 16},
15183 {64 * 1024, 30},
15184 {32 * 1024, 1},
15185 {8 * 1024, 2},
15186 {16 * 1024, 1},
15187 },
Sean Nelson28accc22010-03-19 18:47:06 +000015188 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015189 }
15190 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015191 .printlock = printlock_regspace2_block_eraser_0,
15192 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015193 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015194 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015195 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015196 },
15197
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015198 {
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030015199 .vendor = "ST",
15200 .name = "M95M02",
15201 .bustype = BUS_SPI,
15202 .manufacture_id = ST_ID,
15203 .model_id = ST_M95M02,
15204 .total_size = 256,
15205 .page_size = 256,
15206 .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO,
15207 .tested = TEST_OK_PREW,
15208 .probe = probe_spi_st95,
15209 .probe_timing = TIMING_ZERO,
15210 .block_erasers =
15211 {
15212 {
15213 .eraseblocks = { {256 * 1024, 1} },
15214 .block_erase = spi_block_erase_emulation,
15215 }
15216 },
15217
15218 .printlock = spi_prettyprint_status_register_bp1_srwd,
15219 .unlock = spi_disable_blockprotect_bp1_srwd,
15220 .write = spi_chip_write_256,
15221 .read = spi_chip_read,
15222 .voltage = {2500, 5500},
15223 },
15224
15225 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100015226 .vendor = "Sanyo",
15227 .name = "LE25FU106B",
15228 .bustype = BUS_SPI,
15229 .manufacture_id = SANYO_ID,
15230 .model_id = SANYO_LE25FU106B,
15231 .total_size = 128,
15232 .page_size = 256,
15233 .feature_bits = FEATURE_WRSR_WREN,
15234 .tested = TEST_UNTESTED,
15235 .probe = probe_spi_res2,
15236 .probe_timing = TIMING_ZERO,
15237 .block_erasers =
15238 {
15239 /* FIXME: Is this correct?
15240 {
15241 .eraseblocks = { {2 * 1024, 64} },
15242 .block_erase = spi_block_erase_d7,
15243 },*/
15244 {
15245 .eraseblocks = { {32 * 1024, 4} },
15246 .block_erase = spi_block_erase_d8,
15247 }, {
15248 .eraseblocks = { {128 * 1024, 1} },
15249 .block_erase = spi_block_erase_c7,
15250 }
15251 },
15252 .printlock = spi_prettyprint_status_register_bp1_srwd,
15253 .unlock = spi_disable_blockprotect_bp1_srwd,
15254 .write = spi_chip_write_256,
15255 .read = spi_chip_read,
15256 .voltage = {2300, 3600},
15257 },
15258
15259 {
15260 .vendor = "Sanyo",
15261 .name = "LE25FU206",
15262 .bustype = BUS_SPI,
15263 .manufacture_id = SANYO_ID,
15264 .model_id = SANYO_LE25FU206,
15265 .total_size = 256,
15266 .page_size = 256,
15267 .feature_bits = FEATURE_WRSR_WREN,
15268 .tested = TEST_UNTESTED,
15269 .probe = probe_spi_res2,
15270 .probe_timing = TIMING_ZERO,
15271 .block_erasers =
15272 {
15273 {
15274 .eraseblocks = { {4 * 1024, 64} },
15275 .block_erase = spi_block_erase_d7,
15276 }, {
15277 .eraseblocks = { {64 * 1024, 4} },
15278 .block_erase = spi_block_erase_d8,
15279 }, {
15280 .eraseblocks = { {256 * 1024, 1} },
15281 .block_erase = spi_block_erase_c7,
15282 }
15283 },
15284 .printlock = spi_prettyprint_status_register_bp1_srwd,
15285 .unlock = spi_disable_blockprotect_bp1_srwd,
15286 .write = spi_chip_write_256,
15287 .read = spi_chip_read,
15288 .voltage = {2300, 3600},
15289 },
15290
15291 {
15292 .vendor = "Sanyo",
15293 .name = "LE25FU206A",
15294 .bustype = BUS_SPI,
15295 .manufacture_id = SANYO_ID,
15296 .model_id = SANYO_LE25FU206A,
15297 .total_size = 256,
15298 .page_size = 256,
15299 .tested = TEST_UNTESTED,
15300 .probe = probe_spi_rdid,
15301 .probe_timing = TIMING_ZERO,
15302 .block_erasers =
15303 {
15304 {
15305 .eraseblocks = { {4 * 1024, 64} },
15306 .block_erase = spi_block_erase_20,
15307 }, {
15308 .eraseblocks = { {4 * 1024, 64} },
15309 .block_erase = spi_block_erase_d7,
15310 }, {
15311 .eraseblocks = { {64 * 1024, 4} },
15312 .block_erase = spi_block_erase_d8,
15313 }, {
15314 .eraseblocks = { {256 * 1024, 1} },
15315 .block_erase = spi_block_erase_60,
15316 }, {
15317 .eraseblocks = { {256 * 1024, 1} },
15318 .block_erase = spi_block_erase_c7,
15319 }
15320 },
15321 .printlock = spi_prettyprint_status_register_bp2_srwd,
15322 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15323 .write = spi_chip_write_256,
15324 .read = spi_chip_read,
15325 .voltage = {2300, 3600},
15326 },
15327
15328 {
15329 .vendor = "Sanyo",
15330 .name = "LE25FU406B",
15331 .bustype = BUS_SPI,
15332 .manufacture_id = SANYO_ID,
15333 .model_id = SANYO_LE25FU406B,
15334 .total_size = 512,
15335 .page_size = 256,
15336 .feature_bits = FEATURE_WRSR_WREN,
15337 .tested = TEST_OK_PREW,
15338 .probe = probe_spi_res2,
15339 .probe_timing = TIMING_ZERO,
15340 .block_erasers =
15341 {
15342 {
15343 .eraseblocks = { {4 * 1024, 128} },
15344 .block_erase = spi_block_erase_d7,
15345 }, {
15346 .eraseblocks = { {64 * 1024, 8} },
15347 .block_erase = spi_block_erase_d8,
15348 }, {
15349 .eraseblocks = { {512 * 1024, 1} },
15350 .block_erase = spi_block_erase_c7,
15351 }
15352 },
15353 .printlock = spi_prettyprint_status_register_bp2_srwd,
15354 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15355 .write = spi_chip_write_256,
15356 .read = spi_chip_read,
15357 .voltage = {2300, 3600},
15358 },
15359
15360 {
15361 .vendor = "Sanyo",
15362 .name = "LE25FU406C/LE25U40CMC",
15363 .bustype = BUS_SPI,
15364 .manufacture_id = SANYO_ID,
15365 .model_id = SANYO_LE25FU406C,
15366 .total_size = 512,
15367 .page_size = 256,
15368 .feature_bits = FEATURE_WRSR_WREN,
15369 .tested = TEST_OK_PREW,
15370 .probe = probe_spi_rdid,
15371 .probe_timing = TIMING_ZERO,
15372 .block_erasers =
15373 {
15374 {
15375 .eraseblocks = { {4 * 1024, 128} },
15376 .block_erase = spi_block_erase_20,
15377 }, {
15378 .eraseblocks = { {4 * 1024, 128} },
15379 .block_erase = spi_block_erase_d7,
15380 }, {
15381 .eraseblocks = { {64 * 1024, 8} },
15382 .block_erase = spi_block_erase_d8,
15383 }, {
15384 .eraseblocks = { {512 * 1024, 1} },
15385 .block_erase = spi_block_erase_60,
15386 }, {
15387 .eraseblocks = { {512 * 1024, 1} },
15388 .block_erase = spi_block_erase_c7,
15389 }
15390 },
15391 .printlock = spi_prettyprint_status_register_bp2_srwd,
15392 .unlock = spi_disable_blockprotect_bp2_srwd,
15393 .write = spi_chip_write_256,
15394 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
15395 .voltage = {2300, 3600},
15396 },
15397
15398 {
15399 .vendor = "Sanyo",
15400 .name = "LE25FW106",
15401 .bustype = BUS_SPI,
15402 .manufacture_id = SANYO_ID,
15403 .model_id = SANYO_LE25FW106,
15404 .total_size = 128,
15405 .page_size = 256,
15406 .feature_bits = FEATURE_WRSR_WREN,
15407 .tested = TEST_OK_PREW,
15408 .probe = probe_spi_res2,
15409 .probe_timing = TIMING_ZERO,
15410 .block_erasers =
15411 {
15412 {
15413 .eraseblocks = { {2 * 1024, 64} },
15414 .block_erase = spi_block_erase_d7,
15415 }, {
15416 .eraseblocks = { {32 * 1024, 4} },
15417 .block_erase = spi_block_erase_d8,
15418 }, {
15419 .eraseblocks = { {128 * 1024, 1} },
15420 .block_erase = spi_block_erase_c7,
15421 }
15422 },
15423 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
15424 .unlock = spi_disable_blockprotect_bp1_srwd,
15425 .write = spi_chip_write_256,
15426 .read = spi_chip_read,
15427 .voltage = {2700, 3600},
15428 },
15429
15430 {
15431 .vendor = "Sanyo",
15432 .name = "LE25FW203A",
15433 .bustype = BUS_SPI,
15434 .manufacture_id = SANYO_ID,
15435 .model_id = SANYO_LE25FW203A,
15436 .total_size = 256,
15437 .page_size = 256,
15438 .tested = TEST_UNTESTED,
15439 .probe = probe_spi_rdid,
15440 .probe_timing = TIMING_ZERO,
15441 .block_erasers =
15442 {
15443 {
15444 .eraseblocks = { {256, 1024} },
15445 .block_erase = spi_block_erase_db,
15446 }, {
15447 .eraseblocks = { {64 * 1024, 4} },
15448 .block_erase = spi_block_erase_d8,
15449 }, {
15450 .eraseblocks = { {256 * 1024, 1} },
15451 .block_erase = spi_block_erase_c7,
15452 }
15453 },
15454 .printlock = spi_prettyprint_status_register_default_welwip,
15455 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15456 .write = spi_chip_write_256,
15457 .read = spi_chip_read,
15458 .voltage = {2700, 3600},
15459 },
15460
15461 {
15462 .vendor = "Sanyo",
15463 .name = "LE25FW403A",
15464 .bustype = BUS_SPI,
15465 .manufacture_id = SANYO_ID,
15466 .model_id = SANYO_LE25FW403A,
15467 .total_size = 512,
15468 .page_size = 256,
15469 .tested = TEST_UNTESTED,
15470 .probe = probe_spi_rdid,
15471 .probe_timing = TIMING_ZERO,
15472 .block_erasers =
15473 {
15474 {
15475 .eraseblocks = { {256, 2 * 1024} },
15476 .block_erase = spi_block_erase_db,
15477 }, {
15478 .eraseblocks = { {64 * 1024, 8} },
15479 .block_erase = spi_block_erase_d8,
15480 }, {
15481 .eraseblocks = { {512 * 1024, 1} },
15482 .block_erase = spi_block_erase_c7,
15483 }
15484 },
15485 .printlock = spi_prettyprint_status_register_default_welwip,
15486 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15487 .write = spi_chip_write_256,
15488 .read = spi_chip_read,
15489 .voltage = {2700, 3600},
15490 },
15491
15492 {
15493 .vendor = "Sanyo",
15494 .name = "LE25FW406A",
15495 .bustype = BUS_SPI,
15496 .manufacture_id = SANYO_ID,
15497 .model_id = SANYO_LE25FW406A,
15498 .total_size = 512,
15499 .page_size = 256,
15500 .feature_bits = FEATURE_WRSR_WREN,
15501 .tested = TEST_OK_PREW,
15502 .probe = probe_spi_res2,
15503 .probe_timing = TIMING_ZERO,
15504 .block_erasers =
15505 {
15506 {
15507 .eraseblocks = { {4 * 1024, 128} },
15508 .block_erase = spi_block_erase_d7,
15509 }, {
15510 .eraseblocks = { {64 * 1024, 8} },
15511 .block_erase = spi_block_erase_d8,
15512 }, {
15513 .eraseblocks = { {512 * 1024, 1} },
15514 .block_erase = spi_block_erase_c7,
15515 }
15516 },
15517 .printlock = spi_prettyprint_status_register_plain,
15518 .unlock = spi_disable_blockprotect,
15519 .write = spi_chip_write_256,
15520 .read = spi_chip_read,
15521 .voltage = {2700, 3600},
15522 },
15523
15524 {
15525 .vendor = "Sanyo",
15526 .name = "LE25FW418A",
15527 .bustype = BUS_SPI,
15528 .manufacture_id = SANYO_ID,
15529 .model_id = SANYO_LE25FW418A,
15530 .total_size = 512,
15531 .page_size = 256,
15532 .feature_bits = FEATURE_WRSR_WREN,
15533 .tested = TEST_UNTESTED,
15534 .probe = probe_spi_res2,
15535 .probe_timing = TIMING_ZERO,
15536 .block_erasers =
15537 {
15538 {
15539 .eraseblocks = { {4 * 1024, 128} },
15540 .block_erase = spi_block_erase_d7,
15541 }, {
15542 .eraseblocks = { {64 * 1024, 8} },
15543 .block_erase = spi_block_erase_d8,
15544 }, {
15545 .eraseblocks = { {512 * 1024, 1} },
15546 .block_erase = spi_block_erase_c7,
15547 }
15548 },
15549 .printlock = spi_prettyprint_status_register_bp2_srwd,
15550 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15551 .write = spi_chip_write_256,
15552 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15553 .voltage = {2700, 3600},
15554 },
15555
15556 {
15557 .vendor = "Sanyo",
15558 .name = "LE25FW806",
15559 .bustype = BUS_SPI,
15560 .manufacture_id = SANYO_ID,
15561 .model_id = SANYO_LE25FW806,
15562 .total_size = 1024,
15563 .page_size = 256,
15564 .feature_bits = FEATURE_WRSR_WREN,
15565 .tested = TEST_UNTESTED,
15566 .probe = probe_spi_res2,
15567 .probe_timing = TIMING_ZERO,
15568 .block_erasers =
15569 {
15570 {
15571 .eraseblocks = { {4 * 1024, 256} },
15572 .block_erase = spi_block_erase_20,
15573 }, {
15574 .eraseblocks = { {4 * 1024, 256} },
15575 .block_erase = spi_block_erase_d7,
15576 }, {
15577 .eraseblocks = { {64 * 1024, 16} },
15578 .block_erase = spi_block_erase_d8,
15579 }, {
15580 .eraseblocks = { {1024 * 1024, 1} },
15581 .block_erase = spi_block_erase_c7,
15582 }
15583 },
15584 .printlock = spi_prettyprint_status_register_bp2_srwd,
15585 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15586 .write = spi_chip_write_256,
15587 .read = spi_chip_read,
15588 .voltage = {2700, 3600},
15589 },
15590
15591 {
15592 .vendor = "Sanyo",
15593 .name = "LE25FW808",
15594 .bustype = BUS_SPI,
15595 .manufacture_id = SANYO_ID,
15596 .model_id = SANYO_LE25FW808,
15597 .total_size = 1024,
15598 .page_size = 256,
15599 .feature_bits = FEATURE_WRSR_WREN,
15600 .tested = TEST_UNTESTED,
15601 .probe = probe_spi_res2,
15602 .probe_timing = TIMING_ZERO,
15603 .block_erasers =
15604 {
15605 {
15606 .eraseblocks = { {8 * 1024, 128} },
15607 .block_erase = spi_block_erase_d7,
15608 }, {
15609 .eraseblocks = { {64 * 1024, 16} },
15610 .block_erase = spi_block_erase_d8,
15611 }, {
15612 .eraseblocks = { {1024 * 1024, 1} },
15613 .block_erase = spi_block_erase_c7,
15614 }
15615 },
15616 .printlock = spi_prettyprint_status_register_bp2_srwd,
15617 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15618 .write = spi_chip_write_256,
15619 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15620 .voltage = {2700, 3600},
15621 },
15622
15623 {
15624 .vendor = "Sharp",
15625 .name = "LH28F008BJT-BTLZ1",
15626 .bustype = BUS_PARALLEL,
15627 .manufacture_id = SHARP_ID,
15628 .model_id = SHARP_LH28F008BJ__PB,
15629 .total_size = 1024,
15630 .page_size = 64 * 1024,
15631 .tested = TEST_OK_PREW,
15632 .probe = probe_82802ab,
15633 .probe_timing = TIMING_ZERO,
15634 .block_erasers =
15635 {
15636 {
15637 .eraseblocks = {
15638 {8 * 1024, 8},
15639 {64 * 1024, 15}
15640 },
15641 .block_erase = erase_block_82802ab,
15642 }, {
15643 .eraseblocks = { {1024 * 1024, 1} },
15644 .block_erase = erase_sector_49lfxxxc,
15645 }
15646 },
15647 .unlock = unlock_lh28f008bjt,
15648 .write = write_82802ab,
15649 .read = read_memmapped,
15650 .voltage = {2700, 3600},
15651 },
15652
15653 {
15654 .vendor = "Sharp",
15655 .name = "LHF00L04",
15656 .bustype = BUS_FWH, /* A/A Mux */
15657 .manufacture_id = SHARP_ID,
15658 .model_id = SHARP_LHF00L04,
15659 .total_size = 1024,
15660 .page_size = 64 * 1024,
15661 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
15662 .tested = TEST_UNTESTED,
15663 .probe = probe_82802ab,
15664 .probe_timing = TIMING_ZERO,
15665 .block_erasers =
15666 {
15667 {
15668 .eraseblocks = {
15669 {64 * 1024, 15},
15670 {8 * 1024, 8}
15671 },
15672 .block_erase = erase_block_82802ab,
15673 }, {
15674 .eraseblocks = {
15675 {1024 * 1024, 1}
15676 },
15677 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
15678 },
15679 },
15680 .unlock = unlock_regspace2_uniform_64k,
15681 .write = write_82802ab,
15682 .read = read_memmapped,
15683 .voltage = {3000, 3600},
15684 },
15685
15686 {
15687 .vendor = "Spansion",
15688 .name = "S25FL004A",
15689 .bustype = BUS_SPI,
15690 .manufacture_id = SPANSION_ID,
15691 .model_id = SPANSION_S25FL004A,
15692 .total_size = 512,
15693 .page_size = 256,
15694 .feature_bits = FEATURE_WRSR_WREN,
15695 .tested = TEST_UNTESTED,
15696 .probe = probe_spi_rdid,
15697 .probe_timing = TIMING_ZERO,
15698 .block_erasers =
15699 {
15700 {
15701 .eraseblocks = { {64 * 1024, 8} },
15702 .block_erase = spi_block_erase_d8,
15703 }, {
15704 .eraseblocks = { {512 * 1024, 1} },
15705 .block_erase = spi_block_erase_c7,
15706 }
15707 },
15708 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15709 .unlock = spi_disable_blockprotect,
15710 .write = spi_chip_write_256,
15711 .read = spi_chip_read,
15712 .voltage = {2700, 3600},
15713 },
15714
15715 {
15716 .vendor = "Spansion",
15717 .name = "S25FL008A",
15718 .bustype = BUS_SPI,
15719 .manufacture_id = SPANSION_ID,
15720 .model_id = SPANSION_S25FL008A,
15721 .total_size = 1024,
15722 .page_size = 256,
15723 .feature_bits = FEATURE_WRSR_WREN,
15724 .tested = TEST_OK_PRE,
15725 .probe = probe_spi_rdid,
15726 .probe_timing = TIMING_ZERO,
15727 .block_erasers =
15728 {
15729 {
15730 .eraseblocks = { {64 * 1024, 16} },
15731 .block_erase = spi_block_erase_d8,
15732 }, {
15733 .eraseblocks = { {1024 * 1024, 1} },
15734 .block_erase = spi_block_erase_c7,
15735 }
15736 },
15737 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15738 .unlock = spi_disable_blockprotect,
15739 .write = spi_chip_write_256,
15740 .read = spi_chip_read,
15741 .voltage = {2700, 3600},
15742 },
15743
15744 {
15745 .vendor = "Spansion",
15746 .name = "S25FL016A",
15747 .bustype = BUS_SPI,
15748 .manufacture_id = SPANSION_ID,
15749 .model_id = SPANSION_S25FL016A,
15750 .total_size = 2048,
15751 .page_size = 256,
15752 .feature_bits = FEATURE_WRSR_WREN,
15753 .tested = TEST_OK_PREW,
15754 .probe = probe_spi_rdid,
15755 .probe_timing = TIMING_ZERO,
15756 .block_erasers =
15757 {
15758 {
15759 .eraseblocks = { {64 * 1024, 32} },
15760 .block_erase = spi_block_erase_d8,
15761 }, {
15762 .eraseblocks = { {2 * 1024 * 1024, 1} },
15763 .block_erase = spi_block_erase_c7,
15764 }
15765 },
15766 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15767 .unlock = spi_disable_blockprotect,
15768 .write = spi_chip_write_256,
15769 .read = spi_chip_read,
15770 .voltage = {2700, 3600},
15771 },
15772
15773 {
15774 .vendor = "Spansion",
15775 .name = "S25FL032A/P",
15776 .bustype = BUS_SPI,
15777 .manufacture_id = SPANSION_ID,
15778 .model_id = SPANSION_S25FL032A,
15779 .total_size = 4096,
15780 .page_size = 256,
15781 .feature_bits = FEATURE_WRSR_WREN,
15782 .tested = TEST_OK_PREW,
15783 .probe = probe_spi_rdid,
15784 .probe_timing = TIMING_ZERO,
15785 .block_erasers =
15786 {
15787 {
15788 .eraseblocks = { {64 * 1024, 64} },
15789 .block_erase = spi_block_erase_d8,
15790 }, {
15791 .eraseblocks = { {4 * 1024 * 1024, 1} },
15792 .block_erase = spi_block_erase_c7,
15793 }
15794 },
15795 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15796 .unlock = spi_disable_blockprotect,
15797 .write = spi_chip_write_256,
15798 .read = spi_chip_read,
15799 .voltage = {2700, 3600},
15800 },
15801
15802 {
15803 .vendor = "Spansion",
15804 .name = "S25FL064A/P",
15805 .bustype = BUS_SPI,
15806 .manufacture_id = SPANSION_ID,
15807 .model_id = SPANSION_S25FL064A,
15808 .total_size = 8192,
15809 .page_size = 256,
15810 .feature_bits = FEATURE_WRSR_WREN,
15811 .tested = TEST_OK_PREW,
15812 .probe = probe_spi_rdid,
15813 .probe_timing = TIMING_ZERO,
15814 .block_erasers =
15815 {
15816 {
15817 .eraseblocks = { {64 * 1024, 128} },
15818 .block_erase = spi_block_erase_d8,
15819 }, {
15820 .eraseblocks = { {8 * 1024 * 1024, 1} },
15821 .block_erase = spi_block_erase_c7,
15822 }
15823 },
15824 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15825 .unlock = spi_disable_blockprotect,
15826 .write = spi_chip_write_256,
15827 .read = spi_chip_read,
15828 .voltage = {2700, 3600},
15829 },
15830
15831 {
15832 .vendor = "Spansion",
15833 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
15834 .bustype = BUS_SPI,
15835 .manufacture_id = SPANSION_ID,
15836 .model_id = SPANSION_S25FL216,
15837 .total_size = 2048,
15838 .page_size = 256,
15839 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
15840 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15841 .tested = TEST_UNTESTED,
15842 .probe = probe_spi_rdid,
15843 .probe_timing = TIMING_ZERO,
15844 .block_erasers =
15845 {
15846 {
15847 .eraseblocks = { {4 * 1024, 512} },
15848 .block_erase = spi_block_erase_20,
15849 }, {
15850 .eraseblocks = { {64 * 1024, 32} },
15851 .block_erase = spi_block_erase_d8,
15852 }, {
15853 .eraseblocks = { { 2048 * 1024, 1} },
15854 .block_erase = spi_block_erase_60,
15855 }, {
15856 .eraseblocks = { { 2048 * 1024, 1} },
15857 .block_erase = spi_block_erase_c7,
15858 }
15859 },
15860 .printlock = spi_prettyprint_status_register_bp3_srwd,
15861 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
15862 .write = spi_chip_write_256,
15863 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
15864 .voltage = {2700, 3600},
15865 },
15866
15867 {
15868 .vendor = "Spansion",
15869 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
15870 .bustype = BUS_SPI,
15871 .manufacture_id = SPANSION_ID,
15872 .model_id = SPANSION_S25FL128,
15873 .total_size = 16384,
15874 .page_size = 512,
15875 /* supports 4B addressing */
15876 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15877 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15878 .tested = TEST_UNTESTED,
15879 .probe = probe_spi_rdid,
15880 .probe_timing = TIMING_ZERO,
15881 .block_erasers =
15882 {
15883 {
15884 .eraseblocks = { {256 * 1024, 64} },
15885 .block_erase = spi_block_erase_d8,
15886 }, {
15887 .eraseblocks = { { 16384 * 1024, 1} },
15888 .block_erase = spi_block_erase_60,
15889 }, {
15890 .eraseblocks = { { 16384 * 1024, 1} },
15891 .block_erase = spi_block_erase_c7,
15892 }
15893 },
15894 .printlock = spi_prettyprint_status_register_bp2_srwd,
15895 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15896 .write = spi_chip_write_256, /* Multi I/O supported */
15897 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15898 .voltage = {2700, 3600},
15899 },
15900
15901 {
15902 .vendor = "Spansion",
15903 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15904 .bustype = BUS_SPI,
15905 .manufacture_id = SPANSION_ID,
15906 .model_id = SPANSION_S25FL128,
15907 .total_size = 16384,
15908 .page_size = 256,
15909 /* supports 4B addressing */
15910 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15911 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15912 .tested = TEST_OK_PREW,
15913 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
15914 .probe = probe_spi_rdid,
15915 .probe_timing = TIMING_ZERO,
15916 .block_erasers =
15917 {
15918 {
15919 /* This chip supports erasing of 32 so-called "parameter sectors" with
15920 * opcode 0x20 which may be configured to be on top or bottom of the address
15921 * space. Trying to access an address outside these 4kB blocks does have no
15922 * effect on the memory contents, e.g.
15923 .eraseblocks = {
15924 {4 * 1024, 32},
15925 {64 * 1024, 254} // inaccessible
15926 },
15927 .block_erase = spi_block_erase_20,
15928 }, { */
15929 .eraseblocks = { { 64 * 1024, 256} },
15930 .block_erase = spi_block_erase_d8,
15931 }, {
15932 .eraseblocks = { { 16384 * 1024, 1} },
15933 .block_erase = spi_block_erase_60,
15934 }, {
15935 .eraseblocks = { { 16384 * 1024, 1} },
15936 .block_erase = spi_block_erase_c7,
15937 }
15938 },
15939 .printlock = spi_prettyprint_status_register_bp2_srwd,
15940 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15941 .write = spi_chip_write_256, /* Multi I/O supported */
15942 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15943 .voltage = {2700, 3600},
15944 },
15945
15946 {
15947 .vendor = "Spansion",
15948 .name = "S25FL128P......0", /* uniform 64 kB sectors */
15949 .bustype = BUS_SPI,
15950 .manufacture_id = SPANSION_ID,
15951 .model_id = SPANSION_S25FL128,
15952 .total_size = 16384,
15953 .page_size = 256,
15954 .feature_bits = FEATURE_WRSR_WREN,
15955 .tested = TEST_OK_PREW,
15956 .probe = probe_spi_rdid,
15957 .probe_timing = TIMING_ZERO,
15958 .block_erasers =
15959 {
15960 {
15961 .eraseblocks = { {64 * 1024, 256} },
15962 .block_erase = spi_block_erase_20,
15963 }, {
15964 .eraseblocks = { {64 * 1024, 256} },
15965 .block_erase = spi_block_erase_d8,
15966 }, {
15967 .eraseblocks = { { 16384 * 1024, 1} },
15968 .block_erase = spi_block_erase_60,
15969 }, {
15970 .eraseblocks = { { 16384 * 1024, 1} },
15971 .block_erase = spi_block_erase_c7,
15972 }
15973 },
15974 .printlock = spi_prettyprint_status_register_bp3_srwd,
15975 .unlock = spi_disable_blockprotect_bp3_srwd,
15976 .write = spi_chip_write_256,
15977 .read = spi_chip_read, /* Fast read (0x0B) supported */
15978 .voltage = {2700, 3600},
15979 },
15980
15981 {
15982 .vendor = "Spansion",
15983 .name = "S25FL128P......1", /* uniform 256kB sectors */
15984 .bustype = BUS_SPI,
15985 .manufacture_id = SPANSION_ID,
15986 .model_id = SPANSION_S25FL128,
15987 .total_size = 16384,
15988 .page_size = 256,
15989 .feature_bits = FEATURE_WRSR_WREN,
15990 .tested = TEST_UNTESTED,
15991 .probe = probe_spi_rdid,
15992 .probe_timing = TIMING_ZERO,
15993 .block_erasers =
15994 {
15995 {
15996 .eraseblocks = { {256 * 1024, 64} },
15997 .block_erase = spi_block_erase_d8,
15998 }, {
15999 .eraseblocks = { { 16384 * 1024, 1} },
16000 .block_erase = spi_block_erase_c7,
16001 }
16002 },
16003 .printlock = spi_prettyprint_status_register_bp2_srwd,
16004 .unlock = spi_disable_blockprotect_bp2_srwd,
16005 .write = spi_chip_write_256,
16006 .read = spi_chip_read, /* Fast read (0x0B) supported */
16007 .voltage = {2700, 3600},
16008 },
16009
16010 {
16011 .vendor = "Spansion",
16012 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16013 .bustype = BUS_SPI,
16014 .manufacture_id = SPANSION_ID,
16015 .model_id = SPANSION_S25FL128,
16016 .total_size = 16384,
16017 .page_size = 256,
16018 /* supports 4B addressing */
16019 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16020 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16021 .tested = TEST_OK_PREW,
16022 .probe = probe_spi_rdid,
16023 .probe_timing = TIMING_ZERO,
16024 .block_erasers =
16025 {
16026 {
16027 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16028 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16029 * have no effect on the memory contents, but sets a flag in the SR.
16030 .eraseblocks = {
16031 {4 * 1024, 32},
16032 {64 * 1024, 254} // inaccessible
16033 },
16034 .block_erase = spi_block_erase_20,
16035 }, { */
16036 .eraseblocks = { { 64 * 1024, 256} },
16037 .block_erase = spi_block_erase_d8,
16038 }, {
16039 .eraseblocks = { { 16384 * 1024, 1} },
16040 .block_erase = spi_block_erase_60,
16041 }, {
16042 .eraseblocks = { { 16384 * 1024, 1} },
16043 .block_erase = spi_block_erase_c7,
16044 }
16045 },
16046 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16047 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16048 .write = spi_chip_write_256, /* Multi I/O supported */
16049 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16050 .voltage = {2700, 3600},
16051 },
16052
16053 {
16054 .vendor = "Spansion",
16055 .name = "S25FL128S......1", /* uniform 256 kB sectors */
16056 .bustype = BUS_SPI,
16057 .manufacture_id = SPANSION_ID,
16058 .model_id = SPANSION_S25FL128,
16059 .total_size = 16384,
16060 .page_size = 512,
16061 /* supports 4B addressing */
16062 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16063 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16064 .tested = TEST_UNTESTED,
16065 .probe = probe_spi_rdid,
16066 .probe_timing = TIMING_ZERO,
16067 .block_erasers =
16068 {
16069 {
16070 .eraseblocks = { {256 * 1024, 64} },
16071 .block_erase = spi_block_erase_d8,
16072 }, {
16073 .eraseblocks = { { 16384 * 1024, 1} },
16074 .block_erase = spi_block_erase_60,
16075 }, {
16076 .eraseblocks = { { 16384 * 1024, 1} },
16077 .block_erase = spi_block_erase_c7,
16078 }
16079 },
16080 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16081 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16082 .write = spi_chip_write_256, /* Multi I/O supported */
16083 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16084 .voltage = {2700, 3600},
16085 },
16086
16087 {
16088 .vendor = "Spansion",
16089 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16090 .bustype = BUS_SPI,
16091 .manufacture_id = SPANSION_ID,
16092 .model_id = SPANSION_S25FL128,
16093 .total_size = 16384,
16094 .page_size = 256,
16095 /* OTP: 506B total, 16B 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 /* FIXME: 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 have no
16105 * 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 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
16113 .eraseblocks = {
16114 {8 * 1024, 16},
16115 {64 * 1024, 254} // inaccessible
16116 },
16117 .block_erase = spi_block_erase_40,
16118 }, { */
16119 .eraseblocks = { { 64 * 1024, 256} },
16120 .block_erase = spi_block_erase_d8,
16121 }, {
16122 .eraseblocks = { { 16384 * 1024, 1} },
16123 .block_erase = spi_block_erase_60,
16124 }, {
16125 .eraseblocks = { { 16384 * 1024, 1} },
16126 .block_erase = spi_block_erase_c7,
16127 }
16128 },
16129 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16130 .unlock = spi_disable_blockprotect_bp2_srwd,
16131 .write = spi_chip_write_256, /* Multi I/O supported */
16132 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16133 .voltage = {2700, 3600},
16134 },
16135
16136 {
16137 .vendor = "Spansion",
16138 .name = "S25FL129P......1", /* uniform 256 kB sectors */
16139 .bustype = BUS_SPI,
16140 .manufacture_id = SPANSION_ID,
16141 .model_id = SPANSION_S25FL128,
16142 .total_size = 16384,
16143 .page_size = 256,
16144 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16145 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16146 .tested = TEST_UNTESTED,
16147 .probe = probe_spi_rdid,
16148 .probe_timing = TIMING_ZERO,
16149 .block_erasers =
16150 {
16151 {
16152 .eraseblocks = { {256 * 1024, 64} },
16153 .block_erase = spi_block_erase_d8,
16154 }, {
16155 .eraseblocks = { { 16384 * 1024, 1} },
16156 .block_erase = spi_block_erase_60,
16157 }, {
16158 .eraseblocks = { { 16384 * 1024, 1} },
16159 .block_erase = spi_block_erase_c7,
16160 }
16161 },
16162 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16163 .unlock = spi_disable_blockprotect_bp2_srwd,
16164 .write = spi_chip_write_256, /* Multi I/O supported */
16165 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16166 .voltage = {2700, 3600},
16167 },
16168
16169 {
16170 .vendor = "Spansion",
16171 .name = "S25FL132K",
16172 .bustype = BUS_SPI,
16173 .manufacture_id = SPANSION_ID,
16174 .model_id = SPANSION_S25FL132K,
16175 .total_size = 4096,
16176 .page_size = 256,
16177 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16178 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16179 .tested = TEST_UNTESTED,
16180 .probe = probe_spi_rdid,
16181 .probe_timing = TIMING_ZERO,
16182 .block_erasers =
16183 {
16184 {
16185 .eraseblocks = { {4 * 1024, 1024} },
16186 .block_erase = spi_block_erase_20,
16187 }, {
16188 .eraseblocks = { {64 * 1024, 64} },
16189 .block_erase = spi_block_erase_d8,
16190 }, {
16191 .eraseblocks = { { 4096 * 1024, 1} },
16192 .block_erase = spi_block_erase_60,
16193 }, {
16194 .eraseblocks = { { 4096 * 1024, 1} },
16195 .block_erase = spi_block_erase_c7,
16196 }
16197 },
16198 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16199 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16200 .write = spi_chip_write_256,
16201 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16202 .voltage = {2700, 3600},
16203 },
16204
16205 {
16206 .vendor = "Spansion",
16207 .name = "S25FL164K",
16208 .bustype = BUS_SPI,
16209 .manufacture_id = SPANSION_ID,
16210 .model_id = SPANSION_S25FL164K,
16211 .total_size = 8192,
16212 .page_size = 256,
16213 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16214 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16215 .tested = TEST_OK_PREW,
16216 .probe = probe_spi_rdid,
16217 .probe_timing = TIMING_ZERO,
16218 .block_erasers =
16219 {
16220 {
16221 .eraseblocks = { {4 * 1024, 2048} },
16222 .block_erase = spi_block_erase_20,
16223 }, {
16224 .eraseblocks = { {64 * 1024, 128} },
16225 .block_erase = spi_block_erase_d8,
16226 }, {
16227 .eraseblocks = { { 8192 * 1024, 1} },
16228 .block_erase = spi_block_erase_60,
16229 }, {
16230 .eraseblocks = { { 8192 * 1024, 1} },
16231 .block_erase = spi_block_erase_c7,
16232 }
16233 },
16234 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16235 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16236 .write = spi_chip_write_256,
16237 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16238 .voltage = {2700, 3600},
16239 },
16240
16241 {
16242 .vendor = "Spansion",
16243 .name = "S25FL204K",
16244 .bustype = BUS_SPI,
16245 .manufacture_id = SPANSION_ID,
16246 .model_id = SPANSION_S25FL204,
16247 .total_size = 512,
16248 .page_size = 256,
16249 .feature_bits = FEATURE_WRSR_WREN,
16250 .tested = TEST_OK_PR,
16251 .probe = probe_spi_rdid,
16252 .probe_timing = TIMING_ZERO,
16253 .block_erasers =
16254 {
16255 {
16256 .eraseblocks = { {4 * 1024, 128} },
16257 .block_erase = spi_block_erase_20,
16258 }, {
16259 .eraseblocks = { {64 * 1024, 8} },
16260 .block_erase = spi_block_erase_d8,
16261 }, {
16262 .eraseblocks = { { 512 * 1024, 1} },
16263 .block_erase = spi_block_erase_60,
16264 }, {
16265 .eraseblocks = { { 512 * 1024, 1} },
16266 .block_erase = spi_block_erase_c7,
16267 }
16268 },
16269 .printlock = spi_prettyprint_status_register_bp3_srwd,
16270 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16271 .write = spi_chip_write_256,
16272 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16273 .voltage = {2700, 3600},
16274 },
16275
16276 {
16277 .vendor = "Spansion",
16278 .name = "S25FL208K",
16279 .bustype = BUS_SPI,
16280 .manufacture_id = SPANSION_ID,
16281 .model_id = SPANSION_S25FL208,
16282 .total_size = 1024,
16283 .page_size = 256,
16284 .feature_bits = FEATURE_WRSR_WREN,
16285 .tested = TEST_OK_PREW,
16286 .probe = probe_spi_rdid,
16287 .probe_timing = TIMING_ZERO,
16288 .block_erasers =
16289 {
16290 {
16291 .eraseblocks = { {4 * 1024, 256} },
16292 .block_erase = spi_block_erase_20,
16293 }, {
16294 .eraseblocks = { {64 * 1024, 16} },
16295 .block_erase = spi_block_erase_d8,
16296 }, {
16297 .eraseblocks = { { 1024 * 1024, 1} },
16298 .block_erase = spi_block_erase_60,
16299 }, {
16300 .eraseblocks = { { 1024 * 1024, 1} },
16301 .block_erase = spi_block_erase_c7,
16302 }
16303 },
16304 .printlock = spi_prettyprint_status_register_bp3_srwd,
16305 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16306 .write = spi_chip_write_256,
16307 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16308 .voltage = {2700, 3600},
16309 },
16310
16311 {
16312 .vendor = "Spansion",
16313 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16314 .bustype = BUS_SPI,
16315 .manufacture_id = SPANSION_ID,
16316 .model_id = SPANSION_S25FL256,
16317 .total_size = 32768,
16318 .page_size = 256,
16319 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16320 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_EAR7,
16321 .tested = TEST_OK_PREW,
16322 .probe = probe_spi_rdid,
16323 .probe_timing = TIMING_ZERO,
16324 .block_erasers =
16325 {
16326 {
16327 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16328 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16329 * have no effect on the memory contents, but sets a flag in the SR.
16330 .eraseblocks = {
16331 {4 * 1024, 32},
16332 {64 * 1024, 254} // inaccessible
16333 },
16334 .block_erase = spi_block_erase_20,
16335 }, { */
16336 .eraseblocks = { { 64 * 1024, 512} },
16337 .block_erase = spi_block_erase_dc,
16338 }, {
16339 .eraseblocks = { { 64 * 1024, 512} },
16340 .block_erase = spi_block_erase_d8,
16341 }, {
16342 .eraseblocks = { { 32768 * 1024, 1} },
16343 .block_erase = spi_block_erase_60,
16344 }, {
16345 .eraseblocks = { { 32768 * 1024, 1} },
16346 .block_erase = spi_block_erase_c7,
16347 }
16348 },
16349 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16350 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16351 .write = spi_chip_write_256, /* Multi I/O supported */
16352 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16353 .voltage = {2700, 3600},
16354 .wrea_override = 0x17,
16355 },
16356
16357 {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016358 .vendor = "Spansion",
16359 .name = "S25FL512S",
16360 .bustype = BUS_SPI,
16361 .manufacture_id = SPANSION_ID,
16362 .model_id = SPANSION_S25FL512,
16363 .total_size = 65536, /* 512 Mb (=> 64 MB)) */
16364 .page_size = 256,
16365 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16366 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_NATIVE,
16367 .tested = TEST_OK_PREW,
16368 .probe = probe_spi_rdid,
16369 .probe_timing = TIMING_ZERO,
16370 .block_erasers =
16371 {
16372 {
16373 .eraseblocks = { { 256 * 1024, 256} },
16374 .block_erase = spi_block_erase_dc,
16375 }, {
16376 .eraseblocks = { { 65536 * 1024, 1} },
16377 .block_erase = spi_block_erase_60,
16378 }, {
16379 .eraseblocks = { { 65536 * 1024, 1} },
16380 .block_erase = spi_block_erase_c7,
16381 }
16382 },
16383 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16384 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16385 .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */
16386 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16387 .voltage = {2700, 3600},
16388 },
16389
16390 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016391 .vendor = "SyncMOS/MoselVitelic",
16392 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016393 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016394 .manufacture_id = SYNCMOS_MVC_ID,
16395 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016396 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016397 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016398 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016399 .tested = TEST_UNTESTED,
16400 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016401 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016402 .block_erasers =
16403 {
16404 {
16405 .eraseblocks = { {512, 256} },
16406 .block_erase = erase_sector_jedec,
16407 }, {
16408 .eraseblocks = { {128 * 1024, 1} },
16409 .block_erase = erase_chip_block_jedec,
16410 },
16411 },
Sean Nelson35727f72010-01-28 23:55:12 +000016412 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016413 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016414 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016415 },
16416
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016417 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016418 .vendor = "SyncMOS/MoselVitelic",
16419 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016420 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016421 .manufacture_id = SYNCMOS_MVC_ID,
16422 .model_id = SM_MVC_29C51001T,
16423 .total_size = 128,
16424 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016425 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016426 .tested = TEST_UNTESTED,
16427 .probe = probe_jedec,
16428 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16429 .block_erasers =
16430 {
16431 {
16432 .eraseblocks = { {512, 256} },
16433 .block_erase = erase_sector_jedec,
16434 }, {
16435 .eraseblocks = { {128 * 1024, 1} },
16436 .block_erase = erase_chip_block_jedec,
16437 },
16438 },
16439 .write = write_jedec_1,
16440 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016441 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016442 },
16443
16444 {
16445 .vendor = "SyncMOS/MoselVitelic",
16446 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016447 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016448 .manufacture_id = SYNCMOS_MVC_ID,
16449 .model_id = SM_MVC_29C51002B,
16450 .total_size = 256,
16451 .page_size = 512,
16452 .feature_bits = FEATURE_EITHER_RESET,
16453 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016454 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016455 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016456 .block_erasers =
16457 {
16458 {
16459 .eraseblocks = { {512, 512} },
16460 .block_erase = erase_sector_jedec,
16461 }, {
16462 .eraseblocks = { {256 * 1024, 1} },
16463 .block_erase = erase_chip_block_jedec,
16464 },
16465 },
Sean Nelson35727f72010-01-28 23:55:12 +000016466 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016467 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000016468 },
16469
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016470 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016471 .vendor = "SyncMOS/MoselVitelic",
16472 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016473 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016474 .manufacture_id = SYNCMOS_MVC_ID,
16475 .model_id = SM_MVC_29C51002T,
16476 .total_size = 256,
16477 .page_size = 512,
16478 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016479 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016480 .probe = probe_jedec,
16481 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16482 .block_erasers =
16483 {
16484 {
16485 .eraseblocks = { {512, 512} },
16486 .block_erase = erase_sector_jedec,
16487 }, {
16488 .eraseblocks = { {256 * 1024, 1} },
16489 .block_erase = erase_chip_block_jedec,
16490 },
16491 },
16492 .write = write_jedec_1,
16493 .read = read_memmapped,
16494 },
16495
16496 {
16497 .vendor = "SyncMOS/MoselVitelic",
16498 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016499 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016500 .manufacture_id = SYNCMOS_MVC_ID,
16501 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016502 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016503 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016504 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016505 .tested = TEST_UNTESTED,
16506 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016507 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000016508 .block_erasers =
16509 {
16510 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016511 .eraseblocks = { {1024, 512} },
16512 .block_erase = erase_sector_jedec,
16513 }, {
16514 .eraseblocks = { {512 * 1024, 1} },
16515 .block_erase = erase_chip_block_jedec,
16516 },
16517 },
16518 .write = write_jedec_1,
16519 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016520 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016521 },
16522
16523 {
16524 .vendor = "SyncMOS/MoselVitelic",
16525 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016526 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016527 .manufacture_id = SYNCMOS_MVC_ID,
16528 .model_id = SM_MVC_29C51004T,
16529 .total_size = 512,
16530 .page_size = 1024,
16531 .feature_bits = FEATURE_EITHER_RESET,
16532 .tested = TEST_UNTESTED,
16533 .probe = probe_jedec,
16534 .probe_timing = TIMING_ZERO,
16535 .block_erasers =
16536 {
16537 {
16538 .eraseblocks = { {1024, 512} },
16539 .block_erase = erase_sector_jedec,
16540 }, {
16541 .eraseblocks = { {512 * 1024, 1} },
16542 .block_erase = erase_chip_block_jedec,
16543 },
16544 },
16545 .write = write_jedec_1,
16546 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016547 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016548 },
16549
16550 {
16551 .vendor = "SyncMOS/MoselVitelic",
16552 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016553 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016554 .manufacture_id = SYNCMOS_MVC_ID,
16555 .model_id = SM_MVC_29C31004B,
16556 .total_size = 512,
16557 .page_size = 1024,
16558 .feature_bits = FEATURE_EITHER_RESET,
16559 .tested = TEST_UNTESTED,
16560 .probe = probe_jedec,
16561 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16562 .block_erasers =
16563 {
16564 {
16565 .eraseblocks = { {1024, 512} },
16566 .block_erase = erase_sector_jedec,
16567 }, {
16568 .eraseblocks = { {512 * 1024, 1} },
16569 .block_erase = erase_chip_block_jedec,
16570 },
16571 },
16572 .write = write_jedec_1,
16573 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016574 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016575 },
16576
16577 {
16578 .vendor = "SyncMOS/MoselVitelic",
16579 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016580 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016581 .manufacture_id = SYNCMOS_MVC_ID,
16582 .model_id = SM_MVC_29C31004T,
16583 .total_size = 512,
16584 .page_size = 1024,
16585 .feature_bits = FEATURE_EITHER_RESET,
16586 .tested = TEST_UNTESTED,
16587 .probe = probe_jedec,
16588 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16589 .block_erasers =
16590 {
16591 {
16592 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000016593 .block_erase = erase_sector_jedec,
16594 }, {
16595 .eraseblocks = { {512 * 1024, 1} },
16596 .block_erase = erase_chip_block_jedec,
16597 },
16598 },
Sean Nelson35727f72010-01-28 23:55:12 +000016599 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016600 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016601 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016602 },
16603
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016604 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016605 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016606 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016607 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016608 .manufacture_id = TI_OLD_ID,
16609 .model_id = TI_TMS29F002RB,
16610 .total_size = 256,
16611 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016612 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016613 .tested = TEST_UNTESTED,
16614 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016615 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016616 .block_erasers =
16617 {
16618 {
16619 .eraseblocks = {
16620 {16 * 1024, 1},
16621 {8 * 1024, 2},
16622 {32 * 1024, 1},
16623 {64 * 1024, 3},
16624 },
16625 .block_erase = erase_sector_jedec,
16626 }, {
16627 .eraseblocks = { {256 * 1024, 1} },
16628 .block_erase = erase_chip_block_jedec,
16629 },
16630 },
Sean Nelson35727f72010-01-28 23:55:12 +000016631 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016632 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016633 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016634 },
16635
16636 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016637 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016638 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016639 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016640 .manufacture_id = TI_OLD_ID,
16641 .model_id = TI_TMS29F002RT,
16642 .total_size = 256,
16643 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016644 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016645 .tested = TEST_UNTESTED,
16646 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016647 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016648 .block_erasers =
16649 {
16650 {
16651 .eraseblocks = {
16652 {64 * 1024, 3},
16653 {32 * 1024, 1},
16654 {8 * 1024, 2},
16655 {16 * 1024, 1},
16656 },
16657 .block_erase = erase_sector_jedec,
16658 }, {
16659 .eraseblocks = { {256 * 1024, 1} },
16660 .block_erase = erase_chip_block_jedec,
16661 },
16662 },
Sean Nelson35727f72010-01-28 23:55:12 +000016663 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016664 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016665 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016666 },
16667
16668 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016669 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016670 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016671 .bustype = BUS_SPI,
16672 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016673 .model_id = WINBOND_NEX_W25P16,
16674 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016675 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016676 .feature_bits = FEATURE_WRSR_WREN,
16677 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016678 .probe = probe_spi_rdid,
16679 .probe_timing = TIMING_ZERO,
16680 .block_erasers =
16681 {
16682 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016683 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016684 .block_erase = spi_block_erase_d8,
16685 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016686 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016687 .block_erase = spi_block_erase_c7,
16688 }
16689 },
16690 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16691 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016692 .write = spi_chip_write_256,
16693 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016694 .voltage = {2700, 3600},
16695 },
16696
16697 {
16698 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016699 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016700 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016701 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016702 .model_id = WINBOND_NEX_W25P32,
16703 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016704 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016705 .feature_bits = FEATURE_WRSR_WREN,
16706 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016707 .probe = probe_spi_rdid,
16708 .probe_timing = TIMING_ZERO,
16709 .block_erasers =
16710 {
16711 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016712 .eraseblocks = { {64 * 1024, 64} },
16713 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016714 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016715 .eraseblocks = { {4096 * 1024, 1} },
16716 .block_erase = spi_block_erase_c7,
16717 }
16718 },
16719 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16720 .unlock = spi_disable_blockprotect,
16721 .write = spi_chip_write_256,
16722 .read = spi_chip_read, /* Fast read (0x0B) supported */
16723 .voltage = {2700, 3600},
16724 },
16725
16726 {
16727 .vendor = "Winbond",
16728 .name = "W25P80",
16729 .bustype = BUS_SPI,
16730 .manufacture_id = WINBOND_NEX_ID,
16731 .model_id = WINBOND_NEX_W25P80,
16732 .total_size = 1024,
16733 .page_size = 256,
16734 .feature_bits = FEATURE_WRSR_WREN,
16735 .tested = TEST_UNTESTED,
16736 .probe = probe_spi_rdid,
16737 .probe_timing = TIMING_ZERO,
16738 .block_erasers =
16739 {
16740 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000016741 .eraseblocks = { {64 * 1024, 16} },
16742 .block_erase = spi_block_erase_d8,
16743 }, {
16744 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000016745 .block_erase = spi_block_erase_c7,
16746 }
16747 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016748 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016749 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016750 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016751 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016752 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000016753 },
16754
16755 {
16756 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016757 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016758 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016759 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016760 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016761 .total_size = 16384,
16762 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016763 /* supports SFDP */
16764 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000016765 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016766 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016767 .probe = probe_spi_rdid,
16768 .probe_timing = TIMING_ZERO,
16769 .block_erasers =
16770 {
16771 {
16772 .eraseblocks = { {4 * 1024, 4096} },
16773 .block_erase = spi_block_erase_20,
16774 }, {
16775 .eraseblocks = { {32 * 1024, 512} },
16776 .block_erase = spi_block_erase_52,
16777 }, {
16778 .eraseblocks = { {64 * 1024, 256} },
16779 .block_erase = spi_block_erase_d8,
16780 }, {
16781 .eraseblocks = { {16 * 1024 * 1024, 1} },
16782 .block_erase = spi_block_erase_60,
16783 }, {
16784 .eraseblocks = { {16 * 1024 * 1024, 1} },
16785 .block_erase = spi_block_erase_c7,
16786 }
16787 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016788 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000016789 .unlock = spi_disable_blockprotect,
16790 .write = spi_chip_write_256,
16791 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016792 .voltage = {2700, 3600},
16793 },
16794
16795 {
16796 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020016797 .name = "W25Q128.V..M",
16798 .bustype = BUS_SPI,
16799 .manufacture_id = WINBOND_NEX_ID,
16800 .model_id = WINBOND_NEX_W25Q128_V_M,
16801 .total_size = 16384,
16802 .page_size = 256,
16803 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16804 .tested = TEST_OK_PREW,
16805 .probe = probe_spi_rdid,
16806 .probe_timing = TIMING_ZERO,
16807 .block_erasers =
16808 {
16809 {
16810 .eraseblocks = { {4 * 1024, 4096} },
16811 .block_erase = spi_block_erase_20,
16812 }, {
16813 .eraseblocks = { {32 * 1024, 512} },
16814 .block_erase = spi_block_erase_52,
16815 }, {
16816 .eraseblocks = { {64 * 1024, 256} },
16817 .block_erase = spi_block_erase_d8,
16818 }, {
16819 .eraseblocks = { {16 * 1024 * 1024, 1} },
16820 .block_erase = spi_block_erase_60,
16821 }, {
16822 .eraseblocks = { {16 * 1024 * 1024, 1} },
16823 .block_erase = spi_block_erase_c7,
16824 }
16825 },
Alan Greena1fc01d2019-09-23 17:12:44 +100016826 .printlock = spi_prettyprint_status_register_plain,
Patrick Rudolph34323492018-10-04 14:59:40 +020016827 .unlock = spi_disable_blockprotect,
16828 .write = spi_chip_write_256,
16829 .read = spi_chip_read,
16830 .voltage = {2700, 3600},
16831 },
16832
16833 {
16834 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016835 .name = "W25Q128.W",
16836 .bustype = BUS_SPI,
16837 .manufacture_id = WINBOND_NEX_ID,
16838 .model_id = WINBOND_NEX_W25Q128_W,
16839 .total_size = 16384,
16840 .page_size = 256,
16841 /* supports SFDP */
16842 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16843 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16844 .tested = TEST_OK_PREW,
16845 .probe = probe_spi_rdid,
16846 .probe_timing = TIMING_ZERO,
16847 .block_erasers =
16848 {
16849 {
16850 .eraseblocks = { {4 * 1024, 4096} },
16851 .block_erase = spi_block_erase_20,
16852 }, {
16853 .eraseblocks = { {32 * 1024, 512} },
16854 .block_erase = spi_block_erase_52,
16855 }, {
16856 .eraseblocks = { {64 * 1024, 256} },
16857 .block_erase = spi_block_erase_d8,
16858 }, {
16859 .eraseblocks = { {16 * 1024 * 1024, 1} },
16860 .block_erase = spi_block_erase_60,
16861 }, {
16862 .eraseblocks = { {16 * 1024 * 1024, 1} },
16863 .block_erase = spi_block_erase_c7,
16864 }
16865 },
16866 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16867 .unlock = spi_disable_blockprotect,
16868 .write = spi_chip_write_256,
16869 .read = spi_chip_read,
16870 .voltage = {1650, 1950},
16871 },
16872
16873 {
16874 .vendor = "Winbond",
Peichao Wang1a119492019-11-11 15:26:41 +080016875 .name = "W25Q128.JW.DTR",
16876 .bustype = BUS_SPI,
16877 .manufacture_id = WINBOND_NEX_ID,
16878 .model_id = WINBOND_NEX_W25Q128_DTR,
16879 .total_size = 16384,
16880 .page_size = 256,
16881 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16882 .tested = TEST_OK_PREW,
16883 .probe = probe_spi_rdid,
16884 .probe_timing = TIMING_ZERO,
16885 .block_erasers =
16886 {
16887 {
16888 .eraseblocks = { {4 * 1024, 4096} },
16889 .block_erase = spi_block_erase_20,
16890 }, {
16891 .eraseblocks = { {32 * 1024, 512} },
16892 .block_erase = spi_block_erase_52,
16893 }, {
16894 .eraseblocks = { {64 * 1024, 256} },
16895 .block_erase = spi_block_erase_d8,
16896 }, {
16897 .eraseblocks = { {16 * 1024 * 1024, 1} },
16898 .block_erase = spi_block_erase_60,
16899 }, {
16900 .eraseblocks = { {16 * 1024 * 1024, 1} },
16901 .block_erase = spi_block_erase_c7,
16902 }
16903 },
16904 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16905 .unlock = spi_disable_blockprotect,
16906 .write = spi_chip_write_256,
16907 .read = spi_chip_read,
16908 .voltage = {1650, 1950},
16909 },
16910
16911 {
16912 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016913 .name = "W25Q16.V",
16914 .bustype = BUS_SPI,
16915 .manufacture_id = WINBOND_NEX_ID,
16916 .model_id = WINBOND_NEX_W25Q16_V,
16917 .total_size = 2048,
16918 .page_size = 256,
16919 /* supports SFDP */
16920 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16921 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16922 .tested = TEST_OK_PREW,
16923 .probe = probe_spi_rdid,
16924 .probe_timing = TIMING_ZERO,
16925 .block_erasers =
16926 {
16927 {
16928 .eraseblocks = { {4 * 1024, 512} },
16929 .block_erase = spi_block_erase_20,
16930 }, {
16931 .eraseblocks = { {32 * 1024, 64} },
16932 .block_erase = spi_block_erase_52,
16933 }, {
16934 .eraseblocks = { {64 * 1024, 32} },
16935 .block_erase = spi_block_erase_d8,
16936 }, {
16937 .eraseblocks = { {2 * 1024 * 1024, 1} },
16938 .block_erase = spi_block_erase_60,
16939 }, {
16940 .eraseblocks = { {2 * 1024 * 1024, 1} },
16941 .block_erase = spi_block_erase_c7,
16942 }
16943 },
16944 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16945 .unlock = spi_disable_blockprotect,
16946 .write = spi_chip_write_256,
16947 .read = spi_chip_read,
16948 .voltage = {2700, 3600},
16949 },
16950
16951 {
16952 .vendor = "Winbond",
16953 .name = "W25Q16.W",
16954 .bustype = BUS_SPI,
16955 .manufacture_id = WINBOND_NEX_ID,
16956 .model_id = WINBOND_NEX_W25Q16_W,
16957 .total_size = 2048,
16958 .page_size = 256,
16959 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16960 /* QPI enable 0x38, disable 0xFF */
16961 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16962 .tested = TEST_UNTESTED,
16963 .probe = probe_spi_rdid,
16964 .probe_timing = TIMING_ZERO,
16965 .block_erasers =
16966 {
16967 {
16968 .eraseblocks = { {4 * 1024, 512} },
16969 .block_erase = spi_block_erase_20,
16970 }, {
16971 .eraseblocks = { {32 * 1024, 64} },
16972 .block_erase = spi_block_erase_52,
16973 }, {
16974 .eraseblocks = { {64 * 1024, 32} },
16975 .block_erase = spi_block_erase_d8,
16976 }, {
16977 .eraseblocks = { {2 * 1024 * 1024, 1} },
16978 .block_erase = spi_block_erase_60,
16979 }, {
16980 .eraseblocks = { {2 * 1024 * 1024, 1} },
16981 .block_erase = spi_block_erase_c7,
16982 }
16983 },
16984 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16985 .unlock = spi_disable_blockprotect,
16986 .write = spi_chip_write_256,
16987 .read = spi_chip_read,
16988 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16989 },
16990
16991 {
16992 .vendor = "Winbond",
16993 .name = "W25Q20.W",
16994 .bustype = BUS_SPI,
16995 .manufacture_id = WINBOND_NEX_ID,
16996 .model_id = WINBOND_NEX_W25Q20_W,
16997 .total_size = 256,
16998 .page_size = 256,
16999 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17000 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17001 .tested = TEST_UNTESTED,
17002 .probe = probe_spi_rdid,
17003 .probe_timing = TIMING_ZERO,
17004 .block_erasers =
17005 {
17006 {
17007 .eraseblocks = { {4 * 1024, 64} },
17008 .block_erase = spi_block_erase_20,
17009 }, {
17010 .eraseblocks = { {32 * 1024, 8} },
17011 .block_erase = spi_block_erase_52,
17012 }, {
17013 .eraseblocks = { {64 * 1024, 4} },
17014 .block_erase = spi_block_erase_d8,
17015 }, {
17016 .eraseblocks = { {256 * 1024, 1} },
17017 .block_erase = spi_block_erase_60,
17018 }, {
17019 .eraseblocks = { {256 * 1024, 1} },
17020 .block_erase = spi_block_erase_c7,
17021 }
17022 },
17023 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17024 .unlock = spi_disable_blockprotect,
17025 .write = spi_chip_write_256,
17026 .read = spi_chip_read,
17027 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17028 },
17029
17030 {
17031 .vendor = "Winbond",
Boris Baykovaa6c3742016-06-11 18:29:01 +020017032 .name = "W25Q256.V",
17033 .bustype = BUS_SPI,
17034 .manufacture_id = WINBOND_NEX_ID,
17035 .model_id = WINBOND_NEX_W25Q256_V,
17036 .total_size = 32768,
17037 .page_size = 256,
17038 /* supports SFDP */
17039 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17040 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
Nico Huberaac81422017-11-10 22:54:13 +010017041 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
17042 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
Angel Pons3130cbd2018-09-30 19:32:30 +020017043 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017044 .probe = probe_spi_rdid,
17045 .probe_timing = TIMING_ZERO,
17046 .block_erasers =
17047 {
17048 {
17049 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020017050 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017051 }, {
17052 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020017053 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017054 }, {
17055 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020017056 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017057 }, {
17058 .eraseblocks = { {32 * 1024 * 1024, 1} },
17059 .block_erase = spi_block_erase_60,
17060 }, {
17061 .eraseblocks = { {32 * 1024 * 1024, 1} },
17062 .block_erase = spi_block_erase_c7,
17063 }
17064 },
17065 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17066 .unlock = spi_disable_blockprotect,
17067 .write = spi_chip_write_256,
17068 .read = spi_chip_read,
17069 .voltage = {2700, 3600},
17070 },
17071
17072 {
17073 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000017074 .name = "W25Q256JV_M",
17075 .bustype = BUS_SPI,
17076 .manufacture_id = WINBOND_NEX_ID,
17077 .model_id = WINBOND_NEX_W25Q256JV_M,
17078 .total_size = 32768,
17079 .page_size = 256,
17080 /* supports SFDP */
17081 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17082 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
17083 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17084 .tested = TEST_OK_PREW,
17085 .probe = probe_spi_rdid,
17086 .probe_timing = TIMING_ZERO,
17087 .block_erasers =
17088 {
17089 {
17090 .eraseblocks = { {4 * 1024, 8192} },
17091 .block_erase = spi_block_erase_21,
17092 }, {
17093 .eraseblocks = { {4 * 1024, 8192} },
17094 .block_erase = spi_block_erase_20,
17095 }, {
17096 .eraseblocks = { {32 * 1024, 1024} },
17097 .block_erase = spi_block_erase_52,
17098 }, {
17099 .eraseblocks = { {64 * 1024, 512} },
17100 .block_erase = spi_block_erase_dc,
17101 }, {
17102 .eraseblocks = { {64 * 1024, 512} },
17103 .block_erase = spi_block_erase_d8,
17104 }, {
17105 .eraseblocks = { {32 * 1024 * 1024, 1} },
17106 .block_erase = spi_block_erase_60,
17107 }, {
17108 .eraseblocks = { {32 * 1024 * 1024, 1} },
17109 .block_erase = spi_block_erase_c7,
17110 }
17111 },
17112 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17113 .unlock = spi_disable_blockprotect,
17114 .write = spi_chip_write_256,
17115 .read = spi_chip_read,
17116 .voltage = {2700, 3600},
17117 },
17118
17119 {
17120 .vendor = "Winbond",
el-coderon01209852020-04-29 12:12:53 +020017121 .name = "W25Q256.W",
17122 .bustype = BUS_SPI,
17123 .manufacture_id = WINBOND_NEX_ID,
17124 .model_id = WINBOND_NEX_W25Q256_W,
17125 .total_size = 32768,
17126 .page_size = 256,
17127 /* supports SFDP */
17128 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17129 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
17130 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
17131 .tested = TEST_OK_PREW,
17132 .probe = probe_spi_rdid,
17133 .probe_timing = TIMING_ZERO,
17134 .block_erasers =
17135 {
17136 {
17137 .eraseblocks = { {4 * 1024, 8192} },
17138 .block_erase = spi_block_erase_20,
17139 }, {
17140 .eraseblocks = { {32 * 1024, 1024} },
17141 .block_erase = spi_block_erase_52,
17142 }, {
17143 .eraseblocks = { {64 * 1024, 512} },
17144 .block_erase = spi_block_erase_d8,
17145 }, {
17146 .eraseblocks = { {32 * 1024 * 1024, 1} },
17147 .block_erase = spi_block_erase_60,
17148 }, {
17149 .eraseblocks = { {32 * 1024 * 1024, 1} },
17150 .block_erase = spi_block_erase_c7,
17151 }
17152 },
17153 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17154 .unlock = spi_disable_blockprotect,
17155 .write = spi_chip_write_256,
17156 .read = spi_chip_read,
17157 .voltage = {1650, 1950},
17158 },
17159
17160 {
17161 .vendor = "Winbond",
David Hendricks31532602020-08-16 17:14:56 -070017162 .name = "W25Q256JW_DTR",
17163 .bustype = BUS_SPI,
17164 .manufacture_id = WINBOND_NEX_ID,
17165 .model_id = WINBOND_NEX_W25Q256_DTR,
17166 .total_size = 32768,
17167 .page_size = 256,
17168 /* supports SFDP */
17169 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17170 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
17171 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17172 .tested = TEST_OK_PREW,
17173 .probe = probe_spi_rdid,
17174 .probe_timing = TIMING_ZERO,
17175 .block_erasers =
17176 {
17177 {
17178 .eraseblocks = { {4 * 1024, 8192} },
17179 .block_erase = spi_block_erase_21,
17180 }, {
17181 .eraseblocks = { {4 * 1024, 8192} },
17182 .block_erase = spi_block_erase_20,
17183 }, {
17184 .eraseblocks = { {32 * 1024, 1024} },
17185 .block_erase = spi_block_erase_52,
17186 }, {
17187 .eraseblocks = { {64 * 1024, 512} },
17188 .block_erase = spi_block_erase_dc,
17189 }, {
17190 .eraseblocks = { {64 * 1024, 512} },
17191 .block_erase = spi_block_erase_d8,
17192 }, {
17193 .eraseblocks = { {32 * 1024 * 1024, 1} },
17194 .block_erase = spi_block_erase_60,
17195 }, {
17196 .eraseblocks = { {32 * 1024 * 1024, 1} },
17197 .block_erase = spi_block_erase_c7,
17198 }
17199 },
17200 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17201 .unlock = spi_disable_blockprotect,
17202 .write = spi_chip_write_256,
17203 .read = spi_chip_read,
17204 .voltage = {1700, 1950},
17205 },
17206
17207 {
17208 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017209 .name = "W25Q32.V",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017210 .bustype = BUS_SPI,
17211 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017212 .model_id = WINBOND_NEX_W25Q32_V,
17213 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017214 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017215 /* supports SFDP */
17216 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017217 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017218 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017219 .probe = probe_spi_rdid,
17220 .probe_timing = TIMING_ZERO,
17221 .block_erasers =
17222 {
17223 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017224 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017225 .block_erase = spi_block_erase_20,
17226 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017227 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017228 .block_erase = spi_block_erase_52,
17229 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017230 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017231 .block_erase = spi_block_erase_d8,
17232 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017233 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017234 .block_erase = spi_block_erase_60,
17235 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017236 .eraseblocks = { {4 * 1024 * 1024, 1} },
17237 .block_erase = spi_block_erase_c7,
17238 }
17239 },
17240 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17241 .unlock = spi_disable_blockprotect,
17242 .write = spi_chip_write_256,
17243 .read = spi_chip_read,
17244 .voltage = {2700, 3600},
17245 },
17246
17247 {
17248 .vendor = "Winbond",
17249 .name = "W25Q32.W",
17250 .bustype = BUS_SPI,
17251 .manufacture_id = WINBOND_NEX_ID,
17252 .model_id = WINBOND_NEX_W25Q32_W,
17253 .total_size = 4096,
17254 .page_size = 256,
17255 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17256 /* QPI enable 0x38, disable 0xFF */
17257 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17258 .tested = TEST_OK_PREW,
17259 .probe = probe_spi_rdid,
17260 .probe_timing = TIMING_ZERO,
17261 .block_erasers =
17262 {
17263 {
17264 .eraseblocks = { {4 * 1024, 1024} },
17265 .block_erase = spi_block_erase_20,
17266 }, {
17267 .eraseblocks = { {32 * 1024, 128} },
17268 .block_erase = spi_block_erase_52,
17269 }, {
17270 .eraseblocks = { {64 * 1024, 64} },
17271 .block_erase = spi_block_erase_d8,
17272 }, {
17273 .eraseblocks = { {4 * 1024 * 1024, 1} },
17274 .block_erase = spi_block_erase_60,
17275 }, {
17276 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017277 .block_erase = spi_block_erase_c7,
17278 }
17279 },
17280 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17281 .unlock = spi_disable_blockprotect,
17282 .write = spi_chip_write_256,
17283 .read = spi_chip_read,
17284 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17285 },
17286
17287 {
17288 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017289 .name = "W25Q40.V",
17290 .bustype = BUS_SPI,
17291 .manufacture_id = WINBOND_NEX_ID,
17292 .model_id = WINBOND_NEX_W25Q40_V,
17293 .total_size = 512,
17294 .page_size = 256,
17295 /* supports SFDP */
17296 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17297 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17298 .tested = TEST_OK_PREW,
17299 .probe = probe_spi_rdid,
17300 .probe_timing = TIMING_ZERO,
17301 .block_erasers =
17302 {
17303 {
17304 .eraseblocks = { {4 * 1024, 128} },
17305 .block_erase = spi_block_erase_20,
17306 }, {
17307 .eraseblocks = { {32 * 1024, 16} },
17308 .block_erase = spi_block_erase_52,
17309 }, {
17310 .eraseblocks = { {64 * 1024, 8} },
17311 .block_erase = spi_block_erase_d8,
17312 }, {
17313 .eraseblocks = { {512 * 1024, 1} },
17314 .block_erase = spi_block_erase_60,
17315 }, {
17316 .eraseblocks = { {512 * 1024, 1} },
17317 .block_erase = spi_block_erase_c7,
17318 }
17319 },
17320 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17321 .unlock = spi_disable_blockprotect,
17322 .write = spi_chip_write_256, /* Multi I/O supported */
17323 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17324 .voltage = {2700, 3600},
17325 },
17326
17327 {
17328 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020017329 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017330 .bustype = BUS_SPI,
17331 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020017332 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017333 .total_size = 512,
17334 .page_size = 256,
17335 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17336 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020017337 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017338 .probe = probe_spi_rdid,
17339 .probe_timing = TIMING_ZERO,
17340 .block_erasers =
17341 {
17342 {
17343 .eraseblocks = { {4 * 1024, 128} },
17344 .block_erase = spi_block_erase_20,
17345 }, {
17346 .eraseblocks = { {32 * 1024, 16} },
17347 .block_erase = spi_block_erase_52,
17348 }, {
17349 .eraseblocks = { {64 * 1024, 8} },
17350 .block_erase = spi_block_erase_d8,
17351 }, {
17352 .eraseblocks = { {512 * 1024, 1} },
17353 .block_erase = spi_block_erase_60,
17354 }, {
17355 .eraseblocks = { {512 * 1024, 1} },
17356 .block_erase = spi_block_erase_c7,
17357 }
17358 },
17359 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17360 .unlock = spi_disable_blockprotect,
17361 .write = spi_chip_write_256,
17362 .read = spi_chip_read,
17363 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17364 },
17365
17366 {
17367 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020017368 .name = "W25Q40EW",
17369 .bustype = BUS_SPI,
17370 .manufacture_id = WINBOND_NEX_ID,
17371 .model_id = WINBOND_NEX_W25Q40EW,
17372 .total_size = 512,
17373 .page_size = 256,
17374 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17375 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green07b8a172019-09-23 16:47:05 +100017376 .tested = TEST_OK_PREW,
Nico Huber25683572018-03-30 13:50:13 +020017377 .probe = probe_spi_rdid,
17378 .probe_timing = TIMING_ZERO,
17379 .block_erasers =
17380 {
17381 {
17382 .eraseblocks = { {4 * 1024, 128} },
17383 .block_erase = spi_block_erase_20,
17384 }, {
17385 .eraseblocks = { {32 * 1024, 16} },
17386 .block_erase = spi_block_erase_52,
17387 }, {
17388 .eraseblocks = { {64 * 1024, 8} },
17389 .block_erase = spi_block_erase_d8,
17390 }, {
17391 .eraseblocks = { {512 * 1024, 1} },
17392 .block_erase = spi_block_erase_60,
17393 }, {
17394 .eraseblocks = { {512 * 1024, 1} },
17395 .block_erase = spi_block_erase_c7,
17396 }
17397 },
17398 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17399 .unlock = spi_disable_blockprotect,
17400 .write = spi_chip_write_256,
17401 .read = spi_chip_read,
17402 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
17403 },
17404
Stanislav Sedovf5775442018-03-07 14:16:51 -080017405 {
17406 .vendor = "Winbond",
Joel Stanley55439612019-07-27 19:25:35 +093017407 .name = "W25Q512JV",
17408 .bustype = BUS_SPI,
17409 .manufacture_id = WINBOND_NEX_ID,
17410 .model_id = WINBOND_NEX_W25Q512JV,
17411 .total_size = 64 * 1024,
17412 .page_size = 256,
17413 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17414 .tested = TEST_OK_PREW,
17415 .probe = probe_spi_rdid,
17416 .probe_timing = TIMING_ZERO,
17417 .block_erasers =
17418 {
17419 {
17420 .eraseblocks = { {4 * 1024, 16384} },
17421 .block_erase = spi_block_erase_21,
17422 }, {
17423 .eraseblocks = { {4 * 1024, 16384} },
17424 .block_erase = spi_block_erase_20,
17425 }, {
17426 .eraseblocks = { {32 * 1024, 2048} },
17427 .block_erase = spi_block_erase_52,
17428 }, {
17429 .eraseblocks = { {64 * 1024, 1024} },
17430 .block_erase = spi_block_erase_dc,
17431 }, {
17432 .eraseblocks = { {64 * 1024, 1024} },
17433 .block_erase = spi_block_erase_d8,
17434 }, {
17435 .eraseblocks = { {64 * 1024 * 1024, 1} },
17436 .block_erase = spi_block_erase_60,
17437 }, {
17438 .eraseblocks = { {64 * 1024 * 1024, 1} },
17439 .block_erase = spi_block_erase_c7,
17440 }
17441 },
17442 .printlock = spi_prettyprint_status_register_plain,
17443 .unlock = spi_disable_blockprotect,
17444 .write = spi_chip_write_256,
17445 .read = spi_chip_read,
17446 .voltage = {2700, 3600},
17447 },
17448
17449 {
17450 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017451 .name = "W25Q64.V",
Stanislav Sedovf5775442018-03-07 14:16:51 -080017452 .bustype = BUS_SPI,
17453 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017454 .model_id = WINBOND_NEX_W25Q64_V,
17455 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080017456 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017457 /* supports SFDP */
17458 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Stanislav Sedovf5775442018-03-07 14:16:51 -080017459 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17460 .tested = TEST_OK_PREW,
17461 .probe = probe_spi_rdid,
17462 .probe_timing = TIMING_ZERO,
17463 .block_erasers =
17464 {
17465 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017466 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017467 .block_erase = spi_block_erase_20,
17468 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017469 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017470 .block_erase = spi_block_erase_52,
17471 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017472 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017473 .block_erase = spi_block_erase_d8,
17474 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017475 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017476 .block_erase = spi_block_erase_60,
17477 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017478 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017479 .block_erase = spi_block_erase_c7,
17480 }
17481 },
17482 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17483 .unlock = spi_disable_blockprotect,
17484 .write = spi_chip_write_256,
17485 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017486 .voltage = {2700, 3600},
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017487 },
17488
17489 {
17490 .vendor = "Winbond",
17491 .name = "W25Q64.W",
17492 .bustype = BUS_SPI,
17493 .manufacture_id = WINBOND_NEX_ID,
17494 .model_id = WINBOND_NEX_W25Q64_W,
17495 .total_size = 8192,
17496 .page_size = 256,
17497 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17498 /* QPI enable 0x38, disable 0xFF */
17499 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000017500 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017501 .probe = probe_spi_rdid,
17502 .probe_timing = TIMING_ZERO,
17503 .block_erasers =
17504 {
17505 {
17506 .eraseblocks = { {4 * 1024, 2048} },
17507 .block_erase = spi_block_erase_20,
17508 }, {
17509 .eraseblocks = { {32 * 1024, 256} },
17510 .block_erase = spi_block_erase_52,
17511 }, {
17512 .eraseblocks = { {64 * 1024, 128} },
17513 .block_erase = spi_block_erase_d8,
17514 }, {
17515 .eraseblocks = { {8 * 1024 * 1024, 1} },
17516 .block_erase = spi_block_erase_60,
17517 }, {
17518 .eraseblocks = { {8 * 1024 * 1024, 1} },
17519 .block_erase = spi_block_erase_c7,
17520 }
17521 },
17522 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17523 .unlock = spi_disable_blockprotect,
17524 .write = spi_chip_write_256,
17525 .read = spi_chip_read,
17526 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000017527 },
17528
17529 {
17530 .vendor = "Winbond",
Scott Chao1bbc5012020-04-08 22:10:50 +080017531 .name = "W25Q64JW",
17532 .bustype = BUS_SPI,
17533 .manufacture_id = WINBOND_NEX_ID,
17534 .model_id = WINBOND_NEX_W25Q64JW,
17535 .total_size = 8192,
17536 .page_size = 256,
17537 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17538 /* QPI enable 0x38, disable 0xFF */
17539 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17540 .tested = TEST_OK_PREW,
17541 .probe = probe_spi_rdid,
17542 .probe_timing = TIMING_ZERO,
17543 .block_erasers =
17544 {
17545 {
17546 .eraseblocks = { {4 * 1024, 2048} },
17547 .block_erase = spi_block_erase_20,
17548 }, {
17549 .eraseblocks = { {32 * 1024, 256} },
17550 .block_erase = spi_block_erase_52,
17551 }, {
17552 .eraseblocks = { {64 * 1024, 128} },
17553 .block_erase = spi_block_erase_d8,
17554 }, {
17555 .eraseblocks = { {8 * 1024 * 1024, 1} },
17556 .block_erase = spi_block_erase_60,
17557 }, {
17558 .eraseblocks = { {8 * 1024 * 1024, 1} },
17559 .block_erase = spi_block_erase_c7,
17560 }
17561 },
17562 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17563 .unlock = spi_disable_blockprotect,
17564 .write = spi_chip_write_256,
17565 .read = spi_chip_read,
17566 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17567 },
17568
17569 {
17570 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017571 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020017572 .bustype = BUS_SPI,
17573 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017574 .model_id = WINBOND_NEX_W25Q80_V,
17575 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020017576 .page_size = 256,
17577 /* supports SFDP */
17578 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100017579 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks48729d32017-12-08 14:44:07 -080017580 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020017581 .probe = probe_spi_rdid,
17582 .probe_timing = TIMING_ZERO,
17583 .block_erasers =
17584 {
17585 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017586 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017587 .block_erase = spi_block_erase_20,
17588 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017589 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017590 .block_erase = spi_block_erase_52,
17591 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017592 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017593 .block_erase = spi_block_erase_d8,
17594 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017595 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017596 .block_erase = spi_block_erase_60,
17597 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017598 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017599 .block_erase = spi_block_erase_c7,
17600 }
17601 },
17602 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17603 .unlock = spi_disable_blockprotect,
17604 .write = spi_chip_write_256,
17605 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017606 .voltage = {2700, 3600},
17607 },
17608
17609 {
17610 .vendor = "Winbond",
17611 .name = "W25Q80BW",
17612 .bustype = BUS_SPI,
17613 .manufacture_id = WINBOND_NEX_ID,
17614 .model_id = WINBOND_NEX_W25Q80BW,
17615 .total_size = 1024,
17616 .page_size = 256,
17617 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17618 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17619 .tested = TEST_OK_PREW,
17620 .probe = probe_spi_rdid,
17621 .probe_timing = TIMING_ZERO,
17622 .block_erasers =
17623 {
17624 {
17625 .eraseblocks = { {4 * 1024, 256} },
17626 .block_erase = spi_block_erase_20,
17627 }, {
17628 .eraseblocks = { {32 * 1024, 32} },
17629 .block_erase = spi_block_erase_52,
17630 }, {
17631 .eraseblocks = { {64 * 1024, 16} },
17632 .block_erase = spi_block_erase_d8,
17633 }, {
17634 .eraseblocks = { {1 * 1024 * 1024, 1} },
17635 .block_erase = spi_block_erase_60,
17636 }, {
17637 .eraseblocks = { {1 * 1024 * 1024, 1} },
17638 .block_erase = spi_block_erase_c7,
17639 }
17640 },
17641 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17642 .unlock = spi_disable_blockprotect,
17643 .write = spi_chip_write_256,
17644 .read = spi_chip_read,
17645 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17646 },
17647
17648 {
17649 .vendor = "Winbond",
17650 .name = "W25Q80EW",
17651 .bustype = BUS_SPI,
17652 .manufacture_id = WINBOND_NEX_ID,
17653 .model_id = WINBOND_NEX_W25Q80EW,
17654 .total_size = 1024,
17655 .page_size = 256,
17656 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17657 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17658 .tested = TEST_OK_PREW,
17659 .probe = probe_spi_rdid,
17660 .probe_timing = TIMING_ZERO,
17661 .block_erasers =
17662 {
17663 {
17664 .eraseblocks = { {4 * 1024, 256} },
17665 .block_erase = spi_block_erase_20,
17666 }, {
17667 .eraseblocks = { {32 * 1024, 32} },
17668 .block_erase = spi_block_erase_52,
17669 }, {
17670 .eraseblocks = { {64 * 1024, 16} },
17671 .block_erase = spi_block_erase_d8,
17672 }, {
17673 .eraseblocks = { {1 * 1024 * 1024, 1} },
17674 .block_erase = spi_block_erase_60,
17675 }, {
17676 .eraseblocks = { {1 * 1024 * 1024, 1} },
17677 .block_erase = spi_block_erase_c7,
17678 }
17679 },
17680 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17681 .unlock = spi_disable_blockprotect,
17682 .write = spi_chip_write_256,
17683 .read = spi_chip_read,
17684 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nico Huber70eed9f2017-04-24 22:19:27 +020017685 },
17686
17687 {
17688 .vendor = "Winbond",
Jacob Appelbaumebbdc022019-09-02 09:10:43 -040017689 .name = "W25X05",
17690 .bustype = BUS_SPI,
17691 .manufacture_id = WINBOND_NEX_ID,
17692 .model_id = WINBOND_NEX_W25X05,
17693 .total_size = 64,
17694 .page_size = 256,
17695 .feature_bits = FEATURE_WRSR_WREN,
17696 .tested = TEST_OK_PREW,
17697 .probe = probe_spi_rdid,
17698 .probe_timing = TIMING_ZERO,
17699 .block_erasers =
17700 {
17701 {
17702 .eraseblocks = { {4 * 1024, 16} },
17703 .block_erase = spi_block_erase_20,
17704 }, {
17705 .eraseblocks = { {32 * 1024, 2} },
17706 .block_erase = spi_block_erase_52,
17707 }, {
17708 .eraseblocks = { {64 * 1024, 1} },
17709 .block_erase = spi_block_erase_d8,
17710 }
17711 },
17712 .printlock = spi_prettyprint_status_register_plain,
17713 .unlock = spi_disable_blockprotect,
17714 .write = spi_chip_write_256,
17715 .read = spi_chip_read,
17716 .voltage = {2300, 3600},
17717 },
17718
17719 {
17720 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017721 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017722 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017723 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017724 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017725 .total_size = 128,
17726 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017727 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000017728 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017729 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017730 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017731 .block_erasers =
17732 {
17733 {
17734 .eraseblocks = { {4 * 1024, 32} },
17735 .block_erase = spi_block_erase_20,
17736 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017737 .eraseblocks = { {64 * 1024, 2} },
17738 .block_erase = spi_block_erase_d8,
17739 }, {
17740 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017741 .block_erase = spi_block_erase_c7,
17742 }
17743 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017744 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017745 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000017746 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017747 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017748 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017749 },
17750
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017751 {
17752 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017753 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017754 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000017755 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017756 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000017757 .total_size = 2048,
17758 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017759 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000017760 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000017761 .probe = probe_spi_rdid,
17762 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017763 .block_erasers =
17764 {
17765 {
17766 .eraseblocks = { {4 * 1024, 512} },
17767 .block_erase = spi_block_erase_20,
17768 }, {
17769 .eraseblocks = { {32 * 1024, 64} },
17770 .block_erase = spi_block_erase_52,
17771 }, {
17772 .eraseblocks = { {64 * 1024, 32} },
17773 .block_erase = spi_block_erase_d8,
17774 }, {
17775 .eraseblocks = { {2 * 1024 * 1024, 1} },
17776 .block_erase = spi_block_erase_60,
17777 }, {
17778 .eraseblocks = { {2 * 1024 * 1024, 1} },
17779 .block_erase = spi_block_erase_c7,
17780 }
17781 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017782 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017783 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000017784 .write = spi_chip_write_256,
17785 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017786 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000017787 },
17788
17789 {
17790 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017791 .name = "W25X20",
17792 .bustype = BUS_SPI,
17793 .manufacture_id = WINBOND_NEX_ID,
17794 .model_id = WINBOND_NEX_W25X20,
17795 .total_size = 256,
17796 .page_size = 256,
17797 .feature_bits = FEATURE_WRSR_WREN,
17798 .tested = TEST_OK_PREW,
17799 .probe = probe_spi_rdid,
17800 .probe_timing = TIMING_ZERO,
17801 .block_erasers =
17802 {
17803 {
17804 .eraseblocks = { {4 * 1024, 64} },
17805 .block_erase = spi_block_erase_20,
17806 }, {
17807 .eraseblocks = { {64 * 1024, 4} },
17808 .block_erase = spi_block_erase_d8,
17809 }, {
17810 .eraseblocks = { {256 * 1024, 1} },
17811 .block_erase = spi_block_erase_c7,
17812 }
17813 },
17814 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17815 .unlock = spi_disable_blockprotect,
17816 .write = spi_chip_write_256,
17817 .read = spi_chip_read,
17818 .voltage = {2700, 3600},
17819 },
17820
17821 {
17822 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017823 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017824 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000017825 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017826 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000017827 .total_size = 4096,
17828 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017829 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000017830 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000017831 .probe = probe_spi_rdid,
17832 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017833 .block_erasers =
17834 {
17835 {
17836 .eraseblocks = { {4 * 1024, 1024} },
17837 .block_erase = spi_block_erase_20,
17838 }, {
17839 .eraseblocks = { {32 * 1024, 128} },
17840 .block_erase = spi_block_erase_52,
17841 }, {
17842 .eraseblocks = { {64 * 1024, 64} },
17843 .block_erase = spi_block_erase_d8,
17844 }, {
17845 .eraseblocks = { {4 * 1024 * 1024, 1} },
17846 .block_erase = spi_block_erase_60,
17847 }, {
17848 .eraseblocks = { {4 * 1024 * 1024, 1} },
17849 .block_erase = spi_block_erase_c7,
17850 }
17851 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017852 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017853 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000017854 .write = spi_chip_write_256,
17855 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017856 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000017857 },
17858
17859 {
17860 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017861 .name = "W25X40",
17862 .bustype = BUS_SPI,
17863 .manufacture_id = WINBOND_NEX_ID,
17864 .model_id = WINBOND_NEX_W25X40,
17865 .total_size = 512,
17866 .page_size = 256,
17867 .feature_bits = FEATURE_WRSR_WREN,
17868 .tested = TEST_OK_PREW,
17869 .probe = probe_spi_rdid,
17870 .probe_timing = TIMING_ZERO,
17871 .block_erasers =
17872 {
17873 {
17874 .eraseblocks = { {4 * 1024, 128} },
17875 .block_erase = spi_block_erase_20,
17876 }, {
17877 .eraseblocks = { {64 * 1024, 8} },
17878 .block_erase = spi_block_erase_d8,
17879 }, {
17880 .eraseblocks = { {512 * 1024, 1} },
17881 .block_erase = spi_block_erase_c7,
17882 }
17883 },
17884 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17885 .unlock = spi_disable_blockprotect,
17886 .write = spi_chip_write_256,
17887 .read = spi_chip_read,
17888 .voltage = {2700, 3600},
17889 },
17890
17891 {
17892 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017893 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017894 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000017895 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017896 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000017897 .total_size = 8192,
17898 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017899 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000017900 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000017901 .probe = probe_spi_rdid,
17902 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017903 .block_erasers =
17904 {
17905 {
17906 .eraseblocks = { {4 * 1024, 2048} },
17907 .block_erase = spi_block_erase_20,
17908 }, {
17909 .eraseblocks = { {32 * 1024, 256} },
17910 .block_erase = spi_block_erase_52,
17911 }, {
17912 .eraseblocks = { {64 * 1024, 128} },
17913 .block_erase = spi_block_erase_d8,
17914 }, {
17915 .eraseblocks = { {8 * 1024 * 1024, 1} },
17916 .block_erase = spi_block_erase_60,
17917 }, {
17918 .eraseblocks = { {8 * 1024 * 1024, 1} },
17919 .block_erase = spi_block_erase_c7,
17920 }
17921 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017922 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017923 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000017924 .write = spi_chip_write_256,
17925 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017926 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000017927 },
17928
17929 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100017930 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017931 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100017932 .bustype = BUS_SPI,
17933 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017934 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100017935 .total_size = 1024,
17936 .page_size = 256,
17937 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017938 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100017939 .probe = probe_spi_rdid,
17940 .probe_timing = TIMING_ZERO,
17941 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080017942 {
17943 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017944 .eraseblocks = { {4 * 1024, 256} },
17945 .block_erase = spi_block_erase_20,
17946 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080017947 .eraseblocks = { {64 * 1024, 16} },
17948 .block_erase = spi_block_erase_d8,
17949 }, {
17950 .eraseblocks = { {1024 * 1024, 1} },
17951 .block_erase = spi_block_erase_c7,
17952 }
17953 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100017954 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17955 .unlock = spi_disable_blockprotect,
17956 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017957 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100017958 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080017959 },
17960
Alan Greenf29ea362019-06-27 17:14:02 +100017961 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
17962 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000017963 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000017964 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017965 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017966 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017967 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017968 .total_size = 128,
17969 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000017970 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000017971 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017972 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017973 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017974 .block_erasers =
17975 {
17976 {
17977 .eraseblocks = { {128 * 1024, 1} },
17978 .block_erase = erase_chip_block_jedec,
17979 }
17980 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017981 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017982 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000017983 },
17984
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017985 {
17986 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017987 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
17988 .bustype = BUS_PARALLEL,
17989 .manufacture_id = WINBOND_ID,
17990 .model_id = WINBOND_W29C010,
17991 .total_size = 128,
17992 .page_size = 128,
17993 .feature_bits = FEATURE_LONG_RESET,
17994 .tested = TEST_OK_PREW,
17995 .probe = probe_w29ee011,
17996 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
17997 .block_erasers =
17998 {
17999 {
18000 .eraseblocks = { {128 * 1024, 1} },
18001 .block_erase = erase_chip_block_jedec,
18002 }
18003 },
18004 .write = write_jedec,
18005 .read = read_memmapped,
18006 },
18007
18008 {
18009 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018010 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018011 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018012 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018013 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018014 .total_size = 256,
18015 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018016 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018017 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018018 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018019 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018020 .block_erasers =
18021 {
18022 {
18023 .eraseblocks = { {256 * 1024, 1} },
18024 .block_erase = erase_chip_block_jedec,
18025 }
18026 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018027 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018028 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018029 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018030 },
18031
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018032 {
18033 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018034 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018035 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018036 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018037 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018038 .total_size = 512,
18039 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000018040 .feature_bits = FEATURE_LONG_RESET,
18041 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018042 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000018043 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018044 .block_erasers =
18045 {
18046 {
18047 .eraseblocks = { {512 * 1024, 1} },
18048 .block_erase = erase_chip_block_jedec,
18049 }
18050 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018051 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018052 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018053 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018054 },
18055
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018056 {
18057 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018058 .name = "W29C512A/W29EE512",
18059 .bustype = BUS_PARALLEL,
18060 .manufacture_id = WINBOND_ID,
18061 .model_id = WINBOND_W29C512A,
18062 .total_size = 64,
18063 .page_size = 128,
18064 .feature_bits = FEATURE_LONG_RESET,
18065 .tested = TEST_OK_PREW,
18066 .probe = probe_jedec,
18067 .probe_timing = 10,
18068 .block_erasers =
18069 {
18070 {
18071 .eraseblocks = { {64 * 1024, 1} },
18072 .block_erase = erase_chip_block_jedec,
18073 }
18074 },
18075 .write = write_jedec,
18076 .read = read_memmapped,
18077 .voltage = {4500, 5500},
18078 },
18079
18080 {
18081 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018082 .name = "W29GL032CB",
18083 .bustype = BUS_PARALLEL,
18084 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18085 .model_id = WINBOND_W29GL032CB,
18086 .total_size = 4096,
18087 .page_size = 128 * 1024, /* actual page size is 16 */
18088 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18089 .tested = TEST_UNTESTED,
18090 .probe = probe_jedec_29gl,
18091 .probe_timing = TIMING_ZERO,
18092 .block_erasers =
18093 {
18094 {
18095 .eraseblocks = {
18096 {8 * 1024, 8},
18097 {64 * 1024, 63},
18098 },
18099 .block_erase = erase_sector_jedec,
18100 }, {
18101 .eraseblocks = { {4 * 1024 * 1024, 1} },
18102 .block_erase = erase_chip_block_jedec,
18103 },
18104 },
18105 .write = write_jedec_1,
18106 .read = read_memmapped,
18107 .voltage = {2700, 3600},
18108 },
18109
18110 {
18111 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018112 .name = "W29GL032CH/L",
18113 .bustype = BUS_PARALLEL,
18114 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18115 .model_id = WINBOND_W29GL032CHL,
18116 .total_size = 4096,
18117 .page_size = 128 * 1024, /* actual page size is 16 */
18118 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18119 .tested = TEST_UNTESTED,
18120 .probe = probe_jedec_29gl,
18121 .probe_timing = TIMING_ZERO,
18122 .block_erasers =
18123 {
18124 {
18125 .eraseblocks = { {64 * 1024, 64} },
18126 .block_erase = erase_sector_jedec,
18127 }, {
18128 .eraseblocks = { {4 * 1024 * 1024, 1} },
18129 .block_erase = erase_chip_block_jedec,
18130 },
18131 },
18132 .write = write_jedec_1,
18133 .read = read_memmapped,
18134 .voltage = {2700, 3600},
18135 },
18136
18137 {
18138 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018139 .name = "W29GL032CT",
18140 .bustype = BUS_PARALLEL,
18141 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18142 .model_id = WINBOND_W29GL032CT,
18143 .total_size = 4096,
18144 .page_size = 128 * 1024, /* actual page size is 16 */
18145 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18146 .tested = TEST_UNTESTED,
18147 .probe = probe_jedec_29gl,
18148 .probe_timing = TIMING_ZERO,
18149 .block_erasers =
18150 {
18151 {
18152 .eraseblocks = {
18153 {64 * 1024, 63},
18154 {8 * 1024, 8},
18155 },
18156 .block_erase = erase_sector_jedec,
18157 }, {
18158 .eraseblocks = { {4 * 1024 * 1024, 1} },
18159 .block_erase = erase_chip_block_jedec,
18160 },
18161 },
18162 .write = write_jedec_1,
18163 .read = read_memmapped,
18164 .voltage = {2700, 3600},
18165 },
18166
18167 {
18168 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018169 .name = "W29GL064CB",
18170 .bustype = BUS_PARALLEL,
18171 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18172 .model_id = WINBOND_W29GL064CB,
18173 .total_size = 8192,
18174 .page_size = 128 * 1024, /* actual page size is 16 */
18175 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18176 .tested = TEST_UNTESTED,
18177 .probe = probe_jedec_29gl,
18178 .probe_timing = TIMING_ZERO,
18179 .block_erasers =
18180 {
18181 {
18182 .eraseblocks = {
18183 {8 * 1024, 8},
18184 {64 * 1024, 127},
18185 },
18186 .block_erase = erase_sector_jedec,
18187 }, {
18188 .eraseblocks = { {8 * 1024 * 1024, 1} },
18189 .block_erase = erase_chip_block_jedec,
18190 },
18191 },
18192 .write = write_jedec_1,
18193 .read = read_memmapped,
18194 .voltage = {2700, 3600},
18195 },
18196
18197 {
18198 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018199 .name = "W29GL064CH/L",
18200 .bustype = BUS_PARALLEL,
18201 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18202 .model_id = WINBOND_W29GL064CHL,
18203 .total_size = 8192,
18204 .page_size = 128 * 1024, /* actual page size is 16 */
18205 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18206 .tested = TEST_UNTESTED,
18207 .probe = probe_jedec_29gl,
18208 .probe_timing = TIMING_ZERO,
18209 .block_erasers =
18210 {
18211 {
18212 .eraseblocks = { {64 * 1024, 128} },
18213 .block_erase = erase_sector_jedec,
18214 }, {
18215 .eraseblocks = { {8 * 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",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018226 .name = "W29GL064CT",
18227 .bustype = BUS_PARALLEL,
18228 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18229 .model_id = WINBOND_W29GL064CT,
18230 .total_size = 8192,
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 = {
18240 {64 * 1024, 127},
18241 {8 * 1024, 8},
18242 },
18243 .block_erase = erase_sector_jedec,
18244 }, {
18245 .eraseblocks = { {8 * 1024 * 1024, 1} },
18246 .block_erase = erase_chip_block_jedec,
18247 },
18248 },
18249 .write = write_jedec_1,
18250 .read = read_memmapped,
18251 .voltage = {2700, 3600},
18252 },
18253
18254 {
18255 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018256 .name = "W29GL128C",
18257 .bustype = BUS_PARALLEL,
18258 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18259 .model_id = WINBOND_W29GL128CHL,
18260 .total_size = 16384,
18261 .page_size = 128 * 1024, /* actual page size is 16 */
18262 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18263 .tested = TEST_UNTESTED,
18264 .probe = probe_jedec_29gl,
18265 .probe_timing = TIMING_ZERO,
18266 .block_erasers =
18267 {
18268 {
18269 .eraseblocks = { {128 * 1024, 128} },
18270 .block_erase = erase_sector_jedec,
18271 }, {
18272 .eraseblocks = { {16 * 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",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000018283 .name = "W39F010",
18284 .bustype = BUS_PARALLEL,
18285 .manufacture_id = WINBOND_ID,
18286 .model_id = WINBOND_W39F010,
18287 .total_size = 128,
18288 .page_size = 4 * 1024,
18289 .feature_bits = FEATURE_EITHER_RESET,
18290 .tested = TEST_OK_PREW,
18291 .probe = probe_jedec,
18292 .probe_timing = 10,
18293 .block_erasers =
18294 {
18295 {
18296 .eraseblocks = { {4 * 1024, 32} },
18297 .block_erase = erase_block_jedec,
18298 }, {
18299 .eraseblocks = { {128 * 1024, 1} },
18300 .block_erase = erase_chip_block_jedec,
18301 }
18302 },
18303 .printlock = printlock_w39f010,
18304 .write = write_jedec_1,
18305 .read = read_memmapped,
18306 .voltage = {4500, 5500},
18307 },
18308
18309 {
18310 .vendor = "Winbond",
18311 .name = "W39L010",
18312 .bustype = BUS_PARALLEL,
18313 .manufacture_id = WINBOND_ID,
18314 .model_id = WINBOND_W39L010,
18315 .total_size = 128,
18316 .page_size = 4 * 1024,
18317 .feature_bits = FEATURE_EITHER_RESET,
18318 .tested = TEST_UNTESTED,
18319 .probe = probe_jedec,
18320 .probe_timing = 10,
18321 .block_erasers =
18322 {
18323 {
18324 .eraseblocks = { {4 * 1024, 32} },
18325 .block_erase = erase_block_jedec,
18326 }, {
18327 .eraseblocks = { {128 * 1024, 1} },
18328 .block_erase = erase_chip_block_jedec,
18329 }
18330 },
18331 .printlock = printlock_w39l010,
18332 .write = write_jedec_1,
18333 .read = read_memmapped,
18334 .voltage = {3000, 3600},
18335 },
18336
18337 {
18338 .vendor = "Winbond",
18339 .name = "W39L020",
18340 .bustype = BUS_PARALLEL,
18341 .manufacture_id = WINBOND_ID,
18342 .model_id = WINBOND_W39L020,
18343 .total_size = 256,
18344 .page_size = 4 * 1024,
18345 .feature_bits = FEATURE_EITHER_RESET,
18346 .tested = TEST_UNTESTED,
18347 .probe = probe_jedec,
18348 .probe_timing = 10,
18349 .block_erasers =
18350 {
18351 {
18352 .eraseblocks = { {4 * 1024, 64} },
18353 .block_erase = erase_block_jedec,
18354 }, {
18355 .eraseblocks = { {64 * 1024, 4} },
18356 .block_erase = erase_sector_jedec,
18357 }, {
18358 .eraseblocks = { {256 * 1024, 1} },
18359 .block_erase = erase_chip_block_jedec,
18360 }
18361 },
18362 .printlock = printlock_w39l020,
18363 .write = write_jedec_1,
18364 .read = read_memmapped,
18365 .voltage = {3000, 3600},
18366 },
18367
18368 {
18369 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000018370 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018371 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000018372 .manufacture_id = WINBOND_ID,
18373 .model_id = WINBOND_W39L040,
18374 .total_size = 512,
18375 .page_size = 64 * 1024,
18376 .feature_bits = FEATURE_EITHER_RESET,
18377 .tested = TEST_OK_PR,
18378 .probe = probe_jedec,
18379 .probe_timing = 10,
18380 .block_erasers =
18381 {
18382 {
18383 .eraseblocks = { {4 * 1024, 128} },
18384 .block_erase = erase_block_jedec,
18385 }, {
18386 .eraseblocks = { {64 * 1024, 8} },
18387 .block_erase = erase_sector_jedec,
18388 }, {
18389 .eraseblocks = { {512 * 1024, 1} },
18390 .block_erase = erase_chip_block_jedec,
18391 }
18392 },
18393 .printlock = printlock_w39l040,
18394 .write = write_jedec_1,
18395 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018396 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000018397 },
18398
18399 {
18400 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018401 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018402 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018403 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018404 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018405 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018406 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018407 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000018408 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018409 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000018410 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018411 .block_erasers =
18412 {
18413 {
18414 .eraseblocks = { {64 * 1024, 8} },
18415 .block_erase = erase_sector_jedec,
18416 }, {
18417 .eraseblocks = { {512 * 1024, 1} },
18418 .block_erase = erase_chip_block_jedec,
18419 }
18420 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018421 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000018422 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018423 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018424 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018425 },
18426
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018427 {
18428 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018429 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018430 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018431 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018432 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018433 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018434 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018435 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000018436 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018437 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000018438 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018439 .block_erasers =
18440 {
18441 {
18442 .eraseblocks = { {64 * 1024, 8} },
18443 .block_erase = erase_sector_jedec,
18444 }, {
18445 .eraseblocks = { {512 * 1024, 1} },
18446 .block_erase = erase_chip_block_jedec,
18447 }
18448 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018449 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000018450 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018451 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018452 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018453 },
18454
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018455 {
18456 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018457 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018458 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018459 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018460 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018461 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018462 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018463 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000018464 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000018465 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018466 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018467 .block_erasers =
18468 {
18469 {
18470 .eraseblocks = { {64 * 1024, 8} },
18471 .block_erase = erase_sector_jedec,
18472 }, {
18473 .eraseblocks = { {512 * 1024, 1} },
18474 .block_erase = erase_chip_block_jedec,
18475 }
18476 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000018477 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000018478 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018479 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018480 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018481 },
18482
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018483 {
18484 .vendor = "Winbond",
18485 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018486 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018487 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018488 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018489 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018490 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000018491 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000018492 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018493 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000018494 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018495 .block_erasers =
18496 {
18497 {
18498 .eraseblocks = { {4 * 1024, 128} },
18499 .block_erase = erase_block_jedec,
18500 }, {
18501 .eraseblocks = { {64 * 1024, 8} },
18502 .block_erase = erase_sector_jedec,
18503 }, {
18504 .eraseblocks = { {512 * 1024, 1} },
18505 .block_erase = erase_chip_block_jedec,
18506 }
18507 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018508 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000018509 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000018510 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018511 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018512 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018513 },
18514
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018515 {
18516 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018517 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018518 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018519 .manufacture_id = WINBOND_ID,
18520 .model_id = WINBOND_W39V040B,
18521 .total_size = 512,
18522 .page_size = 64 * 1024,
18523 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000018524 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018525 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000018526 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018527 .block_erasers =
18528 {
18529 {
18530 .eraseblocks = { {64 * 1024, 8} },
18531 .block_erase = erase_sector_jedec,
18532 }, {
18533 .eraseblocks = { {512 * 1024, 1} },
18534 .block_erase = erase_chip_block_jedec,
18535 }
18536 },
18537 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000018538 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018539 .write = write_jedec_1,
18540 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018541 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018542 },
18543
18544 {
18545 .vendor = "Winbond",
18546 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018547 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018548 .manufacture_id = WINBOND_ID,
18549 .model_id = WINBOND_W39V040C,
18550 .total_size = 512,
18551 .page_size = 64 * 1024,
18552 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000018553 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018554 .probe = probe_jedec,
18555 .probe_timing = 10,
18556 .block_erasers =
18557 {
18558 {
18559 .eraseblocks = { {64 * 1024, 8} },
18560 .block_erase = erase_sector_jedec,
18561 }, {
18562 .eraseblocks = { {512 * 1024, 1} },
18563 .block_erase = erase_chip_block_jedec,
18564 }
18565 },
18566 .printlock = printlock_w39v040fc,
18567 .write = write_jedec_1,
18568 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018569 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018570 },
18571
18572 {
18573 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018574 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018575 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018576 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018577 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018578 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000018579 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018580 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000018581 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018582 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000018583 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018584 .block_erasers =
18585 {
18586 {
18587 .eraseblocks = { {64 * 1024, 16} },
18588 .block_erase = erase_sector_jedec,
18589 }, {
18590 .eraseblocks = { {1024 * 1024, 1} },
18591 .block_erase = erase_chip_block_jedec,
18592 }
18593 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018594 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000018595 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018596 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018597 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018598 },
18599
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018600 {
18601 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018602 .name = "W39V080FA",
18603 .bustype = BUS_FWH,
18604 .manufacture_id = WINBOND_ID,
18605 .model_id = WINBOND_W39V080FA,
18606 .total_size = 1024,
18607 .page_size = 64 * 1024,
18608 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
18609 .tested = TEST_OK_PREW,
18610 .probe = probe_jedec,
18611 .probe_timing = 10,
18612 .block_erasers =
18613 {
18614 {
18615 .eraseblocks = { {64 * 1024, 16} },
18616 .block_erase = erase_sector_jedec,
18617 }, {
18618 .eraseblocks = { {1024 * 1024, 1} },
18619 .block_erase = erase_chip_block_jedec,
18620 }
18621 },
18622 .printlock = printlock_w39v080fa,
18623 .unlock = unlock_regspace2_uniform_64k,
18624 .write = write_jedec_1,
18625 .read = read_memmapped,
18626 .voltage = {3000, 3600}, /* Also has 12V fast program */
18627 },
18628
18629 {
18630 .vendor = "Winbond",
18631 .name = "W39V080FA (dual mode)",
18632 .bustype = BUS_FWH,
18633 .manufacture_id = WINBOND_ID,
18634 .model_id = WINBOND_W39V080FA_DM,
18635 .total_size = 512,
18636 .page_size = 64 * 1024,
18637 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
18638 .tested = TEST_UNTESTED,
18639 .probe = probe_jedec,
18640 .probe_timing = 10,
18641 .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_w39v080fa_dual,
18652 .write = write_jedec_1,
18653 .read = read_memmapped,
18654 .voltage = {3000, 3600}, /* Also has 12V fast program */
18655 },
18656
18657 {
18658 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018659 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018660 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018661 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018662 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018663 .total_size = 256,
18664 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018665 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000018666 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018667 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018668 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018669 .block_erasers =
18670 {
18671 {
18672 .eraseblocks = {
18673 {128 * 1024, 1},
18674 {96 * 1024, 1},
18675 {8 * 1024, 2},
18676 {16 * 1024, 1},
18677 },
18678 .block_erase = erase_sector_jedec,
18679 }, {
18680 .eraseblocks = { {256 * 1024, 1} },
18681 .block_erase = erase_chip_block_jedec,
18682 }
18683 },
Sean Nelson35727f72010-01-28 23:55:12 +000018684 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018685 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018686 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018687 },
18688
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018689 {
18690 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018691 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018692 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018693 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018694 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018695 .total_size = 256,
18696 .page_size = 128,
18697 .feature_bits = FEATURE_EITHER_RESET,
18698 .tested = TEST_OK_PROBE,
18699 .probe = probe_jedec,
18700 .probe_timing = 10,
18701 .block_erasers =
18702 {
18703 {
18704 .eraseblocks = { {256 * 1024, 1} },
18705 .block_erase = erase_chip_block_jedec,
18706 }
18707 },
18708 .write = write_jedec_1,
18709 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018710 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018711 },
18712
18713 {
18714 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018715 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018716 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018717 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018718 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018719 .total_size = 256,
18720 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018721 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018722 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018723 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018724 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018725 .block_erasers =
18726 {
18727 {
18728 .eraseblocks = {
18729 {64 * 1024, 3},
18730 {32 * 1024, 1},
18731 {8 * 1024, 2},
18732 {16 * 1024, 1},
18733 },
18734 .block_erase = erase_sector_jedec,
18735 }, {
18736 .eraseblocks = { {256 * 1024, 1} },
18737 .block_erase = erase_chip_block_jedec,
18738 }
18739 },
Sean Nelson35727f72010-01-28 23:55:12 +000018740 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018741 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018742 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018743 },
18744
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018745 {
18746 .vendor = "Winbond",
18747 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018748 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018749 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018750 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018751 .total_size = 256,
18752 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018753 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000018754 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018755 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018756 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018757 .block_erasers =
18758 {
18759 {
18760 .eraseblocks = {
18761 {64 * 1024, 3},
18762 {32 * 1024, 1},
18763 {8 * 1024, 2},
18764 {16 * 1024, 1},
18765 },
18766 .block_erase = erase_sector_jedec,
18767 }, {
18768 .eraseblocks = { {256 * 1024, 1} },
18769 .block_erase = erase_chip_block_jedec,
18770 }
18771 },
Sean Nelson35727f72010-01-28 23:55:12 +000018772 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018773 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018774 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018775 },
18776
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018777 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100018778 .vendor = "Zetta Device",
18779 .name = "ZD25D20",
18780 .bustype = BUS_SPI,
18781 .manufacture_id = ZETTADEVICE_ID,
18782 .model_id = ZETTADEVICE_ZD25D20,
18783 .total_size = 256,
18784 .page_size = 256,
18785 .feature_bits = FEATURE_WRSR_WREN,
18786 .tested = TEST_UNTESTED,
18787 .probe = probe_spi_rdid,
18788 .probe_timing = TIMING_ZERO,
18789 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080018790 {
18791 {
18792 .eraseblocks = { {4 * 1024, 64} },
18793 .block_erase = spi_block_erase_20,
18794 }, {
18795 .eraseblocks = { {32 * 1024, 8} },
18796 .block_erase = spi_block_erase_52,
18797 }, {
18798 .eraseblocks = { {64 * 1024, 4} },
18799 .block_erase = spi_block_erase_d8,
18800 }, {
18801 .eraseblocks = { {256 * 1024, 1} },
18802 .block_erase = spi_block_erase_60,
18803 }, {
18804 .eraseblocks = { {256 * 1024, 1} },
18805 .block_erase = spi_block_erase_c7,
18806 }
18807 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100018808 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18809 .unlock = spi_disable_blockprotect,
18810 .write = spi_chip_write_256,
18811 .read = spi_chip_read,
18812 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080018813 },
18814
18815 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100018816 .vendor = "Zetta Device",
18817 .name = "ZD25D40",
18818 .bustype = BUS_SPI,
18819 .manufacture_id = ZETTADEVICE_ID,
18820 .model_id = ZETTADEVICE_ZD25D40,
18821 .total_size = 512,
18822 .page_size = 256,
18823 .feature_bits = FEATURE_WRSR_WREN,
18824 .tested = TEST_UNTESTED,
18825 .probe = probe_spi_rdid,
18826 .probe_timing = TIMING_ZERO,
18827 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080018828 {
18829 {
18830 .eraseblocks = { {4 * 1024, 128} },
18831 .block_erase = spi_block_erase_20,
18832 }, {
18833 .eraseblocks = { {32 * 1024, 16} },
18834 .block_erase = spi_block_erase_52,
18835 }, {
18836 .eraseblocks = { {64 * 1024, 8} },
18837 .block_erase = spi_block_erase_d8,
18838 }, {
18839 .eraseblocks = { {512 * 1024, 1} },
18840 .block_erase = spi_block_erase_60,
18841 }, {
18842 .eraseblocks = { {512 * 1024, 1} },
18843 .block_erase = spi_block_erase_c7,
18844 }
18845 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100018846 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18847 .unlock = spi_disable_blockprotect,
18848 .write = spi_chip_write_256,
18849 .read = spi_chip_read,
18850 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080018851 },
18852
Stefan Taunerac1b4c82012-02-17 14:51:04 +000018853 {
Alan Greendd592202019-08-23 10:11:37 +100018854 .vendor = "Unknown",
18855 .name = "SFDP-capable chip",
18856 .bustype = BUS_SPI,
18857 .manufacture_id = GENERIC_MANUF_ID,
18858 .model_id = SFDP_DEVICE_ID,
18859 .total_size = 0, /* set by probing function */
18860 .page_size = 0, /* set by probing function */
18861 .feature_bits = 0, /* set by probing function */
18862 /* We present our own "report this" text hence we do not */
18863 /* want the default "This flash part has status UNTESTED..." */
18864 /* text to be printed. */
18865 .tested = TEST_OK_PREW,
18866 .probe = probe_spi_sfdp,
18867 .block_erasers = {}, /* set by probing function */
18868 .unlock = spi_disable_blockprotect, /* is this safe? */
18869 .write = NULL, /* set by probing function */
18870 .read = spi_chip_read,
18871 /* FIXME: some vendor extensions define this */
18872 .voltage = {0},
18873 },
18874
18875 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000018876 .vendor = "Programmer",
18877 .name = "Opaque flash chip",
18878 .bustype = BUS_PROG,
18879 .manufacture_id = PROGMANUF_ID,
18880 .model_id = PROGDEV_ID,
18881 .total_size = 0,
18882 .page_size = 256,
18883 /* probe is assumed to work, rest will be filled in by probe */
18884 .tested = TEST_OK_PROBE,
18885 .probe = probe_opaque,
18886 /* eraseblock sizes will be set by the probing function */
18887 .block_erasers =
18888 {
18889 {
18890 .block_erase = erase_opaque,
18891 }
18892 },
18893 .write = write_opaque,
18894 .read = read_opaque,
18895 },
18896
18897 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000018898 .vendor = "AMIC",
18899 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018900 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000018901 .manufacture_id = AMIC_ID,
18902 .model_id = GENERIC_DEVICE_ID,
18903 .total_size = 0,
18904 .page_size = 256,
18905 .tested = TEST_BAD_PREW,
18906 .probe = probe_spi_rdid4,
18907 .probe_timing = TIMING_ZERO,
18908 .write = NULL,
18909 .read = NULL,
18910 },
18911
18912 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018913 .vendor = "Atmel",
18914 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018915 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018916 .manufacture_id = ATMEL_ID,
18917 .model_id = GENERIC_DEVICE_ID,
18918 .total_size = 0,
18919 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018920 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018921 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018922 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018923 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018924 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018925 },
18926
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018927 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000018928 .vendor = "Eon",
18929 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018930 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018931 .manufacture_id = EON_ID_NOPREFIX,
18932 .model_id = GENERIC_DEVICE_ID,
18933 .total_size = 0,
18934 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018935 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018936 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018937 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018938 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018939 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018940 },
18941
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018942 {
18943 .vendor = "Macronix",
18944 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018945 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000018946 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018947 .model_id = GENERIC_DEVICE_ID,
18948 .total_size = 0,
18949 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018950 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018951 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018952 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018953 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018954 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018955 },
18956
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018957 {
18958 .vendor = "PMC",
18959 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018960 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018961 .manufacture_id = PMC_ID,
18962 .model_id = GENERIC_DEVICE_ID,
18963 .total_size = 0,
18964 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018965 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018966 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018967 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018968 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018969 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018970 },
18971
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018972 {
18973 .vendor = "SST",
18974 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018975 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018976 .manufacture_id = SST_ID,
18977 .model_id = GENERIC_DEVICE_ID,
18978 .total_size = 0,
18979 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018980 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018981 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018982 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018983 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018984 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018985 },
18986
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018987 {
18988 .vendor = "ST",
18989 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018990 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018991 .manufacture_id = ST_ID,
18992 .model_id = GENERIC_DEVICE_ID,
18993 .total_size = 0,
18994 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018995 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018996 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018997 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018998 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018999 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019000 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000019001
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019002 {
Sean Nelson118e1d62009-11-24 02:08:11 +000019003 .vendor = "Sanyo",
19004 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019005 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000019006 .manufacture_id = SANYO_ID,
19007 .model_id = GENERIC_DEVICE_ID,
19008 .total_size = 0,
19009 .page_size = 256,
19010 .tested = TEST_BAD_PREW,
19011 .probe = probe_spi_rdid,
19012 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000019013 .write = NULL,
19014 .read = NULL,
19015 },
19016
19017 {
Stefan Taunereb582572012-09-21 12:52:50 +000019018 .vendor = "Winbond",
19019 .name = "unknown Winbond (ex Nexcom) SPI chip",
19020 .bustype = BUS_SPI,
19021 .manufacture_id = WINBOND_NEX_ID,
19022 .model_id = GENERIC_DEVICE_ID,
19023 .total_size = 0,
19024 .page_size = 256,
19025 .tested = TEST_BAD_PREW,
19026 .probe = probe_spi_rdid,
19027 .probe_timing = TIMING_ZERO,
19028 .write = NULL,
19029 .read = NULL,
19030 },
19031
19032 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019033 .vendor = "Generic",
19034 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019035 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019036 .manufacture_id = GENERIC_MANUF_ID,
19037 .model_id = GENERIC_DEVICE_ID,
19038 .total_size = 0,
19039 .page_size = 256,
19040 .tested = TEST_BAD_PREW,
19041 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019042 .write = NULL,
19043 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000019044
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019045 {
19046 .vendor = "Generic",
19047 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019048 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019049 .manufacture_id = GENERIC_MANUF_ID,
19050 .model_id = GENERIC_DEVICE_ID,
19051 .total_size = 0,
19052 .page_size = 256,
19053 .tested = TEST_BAD_PREW,
19054 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019055 .write = NULL,
19056 },
19057
Stefan Tauner96658be2014-05-26 22:05:31 +000019058 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000019059};
Stefan Tauner96658be2014-05-26 22:05:31 +000019060
19061const unsigned int flashchips_size = ARRAY_SIZE(flashchips);